2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for TiMidity++ 2.12.0-pre1b.
5 # Report bugs to <root@mput.dip.jp>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/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 -n "`(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
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
236 # We need space, tab and new line, in precisely that order.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
261 SHELL=${CONFIG_SHELL-/bin/sh}
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete. It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
268 # Identity of this package.
269 PACKAGE_NAME='TiMidity++'
270 PACKAGE_TARNAME='TiMidity++'
271 PACKAGE_VERSION='2.12.0-pre1b'
272 PACKAGE_STRING='TiMidity++ 2.12.0-pre1b'
273 PACKAGE_BUGREPORT='root@mput.dip.jp'
275 ac_unique_file="timidity/timidity.c"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT EMACS lispdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP RANLIB ac_ct_RANLIB LN_S X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS NEEDGETOPT_TRUE NEEDGETOPT_FALSE ALSA_CFLAGS ALSA_LIBS ARTS_CONFIG ARTS_CFLAGS ARTS_LIBS ESD_CONFIG ESD_CFLAGS ESD_LIBS VORBIS_CFLAGS VORBIS_LIBS VORBISFILE_LIBS VORBISENC_LIBS OGG_CFLAGS OGG_LIBS NEEDDLOPEN_TRUE NEEDDLOPEN_FALSE ENABLE_NCURSES_TRUE ENABLE_NCURSES_FALSE n_so_libs ENABLE_SLANG_TRUE ENABLE_SLANG_FALSE s_so_libs ENABLE_MOTIF_TRUE ENABLE_MOTIF_FALSE m_so_libs ENABLE_TCLTK_TRUE ENABLE_TCLTK_FALSE k_so_libs ENABLE_DYNAMIC_TCLTK_TRUE ENABLE_DYNAMIC_TCLTK_FALSE ENABLE_EMACS_TRUE ENABLE_EMACS_FALSE e_so_libs ENABLE_VT100_TRUE ENABLE_VT100_FALSE T_so_libs ENABLE_XAW_TRUE ENABLE_XAW_FALSE a_so_libs ENABLE_DYNAMIC_XAW_TRUE ENABLE_DYNAMIC_XAW_FALSE ENABLE_XSKIN_TRUE ENABLE_XSKIN_FALSE i_so_libs ENABLE_GTK_TRUE ENABLE_GTK_FALSE GTK_CONFIG GTK_CFLAGS GTK_LIBS g_so_libs ENABLE_SERVER_TRUE ENABLE_SERVER_FALSE r_so_libs ENABLE_ALSASEQ_TRUE ENABLE_ALSASEQ_FALSE A_so_libs ENABLE_WINSYN_TRUE ENABLE_WINSYN_FALSE W_so_libs ENABLE_PORTMIDISYN_TRUE ENABLE_PORTMIDISYN_FALSE P_so_libs ENABLE_W32G_SYN_TRUE ENABLE_W32G_SYN_FALSE ENABLE_W32GUI_TRUE ENABLE_W32GUI_FALSE w_so_libs ENABLE_PLUGIN_TRUE ENABLE_PLUGIN_FALSE p_so_libs ENABLE_NETWORK_TRUE ENABLE_NETWORK_FALSE ENABLE_SOUND_SPEC_TRUE ENABLE_SOUND_SPEC_FALSE ENABLE_WRD_TRUE ENABLE_WRD_FALSE CYGNUS_TRUE CYGNUS_FALSE MINGW_TRUE MINGW_FALSE W32READDIR_TRUE W32READDIR_FALSE timidity_LDFLAGS SYSEXTRAS EXTRALIBS NETSRCS ELFILES SHLD SHCFLAGS dynamic_targets so WISH tcltk_dep INTERFACE_SRCS pkgdatadir pkglibdir LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name=s,x,x,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
431 -help | --help | --hel | --he | -h)
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 # Obsolete; use --without-fp.
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
561 -site=* | --site=* | --sit=*)
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 -version | --version | --versio | --versi | --vers | -V)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures TiMidity++ 2.12.0-pre1b to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
841 --x-includes=DIR X include files are in DIR
842 --x-libraries=DIR X library files are in DIR
845 --build=BUILD configure for building on BUILD [guessed]
846 --host=HOST cross-compile to build programs to run on HOST [BUILD]
847 --target=TARGET configure for building compilers for TARGET [HOST]
851 if test -n "$ac_init_help"; then
852 case $ac_init_help in
853 short | recursive ) echo "Configuration of TiMidity++ 2.12.0-pre1b:";;
858 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
859 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing) to the casual installer
862 --enable-debug Build a debugging version.
863 --disable-dependency-tracking Speeds up one-time builds
864 --enable-dependency-tracking Do not reject slow dependency extractors
865 --enable-audio=mode_list Enable audio (Specify comma separated mode list):
866 default: Automatically select audio device.
868 sun: SunOS /dev/audio
869 hpux: HPUX /dev/audio
870 irix: IRIX audio library
872 sb_dsp: BSD/OS 2.0 /dev/sb_dsp
874 darwin: Darwin CoreAudio
875 alsa: ALSA pcm device
876 alib: HPUX network audio (Alib)
877 nas: NAS - Network Audio System
879 esd: EsounD - Enlightened Sound Daemon
883 gogo: MP3 GOGO (Only Windows is supported)
884 --disable-alsatest Do not try to compile and run a test Alsa program
885 --disable-artstest Do not try to compile and run a test ARTS program
886 --disable-esdtest Do not try to compile and run a test ESD program
887 --disable-oggtest Do not try to compile and run a test Ogg program
888 --disable-vorbistest Do not try to compile and run a test Vorbis program
889 --enable-interface=interface_list
890 Comma separated interface list
891 --enable-dynamic Enable dynamic link interface (default is no)
892 --enable-dynamic=dynamic_list
893 Comma separated dynamic interface list
894 --enable-ncurses Enable ncurses interface (default is no)
895 --enable-slang Enable slang interface (default is no)
896 --enable-motif Enable motif interface (default is no)
897 --enable-tcltk Enable tcltk interface (default is no)
898 --enable-emacs Enable emacs interface (default is no)
899 --enable-vt100 Enable VT100 interface (default is no)
900 --enable-xaw Enable athena interface (default is no)
901 --enable-xskin Enable X skin interface (default is no)
902 --enable-gtk Enable GTK+ interface (default is no)
903 --disable-gtktest Do not try to compile and run a test GTK program
904 --enable-server Enable server interface (default is no)
905 --enable-alsaseq Enable ALSA sequencer server interface
907 --enable-winsyn Enable Windows Synthesizer interface
909 --enable-portmidisyn Enable PortMIDI Synthesizer interface
911 --enable-winsyng Enable Windows GUI Synthesizer interface
913 --enable-w32gui Enable Windows GUI interface (default is no)
914 --enable-ump UMP configuration (default is no)
915 --enable-offix Enable offix support (default is no)
916 --enable-network Enable network support (default is no)
917 --enable-spectrogram Enable Sound Spectrogram Viewer (default is no)
918 --enable-spline=method Specify spline method.
919 one of no,linear,cubic,lagrange,newton,gauss
921 --enable-wrd Enable WRD interface for X (default is no)
924 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
925 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
926 --with-includes=DIR Specify include directories (colon separated)
927 --with-libraries=DIR Specify library directories (colon separated)
928 --with-default-path=DIR Where timidity.cfg is (PREFIX/share/timidity)
929 --with-module-dir=DIR Where to install interfaces (PREFIX/lib/timidity)
930 --with-lispdir Override the default lisp directory
931 --with-elf create ELF shared object instead of AOUT
932 --with-simd create SIMD friendly binary (default is no)
933 --with-x use the X Window System
934 --with-tcl-includes=DIR Tcl include file path
935 --with-tcl-libs=DIR Tcl library file path
936 --with-tk-includes=DIR Tk include file path
937 --with-tk-libs=DIR Tk library file path
938 --with-offix-includes=DIR Offix include file path
939 --with-offix-libs=DIR Offix include file path
940 --with-nas-library=library NAS absolute library path(Don't use -laudio)
941 --with-nas-includes=DIR NAS include files are in dir
942 --with-default-output=<mode> Specify default output mode (optional):
943 (default|alsa|alib|arts|nas|
944 esd|wav|au|aiff|list|vorbis|
946 --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
947 --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
948 --with-arts-prefix=PFX Prefix where ARTS is installed (optional)
949 --with-esd-prefix=PFX Prefix where ESD is installed (optional)
950 --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
951 --with-ogg=PFX Prefix where libogg is installed (optional)
952 --with-ogg-libraries=DIR Directory where libogg library is installed (optional)
953 --with-ogg-includes=DIR Directory where libogg header files are installed (optional)
954 --with-vorbis=PFX Prefix where libvorbis is installed (optional)
955 --with-vorbis-libraries=DIR Directory where libvorbis library is installed (optional)
956 --with-vorbis-includes=DIR Directory where libvorbis header files are installed (optional)
957 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
958 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
960 Some influential environment variables:
961 CC C compiler command
962 CFLAGS C compiler flags
963 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
964 nonstandard directory <lib dir>
965 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
966 headers in a nonstandard directory <include dir>
969 Use these variables to override the choices made by `configure' or to help
970 it to find libraries and programs with nonstandard names/locations.
972 Report bugs to <root@mput.dip.jp>.
976 if test "$ac_init_help" = "recursive"; then
977 # If there are subdirs, report their specific --help.
979 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
980 test -d $ac_dir || continue
983 if test "$ac_dir" != .; then
984 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
985 # A "../" for each directory in $ac_dir_suffix.
986 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
988 ac_dir_suffix= ac_top_builddir=
992 .) # No --srcdir option. We are building in place.
994 if test -z "$ac_top_builddir"; then
997 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
999 [\\/]* | ?:[\\/]* ) # Absolute path.
1000 ac_srcdir=$srcdir$ac_dir_suffix;
1001 ac_top_srcdir=$srcdir ;;
1003 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1004 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1006 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1008 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1009 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1010 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1011 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1014 # Check for guested configure; otherwise get Cygnus style configure.
1015 if test -f $ac_srcdir/configure.gnu; then
1017 $SHELL $ac_srcdir/configure.gnu --help=recursive
1018 elif test -f $ac_srcdir/configure; then
1020 $SHELL $ac_srcdir/configure --help=recursive
1021 elif test -f $ac_srcdir/configure.ac ||
1022 test -f $ac_srcdir/configure.in; then
1024 $ac_configure --help
1026 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1032 test -n "$ac_init_help" && exit 0
1033 if $ac_init_version; then
1035 TiMidity++ configure 2.12.0-pre1b
1036 generated by GNU Autoconf 2.57
1038 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1039 Free Software Foundation, Inc.
1040 This configure script is free software; the Free Software Foundation
1041 gives unlimited permission to copy, distribute and modify it.
1047 This file contains any messages produced by compilers while
1048 running configure, to aid debugging if configure makes a mistake.
1050 It was created by TiMidity++ $as_me 2.12.0-pre1b, which was
1051 generated by GNU Autoconf 2.57. Invocation command line was
1062 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1063 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1064 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1065 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1066 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1068 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1069 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1071 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1072 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1073 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1074 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1075 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1076 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1077 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1085 test -z "$as_dir" && as_dir=.
1086 echo "PATH: $as_dir"
1101 # Keep a trace of the command line.
1102 # Strip out --no-create and --no-recursion so they do not pile up.
1103 # Strip out --silent because we don't want to record it for future runs.
1104 # Also quote any args containing shell meta-characters.
1105 # Make two passes to allow for proper duplicate-argument suppression.
1110 ac_must_keep_next=false
1116 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1117 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1118 | -silent | --silent | --silen | --sile | --sil)
1120 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1121 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1124 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1126 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1127 if test $ac_must_keep_next = true; then
1128 ac_must_keep_next=false # Got value, back to normal.
1131 *=* | --config-cache | -C | -disable-* | --disable-* \
1132 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1133 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1134 | -with-* | --with-* | -without-* | --without-* | --x)
1135 case "$ac_configure_args0 " in
1136 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1139 -* ) ac_must_keep_next=true ;;
1142 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1143 # Get rid of the leading space.
1149 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1150 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1152 # When interrupted or exit'd, cleanup temporary files, and complete
1153 # config.log. We remove comments because anyway the quotes in there
1154 # would cause problems or look ugly.
1155 # WARNING: Be sure not to use single quotes in there, as some shells,
1156 # such as our DU 5.0 friend, will then `close' the trap.
1157 trap 'exit_status=$?
1158 # Save into config.log some information that might help in debugging.
1163 ## ---------------- ##
1164 ## Cache variables. ##
1165 ## ---------------- ##
1168 # The following way of writing the cache mishandles newlines in values,
1171 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1174 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1175 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1179 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1186 ## ----------------- ##
1187 ## Output variables. ##
1188 ## ----------------- ##
1191 for ac_var in $ac_subst_vars
1193 eval ac_val=$`echo $ac_var`
1194 echo "$ac_var='"'"'$ac_val'"'"'"
1198 if test -n "$ac_subst_files"; then
1205 for ac_var in $ac_subst_files
1207 eval ac_val=$`echo $ac_var`
1208 echo "$ac_var='"'"'$ac_val'"'"'"
1213 if test -s confdefs.h; then
1220 sed "/^$/d" confdefs.h | sort
1223 test "$ac_signal" != 0 &&
1224 echo "$as_me: caught signal $ac_signal"
1225 echo "$as_me: exit $exit_status"
1227 rm -f core core.* *.core &&
1228 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1231 for ac_signal in 1 2 13 15; do
1232 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1236 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1237 rm -rf conftest* confdefs.h
1238 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1241 # Predefined preprocessor variables.
1243 cat >>confdefs.h <<_ACEOF
1244 #define PACKAGE_NAME "$PACKAGE_NAME"
1248 cat >>confdefs.h <<_ACEOF
1249 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1253 cat >>confdefs.h <<_ACEOF
1254 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_STRING "$PACKAGE_STRING"
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1268 # Let the site file select an alternate cache file if it wants to.
1269 # Prefer explicitly selected file to automatically selected ones.
1270 if test -z "$CONFIG_SITE"; then
1271 if test "x$prefix" != xNONE; then
1272 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1274 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1277 for ac_site_file in $CONFIG_SITE; do
1278 if test -r "$ac_site_file"; then
1279 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1280 echo "$as_me: loading site script $ac_site_file" >&6;}
1281 sed 's/^/| /' "$ac_site_file" >&5
1286 if test -r "$cache_file"; then
1287 # Some versions of bash will fail to source /dev/null (special
1288 # files actually), so we avoid doing that.
1289 if test -f "$cache_file"; then
1290 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1291 echo "$as_me: loading cache $cache_file" >&6;}
1293 [\\/]* | ?:[\\/]* ) . $cache_file;;
1294 *) . ./$cache_file;;
1298 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1299 echo "$as_me: creating cache $cache_file" >&6;}
1303 # Check that the precious variables saved in the cache have kept the same
1305 ac_cache_corrupted=false
1306 for ac_var in `(set) 2>&1 |
1307 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1308 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1309 eval ac_new_set=\$ac_env_${ac_var}_set
1310 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1311 eval ac_new_val="\$ac_env_${ac_var}_value"
1312 case $ac_old_set,$ac_new_set in
1314 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1315 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1316 ac_cache_corrupted=: ;;
1318 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1319 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1320 ac_cache_corrupted=: ;;
1323 if test "x$ac_old_val" != "x$ac_new_val"; then
1324 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1325 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1326 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1327 echo "$as_me: former value: $ac_old_val" >&2;}
1328 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1329 echo "$as_me: current value: $ac_new_val" >&2;}
1330 ac_cache_corrupted=:
1333 # Pass precious variables to config.status.
1334 if test "$ac_new_set" = set; then
1336 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1337 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1338 *) ac_arg=$ac_var=$ac_new_val ;;
1340 case " $ac_configure_args " in
1341 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1342 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1346 if $ac_cache_corrupted; then
1347 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1348 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1349 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1350 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1351 { (exit 1); exit 1; }; }
1355 ac_cpp='$CPP $CPPFLAGS'
1356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1387 for ac_dir in autoconf $srcdir/autoconf; do
1388 if test -f $ac_dir/install-sh; then
1390 ac_install_sh="$ac_aux_dir/install-sh -c"
1392 elif test -f $ac_dir/install.sh; then
1394 ac_install_sh="$ac_aux_dir/install.sh -c"
1396 elif test -f $ac_dir/shtool; then
1398 ac_install_sh="$ac_aux_dir/shtool install -c"
1402 if test -z "$ac_aux_dir"; then
1403 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1404 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1405 { (exit 1); exit 1; }; }
1407 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1408 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1409 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1411 # Make sure we can run config.sub.
1412 $ac_config_sub sun4 >/dev/null 2>&1 ||
1413 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1414 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1415 { (exit 1); exit 1; }; }
1417 echo "$as_me:$LINENO: checking build system type" >&5
1418 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1419 if test "${ac_cv_build+set}" = set; then
1420 echo $ECHO_N "(cached) $ECHO_C" >&6
1422 ac_cv_build_alias=$build_alias
1423 test -z "$ac_cv_build_alias" &&
1424 ac_cv_build_alias=`$ac_config_guess`
1425 test -z "$ac_cv_build_alias" &&
1426 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1427 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1428 { (exit 1); exit 1; }; }
1429 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1430 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1431 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1432 { (exit 1); exit 1; }; }
1435 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1436 echo "${ECHO_T}$ac_cv_build" >&6
1438 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1439 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1440 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1443 echo "$as_me:$LINENO: checking host system type" >&5
1444 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1445 if test "${ac_cv_host+set}" = set; then
1446 echo $ECHO_N "(cached) $ECHO_C" >&6
1448 ac_cv_host_alias=$host_alias
1449 test -z "$ac_cv_host_alias" &&
1450 ac_cv_host_alias=$ac_cv_build_alias
1451 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1452 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1453 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1454 { (exit 1); exit 1; }; }
1457 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1458 echo "${ECHO_T}$ac_cv_host" >&6
1460 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1461 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1462 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1465 echo "$as_me:$LINENO: checking target system type" >&5
1466 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1467 if test "${ac_cv_target+set}" = set; then
1468 echo $ECHO_N "(cached) $ECHO_C" >&6
1470 ac_cv_target_alias=$target_alias
1471 test "x$ac_cv_target_alias" = "x" &&
1472 ac_cv_target_alias=$ac_cv_host_alias
1473 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1474 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1475 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1476 { (exit 1); exit 1; }; }
1479 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1480 echo "${ECHO_T}$ac_cv_target" >&6
1481 target=$ac_cv_target
1482 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1483 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1484 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1487 # The aliases save the names the user supplied, while $host etc.
1488 # will get canonicalized.
1489 test -n "$target_alias" &&
1490 test "$program_prefix$program_suffix$program_transform_name" = \
1492 program_prefix=${target_alias}-
1493 am__api_version="1.7"
1494 # Find a good install program. We prefer a C program (faster),
1495 # so one script is as good as another. But avoid the broken or
1496 # incompatible versions:
1497 # SysV /etc/install, /usr/sbin/install
1498 # SunOS /usr/etc/install
1499 # IRIX /sbin/install
1501 # AmigaOS /C/install, which installs bootblocks on floppy discs
1502 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1503 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1504 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1505 # ./install, which can be erroneously created by make from ./install.sh.
1506 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1507 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1508 if test -z "$INSTALL"; then
1509 if test "${ac_cv_path_install+set}" = set; then
1510 echo $ECHO_N "(cached) $ECHO_C" >&6
1512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1516 test -z "$as_dir" && as_dir=.
1517 # Account for people who put trailing slashes in PATH elements.
1519 ./ | .// | /cC/* | \
1520 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1523 # OSF1 and SCO ODT 3.0 have their own names for install.
1524 # Don't use installbsd from OSF since it installs stuff as root
1526 for ac_prog in ginstall scoinst install; do
1527 for ac_exec_ext in '' $ac_executable_extensions; do
1528 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1529 if test $ac_prog = install &&
1530 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1531 # AIX install. It has an incompatible calling convention.
1533 elif test $ac_prog = install &&
1534 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1535 # program-specific install script used by HP pwplus--don't use.
1538 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1550 if test "${ac_cv_path_install+set}" = set; then
1551 INSTALL=$ac_cv_path_install
1553 # As a last resort, use the slow shell script. We don't cache a
1554 # path for INSTALL within a source directory, because that will
1555 # break other packages using the cache if that directory is
1556 # removed, or if the path is relative.
1557 INSTALL=$ac_install_sh
1560 echo "$as_me:$LINENO: result: $INSTALL" >&5
1561 echo "${ECHO_T}$INSTALL" >&6
1563 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1564 # It thinks the first close brace ends the variable substitution.
1565 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1567 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1569 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1571 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1572 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1575 echo timestamp > conftest.file
1576 # Do `set' in a subshell so we don't clobber the current shell's
1577 # arguments. Must try -L first in case configure is actually a
1578 # symlink; some systems play weird games with the mod time of symlinks
1579 # (eg FreeBSD returns the mod time of the symlink's containing
1582 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1583 if test "$*" = "X"; then
1585 set X `ls -t $srcdir/configure conftest.file`
1588 if test "$*" != "X $srcdir/configure conftest.file" \
1589 && test "$*" != "X conftest.file $srcdir/configure"; then
1591 # If neither matched, then we have a broken ls. This can happen
1592 # if, for instance, CONFIG_SHELL is bash and it inherits a
1593 # broken ls alias from the environment. This has actually
1594 # happened. Such a system could not be considered "sane".
1595 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1596 alias in your environment" >&5
1597 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1598 alias in your environment" >&2;}
1599 { (exit 1); exit 1; }; }
1602 test "$2" = conftest.file
1608 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1609 Check your system clock" >&5
1610 echo "$as_me: error: newly created file is older than distributed files!
1611 Check your system clock" >&2;}
1612 { (exit 1); exit 1; }; }
1614 echo "$as_me:$LINENO: result: yes" >&5
1615 echo "${ECHO_T}yes" >&6
1616 test "$program_prefix" != NONE &&
1617 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1618 # Use a double $ so make ignores it.
1619 test "$program_suffix" != NONE &&
1620 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1621 # Double any \ or $. echo might interpret backslashes.
1622 # By default was `s,x,x', remove it if useless.
1623 cat <<\_ACEOF >conftest.sed
1624 s/[\\$]/&&/g;s/;s,x,x,$//
1626 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1630 # expand $ac_aux_dir to an absolute path
1631 am_aux_dir=`cd $ac_aux_dir && pwd`
1633 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1634 # Use eval to expand $SHELL
1635 if eval "$MISSING --run true"; then
1636 am_missing_run="$MISSING --run "
1639 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1640 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1643 for ac_prog in gawk mawk nawk awk
1645 # Extract the first word of "$ac_prog", so it can be a program name with args.
1646 set dummy $ac_prog; ac_word=$2
1647 echo "$as_me:$LINENO: checking for $ac_word" >&5
1648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1649 if test "${ac_cv_prog_AWK+set}" = set; then
1650 echo $ECHO_N "(cached) $ECHO_C" >&6
1652 if test -n "$AWK"; then
1653 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 test -z "$as_dir" && as_dir=.
1660 for ac_exec_ext in '' $ac_executable_extensions; do
1661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662 ac_cv_prog_AWK="$ac_prog"
1663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672 if test -n "$AWK"; then
1673 echo "$as_me:$LINENO: result: $AWK" >&5
1674 echo "${ECHO_T}$AWK" >&6
1676 echo "$as_me:$LINENO: result: no" >&5
1677 echo "${ECHO_T}no" >&6
1680 test -n "$AWK" && break
1683 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1684 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1685 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1686 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1687 echo $ECHO_N "(cached) $ECHO_C" >&6
1689 cat >conftest.make <<\_ACEOF
1691 @echo 'ac_maketemp="$(MAKE)"'
1693 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1694 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1695 if test -n "$ac_maketemp"; then
1696 eval ac_cv_prog_make_${ac_make}_set=yes
1698 eval ac_cv_prog_make_${ac_make}_set=no
1702 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1703 echo "$as_me:$LINENO: result: yes" >&5
1704 echo "${ECHO_T}yes" >&6
1707 echo "$as_me:$LINENO: result: no" >&5
1708 echo "${ECHO_T}no" >&6
1709 SET_MAKE="MAKE=${MAKE-make}"
1712 rm -rf .tst 2>/dev/null
1713 mkdir .tst 2>/dev/null
1714 if test -d .tst; then
1719 rmdir .tst 2>/dev/null
1721 # test to see if srcdir already configured
1722 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1723 test -f $srcdir/config.status; then
1724 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1725 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1726 { (exit 1); exit 1; }; }
1729 # test whether we have cygpath
1730 if test -z "$CYGPATH_W"; then
1731 if (cygpath --version) >/dev/null 2>/dev/null; then
1732 CYGPATH_W='cygpath -w'
1739 # Define the identity of the package.
1740 PACKAGE='TiMidity++'
1741 VERSION='2.12.0-pre1b'
1744 cat >>confdefs.h <<_ACEOF
1745 #define PACKAGE "$PACKAGE"
1749 cat >>confdefs.h <<_ACEOF
1750 #define VERSION "$VERSION"
1753 # Some tools Automake needs.
1755 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1758 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1761 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1764 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1767 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1770 AMTAR=${AMTAR-"${am_missing_run}tar"}
1772 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1774 # Installed binaries are usually stripped using `strip' when the user
1775 # run `make install-strip'. However `strip' might not be the right
1776 # tool to use in cross-compilation environments, therefore Automake
1777 # will honor the `STRIP' environment variable to overrule this program.
1778 if test "$cross_compiling" != no; then
1779 if test -n "$ac_tool_prefix"; then
1780 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1781 set dummy ${ac_tool_prefix}strip; ac_word=$2
1782 echo "$as_me:$LINENO: checking for $ac_word" >&5
1783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1784 if test "${ac_cv_prog_STRIP+set}" = set; then
1785 echo $ECHO_N "(cached) $ECHO_C" >&6
1787 if test -n "$STRIP"; then
1788 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1794 test -z "$as_dir" && as_dir=.
1795 for ac_exec_ext in '' $ac_executable_extensions; do
1796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1797 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1806 STRIP=$ac_cv_prog_STRIP
1807 if test -n "$STRIP"; then
1808 echo "$as_me:$LINENO: result: $STRIP" >&5
1809 echo "${ECHO_T}$STRIP" >&6
1811 echo "$as_me:$LINENO: result: no" >&5
1812 echo "${ECHO_T}no" >&6
1816 if test -z "$ac_cv_prog_STRIP"; then
1818 # Extract the first word of "strip", so it can be a program name with args.
1819 set dummy strip; ac_word=$2
1820 echo "$as_me:$LINENO: checking for $ac_word" >&5
1821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1822 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1823 echo $ECHO_N "(cached) $ECHO_C" >&6
1825 if test -n "$ac_ct_STRIP"; then
1826 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832 test -z "$as_dir" && as_dir=.
1833 for ac_exec_ext in '' $ac_executable_extensions; do
1834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1835 ac_cv_prog_ac_ct_STRIP="strip"
1836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1842 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1845 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1846 if test -n "$ac_ct_STRIP"; then
1847 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1848 echo "${ECHO_T}$ac_ct_STRIP" >&6
1850 echo "$as_me:$LINENO: result: no" >&5
1851 echo "${ECHO_T}no" >&6
1856 STRIP="$ac_cv_prog_STRIP"
1860 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1862 # We need awk for the "check" target. The system "awk" is bad on
1868 ac_config_headers="$ac_config_headers config.h interface.h"
1870 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1871 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1872 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1873 if test "${enable_maintainer_mode+set}" = set; then
1874 enableval="$enable_maintainer_mode"
1875 USE_MAINTAINER_MODE=$enableval
1877 USE_MAINTAINER_MODE=no
1879 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1880 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1883 if test $USE_MAINTAINER_MODE = yes; then
1884 MAINTAINER_MODE_TRUE=
1885 MAINTAINER_MODE_FALSE='#'
1887 MAINTAINER_MODE_TRUE='#'
1888 MAINTAINER_MODE_FALSE=
1891 MAINT=$MAINTAINER_MODE_TRUE
1895 SHELL=${CONFIG_SHELL-"/bin/sh"}
1898 echo "$as_me:$LINENO: checking whether grep returns status" >&5
1899 echo $ECHO_N "checking whether grep returns status... $ECHO_C" >&6
1900 echo "grimblepritz" >grimble
1901 if grep blurfldyick grimble >/dev/null 2>&1 ; then
1902 contains="./contains"
1903 elif grep grimblepritz grimble >/dev/null 2>&1 ; then
1906 contains="./contains"
1910 grep) echo "$as_me:$LINENO: result: yes" >&5
1911 echo "${ECHO_T}yes" >&6
1914 echo "$as_me:$LINENO: result: AGH! Grep doesn't return a status. Attempting remedial action." >&5
1915 echo "${ECHO_T}AGH! Grep doesn't return a status. Attempting remedial action." >&6
1916 cat >./contains <<'EOSS'
1917 grep "$1" "$2" >.greptmp && cat .greptmp && test -s .greptmp
1919 chmod +x "./contains"
1924 # Check for compiler options -- such as debug flags.
1926 echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
1927 echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6
1928 # Check whether --enable-debug or --disable-debug was given.
1929 if test "${enable_debug+set}" = set; then
1930 enableval="$enable_debug"
1931 timidity_cv_debug="yes"
1933 timidity_cv_debug="no"
1935 if test "x$timidity_cv_debug" = "xyes"; then
1937 cat >>confdefs.h <<\_ACEOF
1941 CFLAGS=${CFLAGS-"-g"}
1943 if test "x$timidity_cv_debug" = "xno"; then
1945 cat >>confdefs.h <<\_ACEOF
1950 echo "$as_me:$LINENO: result: $timidity_cv_debug" >&5
1951 echo "${ECHO_T}$timidity_cv_debug" >&6
1953 CFLAGS=${CFLAGS-"-O2"}
1955 if test "x$with_x" = x; then
1961 # Checking gcc environment
1962 for i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do
1963 LDFLAGS="$LDFLAGS -L${i}"
1965 for i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do
1966 CPPFLAGS="$CPPFLAGS -I${i}"
1969 # add $prefix if specified.
1970 if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then
1971 LDFLAGS="-L$prefix/lib $LDFLAGS"
1972 SHLDFLAGS="-L$prefix/lib $SHLDFLAGS"
1973 CPPFLAGS="-I$prefix/include $CPPFLAGS"
1977 # Check whether --with-includes or --without-includes was given.
1978 if test "${with_includes+set}" = set; then
1979 withval="$with_includes"
1981 for i in `echo "$withval"|sed -e 's,:, ,g'`; do
1984 CPPFLAGS="$j$CPPFLAGS"
1989 # Check whether --with-libraries or --without-libraries was given.
1990 if test "${with_libraries+set}" = set; then
1991 withval="$with_libraries"
1993 for i in `echo "$withval"|sed -e 's,:, ,g'`; do
1996 LDFLAGS="$j$LDFLAGS"
2002 # Check whether --with-default-path or --without-default-path was given.
2003 if test "${with_default_path+set}" = set; then
2004 withval="$with_default_path"
2008 if test "x$prefix" != "xNONE"; then
2009 pkgdatadir='${prefix}/share/timidity'
2011 pkgdatadir='/usr/local/share/timidity'
2015 tmpdefpath="`eval \"echo ${pkgdatadir}\"`"
2017 cat >>confdefs.h <<_ACEOF
2018 #define DEFAULT_PATH "$tmpdefpath"
2022 cat >>confdefs.h <<\_ACEOF
2023 #define PKGDATADIR DEFAULT_PATH
2028 # Check whether --with-module-dir or --without-module-dir was given.
2029 if test "${with_module_dir+set}" = set; then
2030 withval="$with_module_dir"
2034 if test "x$prefix" != "xNONE"; then
2035 pkglibdir='${prefix}/lib/timidity'
2037 pkglibdir='/usr/local/lib/timidity'
2041 tmplibdir="`eval \"echo ${pkglibdir}\"`"
2043 cat >>confdefs.h <<_ACEOF
2044 #define PKGLIBDIR "$tmplibdir"
2049 # Checks for programs.
2051 # Check whether --with-lispdir or --without-lispdir was given.
2052 if test "${with_lispdir+set}" = set; then
2053 withval="$with_lispdir"
2055 echo "$as_me:$LINENO: checking where .elc files should go" >&5
2056 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2057 echo "$as_me:$LINENO: result: $lispdir" >&5
2058 echo "${ECHO_T}$lispdir" >&6
2061 # If set to t, that means we are running in a shell under Emacs.
2062 # If you have an Emacs named "t", then use the full path.
2063 test x"$EMACS" = xt && EMACS=
2064 for ac_prog in emacs xemacs
2066 # Extract the first word of "$ac_prog", so it can be a program name with args.
2067 set dummy $ac_prog; ac_word=$2
2068 echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2070 if test "${ac_cv_prog_EMACS+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2073 if test -n "$EMACS"; then
2074 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080 test -z "$as_dir" && as_dir=.
2081 for ac_exec_ext in '' $ac_executable_extensions; do
2082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2083 ac_cv_prog_EMACS="$ac_prog"
2084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2092 EMACS=$ac_cv_prog_EMACS
2093 if test -n "$EMACS"; then
2094 echo "$as_me:$LINENO: result: $EMACS" >&5
2095 echo "${ECHO_T}$EMACS" >&6
2097 echo "$as_me:$LINENO: result: no" >&5
2098 echo "${ECHO_T}no" >&6
2101 test -n "$EMACS" && break
2103 test -n "$EMACS" || EMACS="no"
2105 if test $EMACS != "no"; then
2106 if test x${lispdir+set} != xset; then
2107 echo "$as_me:$LINENO: checking where .elc files should go" >&5
2108 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2109 if test "${am_cv_lispdir+set}" = set; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
2112 # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
2113 # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
2114 # which is non-obvious for non-emacs users.
2115 # Redirecting /dev/null should help a bit; pity we can't detect "broken"
2116 # emacsen earlier and avoid running this altogether.
2117 { (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
2118 ($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
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }
2122 am_cv_lispdir=`sed -n \
2124 -e '/.*\/lib\/\(x\?emacs\/site-lisp\)$/{s,,${libdir}/\1,;p;q;}' \
2125 -e '/.*\/share\/\(x\?emacs\/site-lisp\)$/{s,,${datadir}/\1,;p;q;}' \
2128 if test -z "$am_cv_lispdir"; then
2129 am_cv_lispdir='${datadir}/emacs/site-lisp'
2133 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2134 echo "${ECHO_T}$am_cv_lispdir" >&6
2135 lispdir="$am_cv_lispdir"
2143 ac_cpp='$CPP $CPPFLAGS'
2144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2147 if test -n "$ac_tool_prefix"; then
2148 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2149 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2150 echo "$as_me:$LINENO: checking for $ac_word" >&5
2151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2152 if test "${ac_cv_prog_CC+set}" = set; then
2153 echo $ECHO_N "(cached) $ECHO_C" >&6
2155 if test -n "$CC"; then
2156 ac_cv_prog_CC="$CC" # Let the user override the test.
2158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 test -z "$as_dir" && as_dir=.
2163 for ac_exec_ext in '' $ac_executable_extensions; do
2164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2165 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2175 if test -n "$CC"; then
2176 echo "$as_me:$LINENO: result: $CC" >&5
2177 echo "${ECHO_T}$CC" >&6
2179 echo "$as_me:$LINENO: result: no" >&5
2180 echo "${ECHO_T}no" >&6
2184 if test -z "$ac_cv_prog_CC"; then
2186 # Extract the first word of "gcc", so it can be a program name with args.
2187 set dummy gcc; ac_word=$2
2188 echo "$as_me:$LINENO: checking for $ac_word" >&5
2189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2190 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2193 if test -n "$ac_ct_CC"; then
2194 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 test -z "$as_dir" && as_dir=.
2201 for ac_exec_ext in '' $ac_executable_extensions; do
2202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2203 ac_cv_prog_ac_ct_CC="gcc"
2204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2212 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2213 if test -n "$ac_ct_CC"; then
2214 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2215 echo "${ECHO_T}$ac_ct_CC" >&6
2217 echo "$as_me:$LINENO: result: no" >&5
2218 echo "${ECHO_T}no" >&6
2226 if test -z "$CC"; then
2227 if test -n "$ac_tool_prefix"; then
2228 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2229 set dummy ${ac_tool_prefix}cc; ac_word=$2
2230 echo "$as_me:$LINENO: checking for $ac_word" >&5
2231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2232 if test "${ac_cv_prog_CC+set}" = set; then
2233 echo $ECHO_N "(cached) $ECHO_C" >&6
2235 if test -n "$CC"; then
2236 ac_cv_prog_CC="$CC" # Let the user override the test.
2238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242 test -z "$as_dir" && as_dir=.
2243 for ac_exec_ext in '' $ac_executable_extensions; do
2244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2245 ac_cv_prog_CC="${ac_tool_prefix}cc"
2246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2255 if test -n "$CC"; then
2256 echo "$as_me:$LINENO: result: $CC" >&5
2257 echo "${ECHO_T}$CC" >&6
2259 echo "$as_me:$LINENO: result: no" >&5
2260 echo "${ECHO_T}no" >&6
2264 if test -z "$ac_cv_prog_CC"; then
2266 # Extract the first word of "cc", so it can be a program name with args.
2267 set dummy cc; ac_word=$2
2268 echo "$as_me:$LINENO: checking for $ac_word" >&5
2269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2270 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2273 if test -n "$ac_ct_CC"; then
2274 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 test -z "$as_dir" && as_dir=.
2281 for ac_exec_ext in '' $ac_executable_extensions; do
2282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2283 ac_cv_prog_ac_ct_CC="cc"
2284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2292 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2293 if test -n "$ac_ct_CC"; then
2294 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2295 echo "${ECHO_T}$ac_ct_CC" >&6
2297 echo "$as_me:$LINENO: result: no" >&5
2298 echo "${ECHO_T}no" >&6
2307 if test -z "$CC"; then
2308 # Extract the first word of "cc", so it can be a program name with args.
2309 set dummy cc; ac_word=$2
2310 echo "$as_me:$LINENO: checking for $ac_word" >&5
2311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2312 if test "${ac_cv_prog_CC+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 if test -n "$CC"; then
2316 ac_cv_prog_CC="$CC" # Let the user override the test.
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323 test -z "$as_dir" && as_dir=.
2324 for ac_exec_ext in '' $ac_executable_extensions; do
2325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2326 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2327 ac_prog_rejected=yes
2331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2337 if test $ac_prog_rejected = yes; then
2338 # We found a bogon in the path, so make sure we never use it.
2339 set dummy $ac_cv_prog_CC
2341 if test $# != 0; then
2342 # We chose a different compiler from the bogus one.
2343 # However, it has the same basename, so the bogon will be chosen
2344 # first if we set CC to just the basename; use the full file name.
2346 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2352 if test -n "$CC"; then
2353 echo "$as_me:$LINENO: result: $CC" >&5
2354 echo "${ECHO_T}$CC" >&6
2356 echo "$as_me:$LINENO: result: no" >&5
2357 echo "${ECHO_T}no" >&6
2361 if test -z "$CC"; then
2362 if test -n "$ac_tool_prefix"; then
2365 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2366 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2367 echo "$as_me:$LINENO: checking for $ac_word" >&5
2368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2369 if test "${ac_cv_prog_CC+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2372 if test -n "$CC"; then
2373 ac_cv_prog_CC="$CC" # Let the user override the test.
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379 test -z "$as_dir" && as_dir=.
2380 for ac_exec_ext in '' $ac_executable_extensions; do
2381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2382 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2392 if test -n "$CC"; then
2393 echo "$as_me:$LINENO: result: $CC" >&5
2394 echo "${ECHO_T}$CC" >&6
2396 echo "$as_me:$LINENO: result: no" >&5
2397 echo "${ECHO_T}no" >&6
2400 test -n "$CC" && break
2403 if test -z "$CC"; then
2407 # Extract the first word of "$ac_prog", so it can be a program name with args.
2408 set dummy $ac_prog; ac_word=$2
2409 echo "$as_me:$LINENO: checking for $ac_word" >&5
2410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2411 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2412 echo $ECHO_N "(cached) $ECHO_C" >&6
2414 if test -n "$ac_ct_CC"; then
2415 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421 test -z "$as_dir" && as_dir=.
2422 for ac_exec_ext in '' $ac_executable_extensions; do
2423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2424 ac_cv_prog_ac_ct_CC="$ac_prog"
2425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2433 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2434 if test -n "$ac_ct_CC"; then
2435 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2436 echo "${ECHO_T}$ac_ct_CC" >&6
2438 echo "$as_me:$LINENO: result: no" >&5
2439 echo "${ECHO_T}no" >&6
2442 test -n "$ac_ct_CC" && break
2451 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2452 See \`config.log' for more details." >&5
2453 echo "$as_me: error: no acceptable C compiler found in \$PATH
2454 See \`config.log' for more details." >&2;}
2455 { (exit 1); exit 1; }; }
2457 # Provide some information about the compiler.
2458 echo "$as_me:$LINENO:" \
2459 "checking for C compiler version" >&5
2460 ac_compiler=`set X $ac_compile; echo $2`
2461 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2462 (eval $ac_compiler --version </dev/null >&5) 2>&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }
2466 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2467 (eval $ac_compiler -v </dev/null >&5) 2>&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }
2471 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2472 (eval $ac_compiler -V </dev/null >&5) 2>&5
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }
2477 cat >conftest.$ac_ext <<_ACEOF
2478 #line $LINENO "configure"
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h. */
2493 ac_clean_files_save=$ac_clean_files
2494 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2495 # Try to create an executable without -o first, disregard a.out.
2496 # It will help us diagnose broken compilers, and finding out an intuition
2498 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2499 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2500 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2501 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2502 (eval $ac_link_default) 2>&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; then
2506 # Find the output, starting from the most likely. This scheme is
2507 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2510 # Be careful to initialize this variable, since it used to be cached.
2511 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2513 # b.out is created by i960 compilers.
2514 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2516 test -f "$ac_file" || continue
2518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2521 # This is the source file.
2524 # We found the default executable, but exeext='' is most
2528 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2529 # FIXME: I believe we export ac_cv_exeext for Libtool,
2530 # but it would be cool to find out if it's true. Does anybody
2531 # maintain Libtool? --akim.
2539 echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2542 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2543 See \`config.log' for more details." >&5
2544 echo "$as_me: error: C compiler cannot create executables
2545 See \`config.log' for more details." >&2;}
2546 { (exit 77); exit 77; }; }
2549 ac_exeext=$ac_cv_exeext
2550 echo "$as_me:$LINENO: result: $ac_file" >&5
2551 echo "${ECHO_T}$ac_file" >&6
2553 # Check the compiler produces executables we can run. If not, either
2554 # the compiler is broken, or we cross compile.
2555 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2556 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2557 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2558 # If not cross compiling, check that we can run a simple program.
2559 if test "$cross_compiling" != yes; then
2560 if { ac_try='./$ac_file'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; }; then
2568 if test "$cross_compiling" = maybe; then
2571 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2572 If you meant to cross compile, use \`--host'.
2573 See \`config.log' for more details." >&5
2574 echo "$as_me: error: cannot run C compiled programs.
2575 If you meant to cross compile, use \`--host'.
2576 See \`config.log' for more details." >&2;}
2577 { (exit 1); exit 1; }; }
2581 echo "$as_me:$LINENO: result: yes" >&5
2582 echo "${ECHO_T}yes" >&6
2584 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2585 ac_clean_files=$ac_clean_files_save
2586 # Check the compiler produces executables we can run. If not, either
2587 # the compiler is broken, or we cross compile.
2588 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2589 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2590 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2591 echo "${ECHO_T}$cross_compiling" >&6
2593 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2594 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2596 (eval $ac_link) 2>&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; then
2600 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2601 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2602 # work properly (i.e., refer to `conftest.exe'), while it won't with
2604 for ac_file in conftest.exe conftest conftest.*; do
2605 test -f "$ac_file" || continue
2607 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2608 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2615 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2616 See \`config.log' for more details." >&5
2617 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2618 See \`config.log' for more details." >&2;}
2619 { (exit 1); exit 1; }; }
2622 rm -f conftest$ac_cv_exeext
2623 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2624 echo "${ECHO_T}$ac_cv_exeext" >&6
2626 rm -f conftest.$ac_ext
2627 EXEEXT=$ac_cv_exeext
2629 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2630 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2631 if test "${ac_cv_objext+set}" = set; then
2632 echo $ECHO_N "(cached) $ECHO_C" >&6
2634 cat >conftest.$ac_ext <<_ACEOF
2635 #line $LINENO "configure"
2638 cat confdefs.h >>conftest.$ac_ext
2639 cat >>conftest.$ac_ext <<_ACEOF
2640 /* end confdefs.h. */
2650 rm -f conftest.o conftest.obj
2651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2652 (eval $ac_compile) 2>&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; then
2656 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2658 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2659 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2664 echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2667 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2668 See \`config.log' for more details." >&5
2669 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2670 See \`config.log' for more details." >&2;}
2671 { (exit 1); exit 1; }; }
2674 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2676 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2677 echo "${ECHO_T}$ac_cv_objext" >&6
2678 OBJEXT=$ac_cv_objext
2680 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2681 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2682 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 cat >conftest.$ac_ext <<_ACEOF
2686 #line $LINENO "configure"
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h. */
2704 rm -f conftest.$ac_objext
2705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2706 (eval $ac_compile) 2>&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } &&
2710 { ac_try='test -s conftest.$ac_objext'
2711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; }; then
2718 echo "$as_me: failed program was:" >&5
2719 sed 's/^/| /' conftest.$ac_ext >&5
2723 rm -f conftest.$ac_objext conftest.$ac_ext
2724 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2727 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2728 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2729 GCC=`test $ac_compiler_gnu = yes && echo yes`
2730 ac_test_CFLAGS=${CFLAGS+set}
2731 ac_save_CFLAGS=$CFLAGS
2733 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2734 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2735 if test "${ac_cv_prog_cc_g+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2738 cat >conftest.$ac_ext <<_ACEOF
2739 #line $LINENO "configure"
2742 cat confdefs.h >>conftest.$ac_ext
2743 cat >>conftest.$ac_ext <<_ACEOF
2744 /* end confdefs.h. */
2754 rm -f conftest.$ac_objext
2755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2756 (eval $ac_compile) 2>&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); } &&
2760 { ac_try='test -s conftest.$ac_objext'
2761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; }; then
2768 echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2773 rm -f conftest.$ac_objext conftest.$ac_ext
2775 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2776 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2777 if test "$ac_test_CFLAGS" = set; then
2778 CFLAGS=$ac_save_CFLAGS
2779 elif test $ac_cv_prog_cc_g = yes; then
2780 if test "$GCC" = yes; then
2786 if test "$GCC" = yes; then
2792 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2793 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2794 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2795 echo $ECHO_N "(cached) $ECHO_C" >&6
2797 ac_cv_prog_cc_stdc=no
2799 cat >conftest.$ac_ext <<_ACEOF
2800 #line $LINENO "configure"
2803 cat confdefs.h >>conftest.$ac_ext
2804 cat >>conftest.$ac_ext <<_ACEOF
2805 /* end confdefs.h. */
2808 #include <sys/types.h>
2809 #include <sys/stat.h>
2810 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2811 struct buf { int x; };
2812 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2813 static char *e (p, i)
2819 static char *f (char * (*g) (char **, int), char **p, ...)
2824 s = g (p, va_arg (v,int));
2828 int test (int i, double x);
2829 struct s1 {int (*f) (int a);};
2830 struct s2 {int (*f) (double a);};
2831 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2837 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2842 # Don't try gcc -ansi; that turns off useful extensions and
2843 # breaks some systems' header files.
2844 # AIX -qlanglvl=ansi
2845 # Ultrix and OSF/1 -std1
2846 # HP-UX 10.20 and later -Ae
2847 # HP-UX older versions -Aa -D_HPUX_SOURCE
2848 # SVR4 -Xc -D__EXTENSIONS__
2849 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2851 CC="$ac_save_CC $ac_arg"
2852 rm -f conftest.$ac_objext
2853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2854 (eval $ac_compile) 2>&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); } &&
2858 { ac_try='test -s conftest.$ac_objext'
2859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); }; }; then
2864 ac_cv_prog_cc_stdc=$ac_arg
2867 echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2871 rm -f conftest.$ac_objext
2873 rm -f conftest.$ac_ext conftest.$ac_objext
2878 case "x$ac_cv_prog_cc_stdc" in
2880 echo "$as_me:$LINENO: result: none needed" >&5
2881 echo "${ECHO_T}none needed" >&6 ;;
2883 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2884 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2885 CC="$CC $ac_cv_prog_cc_stdc" ;;
2888 # Some people use a C++ compiler to compile C. Since we use `exit',
2889 # in C++ we need to declare it. In case someone uses the same compiler
2890 # for both compiling C and C++ we need to have the C++ compiler decide
2891 # the declaration of exit, since it's the most demanding environment.
2892 cat >conftest.$ac_ext <<_ACEOF
2897 rm -f conftest.$ac_objext
2898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2899 (eval $ac_compile) 2>&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); } &&
2903 { ac_try='test -s conftest.$ac_objext'
2904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }; }; then
2909 for ac_declaration in \
2911 '#include <stdlib.h>' \
2912 'extern "C" void std::exit (int) throw (); using std::exit;' \
2913 'extern "C" void std::exit (int); using std::exit;' \
2914 'extern "C" void exit (int) throw ();' \
2915 'extern "C" void exit (int);' \
2918 cat >conftest.$ac_ext <<_ACEOF
2919 #line $LINENO "configure"
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h. */
2935 rm -f conftest.$ac_objext
2936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2937 (eval $ac_compile) 2>&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } &&
2941 { ac_try='test -s conftest.$ac_objext'
2942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }; }; then
2949 echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.$ac_ext >&5
2954 rm -f conftest.$ac_objext conftest.$ac_ext
2955 cat >conftest.$ac_ext <<_ACEOF
2956 #line $LINENO "configure"
2959 cat confdefs.h >>conftest.$ac_ext
2960 cat >>conftest.$ac_ext <<_ACEOF
2961 /* end confdefs.h. */
2971 rm -f conftest.$ac_objext
2972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2973 (eval $ac_compile) 2>&5
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); } &&
2977 { ac_try='test -s conftest.$ac_objext'
2978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); }; }; then
2985 echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2989 rm -f conftest.$ac_objext conftest.$ac_ext
2992 if test -n "$ac_declaration"; then
2993 echo '#ifdef __cplusplus' >>confdefs.h
2994 echo $ac_declaration >>confdefs.h
2995 echo '#endif' >>confdefs.h
2999 echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3003 rm -f conftest.$ac_objext conftest.$ac_ext
3005 ac_cpp='$CPP $CPPFLAGS'
3006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009 DEPDIR="${am__leading_dot}deps"
3011 ac_config_commands="$ac_config_commands depfiles"
3014 am_make=${MAKE-make}
3015 cat > confinc << 'END'
3019 # If we don't find an include directive, just comment out the code.
3020 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3021 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3025 # First try GNU make style include.
3026 echo "include confinc" > confmf
3027 # We grep out `Entering directory' and `Leaving directory'
3028 # messages which can occur if `w' ends up in MAKEFLAGS.
3029 # In particular we don't look at `^make:' because GNU make might
3030 # be invoked under some other name (usually "gmake"), in which
3031 # case it prints its new name instead of `make'.
3032 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3037 # Now try BSD make style include.
3038 if test "$am__include" = "#"; then
3039 echo '.include "confinc"' > confmf
3040 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3041 am__include=.include
3048 echo "$as_me:$LINENO: result: $_am_result" >&5
3049 echo "${ECHO_T}$_am_result" >&6
3050 rm -f confinc confmf
3052 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3053 if test "${enable_dependency_tracking+set}" = set; then
3054 enableval="$enable_dependency_tracking"
3057 if test "x$enable_dependency_tracking" != xno; then
3058 am_depcomp="$ac_aux_dir/depcomp"
3063 if test "x$enable_dependency_tracking" != xno; then
3074 depcc="$CC" am_compiler_list=
3076 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3077 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3078 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3081 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3082 # We make a subdir and do the tests there. Otherwise we can end up
3083 # making bogus files that we don't know about and never remove. For
3084 # instance it was reported that on HP-UX the gcc test will end up
3085 # making a dummy file named `D' -- because `-MD' means `put the output
3088 # Copy depcomp to subdir because otherwise we won't find it if we're
3089 # using a relative directory.
3090 cp "$am_depcomp" conftest.dir
3093 am_cv_CC_dependencies_compiler_type=none
3094 if test "$am_compiler_list" = ""; then
3095 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3097 for depmode in $am_compiler_list; do
3098 # We need to recreate these files for each test, as the compiler may
3099 # overwrite some of them when testing with obscure command lines.
3100 # This happens at least with the AIX C compiler.
3101 echo '#include "conftest.h"' > conftest.c
3102 echo 'int i;' > conftest.h
3103 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3107 # after this tag, mechanisms are not by side-effect, so they'll
3108 # only be used when explicitly requested
3109 if test "x$enable_dependency_tracking" = xyes; then
3117 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3118 # mode. It turns out that the SunPro C++ compiler does not properly
3119 # handle `-M -o', and we need to detect this.
3120 if depmode=$depmode \
3121 source=conftest.c object=conftest.o \
3122 depfile=conftest.Po tmpdepfile=conftest.TPo \
3123 $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
3124 >/dev/null 2>conftest.err &&
3125 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3126 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3127 # icc doesn't choke on unknown options, it will just issue warnings
3128 # (even with -Werror). So we grep stderr for any message
3129 # that says an option was ignored.
3130 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3131 am_cv_CC_dependencies_compiler_type=$depmode
3140 am_cv_CC_dependencies_compiler_type=none
3144 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3145 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3146 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3151 test "x$enable_dependency_tracking" != xno \
3152 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3154 am__fastdepCC_FALSE='#'
3156 am__fastdepCC_TRUE='#'
3157 am__fastdepCC_FALSE=
3163 ac_cpp='$CPP $CPPFLAGS'
3164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3167 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3168 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3169 # On Suns, sometimes $CPP names a directory.
3170 if test -n "$CPP" && test -d "$CPP"; then
3173 if test -z "$CPP"; then
3174 if test "${ac_cv_prog_CPP+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6
3177 # Double quotes because CPP needs to be expanded
3178 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3181 for ac_c_preproc_warn_flag in '' yes
3183 # Use a header file that comes with gcc, so configuring glibc
3184 # with a fresh cross-compiler works.
3185 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3186 # <limits.h> exists even on freestanding compilers.
3187 # On the NeXT, cc -E runs the code through the compiler's parser,
3188 # not just through cpp. "Syntax error" is here to catch this case.
3189 cat >conftest.$ac_ext <<_ACEOF
3190 #line $LINENO "configure"
3193 cat confdefs.h >>conftest.$ac_ext
3194 cat >>conftest.$ac_ext <<_ACEOF
3195 /* end confdefs.h. */
3197 # include <limits.h>
3199 # include <assert.h>
3203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3206 grep -v '^ *+' conftest.er1 >conftest.err
3208 cat conftest.err >&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); } >/dev/null; then
3211 if test -s conftest.err; then
3212 ac_cpp_err=$ac_c_preproc_warn_flag
3219 if test -z "$ac_cpp_err"; then
3222 echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3225 # Broken: fails on valid input.
3228 rm -f conftest.err conftest.$ac_ext
3230 # OK, works on sane cases. Now check whether non-existent headers
3231 # can be detected and how.
3232 cat >conftest.$ac_ext <<_ACEOF
3233 #line $LINENO "configure"
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h. */
3239 #include <ac_nonexistent.h>
3241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3244 grep -v '^ *+' conftest.er1 >conftest.err
3246 cat conftest.err >&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } >/dev/null; then
3249 if test -s conftest.err; then
3250 ac_cpp_err=$ac_c_preproc_warn_flag
3257 if test -z "$ac_cpp_err"; then
3258 # Broken: success on invalid input.
3261 echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3264 # Passes both tests.
3268 rm -f conftest.err conftest.$ac_ext
3271 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3272 rm -f conftest.err conftest.$ac_ext
3273 if $ac_preproc_ok; then
3285 echo "$as_me:$LINENO: result: $CPP" >&5
3286 echo "${ECHO_T}$CPP" >&6
3288 for ac_c_preproc_warn_flag in '' yes
3290 # Use a header file that comes with gcc, so configuring glibc
3291 # with a fresh cross-compiler works.
3292 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3293 # <limits.h> exists even on freestanding compilers.
3294 # On the NeXT, cc -E runs the code through the compiler's parser,
3295 # not just through cpp. "Syntax error" is here to catch this case.
3296 cat >conftest.$ac_ext <<_ACEOF
3297 #line $LINENO "configure"
3300 cat confdefs.h >>conftest.$ac_ext
3301 cat >>conftest.$ac_ext <<_ACEOF
3302 /* end confdefs.h. */
3304 # include <limits.h>
3306 # include <assert.h>
3310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3313 grep -v '^ *+' conftest.er1 >conftest.err
3315 cat conftest.err >&5
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); } >/dev/null; then
3318 if test -s conftest.err; then
3319 ac_cpp_err=$ac_c_preproc_warn_flag
3326 if test -z "$ac_cpp_err"; then
3329 echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3332 # Broken: fails on valid input.
3335 rm -f conftest.err conftest.$ac_ext
3337 # OK, works on sane cases. Now check whether non-existent headers
3338 # can be detected and how.
3339 cat >conftest.$ac_ext <<_ACEOF
3340 #line $LINENO "configure"
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h. */
3346 #include <ac_nonexistent.h>
3348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3351 grep -v '^ *+' conftest.er1 >conftest.err
3353 cat conftest.err >&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); } >/dev/null; then
3356 if test -s conftest.err; then
3357 ac_cpp_err=$ac_c_preproc_warn_flag
3364 if test -z "$ac_cpp_err"; then
3365 # Broken: success on invalid input.
3368 echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3371 # Passes both tests.
3375 rm -f conftest.err conftest.$ac_ext
3378 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3379 rm -f conftest.err conftest.$ac_ext
3380 if $ac_preproc_ok; then
3383 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3384 See \`config.log' for more details." >&5
3385 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3386 See \`config.log' for more details." >&2;}
3387 { (exit 1); exit 1; }; }
3391 ac_cpp='$CPP $CPPFLAGS'
3392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3397 echo "$as_me:$LINENO: checking for egrep" >&5
3398 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3399 if test "${ac_cv_prog_egrep+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3403 then ac_cv_prog_egrep='grep -E'
3404 else ac_cv_prog_egrep='egrep'
3407 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3408 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3409 EGREP=$ac_cv_prog_egrep
3412 if test $ac_cv_c_compiler_gnu = yes; then
3413 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3414 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3415 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3416 echo $ECHO_N "(cached) $ECHO_C" >&6
3418 ac_pattern="Autoconf.*'x'"
3419 cat >conftest.$ac_ext <<_ACEOF
3420 #line $LINENO "configure"
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3430 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3431 ac_cv_prog_gcc_traditional=yes
3433 ac_cv_prog_gcc_traditional=no
3438 if test $ac_cv_prog_gcc_traditional = no; then
3439 cat >conftest.$ac_ext <<_ACEOF
3440 #line $LINENO "configure"
3443 cat confdefs.h >>conftest.$ac_ext
3444 cat >>conftest.$ac_ext <<_ACEOF
3445 /* end confdefs.h. */
3449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3450 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3451 ac_cv_prog_gcc_traditional=yes
3457 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3458 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3459 if test $ac_cv_prog_gcc_traditional = yes; then
3460 CC="$CC -traditional"
3464 # Find a good install program. We prefer a C program (faster),
3465 # so one script is as good as another. But avoid the broken or
3466 # incompatible versions:
3467 # SysV /etc/install, /usr/sbin/install
3468 # SunOS /usr/etc/install
3469 # IRIX /sbin/install
3471 # AmigaOS /C/install, which installs bootblocks on floppy discs
3472 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3473 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3474 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3475 # ./install, which can be erroneously created by make from ./install.sh.
3476 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3477 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3478 if test -z "$INSTALL"; then
3479 if test "${ac_cv_path_install+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3486 test -z "$as_dir" && as_dir=.
3487 # Account for people who put trailing slashes in PATH elements.
3489 ./ | .// | /cC/* | \
3490 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3493 # OSF1 and SCO ODT 3.0 have their own names for install.
3494 # Don't use installbsd from OSF since it installs stuff as root
3496 for ac_prog in ginstall scoinst install; do
3497 for ac_exec_ext in '' $ac_executable_extensions; do
3498 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3499 if test $ac_prog = install &&
3500 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3501 # AIX install. It has an incompatible calling convention.
3503 elif test $ac_prog = install &&
3504 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3505 # program-specific install script used by HP pwplus--don't use.
3508 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3520 if test "${ac_cv_path_install+set}" = set; then
3521 INSTALL=$ac_cv_path_install
3523 # As a last resort, use the slow shell script. We don't cache a
3524 # path for INSTALL within a source directory, because that will
3525 # break other packages using the cache if that directory is
3526 # removed, or if the path is relative.
3527 INSTALL=$ac_install_sh
3530 echo "$as_me:$LINENO: result: $INSTALL" >&5
3531 echo "${ECHO_T}$INSTALL" >&6
3533 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3534 # It thinks the first close brace ends the variable substitution.
3535 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3537 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3539 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3541 for ac_prog in gawk mawk nawk awk
3543 # Extract the first word of "$ac_prog", so it can be a program name with args.
3544 set dummy $ac_prog; ac_word=$2
3545 echo "$as_me:$LINENO: checking for $ac_word" >&5
3546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3547 if test "${ac_cv_prog_AWK+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 if test -n "$AWK"; then
3551 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 test -z "$as_dir" && as_dir=.
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3560 ac_cv_prog_AWK="$ac_prog"
3561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 if test -n "$AWK"; then
3571 echo "$as_me:$LINENO: result: $AWK" >&5
3572 echo "${ECHO_T}$AWK" >&6
3574 echo "$as_me:$LINENO: result: no" >&5
3575 echo "${ECHO_T}no" >&6
3578 test -n "$AWK" && break
3581 if test -n "$ac_tool_prefix"; then
3582 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3583 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3584 echo "$as_me:$LINENO: checking for $ac_word" >&5
3585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3586 if test "${ac_cv_prog_RANLIB+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3589 if test -n "$RANLIB"; then
3590 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 test -z "$as_dir" && as_dir=.
3597 for ac_exec_ext in '' $ac_executable_extensions; do
3598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3599 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3608 RANLIB=$ac_cv_prog_RANLIB
3609 if test -n "$RANLIB"; then
3610 echo "$as_me:$LINENO: result: $RANLIB" >&5
3611 echo "${ECHO_T}$RANLIB" >&6
3613 echo "$as_me:$LINENO: result: no" >&5
3614 echo "${ECHO_T}no" >&6
3618 if test -z "$ac_cv_prog_RANLIB"; then
3619 ac_ct_RANLIB=$RANLIB
3620 # Extract the first word of "ranlib", so it can be a program name with args.
3621 set dummy ranlib; ac_word=$2
3622 echo "$as_me:$LINENO: checking for $ac_word" >&5
3623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3624 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 if test -n "$ac_ct_RANLIB"; then
3628 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 test -z "$as_dir" && as_dir=.
3635 for ac_exec_ext in '' $ac_executable_extensions; do
3636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3637 ac_cv_prog_ac_ct_RANLIB="ranlib"
3638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3644 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3647 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3648 if test -n "$ac_ct_RANLIB"; then
3649 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3650 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3652 echo "$as_me:$LINENO: result: no" >&5
3653 echo "${ECHO_T}no" >&6
3656 RANLIB=$ac_ct_RANLIB
3658 RANLIB="$ac_cv_prog_RANLIB"
3661 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3662 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3664 if test "$LN_S" = "ln -s"; then
3665 echo "$as_me:$LINENO: result: yes" >&5
3666 echo "${ECHO_T}yes" >&6
3668 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3669 echo "${ECHO_T}no, using $LN_S" >&6
3672 echo "$as_me:$LINENO: checking whether -rdynamic option is recognized" >&5
3673 echo $ECHO_N "checking whether -rdynamic option is recognized... $ECHO_C" >&6
3674 ac_ccoption=`echo rdynamic | sed 'y%./+-%__p_%'`
3675 if eval "test \"\${timidity_cv_ccoption_$ac_ccoption+set}\" = set"; then
3676 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 cat > conftest.$ac_ext <<EOF
3679 int main() {return 0;}
3681 if ${CC-cc} $LDFLAGS $CFLAGS -o conftest${ac_exeext} -rdynamic conftest.$ac_ext > conftest.out 2>&1; then
3682 if test -s conftest.out; then
3683 eval "timidity_cv_ccoption_$ac_ccoption=no"
3685 eval "timidity_cv_ccoption_$ac_ccoption=yes"
3688 eval "timidity_cv_ccoption_$ac_ccoption=no"
3693 if eval "test \"`echo '$timidity_cv_ccoption_'$ac_ccoption`\" = yes"; then
3694 echo "$as_me:$LINENO: result: yes" >&5
3695 echo "${ECHO_T}yes" >&6
3698 echo "$as_me:$LINENO: result: no" >&5
3699 echo "${ECHO_T}no" >&6
3704 # Checks for target dependencies
3707 # Check whether --with-elf or --without-elf was given.
3708 if test "${with_elf+set}" = set; then
3716 # Check whether --with-simd or --without-simd was given.
3717 if test "${with_simd+set}" = set; then
3718 withval="$with_simd"
3727 test -n "$SHLD" || SHLD="ld -b"
3731 case ".$CC" in .cc*) EXTRACFLAGS="-signed";; esac
3732 test -n "$SHLD" || SHLD="cc -shared -all"
3736 test -n "$SHLD" || SHLD="$CC -shared -nostartfiles"
3741 test -n "$SHLD" || SHLD="ld -Bshareable"
3745 if test "$ELFFORMAT" = yes; then
3746 test -n "$SHLD" || SHLD="ld -Bshareable"
3749 SHLDFLAGS="-L/usr/X11R6/lib/aout $SHLDFLAGS"
3750 test -n "$SHLD" || SHLD="env OBJFORMAT=aout ld -shared"
3756 # EXTRALIBS="$EXTRALIBS -lxpg4"
3757 # test -n "$SHLD" || SHLD="ld -Bshareable"
3762 EXTRADEFS="-D__W32__"
3765 "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3766 "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3767 "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3768 *) test -n "$SHLD" || SHLD="unknown" ;;
3772 lib_user32_test=-luser32
3775 EXTRADEFS="-D__W32__"
3778 "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3779 "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3780 "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3781 *) test -n "$SHLD" || SHLD="unknown" ;;
3785 lib_user32_test=-luser32
3789 test -n "$SHLD" || SHLD="ld -Bdynamic -G"
3793 EXTRADEFS="-DSOLARIS"
3794 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3798 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3802 if test "x$SIMD" = "xyes"; then
3804 cat >>confdefs.h <<\_ACEOF
3805 #define USE_ALTIVEC 1
3808 # EXTRACFLAGS="$EXTRACFLAGS -faltivec -mabi=altivec -maltivec" # for GCC3.
3809 EXTRACFLAGS="$EXTRACFLAGS -faltivec"
3812 cat >>confdefs.h <<\_ACEOF
3813 #define USE_ALTIVEC 0
3817 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
3818 LDOPTS="-dynamic -undefined suppress -flat_namespace $LDOPTS"
3819 test -n "$SHLD" || SHLD="$CC -dynamic -bundle -undefined suppress -flat_namespace $LDFLAGS"
3823 test -n "$SHLD" || \
3824 if test "x$GCC" = xyes; then
3827 SHLD="ld -Bdynamic -G"
3834 # Checks for libraries.
3836 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
3837 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
3838 if test "${ac_cv_lib_m_sqrt+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3841 ac_check_lib_save_LIBS=$LIBS
3843 cat >conftest.$ac_ext <<_ACEOF
3844 #line $LINENO "configure"
3847 cat confdefs.h >>conftest.$ac_ext
3848 cat >>conftest.$ac_ext <<_ACEOF
3849 /* end confdefs.h. */
3851 /* Override any gcc2 internal prototype to avoid an error. */
3855 /* We use char because int might match the return type of a gcc2
3856 builtin and then its argument prototype would still apply. */
3866 rm -f conftest.$ac_objext conftest$ac_exeext
3867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3868 (eval $ac_link) 2>&5
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); } &&
3872 { ac_try='test -s conftest$ac_exeext'
3873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; }; then
3878 ac_cv_lib_m_sqrt=yes
3880 echo "$as_me: failed program was:" >&5
3881 sed 's/^/| /' conftest.$ac_ext >&5
3885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3886 LIBS=$ac_check_lib_save_LIBS
3888 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
3889 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
3890 if test $ac_cv_lib_m_sqrt = yes; then
3891 cat >>confdefs.h <<_ACEOF
3900 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3901 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3902 if test "${ac_cv_lib_socket_socket+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3905 ac_check_lib_save_LIBS=$LIBS
3906 LIBS="-lsocket $LIBS"
3907 cat >conftest.$ac_ext <<_ACEOF
3908 #line $LINENO "configure"
3911 cat confdefs.h >>conftest.$ac_ext
3912 cat >>conftest.$ac_ext <<_ACEOF
3913 /* end confdefs.h. */
3915 /* Override any gcc2 internal prototype to avoid an error. */
3919 /* We use char because int might match the return type of a gcc2
3920 builtin and then its argument prototype would still apply. */
3930 rm -f conftest.$ac_objext conftest$ac_exeext
3931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3932 (eval $ac_link) 2>&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); } &&
3936 { ac_try='test -s conftest$ac_exeext'
3937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); }; }; then
3942 ac_cv_lib_socket_socket=yes
3944 echo "$as_me: failed program was:" >&5
3945 sed 's/^/| /' conftest.$ac_ext >&5
3947 ac_cv_lib_socket_socket=no
3949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3950 LIBS=$ac_check_lib_save_LIBS
3952 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3953 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3954 if test $ac_cv_lib_socket_socket = yes; then
3955 cat >>confdefs.h <<_ACEOF
3956 #define HAVE_LIBSOCKET 1
3959 LIBS="-lsocket $LIBS"
3963 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
3964 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
3965 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 ac_check_lib_save_LIBS=$LIBS
3970 cat >conftest.$ac_ext <<_ACEOF
3971 #line $LINENO "configure"
3974 cat confdefs.h >>conftest.$ac_ext
3975 cat >>conftest.$ac_ext <<_ACEOF
3976 /* end confdefs.h. */
3978 /* Override any gcc2 internal prototype to avoid an error. */
3982 /* We use char because int might match the return type of a gcc2
3983 builtin and then its argument prototype would still apply. */
3993 rm -f conftest.$ac_objext conftest$ac_exeext
3994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3995 (eval $ac_link) 2>&5
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); } &&
3999 { ac_try='test -s conftest$ac_exeext'
4000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); }; }; then
4005 ac_cv_lib_dl_dlopen=yes
4007 echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4010 ac_cv_lib_dl_dlopen=no
4012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4013 LIBS=$ac_check_lib_save_LIBS
4015 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4016 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4017 if test $ac_cv_lib_dl_dlopen = yes; then
4021 echo "$as_me:$LINENO: checking for NSLinkModule in -lobjc" >&5
4022 echo $ECHO_N "checking for NSLinkModule in -lobjc... $ECHO_C" >&6
4023 if test "${ac_cv_lib_objc_NSLinkModule+set}" = set; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4026 ac_check_lib_save_LIBS=$LIBS
4028 cat >conftest.$ac_ext <<_ACEOF
4029 #line $LINENO "configure"
4032 cat confdefs.h >>conftest.$ac_ext
4033 cat >>conftest.$ac_ext <<_ACEOF
4034 /* end confdefs.h. */
4036 /* Override any gcc2 internal prototype to avoid an error. */
4040 /* We use char because int might match the return type of a gcc2
4041 builtin and then its argument prototype would still apply. */
4042 char NSLinkModule ();
4051 rm -f conftest.$ac_objext conftest$ac_exeext
4052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4053 (eval $ac_link) 2>&5
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); } &&
4057 { ac_try='test -s conftest$ac_exeext'
4058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); }; }; then
4063 ac_cv_lib_objc_NSLinkModule=yes
4065 echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4068 ac_cv_lib_objc_NSLinkModule=no
4070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4071 LIBS=$ac_check_lib_save_LIBS
4073 echo "$as_me:$LINENO: result: $ac_cv_lib_objc_NSLinkModule" >&5
4074 echo "${ECHO_T}$ac_cv_lib_objc_NSLinkModule" >&6
4075 if test $ac_cv_lib_objc_NSLinkModule = yes; then
4078 # Mac OS X need this.
4080 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
4081 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
4082 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 ac_check_lib_save_LIBS=$LIBS
4087 cat >conftest.$ac_ext <<_ACEOF
4088 #line $LINENO "configure"
4091 cat confdefs.h >>conftest.$ac_ext
4092 cat >>conftest.$ac_ext <<_ACEOF
4093 /* end confdefs.h. */
4095 /* Override any gcc2 internal prototype to avoid an error. */
4099 /* We use char because int might match the return type of a gcc2
4100 builtin and then its argument prototype would still apply. */
4110 rm -f conftest.$ac_objext conftest$ac_exeext
4111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4112 (eval $ac_link) 2>&5
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); } &&
4116 { ac_try='test -s conftest$ac_exeext'
4117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); }; }; then
4122 ac_cv_lib_xpg4_setlocale=yes
4124 echo "$as_me: failed program was:" >&5
4125 sed 's/^/| /' conftest.$ac_ext >&5
4127 ac_cv_lib_xpg4_setlocale=no
4129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4130 LIBS=$ac_check_lib_save_LIBS
4132 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
4133 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
4134 if test $ac_cv_lib_xpg4_setlocale = yes; then
4135 cat >>confdefs.h <<_ACEOF
4136 #define HAVE_LIBXPG4 1
4142 # Mac OS X (and maybe NetBSD) need this.
4144 for ac_func in gethostbyname
4146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4147 echo "$as_me:$LINENO: checking for $ac_func" >&5
4148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4149 if eval "test \"\${$as_ac_var+set}\" = set"; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 cat >conftest.$ac_ext <<_ACEOF
4153 #line $LINENO "configure"
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h. */
4159 /* System header to define __stub macros and hopefully few prototypes,
4160 which can conflict with char $ac_func (); below.
4161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4162 <limits.h> exists even on freestanding compilers. */
4164 # include <limits.h>
4166 # include <assert.h>
4168 /* Override any gcc2 internal prototype to avoid an error. */
4173 /* We use char because int might match the return type of a gcc2
4174 builtin and then its argument prototype would still apply. */
4176 /* The GNU C library defines this for functions which it implements
4177 to always fail with ENOSYS. Some functions are actually named
4178 something starting with __ and the normal name is an alias. */
4179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4182 char (*f) () = $ac_func;
4191 return f != $ac_func;
4196 rm -f conftest.$ac_objext conftest$ac_exeext
4197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4198 (eval $ac_link) 2>&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); } &&
4202 { ac_try='test -s conftest$ac_exeext'
4203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; }; then
4208 eval "$as_ac_var=yes"
4210 echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4213 eval "$as_ac_var=no"
4215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4218 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4219 if test `eval echo '${'$as_ac_var'}'` = yes; then
4220 cat >>confdefs.h <<_ACEOF
4221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4226 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4227 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4228 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 ac_check_lib_save_LIBS=$LIBS
4233 cat >conftest.$ac_ext <<_ACEOF
4234 #line $LINENO "configure"
4237 cat confdefs.h >>conftest.$ac_ext
4238 cat >>conftest.$ac_ext <<_ACEOF
4239 /* end confdefs.h. */
4241 /* Override any gcc2 internal prototype to avoid an error. */
4245 /* We use char because int might match the return type of a gcc2
4246 builtin and then its argument prototype would still apply. */
4247 char gethostbyname ();
4256 rm -f conftest.$ac_objext conftest$ac_exeext
4257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4258 (eval $ac_link) 2>&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } &&
4262 { ac_try='test -s conftest$ac_exeext'
4263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); }; }; then
4268 ac_cv_lib_nsl_gethostbyname=yes
4270 echo "$as_me: failed program was:" >&5
4271 sed 's/^/| /' conftest.$ac_ext >&5
4273 ac_cv_lib_nsl_gethostbyname=no
4275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4276 LIBS=$ac_check_lib_save_LIBS
4278 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4279 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4280 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4281 cat >>confdefs.h <<_ACEOF
4282 #define HAVE_LIBNSL 1
4292 echo "$as_me:$LINENO: checking for X" >&5
4293 echo $ECHO_N "checking for X... $ECHO_C" >&6
4296 # Check whether --with-x or --without-x was given.
4297 if test "${with_x+set}" = set; then
4301 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4302 if test "x$with_x" = xno; then
4303 # The user explicitly disabled X.
4306 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4307 # Both variables are already set.
4310 if test "${ac_cv_have_x+set}" = set; then
4311 echo $ECHO_N "(cached) $ECHO_C" >&6
4313 # One or both of the vars are not set, and there is no cached value.
4314 ac_x_includes=no ac_x_libraries=no
4316 if mkdir conftest.dir; then
4318 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4319 cat >Imakefile <<'_ACEOF'
4321 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4323 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4324 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4325 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4326 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4327 for ac_extension in a so sl; do
4328 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4329 test -f $ac_im_libdir/libX11.$ac_extension; then
4330 ac_im_usrlibdir=$ac_im_libdir; break
4333 # Screen out bogus values from the imake configuration. They are
4334 # bogus both because they are the default anyway, and because
4335 # using them would break gcc on systems where it needs fixed includes.
4336 case $ac_im_incroot in
4338 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4340 case $ac_im_usrlibdir in
4342 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4349 # Standard set of common directories for X headers.
4350 # Check X11 before X11Rn because it is often a symlink to the current release.
4362 /usr/local/X11/include
4363 /usr/local/X11R6/include
4364 /usr/local/X11R5/include
4365 /usr/local/X11R4/include
4367 /usr/local/include/X11
4368 /usr/local/include/X11R6
4369 /usr/local/include/X11R5
4370 /usr/local/include/X11R4
4374 /usr/XFree86/include/X11
4378 /usr/unsupported/include
4380 /usr/local/x11r5/include
4381 /usr/lpp/Xamples/include
4383 /usr/openwin/include
4384 /usr/openwin/share/include'
4386 if test "$ac_x_includes" = no; then
4387 # Guess where to find include files, by looking for Intrinsic.h.
4388 # First, try using that file with no special directory specified.
4389 cat >conftest.$ac_ext <<_ACEOF
4390 #line $LINENO "configure"
4393 cat confdefs.h >>conftest.$ac_ext
4394 cat >>conftest.$ac_ext <<_ACEOF
4395 /* end confdefs.h. */
4396 #include <X11/Intrinsic.h>
4398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4401 grep -v '^ *+' conftest.er1 >conftest.err
4403 cat conftest.err >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); } >/dev/null; then
4406 if test -s conftest.err; then
4407 ac_cpp_err=$ac_c_preproc_warn_flag
4414 if test -z "$ac_cpp_err"; then
4415 # We can compile using X headers with no special include directory.
4418 echo "$as_me: failed program was:" >&5
4419 sed 's/^/| /' conftest.$ac_ext >&5
4421 for ac_dir in $ac_x_header_dirs; do
4422 if test -r "$ac_dir/X11/Intrinsic.h"; then
4423 ac_x_includes=$ac_dir
4428 rm -f conftest.err conftest.$ac_ext
4429 fi # $ac_x_includes = no
4431 if test "$ac_x_libraries" = no; then
4432 # Check for the libraries.
4433 # See if we find them without any special options.
4434 # Don't add to $LIBS permanently.
4437 cat >conftest.$ac_ext <<_ACEOF
4438 #line $LINENO "configure"
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4444 #include <X11/Intrinsic.h>
4453 rm -f conftest.$ac_objext conftest$ac_exeext
4454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4455 (eval $ac_link) 2>&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } &&
4459 { ac_try='test -s conftest$ac_exeext'
4460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; }; then
4466 # We can link X programs with no special library path.
4469 echo "$as_me: failed program was:" >&5
4470 sed 's/^/| /' conftest.$ac_ext >&5
4473 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4475 # Don't even attempt the hair of trying to link an X program!
4476 for ac_extension in a so sl; do
4477 if test -r $ac_dir/libXt.$ac_extension; then
4478 ac_x_libraries=$ac_dir
4484 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4485 fi # $ac_x_libraries = no
4487 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4488 # Didn't find X anywhere. Cache the known absence of X.
4489 ac_cv_have_x="have_x=no"
4491 # Record where we found X for the cache.
4492 ac_cv_have_x="have_x=yes \
4493 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4498 eval "$ac_cv_have_x"
4501 if test "$have_x" != yes; then
4502 echo "$as_me:$LINENO: result: $have_x" >&5
4503 echo "${ECHO_T}$have_x" >&6
4506 # If each of the values was on the command line, it overrides each guess.
4507 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4508 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4509 # Update the cache value to reflect the command line values.
4510 ac_cv_have_x="have_x=yes \
4511 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4512 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4513 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4516 if test "$no_x" = yes; then
4517 # Not all programs may use this symbol, but it does not hurt to define it.
4519 cat >>confdefs.h <<\_ACEOF
4520 #define X_DISPLAY_MISSING 1
4523 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4525 if test -n "$x_includes"; then
4526 X_CFLAGS="$X_CFLAGS -I$x_includes"
4529 # It would also be nice to do this for all -L options, not just this one.
4530 if test -n "$x_libraries"; then
4531 X_LIBS="$X_LIBS -L$x_libraries"
4532 # For Solaris; some versions of Sun CC require a space after -R and
4533 # others require no space. Words are not sufficient . . . .
4534 case `(uname -sr) 2>/dev/null` in
4536 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4537 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4538 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4539 cat >conftest.$ac_ext <<_ACEOF
4540 #line $LINENO "configure"
4543 cat confdefs.h >>conftest.$ac_ext
4544 cat >>conftest.$ac_ext <<_ACEOF
4545 /* end confdefs.h. */
4555 rm -f conftest.$ac_objext conftest$ac_exeext
4556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4557 (eval $ac_link) 2>&5
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); } &&
4561 { ac_try='test -s conftest$ac_exeext'
4562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; }; then
4569 echo "$as_me: failed program was:" >&5
4570 sed 's/^/| /' conftest.$ac_ext >&5
4574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4575 if test $ac_R_nospace = yes; then
4576 echo "$as_me:$LINENO: result: no" >&5
4577 echo "${ECHO_T}no" >&6
4578 X_LIBS="$X_LIBS -R$x_libraries"
4580 LIBS="$ac_xsave_LIBS -R $x_libraries"
4581 cat >conftest.$ac_ext <<_ACEOF
4582 #line $LINENO "configure"
4585 cat confdefs.h >>conftest.$ac_ext
4586 cat >>conftest.$ac_ext <<_ACEOF
4587 /* end confdefs.h. */
4597 rm -f conftest.$ac_objext conftest$ac_exeext
4598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4599 (eval $ac_link) 2>&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); } &&
4603 { ac_try='test -s conftest$ac_exeext'
4604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }; }; then
4611 echo "$as_me: failed program was:" >&5
4612 sed 's/^/| /' conftest.$ac_ext >&5
4616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4617 if test $ac_R_space = yes; then
4618 echo "$as_me:$LINENO: result: yes" >&5
4619 echo "${ECHO_T}yes" >&6
4620 X_LIBS="$X_LIBS -R $x_libraries"
4622 echo "$as_me:$LINENO: result: neither works" >&5
4623 echo "${ECHO_T}neither works" >&6
4630 # Check for system-dependent libraries X programs must link with.
4631 # Do this before checking for the system-independent R6 libraries
4632 # (-lICE), since we may need -lsocket or whatever for X linking.
4634 if test "$ISC" = yes; then
4635 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4637 # Martyn Johnson says this is needed for Ultrix, if the X
4638 # libraries were built with DECnet support. And Karl Berry says
4639 # the Alpha needs dnet_stub (dnet does not exist).
4640 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4641 cat >conftest.$ac_ext <<_ACEOF
4642 #line $LINENO "configure"
4645 cat confdefs.h >>conftest.$ac_ext
4646 cat >>conftest.$ac_ext <<_ACEOF
4647 /* end confdefs.h. */
4649 /* Override any gcc2 internal prototype to avoid an error. */
4653 /* We use char because int might match the return type of a gcc2
4654 builtin and then its argument prototype would still apply. */
4655 char XOpenDisplay ();
4664 rm -f conftest.$ac_objext conftest$ac_exeext
4665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4666 (eval $ac_link) 2>&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } &&
4670 { ac_try='test -s conftest$ac_exeext'
4671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }; }; then
4678 echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.$ac_ext >&5
4681 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4682 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4683 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4686 ac_check_lib_save_LIBS=$LIBS
4688 cat >conftest.$ac_ext <<_ACEOF
4689 #line $LINENO "configure"
4692 cat confdefs.h >>conftest.$ac_ext
4693 cat >>conftest.$ac_ext <<_ACEOF
4694 /* end confdefs.h. */
4696 /* Override any gcc2 internal prototype to avoid an error. */
4700 /* We use char because int might match the return type of a gcc2
4701 builtin and then its argument prototype would still apply. */
4711 rm -f conftest.$ac_objext conftest$ac_exeext
4712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4713 (eval $ac_link) 2>&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); } &&
4717 { ac_try='test -s conftest$ac_exeext'
4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; }; then
4723 ac_cv_lib_dnet_dnet_ntoa=yes
4725 echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4728 ac_cv_lib_dnet_dnet_ntoa=no
4730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4731 LIBS=$ac_check_lib_save_LIBS
4733 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4734 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4735 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4736 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4739 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4740 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4741 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4742 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4745 ac_check_lib_save_LIBS=$LIBS
4746 LIBS="-ldnet_stub $LIBS"
4747 cat >conftest.$ac_ext <<_ACEOF
4748 #line $LINENO "configure"
4751 cat confdefs.h >>conftest.$ac_ext
4752 cat >>conftest.$ac_ext <<_ACEOF
4753 /* end confdefs.h. */
4755 /* Override any gcc2 internal prototype to avoid an error. */
4759 /* We use char because int might match the return type of a gcc2
4760 builtin and then its argument prototype would still apply. */
4770 rm -f conftest.$ac_objext conftest$ac_exeext
4771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4772 (eval $ac_link) 2>&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } &&
4776 { ac_try='test -s conftest$ac_exeext'
4777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); }; }; then
4782 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4784 echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.$ac_ext >&5
4787 ac_cv_lib_dnet_stub_dnet_ntoa=no
4789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4790 LIBS=$ac_check_lib_save_LIBS
4792 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4793 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
4794 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4795 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4801 LIBS="$ac_xsave_LIBS"
4803 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4804 # to get the SysV transport functions.
4805 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4807 # The nsl library prevents programs from opening the X display
4808 # on Irix 5.2, according to T.E. Dickey.
4809 # The functions gethostbyname, getservbyname, and inet_addr are
4810 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4811 echo "$as_me:$LINENO: checking for gethostbyname" >&5
4812 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4813 if test "${ac_cv_func_gethostbyname+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 cat >conftest.$ac_ext <<_ACEOF
4817 #line $LINENO "configure"
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h. */
4823 /* System header to define __stub macros and hopefully few prototypes,
4824 which can conflict with char gethostbyname (); below.
4825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4826 <limits.h> exists even on freestanding compilers. */
4828 # include <limits.h>
4830 # include <assert.h>
4832 /* Override any gcc2 internal prototype to avoid an error. */
4837 /* We use char because int might match the return type of a gcc2
4838 builtin and then its argument prototype would still apply. */
4839 char gethostbyname ();
4840 /* The GNU C library defines this for functions which it implements
4841 to always fail with ENOSYS. Some functions are actually named
4842 something starting with __ and the normal name is an alias. */
4843 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4846 char (*f) () = gethostbyname;
4855 return f != gethostbyname;
4860 rm -f conftest.$ac_objext conftest$ac_exeext
4861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4862 (eval $ac_link) 2>&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } &&
4866 { ac_try='test -s conftest$ac_exeext'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; }; then
4872 ac_cv_func_gethostbyname=yes
4874 echo "$as_me: failed program was:" >&5
4875 sed 's/^/| /' conftest.$ac_ext >&5
4877 ac_cv_func_gethostbyname=no
4879 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4881 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4882 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4884 if test $ac_cv_func_gethostbyname = no; then
4885 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4886 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4887 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4888 echo $ECHO_N "(cached) $ECHO_C" >&6
4890 ac_check_lib_save_LIBS=$LIBS
4892 cat >conftest.$ac_ext <<_ACEOF
4893 #line $LINENO "configure"
4896 cat confdefs.h >>conftest.$ac_ext
4897 cat >>conftest.$ac_ext <<_ACEOF
4898 /* end confdefs.h. */
4900 /* Override any gcc2 internal prototype to avoid an error. */
4904 /* We use char because int might match the return type of a gcc2
4905 builtin and then its argument prototype would still apply. */
4906 char gethostbyname ();
4915 rm -f conftest.$ac_objext conftest$ac_exeext
4916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4917 (eval $ac_link) 2>&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); } &&
4921 { ac_try='test -s conftest$ac_exeext'
4922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); }; }; then
4927 ac_cv_lib_nsl_gethostbyname=yes
4929 echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4932 ac_cv_lib_nsl_gethostbyname=no
4934 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4935 LIBS=$ac_check_lib_save_LIBS
4937 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4938 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4939 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4940 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4943 if test $ac_cv_lib_nsl_gethostbyname = no; then
4944 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4945 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4946 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4949 ac_check_lib_save_LIBS=$LIBS
4951 cat >conftest.$ac_ext <<_ACEOF
4952 #line $LINENO "configure"
4955 cat confdefs.h >>conftest.$ac_ext
4956 cat >>conftest.$ac_ext <<_ACEOF
4957 /* end confdefs.h. */
4959 /* Override any gcc2 internal prototype to avoid an error. */
4963 /* We use char because int might match the return type of a gcc2
4964 builtin and then its argument prototype would still apply. */
4965 char gethostbyname ();
4974 rm -f conftest.$ac_objext conftest$ac_exeext
4975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4976 (eval $ac_link) 2>&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
4986 ac_cv_lib_bsd_gethostbyname=yes
4988 echo "$as_me: failed program was:" >&5
4989 sed 's/^/| /' conftest.$ac_ext >&5
4991 ac_cv_lib_bsd_gethostbyname=no
4993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4994 LIBS=$ac_check_lib_save_LIBS
4996 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4997 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4998 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4999 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5005 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5006 # socket/setsockopt and other routines are undefined under SCO ODT
5007 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5008 # on later versions), says Simon Leinen: it contains gethostby*
5009 # variants that don't use the name server (or something). -lsocket
5010 # must be given before -lnsl if both are needed. We assume that
5011 # if connect needs -lnsl, so does gethostbyname.
5012 echo "$as_me:$LINENO: checking for connect" >&5
5013 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5014 if test "${ac_cv_func_connect+set}" = set; then
5015 echo $ECHO_N "(cached) $ECHO_C" >&6
5017 cat >conftest.$ac_ext <<_ACEOF
5018 #line $LINENO "configure"
5021 cat confdefs.h >>conftest.$ac_ext
5022 cat >>conftest.$ac_ext <<_ACEOF
5023 /* end confdefs.h. */
5024 /* System header to define __stub macros and hopefully few prototypes,
5025 which can conflict with char connect (); below.
5026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5027 <limits.h> exists even on freestanding compilers. */
5029 # include <limits.h>
5031 # include <assert.h>
5033 /* Override any gcc2 internal prototype to avoid an error. */
5038 /* We use char because int might match the return type of a gcc2
5039 builtin and then its argument prototype would still apply. */
5041 /* The GNU C library defines this for functions which it implements
5042 to always fail with ENOSYS. Some functions are actually named
5043 something starting with __ and the normal name is an alias. */
5044 #if defined (__stub_connect) || defined (__stub___connect)
5047 char (*f) () = connect;
5056 return f != connect;
5061 rm -f conftest.$ac_objext conftest$ac_exeext
5062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5063 (eval $ac_link) 2>&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); } &&
5067 { ac_try='test -s conftest$ac_exeext'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; }; then
5073 ac_cv_func_connect=yes
5075 echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5078 ac_cv_func_connect=no
5080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5082 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5083 echo "${ECHO_T}$ac_cv_func_connect" >&6
5085 if test $ac_cv_func_connect = no; then
5086 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5087 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5088 if test "${ac_cv_lib_socket_connect+set}" = set; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5091 ac_check_lib_save_LIBS=$LIBS
5092 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5093 cat >conftest.$ac_ext <<_ACEOF
5094 #line $LINENO "configure"
5097 cat confdefs.h >>conftest.$ac_ext
5098 cat >>conftest.$ac_ext <<_ACEOF
5099 /* end confdefs.h. */
5101 /* Override any gcc2 internal prototype to avoid an error. */
5105 /* We use char because int might match the return type of a gcc2
5106 builtin and then its argument prototype would still apply. */
5116 rm -f conftest.$ac_objext conftest$ac_exeext
5117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5118 (eval $ac_link) 2>&5
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); } &&
5122 { ac_try='test -s conftest$ac_exeext'
5123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); }; }; then
5128 ac_cv_lib_socket_connect=yes
5130 echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5133 ac_cv_lib_socket_connect=no
5135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5136 LIBS=$ac_check_lib_save_LIBS
5138 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5139 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5140 if test $ac_cv_lib_socket_connect = yes; then
5141 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5146 # Guillermo Gomez says -lposix is necessary on A/UX.
5147 echo "$as_me:$LINENO: checking for remove" >&5
5148 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5149 if test "${ac_cv_func_remove+set}" = set; then
5150 echo $ECHO_N "(cached) $ECHO_C" >&6
5152 cat >conftest.$ac_ext <<_ACEOF
5153 #line $LINENO "configure"
5156 cat confdefs.h >>conftest.$ac_ext
5157 cat >>conftest.$ac_ext <<_ACEOF
5158 /* end confdefs.h. */
5159 /* System header to define __stub macros and hopefully few prototypes,
5160 which can conflict with char remove (); below.
5161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5162 <limits.h> exists even on freestanding compilers. */
5164 # include <limits.h>
5166 # include <assert.h>
5168 /* Override any gcc2 internal prototype to avoid an error. */
5173 /* We use char because int might match the return type of a gcc2
5174 builtin and then its argument prototype would still apply. */
5176 /* The GNU C library defines this for functions which it implements
5177 to always fail with ENOSYS. Some functions are actually named
5178 something starting with __ and the normal name is an alias. */
5179 #if defined (__stub_remove) || defined (__stub___remove)
5182 char (*f) () = remove;
5196 rm -f conftest.$ac_objext conftest$ac_exeext
5197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5198 (eval $ac_link) 2>&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } &&
5202 { ac_try='test -s conftest$ac_exeext'
5203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); }; }; then
5208 ac_cv_func_remove=yes
5210 echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.$ac_ext >&5
5213 ac_cv_func_remove=no
5215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5217 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5218 echo "${ECHO_T}$ac_cv_func_remove" >&6
5220 if test $ac_cv_func_remove = no; then
5221 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5222 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5223 if test "${ac_cv_lib_posix_remove+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 ac_check_lib_save_LIBS=$LIBS
5227 LIBS="-lposix $LIBS"
5228 cat >conftest.$ac_ext <<_ACEOF
5229 #line $LINENO "configure"
5232 cat confdefs.h >>conftest.$ac_ext
5233 cat >>conftest.$ac_ext <<_ACEOF
5234 /* end confdefs.h. */
5236 /* Override any gcc2 internal prototype to avoid an error. */
5240 /* We use char because int might match the return type of a gcc2
5241 builtin and then its argument prototype would still apply. */
5251 rm -f conftest.$ac_objext conftest$ac_exeext
5252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5253 (eval $ac_link) 2>&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } &&
5257 { ac_try='test -s conftest$ac_exeext'
5258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); }; }; then
5263 ac_cv_lib_posix_remove=yes
5265 echo "$as_me: failed program was:" >&5
5266 sed 's/^/| /' conftest.$ac_ext >&5
5268 ac_cv_lib_posix_remove=no
5270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5271 LIBS=$ac_check_lib_save_LIBS
5273 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5274 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5275 if test $ac_cv_lib_posix_remove = yes; then
5276 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5281 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5282 echo "$as_me:$LINENO: checking for shmat" >&5
5283 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5284 if test "${ac_cv_func_shmat+set}" = set; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5287 cat >conftest.$ac_ext <<_ACEOF
5288 #line $LINENO "configure"
5291 cat confdefs.h >>conftest.$ac_ext
5292 cat >>conftest.$ac_ext <<_ACEOF
5293 /* end confdefs.h. */
5294 /* System header to define __stub macros and hopefully few prototypes,
5295 which can conflict with char shmat (); below.
5296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5297 <limits.h> exists even on freestanding compilers. */
5299 # include <limits.h>
5301 # include <assert.h>
5303 /* Override any gcc2 internal prototype to avoid an error. */
5308 /* We use char because int might match the return type of a gcc2
5309 builtin and then its argument prototype would still apply. */
5311 /* The GNU C library defines this for functions which it implements
5312 to always fail with ENOSYS. Some functions are actually named
5313 something starting with __ and the normal name is an alias. */
5314 #if defined (__stub_shmat) || defined (__stub___shmat)
5317 char (*f) () = shmat;
5331 rm -f conftest.$ac_objext conftest$ac_exeext
5332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5333 (eval $ac_link) 2>&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } &&
5337 { ac_try='test -s conftest$ac_exeext'
5338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); }; }; then
5343 ac_cv_func_shmat=yes
5345 echo "$as_me: failed program was:" >&5
5346 sed 's/^/| /' conftest.$ac_ext >&5
5350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5352 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5353 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5355 if test $ac_cv_func_shmat = no; then
5356 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5357 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5358 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5359 echo $ECHO_N "(cached) $ECHO_C" >&6
5361 ac_check_lib_save_LIBS=$LIBS
5363 cat >conftest.$ac_ext <<_ACEOF
5364 #line $LINENO "configure"
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5371 /* Override any gcc2 internal prototype to avoid an error. */
5375 /* We use char because int might match the return type of a gcc2
5376 builtin and then its argument prototype would still apply. */
5386 rm -f conftest.$ac_objext conftest$ac_exeext
5387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5388 (eval $ac_link) 2>&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); } &&
5392 { ac_try='test -s conftest$ac_exeext'
5393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); }; }; then
5398 ac_cv_lib_ipc_shmat=yes
5400 echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.$ac_ext >&5
5403 ac_cv_lib_ipc_shmat=no
5405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5406 LIBS=$ac_check_lib_save_LIBS
5408 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5409 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5410 if test $ac_cv_lib_ipc_shmat = yes; then
5411 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5417 # Check for libraries that X11R6 Xt/Xaw programs need.
5418 ac_save_LDFLAGS=$LDFLAGS
5419 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5420 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5421 # check for ICE first), but we must link in the order -lSM -lICE or
5422 # we get undefined symbols. So assume we have SM if we have ICE.
5423 # These have to be linked with before -lX11, unlike the other
5424 # libraries we check for below, so use a different variable.
5425 # John Interrante, Karl Berry
5426 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5427 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5428 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
5431 ac_check_lib_save_LIBS=$LIBS
5432 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5433 cat >conftest.$ac_ext <<_ACEOF
5434 #line $LINENO "configure"
5437 cat confdefs.h >>conftest.$ac_ext
5438 cat >>conftest.$ac_ext <<_ACEOF
5439 /* end confdefs.h. */
5441 /* Override any gcc2 internal prototype to avoid an error. */
5445 /* We use char because int might match the return type of a gcc2
5446 builtin and then its argument prototype would still apply. */
5447 char IceConnectionNumber ();
5451 IceConnectionNumber ();
5456 rm -f conftest.$ac_objext conftest$ac_exeext
5457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5458 (eval $ac_link) 2>&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); } &&
5462 { ac_try='test -s conftest$ac_exeext'
5463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }; }; then
5468 ac_cv_lib_ICE_IceConnectionNumber=yes
5470 echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.$ac_ext >&5
5473 ac_cv_lib_ICE_IceConnectionNumber=no
5475 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5476 LIBS=$ac_check_lib_save_LIBS
5478 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5479 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5480 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5481 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5484 LDFLAGS=$ac_save_LDFLAGS
5490 if test "x$with_x" = xyes; then
5491 if test "x$have_x" = xno; then
5492 if test "x$x_config_flag" = xyes; then
5493 { { echo "$as_me:$LINENO: error: Could not configure X" >&5
5494 echo "$as_me: error: Could not configure X" >&2;}
5495 { (exit 1); exit 1; }; }
5497 { echo "$as_me:$LINENO: WARNING: Could not configure X" >&5
5498 echo "$as_me: WARNING: Could not configure X" >&2;}
5502 if test "x$with_x" = xyes -a "x$have_x" = xyes; then
5503 if test "x$x_libraries" != x; then
5504 ldflags_x_opt="-L$x_libraries"
5505 LDFLAGS="$LDFLAGS $ldflags_x_opt"
5506 SHLDFLAGS="$SHLDFLAGS $ldflags_x_opt"
5510 if test "x$x_includes" != x; then
5511 CPPFLAGS="$CPPFLAGS -I$x_includes"
5515 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
5516 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
5517 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
5518 echo $ECHO_N "(cached) $ECHO_C" >&6
5520 ac_check_lib_save_LIBS=$LIBS
5522 cat >conftest.$ac_ext <<_ACEOF
5523 #line $LINENO "configure"
5526 cat confdefs.h >>conftest.$ac_ext
5527 cat >>conftest.$ac_ext <<_ACEOF
5528 /* end confdefs.h. */
5530 /* Override any gcc2 internal prototype to avoid an error. */
5534 /* We use char because int might match the return type of a gcc2
5535 builtin and then its argument prototype would still apply. */
5536 char XOpenDisplay ();
5545 rm -f conftest.$ac_objext conftest$ac_exeext
5546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5547 (eval $ac_link) 2>&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); } &&
5551 { ac_try='test -s conftest$ac_exeext'
5552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); }; }; then
5557 ac_cv_lib_X11_XOpenDisplay=yes
5559 echo "$as_me: failed program was:" >&5
5560 sed 's/^/| /' conftest.$ac_ext >&5
5562 ac_cv_lib_X11_XOpenDisplay=no
5564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5565 LIBS=$ac_check_lib_save_LIBS
5567 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
5568 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
5569 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
5570 cat >>confdefs.h <<_ACEOF
5571 #define HAVE_LIBX11 1
5578 echo "$as_me:$LINENO: checking X11 version 6" >&5
5579 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
5580 if test "${timidity_cv_x11_version_6+set}" = set; then
5581 echo $ECHO_N "(cached) $ECHO_C" >&6
5583 cat >conftest.$ac_ext <<_ACEOF
5584 #line $LINENO "configure"
5587 cat confdefs.h >>conftest.$ac_ext
5588 cat >>conftest.$ac_ext <<_ACEOF
5589 /* end confdefs.h. */
5590 #include <X11/Xlib.h>
5595 #if XlibSpecificationRelease < 6
5603 rm -f conftest.$ac_objext conftest$ac_exeext
5604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5605 (eval $ac_link) 2>&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } &&
5609 { ac_try='test -s conftest$ac_exeext'
5610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; }; then
5615 timidity_cv_x11_version_6=yes
5617 echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.$ac_ext >&5
5620 timidity_cv_x11_version_6=no
5622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5625 if test "$timidity_cv_x11_version_6" = "yes"; then
5626 echo "$as_me:$LINENO: result: 6 or newer" >&5
5627 echo "${ECHO_T}6 or newer" >&6
5629 echo "$as_me:$LINENO: result: before 6" >&5
5630 echo "${ECHO_T}before 6" >&6
5634 echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
5635 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
5636 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5639 ac_check_lib_save_LIBS=$LIBS
5641 cat >conftest.$ac_ext <<_ACEOF
5642 #line $LINENO "configure"
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5649 /* Override any gcc2 internal prototype to avoid an error. */
5653 /* We use char because int might match the return type of a gcc2
5654 builtin and then its argument prototype would still apply. */
5655 char XShapeCombineMask ();
5659 XShapeCombineMask ();
5664 rm -f conftest.$ac_objext conftest$ac_exeext
5665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5666 (eval $ac_link) 2>&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } &&
5670 { ac_try='test -s conftest$ac_exeext'
5671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; }; then
5676 ac_cv_lib_Xext_XShapeCombineMask=yes
5678 echo "$as_me: failed program was:" >&5
5679 sed 's/^/| /' conftest.$ac_ext >&5
5681 ac_cv_lib_Xext_XShapeCombineMask=no
5683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5684 LIBS=$ac_check_lib_save_LIBS
5686 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
5687 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
5688 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
5689 have_xext=yes; LIBS="-lXext $LIBS"
5695 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5696 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5697 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5700 ac_check_lib_save_LIBS=$LIBS
5702 cat >conftest.$ac_ext <<_ACEOF
5703 #line $LINENO "configure"
5706 cat confdefs.h >>conftest.$ac_ext
5707 cat >>conftest.$ac_ext <<_ACEOF
5708 /* end confdefs.h. */
5710 /* Override any gcc2 internal prototype to avoid an error. */
5714 /* We use char because int might match the return type of a gcc2
5715 builtin and then its argument prototype would still apply. */
5716 char IceConnectionNumber ();
5720 IceConnectionNumber ();
5725 rm -f conftest.$ac_objext conftest$ac_exeext
5726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5727 (eval $ac_link) 2>&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } &&
5731 { ac_try='test -s conftest$ac_exeext'
5732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; }; then
5737 ac_cv_lib_ICE_IceConnectionNumber=yes
5739 echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.$ac_ext >&5
5742 ac_cv_lib_ICE_IceConnectionNumber=no
5744 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5745 LIBS=$ac_check_lib_save_LIBS
5747 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5748 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5749 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5750 cat >>confdefs.h <<_ACEOF
5751 #define HAVE_LIBICE 1
5758 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
5759 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
5760 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
5761 echo $ECHO_N "(cached) $ECHO_C" >&6
5763 ac_check_lib_save_LIBS=$LIBS
5765 cat >conftest.$ac_ext <<_ACEOF
5766 #line $LINENO "configure"
5769 cat confdefs.h >>conftest.$ac_ext
5770 cat >>conftest.$ac_ext <<_ACEOF
5771 /* end confdefs.h. */
5773 /* Override any gcc2 internal prototype to avoid an error. */
5777 /* We use char because int might match the return type of a gcc2
5778 builtin and then its argument prototype would still apply. */
5779 char SmcOpenConnection ();
5783 SmcOpenConnection ();
5788 rm -f conftest.$ac_objext conftest$ac_exeext
5789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5790 (eval $ac_link) 2>&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); } &&
5794 { ac_try='test -s conftest$ac_exeext'
5795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; }; then
5800 ac_cv_lib_SM_SmcOpenConnection=yes
5802 echo "$as_me: failed program was:" >&5
5803 sed 's/^/| /' conftest.$ac_ext >&5
5805 ac_cv_lib_SM_SmcOpenConnection=no
5807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5808 LIBS=$ac_check_lib_save_LIBS
5810 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
5811 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
5812 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
5813 have_xprelibs=yes; LIBS="-lSM $LIBS"
5818 echo "$as_me:$LINENO: checking for XtVaAppInitialize in -lXt" >&5
5819 echo $ECHO_N "checking for XtVaAppInitialize in -lXt... $ECHO_C" >&6
5820 if test "${ac_cv_lib_Xt_XtVaAppInitialize+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 ac_check_lib_save_LIBS=$LIBS
5825 cat >conftest.$ac_ext <<_ACEOF
5826 #line $LINENO "configure"
5829 cat confdefs.h >>conftest.$ac_ext
5830 cat >>conftest.$ac_ext <<_ACEOF
5831 /* end confdefs.h. */
5833 /* Override any gcc2 internal prototype to avoid an error. */
5837 /* We use char because int might match the return type of a gcc2
5838 builtin and then its argument prototype would still apply. */
5839 char XtVaAppInitialize ();
5843 XtVaAppInitialize ();
5848 rm -f conftest.$ac_objext conftest$ac_exeext
5849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5850 (eval $ac_link) 2>&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } &&
5854 { ac_try='test -s conftest$ac_exeext'
5855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; }; then
5860 ac_cv_lib_Xt_XtVaAppInitialize=yes
5862 echo "$as_me: failed program was:" >&5
5863 sed 's/^/| /' conftest.$ac_ext >&5
5865 ac_cv_lib_Xt_XtVaAppInitialize=no
5867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5868 LIBS=$ac_check_lib_save_LIBS
5870 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtVaAppInitialize" >&5
5871 echo "${ECHO_T}$ac_cv_lib_Xt_XtVaAppInitialize" >&6
5872 if test $ac_cv_lib_Xt_XtVaAppInitialize = yes; then
5873 have_xt=yes; LIBS="-lXt $LIBS"
5878 echo "$as_me:$LINENO: checking for XmuInternAtom in -lXmu" >&5
5879 echo $ECHO_N "checking for XmuInternAtom in -lXmu... $ECHO_C" >&6
5880 if test "${ac_cv_lib_Xmu_XmuInternAtom+set}" = set; then
5881 echo $ECHO_N "(cached) $ECHO_C" >&6
5883 ac_check_lib_save_LIBS=$LIBS
5885 cat >conftest.$ac_ext <<_ACEOF
5886 #line $LINENO "configure"
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 XmuInternAtom ();
5908 rm -f conftest.$ac_objext conftest$ac_exeext
5909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5910 (eval $ac_link) 2>&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } &&
5914 { ac_try='test -s conftest$ac_exeext'
5915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); }; }; then
5920 ac_cv_lib_Xmu_XmuInternAtom=yes
5922 echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5925 ac_cv_lib_Xmu_XmuInternAtom=no
5927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5928 LIBS=$ac_check_lib_save_LIBS
5930 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuInternAtom" >&5
5931 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuInternAtom" >&6
5932 if test $ac_cv_lib_Xmu_XmuInternAtom = yes; then
5937 for ac_func in XmuRegisterExternalAgent
5939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5940 echo "$as_me:$LINENO: checking for $ac_func" >&5
5941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5942 if eval "test \"\${$as_ac_var+set}\" = set"; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 cat >conftest.$ac_ext <<_ACEOF
5946 #line $LINENO "configure"
5949 cat confdefs.h >>conftest.$ac_ext
5950 cat >>conftest.$ac_ext <<_ACEOF
5951 /* end confdefs.h. */
5952 /* System header to define __stub macros and hopefully few prototypes,
5953 which can conflict with char $ac_func (); below.
5954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5955 <limits.h> exists even on freestanding compilers. */
5957 # include <limits.h>
5959 # include <assert.h>
5961 /* Override any gcc2 internal prototype to avoid an error. */
5966 /* We use char because int might match the return type of a gcc2
5967 builtin and then its argument prototype would still apply. */
5969 /* The GNU C library defines this for functions which it implements
5970 to always fail with ENOSYS. Some functions are actually named
5971 something starting with __ and the normal name is an alias. */
5972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5975 char (*f) () = $ac_func;
5984 return f != $ac_func;
5989 rm -f conftest.$ac_objext conftest$ac_exeext
5990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5991 (eval $ac_link) 2>&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } &&
5995 { ac_try='test -s conftest$ac_exeext'
5996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; }; then
6001 eval "$as_ac_var=yes"
6003 echo "$as_me: failed program was:" >&5
6004 sed 's/^/| /' conftest.$ac_ext >&5
6006 eval "$as_ac_var=no"
6008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6011 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6012 if test `eval echo '${'$as_ac_var'}'` = yes; then
6013 cat >>confdefs.h <<_ACEOF
6014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6020 echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw3d" >&5
6021 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw3d... $ECHO_C" >&6
6022 if test "${ac_cv_lib_Xaw3d_XawInitializeWidgetSet+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6025 ac_check_lib_save_LIBS=$LIBS
6026 LIBS="-lXaw3d $LIBS"
6027 cat >conftest.$ac_ext <<_ACEOF
6028 #line $LINENO "configure"
6031 cat confdefs.h >>conftest.$ac_ext
6032 cat >>conftest.$ac_ext <<_ACEOF
6033 /* end confdefs.h. */
6035 /* Override any gcc2 internal prototype to avoid an error. */
6039 /* We use char because int might match the return type of a gcc2
6040 builtin and then its argument prototype would still apply. */
6041 char XawInitializeWidgetSet ();
6045 XawInitializeWidgetSet ();
6050 rm -f conftest.$ac_objext conftest$ac_exeext
6051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6052 (eval $ac_link) 2>&5
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); } &&
6056 { ac_try='test -s conftest$ac_exeext'
6057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); }; }; then
6062 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=yes
6064 echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.$ac_ext >&5
6067 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=no
6069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6070 LIBS=$ac_check_lib_save_LIBS
6072 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&5
6073 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&6
6074 if test $ac_cv_lib_Xaw3d_XawInitializeWidgetSet = yes; then
6077 echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw" >&5
6078 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw... $ECHO_C" >&6
6079 if test "${ac_cv_lib_Xaw_XawInitializeWidgetSet+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 ac_check_lib_save_LIBS=$LIBS
6084 cat >conftest.$ac_ext <<_ACEOF
6085 #line $LINENO "configure"
6088 cat confdefs.h >>conftest.$ac_ext
6089 cat >>conftest.$ac_ext <<_ACEOF
6090 /* end confdefs.h. */
6092 /* Override any gcc2 internal prototype to avoid an error. */
6096 /* We use char because int might match the return type of a gcc2
6097 builtin and then its argument prototype would still apply. */
6098 char XawInitializeWidgetSet ();
6102 XawInitializeWidgetSet ();
6107 rm -f conftest.$ac_objext conftest$ac_exeext
6108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6109 (eval $ac_link) 2>&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); } &&
6113 { ac_try='test -s conftest$ac_exeext'
6114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); }; }; then
6119 ac_cv_lib_Xaw_XawInitializeWidgetSet=yes
6121 echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.$ac_ext >&5
6124 ac_cv_lib_Xaw_XawInitializeWidgetSet=no
6126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6127 LIBS=$ac_check_lib_save_LIBS
6129 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_XawInitializeWidgetSet" >&5
6130 echo "${ECHO_T}$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6
6131 if test $ac_cv_lib_Xaw_XawInitializeWidgetSet = yes; then
6139 echo "$as_me:$LINENO: checking for XmCreateForm in -lXm" >&5
6140 echo $ECHO_N "checking for XmCreateForm in -lXm... $ECHO_C" >&6
6141 if test "${ac_cv_lib_Xm_XmCreateForm+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
6144 ac_check_lib_save_LIBS=$LIBS
6146 cat >conftest.$ac_ext <<_ACEOF
6147 #line $LINENO "configure"
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h. */
6154 /* Override any gcc2 internal prototype to avoid an error. */
6158 /* We use char because int might match the return type of a gcc2
6159 builtin and then its argument prototype would still apply. */
6160 char XmCreateForm ();
6169 rm -f conftest.$ac_objext conftest$ac_exeext
6170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6171 (eval $ac_link) 2>&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } &&
6175 { ac_try='test -s conftest$ac_exeext'
6176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); }; }; then
6181 ac_cv_lib_Xm_XmCreateForm=yes
6183 echo "$as_me: failed program was:" >&5
6184 sed 's/^/| /' conftest.$ac_ext >&5
6186 ac_cv_lib_Xm_XmCreateForm=no
6188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6189 LIBS=$ac_check_lib_save_LIBS
6191 echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmCreateForm" >&5
6192 echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateForm" >&6
6193 if test $ac_cv_lib_Xm_XmCreateForm = yes; then
6200 for ac_func in XShmCreatePixmap
6202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6203 echo "$as_me:$LINENO: checking for $ac_func" >&5
6204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6205 if eval "test \"\${$as_ac_var+set}\" = set"; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 cat >conftest.$ac_ext <<_ACEOF
6209 #line $LINENO "configure"
6212 cat confdefs.h >>conftest.$ac_ext
6213 cat >>conftest.$ac_ext <<_ACEOF
6214 /* end confdefs.h. */
6215 /* System header to define __stub macros and hopefully few prototypes,
6216 which can conflict with char $ac_func (); below.
6217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6218 <limits.h> exists even on freestanding compilers. */
6220 # include <limits.h>
6222 # include <assert.h>
6224 /* Override any gcc2 internal prototype to avoid an error. */
6229 /* We use char because int might match the return type of a gcc2
6230 builtin and then its argument prototype would still apply. */
6232 /* The GNU C library defines this for functions which it implements
6233 to always fail with ENOSYS. Some functions are actually named
6234 something starting with __ and the normal name is an alias. */
6235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6238 char (*f) () = $ac_func;
6247 return f != $ac_func;
6252 rm -f conftest.$ac_objext conftest$ac_exeext
6253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6254 (eval $ac_link) 2>&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } &&
6258 { ac_try='test -s conftest$ac_exeext'
6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; }; then
6264 eval "$as_ac_var=yes"
6266 echo "$as_me: failed program was:" >&5
6267 sed 's/^/| /' conftest.$ac_ext >&5
6269 eval "$as_ac_var=no"
6271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6274 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6275 if test `eval echo '${'$as_ac_var'}'` = yes; then
6276 cat >>confdefs.h <<_ACEOF
6277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6286 # Checks for header files.
6287 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6288 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6289 if test "${ac_cv_header_stdc+set}" = set; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 cat >conftest.$ac_ext <<_ACEOF
6293 #line $LINENO "configure"
6296 cat confdefs.h >>conftest.$ac_ext
6297 cat >>conftest.$ac_ext <<_ACEOF
6298 /* end confdefs.h. */
6312 rm -f conftest.$ac_objext
6313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6314 (eval $ac_compile) 2>&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); } &&
6318 { ac_try='test -s conftest.$ac_objext'
6319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); }; }; then
6324 ac_cv_header_stdc=yes
6326 echo "$as_me: failed program was:" >&5
6327 sed 's/^/| /' conftest.$ac_ext >&5
6329 ac_cv_header_stdc=no
6331 rm -f conftest.$ac_objext conftest.$ac_ext
6333 if test $ac_cv_header_stdc = yes; then
6334 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6335 cat >conftest.$ac_ext <<_ACEOF
6336 #line $LINENO "configure"
6339 cat confdefs.h >>conftest.$ac_ext
6340 cat >>conftest.$ac_ext <<_ACEOF
6341 /* end confdefs.h. */
6345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6346 $EGREP "memchr" >/dev/null 2>&1; then
6349 ac_cv_header_stdc=no
6355 if test $ac_cv_header_stdc = yes; then
6356 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6357 cat >conftest.$ac_ext <<_ACEOF
6358 #line $LINENO "configure"
6361 cat confdefs.h >>conftest.$ac_ext
6362 cat >>conftest.$ac_ext <<_ACEOF
6363 /* end confdefs.h. */
6367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6368 $EGREP "free" >/dev/null 2>&1; then
6371 ac_cv_header_stdc=no
6377 if test $ac_cv_header_stdc = yes; then
6378 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6379 if test "$cross_compiling" = yes; then
6382 cat >conftest.$ac_ext <<_ACEOF
6383 #line $LINENO "configure"
6386 cat confdefs.h >>conftest.$ac_ext
6387 cat >>conftest.$ac_ext <<_ACEOF
6388 /* end confdefs.h. */
6390 #if ((' ' & 0x0FF) == 0x020)
6391 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6392 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6394 # define ISLOWER(c) \
6395 (('a' <= (c) && (c) <= 'i') \
6396 || ('j' <= (c) && (c) <= 'r') \
6397 || ('s' <= (c) && (c) <= 'z'))
6398 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6401 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6406 for (i = 0; i < 256; i++)
6407 if (XOR (islower (i), ISLOWER (i))
6408 || toupper (i) != TOUPPER (i))
6413 rm -f conftest$ac_exeext
6414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6415 (eval $ac_link) 2>&5
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; }; then
6426 echo "$as_me: program exited with status $ac_status" >&5
6427 echo "$as_me: failed program was:" >&5
6428 sed 's/^/| /' conftest.$ac_ext >&5
6431 ac_cv_header_stdc=no
6433 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6437 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6438 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6439 if test $ac_cv_header_stdc = yes; then
6441 cat >>confdefs.h <<\_ACEOF
6442 #define STDC_HEADERS 1
6447 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6457 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6458 inttypes.h stdint.h unistd.h
6460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6461 echo "$as_me:$LINENO: checking for $ac_header" >&5
6462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6464 echo $ECHO_N "(cached) $ECHO_C" >&6
6466 cat >conftest.$ac_ext <<_ACEOF
6467 #line $LINENO "configure"
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h. */
6473 $ac_includes_default
6475 #include <$ac_header>
6477 rm -f conftest.$ac_objext
6478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6479 (eval $ac_compile) 2>&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); } &&
6483 { ac_try='test -s conftest.$ac_objext'
6484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); }; }; then
6489 eval "$as_ac_Header=yes"
6491 echo "$as_me: failed program was:" >&5
6492 sed 's/^/| /' conftest.$ac_ext >&5
6494 eval "$as_ac_Header=no"
6496 rm -f conftest.$ac_objext conftest.$ac_ext
6498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6501 cat >>confdefs.h <<_ACEOF
6502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6510 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
6511 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
6512 if test "${ac_cv_header_stdbool_h+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6515 cat >conftest.$ac_ext <<_ACEOF
6516 #line $LINENO "configure"
6519 cat confdefs.h >>conftest.$ac_ext
6520 cat >>conftest.$ac_ext <<_ACEOF
6521 /* end confdefs.h. */
6523 #include <stdbool.h>
6525 # error bool is not defined
6528 # error false is not defined
6531 # error false is not 0
6534 # error true is not defined
6537 # error true is not 1
6539 #ifndef __bool_true_false_are_defined
6540 # error __bool_true_false_are_defined is not defined
6543 struct s { _Bool s: 1; _Bool t; } s;
6545 char a[true == 1 ? 1 : -1];
6546 char b[false == 0 ? 1 : -1];
6547 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6548 char d[(bool) -0.5 == true ? 1 : -1];
6550 char f[(_Bool) -0.0 == false ? 1 : -1];
6552 char h[sizeof (_Bool)];
6558 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
6563 rm -f conftest.$ac_objext
6564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6565 (eval $ac_compile) 2>&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); } &&
6569 { ac_try='test -s conftest.$ac_objext'
6570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); }; }; then
6575 ac_cv_header_stdbool_h=yes
6577 echo "$as_me: failed program was:" >&5
6578 sed 's/^/| /' conftest.$ac_ext >&5
6580 ac_cv_header_stdbool_h=no
6582 rm -f conftest.$ac_objext conftest.$ac_ext
6584 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
6585 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
6586 echo "$as_me:$LINENO: checking for _Bool" >&5
6587 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
6588 if test "${ac_cv_type__Bool+set}" = set; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
6591 cat >conftest.$ac_ext <<_ACEOF
6592 #line $LINENO "configure"
6595 cat confdefs.h >>conftest.$ac_ext
6596 cat >>conftest.$ac_ext <<_ACEOF
6597 /* end confdefs.h. */
6598 $ac_includes_default
6610 rm -f conftest.$ac_objext
6611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6612 (eval $ac_compile) 2>&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); } &&
6616 { ac_try='test -s conftest.$ac_objext'
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_type__Bool=yes
6624 echo "$as_me: failed program was:" >&5
6625 sed 's/^/| /' conftest.$ac_ext >&5
6629 rm -f conftest.$ac_objext conftest.$ac_ext
6631 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
6632 echo "${ECHO_T}$ac_cv_type__Bool" >&6
6633 if test $ac_cv_type__Bool = yes; then
6635 cat >>confdefs.h <<_ACEOF
6636 #define HAVE__BOOL 1
6642 if test $ac_cv_header_stdbool_h = yes; then
6644 cat >>confdefs.h <<\_ACEOF
6645 #define HAVE_STDBOOL_H 1
6650 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6651 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6652 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6653 echo $ECHO_N "(cached) $ECHO_C" >&6
6655 cat >conftest.$ac_ext <<_ACEOF
6656 #line $LINENO "configure"
6659 cat confdefs.h >>conftest.$ac_ext
6660 cat >>conftest.$ac_ext <<_ACEOF
6661 /* end confdefs.h. */
6662 #include <sys/types.h>
6663 #include <sys/wait.h>
6665 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6668 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6676 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6681 rm -f conftest.$ac_objext
6682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6683 (eval $ac_compile) 2>&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); } &&
6687 { ac_try='test -s conftest.$ac_objext'
6688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); }; }; then
6693 ac_cv_header_sys_wait_h=yes
6695 echo "$as_me: failed program was:" >&5
6696 sed 's/^/| /' conftest.$ac_ext >&5
6698 ac_cv_header_sys_wait_h=no
6700 rm -f conftest.$ac_objext conftest.$ac_ext
6702 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6703 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6704 if test $ac_cv_header_sys_wait_h = yes; then
6706 cat >>confdefs.h <<\_ACEOF
6707 #define HAVE_SYS_WAIT_H 1
6712 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6713 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6714 if test "${ac_cv_header_time+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 cat >conftest.$ac_ext <<_ACEOF
6718 #line $LINENO "configure"
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h. */
6724 #include <sys/types.h>
6725 #include <sys/time.h>
6731 if ((struct tm *) 0)
6737 rm -f conftest.$ac_objext
6738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6739 (eval $ac_compile) 2>&5
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); } &&
6743 { ac_try='test -s conftest.$ac_objext'
6744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); }; }; then
6749 ac_cv_header_time=yes
6751 echo "$as_me: failed program was:" >&5
6752 sed 's/^/| /' conftest.$ac_ext >&5
6754 ac_cv_header_time=no
6756 rm -f conftest.$ac_objext conftest.$ac_ext
6758 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6759 echo "${ECHO_T}$ac_cv_header_time" >&6
6760 if test $ac_cv_header_time = yes; then
6762 cat >>confdefs.h <<\_ACEOF
6763 #define TIME_WITH_SYS_TIME 1
6774 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6775 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6776 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6777 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 cat >conftest.$ac_ext <<_ACEOF
6782 #line $LINENO "configure"
6785 cat confdefs.h >>conftest.$ac_ext
6786 cat >>conftest.$ac_ext <<_ACEOF
6787 /* end confdefs.h. */
6788 #include <sys/types.h>
6800 rm -f conftest.$ac_objext
6801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6802 (eval $ac_compile) 2>&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); } &&
6806 { ac_try='test -s conftest.$ac_objext'
6807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); }; }; then
6812 eval "$as_ac_Header=yes"
6814 echo "$as_me: failed program was:" >&5
6815 sed 's/^/| /' conftest.$ac_ext >&5
6817 eval "$as_ac_Header=no"
6819 rm -f conftest.$ac_objext conftest.$ac_ext
6821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6824 cat >>confdefs.h <<_ACEOF
6825 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6828 ac_header_dirent=$ac_hdr; break
6832 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6833 if test $ac_header_dirent = dirent.h; then
6834 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6835 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6836 if test "${ac_cv_search_opendir+set}" = set; then
6837 echo $ECHO_N "(cached) $ECHO_C" >&6
6839 ac_func_search_save_LIBS=$LIBS
6840 ac_cv_search_opendir=no
6841 cat >conftest.$ac_ext <<_ACEOF
6842 #line $LINENO "configure"
6845 cat confdefs.h >>conftest.$ac_ext
6846 cat >>conftest.$ac_ext <<_ACEOF
6847 /* end confdefs.h. */
6849 /* Override any gcc2 internal prototype to avoid an error. */
6853 /* We use char because int might match the return type of a gcc2
6854 builtin and then its argument prototype would still apply. */
6864 rm -f conftest.$ac_objext conftest$ac_exeext
6865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6866 (eval $ac_link) 2>&5
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); } &&
6870 { ac_try='test -s conftest$ac_exeext'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; }; then
6876 ac_cv_search_opendir="none required"
6878 echo "$as_me: failed program was:" >&5
6879 sed 's/^/| /' conftest.$ac_ext >&5
6882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6883 if test "$ac_cv_search_opendir" = no; then
6884 for ac_lib in dir; do
6885 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6886 cat >conftest.$ac_ext <<_ACEOF
6887 #line $LINENO "configure"
6890 cat confdefs.h >>conftest.$ac_ext
6891 cat >>conftest.$ac_ext <<_ACEOF
6892 /* end confdefs.h. */
6894 /* Override any gcc2 internal prototype to avoid an error. */
6898 /* We use char because int might match the return type of a gcc2
6899 builtin and then its argument prototype would still apply. */
6909 rm -f conftest.$ac_objext conftest$ac_exeext
6910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6911 (eval $ac_link) 2>&5
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); } &&
6915 { ac_try='test -s conftest$ac_exeext'
6916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); }; }; then
6921 ac_cv_search_opendir="-l$ac_lib"
6924 echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.$ac_ext >&5
6928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6931 LIBS=$ac_func_search_save_LIBS
6933 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6934 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6935 if test "$ac_cv_search_opendir" != no; then
6936 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6941 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6942 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6943 if test "${ac_cv_search_opendir+set}" = set; then
6944 echo $ECHO_N "(cached) $ECHO_C" >&6
6946 ac_func_search_save_LIBS=$LIBS
6947 ac_cv_search_opendir=no
6948 cat >conftest.$ac_ext <<_ACEOF
6949 #line $LINENO "configure"
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h. */
6956 /* Override any gcc2 internal prototype to avoid an error. */
6960 /* We use char because int might match the return type of a gcc2
6961 builtin and then its argument prototype would still apply. */
6971 rm -f conftest.$ac_objext conftest$ac_exeext
6972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6973 (eval $ac_link) 2>&5
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); } &&
6977 { ac_try='test -s conftest$ac_exeext'
6978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); }; }; then
6983 ac_cv_search_opendir="none required"
6985 echo "$as_me: failed program was:" >&5
6986 sed 's/^/| /' conftest.$ac_ext >&5
6989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6990 if test "$ac_cv_search_opendir" = no; then
6992 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6993 cat >conftest.$ac_ext <<_ACEOF
6994 #line $LINENO "configure"
6997 cat confdefs.h >>conftest.$ac_ext
6998 cat >>conftest.$ac_ext <<_ACEOF
6999 /* end confdefs.h. */
7001 /* Override any gcc2 internal prototype to avoid an error. */
7005 /* We use char because int might match the return type of a gcc2
7006 builtin and then its argument prototype would still apply. */
7016 rm -f conftest.$ac_objext conftest$ac_exeext
7017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7018 (eval $ac_link) 2>&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } &&
7022 { ac_try='test -s conftest$ac_exeext'
7023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); }; }; then
7028 ac_cv_search_opendir="-l$ac_lib"
7031 echo "$as_me: failed program was:" >&5
7032 sed 's/^/| /' conftest.$ac_ext >&5
7035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7038 LIBS=$ac_func_search_save_LIBS
7040 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7041 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7042 if test "$ac_cv_search_opendir" != no; then
7043 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7126 X11/extensions/XShm.h \
7129 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7131 echo "$as_me:$LINENO: checking for $ac_header" >&5
7132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7139 # Is the header compilable?
7140 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7141 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7142 cat >conftest.$ac_ext <<_ACEOF
7143 #line $LINENO "configure"
7146 cat confdefs.h >>conftest.$ac_ext
7147 cat >>conftest.$ac_ext <<_ACEOF
7148 /* end confdefs.h. */
7149 $ac_includes_default
7150 #include <$ac_header>
7152 rm -f conftest.$ac_objext
7153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7154 (eval $ac_compile) 2>&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); } &&
7158 { ac_try='test -s conftest.$ac_objext'
7159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); }; }; then
7164 ac_header_compiler=yes
7166 echo "$as_me: failed program was:" >&5
7167 sed 's/^/| /' conftest.$ac_ext >&5
7169 ac_header_compiler=no
7171 rm -f conftest.$ac_objext conftest.$ac_ext
7172 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7173 echo "${ECHO_T}$ac_header_compiler" >&6
7175 # Is the header present?
7176 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7177 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7178 cat >conftest.$ac_ext <<_ACEOF
7179 #line $LINENO "configure"
7182 cat confdefs.h >>conftest.$ac_ext
7183 cat >>conftest.$ac_ext <<_ACEOF
7184 /* end confdefs.h. */
7185 #include <$ac_header>
7187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7190 grep -v '^ *+' conftest.er1 >conftest.err
7192 cat conftest.err >&5
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); } >/dev/null; then
7195 if test -s conftest.err; then
7196 ac_cpp_err=$ac_c_preproc_warn_flag
7203 if test -z "$ac_cpp_err"; then
7204 ac_header_preproc=yes
7206 echo "$as_me: failed program was:" >&5
7207 sed 's/^/| /' conftest.$ac_ext >&5
7209 ac_header_preproc=no
7211 rm -f conftest.err conftest.$ac_ext
7212 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7213 echo "${ECHO_T}$ac_header_preproc" >&6
7215 # So? What about this header?
7216 case $ac_header_compiler:$ac_header_preproc in
7218 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7224 ## ------------------------------------ ##
7225 ## Report this to bug-autoconf@gnu.org. ##
7226 ## ------------------------------------ ##
7229 sed "s/^/$as_me: WARNING: /" >&2
7232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7235 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7240 ## ------------------------------------ ##
7241 ## Report this to bug-autoconf@gnu.org. ##
7242 ## ------------------------------------ ##
7245 sed "s/^/$as_me: WARNING: /" >&2
7248 echo "$as_me:$LINENO: checking for $ac_header" >&5
7249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7253 eval "$as_ac_Header=$ac_header_preproc"
7255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7260 cat >>confdefs.h <<_ACEOF
7261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7268 if test "${ac_cv_header_string_h+set}" = set; then
7269 echo "$as_me:$LINENO: checking for string.h" >&5
7270 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
7271 if test "${ac_cv_header_string_h+set}" = set; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
7274 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7275 echo "${ECHO_T}$ac_cv_header_string_h" >&6
7277 # Is the header compilable?
7278 echo "$as_me:$LINENO: checking string.h usability" >&5
7279 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
7280 cat >conftest.$ac_ext <<_ACEOF
7281 #line $LINENO "configure"
7284 cat confdefs.h >>conftest.$ac_ext
7285 cat >>conftest.$ac_ext <<_ACEOF
7286 /* end confdefs.h. */
7287 $ac_includes_default
7290 rm -f conftest.$ac_objext
7291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7292 (eval $ac_compile) 2>&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); } &&
7296 { ac_try='test -s conftest.$ac_objext'
7297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); }; }; then
7302 ac_header_compiler=yes
7304 echo "$as_me: failed program was:" >&5
7305 sed 's/^/| /' conftest.$ac_ext >&5
7307 ac_header_compiler=no
7309 rm -f conftest.$ac_objext conftest.$ac_ext
7310 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7311 echo "${ECHO_T}$ac_header_compiler" >&6
7313 # Is the header present?
7314 echo "$as_me:$LINENO: checking string.h presence" >&5
7315 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
7316 cat >conftest.$ac_ext <<_ACEOF
7317 #line $LINENO "configure"
7320 cat confdefs.h >>conftest.$ac_ext
7321 cat >>conftest.$ac_ext <<_ACEOF
7322 /* end confdefs.h. */
7325 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7326 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7328 grep -v '^ *+' conftest.er1 >conftest.err
7330 cat conftest.err >&5
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); } >/dev/null; then
7333 if test -s conftest.err; then
7334 ac_cpp_err=$ac_c_preproc_warn_flag
7341 if test -z "$ac_cpp_err"; then
7342 ac_header_preproc=yes
7344 echo "$as_me: failed program was:" >&5
7345 sed 's/^/| /' conftest.$ac_ext >&5
7347 ac_header_preproc=no
7349 rm -f conftest.err conftest.$ac_ext
7350 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7351 echo "${ECHO_T}$ac_header_preproc" >&6
7353 # So? What about this header?
7354 case $ac_header_compiler:$ac_header_preproc in
7356 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
7357 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7358 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
7359 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
7362 ## ------------------------------------ ##
7363 ## Report this to bug-autoconf@gnu.org. ##
7364 ## ------------------------------------ ##
7367 sed "s/^/$as_me: WARNING: /" >&2
7370 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
7371 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
7372 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
7373 echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
7374 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
7375 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
7378 ## ------------------------------------ ##
7379 ## Report this to bug-autoconf@gnu.org. ##
7380 ## ------------------------------------ ##
7383 sed "s/^/$as_me: WARNING: /" >&2
7386 echo "$as_me:$LINENO: checking for string.h" >&5
7387 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
7388 if test "${ac_cv_header_string_h+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 ac_cv_header_string_h=$ac_header_preproc
7393 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7394 echo "${ECHO_T}$ac_cv_header_string_h" >&6
7397 if test $ac_cv_header_string_h = yes; then
7401 cat >>confdefs.h <<\_ACEOF
7402 #define NO_STRING_H 1
7409 # Checks for typedefs, structures, and compiler characteristics.
7410 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7411 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7412 if test "${ac_cv_c_bigendian+set}" = set; then
7413 echo $ECHO_N "(cached) $ECHO_C" >&6
7415 # See if sys/param.h defines the BYTE_ORDER macro.
7416 cat >conftest.$ac_ext <<_ACEOF
7417 #line $LINENO "configure"
7420 cat confdefs.h >>conftest.$ac_ext
7421 cat >>conftest.$ac_ext <<_ACEOF
7422 /* end confdefs.h. */
7423 #include <sys/types.h>
7424 #include <sys/param.h>
7429 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7437 rm -f conftest.$ac_objext
7438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7439 (eval $ac_compile) 2>&5
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); } &&
7443 { ac_try='test -s conftest.$ac_objext'
7444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); }; }; then
7449 # It does; now see whether it defined to BIG_ENDIAN or not.
7450 cat >conftest.$ac_ext <<_ACEOF
7451 #line $LINENO "configure"
7454 cat confdefs.h >>conftest.$ac_ext
7455 cat >>conftest.$ac_ext <<_ACEOF
7456 /* end confdefs.h. */
7457 #include <sys/types.h>
7458 #include <sys/param.h>
7463 #if BYTE_ORDER != BIG_ENDIAN
7471 rm -f conftest.$ac_objext
7472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7473 (eval $ac_compile) 2>&5
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); } &&
7477 { ac_try='test -s conftest.$ac_objext'
7478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); }; }; then
7483 ac_cv_c_bigendian=yes
7485 echo "$as_me: failed program was:" >&5
7486 sed 's/^/| /' conftest.$ac_ext >&5
7488 ac_cv_c_bigendian=no
7490 rm -f conftest.$ac_objext conftest.$ac_ext
7492 echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.$ac_ext >&5
7495 # It does not; compile a test program.
7496 if test "$cross_compiling" = yes; then
7497 # try to guess the endianness by grepping values into an object file
7498 ac_cv_c_bigendian=unknown
7499 cat >conftest.$ac_ext <<_ACEOF
7500 #line $LINENO "configure"
7503 cat confdefs.h >>conftest.$ac_ext
7504 cat >>conftest.$ac_ext <<_ACEOF
7505 /* end confdefs.h. */
7506 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7507 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7508 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7509 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7510 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7511 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7515 _ascii (); _ebcdic ();
7520 rm -f conftest.$ac_objext
7521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7522 (eval $ac_compile) 2>&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); } &&
7526 { ac_try='test -s conftest.$ac_objext'
7527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); }; }; then
7532 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7533 ac_cv_c_bigendian=yes
7535 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7536 if test "$ac_cv_c_bigendian" = unknown; then
7537 ac_cv_c_bigendian=no
7539 # finding both strings is unlikely to happen, but who knows?
7540 ac_cv_c_bigendian=unknown
7544 echo "$as_me: failed program was:" >&5
7545 sed 's/^/| /' conftest.$ac_ext >&5
7548 rm -f conftest.$ac_objext conftest.$ac_ext
7550 cat >conftest.$ac_ext <<_ACEOF
7551 #line $LINENO "configure"
7554 cat confdefs.h >>conftest.$ac_ext
7555 cat >>conftest.$ac_ext <<_ACEOF
7556 /* end confdefs.h. */
7560 /* Are we little or big endian? From Harbison&Steele. */
7564 char c[sizeof (long)];
7567 exit (u.c[sizeof (long) - 1] == 1);
7570 rm -f conftest$ac_exeext
7571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7572 (eval $ac_link) 2>&5
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); }; }; then
7581 ac_cv_c_bigendian=no
7583 echo "$as_me: program exited with status $ac_status" >&5
7584 echo "$as_me: failed program was:" >&5
7585 sed 's/^/| /' conftest.$ac_ext >&5
7588 ac_cv_c_bigendian=yes
7590 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7593 rm -f conftest.$ac_objext conftest.$ac_ext
7595 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7596 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7597 case $ac_cv_c_bigendian in
7600 cat >>confdefs.h <<\_ACEOF
7601 #define WORDS_BIGENDIAN 1
7607 { { echo "$as_me:$LINENO: error: unknown endianness
7608 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7609 echo "$as_me: error: unknown endianness
7610 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7611 { (exit 1); exit 1; }; } ;;
7615 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
7616 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
7617 if test "${ac_cv_c_char_unsigned+set}" = set; then
7618 echo $ECHO_N "(cached) $ECHO_C" >&6
7620 cat >conftest.$ac_ext <<_ACEOF
7621 #line $LINENO "configure"
7624 cat confdefs.h >>conftest.$ac_ext
7625 cat >>conftest.$ac_ext <<_ACEOF
7626 /* end confdefs.h. */
7627 $ac_includes_default
7631 static int test_array [1 - 2 * !(((char) -1) < 0)];
7638 rm -f conftest.$ac_objext
7639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7640 (eval $ac_compile) 2>&5
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); } &&
7644 { ac_try='test -s conftest.$ac_objext'
7645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); }; }; then
7650 ac_cv_c_char_unsigned=no
7652 echo "$as_me: failed program was:" >&5
7653 sed 's/^/| /' conftest.$ac_ext >&5
7655 ac_cv_c_char_unsigned=yes
7657 rm -f conftest.$ac_objext conftest.$ac_ext
7659 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
7660 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
7661 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
7662 cat >>confdefs.h <<\_ACEOF
7663 #define __CHAR_UNSIGNED__ 1
7668 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7669 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7670 if test "${ac_cv_c_const+set}" = set; then
7671 echo $ECHO_N "(cached) $ECHO_C" >&6
7673 cat >conftest.$ac_ext <<_ACEOF
7674 #line $LINENO "configure"
7677 cat confdefs.h >>conftest.$ac_ext
7678 cat >>conftest.$ac_ext <<_ACEOF
7679 /* end confdefs.h. */
7684 /* FIXME: Include the comments suggested by Paul. */
7686 /* Ultrix mips cc rejects this. */
7687 typedef int charset[2];
7689 /* SunOS 4.1.1 cc rejects this. */
7690 char const *const *ccp;
7692 /* NEC SVR4.0.2 mips cc rejects this. */
7693 struct point {int x, y;};
7694 static struct point const zero = {0,0};
7695 /* AIX XL C 1.02.0.0 rejects this.
7696 It does not let you subtract one const X* pointer from another in
7697 an arm of an if-expression whose if-part is not a constant
7699 const char *g = "string";
7700 ccp = &g + (g ? g-g : 0);
7701 /* HPUX 7.0 cc rejects these. */
7704 ccp = (char const *const *) p;
7705 { /* SCO 3.2v4 cc rejects this. */
7707 char const *s = 0 ? (char *) 0 : (char const *) 0;
7711 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7713 const int *foo = &x[0];
7716 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7717 typedef const int *iptr;
7721 { /* AIX XL C 1.02.0.0 rejects this saying
7722 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7723 struct s { int j; const int *ap[3]; };
7724 struct s *b; b->j = 5;
7726 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7735 rm -f conftest.$ac_objext
7736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7737 (eval $ac_compile) 2>&5
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); } &&
7741 { ac_try='test -s conftest.$ac_objext'
7742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); }; }; then
7749 echo "$as_me: failed program was:" >&5
7750 sed 's/^/| /' conftest.$ac_ext >&5
7754 rm -f conftest.$ac_objext conftest.$ac_ext
7756 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7757 echo "${ECHO_T}$ac_cv_c_const" >&6
7758 if test $ac_cv_c_const = no; then
7760 cat >>confdefs.h <<\_ACEOF
7766 echo "$as_me:$LINENO: checking for inline" >&5
7767 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7768 if test "${ac_cv_c_inline+set}" = set; then
7769 echo $ECHO_N "(cached) $ECHO_C" >&6
7772 for ac_kw in inline __inline__ __inline; do
7773 cat >conftest.$ac_ext <<_ACEOF
7774 #line $LINENO "configure"
7777 cat confdefs.h >>conftest.$ac_ext
7778 cat >>conftest.$ac_ext <<_ACEOF
7779 /* end confdefs.h. */
7782 static $ac_kw foo_t static_foo () {return 0; }
7783 $ac_kw foo_t foo () {return 0; }
7787 rm -f conftest.$ac_objext
7788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7789 (eval $ac_compile) 2>&5
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); } &&
7793 { ac_try='test -s conftest.$ac_objext'
7794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); }; }; then
7799 ac_cv_c_inline=$ac_kw; break
7801 echo "$as_me: failed program was:" >&5
7802 sed 's/^/| /' conftest.$ac_ext >&5
7805 rm -f conftest.$ac_objext conftest.$ac_ext
7809 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7810 echo "${ECHO_T}$ac_cv_c_inline" >&6
7811 case $ac_cv_c_inline in
7814 cat >>confdefs.h <<\_ACEOF
7818 *) cat >>confdefs.h <<_ACEOF
7819 #define inline $ac_cv_c_inline
7824 echo "$as_me:$LINENO: checking for working volatile" >&5
7825 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7826 if test "${ac_cv_c_volatile+set}" = set; then
7827 echo $ECHO_N "(cached) $ECHO_C" >&6
7829 cat >conftest.$ac_ext <<_ACEOF
7830 #line $LINENO "configure"
7833 cat confdefs.h >>conftest.$ac_ext
7834 cat >>conftest.$ac_ext <<_ACEOF
7835 /* end confdefs.h. */
7847 rm -f conftest.$ac_objext
7848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7849 (eval $ac_compile) 2>&5
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); } &&
7853 { ac_try='test -s conftest.$ac_objext'
7854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); }; }; then
7859 ac_cv_c_volatile=yes
7861 echo "$as_me: failed program was:" >&5
7862 sed 's/^/| /' conftest.$ac_ext >&5
7866 rm -f conftest.$ac_objext conftest.$ac_ext
7868 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7869 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7870 if test $ac_cv_c_volatile = no; then
7872 cat >>confdefs.h <<\_ACEOF
7878 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
7879 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
7880 if test "${ac_cv_c_stringize+set}" = set; then
7881 echo $ECHO_N "(cached) $ECHO_C" >&6
7883 cat >conftest.$ac_ext <<_ACEOF
7884 #line $LINENO "configure"
7887 cat confdefs.h >>conftest.$ac_ext
7888 cat >>conftest.$ac_ext <<_ACEOF
7889 /* end confdefs.h. */
7892 char *s = x(teststring);
7894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7895 $EGREP "#teststring" >/dev/null 2>&1; then
7896 ac_cv_c_stringize=no
7898 ac_cv_c_stringize=yes
7903 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
7904 echo "${ECHO_T}$ac_cv_c_stringize" >&6
7905 if test $ac_cv_c_stringize = yes; then
7907 cat >>confdefs.h <<\_ACEOF
7908 #define HAVE_STRINGIZE 1
7913 echo "$as_me:$LINENO: checking for function prototypes" >&5
7914 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7915 if test "$ac_cv_prog_cc_stdc" != no; then
7916 echo "$as_me:$LINENO: result: yes" >&5
7917 echo "${ECHO_T}yes" >&6
7919 cat >>confdefs.h <<\_ACEOF
7920 #define PROTOTYPES 1
7924 cat >>confdefs.h <<\_ACEOF
7925 #define __PROTOTYPES 1
7929 echo "$as_me:$LINENO: result: no" >&5
7930 echo "${ECHO_T}no" >&6
7933 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7934 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7935 if test "${ac_cv_struct_tm+set}" = set; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
7938 cat >conftest.$ac_ext <<_ACEOF
7939 #line $LINENO "configure"
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h. */
7945 #include <sys/types.h>
7951 struct tm *tp; tp->tm_sec;
7956 rm -f conftest.$ac_objext
7957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7958 (eval $ac_compile) 2>&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } &&
7962 { ac_try='test -s conftest.$ac_objext'
7963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; }; then
7968 ac_cv_struct_tm=time.h
7970 echo "$as_me: failed program was:" >&5
7971 sed 's/^/| /' conftest.$ac_ext >&5
7973 ac_cv_struct_tm=sys/time.h
7975 rm -f conftest.$ac_objext conftest.$ac_ext
7977 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7978 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7979 if test $ac_cv_struct_tm = sys/time.h; then
7981 cat >>confdefs.h <<\_ACEOF
7982 #define TM_IN_SYS_TIME 1
7987 echo "$as_me:$LINENO: checking for size_t" >&5
7988 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7989 if test "${ac_cv_type_size_t+set}" = set; then
7990 echo $ECHO_N "(cached) $ECHO_C" >&6
7992 cat >conftest.$ac_ext <<_ACEOF
7993 #line $LINENO "configure"
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h. */
7999 $ac_includes_default
8005 if (sizeof (size_t))
8011 rm -f conftest.$ac_objext
8012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8013 (eval $ac_compile) 2>&5
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); } &&
8017 { ac_try='test -s conftest.$ac_objext'
8018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); }; }; then
8023 ac_cv_type_size_t=yes
8025 echo "$as_me: failed program was:" >&5
8026 sed 's/^/| /' conftest.$ac_ext >&5
8028 ac_cv_type_size_t=no
8030 rm -f conftest.$ac_objext conftest.$ac_ext
8032 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8033 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8034 if test $ac_cv_type_size_t = yes; then
8038 cat >>confdefs.h <<_ACEOF
8039 #define size_t unsigned
8044 echo "$as_me:$LINENO: checking for off_t" >&5
8045 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8046 if test "${ac_cv_type_off_t+set}" = set; then
8047 echo $ECHO_N "(cached) $ECHO_C" >&6
8049 cat >conftest.$ac_ext <<_ACEOF
8050 #line $LINENO "configure"
8053 cat confdefs.h >>conftest.$ac_ext
8054 cat >>conftest.$ac_ext <<_ACEOF
8055 /* end confdefs.h. */
8056 $ac_includes_default
8068 rm -f conftest.$ac_objext
8069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8070 (eval $ac_compile) 2>&5
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); } &&
8074 { ac_try='test -s conftest.$ac_objext'
8075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); }; }; then
8080 ac_cv_type_off_t=yes
8082 echo "$as_me: failed program was:" >&5
8083 sed 's/^/| /' conftest.$ac_ext >&5
8087 rm -f conftest.$ac_objext conftest.$ac_ext
8089 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8090 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8091 if test $ac_cv_type_off_t = yes; then
8095 cat >>confdefs.h <<_ACEOF
8101 echo "$as_me:$LINENO: checking for pid_t" >&5
8102 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8103 if test "${ac_cv_type_pid_t+set}" = set; then
8104 echo $ECHO_N "(cached) $ECHO_C" >&6
8106 cat >conftest.$ac_ext <<_ACEOF
8107 #line $LINENO "configure"
8110 cat confdefs.h >>conftest.$ac_ext
8111 cat >>conftest.$ac_ext <<_ACEOF
8112 /* end confdefs.h. */
8113 $ac_includes_default
8125 rm -f conftest.$ac_objext
8126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8127 (eval $ac_compile) 2>&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); } &&
8131 { ac_try='test -s conftest.$ac_objext'
8132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); }; }; then
8137 ac_cv_type_pid_t=yes
8139 echo "$as_me: failed program was:" >&5
8140 sed 's/^/| /' conftest.$ac_ext >&5
8144 rm -f conftest.$ac_objext conftest.$ac_ext
8146 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8147 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8148 if test $ac_cv_type_pid_t = yes; then
8152 cat >>confdefs.h <<_ACEOF
8159 echo "$as_me:$LINENO: checking volatile declaration" >&5
8160 echo $ECHO_N "checking volatile declaration... $ECHO_C" >&6
8161 if test "${timidity_cv_type_volatile+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8164 cat >conftest.$ac_ext <<_ACEOF
8165 #line $LINENO "configure"
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h. */
8180 rm -f conftest.$ac_objext
8181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8182 (eval $ac_compile) 2>&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } &&
8186 { ac_try='test -s conftest.$ac_objext'
8187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); }; }; then
8192 timidity_cv_type_volatile=yes
8194 echo "$as_me: failed program was:" >&5
8195 sed 's/^/| /' conftest.$ac_ext >&5
8197 timidity_cv_type_volatile=no
8199 rm -f conftest.$ac_objext conftest.$ac_ext
8201 echo "$as_me:$LINENO: result: $timidity_cv_type_volatile" >&5
8202 echo "${ECHO_T}$timidity_cv_type_volatile" >&6
8203 if test $timidity_cv_type_volatile = no; then
8205 cat >>confdefs.h <<\_ACEOF
8206 #define NO_VOLATILE 1
8211 echo "$as_me:$LINENO: checking union semun declaration" >&5
8212 echo $ECHO_N "checking union semun declaration... $ECHO_C" >&6
8213 if test "${timidity_cv_type_union_semun+set}" = set; then
8214 echo $ECHO_N "(cached) $ECHO_C" >&6
8216 cat >conftest.$ac_ext <<_ACEOF
8217 #line $LINENO "configure"
8220 cat confdefs.h >>conftest.$ac_ext
8221 cat >>conftest.$ac_ext <<_ACEOF
8222 /* end confdefs.h. */
8224 #include <sys/types.h>
8225 #include <sys/ipc.h>
8226 #include <sys/sem.h>
8236 rm -f conftest.$ac_objext
8237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8238 (eval $ac_compile) 2>&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); } &&
8242 { ac_try='test -s conftest.$ac_objext'
8243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); }; }; then
8248 timidity_cv_type_union_semun=yes
8250 echo "$as_me: failed program was:" >&5
8251 sed 's/^/| /' conftest.$ac_ext >&5
8253 timidity_cv_type_union_semun=no
8255 rm -f conftest.$ac_objext conftest.$ac_ext
8257 echo "$as_me:$LINENO: result: $timidity_cv_type_union_semun" >&5
8258 echo "${ECHO_T}$timidity_cv_type_union_semun" >&6
8259 if test $timidity_cv_type_union_semun = yes; then
8261 cat >>confdefs.h <<\_ACEOF
8262 #define HAVE_UNION_SEMUN 1
8267 if test "x$CYGNUS" = xyes; then
8268 echo "$as_me:$LINENO: checking Cygwin new mmsystem" >&5
8269 echo $ECHO_N "checking Cygwin new mmsystem... $ECHO_C" >&6
8270 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
8273 cat >conftest.$ac_ext <<_ACEOF
8274 #line $LINENO "configure"
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h. */
8281 #include <windows.h>
8282 #include <mmsystem.h>
8287 return WOM_OPEN != 0x3BB
8292 rm -f conftest.$ac_objext
8293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8294 (eval $ac_compile) 2>&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } &&
8298 { ac_try='test -s conftest.$ac_objext'
8299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); }; }; then
8304 timidity_cv_header_new_mmsystem=yes
8306 echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.$ac_ext >&5
8309 timidity_cv_header_new_mmsystem=no
8311 rm -f conftest.$ac_objext conftest.$ac_ext
8313 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
8314 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
8315 if test $timidity_cv_header_new_mmsystem = yes; then
8317 cat >>confdefs.h <<\_ACEOF
8318 #define HAVE_NEW_MMSYSTEM 1
8324 if test "x$MINGW" = xyes; then
8325 echo "$as_me:$LINENO: checking Mingw new mmsystem" >&5
8326 echo $ECHO_N "checking Mingw new mmsystem... $ECHO_C" >&6
8327 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
8328 echo $ECHO_N "(cached) $ECHO_C" >&6
8330 cat >conftest.$ac_ext <<_ACEOF
8331 #line $LINENO "configure"
8334 cat confdefs.h >>conftest.$ac_ext
8335 cat >>conftest.$ac_ext <<_ACEOF
8336 /* end confdefs.h. */
8338 #include <windows.h>
8339 #include <mmsystem.h>
8344 return WOM_OPEN != 0x3BB
8349 rm -f conftest.$ac_objext
8350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8351 (eval $ac_compile) 2>&5
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); } &&
8355 { ac_try='test -s conftest.$ac_objext'
8356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); }; }; then
8361 timidity_cv_header_new_mmsystem=yes
8363 echo "$as_me: failed program was:" >&5
8364 sed 's/^/| /' conftest.$ac_ext >&5
8366 timidity_cv_header_new_mmsystem=no
8368 rm -f conftest.$ac_objext conftest.$ac_ext
8370 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
8371 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
8372 if test $timidity_cv_header_new_mmsystem = yes; then
8374 cat >>confdefs.h <<\_ACEOF
8375 #define HAVE_NEW_MMSYSTEM 1
8381 # Checks for library functions.
8382 echo "$as_me:$LINENO: checking for error_at_line" >&5
8383 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
8384 if test "${ac_cv_lib_error_at_line+set}" = set; then
8385 echo $ECHO_N "(cached) $ECHO_C" >&6
8387 cat >conftest.$ac_ext <<_ACEOF
8388 #line $LINENO "configure"
8391 cat confdefs.h >>conftest.$ac_ext
8392 cat >>conftest.$ac_ext <<_ACEOF
8393 /* end confdefs.h. */
8398 error_at_line (0, 0, "", 0, "");
8403 rm -f conftest.$ac_objext conftest$ac_exeext
8404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8405 (eval $ac_link) 2>&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); } &&
8409 { ac_try='test -s conftest$ac_exeext'
8410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); }; }; then
8415 ac_cv_lib_error_at_line=yes
8417 echo "$as_me: failed program was:" >&5
8418 sed 's/^/| /' conftest.$ac_ext >&5
8420 ac_cv_lib_error_at_line=no
8422 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8424 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
8425 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
8426 if test $ac_cv_lib_error_at_line = no; then
8427 LIBOBJS="$LIBOBJS error.$ac_objext"
8432 for ac_header in unistd.h vfork.h
8434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8436 echo "$as_me:$LINENO: checking for $ac_header" >&5
8437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8439 echo $ECHO_N "(cached) $ECHO_C" >&6
8441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8444 # Is the header compilable?
8445 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8447 cat >conftest.$ac_ext <<_ACEOF
8448 #line $LINENO "configure"
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h. */
8454 $ac_includes_default
8455 #include <$ac_header>
8457 rm -f conftest.$ac_objext
8458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8459 (eval $ac_compile) 2>&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } &&
8463 { ac_try='test -s conftest.$ac_objext'
8464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); }; }; then
8469 ac_header_compiler=yes
8471 echo "$as_me: failed program was:" >&5
8472 sed 's/^/| /' conftest.$ac_ext >&5
8474 ac_header_compiler=no
8476 rm -f conftest.$ac_objext conftest.$ac_ext
8477 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8478 echo "${ECHO_T}$ac_header_compiler" >&6
8480 # Is the header present?
8481 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8482 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8483 cat >conftest.$ac_ext <<_ACEOF
8484 #line $LINENO "configure"
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h. */
8490 #include <$ac_header>
8492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8495 grep -v '^ *+' conftest.er1 >conftest.err
8497 cat conftest.err >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } >/dev/null; then
8500 if test -s conftest.err; then
8501 ac_cpp_err=$ac_c_preproc_warn_flag
8508 if test -z "$ac_cpp_err"; then
8509 ac_header_preproc=yes
8511 echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8514 ac_header_preproc=no
8516 rm -f conftest.err conftest.$ac_ext
8517 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8518 echo "${ECHO_T}$ac_header_preproc" >&6
8520 # So? What about this header?
8521 case $ac_header_compiler:$ac_header_preproc in
8523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8529 ## ------------------------------------ ##
8530 ## Report this to bug-autoconf@gnu.org. ##
8531 ## ------------------------------------ ##
8534 sed "s/^/$as_me: WARNING: /" >&2
8537 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8538 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8539 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8540 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8545 ## ------------------------------------ ##
8546 ## Report this to bug-autoconf@gnu.org. ##
8547 ## ------------------------------------ ##
8550 sed "s/^/$as_me: WARNING: /" >&2
8553 echo "$as_me:$LINENO: checking for $ac_header" >&5
8554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8556 echo $ECHO_N "(cached) $ECHO_C" >&6
8558 eval "$as_ac_Header=$ac_header_preproc"
8560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8561 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8565 cat >>confdefs.h <<_ACEOF
8566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8575 for ac_func in fork vfork
8577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8578 echo "$as_me:$LINENO: checking for $ac_func" >&5
8579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8580 if eval "test \"\${$as_ac_var+set}\" = set"; then
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
8583 cat >conftest.$ac_ext <<_ACEOF
8584 #line $LINENO "configure"
8587 cat confdefs.h >>conftest.$ac_ext
8588 cat >>conftest.$ac_ext <<_ACEOF
8589 /* end confdefs.h. */
8590 /* System header to define __stub macros and hopefully few prototypes,
8591 which can conflict with char $ac_func (); below.
8592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8593 <limits.h> exists even on freestanding compilers. */
8595 # include <limits.h>
8597 # include <assert.h>
8599 /* Override any gcc2 internal prototype to avoid an error. */
8604 /* We use char because int might match the return type of a gcc2
8605 builtin and then its argument prototype would still apply. */
8607 /* The GNU C library defines this for functions which it implements
8608 to always fail with ENOSYS. Some functions are actually named
8609 something starting with __ and the normal name is an alias. */
8610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8613 char (*f) () = $ac_func;
8622 return f != $ac_func;
8627 rm -f conftest.$ac_objext conftest$ac_exeext
8628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8629 (eval $ac_link) 2>&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); } &&
8633 { ac_try='test -s conftest$ac_exeext'
8634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); }; }; then
8639 eval "$as_ac_var=yes"
8641 echo "$as_me: failed program was:" >&5
8642 sed 's/^/| /' conftest.$ac_ext >&5
8644 eval "$as_ac_var=no"
8646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8650 if test `eval echo '${'$as_ac_var'}'` = yes; then
8651 cat >>confdefs.h <<_ACEOF
8652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8658 if test "x$ac_cv_func_fork" = xyes; then
8659 echo "$as_me:$LINENO: checking for working fork" >&5
8660 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
8661 if test "${ac_cv_func_fork_works+set}" = set; then
8662 echo $ECHO_N "(cached) $ECHO_C" >&6
8664 if test "$cross_compiling" = yes; then
8665 ac_cv_func_fork_works=cross
8667 cat >conftest.$ac_ext <<_ACEOF
8668 /* By Ruediger Kuhlmann. */
8669 #include <sys/types.h>
8671 # include <unistd.h>
8673 /* Some systems only have a dummy stub for fork() */
8681 rm -f conftest$ac_exeext
8682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8683 (eval $ac_link) 2>&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); }; }; then
8692 ac_cv_func_fork_works=yes
8694 echo "$as_me: program exited with status $ac_status" >&5
8695 echo "$as_me: failed program was:" >&5
8696 sed 's/^/| /' conftest.$ac_ext >&5
8699 ac_cv_func_fork_works=no
8701 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8704 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
8705 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
8708 ac_cv_func_fork_works=$ac_cv_func_fork
8710 if test "x$ac_cv_func_fork_works" = xcross; then
8712 *-*-amigaos* | *-*-msdosdjgpp*)
8713 # Override, as these systems have only a dummy fork() stub
8714 ac_cv_func_fork_works=no
8717 ac_cv_func_fork_works=yes
8720 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8721 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8723 ac_cv_func_vfork_works=$ac_cv_func_vfork
8724 if test "x$ac_cv_func_vfork" = xyes; then
8725 echo "$as_me:$LINENO: checking for working vfork" >&5
8726 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
8727 if test "${ac_cv_func_vfork_works+set}" = set; then
8728 echo $ECHO_N "(cached) $ECHO_C" >&6
8730 if test "$cross_compiling" = yes; then
8731 ac_cv_func_vfork_works=cross
8733 cat >conftest.$ac_ext <<_ACEOF
8734 #line $LINENO "configure"
8737 cat confdefs.h >>conftest.$ac_ext
8738 cat >>conftest.$ac_ext <<_ACEOF
8739 /* end confdefs.h. */
8740 /* Thanks to Paul Eggert for this test. */
8743 #include <sys/types.h>
8744 #include <sys/stat.h>
8745 #include <sys/wait.h>
8747 # include <unistd.h>
8752 /* On some sparc systems, changes by the child to local and incoming
8753 argument registers are propagated back to the parent. The compiler
8754 is told about this with #include <vfork.h>, but some compilers
8755 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8756 static variable whose address is put into a register that is
8757 clobbered by the vfork. */
8760 sparc_address_test (int arg)
8762 sparc_address_test (arg) int arg;
8783 pid_t parent = getpid ();
8786 sparc_address_test (0);
8791 /* Here is another test for sparc vfork register problems. This
8792 test uses lots of local variables, at least as many local
8793 variables as main has allocated so far including compiler
8794 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8795 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8796 reuse the register of parent for one of the local variables,
8797 since it will think that parent can't possibly be used any more
8798 in this routine. Assigning to the local variable will thus
8799 munge parent in the parent process. */
8801 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8802 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8803 /* Convince the compiler that p..p7 are live; otherwise, it might
8804 use the same hardware register for all 8 local variables. */
8805 if (p != p1 || p != p2 || p != p3 || p != p4
8806 || p != p5 || p != p6 || p != p7)
8809 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8810 from child file descriptors. If the child closes a descriptor
8811 before it execs or exits, this munges the parent's descriptor
8812 as well. Test for this by closing stdout in the child. */
8813 _exit(close(fileno(stdout)) != 0);
8818 while (wait(&status) != child)
8821 /* Was there some problem with vforking? */
8824 /* Did the child fail? (This shouldn't happen.) */
8827 /* Did the vfork/compiler bug occur? */
8828 || parent != getpid()
8830 /* Did the file descriptor bug occur? */
8831 || fstat(fileno(stdout), &st) != 0
8836 rm -f conftest$ac_exeext
8837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8838 (eval $ac_link) 2>&5
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); }; }; then
8847 ac_cv_func_vfork_works=yes
8849 echo "$as_me: program exited with status $ac_status" >&5
8850 echo "$as_me: failed program was:" >&5
8851 sed 's/^/| /' conftest.$ac_ext >&5
8854 ac_cv_func_vfork_works=no
8856 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8859 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8860 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
8863 if test "x$ac_cv_func_fork_works" = xcross; then
8864 ac_cv_func_vfork_works=ac_cv_func_vfork
8865 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8866 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8869 if test "x$ac_cv_func_vfork_works" = xyes; then
8871 cat >>confdefs.h <<\_ACEOF
8872 #define HAVE_WORKING_VFORK 1
8877 cat >>confdefs.h <<\_ACEOF
8882 if test "x$ac_cv_func_fork_works" = xyes; then
8884 cat >>confdefs.h <<\_ACEOF
8885 #define HAVE_WORKING_FORK 1
8890 echo "$as_me:$LINENO: checking for working memcmp" >&5
8891 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
8892 if test "${ac_cv_func_memcmp_working+set}" = set; then
8893 echo $ECHO_N "(cached) $ECHO_C" >&6
8895 if test "$cross_compiling" = yes; then
8896 ac_cv_func_memcmp_working=no
8898 cat >conftest.$ac_ext <<_ACEOF
8899 #line $LINENO "configure"
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h. */
8910 /* Some versions of memcmp are not 8-bit clean. */
8911 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
8912 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8915 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8916 or more and with at least one buffer not starting on a 4-byte boundary.
8917 William Lewis provided this test program. */
8922 for (i = 0; i < 4; i++)
8926 strcpy (a, "--------01111111");
8927 strcpy (b, "--------10000000");
8928 if (memcmp (a, b, 16) >= 0)
8938 rm -f conftest$ac_exeext
8939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8940 (eval $ac_link) 2>&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); }; }; then
8949 ac_cv_func_memcmp_working=yes
8951 echo "$as_me: program exited with status $ac_status" >&5
8952 echo "$as_me: failed program was:" >&5
8953 sed 's/^/| /' conftest.$ac_ext >&5
8956 ac_cv_func_memcmp_working=no
8958 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8961 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8962 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
8963 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8967 for ac_header in stdlib.h unistd.h
8969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8971 echo "$as_me:$LINENO: checking for $ac_header" >&5
8972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8974 echo $ECHO_N "(cached) $ECHO_C" >&6
8976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8979 # Is the header compilable?
8980 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8982 cat >conftest.$ac_ext <<_ACEOF
8983 #line $LINENO "configure"
8986 cat confdefs.h >>conftest.$ac_ext
8987 cat >>conftest.$ac_ext <<_ACEOF
8988 /* end confdefs.h. */
8989 $ac_includes_default
8990 #include <$ac_header>
8992 rm -f conftest.$ac_objext
8993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8994 (eval $ac_compile) 2>&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); } &&
8998 { ac_try='test -s conftest.$ac_objext'
8999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); }; }; then
9004 ac_header_compiler=yes
9006 echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.$ac_ext >&5
9009 ac_header_compiler=no
9011 rm -f conftest.$ac_objext conftest.$ac_ext
9012 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9013 echo "${ECHO_T}$ac_header_compiler" >&6
9015 # Is the header present?
9016 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9018 cat >conftest.$ac_ext <<_ACEOF
9019 #line $LINENO "configure"
9022 cat confdefs.h >>conftest.$ac_ext
9023 cat >>conftest.$ac_ext <<_ACEOF
9024 /* end confdefs.h. */
9025 #include <$ac_header>
9027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9030 grep -v '^ *+' conftest.er1 >conftest.err
9032 cat conftest.err >&5
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); } >/dev/null; then
9035 if test -s conftest.err; then
9036 ac_cpp_err=$ac_c_preproc_warn_flag
9043 if test -z "$ac_cpp_err"; then
9044 ac_header_preproc=yes
9046 echo "$as_me: failed program was:" >&5
9047 sed 's/^/| /' conftest.$ac_ext >&5
9049 ac_header_preproc=no
9051 rm -f conftest.err conftest.$ac_ext
9052 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9053 echo "${ECHO_T}$ac_header_preproc" >&6
9055 # So? What about this header?
9056 case $ac_header_compiler:$ac_header_preproc in
9058 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9061 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9064 ## ------------------------------------ ##
9065 ## Report this to bug-autoconf@gnu.org. ##
9066 ## ------------------------------------ ##
9069 sed "s/^/$as_me: WARNING: /" >&2
9072 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9073 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9074 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9075 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9080 ## ------------------------------------ ##
9081 ## Report this to bug-autoconf@gnu.org. ##
9082 ## ------------------------------------ ##
9085 sed "s/^/$as_me: WARNING: /" >&2
9088 echo "$as_me:$LINENO: checking for $ac_header" >&5
9089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9091 echo $ECHO_N "(cached) $ECHO_C" >&6
9093 eval "$as_ac_Header=$ac_header_preproc"
9095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9100 cat >>confdefs.h <<_ACEOF
9101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9109 for ac_func in getpagesize
9111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9112 echo "$as_me:$LINENO: checking for $ac_func" >&5
9113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9114 if eval "test \"\${$as_ac_var+set}\" = set"; then
9115 echo $ECHO_N "(cached) $ECHO_C" >&6
9117 cat >conftest.$ac_ext <<_ACEOF
9118 #line $LINENO "configure"
9121 cat confdefs.h >>conftest.$ac_ext
9122 cat >>conftest.$ac_ext <<_ACEOF
9123 /* end confdefs.h. */
9124 /* System header to define __stub macros and hopefully few prototypes,
9125 which can conflict with char $ac_func (); below.
9126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9127 <limits.h> exists even on freestanding compilers. */
9129 # include <limits.h>
9131 # include <assert.h>
9133 /* Override any gcc2 internal prototype to avoid an error. */
9138 /* We use char because int might match the return type of a gcc2
9139 builtin and then its argument prototype would still apply. */
9141 /* The GNU C library defines this for functions which it implements
9142 to always fail with ENOSYS. Some functions are actually named
9143 something starting with __ and the normal name is an alias. */
9144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9147 char (*f) () = $ac_func;
9156 return f != $ac_func;
9161 rm -f conftest.$ac_objext conftest$ac_exeext
9162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9163 (eval $ac_link) 2>&5
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); } &&
9167 { ac_try='test -s conftest$ac_exeext'
9168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); }; }; then
9173 eval "$as_ac_var=yes"
9175 echo "$as_me: failed program was:" >&5
9176 sed 's/^/| /' conftest.$ac_ext >&5
9178 eval "$as_ac_var=no"
9180 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9183 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9184 if test `eval echo '${'$as_ac_var'}'` = yes; then
9185 cat >>confdefs.h <<_ACEOF
9186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9192 echo "$as_me:$LINENO: checking for working mmap" >&5
9193 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9194 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9195 echo $ECHO_N "(cached) $ECHO_C" >&6
9197 if test "$cross_compiling" = yes; then
9198 ac_cv_func_mmap_fixed_mapped=no
9200 cat >conftest.$ac_ext <<_ACEOF
9201 #line $LINENO "configure"
9204 cat confdefs.h >>conftest.$ac_ext
9205 cat >>conftest.$ac_ext <<_ACEOF
9206 /* end confdefs.h. */
9207 $ac_includes_default
9208 /* malloc might have been renamed as rpl_malloc. */
9211 /* Thanks to Mike Haertel and Jim Avera for this test.
9212 Here is a matrix of mmap possibilities:
9213 mmap private not fixed
9214 mmap private fixed at somewhere currently unmapped
9215 mmap private fixed at somewhere already mapped
9216 mmap shared not fixed
9217 mmap shared fixed at somewhere currently unmapped
9218 mmap shared fixed at somewhere already mapped
9219 For private mappings, we should verify that changes cannot be read()
9220 back from the file, nor mmap's back from the file at a different
9221 address. (There have been systems where private was not correctly
9222 implemented like the infamous i386 svr4.0, and systems where the
9223 VM page cache was not coherent with the file system buffer cache
9224 like early versions of FreeBSD and possibly contemporary NetBSD.)
9225 For shared mappings, we should conversely verify that changes get
9226 propagated back to all the places they're supposed to be.
9228 Grep wants private fixed already mapped.
9229 The main things grep needs to know about mmap are:
9230 * does it exist and is it safe to write into the mmap'd area
9231 * how to use it (BSD variants) */
9234 #include <sys/mman.h>
9236 #if !STDC_HEADERS && !HAVE_STDLIB_H
9240 /* This mess was copied from the GNU getpagesize.h. */
9241 #if !HAVE_GETPAGESIZE
9242 /* Assume that all systems that can run configure have sys/param.h. */
9243 # if !HAVE_SYS_PARAM_H
9244 # define HAVE_SYS_PARAM_H 1
9247 # ifdef _SC_PAGESIZE
9248 # define getpagesize() sysconf(_SC_PAGESIZE)
9249 # else /* no _SC_PAGESIZE */
9250 # if HAVE_SYS_PARAM_H
9251 # include <sys/param.h>
9252 # ifdef EXEC_PAGESIZE
9253 # define getpagesize() EXEC_PAGESIZE
9254 # else /* no EXEC_PAGESIZE */
9256 # define getpagesize() NBPG * CLSIZE
9259 # endif /* no CLSIZE */
9260 # else /* no NBPG */
9262 # define getpagesize() NBPC
9263 # else /* no NBPC */
9265 # define getpagesize() PAGESIZE
9266 # endif /* PAGESIZE */
9267 # endif /* no NBPC */
9268 # endif /* no NBPG */
9269 # endif /* no EXEC_PAGESIZE */
9270 # else /* no HAVE_SYS_PARAM_H */
9271 # define getpagesize() 8192 /* punt totally */
9272 # endif /* no HAVE_SYS_PARAM_H */
9273 # endif /* no _SC_PAGESIZE */
9275 #endif /* no HAVE_GETPAGESIZE */
9280 char *data, *data2, *data3;
9284 pagesize = getpagesize ();
9286 /* First, make a file with some known garbage in it. */
9287 data = (char *) malloc (pagesize);
9290 for (i = 0; i < pagesize; ++i)
9291 *(data + i) = rand ();
9293 fd = creat ("conftest.mmap", 0600);
9296 if (write (fd, data, pagesize) != pagesize)
9300 /* Next, try to mmap the file at a fixed address which already has
9301 something else allocated at it. If we can, also make sure that
9302 we see the same garbage. */
9303 fd = open ("conftest.mmap", O_RDWR);
9306 data2 = (char *) malloc (2 * pagesize);
9309 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
9310 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9311 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9313 for (i = 0; i < pagesize; ++i)
9314 if (*(data + i) != *(data2 + i))
9317 /* Finally, make sure that changes to the mapped area do not
9318 percolate back to the file as seen by read(). (This is a bug on
9319 some variants of i386 svr4.0.) */
9320 for (i = 0; i < pagesize; ++i)
9321 *(data2 + i) = *(data2 + i) + 1;
9322 data3 = (char *) malloc (pagesize);
9325 if (read (fd, data3, pagesize) != pagesize)
9327 for (i = 0; i < pagesize; ++i)
9328 if (*(data + i) != *(data3 + i))
9334 rm -f conftest$ac_exeext
9335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9336 (eval $ac_link) 2>&5
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); }; }; then
9345 ac_cv_func_mmap_fixed_mapped=yes
9347 echo "$as_me: program exited with status $ac_status" >&5
9348 echo "$as_me: failed program was:" >&5
9349 sed 's/^/| /' conftest.$ac_ext >&5
9352 ac_cv_func_mmap_fixed_mapped=no
9354 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9357 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9358 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9359 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9361 cat >>confdefs.h <<\_ACEOF
9368 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
9369 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
9370 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
9371 echo $ECHO_N "(cached) $ECHO_C" >&6
9373 ac_cv_func_setvbuf_reversed=no
9374 cat >conftest.$ac_ext <<_ACEOF
9375 #line $LINENO "configure"
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h. */
9383 int (setvbuf) (FILE *, int, char *, size_t);
9388 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
9393 rm -f conftest.$ac_objext conftest$ac_exeext
9394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9395 (eval $ac_link) 2>&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } &&
9399 { ac_try='test -s conftest$ac_exeext'
9400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; }; then
9405 cat >conftest.$ac_ext <<_ACEOF
9406 #line $LINENO "configure"
9409 cat confdefs.h >>conftest.$ac_ext
9410 cat >>conftest.$ac_ext <<_ACEOF
9411 /* end confdefs.h. */
9414 int (setvbuf) (FILE *, int, char *, size_t);
9419 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
9424 rm -f conftest.$ac_objext conftest$ac_exeext
9425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9426 (eval $ac_link) 2>&5
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 (exit $ac_status); } &&
9430 { ac_try='test -s conftest$ac_exeext'
9431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); }; }; then
9436 # It compiles and links either way, so it must not be declared
9437 # with a prototype and most likely this is a K&R C compiler.
9439 if test "$cross_compiling" = yes; then
9440 : # Assume setvbuf is not reversed when cross-compiling.
9442 cat >conftest.$ac_ext <<_ACEOF
9443 #line $LINENO "configure"
9446 cat confdefs.h >>conftest.$ac_ext
9447 cat >>conftest.$ac_ext <<_ACEOF
9448 /* end confdefs.h. */
9453 /* This call has the arguments reversed.
9454 A reversed system may check and see that the address of buf
9455 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
9457 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
9460 exit (0); /* Non-reversed systems SEGV here. */
9465 rm -f conftest$ac_exeext
9466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9467 (eval $ac_link) 2>&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); }; }; then
9476 ac_cv_func_setvbuf_reversed=yes
9478 echo "$as_me: program exited with status $ac_status" >&5
9479 echo "$as_me: failed program was:" >&5
9480 sed 's/^/| /' conftest.$ac_ext >&5
9483 rm -f core core.* *.core
9485 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9487 ac_cv_func_setvbuf_reversed=yes
9489 echo "$as_me: failed program was:" >&5
9490 sed 's/^/| /' conftest.$ac_ext >&5
9493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9495 echo "$as_me: failed program was:" >&5
9496 sed 's/^/| /' conftest.$ac_ext >&5
9499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9501 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
9502 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
9503 if test $ac_cv_func_setvbuf_reversed = yes; then
9505 cat >>confdefs.h <<\_ACEOF
9506 #define SETVBUF_REVERSED 1
9511 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9512 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9513 if test "${ac_cv_type_signal+set}" = set; then
9514 echo $ECHO_N "(cached) $ECHO_C" >&6
9516 cat >conftest.$ac_ext <<_ACEOF
9517 #line $LINENO "configure"
9520 cat confdefs.h >>conftest.$ac_ext
9521 cat >>conftest.$ac_ext <<_ACEOF
9522 /* end confdefs.h. */
9523 #include <sys/types.h>
9529 extern "C" void (*signal (int, void (*)(int)))(int);
9531 void (*signal ()) ();
9542 rm -f conftest.$ac_objext
9543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9544 (eval $ac_compile) 2>&5
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); } &&
9548 { ac_try='test -s conftest.$ac_objext'
9549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); }; }; then
9554 ac_cv_type_signal=void
9556 echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.$ac_ext >&5
9559 ac_cv_type_signal=int
9561 rm -f conftest.$ac_objext conftest.$ac_ext
9563 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9564 echo "${ECHO_T}$ac_cv_type_signal" >&6
9566 cat >>confdefs.h <<_ACEOF
9567 #define RETSIGTYPE $ac_cv_type_signal
9572 for ac_func in vprintf
9574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9575 echo "$as_me:$LINENO: checking for $ac_func" >&5
9576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9577 if eval "test \"\${$as_ac_var+set}\" = set"; then
9578 echo $ECHO_N "(cached) $ECHO_C" >&6
9580 cat >conftest.$ac_ext <<_ACEOF
9581 #line $LINENO "configure"
9584 cat confdefs.h >>conftest.$ac_ext
9585 cat >>conftest.$ac_ext <<_ACEOF
9586 /* end confdefs.h. */
9587 /* System header to define __stub macros and hopefully few prototypes,
9588 which can conflict with char $ac_func (); below.
9589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9590 <limits.h> exists even on freestanding compilers. */
9592 # include <limits.h>
9594 # include <assert.h>
9596 /* Override any gcc2 internal prototype to avoid an error. */
9601 /* We use char because int might match the return type of a gcc2
9602 builtin and then its argument prototype would still apply. */
9604 /* The GNU C library defines this for functions which it implements
9605 to always fail with ENOSYS. Some functions are actually named
9606 something starting with __ and the normal name is an alias. */
9607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9610 char (*f) () = $ac_func;
9619 return f != $ac_func;
9624 rm -f conftest.$ac_objext conftest$ac_exeext
9625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9626 (eval $ac_link) 2>&5
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); } &&
9630 { ac_try='test -s conftest$ac_exeext'
9631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); }; }; then
9636 eval "$as_ac_var=yes"
9638 echo "$as_me: failed program was:" >&5
9639 sed 's/^/| /' conftest.$ac_ext >&5
9641 eval "$as_ac_var=no"
9643 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9646 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9647 if test `eval echo '${'$as_ac_var'}'` = yes; then
9648 cat >>confdefs.h <<_ACEOF
9649 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9652 echo "$as_me:$LINENO: checking for _doprnt" >&5
9653 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
9654 if test "${ac_cv_func__doprnt+set}" = set; then
9655 echo $ECHO_N "(cached) $ECHO_C" >&6
9657 cat >conftest.$ac_ext <<_ACEOF
9658 #line $LINENO "configure"
9661 cat confdefs.h >>conftest.$ac_ext
9662 cat >>conftest.$ac_ext <<_ACEOF
9663 /* end confdefs.h. */
9664 /* System header to define __stub macros and hopefully few prototypes,
9665 which can conflict with char _doprnt (); below.
9666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9667 <limits.h> exists even on freestanding compilers. */
9669 # include <limits.h>
9671 # include <assert.h>
9673 /* Override any gcc2 internal prototype to avoid an error. */
9678 /* We use char because int might match the return type of a gcc2
9679 builtin and then its argument prototype would still apply. */
9681 /* The GNU C library defines this for functions which it implements
9682 to always fail with ENOSYS. Some functions are actually named
9683 something starting with __ and the normal name is an alias. */
9684 #if defined (__stub__doprnt) || defined (__stub____doprnt)
9687 char (*f) () = _doprnt;
9696 return f != _doprnt;
9701 rm -f conftest.$ac_objext conftest$ac_exeext
9702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9703 (eval $ac_link) 2>&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); } &&
9707 { ac_try='test -s conftest$ac_exeext'
9708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); }; }; then
9713 ac_cv_func__doprnt=yes
9715 echo "$as_me: failed program was:" >&5
9716 sed 's/^/| /' conftest.$ac_ext >&5
9718 ac_cv_func__doprnt=no
9720 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9722 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9723 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
9724 if test $ac_cv_func__doprnt = yes; then
9726 cat >>confdefs.h <<\_ACEOF
9727 #define HAVE_DOPRNT 1
9804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9805 echo "$as_me:$LINENO: checking for $ac_func" >&5
9806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9807 if eval "test \"\${$as_ac_var+set}\" = set"; then
9808 echo $ECHO_N "(cached) $ECHO_C" >&6
9810 cat >conftest.$ac_ext <<_ACEOF
9811 #line $LINENO "configure"
9814 cat confdefs.h >>conftest.$ac_ext
9815 cat >>conftest.$ac_ext <<_ACEOF
9816 /* end confdefs.h. */
9817 /* System header to define __stub macros and hopefully few prototypes,
9818 which can conflict with char $ac_func (); below.
9819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9820 <limits.h> exists even on freestanding compilers. */
9822 # include <limits.h>
9824 # include <assert.h>
9826 /* Override any gcc2 internal prototype to avoid an error. */
9831 /* We use char because int might match the return type of a gcc2
9832 builtin and then its argument prototype would still apply. */
9834 /* The GNU C library defines this for functions which it implements
9835 to always fail with ENOSYS. Some functions are actually named
9836 something starting with __ and the normal name is an alias. */
9837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9840 char (*f) () = $ac_func;
9849 return f != $ac_func;
9854 rm -f conftest.$ac_objext conftest$ac_exeext
9855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9856 (eval $ac_link) 2>&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } &&
9860 { ac_try='test -s conftest$ac_exeext'
9861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; }; then
9866 eval "$as_ac_var=yes"
9868 echo "$as_me: failed program was:" >&5
9869 sed 's/^/| /' conftest.$ac_ext >&5
9871 eval "$as_ac_var=no"
9873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9876 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9877 if test `eval echo '${'$as_ac_var'}'` = yes; then
9878 cat >>confdefs.h <<_ACEOF
9879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9885 echo "$as_me:$LINENO: checking for getopt_long" >&5
9886 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
9887 if test "${ac_cv_func_getopt_long+set}" = set; then
9888 echo $ECHO_N "(cached) $ECHO_C" >&6
9890 cat >conftest.$ac_ext <<_ACEOF
9891 #line $LINENO "configure"
9894 cat confdefs.h >>conftest.$ac_ext
9895 cat >>conftest.$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9897 /* System header to define __stub macros and hopefully few prototypes,
9898 which can conflict with char getopt_long (); below.
9899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9900 <limits.h> exists even on freestanding compilers. */
9902 # include <limits.h>
9904 # include <assert.h>
9906 /* Override any gcc2 internal prototype to avoid an error. */
9911 /* We use char because int might match the return type of a gcc2
9912 builtin and then its argument prototype would still apply. */
9913 char getopt_long ();
9914 /* The GNU C library defines this for functions which it implements
9915 to always fail with ENOSYS. Some functions are actually named
9916 something starting with __ and the normal name is an alias. */
9917 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
9920 char (*f) () = getopt_long;
9929 return f != getopt_long;
9934 rm -f conftest.$ac_objext conftest$ac_exeext
9935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9936 (eval $ac_link) 2>&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); } &&
9940 { ac_try='test -s conftest$ac_exeext'
9941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); }; }; then
9946 ac_cv_func_getopt_long=yes
9948 echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9951 ac_cv_func_getopt_long=no
9953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9955 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
9956 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
9957 if test $ac_cv_func_getopt_long = yes; then
9959 cat >>confdefs.h <<\_ACEOF
9960 #define HAVE_GETOPT_LONG 1
9963 tm_cv_needgetopt="no"
9965 tm_cv_needgetopt="yes"
9970 if test "x$tm_cv_needgetopt" = "xyes"; then
9972 NEEDGETOPT_FALSE='#'
9980 if test "x$CYGNUS" = xyes; then
9981 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
9983 echo "$as_me:$LINENO: checking for opendir" >&5
9984 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
9985 if test "${ac_cv_func_opendir+set}" = set; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9988 cat >conftest.$ac_ext <<_ACEOF
9989 #line $LINENO "configure"
9992 cat confdefs.h >>conftest.$ac_ext
9993 cat >>conftest.$ac_ext <<_ACEOF
9994 /* end confdefs.h. */
9995 /* System header to define __stub macros and hopefully few prototypes,
9996 which can conflict with char opendir (); below.
9997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9998 <limits.h> exists even on freestanding compilers. */
10000 # include <limits.h>
10002 # include <assert.h>
10004 /* Override any gcc2 internal prototype to avoid an error. */
10009 /* We use char because int might match the return type of a gcc2
10010 builtin and then its argument prototype would still apply. */
10012 /* The GNU C library defines this for functions which it implements
10013 to always fail with ENOSYS. Some functions are actually named
10014 something starting with __ and the normal name is an alias. */
10015 #if defined (__stub_opendir) || defined (__stub___opendir)
10018 char (*f) () = opendir;
10027 return f != opendir;
10032 rm -f conftest.$ac_objext conftest$ac_exeext
10033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10034 (eval $ac_link) 2>&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); } &&
10038 { ac_try='test -s conftest$ac_exeext'
10039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10040 (eval $ac_try) 2>&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); }; }; then
10044 ac_cv_func_opendir=yes
10046 echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10049 ac_cv_func_opendir=no
10051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10053 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
10054 echo "${ECHO_T}$ac_cv_func_opendir" >&6
10055 if test $ac_cv_func_opendir = yes; then
10058 EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
10063 *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
10067 if test "x$enable_network" = "xyes"; then
10068 echo "$as_me:$LINENO: checking for socket" >&5
10069 echo $ECHO_N "checking for socket... $ECHO_C" >&6
10070 if test "${ac_cv_func_socket+set}" = set; then
10071 echo $ECHO_N "(cached) $ECHO_C" >&6
10073 cat >conftest.$ac_ext <<_ACEOF
10074 #line $LINENO "configure"
10077 cat confdefs.h >>conftest.$ac_ext
10078 cat >>conftest.$ac_ext <<_ACEOF
10079 /* end confdefs.h. */
10080 /* System header to define __stub macros and hopefully few prototypes,
10081 which can conflict with char socket (); below.
10082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10083 <limits.h> exists even on freestanding compilers. */
10085 # include <limits.h>
10087 # include <assert.h>
10089 /* Override any gcc2 internal prototype to avoid an error. */
10094 /* We use char because int might match the return type of a gcc2
10095 builtin and then its argument prototype would still apply. */
10097 /* The GNU C library defines this for functions which it implements
10098 to always fail with ENOSYS. Some functions are actually named
10099 something starting with __ and the normal name is an alias. */
10100 #if defined (__stub_socket) || defined (__stub___socket)
10103 char (*f) () = socket;
10112 return f != socket;
10117 rm -f conftest.$ac_objext conftest$ac_exeext
10118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10119 (eval $ac_link) 2>&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); } &&
10123 { ac_try='test -s conftest$ac_exeext'
10124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125 (eval $ac_try) 2>&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); }; }; then
10129 ac_cv_func_socket=yes
10131 echo "$as_me: failed program was:" >&5
10132 sed 's/^/| /' conftest.$ac_ext >&5
10134 ac_cv_func_socket=no
10136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10138 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
10139 echo "${ECHO_T}$ac_cv_func_socket" >&6
10140 if test $ac_cv_func_socket = yes; then
10143 echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
10144 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
10145 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
10146 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
10147 echo $ECHO_N "(cached) $ECHO_C" >&6
10149 ac_save_LIBS="$LIBS"
10150 LIBS="-lwsock32 $LIBS"
10151 cat >conftest.$ac_ext <<_ACEOF
10152 #line $LINENO "configure"
10155 cat confdefs.h >>conftest.$ac_ext
10156 cat >>conftest.$ac_ext <<_ACEOF
10157 /* end confdefs.h. */
10158 #include <windows.h>
10159 #include <winsock.h>
10169 rm -f conftest.$ac_objext conftest$ac_exeext
10170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10171 (eval $ac_link) 2>&5
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); } &&
10175 { ac_try='test -s conftest$ac_exeext'
10176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10177 (eval $ac_try) 2>&5
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); }; }; then
10181 eval "wapi_cv_lib_$ac_lib_var=yes"
10183 echo "$as_me: failed program was:" >&5
10184 sed 's/^/| /' conftest.$ac_ext >&5
10186 eval "wapi_cv_lib_$ac_lib_var=no"
10188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10189 LIBS="$ac_save_LIBS"
10192 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
10193 echo "$as_me:$LINENO: result: yes" >&5
10194 echo "${ECHO_T}yes" >&6
10195 EXTRALIBS="$EXTRALIBS -lwsock32"
10196 EXTRADEFS="$EXTRADEFS -DWINSOCK"
10198 echo "$as_me:$LINENO: result: no" >&5
10199 echo "${ECHO_T}no" >&6
10208 if test "x$CYGWIN" = xyes; then
10209 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
10211 echo "$as_me:$LINENO: checking for opendir" >&5
10212 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
10213 if test "${ac_cv_func_opendir+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10216 cat >conftest.$ac_ext <<_ACEOF
10217 #line $LINENO "configure"
10220 cat confdefs.h >>conftest.$ac_ext
10221 cat >>conftest.$ac_ext <<_ACEOF
10222 /* end confdefs.h. */
10223 /* System header to define __stub macros and hopefully few prototypes,
10224 which can conflict with char opendir (); below.
10225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10226 <limits.h> exists even on freestanding compilers. */
10228 # include <limits.h>
10230 # include <assert.h>
10232 /* Override any gcc2 internal prototype to avoid an error. */
10237 /* We use char because int might match the return type of a gcc2
10238 builtin and then its argument prototype would still apply. */
10240 /* The GNU C library defines this for functions which it implements
10241 to always fail with ENOSYS. Some functions are actually named
10242 something starting with __ and the normal name is an alias. */
10243 #if defined (__stub_opendir) || defined (__stub___opendir)
10246 char (*f) () = opendir;
10255 return f != opendir;
10260 rm -f conftest.$ac_objext conftest$ac_exeext
10261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10262 (eval $ac_link) 2>&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); } &&
10266 { ac_try='test -s conftest$ac_exeext'
10267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10268 (eval $ac_try) 2>&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); }; }; then
10272 ac_cv_func_opendir=yes
10274 echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10277 ac_cv_func_opendir=no
10279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10281 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
10282 echo "${ECHO_T}$ac_cv_func_opendir" >&6
10283 if test $ac_cv_func_opendir = yes; then
10286 EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
10291 *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
10295 if test "x$enable_network" = "xyes"; then
10296 echo "$as_me:$LINENO: checking for socket" >&5
10297 echo $ECHO_N "checking for socket... $ECHO_C" >&6
10298 if test "${ac_cv_func_socket+set}" = set; then
10299 echo $ECHO_N "(cached) $ECHO_C" >&6
10301 cat >conftest.$ac_ext <<_ACEOF
10302 #line $LINENO "configure"
10305 cat confdefs.h >>conftest.$ac_ext
10306 cat >>conftest.$ac_ext <<_ACEOF
10307 /* end confdefs.h. */
10308 /* System header to define __stub macros and hopefully few prototypes,
10309 which can conflict with char socket (); below.
10310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10311 <limits.h> exists even on freestanding compilers. */
10313 # include <limits.h>
10315 # include <assert.h>
10317 /* Override any gcc2 internal prototype to avoid an error. */
10322 /* We use char because int might match the return type of a gcc2
10323 builtin and then its argument prototype would still apply. */
10325 /* The GNU C library defines this for functions which it implements
10326 to always fail with ENOSYS. Some functions are actually named
10327 something starting with __ and the normal name is an alias. */
10328 #if defined (__stub_socket) || defined (__stub___socket)
10331 char (*f) () = socket;
10340 return f != socket;
10345 rm -f conftest.$ac_objext conftest$ac_exeext
10346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10347 (eval $ac_link) 2>&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); } &&
10351 { ac_try='test -s conftest$ac_exeext'
10352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10353 (eval $ac_try) 2>&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); }; }; then
10357 ac_cv_func_socket=yes
10359 echo "$as_me: failed program was:" >&5
10360 sed 's/^/| /' conftest.$ac_ext >&5
10362 ac_cv_func_socket=no
10364 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10366 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
10367 echo "${ECHO_T}$ac_cv_func_socket" >&6
10368 if test $ac_cv_func_socket = yes; then
10371 echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
10372 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
10373 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
10374 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
10375 echo $ECHO_N "(cached) $ECHO_C" >&6
10377 ac_save_LIBS="$LIBS"
10378 LIBS="-lwsock32 $LIBS"
10379 cat >conftest.$ac_ext <<_ACEOF
10380 #line $LINENO "configure"
10383 cat confdefs.h >>conftest.$ac_ext
10384 cat >>conftest.$ac_ext <<_ACEOF
10385 /* end confdefs.h. */
10386 #include <windows.h>
10387 #include <winsock.h>
10397 rm -f conftest.$ac_objext conftest$ac_exeext
10398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10399 (eval $ac_link) 2>&5
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); } &&
10403 { ac_try='test -s conftest$ac_exeext'
10404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405 (eval $ac_try) 2>&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); }; }; then
10409 eval "wapi_cv_lib_$ac_lib_var=yes"
10411 echo "$as_me: failed program was:" >&5
10412 sed 's/^/| /' conftest.$ac_ext >&5
10414 eval "wapi_cv_lib_$ac_lib_var=no"
10416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10417 LIBS="$ac_save_LIBS"
10420 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
10421 echo "$as_me:$LINENO: result: yes" >&5
10422 echo "${ECHO_T}yes" >&6
10423 EXTRALIBS="$EXTRALIBS -lwsock32"
10424 EXTRADEFS="$EXTRADEFS -DWINSOCK"
10426 echo "$as_me:$LINENO: result: no" >&5
10427 echo "${ECHO_T}no" >&6
10435 # Checks on extra paths
10438 # Check whether --with-tcl-includes or --without-tcl-includes was given.
10439 if test "${with_tcl_includes+set}" = set; then
10440 withval="$with_tcl_includes"
10441 if test ! -d $withval; then
10442 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10443 echo "$as_me: WARNING: $withval is not found." >&2;}
10445 tcl_include_dir="-I$withval"
10449 # Check whether --with-tcl-libs or --without-tcl-libs was given.
10450 if test "${with_tcl_libs+set}" = set; then
10451 withval="$with_tcl_libs"
10452 if test ! -d $withval; then
10453 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10454 echo "$as_me: WARNING: $withval is not found." >&2;}
10456 tcl_libdir="-L$withval"
10459 # Check whether --with-tk-includes or --without-tk-includes was given.
10460 if test "${with_tk_includes+set}" = set; then
10461 withval="$with_tk_includes"
10462 if test ! -d $withval; then
10463 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10464 echo "$as_me: WARNING: $withval is not found." >&2;}
10466 tk_includes="-I$withval"
10469 # Check whether --with-tk-libs or --without-tk-libs was given.
10470 if test "${with_tk_libs+set}" = set; then
10471 withval="$with_tk_libs"
10472 if test ! -d $withval; then
10473 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10474 echo "$as_me: WARNING: $withval is not found." >&2;}
10476 tk_libdir="-L$withval"
10480 # Check whether --with-offix-includes or --without-offix-includes was given.
10481 if test "${with_offix_includes+set}" = set; then
10482 withval="$with_offix_includes"
10483 if test ! -d $withval; then
10484 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10485 echo "$as_me: WARNING: $withval is not found." >&2;}
10487 offix_include_dir="-I$withval"
10490 # Check whether --with-offix-libs or --without-offix-libs was given.
10491 if test "${with_offix_libs+set}" = set; then
10492 withval="$with_offix_libs"
10493 if test ! -d $withval; then
10494 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10495 echo "$as_me: WARNING: $withval is not found." >&2;}
10497 offix_lib_dir="-L$withval"
10505 audio_targets='default oss alsa sun hpux irix mme sb_dsp w32 alib nas arts esd vorbis gogo portaudio jack'
10508 # Check whether --with-nas-library or --without-nas-library was given.
10509 if test "${with_nas_library+set}" = set; then
10510 withval="$with_nas_library"
10514 # Check whether --with-nas-includes or --without-nas-includes was given.
10515 if test "${with_nas_includes+set}" = set; then
10516 withval="$with_nas_includes"
10521 # Check whether --enable-audio or --disable-audio was given.
10522 if test "${enable_audio+set}" = set; then
10523 enableval="$enable_audio"
10524 enable_audio=$enableval
10531 test "x$enable_audio" = xyes && enable_audio=default
10533 if test "x$enable_audio" != xno; then
10534 for i in `echo $enable_audio | sed 's/,/ /g'`; do
10535 eval "au_enable_$i=yes"
10541 # Check whether --with-default-output or --without-default-output was given.
10542 if test "${with_default_output+set}" = set; then
10543 withval="$with_default_output"
10544 if test "$enable_audio" != no; then
10545 DEFAULT_PLAYMODE=$withval
10546 eval "au_enable_$DEFAULT_PLAYMODE=yes"
10548 { echo "$as_me:$LINENO: WARNING: --with-default-output=$withval: audio is not enabled" >&5
10549 echo "$as_me: WARNING: --with-default-output=$withval: audio is not enabled" >&2;}
10554 if test "x$au_enable_default" = xyes; then
10556 *-*-linux*|*-*-freebsd*)
10560 au_enable_sb_dsp=yes
10562 *-*-bsdi2.1|*-*-bsdi3.?|*-*-bsdi4.?)
10590 au_enable_darwin=yes
10593 { echo "$as_me:$LINENO: WARNING: No --enable-audio=default audio for $target" >&5
10594 echo "$as_me: WARNING: No --enable-audio=default audio for $target" >&2;}
10600 # Each audio mode's configurations
10601 echo "$as_me:$LINENO: checking enable_audio=oss" >&5
10602 echo $ECHO_N "checking enable_audio=oss... $ECHO_C" >&6
10603 if test "x$au_enable_oss" = xyes; then
10604 EXTRADEFS="$EXTRADEFS -DAU_OSS"
10605 SYSEXTRAS="$SYSEXTRAS oss_a.c"
10606 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then
10607 echo "$as_me:$LINENO: result: yes - <sys/soundcard.h>" >&5
10608 echo "${ECHO_T}yes - <sys/soundcard.h>" >&6
10612 echo "$as_me:$LINENO: result: yes" >&5
10613 echo "${ECHO_T}yes" >&6
10616 if test "x$ac_cv_header_soundcard_h" = xyes; then
10617 echo "$as_me:$LINENO: result: yes - <soundcard.h>" >&5
10618 echo "${ECHO_T}yes - <soundcard.h>" >&6
10620 { echo "$as_me:$LINENO: WARNING: <sys/soundcard.h> is not found" >&5
10621 echo "$as_me: WARNING: <sys/soundcard.h> is not found" >&2;}
10627 echo "$as_me:$LINENO: checking for open in -lossaudio" >&5
10628 echo $ECHO_N "checking for open in -lossaudio... $ECHO_C" >&6
10629 if test "${ac_cv_lib_ossaudio_open+set}" = set; then
10630 echo $ECHO_N "(cached) $ECHO_C" >&6
10632 ac_check_lib_save_LIBS=$LIBS
10633 LIBS="-lossaudio $LIBS"
10634 cat >conftest.$ac_ext <<_ACEOF
10635 #line $LINENO "configure"
10638 cat confdefs.h >>conftest.$ac_ext
10639 cat >>conftest.$ac_ext <<_ACEOF
10640 /* end confdefs.h. */
10642 /* Override any gcc2 internal prototype to avoid an error. */
10646 /* We use char because int might match the return type of a gcc2
10647 builtin and then its argument prototype would still apply. */
10657 rm -f conftest.$ac_objext conftest$ac_exeext
10658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10659 (eval $ac_link) 2>&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); } &&
10663 { ac_try='test -s conftest$ac_exeext'
10664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665 (eval $ac_try) 2>&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; }; then
10669 ac_cv_lib_ossaudio_open=yes
10671 echo "$as_me: failed program was:" >&5
10672 sed 's/^/| /' conftest.$ac_ext >&5
10674 ac_cv_lib_ossaudio_open=no
10676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10677 LIBS=$ac_check_lib_save_LIBS
10679 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_open" >&5
10680 echo "${ECHO_T}$ac_cv_lib_ossaudio_open" >&6
10681 if test $ac_cv_lib_ossaudio_open = yes; then
10682 cat >>confdefs.h <<_ACEOF
10683 #define HAVE_LIBOSSAUDIO 1
10686 LIBS="-lossaudio $LIBS"
10693 if test ! -e "/dev/dsp"; then
10694 oss_device=/dev/audio
10699 echo "$as_me:$LINENO: result: no" >&5
10700 echo "${ECHO_T}no" >&6
10703 echo "$as_me:$LINENO: checking enable_audio=sun" >&5
10704 echo $ECHO_N "checking enable_audio=sun... $ECHO_C" >&6
10705 if test "x$au_enable_sun" = xyes; then
10708 if test -f /usr/demo/SOUND/libaudio.a; then
10709 EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/libaudio.a"
10710 echo "$as_me:$LINENO: result: yes" >&5
10711 echo "${ECHO_T}yes" >&6
10713 echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
10714 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
10718 if test -f /usr/demo/SOUND/lib/libaudio.a; then
10719 EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/lib/libaudio.a"
10720 echo "$as_me:$LINENO: result: yes" >&5
10721 echo "${ECHO_T}yes" >&6
10723 echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
10724 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
10727 *) echo "$as_me:$LINENO: result: yes" >&5
10728 echo "${ECHO_T}yes" >&6
10731 EXTRADEFS="$EXTRADEFS -DAU_SUN"
10732 SYSEXTRAS="$SYSEXTRAS sun_a.c"
10734 echo "$as_me:$LINENO: result: no" >&5
10735 echo "${ECHO_T}no" >&6
10738 echo "$as_me:$LINENO: checking enable_audio=hpux" >&5
10739 echo $ECHO_N "checking enable_audio=hpux... $ECHO_C" >&6
10740 if test "x$au_enable_hpux" = xyes; then
10742 *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
10743 echo "${ECHO_T}yes" >&6 ;;
10744 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10745 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
10747 EXTRADEFS="$EXTRADEFS -DAU_HPUX_AUDIO"
10748 SYSEXTRAS="$SYSEXTRAS hpux_d_a.c"
10750 echo "$as_me:$LINENO: result: no" >&5
10751 echo "${ECHO_T}no" >&6
10754 echo "$as_me:$LINENO: checking enable_audio=irix" >&5
10755 echo $ECHO_N "checking enable_audio=irix... $ECHO_C" >&6
10756 if test "x$au_enable_irix" = xyes; then
10758 *-sgi-irix5*|*-sgi-irix6.2)
10759 EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_OLDAL"
10760 echo "$as_me:$LINENO: result: yes" >&5
10761 echo "${ECHO_T}yes" >&6
10764 EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_NEWAL"
10765 echo "$as_me:$LINENO: result: yes" >&5
10766 echo "${ECHO_T}yes" >&6
10768 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10769 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
10771 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_al.c"
10772 EXTRALIBS="$EXTRASLIBS -laudio"
10774 echo "$as_me:$LINENO: result: no" >&5
10775 echo "${ECHO_T}no" >&6
10778 echo "$as_me:$LINENO: checking enable_audio=mme" >&5
10779 echo $ECHO_N "checking enable_audio=mme... $ECHO_C" >&6
10780 if test "x$au_enable_mme" = xyes; then
10782 *-dec-*) echo "$as_me:$LINENO: result: yes" >&5
10783 echo "${ECHO_T}yes" >&6 ;;
10784 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10785 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
10787 EXTRADEFS="$EXTRADEFS -DAU_DEC -DAU_AUDRIV"
10788 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_mme.c"
10789 CPPFLAGS="$CPPFLAGS -I/usr/opt/MME210/include"
10790 EXTRALIBS="$EXTRALIBS /usr/opt/MME220/lib/libmme.a"
10792 echo "$as_me:$LINENO: result: no" >&5
10793 echo "${ECHO_T}no" >&6
10796 echo "$as_me:$LINENO: checking enable_audio=sb_dsp" >&5
10797 echo $ECHO_N "checking enable_audio=sb_dsp... $ECHO_C" >&6
10798 if test "x$au_enable_sb_dsp" = xyes; then
10800 *-*-bsdi2.0) echo "$as_me:$LINENO: result: yes" >&5
10801 echo "${ECHO_T}yes" >&6 ;;
10802 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10803 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
10805 EXTRADEFS="$EXTRADEFS -DAU_BSDI -DDEFAULT_RATE=22500"
10806 SYSEXTRAS="$SYSEXTRAS bsd20_a.c"
10808 echo "$as_me:$LINENO: result: no" >&5
10809 echo "${ECHO_T}no" >&6
10812 echo "$as_me:$LINENO: checking enable_audio=w32" >&5
10813 echo $ECHO_N "checking enable_audio=w32... $ECHO_C" >&6
10814 if test "x$au_enable_w32" = xyes; then
10817 echo "$as_me:$LINENO: result: yes" >&5
10818 echo "${ECHO_T}yes" >&6
10821 echo "$as_me:$LINENO: result: yes" >&5
10822 echo "${ECHO_T}yes" >&6
10825 { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10826 echo "$as_me: WARNING: may not work on $target" >&2;}
10829 SYSEXTRAS="$SYSEXTRAS w32_a.c"
10830 EXTRALIBS="$EXTRALIBS -lwinmm"
10831 EXTRADEFS="$EXTRADEFS -DAU_W32"
10833 echo "$as_me:$LINENO: result: no" >&5
10834 echo "${ECHO_T}no" >&6
10837 echo "$as_me:$LINENO: checking enable_audio=darwin" >&5
10838 echo $ECHO_N "checking enable_audio=darwin... $ECHO_C" >&6
10839 if test "x$au_enable_darwin" = xyes; then
10840 EXTRADEFS="$EXTRADEFS -DAU_DARWIN"
10841 SYSEXTRAS="$SYSEXTRAS darwin_a.c"
10842 EXTRALIBS="$EXTRALIBS -framework CoreAudio"
10845 echo "$as_me:$LINENO: result: yes" >&5
10846 echo "${ECHO_T}yes" >&6;;
10848 { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10849 echo "$as_me: WARNING: may not work on $target" >&2;}
10853 echo "$as_me:$LINENO: result: no" >&5
10854 echo "${ECHO_T}no" >&6
10858 echo "$as_me:$LINENO: checking enable_audio=alsa" >&5
10859 echo $ECHO_N "checking enable_audio=alsa... $ECHO_C" >&6
10860 if test "x$au_enable_alsa" = xyes; then
10861 echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
10862 echo "${ECHO_T}yes, configuring alsa" >&6
10865 KEEPLDFLAGS=$LDFLAGS
10866 alsa_save_CFLAGS="$CFLAGS"
10867 alsa_save_LDFLAGS="$LDFLAGS"
10868 alsa_save_LIBS="$LIBS"
10872 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
10873 if test "${with_alsa_prefix+set}" = set; then
10874 withval="$with_alsa_prefix"
10875 alsa_prefix="$withval"
10881 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
10882 if test "${with_alsa_inc_prefix+set}" = set; then
10883 withval="$with_alsa_inc_prefix"
10884 alsa_inc_prefix="$withval"
10889 # Check whether --enable-alsatest or --disable-alsatest was given.
10890 if test "${enable_alsatest+set}" = set; then
10891 enableval="$enable_alsatest"
10894 enable_alsatest=yes
10897 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
10898 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
10899 if test "$alsa_inc_prefix" != "" ; then
10900 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
10901 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
10903 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
10904 echo "${ECHO_T}$ALSA_CFLAGS" >&6
10906 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
10907 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
10908 if test "$alsa_prefix" != "" ; then
10909 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
10910 LDFLAGS="$LDFLAGS $ALSA_LIBS"
10913 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
10914 LIBS=`echo $LIBS | sed 's/-lm//'`
10915 LIBS=`echo $LIBS | sed 's/-ldl//'`
10916 LIBS=`echo $LIBS | sed 's/-lpthread//'`
10917 LIBS=`echo $LIBS | sed 's/ //'`
10918 LIBS="$ALSA_LIBS $LIBS"
10919 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
10920 echo "${ECHO_T}$ALSA_LIBS" >&6
10922 min_alsa_version=0.1.1
10923 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
10924 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
10926 alsa_min_major_version=`echo $min_alsa_version | \
10927 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10928 alsa_min_minor_version=`echo $min_alsa_version | \
10929 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10930 alsa_min_micro_version=`echo $min_alsa_version | \
10931 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10937 ac_cpp='$CPP $CPPFLAGS'
10938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10942 cat >conftest.$ac_ext <<_ACEOF
10943 #line $LINENO "configure"
10946 cat confdefs.h >>conftest.$ac_ext
10947 cat >>conftest.$ac_ext <<_ACEOF
10948 /* end confdefs.h. */
10950 #include <alsa/asoundlib.h>
10956 /* ensure backward compatibility */
10957 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
10958 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
10960 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
10961 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
10963 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
10964 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
10967 # if(SND_LIB_MAJOR > $alsa_min_major_version)
10970 # if(SND_LIB_MAJOR < $alsa_min_major_version)
10971 # error not present
10974 # if(SND_LIB_MINOR > $alsa_min_minor_version)
10977 # if(SND_LIB_MINOR < $alsa_min_minor_version)
10978 # error not present
10981 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
10982 # error not present
10992 rm -f conftest.$ac_objext
10993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10994 (eval $ac_compile) 2>&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); } &&
10998 { ac_try='test -s conftest.$ac_objext'
10999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11000 (eval $ac_try) 2>&5
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); }; }; then
11004 echo "$as_me:$LINENO: result: found." >&5
11005 echo "${ECHO_T}found." >&6
11007 echo "$as_me: failed program was:" >&5
11008 sed 's/^/| /' conftest.$ac_ext >&5
11010 cat >conftest.$ac_ext <<_ACEOF
11011 #line $LINENO "configure"
11014 cat confdefs.h >>conftest.$ac_ext
11015 cat >>conftest.$ac_ext <<_ACEOF
11016 /* end confdefs.h. */
11018 #include <sys/asoundlib.h>
11024 /* ensure backward compatibility */
11025 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
11026 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
11028 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
11029 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
11031 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
11032 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
11035 # if(SND_LIB_MAJOR > $alsa_min_major_version)
11038 # if(SND_LIB_MAJOR < $alsa_min_major_version)
11039 # error not present
11042 # if(SND_LIB_MINOR > $alsa_min_minor_version)
11045 # if(SND_LIB_MINOR < $alsa_min_minor_version)
11046 # error not present
11049 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
11050 # error not present
11060 rm -f conftest.$ac_objext
11061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11062 (eval $ac_compile) 2>&5
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); } &&
11066 { ac_try='test -s conftest.$ac_objext'
11067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11068 (eval $ac_try) 2>&5
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); }; }; then
11072 echo "$as_me:$LINENO: result: found." >&5
11073 echo "${ECHO_T}found." >&6
11075 echo "$as_me: failed program was:" >&5
11076 sed 's/^/| /' conftest.$ac_ext >&5
11078 echo "$as_me:$LINENO: result: not present." >&5
11079 echo "${ECHO_T}not present." >&6
11080 echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
11081 echo "${ECHO_T}libasound was not found anywhere." >&6
11084 rm -f conftest.$ac_objext conftest.$ac_ext
11085 echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
11086 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
11089 rm -f conftest.$ac_objext conftest.$ac_ext
11091 ac_cpp='$CPP $CPPFLAGS'
11092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11098 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
11099 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
11100 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
11101 echo $ECHO_N "(cached) $ECHO_C" >&6
11103 ac_check_lib_save_LIBS=$LIBS
11104 LIBS="-lasound $LIBS"
11105 cat >conftest.$ac_ext <<_ACEOF
11106 #line $LINENO "configure"
11109 cat confdefs.h >>conftest.$ac_ext
11110 cat >>conftest.$ac_ext <<_ACEOF
11111 /* end confdefs.h. */
11113 /* Override any gcc2 internal prototype to avoid an error. */
11117 /* We use char because int might match the return type of a gcc2
11118 builtin and then its argument prototype would still apply. */
11119 char snd_ctl_open ();
11128 rm -f conftest.$ac_objext conftest$ac_exeext
11129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11130 (eval $ac_link) 2>&5
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); } &&
11134 { ac_try='test -s conftest$ac_exeext'
11135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11136 (eval $ac_try) 2>&5
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); }; }; then
11140 ac_cv_lib_asound_snd_ctl_open=yes
11142 echo "$as_me: failed program was:" >&5
11143 sed 's/^/| /' conftest.$ac_ext >&5
11145 ac_cv_lib_asound_snd_ctl_open=no
11147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11148 LIBS=$ac_check_lib_save_LIBS
11150 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
11151 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
11152 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
11153 cat >>confdefs.h <<_ACEOF
11154 #define HAVE_LIBASOUND 1
11157 LIBS="-lasound $LIBS"
11160 echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
11161 echo "${ECHO_T}No linkable libasound was found." >&6
11167 if test "x$alsa_found" = "xyes" ; then
11169 LIBS=`echo $LIBS | sed 's/-lasound//g'`
11170 LIBS=`echo $LIBS | sed 's/ //'`
11171 LIBS="-lasound $LIBS"
11174 CFLAGS="$alsa_save_CFLAGS"
11175 LDFLAGS="$alsa_save_LDFLAGS"
11176 LIBS="$alsa_save_LIBS"
11184 if test "x$alsa_found" = "xyes" ; then
11185 EXTRADEFS="$EXTRADEFS -DAU_ALSA"
11186 SYSEXTRAS="$SYSEXTRAS alsa_a.c"
11187 for f in $ALSA_CFLAGS; do
11189 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
11190 *) CFLAGS="$CPPFLAGS $f" ;;
11194 LIBS="$KEEPLIBS $ALSA_LIBS"
11196 for ac_func in snd_seq_port_info_set_timestamping
11198 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11199 echo "$as_me:$LINENO: checking for $ac_func" >&5
11200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11201 if eval "test \"\${$as_ac_var+set}\" = set"; then
11202 echo $ECHO_N "(cached) $ECHO_C" >&6
11204 cat >conftest.$ac_ext <<_ACEOF
11205 #line $LINENO "configure"
11208 cat confdefs.h >>conftest.$ac_ext
11209 cat >>conftest.$ac_ext <<_ACEOF
11210 /* end confdefs.h. */
11211 /* System header to define __stub macros and hopefully few prototypes,
11212 which can conflict with char $ac_func (); below.
11213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11214 <limits.h> exists even on freestanding compilers. */
11216 # include <limits.h>
11218 # include <assert.h>
11220 /* Override any gcc2 internal prototype to avoid an error. */
11225 /* We use char because int might match the return type of a gcc2
11226 builtin and then its argument prototype would still apply. */
11228 /* The GNU C library defines this for functions which it implements
11229 to always fail with ENOSYS. Some functions are actually named
11230 something starting with __ and the normal name is an alias. */
11231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11234 char (*f) () = $ac_func;
11243 return f != $ac_func;
11248 rm -f conftest.$ac_objext conftest$ac_exeext
11249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11250 (eval $ac_link) 2>&5
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); } &&
11254 { ac_try='test -s conftest$ac_exeext'
11255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256 (eval $ac_try) 2>&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); }; }; then
11260 eval "$as_ac_var=yes"
11262 echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.$ac_ext >&5
11265 eval "$as_ac_var=no"
11267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11270 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11271 if test `eval echo '${'$as_ac_var'}'` = yes; then
11272 cat >>confdefs.h <<_ACEOF
11273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11280 { echo "$as_me:$LINENO: WARNING: Couldn't configure alsa." >&5
11281 echo "$as_me: WARNING: Couldn't configure alsa." >&2;}
11284 LDFLAGS=$KEEPLDFLAGS
11287 echo "$as_me:$LINENO: result: no" >&5
11288 echo "${ECHO_T}no" >&6
11291 echo "$as_me:$LINENO: checking enable_audio=alib" >&5
11292 echo $ECHO_N "checking enable_audio=alib... $ECHO_C" >&6
11293 if test "x$au_enable_alib" = xyes; then
11295 *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
11296 echo "${ECHO_T}yes" >&6 ;;
11297 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11298 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11300 SYSEXTRAS="$SYSEXTRAS hpux_a.c"
11301 EXTRADEFS="$EXTRADEFS -DAU_HPUX_ALIB"
11302 if test -d /opt/audio/include; then
11303 CPPFLAGS="$CPPFLAGS -I/opt/audio/include"
11305 if test -d /opt/audio/lib; then
11306 EXTRALIBS="$EXTRALIBS -L/opt/audio/lib"
11308 EXTRALIBS="$EXTRALIBS -lAlib"
11310 echo "$as_me:$LINENO: result: no" >&5
11311 echo "${ECHO_T}no" >&6
11314 echo "$as_me:$LINENO: checking enable_audio=nas" >&5
11315 echo $ECHO_N "checking enable_audio=nas... $ECHO_C" >&6
11316 if test "x$au_enable_nas" = xyes; then
11317 if test "x$with_x" != xyes; then
11318 { { echo "$as_me:$LINENO: error: nas: --with-x option must be specified" >&5
11319 echo "$as_me: error: nas: --with-x option must be specified" >&2;}
11320 { (exit 1); exit 1; }; }
11322 EXTRADEFS="$EXTRADEFS -DAU_NAS"
11323 SYSEXTRAS="$SYSEXTRAS nas_a.c"
11326 if test "x$with_nas_library" != x; then
11327 echo "$as_me:$LINENO: result: $with_nas_library" >&5
11328 echo "${ECHO_T}$with_nas_library" >&6;
11329 EXTRALIBS="$EXTRALIBS $with_nas_library"
11331 echo "$as_me:$LINENO: result: " >&5
11332 echo "${ECHO_T}" >&6
11333 echo "$as_me:$LINENO: checking for library containing AuOpenServer" >&5
11334 echo $ECHO_N "checking for library containing AuOpenServer... $ECHO_C" >&6
11335 if test "${timidity_cv_search_AuOpenServer+set}" = set; then
11336 echo $ECHO_N "(cached) $ECHO_C" >&6
11338 ac_func_search_save_LIBS="$LIBS"
11339 timidity_cv_search_AuOpenServer="no"
11340 for i in $x_libraries/libaudio.a \
11341 /usr/lib/libaudio.so \
11342 /usr/lib/libaudio.a ; do
11343 LIBS="$i $ac_func_search_save_LIBS"
11344 cat >conftest.$ac_ext <<_ACEOF
11345 #line $LINENO "configure"
11348 cat confdefs.h >>conftest.$ac_ext
11349 cat >>conftest.$ac_ext <<_ACEOF
11350 /* end confdefs.h. */
11352 /* Override any gcc2 internal prototype to avoid an error. */
11356 /* We use char because int might match the return type of a gcc2
11357 builtin and then its argument prototype would still apply. */
11358 char AuOpenServer ();
11367 rm -f conftest.$ac_objext conftest$ac_exeext
11368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11369 (eval $ac_link) 2>&5
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); } &&
11373 { ac_try='test -s conftest$ac_exeext'
11374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375 (eval $ac_try) 2>&5
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); }; }; then
11379 timidity_cv_search_AuOpenServer="$i"; break
11381 echo "$as_me: failed program was:" >&5
11382 sed 's/^/| /' conftest.$ac_ext >&5
11385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11387 LIBS="$ac_func_search_save_LIBS"
11389 echo "$as_me:$LINENO: result: $timidity_cv_search_AuOpenServer" >&5
11390 echo "${ECHO_T}$timidity_cv_search_AuOpenServer" >&6
11391 if test "$timidity_cv_search_AuOpenServer" != "no"; then
11392 echo "$as_me:$LINENO: result: NAS: $timidity_cv_search_AuOpenServer" >&5
11393 echo "${ECHO_T}NAS: $timidity_cv_search_AuOpenServer" >&6
11394 EXTRALIBS="$EXTRALIBS $timidity_cv_search_AuOpenServer"
11396 { echo "$as_me:$LINENO: WARNING: NAS library is not found." >&5
11397 echo "$as_me: WARNING: NAS library is not found." >&2;}
11400 test "x$with_nas_includes" != x && CPPFLAGS="$CPPFLAGS -I$with_nas_includes"
11402 if test "x$have_xext" = xyes; then
11403 lib_xext_opt=-lXext
11405 if test "x$have_xprelibs" = xyes; then
11406 lib_xprelibs_opt='-lSM -lICE'
11409 echo "$as_me:$LINENO: result: no" >&5
11410 echo "${ECHO_T}no" >&6
11413 echo "$as_me:$LINENO: checking enable_audio=arts" >&5
11414 echo $ECHO_N "checking enable_audio=arts... $ECHO_C" >&6
11415 if test "x$au_enable_arts" = xyes; then
11416 echo "$as_me:$LINENO: result: yes, configuring aRts" >&5
11417 echo "${ECHO_T}yes, configuring aRts" >&6
11420 KEEPLDFLAGS=$LDFLAGS
11422 # Check whether --with-arts-prefix or --without-arts-prefix was given.
11423 if test "${with_arts_prefix+set}" = set; then
11424 withval="$with_arts_prefix"
11425 arts_prefix="$withval"
11429 # Check whether --enable-artstest or --disable-artstest was given.
11430 if test "${enable_artstest+set}" = set; then
11431 enableval="$enable_artstest"
11434 enable_artstest=yes
11437 if test x$arts_prefix != x ; then
11438 arts_args="$arts_args --prefix=$arts_prefix"
11439 if test x${ARTS_CONFIG+set} != xset ; then
11440 ARTS_CONFIG=$arts_prefix/bin/artsc-config
11444 # Extract the first word of "artsc-config", so it can be a program name with args.
11445 set dummy artsc-config; ac_word=$2
11446 echo "$as_me:$LINENO: checking for $ac_word" >&5
11447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11448 if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
11449 echo $ECHO_N "(cached) $ECHO_C" >&6
11451 case $ARTS_CONFIG in
11453 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
11456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11457 for as_dir in $PATH
11460 test -z "$as_dir" && as_dir=.
11461 for ac_exec_ext in '' $ac_executable_extensions; do
11462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11463 ac_cv_path_ARTS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11470 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
11474 ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
11476 if test -n "$ARTS_CONFIG"; then
11477 echo "$as_me:$LINENO: result: $ARTS_CONFIG" >&5
11478 echo "${ECHO_T}$ARTS_CONFIG" >&6
11480 echo "$as_me:$LINENO: result: no" >&5
11481 echo "${ECHO_T}no" >&6
11484 min_arts_version=0.9.5
11485 echo "$as_me:$LINENO: checking for ARTS - version >= $min_arts_version" >&5
11486 echo $ECHO_N "checking for ARTS - version >= $min_arts_version... $ECHO_C" >&6
11488 if test "$ARTS_CONFIG" = "no" ; then
11491 ARTS_CFLAGS=`$ARTS_CONFIG $artsconf_args --cflags`
11492 ARTS_LIBS=`$ARTS_CONFIG $artsconf_args --libs`
11494 arts_major_version=`$ARTS_CONFIG $arts_args --version | \
11495 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11496 arts_minor_version=`$ARTS_CONFIG $arts_args --version | \
11497 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11498 arts_micro_version=`$ARTS_CONFIG $arts_config_args --version | \
11499 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11500 if test "x$enable_artstest" = "xyes" ; then
11501 ac_save_CFLAGS="$CFLAGS"
11502 ac_save_LIBS="$LIBS"
11503 CFLAGS="$CFLAGS $ARTS_CFLAGS"
11504 LIBS="$LIBS $ARTS_LIBS"
11505 rm -f conf.artstest
11506 if test "$cross_compiling" = yes; then
11507 echo $ac_n "cross compiling; assumed OK... $ac_c"
11509 cat >conftest.$ac_ext <<_ACEOF
11510 #line $LINENO "configure"
11513 cat confdefs.h >>conftest.$ac_ext
11514 cat >>conftest.$ac_ext <<_ACEOF
11515 /* end confdefs.h. */
11518 #include <stdlib.h>
11519 #include <string.h>
11523 my_strdup (char *str)
11529 new_str = malloc ((strlen (str) + 1) * sizeof(char));
11530 strcpy (new_str, str);
11540 int major, minor, micro;
11543 system ("touch conf.artstest");
11545 /* HP/UX 9 (%@#!) writes to sscanf strings */
11546 tmp_version = my_strdup("$min_arts_version");
11547 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
11548 printf("%s, bad version string\n", "$min_arts_version");
11552 if (($arts_major_version > major) ||
11553 (($arts_major_version == major) && ($arts_minor_version > minor)) ||
11554 (($arts_major_version == major) && ($arts_minor_version == minor) && ($arts_micro_version >= micro)))
11560 printf("\n*** 'artsc-config --version' returned %d.%d.%d, but the minimum version\n", $arts_major_version, $arts_minor_version, $arts_micro_version);
11561 printf("*** of ARTS required is %d.%d.%d. If artsc-config is correct, then it is\n", major, minor, micro);
11562 printf("*** best to upgrade to the required version.\n");
11563 printf("*** If artsc-config was wrong, set the environment variable ARTS_CONFIG\n");
11564 printf("*** to point to the correct copy of artsc-config, and remove the file\n");
11565 printf("*** config.cache before re-running configure\n");
11572 rm -f conftest$ac_exeext
11573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11574 (eval $ac_link) 2>&5
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11579 (eval $ac_try) 2>&5
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); }; }; then
11585 echo "$as_me: program exited with status $ac_status" >&5
11586 echo "$as_me: failed program was:" >&5
11587 sed 's/^/| /' conftest.$ac_ext >&5
11589 ( exit $ac_status )
11592 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11594 CFLAGS="$ac_save_CFLAGS"
11595 LIBS="$ac_save_LIBS"
11598 if test "x$no_arts" = x ; then
11599 echo "$as_me:$LINENO: result: yes" >&5
11600 echo "${ECHO_T}yes" >&6
11603 echo "$as_me:$LINENO: result: no" >&5
11604 echo "${ECHO_T}no" >&6
11605 if test "$ARTS_CONFIG" = "no" ; then
11606 echo "*** The artsc-config script installed by ARTS could not be found"
11607 echo "*** If ARTS was installed in PREFIX, make sure PREFIX/bin is in"
11608 echo "*** your path, or set the ARTS_CONFIG environment variable to the"
11609 echo "*** full path to artsc-config."
11611 if test -f conf.artstest ; then
11614 echo "*** Could not run ARTS test program, checking why..."
11615 CFLAGS="$CFLAGS $ARTS_CFLAGS"
11616 LIBS="$LIBS $ARTS_LIBS"
11617 cat >conftest.$ac_ext <<_ACEOF
11618 #line $LINENO "configure"
11621 cat confdefs.h >>conftest.$ac_ext
11622 cat >>conftest.$ac_ext <<_ACEOF
11623 /* end confdefs.h. */
11636 rm -f conftest.$ac_objext conftest$ac_exeext
11637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11638 (eval $ac_link) 2>&5
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); } &&
11642 { ac_try='test -s conftest$ac_exeext'
11643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11644 (eval $ac_try) 2>&5
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; }; then
11648 echo "*** The test program compiled, but did not run. This usually means"
11649 echo "*** that the run-time linker is not finding ARTS or finding the wrong"
11650 echo "*** version of ARTS. If it is not finding ARTS, you'll need to set your"
11651 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11652 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11653 echo "*** is required on your system"
11655 echo "*** If you have an old version installed, it is best to remove it, although"
11656 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11658 echo "$as_me: failed program was:" >&5
11659 sed 's/^/| /' conftest.$ac_ext >&5
11661 echo "*** The test program failed to compile or link. See the file config.log for the"
11662 echo "*** exact error that occured. This usually means ARTS was incorrectly installed"
11663 echo "*** or that you have moved ARTS since it was installed. In the latter case, you"
11664 echo "*** may want to edit the arts-config script: $ARTS_CONFIG"
11666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11667 CFLAGS="$ac_save_CFLAGS"
11668 LIBS="$ac_save_LIBS"
11677 rm -f conf.artstest
11681 LDFLAGS=$KEEPLDFLAGS
11682 if test "x$no_arts" = x; then
11683 EXTRADEFS="$EXTRADEFS -DAU_ARTS"
11684 SYSEXTRAS="$SYSEXTRAS aRts_a.c"
11685 for f in $ARTS_CFLAGS; do
11687 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
11688 *) CFLAGS="$CPPFLAGS $f" ;;
11692 LIBS="$LIBS $ARTS_LIBS"
11694 { echo "$as_me:$LINENO: WARNING: aRts: Couldn't configure" >&5
11695 echo "$as_me: WARNING: aRts: Couldn't configure" >&2;}
11698 echo "$as_me:$LINENO: result: no" >&5
11699 echo "${ECHO_T}no" >&6
11702 echo "$as_me:$LINENO: checking enable_audio=esd" >&5
11703 echo $ECHO_N "checking enable_audio=esd... $ECHO_C" >&6
11704 if test "x$au_enable_esd" = xyes; then
11705 echo "$as_me:$LINENO: result: yes, configuring esd" >&5
11706 echo "${ECHO_T}yes, configuring esd" >&6
11709 KEEPLDFLAGS=$LDFLAGS
11711 # Check whether --with-esd-prefix or --without-esd-prefix was given.
11712 if test "${with_esd_prefix+set}" = set; then
11713 withval="$with_esd_prefix"
11714 esd_prefix="$withval"
11719 # Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given.
11720 if test "${with_esd_exec_prefix+set}" = set; then
11721 withval="$with_esd_exec_prefix"
11722 esd_exec_prefix="$withval"
11726 # Check whether --enable-esdtest or --disable-esdtest was given.
11727 if test "${enable_esdtest+set}" = set; then
11728 enableval="$enable_esdtest"
11734 if test x$esd_exec_prefix != x ; then
11735 esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
11736 if test x${ESD_CONFIG+set} != xset ; then
11737 ESD_CONFIG=$esd_exec_prefix/bin/esd-config
11740 if test x$esd_prefix != x ; then
11741 esd_args="$esd_args --prefix=$esd_prefix"
11742 if test x${ESD_CONFIG+set} != xset ; then
11743 ESD_CONFIG=$esd_prefix/bin/esd-config
11747 # Extract the first word of "esd-config", so it can be a program name with args.
11748 set dummy esd-config; ac_word=$2
11749 echo "$as_me:$LINENO: checking for $ac_word" >&5
11750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11751 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
11752 echo $ECHO_N "(cached) $ECHO_C" >&6
11754 case $ESD_CONFIG in
11756 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
11759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11760 for as_dir in $PATH
11763 test -z "$as_dir" && as_dir=.
11764 for ac_exec_ext in '' $ac_executable_extensions; do
11765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11766 ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11773 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
11777 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
11779 if test -n "$ESD_CONFIG"; then
11780 echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
11781 echo "${ECHO_T}$ESD_CONFIG" >&6
11783 echo "$as_me:$LINENO: result: no" >&5
11784 echo "${ECHO_T}no" >&6
11787 min_esd_version=0.2.7
11788 echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
11789 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6
11791 if test "$ESD_CONFIG" = "no" ; then
11797 ac_cpp='$CPP $CPPFLAGS'
11798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11802 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
11803 ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
11805 esd_major_version=`$ESD_CONFIG $esd_args --version | \
11806 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11807 esd_minor_version=`$ESD_CONFIG $esd_args --version | \
11808 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11809 esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
11810 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11811 if test "x$enable_esdtest" = "xyes" ; then
11812 ac_save_CFLAGS="$CFLAGS"
11813 ac_save_LIBS="$LIBS"
11814 CFLAGS="$CFLAGS $ESD_CFLAGS"
11815 LIBS="$LIBS $ESD_LIBS"
11817 if test "$cross_compiling" = yes; then
11818 echo $ac_n "cross compiling; assumed OK... $ac_c"
11820 cat >conftest.$ac_ext <<_ACEOF
11821 #line $LINENO "configure"
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h. */
11829 #include <stdlib.h>
11830 #include <string.h>
11834 my_strdup (char *str)
11840 new_str = malloc ((strlen (str) + 1) * sizeof(char));
11841 strcpy (new_str, str);
11851 int major, minor, micro;
11854 system ("touch conf.esdtest");
11856 /* HP/UX 9 (%@#!) writes to sscanf strings */
11857 tmp_version = my_strdup("$min_esd_version");
11858 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
11859 printf("%s, bad version string\n", "$min_esd_version");
11863 if (($esd_major_version > major) ||
11864 (($esd_major_version == major) && ($esd_minor_version > minor)) ||
11865 (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
11871 printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
11872 printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
11873 printf("*** best to upgrade to the required version.\n");
11874 printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
11875 printf("*** to point to the correct copy of esd-config, and remove the file\n");
11876 printf("*** config.cache before re-running configure\n");
11883 rm -f conftest$ac_exeext
11884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11885 (eval $ac_link) 2>&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890 (eval $ac_try) 2>&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); }; }; then
11896 echo "$as_me: program exited with status $ac_status" >&5
11897 echo "$as_me: failed program was:" >&5
11898 sed 's/^/| /' conftest.$ac_ext >&5
11900 ( exit $ac_status )
11903 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11905 CFLAGS="$ac_save_CFLAGS"
11906 LIBS="$ac_save_LIBS"
11908 ac_cpp='$CPP $CPPFLAGS'
11909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11915 if test "x$no_esd" = x ; then
11916 echo "$as_me:$LINENO: result: yes" >&5
11917 echo "${ECHO_T}yes" >&6
11920 echo "$as_me:$LINENO: result: no" >&5
11921 echo "${ECHO_T}no" >&6
11922 if test "$ESD_CONFIG" = "no" ; then
11923 echo "*** The esd-config script installed by ESD could not be found"
11924 echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
11925 echo "*** your path, or set the ESD_CONFIG environment variable to the"
11926 echo "*** full path to esd-config."
11928 if test -f conf.esdtest ; then
11931 echo "*** Could not run ESD test program, checking why..."
11932 CFLAGS="$CFLAGS $ESD_CFLAGS"
11933 LIBS="$LIBS $ESD_LIBS"
11937 ac_cpp='$CPP $CPPFLAGS'
11938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11942 cat >conftest.$ac_ext <<_ACEOF
11943 #line $LINENO "configure"
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h. */
11961 rm -f conftest.$ac_objext conftest$ac_exeext
11962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11963 (eval $ac_link) 2>&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); } &&
11967 { ac_try='test -s conftest$ac_exeext'
11968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11969 (eval $ac_try) 2>&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); }; }; then
11973 echo "*** The test program compiled, but did not run. This usually means"
11974 echo "*** that the run-time linker is not finding ESD or finding the wrong"
11975 echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
11976 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11977 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11978 echo "*** is required on your system"
11980 echo "*** If you have an old version installed, it is best to remove it, although"
11981 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11983 echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11986 echo "*** The test program failed to compile or link. See the file config.log for the"
11987 echo "*** exact error that occured. This usually means ESD was incorrectly installed"
11988 echo "*** or that you have moved ESD since it was installed. In the latter case, you"
11989 echo "*** may want to edit the esd-config script: $ESD_CONFIG"
11991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11992 CFLAGS="$ac_save_CFLAGS"
11993 LIBS="$ac_save_LIBS"
11995 ac_cpp='$CPP $CPPFLAGS'
11996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12012 LDFLAGS=$KEEPLDFLAGS
12013 if test "x$no_esd" = x; then
12014 EXTRADEFS="$EXTRADEFS -DAU_ESD"
12015 SYSEXTRAS="$SYSEXTRAS esd_a.c"
12016 for f in $ESD_CFLAGS; do
12018 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
12019 *) CFLAGS="$CPPFLAGS $f" ;;
12023 LIBS="$LIBS $ESD_LIBS"
12025 { echo "$as_me:$LINENO: WARNING: EsounD: Couldn't configure" >&5
12026 echo "$as_me: WARNING: EsounD: Couldn't configure" >&2;}
12029 echo "$as_me:$LINENO: result: no" >&5
12030 echo "${ECHO_T}no" >&6
12033 echo "$as_me:$LINENO: checking enable_audio=portaudio" >&5
12034 echo $ECHO_N "checking enable_audio=portaudio... $ECHO_C" >&6
12035 if test "x$au_enable_portaudio" = xyes; then
12036 echo "$as_me:$LINENO: result: yes" >&5
12037 echo "${ECHO_T}yes" >&6
12038 SYSEXTRAS="$SYSEXTRAS portaudio_a.c"
12039 EXTRALIBS="$EXTRALIBS -lportaudio"
12040 EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO"
12042 echo "$as_me:$LINENO: result: no" >&5
12043 echo "${ECHO_T}no" >&6
12046 echo "$as_me:$LINENO: checking enable_audio=jack" >&5
12047 echo $ECHO_N "checking enable_audio=jack... $ECHO_C" >&6
12048 if test "x$au_enable_jack" = xyes; then
12049 echo "$as_me:$LINENO: result: yes" >&5
12050 echo "${ECHO_T}yes" >&6
12051 SYSEXTRAS="$SYSEXTRAS jack_a.c"
12052 EXTRALIBS="$EXTRALIBS $(pkg-config --libs jack)"
12053 EXTRADEFS="$EXTRADEFS -DAU_JACK $(pkg-config --cflags jack)"
12055 echo "$as_me:$LINENO: result: no" >&5
12056 echo "${ECHO_T}no" >&6
12059 echo "$as_me:$LINENO: checking enable_audio=vorbis" >&5
12060 echo $ECHO_N "checking enable_audio=vorbis... $ECHO_C" >&6
12061 if test "x$au_enable_vorbis" = xyes; then
12062 echo "$as_me:$LINENO: result: yes, configuring vorbis" >&5
12063 echo "${ECHO_T}yes, configuring vorbis" >&6
12065 # Check whether --with-ogg or --without-ogg was given.
12066 if test "${with_ogg+set}" = set; then
12067 withval="$with_ogg"
12068 ogg_prefix="$withval"
12073 # Check whether --with-ogg-libraries or --without-ogg-libraries was given.
12074 if test "${with_ogg_libraries+set}" = set; then
12075 withval="$with_ogg_libraries"
12076 ogg_libraries="$withval"
12081 # Check whether --with-ogg-includes or --without-ogg-includes was given.
12082 if test "${with_ogg_includes+set}" = set; then
12083 withval="$with_ogg_includes"
12084 ogg_includes="$withval"
12088 # Check whether --enable-oggtest or --disable-oggtest was given.
12089 if test "${enable_oggtest+set}" = set; then
12090 enableval="$enable_oggtest"
12096 if test "x$ogg_libraries" != "x" ; then
12097 OGG_LIBS="-L$ogg_libraries"
12098 elif test "x$ogg_prefix" != "x" ; then
12099 OGG_LIBS="-L$ogg_prefix/lib"
12100 elif test "x$prefix" != "xNONE" ; then
12101 OGG_LIBS="-L$prefix/lib"
12104 OGG_LIBS="$OGG_LIBS -logg"
12106 if test "x$ogg_includes" != "x" ; then
12107 OGG_CFLAGS="-I$ogg_includes"
12108 elif test "x$ogg_prefix" != "x" ; then
12109 OGG_CFLAGS="-I$ogg_prefix/include"
12110 elif test "x$prefix" != "xNONE"; then
12111 OGG_CFLAGS="-I$prefix/include"
12114 echo "$as_me:$LINENO: checking for Ogg" >&5
12115 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6
12119 if test "x$enable_oggtest" = "xyes" ; then
12120 ac_save_CFLAGS="$CFLAGS"
12121 ac_save_LIBS="$LIBS"
12122 CFLAGS="$CFLAGS $OGG_CFLAGS"
12123 LIBS="$LIBS $OGG_LIBS"
12125 if test "$cross_compiling" = yes; then
12126 echo $ac_n "cross compiling; assumed OK... $ac_c"
12128 cat >conftest.$ac_ext <<_ACEOF
12129 #line $LINENO "configure"
12132 cat confdefs.h >>conftest.$ac_ext
12133 cat >>conftest.$ac_ext <<_ACEOF
12134 /* end confdefs.h. */
12137 #include <stdlib.h>
12138 #include <string.h>
12139 #include <ogg/ogg.h>
12143 system("touch conf.oggtest");
12149 rm -f conftest$ac_exeext
12150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12151 (eval $ac_link) 2>&5
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156 (eval $ac_try) 2>&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; }; then
12162 echo "$as_me: program exited with status $ac_status" >&5
12163 echo "$as_me: failed program was:" >&5
12164 sed 's/^/| /' conftest.$ac_ext >&5
12166 ( exit $ac_status )
12169 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12171 CFLAGS="$ac_save_CFLAGS"
12172 LIBS="$ac_save_LIBS"
12175 if test "x$no_ogg" = "x" ; then
12176 echo "$as_me:$LINENO: result: yes" >&5
12177 echo "${ECHO_T}yes" >&6
12180 # Check whether --with-vorbis or --without-vorbis was given.
12181 if test "${with_vorbis+set}" = set; then
12182 withval="$with_vorbis"
12183 vorbis_prefix="$withval"
12188 # Check whether --with-vorbis-libraries or --without-vorbis-libraries was given.
12189 if test "${with_vorbis_libraries+set}" = set; then
12190 withval="$with_vorbis_libraries"
12191 vorbis_libraries="$withval"
12193 vorbis_libraries=""
12196 # Check whether --with-vorbis-includes or --without-vorbis-includes was given.
12197 if test "${with_vorbis_includes+set}" = set; then
12198 withval="$with_vorbis_includes"
12199 vorbis_includes="$withval"
12203 # Check whether --enable-vorbistest or --disable-vorbistest was given.
12204 if test "${enable_vorbistest+set}" = set; then
12205 enableval="$enable_vorbistest"
12208 enable_vorbistest=yes
12211 if test "x$vorbis_libraries" != "x" ; then
12212 VORBIS_LIBS="-L$vorbis_libraries"
12213 elif test "x$vorbis_prefix" != "x" ; then
12214 VORBIS_LIBS="-L$vorbis_prefix/lib"
12215 elif test "x$prefix" != "xNONE"; then
12216 VORBIS_LIBS="-L$prefix/lib"
12219 VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
12220 VORBISFILE_LIBS="-lvorbisfile"
12221 VORBISENC_LIBS="-lvorbisenc"
12223 if test "x$vorbis_includes" != "x" ; then
12224 VORBIS_CFLAGS="-I$vorbis_includes"
12225 elif test "x$vorbis_prefix" != "x" ; then
12226 VORBIS_CFLAGS="-I$vorbis_prefix/include"
12227 elif test "x$prefix" != "xNONE"; then
12228 VORBIS_CFLAGS="-I$prefix/include"
12232 echo "$as_me:$LINENO: checking for Vorbis" >&5
12233 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6
12237 if test "x$enable_vorbistest" = "xyes" ; then
12238 ac_save_CFLAGS="$CFLAGS"
12239 ac_save_LIBS="$LIBS"
12240 CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
12241 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
12242 rm -f conf.vorbistest
12243 if test "$cross_compiling" = yes; then
12244 echo $ac_n "cross compiling; assumed OK... $ac_c"
12246 cat >conftest.$ac_ext <<_ACEOF
12247 #line $LINENO "configure"
12250 cat confdefs.h >>conftest.$ac_ext
12251 cat >>conftest.$ac_ext <<_ACEOF
12252 /* end confdefs.h. */
12255 #include <stdlib.h>
12256 #include <string.h>
12257 #include <vorbis/codec.h>
12261 system("touch conf.vorbistest");
12267 rm -f conftest$ac_exeext
12268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12269 (eval $ac_link) 2>&5
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12274 (eval $ac_try) 2>&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; }; then
12280 echo "$as_me: program exited with status $ac_status" >&5
12281 echo "$as_me: failed program was:" >&5
12282 sed 's/^/| /' conftest.$ac_ext >&5
12284 ( exit $ac_status )
12287 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12289 CFLAGS="$ac_save_CFLAGS"
12290 LIBS="$ac_save_LIBS"
12293 if test "x$no_vorbis" = "x" ; then
12294 echo "$as_me:$LINENO: result: yes" >&5
12295 echo "${ECHO_T}yes" >&6
12298 SYSEXTRAS="$SYSEXTRAS vorbis_a.c"
12299 EXTRADEFS="$EXTRADEFS -DAU_VORBIS $OGG_CFLAGS $VORBIS_CFLAGS"
12300 EXTRALIBS="$EXTRALIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
12301 if test "x$CYGNUS" = "xyes"; then
12302 EXTRADEFS="-DAU_VORBIS_DLL $EXTRALIBS"
12303 SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
12305 if test "x$MINGW" = "xyes"; then
12306 EXTRADEFS="-DAU_VORBIS_DLL $EXTRALIBS"
12307 SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
12311 echo "$as_me:$LINENO: result: no" >&5
12312 echo "${ECHO_T}no" >&6
12313 if test -f conf.vorbistest ; then
12316 echo "*** Could not run Vorbis test program, checking why..."
12317 CFLAGS="$CFLAGS $VORBIS_CFLAGS"
12318 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
12319 cat >conftest.$ac_ext <<_ACEOF
12320 #line $LINENO "configure"
12323 cat confdefs.h >>conftest.$ac_ext
12324 cat >>conftest.$ac_ext <<_ACEOF
12325 /* end confdefs.h. */
12328 #include <vorbis/codec.h>
12338 rm -f conftest.$ac_objext conftest$ac_exeext
12339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12340 (eval $ac_link) 2>&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } &&
12344 { ac_try='test -s conftest$ac_exeext'
12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346 (eval $ac_try) 2>&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }; }; then
12350 echo "*** The test program compiled, but did not run. This usually means"
12351 echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
12352 echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
12353 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12354 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12355 echo "*** is required on your system"
12357 echo "*** If you have an old version installed, it is best to remove it, although"
12358 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12360 echo "$as_me: failed program was:" >&5
12361 sed 's/^/| /' conftest.$ac_ext >&5
12363 echo "*** The test program failed to compile or link. See the file config.log for the"
12364 echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
12365 echo "*** or that you have moved Vorbis since it was installed."
12367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12368 CFLAGS="$ac_save_CFLAGS"
12369 LIBS="$ac_save_LIBS"
12376 { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis, but ogg is there (???)" >&5
12377 echo "$as_me: WARNING: Unable to configure vorbis, but ogg is there (???)" >&2;}
12384 rm -f conf.vorbistest
12388 echo "$as_me:$LINENO: result: no" >&5
12389 echo "${ECHO_T}no" >&6
12390 if test -f conf.oggtest ; then
12393 echo "*** Could not run Ogg test program, checking why..."
12394 CFLAGS="$CFLAGS $OGG_CFLAGS"
12395 LIBS="$LIBS $OGG_LIBS"
12396 cat >conftest.$ac_ext <<_ACEOF
12397 #line $LINENO "configure"
12400 cat confdefs.h >>conftest.$ac_ext
12401 cat >>conftest.$ac_ext <<_ACEOF
12402 /* end confdefs.h. */
12405 #include <ogg/ogg.h>
12415 rm -f conftest.$ac_objext conftest$ac_exeext
12416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12417 (eval $ac_link) 2>&5
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); } &&
12421 { ac_try='test -s conftest$ac_exeext'
12422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423 (eval $ac_try) 2>&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; }; then
12427 echo "*** The test program compiled, but did not run. This usually means"
12428 echo "*** that the run-time linker is not finding Ogg or finding the wrong"
12429 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
12430 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12431 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12432 echo "*** is required on your system"
12434 echo "*** If you have an old version installed, it is best to remove it, although"
12435 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12437 echo "$as_me: failed program was:" >&5
12438 sed 's/^/| /' conftest.$ac_ext >&5
12440 echo "*** The test program failed to compile or link. See the file config.log for the"
12441 echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
12442 echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
12443 echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
12445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12446 CFLAGS="$ac_save_CFLAGS"
12447 LIBS="$ac_save_LIBS"
12452 { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis!" >&5
12453 echo "$as_me: WARNING: Unable to configure vorbis!" >&2;}
12462 echo "$as_me:$LINENO: result: no" >&5
12463 echo "${ECHO_T}no" >&6
12466 echo "$as_me:$LINENO: checking enable_audio=gogo" >&5
12467 echo $ECHO_N "checking enable_audio=gogo... $ECHO_C" >&6
12468 if test "x$au_enable_gogo" = xyes; then
12469 if test "x$CYGNUS" = "xyes"; then
12470 echo "$as_me:$LINENO: result: yes" >&5
12471 echo "${ECHO_T}yes" >&6
12473 if test "x$MINGW" = "xyes"; then
12474 echo "$as_me:$LINENO: result: yes" >&5
12475 echo "${ECHO_T}yes" >&6
12477 { echo "$as_me:$LINENO: WARNING: May be gogo is not supported. You need hack the gogo_a.c" >&5
12478 echo "$as_me: WARNING: May be gogo is not supported. You need hack the gogo_a.c" >&2;}
12482 SYSEXTRAS="$SYSEXTRAS gogo_a.c w32_gogo.c"
12483 EXTRADEFS="$EXTRADEFS -DAU_GOGO -DAU_GOGO_DLL"
12484 EXTRALIBS="$EXTRALIBS -lgogo"
12486 echo "$as_me:$LINENO: result: no" >&5
12487 echo "${ECHO_T}no" >&6
12490 if test "x$au_enable_none" = xyes; then
12491 EXTRADEFS="$EXTRADEFS -DAU_NONE -DAU_AUDRIV"
12492 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_none.c"
12494 echo "$as_me:$LINENO: checking default output mode" >&5
12495 echo $ECHO_N "checking default output mode... $ECHO_C" >&6
12496 if test "x$DEFAULT_PLAYMODE" = x; then
12497 DEFAULT_PLAYMODE=`echo $enable_audio | sed 's/,.*//'`
12499 case ".$DEFAULT_PLAYMODE" in
12500 .default) TIMIDITY_OUTPUT_ID=d ;;
12501 .oss) TIMIDITY_OUTPUT_ID=d ;;
12502 .alsa) TIMIDITY_OUTPUT_ID=s ;;
12503 .sun) TIMIDITY_OUTPUT_ID=d ;;
12504 .hpux) TIMIDITY_OUTPUT_ID=d ;;
12505 .irix) TIMIDITY_OUTPUT_ID=d ;;
12506 .mme) TIMIDITY_OUTPUT_ID=d ;;
12507 .sb_dsp) TIMIDITY_OUTPUT_ID=d ;;
12508 .darwin) TIMIDITY_OUTPUT_ID=d ;;
12509 .w32) TIMIDITY_OUTPUT_ID=d ;;
12510 .alib) TIMIDITY_OUTPUT_ID=A ;;
12511 .nas) TIMIDITY_OUTPUT_ID=n ;;
12512 .arts) TIMIDITY_OUTPUT_ID=R ;;
12513 .esd) TIMIDITY_OUTPUT_ID=e ;;
12514 .portaudio) TIMIDITY_OUTPUT_ID=p ;;
12515 .wav) TIMIDITY_OUTPUT_ID=w ;;
12516 .au) TIMIDITY_OUTPUT_ID=u ;;
12517 .aiff) TIMIDITY_OUTPUT_ID=a ;;
12518 .list) TIMIDITY_OUTPUT_ID=l ;;
12519 .vorbis) TIMIDITY_OUTPUT_ID=v ;;
12520 .gogo) TIMIDITY_OUTPUT_ID=g ;;
12521 .jack) TIMIDITY_OUTPUT_ID=j ;;
12522 *) TIMIDITY_OUTPUT_ID= ;;
12524 echo "$as_me:$LINENO: result: $DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&5
12525 echo "${ECHO_T}$DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&6
12528 # Interface Section
12531 interface_targets='dynamic ncurses slang motif tcltk emacs vt100 xaw xskin gtk alsaseq winsyn winsyng portmidisyng'
12533 # Check whether --enable-interface or --disable-interface was given.
12534 if test "${enable_interface+set}" = set; then
12535 enableval="$enable_interface"
12536 for i in `echo $enableval | sed 's/,/ /g'`; do
12537 eval "enable_$i=yes"
12541 # Dynamic link configuration
12542 # Check whether --enable-dynamic or --disable-dynamic was given.
12543 if test "${enable_dynamic+set}" = set; then
12544 enableval="$enable_dynamic"
12545 if test "x$enable_dynamic" = xyes; then
12546 enable_dynamic=dynamic
12547 elif test "x$enable_dynamic" != xno; then
12548 for i in `echo $enableval | sed 's/,/ /g'`; do
12549 eval "enable_$i=dynamic"
12555 for i in $interface_targets; do
12556 eval "join_targets=$join_targets\$enable_$i"
12559 case ".$join_targets" in
12560 .*dynamic*) NEEDDLOPEN=yes;;
12564 if test "x$GCC" = xyes; then SHCFLAGS="$SHCFLAGS -fPIC"; fi
12565 case "x$enable_ump" in xyes|xdynamic) EXTRACFLAGS="$EXTRACFLAGS -DXP_UNIX $SHCFLAGS";; esac
12567 if test "$NEEDDLOPEN" = "yes"; then
12570 echo "$as_me:$LINENO: checking for LoadLibrary" >&5
12571 echo $ECHO_N "checking for LoadLibrary... $ECHO_C" >&6
12572 if test "${wapi_cv_func_LoadLibrary+set}" = set; then
12573 echo $ECHO_N "(cached) $ECHO_C" >&6
12575 cat >conftest.$ac_ext <<_ACEOF
12576 #line $LINENO "configure"
12579 cat confdefs.h >>conftest.$ac_ext
12580 cat >>conftest.$ac_ext <<_ACEOF
12581 /* end confdefs.h. */
12582 #include <windows.h>
12593 rm -f conftest.$ac_objext conftest$ac_exeext
12594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12595 (eval $ac_link) 2>&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); } &&
12599 { ac_try='test -s conftest$ac_exeext'
12600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12601 (eval $ac_try) 2>&5
12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); }; }; then
12605 wapi_cv_func_LoadLibrary=yes
12607 echo "$as_me: failed program was:" >&5
12608 sed 's/^/| /' conftest.$ac_ext >&5
12610 wapi_cv_func_LoadLibrary=no
12612 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12615 if eval "test \"`echo '$wapi_cv_func_'LoadLibrary`\" = yes"; then
12616 echo "$as_me:$LINENO: result: yes" >&5
12617 echo "${ECHO_T}yes" >&6
12620 echo "$as_me:$LINENO: result: no" >&5
12621 echo "${ECHO_T}no" >&6
12624 test $wapi_cv_func_LoadLibrary = yes && have_dl=w32
12626 if test "$have_dl" = "no"; then
12627 echo "$as_me:$LINENO: checking for shl_load" >&5
12628 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12629 if test "${ac_cv_func_shl_load+set}" = set; then
12630 echo $ECHO_N "(cached) $ECHO_C" >&6
12632 cat >conftest.$ac_ext <<_ACEOF
12633 #line $LINENO "configure"
12636 cat confdefs.h >>conftest.$ac_ext
12637 cat >>conftest.$ac_ext <<_ACEOF
12638 /* end confdefs.h. */
12639 /* System header to define __stub macros and hopefully few prototypes,
12640 which can conflict with char shl_load (); below.
12641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12642 <limits.h> exists even on freestanding compilers. */
12644 # include <limits.h>
12646 # include <assert.h>
12648 /* Override any gcc2 internal prototype to avoid an error. */
12653 /* We use char because int might match the return type of a gcc2
12654 builtin and then its argument prototype would still apply. */
12656 /* The GNU C library defines this for functions which it implements
12657 to always fail with ENOSYS. Some functions are actually named
12658 something starting with __ and the normal name is an alias. */
12659 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12662 char (*f) () = shl_load;
12671 return f != shl_load;
12676 rm -f conftest.$ac_objext conftest$ac_exeext
12677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12678 (eval $ac_link) 2>&5
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); } &&
12682 { ac_try='test -s conftest$ac_exeext'
12683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12684 (eval $ac_try) 2>&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); }; }; then
12688 ac_cv_func_shl_load=yes
12690 echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12693 ac_cv_func_shl_load=no
12695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12697 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12698 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12699 if test $ac_cv_func_shl_load = yes; then
12704 if test "$have_dl" = "no"; then
12705 echo "$as_me:$LINENO: checking for NSLinkModule" >&5
12706 echo $ECHO_N "checking for NSLinkModule... $ECHO_C" >&6
12707 if test "${ac_cv_func_NSLinkModule+set}" = set; then
12708 echo $ECHO_N "(cached) $ECHO_C" >&6
12710 cat >conftest.$ac_ext <<_ACEOF
12711 #line $LINENO "configure"
12714 cat confdefs.h >>conftest.$ac_ext
12715 cat >>conftest.$ac_ext <<_ACEOF
12716 /* end confdefs.h. */
12717 /* System header to define __stub macros and hopefully few prototypes,
12718 which can conflict with char NSLinkModule (); below.
12719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12720 <limits.h> exists even on freestanding compilers. */
12722 # include <limits.h>
12724 # include <assert.h>
12726 /* Override any gcc2 internal prototype to avoid an error. */
12731 /* We use char because int might match the return type of a gcc2
12732 builtin and then its argument prototype would still apply. */
12733 char NSLinkModule ();
12734 /* The GNU C library defines this for functions which it implements
12735 to always fail with ENOSYS. Some functions are actually named
12736 something starting with __ and the normal name is an alias. */
12737 #if defined (__stub_NSLinkModule) || defined (__stub___NSLinkModule)
12740 char (*f) () = NSLinkModule;
12749 return f != NSLinkModule;
12754 rm -f conftest.$ac_objext conftest$ac_exeext
12755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12756 (eval $ac_link) 2>&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); } &&
12760 { ac_try='test -s conftest$ac_exeext'
12761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12762 (eval $ac_try) 2>&5
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); }; }; then
12766 ac_cv_func_NSLinkModule=yes
12768 echo "$as_me: failed program was:" >&5
12769 sed 's/^/| /' conftest.$ac_ext >&5
12771 ac_cv_func_NSLinkModule=no
12773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12775 echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5
12776 echo "${ECHO_T}$ac_cv_func_NSLinkModule" >&6
12777 if test $ac_cv_func_NSLinkModule = yes; then
12782 if test "$have_dl" = "no" -a "x$ac_cv_lib_dl_dlopen" = xyes; then
12785 if test "$have_dl" = "no"; then
12786 echo "$as_me:$LINENO: checking for dlopen" >&5
12787 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12788 if test "${ac_cv_func_dlopen+set}" = set; then
12789 echo $ECHO_N "(cached) $ECHO_C" >&6
12791 cat >conftest.$ac_ext <<_ACEOF
12792 #line $LINENO "configure"
12795 cat confdefs.h >>conftest.$ac_ext
12796 cat >>conftest.$ac_ext <<_ACEOF
12797 /* end confdefs.h. */
12798 /* System header to define __stub macros and hopefully few prototypes,
12799 which can conflict with char dlopen (); below.
12800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12801 <limits.h> exists even on freestanding compilers. */
12803 # include <limits.h>
12805 # include <assert.h>
12807 /* Override any gcc2 internal prototype to avoid an error. */
12812 /* We use char because int might match the return type of a gcc2
12813 builtin and then its argument prototype would still apply. */
12815 /* The GNU C library defines this for functions which it implements
12816 to always fail with ENOSYS. Some functions are actually named
12817 something starting with __ and the normal name is an alias. */
12818 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12821 char (*f) () = dlopen;
12830 return f != dlopen;
12835 rm -f conftest.$ac_objext conftest$ac_exeext
12836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12837 (eval $ac_link) 2>&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); } &&
12841 { ac_try='test -s conftest$ac_exeext'
12842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12843 (eval $ac_try) 2>&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); }; }; then
12847 ac_cv_func_dlopen=yes
12849 echo "$as_me: failed program was:" >&5
12850 sed 's/^/| /' conftest.$ac_ext >&5
12852 ac_cv_func_dlopen=no
12854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12856 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12857 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12858 if test $ac_cv_func_dlopen = yes; then
12863 if test "$have_dl" = "no"; then
12864 echo "$as_me:$LINENO: checking for dld_init" >&5
12865 echo $ECHO_N "checking for dld_init... $ECHO_C" >&6
12866 if test "${ac_cv_func_dld_init+set}" = set; then
12867 echo $ECHO_N "(cached) $ECHO_C" >&6
12869 cat >conftest.$ac_ext <<_ACEOF
12870 #line $LINENO "configure"
12873 cat confdefs.h >>conftest.$ac_ext
12874 cat >>conftest.$ac_ext <<_ACEOF
12875 /* end confdefs.h. */
12876 /* System header to define __stub macros and hopefully few prototypes,
12877 which can conflict with char dld_init (); below.
12878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12879 <limits.h> exists even on freestanding compilers. */
12881 # include <limits.h>
12883 # include <assert.h>
12885 /* Override any gcc2 internal prototype to avoid an error. */
12890 /* We use char because int might match the return type of a gcc2
12891 builtin and then its argument prototype would still apply. */
12893 /* The GNU C library defines this for functions which it implements
12894 to always fail with ENOSYS. Some functions are actually named
12895 something starting with __ and the normal name is an alias. */
12896 #if defined (__stub_dld_init) || defined (__stub___dld_init)
12899 char (*f) () = dld_init;
12908 return f != dld_init;
12913 rm -f conftest.$ac_objext conftest$ac_exeext
12914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12915 (eval $ac_link) 2>&5
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); } &&
12919 { ac_try='test -s conftest$ac_exeext'
12920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921 (eval $ac_try) 2>&5
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }; }; then
12925 ac_cv_func_dld_init=yes
12927 echo "$as_me: failed program was:" >&5
12928 sed 's/^/| /' conftest.$ac_ext >&5
12930 ac_cv_func_dld_init=no
12932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12934 echo "$as_me:$LINENO: result: $ac_cv_func_dld_init" >&5
12935 echo "${ECHO_T}$ac_cv_func_dld_init" >&6
12936 if test $ac_cv_func_dld_init = yes; then
12941 if test "$have_dl" = "no"; then
12942 echo "$as_me:$LINENO: checking for dld_init in -ldld" >&5
12943 echo $ECHO_N "checking for dld_init in -ldld... $ECHO_C" >&6
12944 if test "${ac_cv_lib_dld_dld_init+set}" = set; then
12945 echo $ECHO_N "(cached) $ECHO_C" >&6
12947 ac_check_lib_save_LIBS=$LIBS
12949 cat >conftest.$ac_ext <<_ACEOF
12950 #line $LINENO "configure"
12953 cat confdefs.h >>conftest.$ac_ext
12954 cat >>conftest.$ac_ext <<_ACEOF
12955 /* end confdefs.h. */
12957 /* Override any gcc2 internal prototype to avoid an error. */
12961 /* We use char because int might match the return type of a gcc2
12962 builtin and then its argument prototype would still apply. */
12972 rm -f conftest.$ac_objext conftest$ac_exeext
12973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12974 (eval $ac_link) 2>&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); } &&
12978 { ac_try='test -s conftest$ac_exeext'
12979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980 (eval $ac_try) 2>&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); }; }; then
12984 ac_cv_lib_dld_dld_init=yes
12986 echo "$as_me: failed program was:" >&5
12987 sed 's/^/| /' conftest.$ac_ext >&5
12989 ac_cv_lib_dld_dld_init=no
12991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12992 LIBS=$ac_check_lib_save_LIBS
12994 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_init" >&5
12995 echo "${ECHO_T}$ac_cv_lib_dld_dld_init" >&6
12996 if test $ac_cv_lib_dld_dld_init = yes; then
12997 have_dl=dld;lib_dl_opt=-ldld
13002 echo "$as_me:$LINENO: checking dynamic link method" >&5
13003 echo $ECHO_N "checking dynamic link method... $ECHO_C" >&6
13006 echo "$as_me:$LINENO: result: use dl_dlopen.c" >&5
13007 echo "${ECHO_T}use dl_dlopen.c" >&6
13008 SYSEXTRAS="$SYSEXTRAS dl_dlopen.c"
13009 echo "$as_me:$LINENO: checking whether your dlsym() needs a leading underscore" >&5
13010 echo $ECHO_N "checking whether your dlsym() needs a leading underscore... $ECHO_C" >&6
13011 if test "${timidity_cv_func_dlsym_underscore+set}" = set; then
13012 echo $ECHO_N "(cached) $ECHO_C" >&6
13014 case "$ac_cv_header_dlfcn_h" in
13015 yes) i_dlfcn=define;;
13026 #include <dlfcn.h> /* the dynamic linker include file for Sunos/Solaris */
13028 #include <sys/types.h>
13033 extern int fred() ;
13042 int mode = RTLD_LAZY ;
13044 handle = dlopen("./dyna.$so", mode) ;
13045 if (handle == NULL) {
13050 symbol = dlsym(handle, "fred") ;
13051 if (symbol == NULL) {
13052 /* try putting a leading underscore */
13053 symbol = dlsym(handle, "_fred") ;
13054 if (symbol == NULL) {
13067 : Call the object file tmp-dyna.o in case dlext=o.
13068 if ${CC-cc} $CFLAGS $SHCFLAGS $CPPFLAGS -c dyna.c > /dev/null 2>&1 &&
13069 mv dyna.o tmp-dyna.o > /dev/null 2>&1 &&
13070 $SHLD $SHLDFLAGS -o dyna.$so tmp-dyna.o > /dev/null 2>&1 &&
13071 ${CC-cc} -o fred $CFLAGS $CPPFLAGS $LDFLAGS fred.c $LIBS $lib_dl_opt > /dev/null 2>&1; then
13074 1) { echo "$as_me:$LINENO: WARNING: Test program failed using dlopen. Perhaps you should not use dynamic loading." >&5
13075 echo "$as_me: WARNING: Test program failed using dlopen. Perhaps you should not use dynamic loading." >&2;}
13077 2) { echo "$as_me:$LINENO: WARNING: Test program failed using dlsym. Perhaps you should not use dynamic loading." >&5
13078 echo "$as_me: WARNING: Test program failed using dlsym. Perhaps you should not use dynamic loading." >&2;}
13080 3) timidity_cv_func_dlsym_underscore=yes
13082 4) timidity_cv_func_dlsym_underscore=no
13086 { echo "$as_me:$LINENO: WARNING: I can't compile and run the test program." >&5
13087 echo "$as_me: WARNING: I can't compile and run the test program." >&2;}
13089 rm -f dyna.c dyna.o dyna.$so tmp-dyna.o fred.c fred.o fred
13093 case "x$timidity_cv_func_dlsym_underscore" in
13095 cat >>confdefs.h <<\_ACEOF
13096 #define DLSYM_NEEDS_UNDERSCORE 1
13099 echo "$as_me:$LINENO: result: yes" >&5
13100 echo "${ECHO_T}yes" >&6
13103 echo "$as_me:$LINENO: result: no" >&5
13104 echo "${ECHO_T}no" >&6
13110 echo "$as_me:$LINENO: result: use dl_dld.c" >&5
13111 echo "${ECHO_T}use dl_dld.c" >&6
13112 SYSEXTRAS="$SYSEXTRAS dl_dld.c"
13115 echo "$as_me:$LINENO: result: use dl_hpux.c" >&5
13116 echo "${ECHO_T}use dl_hpux.c" >&6
13117 SYSEXTRAS="$SYSEXTRAS dl_hpux.c"
13118 LDFLAGS="$LDFLAGS -Wl,-E $LDFLAGS"
13121 echo "$as_me:$LINENO: result: use dl_w32.c" >&5
13122 echo "${ECHO_T}use dl_w32.c" >&6
13123 SYSEXTRAS="$SYSEXTRAS dl_w32.c"
13126 echo "$as_me:$LINENO: result: use dl_dyld.c" >&5
13127 echo "${ECHO_T}use dl_dyld.c" >&6
13128 SYSEXTRAS="$SYSEXTRAS dl_dyld.c"
13132 { echo "$as_me:$LINENO: WARNING: no method to open a shared object" >&5
13133 echo "$as_me: WARNING: no method to open a shared object" >&2;}
13138 if test "$NEEDDLOPEN" = "yes"; then
13139 cat >> confdefs.h <<EOF
13140 #define IA_DYNAMIC 1
13144 cat >>confdefs.h <<_ACEOF
13145 #define SHARED_LIB_EXT ".$so"
13148 test "x$GCC" = xyes -a "x$timidity_cv_ccoption_rdynamic" = xyes && timidity_LDFLAGS="-rdynamic"
13153 if test "$NEEDDLOPEN" = "yes"; then
13155 NEEDDLOPEN_FALSE='#'
13157 NEEDDLOPEN_TRUE='#'
13166 ENABLE_NCURSES_TRUE=
13167 ENABLE_NCURSES_FALSE='#'
13169 ENABLE_NCURSES_TRUE='#'
13170 ENABLE_NCURSES_FALSE=
13173 # Check whether --enable-ncurses or --disable-ncurses was given.
13174 if test "${enable_ncurses+set}" = set; then
13175 enableval="$enable_ncurses"
13176 case "x$enable_ncurses" in xyes|xdynamic)
13179 for ac_header in ncurses.h ncurses/curses.h curses.h
13181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13183 echo "$as_me:$LINENO: checking for $ac_header" >&5
13184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13186 echo $ECHO_N "(cached) $ECHO_C" >&6
13188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13191 # Is the header compilable?
13192 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13193 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13194 cat >conftest.$ac_ext <<_ACEOF
13195 #line $LINENO "configure"
13198 cat confdefs.h >>conftest.$ac_ext
13199 cat >>conftest.$ac_ext <<_ACEOF
13200 /* end confdefs.h. */
13201 $ac_includes_default
13202 #include <$ac_header>
13204 rm -f conftest.$ac_objext
13205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13206 (eval $ac_compile) 2>&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); } &&
13210 { ac_try='test -s conftest.$ac_objext'
13211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13212 (eval $ac_try) 2>&5
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); }; }; then
13216 ac_header_compiler=yes
13218 echo "$as_me: failed program was:" >&5
13219 sed 's/^/| /' conftest.$ac_ext >&5
13221 ac_header_compiler=no
13223 rm -f conftest.$ac_objext conftest.$ac_ext
13224 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13225 echo "${ECHO_T}$ac_header_compiler" >&6
13227 # Is the header present?
13228 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13229 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13230 cat >conftest.$ac_ext <<_ACEOF
13231 #line $LINENO "configure"
13234 cat confdefs.h >>conftest.$ac_ext
13235 cat >>conftest.$ac_ext <<_ACEOF
13236 /* end confdefs.h. */
13237 #include <$ac_header>
13239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13242 grep -v '^ *+' conftest.er1 >conftest.err
13244 cat conftest.err >&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } >/dev/null; then
13247 if test -s conftest.err; then
13248 ac_cpp_err=$ac_c_preproc_warn_flag
13255 if test -z "$ac_cpp_err"; then
13256 ac_header_preproc=yes
13258 echo "$as_me: failed program was:" >&5
13259 sed 's/^/| /' conftest.$ac_ext >&5
13261 ac_header_preproc=no
13263 rm -f conftest.err conftest.$ac_ext
13264 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13265 echo "${ECHO_T}$ac_header_preproc" >&6
13267 # So? What about this header?
13268 case $ac_header_compiler:$ac_header_preproc in
13270 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13271 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13273 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13276 ## ------------------------------------ ##
13277 ## Report this to bug-autoconf@gnu.org. ##
13278 ## ------------------------------------ ##
13281 sed "s/^/$as_me: WARNING: /" >&2
13284 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13285 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13286 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13287 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13292 ## ------------------------------------ ##
13293 ## Report this to bug-autoconf@gnu.org. ##
13294 ## ------------------------------------ ##
13297 sed "s/^/$as_me: WARNING: /" >&2
13300 echo "$as_me:$LINENO: checking for $ac_header" >&5
13301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13303 echo $ECHO_N "(cached) $ECHO_C" >&6
13305 eval "$as_ac_Header=$ac_header_preproc"
13307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13312 cat >>confdefs.h <<_ACEOF
13313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13322 case "$ac_cv_header_curses_h$ac_cv_header_ncurses_curses_h$ac_cv_header_ncurses_h" in
13324 *) for i in /usr/include /usr/local/include; do
13325 if test -f "$i/ncurses/curses.h" -a -f "$i/ncurses/unctrl.h"; then
13326 { echo "$as_me:$LINENO: WARNING: ncurses test is failure. Please check config.h and common.makefile later" >&5
13327 echo "$as_me: WARNING: ncurses test is failure. Please check config.h and common.makefile later" >&2;}
13328 CPPFLAGS="$CPPFLAGS -I$i/ncurses"
13335 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
13336 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
13337 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
13338 echo $ECHO_N "(cached) $ECHO_C" >&6
13340 ac_check_lib_save_LIBS=$LIBS
13341 LIBS="-lncurses $LIBS"
13342 cat >conftest.$ac_ext <<_ACEOF
13343 #line $LINENO "configure"
13346 cat confdefs.h >>conftest.$ac_ext
13347 cat >>conftest.$ac_ext <<_ACEOF
13348 /* end confdefs.h. */
13350 /* Override any gcc2 internal prototype to avoid an error. */
13354 /* We use char because int might match the return type of a gcc2
13355 builtin and then its argument prototype would still apply. */
13365 rm -f conftest.$ac_objext conftest$ac_exeext
13366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13367 (eval $ac_link) 2>&5
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); } &&
13371 { ac_try='test -s conftest$ac_exeext'
13372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13373 (eval $ac_try) 2>&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); }; }; then
13377 ac_cv_lib_ncurses_initscr=yes
13379 echo "$as_me: failed program was:" >&5
13380 sed 's/^/| /' conftest.$ac_ext >&5
13382 ac_cv_lib_ncurses_initscr=no
13384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13385 LIBS=$ac_check_lib_save_LIBS
13387 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
13388 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
13389 if test $ac_cv_lib_ncurses_initscr = yes; then
13390 lib_curses_opt=-lncurses
13392 echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lcurses" >&5
13393 echo $ECHO_N "checking for PDC_set_ctrl_break in -lcurses... $ECHO_C" >&6
13394 if test "${ac_cv_lib_curses_PDC_set_ctrl_break+set}" = set; then
13395 echo $ECHO_N "(cached) $ECHO_C" >&6
13397 ac_check_lib_save_LIBS=$LIBS
13398 LIBS="-lcurses $lib_user32_test $LIBS"
13399 cat >conftest.$ac_ext <<_ACEOF
13400 #line $LINENO "configure"
13403 cat confdefs.h >>conftest.$ac_ext
13404 cat >>conftest.$ac_ext <<_ACEOF
13405 /* end confdefs.h. */
13407 /* Override any gcc2 internal prototype to avoid an error. */
13411 /* We use char because int might match the return type of a gcc2
13412 builtin and then its argument prototype would still apply. */
13413 char PDC_set_ctrl_break ();
13417 PDC_set_ctrl_break ();
13422 rm -f conftest.$ac_objext conftest$ac_exeext
13423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13424 (eval $ac_link) 2>&5
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); } &&
13428 { ac_try='test -s conftest$ac_exeext'
13429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13430 (eval $ac_try) 2>&5
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); }; }; then
13434 ac_cv_lib_curses_PDC_set_ctrl_break=yes
13436 echo "$as_me: failed program was:" >&5
13437 sed 's/^/| /' conftest.$ac_ext >&5
13439 ac_cv_lib_curses_PDC_set_ctrl_break=no
13441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13442 LIBS=$ac_check_lib_save_LIBS
13444 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_PDC_set_ctrl_break" >&5
13445 echo "${ECHO_T}$ac_cv_lib_curses_PDC_set_ctrl_break" >&6
13446 if test $ac_cv_lib_curses_PDC_set_ctrl_break = yes; then
13447 lib_curses_opt=-lcurses
13449 cat >>confdefs.h <<\_ACEOF
13450 #define USE_PDCURSES 1
13453 lib_user32_opt="$lib_user32_test"
13456 echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lpdcurses" >&5
13457 echo $ECHO_N "checking for PDC_set_ctrl_break in -lpdcurses... $ECHO_C" >&6
13458 if test "${ac_cv_lib_pdcurses_PDC_set_ctrl_break+set}" = set; then
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
13461 ac_check_lib_save_LIBS=$LIBS
13462 LIBS="-lpdcurses $LIBS"
13463 cat >conftest.$ac_ext <<_ACEOF
13464 #line $LINENO "configure"
13467 cat confdefs.h >>conftest.$ac_ext
13468 cat >>conftest.$ac_ext <<_ACEOF
13469 /* end confdefs.h. */
13471 /* Override any gcc2 internal prototype to avoid an error. */
13475 /* We use char because int might match the return type of a gcc2
13476 builtin and then its argument prototype would still apply. */
13477 char PDC_set_ctrl_break ();
13481 PDC_set_ctrl_break ();
13486 rm -f conftest.$ac_objext conftest$ac_exeext
13487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13488 (eval $ac_link) 2>&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } &&
13492 { ac_try='test -s conftest$ac_exeext'
13493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494 (eval $ac_try) 2>&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
13498 ac_cv_lib_pdcurses_PDC_set_ctrl_break=yes
13500 echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13503 ac_cv_lib_pdcurses_PDC_set_ctrl_break=no
13505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13506 LIBS=$ac_check_lib_save_LIBS
13508 echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&5
13509 echo "${ECHO_T}$ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&6
13510 if test $ac_cv_lib_pdcurses_PDC_set_ctrl_break = yes; then
13511 lib_curses_opt=-lpdcurses
13513 cat >>confdefs.h <<\_ACEOF
13514 #define USE_PDCURSES 1
13517 lib_user32_opt="$lib_user32_test"
13522 echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
13523 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
13524 if test "${ac_cv_lib_curses_initscr+set}" = set; then
13525 echo $ECHO_N "(cached) $ECHO_C" >&6
13527 ac_check_lib_save_LIBS=$LIBS
13528 LIBS="-lcurses $LIBS"
13529 cat >conftest.$ac_ext <<_ACEOF
13530 #line $LINENO "configure"
13533 cat confdefs.h >>conftest.$ac_ext
13534 cat >>conftest.$ac_ext <<_ACEOF
13535 /* end confdefs.h. */
13537 /* Override any gcc2 internal prototype to avoid an error. */
13541 /* We use char because int might match the return type of a gcc2
13542 builtin and then its argument prototype would still apply. */
13552 rm -f conftest.$ac_objext conftest$ac_exeext
13553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13554 (eval $ac_link) 2>&5
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); } &&
13558 { ac_try='test -s conftest$ac_exeext'
13559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13560 (eval $ac_try) 2>&5
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); }; }; then
13564 ac_cv_lib_curses_initscr=yes
13566 echo "$as_me: failed program was:" >&5
13567 sed 's/^/| /' conftest.$ac_ext >&5
13569 ac_cv_lib_curses_initscr=no
13571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13572 LIBS=$ac_check_lib_save_LIBS
13574 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
13575 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
13576 if test $ac_cv_lib_curses_initscr = yes; then
13577 lib_curses_opt=-lcurses
13579 { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
13580 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
13586 { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
13587 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
13602 case "x$enable_ncurses" in
13604 cat >> confdefs.h <<EOF
13605 #define IA_NCURSES 1
13611 ENABLE_NCURSES_TRUE=
13612 ENABLE_NCURSES_FALSE='#'
13614 ENABLE_NCURSES_TRUE='#'
13615 ENABLE_NCURSES_FALSE=
13618 LIBS="$LIBS $lib_curses_opt"
13621 EXTRALIBS="$EXTRALIBS -lmytinfo"
13624 INTERFACE_SRCS="$INTERFACE_SRCS ncurs_c.c"
13628 dynamic_targets="$dynamic_targets interface_n.\$(so)"
13629 n_so_libs="$lib_curses_opt"
13632 EXTRALIBS="$EXTRALIBS -lmytinfo"
13647 ENABLE_SLANG_FALSE='#'
13649 ENABLE_SLANG_TRUE='#'
13650 ENABLE_SLANG_FALSE=
13653 # Check whether --enable-slang or --disable-slang was given.
13654 if test "${enable_slang+set}" = set; then
13655 enableval="$enable_slang"
13656 case "x$enable_slang" in xyes|xdynamic) echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5
13657 echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6
13658 if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then
13659 echo $ECHO_N "(cached) $ECHO_C" >&6
13661 ac_check_lib_save_LIBS=$LIBS
13662 LIBS="-lslang $LIBS"
13663 cat >conftest.$ac_ext <<_ACEOF
13664 #line $LINENO "configure"
13667 cat confdefs.h >>conftest.$ac_ext
13668 cat >>conftest.$ac_ext <<_ACEOF
13669 /* end confdefs.h. */
13671 /* Override any gcc2 internal prototype to avoid an error. */
13675 /* We use char because int might match the return type of a gcc2
13676 builtin and then its argument prototype would still apply. */
13677 char SLang_init_tty ();
13686 rm -f conftest.$ac_objext conftest$ac_exeext
13687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13688 (eval $ac_link) 2>&5
13690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); } &&
13692 { ac_try='test -s conftest$ac_exeext'
13693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13694 (eval $ac_try) 2>&5
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); }; }; then
13698 ac_cv_lib_slang_SLang_init_tty=yes
13700 echo "$as_me: failed program was:" >&5
13701 sed 's/^/| /' conftest.$ac_ext >&5
13703 ac_cv_lib_slang_SLang_init_tty=no
13705 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13706 LIBS=$ac_check_lib_save_LIBS
13708 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5
13709 echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6
13710 if test $ac_cv_lib_slang_SLang_init_tty = yes; then
13714 { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
13715 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
13721 for ac_header in slang/slang.h slang.h
13723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13725 echo "$as_me:$LINENO: checking for $ac_header" >&5
13726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13728 echo $ECHO_N "(cached) $ECHO_C" >&6
13730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13733 # Is the header compilable?
13734 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13736 cat >conftest.$ac_ext <<_ACEOF
13737 #line $LINENO "configure"
13740 cat confdefs.h >>conftest.$ac_ext
13741 cat >>conftest.$ac_ext <<_ACEOF
13742 /* end confdefs.h. */
13743 $ac_includes_default
13744 #include <$ac_header>
13746 rm -f conftest.$ac_objext
13747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13748 (eval $ac_compile) 2>&5
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); } &&
13752 { ac_try='test -s conftest.$ac_objext'
13753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754 (eval $ac_try) 2>&5
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); }; }; then
13758 ac_header_compiler=yes
13760 echo "$as_me: failed program was:" >&5
13761 sed 's/^/| /' conftest.$ac_ext >&5
13763 ac_header_compiler=no
13765 rm -f conftest.$ac_objext conftest.$ac_ext
13766 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13767 echo "${ECHO_T}$ac_header_compiler" >&6
13769 # Is the header present?
13770 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13772 cat >conftest.$ac_ext <<_ACEOF
13773 #line $LINENO "configure"
13776 cat confdefs.h >>conftest.$ac_ext
13777 cat >>conftest.$ac_ext <<_ACEOF
13778 /* end confdefs.h. */
13779 #include <$ac_header>
13781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13782 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13784 grep -v '^ *+' conftest.er1 >conftest.err
13786 cat conftest.err >&5
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); } >/dev/null; then
13789 if test -s conftest.err; then
13790 ac_cpp_err=$ac_c_preproc_warn_flag
13797 if test -z "$ac_cpp_err"; then
13798 ac_header_preproc=yes
13800 echo "$as_me: failed program was:" >&5
13801 sed 's/^/| /' conftest.$ac_ext >&5
13803 ac_header_preproc=no
13805 rm -f conftest.err conftest.$ac_ext
13806 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13807 echo "${ECHO_T}$ac_header_preproc" >&6
13809 # So? What about this header?
13810 case $ac_header_compiler:$ac_header_preproc in
13812 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13813 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13818 ## ------------------------------------ ##
13819 ## Report this to bug-autoconf@gnu.org. ##
13820 ## ------------------------------------ ##
13823 sed "s/^/$as_me: WARNING: /" >&2
13826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13829 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13834 ## ------------------------------------ ##
13835 ## Report this to bug-autoconf@gnu.org. ##
13836 ## ------------------------------------ ##
13839 sed "s/^/$as_me: WARNING: /" >&2
13842 echo "$as_me:$LINENO: checking for $ac_header" >&5
13843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13845 echo $ECHO_N "(cached) $ECHO_C" >&6
13847 eval "$as_ac_Header=$ac_header_preproc"
13849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13854 cat >>confdefs.h <<_ACEOF
13855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13864 case "x$enable_slang" in
13866 cat >> confdefs.h <<EOF
13874 ENABLE_SLANG_FALSE='#'
13876 ENABLE_SLANG_TRUE='#'
13877 ENABLE_SLANG_FALSE=
13880 LIBS="$LIBS -lslang"
13881 INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
13885 dynamic_targets="$dynamic_targets interface_s.\$(so)"
13886 s_so_libs="-lslang"
13887 echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
13888 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6
13889 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
13890 echo $ECHO_N "(cached) $ECHO_C" >&6
13892 ac_check_lib_save_LIBS=$LIBS
13893 LIBS="-ltermcap $LIBS"
13894 cat >conftest.$ac_ext <<_ACEOF
13895 #line $LINENO "configure"
13898 cat confdefs.h >>conftest.$ac_ext
13899 cat >>conftest.$ac_ext <<_ACEOF
13900 /* end confdefs.h. */
13902 /* Override any gcc2 internal prototype to avoid an error. */
13906 /* We use char because int might match the return type of a gcc2
13907 builtin and then its argument prototype would still apply. */
13917 rm -f conftest.$ac_objext conftest$ac_exeext
13918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13919 (eval $ac_link) 2>&5
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); } &&
13923 { ac_try='test -s conftest$ac_exeext'
13924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13925 (eval $ac_try) 2>&5
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); }; }; then
13929 ac_cv_lib_termcap_initscr=yes
13931 echo "$as_me: failed program was:" >&5
13932 sed 's/^/| /' conftest.$ac_ext >&5
13934 ac_cv_lib_termcap_initscr=no
13936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13937 LIBS=$ac_check_lib_save_LIBS
13939 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
13940 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6
13941 if test $ac_cv_lib_termcap_initscr = yes; then
13942 s_so_libs="$s_so_libs -ltermcap"
13958 ENABLE_MOTIF_FALSE='#'
13960 ENABLE_MOTIF_TRUE='#'
13961 ENABLE_MOTIF_FALSE=
13964 # Check whether --enable-motif or --disable-motif was given.
13965 if test "${enable_motif+set}" = set; then
13966 enableval="$enable_motif"
13967 case "x$enable_motif" in xyes|xdynamic) if test "x$with_x" != xyes; then
13968 { { echo "$as_me:$LINENO: error: motif: --with-x option must be specified" >&5
13969 echo "$as_me: error: motif: --with-x option must be specified" >&2;}
13970 { (exit 1); exit 1; }; }
13972 if test "x$have_xm" != xyes; then
13973 { echo "$as_me:$LINENO: WARNING: Motif library is not found." >&5
13974 echo "$as_me: WARNING: Motif library is not found." >&2;}
13979 case "x$enable_motif" in
13981 cat >> confdefs.h <<EOF
13989 ENABLE_MOTIF_FALSE='#'
13991 ENABLE_MOTIF_TRUE='#'
13992 ENABLE_MOTIF_FALSE=
13997 lib_xext_opt=-lXext
13998 if test "x$have_xprelibs" = xyes; then
13999 lib_xprelibs_opt='-lSM -lICE'
14001 INTERFACE_SRCS="$INTERFACE_SRCS motif_c.c motif_i.c motif_p.c"
14005 dynamic_targets="$dynamic_targets interface_m.\$(so)"
14006 if test x$have_xprelibs = xyes; then
14007 m_so_libs="-lXext -lSM -lICE"
14009 m_so_libs="$ldflags_x_opt -lXm -lXt $m_so_libs -lX11"
14023 ENABLE_TCLTK_FALSE='#'
14025 ENABLE_TCLTK_TRUE='#'
14026 ENABLE_TCLTK_FALSE=
14029 # Check whether --enable-tcltk or --disable-tcltk was given.
14030 if test "${enable_tcltk+set}" = set; then
14031 enableval="$enable_tcltk"
14032 case "x$enable_tcltk" in xyes|xdynamic) if test "x$with_x" != xyes; then
14033 { { echo "$as_me:$LINENO: error: tcltk: --with-x option must be specified" >&5
14034 echo "$as_me: error: tcltk: --with-x option must be specified" >&2;}
14035 { (exit 1); exit 1; }; }
14038 KEEPCPPFLAGS=$CPPFLAGS
14039 KEEPLDFLAGS=$LDFLAGS
14042 CPPFLAGS="$tcl_include_dir $tk_includes $CPPFLAGS"
14043 LDFLAGS="$tcl_libdir $tk_libdir $LDFLAGS"
14044 LIBS="$LIBS $lib_dl_opt"
14048 for l in tcl tcl8.4 tcl8.3 tcl8.0jp tcl7.6jp tcl80jp tcl76jp tcl8.0 tcl7.6 tcl80 tcl76; do
14049 case "x$tcl_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tcl_Init" | $as_tr_sh`
14050 echo "$as_me:$LINENO: checking for Tcl_Init in -l$l" >&5
14051 echo $ECHO_N "checking for Tcl_Init in -l$l... $ECHO_C" >&6
14052 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
14053 echo $ECHO_N "(cached) $ECHO_C" >&6
14055 ac_check_lib_save_LIBS=$LIBS
14057 cat >conftest.$ac_ext <<_ACEOF
14058 #line $LINENO "configure"
14061 cat confdefs.h >>conftest.$ac_ext
14062 cat >>conftest.$ac_ext <<_ACEOF
14063 /* end confdefs.h. */
14065 /* Override any gcc2 internal prototype to avoid an error. */
14069 /* We use char because int might match the return type of a gcc2
14070 builtin and then its argument prototype would still apply. */
14080 rm -f conftest.$ac_objext conftest$ac_exeext
14081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14082 (eval $ac_link) 2>&5
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); } &&
14086 { ac_try='test -s conftest$ac_exeext'
14087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14088 (eval $ac_try) 2>&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; }; then
14092 eval "$as_ac_Lib=yes"
14094 echo "$as_me: failed program was:" >&5
14095 sed 's/^/| /' conftest.$ac_ext >&5
14097 eval "$as_ac_Lib=no"
14099 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14100 LIBS=$ac_check_lib_save_LIBS
14102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
14103 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
14104 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
14109 LIBS="$LIBS $tcl_lib"
14110 for l in tk tk8.4 tk8.3 tk8.0jp tk4.2jp tk80jp tk42jp tk8.0 tk4.2 tk80 tk42; do
14111 case "x$tk_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tk_Init" | $as_tr_sh`
14112 echo "$as_me:$LINENO: checking for Tk_Init in -l$l" >&5
14113 echo $ECHO_N "checking for Tk_Init in -l$l... $ECHO_C" >&6
14114 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
14115 echo $ECHO_N "(cached) $ECHO_C" >&6
14117 ac_check_lib_save_LIBS=$LIBS
14119 cat >conftest.$ac_ext <<_ACEOF
14120 #line $LINENO "configure"
14123 cat confdefs.h >>conftest.$ac_ext
14124 cat >>conftest.$ac_ext <<_ACEOF
14125 /* end confdefs.h. */
14127 /* Override any gcc2 internal prototype to avoid an error. */
14131 /* We use char because int might match the return type of a gcc2
14132 builtin and then its argument prototype would still apply. */
14142 rm -f conftest.$ac_objext conftest$ac_exeext
14143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14144 (eval $ac_link) 2>&5
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); } &&
14148 { ac_try='test -s conftest$ac_exeext'
14149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14150 (eval $ac_try) 2>&5
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); }; }; then
14154 eval "$as_ac_Lib=yes"
14156 echo "$as_me: failed program was:" >&5
14157 sed 's/^/| /' conftest.$ac_ext >&5
14159 eval "$as_ac_Lib=no"
14161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14162 LIBS=$ac_check_lib_save_LIBS
14164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
14165 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
14166 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
14173 if test "x$tcl_lib" = x -o "x$tk_lib" = x; then
14174 CPPFLAGS=$KEEPCPPFLAGS
14175 LDFLAGS=$KEEPLDFLAGS
14177 { echo "$as_me:$LINENO: WARNING: tcl/tk is not enable" >&5
14178 echo "$as_me: WARNING: tcl/tk is not enable" >&2;}
14180 tcltk_dep='tclIndex'
14184 case "x$enable_tcltk" in
14186 cat >> confdefs.h <<EOF
14194 ENABLE_TCLTK_FALSE='#'
14196 ENABLE_TCLTK_TRUE='#'
14197 ENABLE_TCLTK_FALSE=
14200 LIBS=`echo $LIBS | sed "s/-lX11/$tk_lib $tcl_lib -lX11/"`
14203 EXTRALIBS="$EXTRALIBS -lipc"
14206 INTERFACE_SRCS="$INTERFACE_SRCS tk_c.c"
14210 dynamic_targets="$dynamic_targets interface_k.\$(so)"
14211 k_so_libs="$tcl_libdir $tk_libdir $tcl_lib $tk_lib $lib_dl_opt"
14214 k_so_libs="$k_so_libs -lipc"
14217 k_so_libs="$k_so_libs -lX11 -lm"
14228 if test "x$enable_tcltk" = "xdynamic"; then
14229 ENABLE_DYNAMIC_TCLTK_TRUE=
14230 ENABLE_DYNAMIC_TCLTK_FALSE='#'
14232 ENABLE_DYNAMIC_TCLTK_TRUE='#'
14233 ENABLE_DYNAMIC_TCLTK_FALSE=
14241 ENABLE_EMACS_FALSE='#'
14243 ENABLE_EMACS_TRUE='#'
14244 ENABLE_EMACS_FALSE=
14247 # Check whether --enable-emacs or --disable-emacs was given.
14248 if test "${enable_emacs+set}" = set; then
14249 enableval="$enable_emacs"
14250 case "x$enable_emacs" in xyes|xdynamic) ;; esac
14252 case "x$enable_emacs" in
14254 cat >> confdefs.h <<EOF
14262 ENABLE_EMACS_FALSE='#'
14264 ENABLE_EMACS_TRUE='#'
14265 ENABLE_EMACS_FALSE=
14268 ELFILES="$ELFILES timidity.el"
14269 INTERFACE_SRCS="$INTERFACE_SRCS emacs_c.c"
14273 dynamic_targets="$dynamic_targets interface_e.\$(so)"
14274 ELFILES="$ELFILES timidity.el"
14287 ENABLE_VT100_FALSE='#'
14289 ENABLE_VT100_TRUE='#'
14290 ENABLE_VT100_FALSE=
14293 # Check whether --enable-vt100 or --disable-vt100 was given.
14294 if test "${enable_vt100+set}" = set; then
14295 enableval="$enable_vt100"
14296 case "x$enable_vt100" in xyes|xdynamic) ;; esac
14298 case "x$enable_vt100" in
14300 cat >> confdefs.h <<EOF
14308 ENABLE_VT100_FALSE='#'
14310 ENABLE_VT100_TRUE='#'
14311 ENABLE_VT100_FALSE=
14314 INTERFACE_SRCS="$INTERFACE_SRCS vt100_c.c vt100.c"
14317 dynamic_targets="$dynamic_targets interface_T.\$(so)"
14331 ENABLE_XAW_FALSE='#'
14333 ENABLE_XAW_TRUE='#'
14337 # Check whether --enable-xaw or --disable-xaw was given.
14338 if test "${enable_xaw+set}" = set; then
14339 enableval="$enable_xaw"
14340 case "x$enable_xaw" in xyes|xdynamic) if test "x$with_x" != xyes; then
14341 { { echo "$as_me:$LINENO: error: xaw: --with-x option must be specified" >&5
14342 echo "$as_me: error: xaw: --with-x option must be specified" >&2;}
14343 { (exit 1); exit 1; }; }
14345 if test "x$have_xaw" != "xyes" -a "x$have_xaw" != "x3d"; then
14346 { echo "$as_me:$LINENO: WARNING: X Athena Widget library is not found." >&5
14347 echo "$as_me: WARNING: X Athena Widget library is not found." >&2;}
14351 case "x$enable_xaw" in
14353 cat >> confdefs.h <<EOF
14361 ENABLE_XAW_FALSE='#'
14363 ENABLE_XAW_TRUE='#'
14367 if test "x$have_xext" = xyes; then
14368 lib_xext_opt=-lXext
14370 if test "x$have_xprelibs" = xyes; then
14371 lib_xprelibs_opt='-lSM -lICE'
14375 if test "x$have_xaw" = x3d; then
14377 cat >>confdefs.h <<\_ACEOF
14381 lib_xaw_opt=-lXaw3d
14385 INTERFACE_SRCS="$INTERFACE_SRCS xaw_c.c xaw_i.c"
14389 dynamic_targets="$dynamic_targets interface_a.\$(so)"
14390 if test "x$have_xext" = xyes; then
14391 a_so_libs="-lXext -lX11"
14397 a_so_libs="$a_so_libs -lcc_dynamic"
14400 if test "x$have_xprelibs" = xyes; then
14401 a_so_libs="-lSM -lICE $a_so_libs"
14403 if test "x$have_xaw" = xyes; then
14404 a_so_libs="-lXaw -lXmu -lXt $a_so_libs"
14405 elif test "x$have_xaw" = x3d; then
14407 cat >>confdefs.h <<\_ACEOF
14411 a_so_libs="-lXaw3d -lXmu -lXt $a_so_libs"
14413 a_so_libs="$ldflags_x_opt $a_so_libs"
14424 if test "x$enable_xaw" = "xdynamic"; then
14425 ENABLE_DYNAMIC_XAW_TRUE=
14426 ENABLE_DYNAMIC_XAW_FALSE='#'
14428 ENABLE_DYNAMIC_XAW_TRUE='#'
14429 ENABLE_DYNAMIC_XAW_FALSE=
14437 ENABLE_XSKIN_FALSE='#'
14439 ENABLE_XSKIN_TRUE='#'
14440 ENABLE_XSKIN_FALSE=
14443 # Check whether --enable-xskin or --disable-xskin was given.
14444 if test "${enable_xskin+set}" = set; then
14445 enableval="$enable_xskin"
14446 case "x$enable_xskin" in xyes|xdynamic) if test "x$with_x" != xyes; then
14447 { { echo "$as_me:$LINENO: error: xskin: --with-x option must be specified" >&5
14448 echo "$as_me: error: xskin: --with-x option must be specified" >&2;}
14449 { (exit 1); exit 1; }; }
14453 case "x$enable_xskin" in
14455 cat >> confdefs.h <<EOF
14463 ENABLE_XSKIN_FALSE='#'
14465 ENABLE_XSKIN_TRUE='#'
14466 ENABLE_XSKIN_FALSE=
14469 INTERFACE_SRCS="$INTERFACE_SRCS xskin_c.c xskin_i.c xskin_loadBMP.c xskin_spectrum.c"
14472 dynamic_targets="$dynamic_targets interface_i.\$(so)"
14473 i_so_libs="$ldflags_x_opt -lX11"
14486 ENABLE_GTK_FALSE='#'
14488 ENABLE_GTK_TRUE='#'
14492 # Check whether --enable-gtk or --disable-gtk was given.
14493 if test "${enable_gtk+set}" = set; then
14494 enableval="$enable_gtk"
14495 case "x$enable_gtk" in xyes|xdynamic)
14496 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
14497 if test "${with_gtk_prefix+set}" = set; then
14498 withval="$with_gtk_prefix"
14499 gtk_config_prefix="$withval"
14501 gtk_config_prefix=""
14504 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
14505 if test "${with_gtk_exec_prefix+set}" = set; then
14506 withval="$with_gtk_exec_prefix"
14507 gtk_config_exec_prefix="$withval"
14509 gtk_config_exec_prefix=""
14511 # Check whether --enable-gtktest or --disable-gtktest was given.
14512 if test "${enable_gtktest+set}" = set; then
14513 enableval="$enable_gtktest"
14523 gtk_config_args="$gtk_config_args gthread"
14528 if test x$gtk_config_exec_prefix != x ; then
14529 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
14530 if test x${GTK_CONFIG+set} != xset ; then
14531 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
14534 if test x$gtk_config_prefix != x ; then
14535 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
14536 if test x${GTK_CONFIG+set} != xset ; then
14537 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
14541 # Extract the first word of "gtk-config", so it can be a program name with args.
14542 set dummy gtk-config; ac_word=$2
14543 echo "$as_me:$LINENO: checking for $ac_word" >&5
14544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14545 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
14546 echo $ECHO_N "(cached) $ECHO_C" >&6
14548 case $GTK_CONFIG in
14550 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
14553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14554 for as_dir in $PATH
14557 test -z "$as_dir" && as_dir=.
14558 for ac_exec_ext in '' $ac_executable_extensions; do
14559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14560 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14567 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
14571 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
14573 if test -n "$GTK_CONFIG"; then
14574 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
14575 echo "${ECHO_T}$GTK_CONFIG" >&6
14577 echo "$as_me:$LINENO: result: no" >&5
14578 echo "${ECHO_T}no" >&6
14581 min_gtk_version=1.1.3
14582 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
14583 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
14585 if test "$GTK_CONFIG" = "no" ; then
14588 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
14589 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
14590 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
14591 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14592 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
14593 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14594 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
14595 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14596 if test "x$enable_gtktest" = "xyes" ; then
14597 ac_save_CFLAGS="$CFLAGS"
14598 ac_save_LIBS="$LIBS"
14599 CFLAGS="$CFLAGS $GTK_CFLAGS"
14600 LIBS="$GTK_LIBS $LIBS"
14602 if test "$cross_compiling" = yes; then
14603 echo $ac_n "cross compiling; assumed OK... $ac_c"
14605 cat >conftest.$ac_ext <<_ACEOF
14606 #line $LINENO "configure"
14609 cat confdefs.h >>conftest.$ac_ext
14610 cat >>conftest.$ac_ext <<_ACEOF
14611 /* end confdefs.h. */
14613 #include <gtk/gtk.h>
14615 #include <stdlib.h>
14620 int major, minor, micro;
14623 system ("touch conf.gtktest");
14625 /* HP/UX 9 (%@#!) writes to sscanf strings */
14626 tmp_version = g_strdup("$min_gtk_version");
14627 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
14628 printf("%s, bad version string\n", "$min_gtk_version");
14632 if ((gtk_major_version != $gtk_config_major_version) ||
14633 (gtk_minor_version != $gtk_config_minor_version) ||
14634 (gtk_micro_version != $gtk_config_micro_version))
14636 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
14637 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
14638 gtk_major_version, gtk_minor_version, gtk_micro_version);
14639 printf ("*** was found! If gtk-config was correct, then it is best\n");
14640 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
14641 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
14642 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
14643 printf("*** required on your system.\n");
14644 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
14645 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
14646 printf("*** before re-running configure\n");
14648 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
14649 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
14650 (gtk_minor_version != GTK_MINOR_VERSION) ||
14651 (gtk_micro_version != GTK_MICRO_VERSION))
14653 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
14654 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
14655 printf("*** library (version %d.%d.%d)\n",
14656 gtk_major_version, gtk_minor_version, gtk_micro_version);
14658 #endif /* defined (GTK_MAJOR_VERSION) ... */
14661 if ((gtk_major_version > major) ||
14662 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
14663 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
14669 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
14670 gtk_major_version, gtk_minor_version, gtk_micro_version);
14671 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
14672 major, minor, micro);
14673 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
14675 printf("*** If you have already installed a sufficiently new version, this error\n");
14676 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
14677 printf("*** being found. The easiest way to fix this is to remove the old version\n");
14678 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
14679 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
14680 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
14681 printf("*** so that the correct libraries are found at run-time))\n");
14688 rm -f conftest$ac_exeext
14689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14690 (eval $ac_link) 2>&5
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14695 (eval $ac_try) 2>&5
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); }; }; then
14701 echo "$as_me: program exited with status $ac_status" >&5
14702 echo "$as_me: failed program was:" >&5
14703 sed 's/^/| /' conftest.$ac_ext >&5
14705 ( exit $ac_status )
14708 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14710 CFLAGS="$ac_save_CFLAGS"
14711 LIBS="$ac_save_LIBS"
14714 if test "x$no_gtk" = x ; then
14715 echo "$as_me:$LINENO: result: yes" >&5
14716 echo "${ECHO_T}yes" >&6
14719 echo "$as_me:$LINENO: result: no" >&5
14720 echo "${ECHO_T}no" >&6
14721 if test "$GTK_CONFIG" = "no" ; then
14722 echo "*** The gtk-config script installed by GTK could not be found"
14723 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
14724 echo "*** your path, or set the GTK_CONFIG environment variable to the"
14725 echo "*** full path to gtk-config."
14727 if test -f conf.gtktest ; then
14730 echo "*** Could not run GTK test program, checking why..."
14731 CFLAGS="$CFLAGS $GTK_CFLAGS"
14732 LIBS="$LIBS $GTK_LIBS"
14733 cat >conftest.$ac_ext <<_ACEOF
14734 #line $LINENO "configure"
14737 cat confdefs.h >>conftest.$ac_ext
14738 cat >>conftest.$ac_ext <<_ACEOF
14739 /* end confdefs.h. */
14741 #include <gtk/gtk.h>
14747 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
14752 rm -f conftest.$ac_objext conftest$ac_exeext
14753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14754 (eval $ac_link) 2>&5
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); } &&
14758 { ac_try='test -s conftest$ac_exeext'
14759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14764 echo "*** The test program compiled, but did not run. This usually means"
14765 echo "*** that the run-time linker is not finding GTK or finding the wrong"
14766 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
14767 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14768 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14769 echo "*** is required on your system"
14771 echo "*** If you have an old version installed, it is best to remove it, although"
14772 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14774 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
14775 echo "*** came with the system with the command"
14777 echo "*** rpm --erase --nodeps gtk gtk-devel"
14779 echo "$as_me: failed program was:" >&5
14780 sed 's/^/| /' conftest.$ac_ext >&5
14782 echo "*** The test program failed to compile or link. See the file config.log for the"
14783 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
14784 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
14785 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
14787 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14788 CFLAGS="$ac_save_CFLAGS"
14789 LIBS="$ac_save_LIBS"
14801 case "x$enable_gtk" in
14803 cat >> confdefs.h <<EOF
14811 ENABLE_GTK_FALSE='#'
14813 ENABLE_GTK_TRUE='#'
14817 LIBS="$LIBS $GTK_LIBS"
14818 for f in $GTK_CFLAGS; do
14820 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
14821 *) CFLAGS="$CPPFLAGS $f" ;;
14825 INTERFACE_SRCS="$INTERFACE_SRCS gtk_c.c gtk_i.c gtk_p.c"
14829 dynamic_targets="$dynamic_targets interface_g.\$(so)"
14830 if test "x$GCC" = xyes; then
14831 for i in $GTK_LIBS; do
14834 *) g_so_libs="$g_so_libs $i" ;;
14838 g_so_libs="$GTK_LIBS"
14840 for f in $GTK_CFLAGS; do
14842 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
14843 *) CFLAGS="$CPPFLAGS $f" ;;
14858 ENABLE_SERVER_TRUE=
14859 ENABLE_SERVER_FALSE='#'
14861 ENABLE_SERVER_TRUE='#'
14862 ENABLE_SERVER_FALSE=
14865 # Check whether --enable-server or --disable-server was given.
14866 if test "${enable_server+set}" = set; then
14867 enableval="$enable_server"
14868 case "x$enable_server" in xyes|xdynamic) ;; esac
14870 case "x$enable_server" in
14872 cat >> confdefs.h <<EOF
14873 #define IA_SERVER 1
14879 ENABLE_SERVER_TRUE=
14880 ENABLE_SERVER_FALSE='#'
14882 ENABLE_SERVER_TRUE='#'
14883 ENABLE_SERVER_FALSE=
14886 INTERFACE_SRCS="$INTERFACE_SRCS server_c.c"
14888 for ac_header in sys/soundcard.h
14890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14892 echo "$as_me:$LINENO: checking for $ac_header" >&5
14893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14895 echo $ECHO_N "(cached) $ECHO_C" >&6
14897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14900 # Is the header compilable?
14901 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14902 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14903 cat >conftest.$ac_ext <<_ACEOF
14904 #line $LINENO "configure"
14907 cat confdefs.h >>conftest.$ac_ext
14908 cat >>conftest.$ac_ext <<_ACEOF
14909 /* end confdefs.h. */
14910 $ac_includes_default
14911 #include <$ac_header>
14913 rm -f conftest.$ac_objext
14914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14915 (eval $ac_compile) 2>&5
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); } &&
14919 { ac_try='test -s conftest.$ac_objext'
14920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14921 (eval $ac_try) 2>&5
14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924 (exit $ac_status); }; }; then
14925 ac_header_compiler=yes
14927 echo "$as_me: failed program was:" >&5
14928 sed 's/^/| /' conftest.$ac_ext >&5
14930 ac_header_compiler=no
14932 rm -f conftest.$ac_objext conftest.$ac_ext
14933 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14934 echo "${ECHO_T}$ac_header_compiler" >&6
14936 # Is the header present?
14937 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14938 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14939 cat >conftest.$ac_ext <<_ACEOF
14940 #line $LINENO "configure"
14943 cat confdefs.h >>conftest.$ac_ext
14944 cat >>conftest.$ac_ext <<_ACEOF
14945 /* end confdefs.h. */
14946 #include <$ac_header>
14948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14951 grep -v '^ *+' conftest.er1 >conftest.err
14953 cat conftest.err >&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); } >/dev/null; then
14956 if test -s conftest.err; then
14957 ac_cpp_err=$ac_c_preproc_warn_flag
14964 if test -z "$ac_cpp_err"; then
14965 ac_header_preproc=yes
14967 echo "$as_me: failed program was:" >&5
14968 sed 's/^/| /' conftest.$ac_ext >&5
14970 ac_header_preproc=no
14972 rm -f conftest.err conftest.$ac_ext
14973 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14974 echo "${ECHO_T}$ac_header_preproc" >&6
14976 # So? What about this header?
14977 case $ac_header_compiler:$ac_header_preproc in
14979 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14980 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14982 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14985 ## ------------------------------------ ##
14986 ## Report this to bug-autoconf@gnu.org. ##
14987 ## ------------------------------------ ##
14990 sed "s/^/$as_me: WARNING: /" >&2
14993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14996 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15001 ## ------------------------------------ ##
15002 ## Report this to bug-autoconf@gnu.org. ##
15003 ## ------------------------------------ ##
15006 sed "s/^/$as_me: WARNING: /" >&2
15009 echo "$as_me:$LINENO: checking for $ac_header" >&5
15010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15012 echo $ECHO_N "(cached) $ECHO_C" >&6
15014 eval "$as_ac_Header=$ac_header_preproc"
15016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15021 cat >>confdefs.h <<_ACEOF
15022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15032 dynamic_targets="$dynamic_targets interface_r.\$(so)"
15045 ENABLE_ALSASEQ_TRUE=
15046 ENABLE_ALSASEQ_FALSE='#'
15048 ENABLE_ALSASEQ_TRUE='#'
15049 ENABLE_ALSASEQ_FALSE=
15052 # Check whether --enable-alsaseq or --disable-alsaseq was given.
15053 if test "${enable_alsaseq+set}" = set; then
15054 enableval="$enable_alsaseq"
15055 case "x$enable_alsaseq" in xyes|xdynamic) ;; esac
15057 case "x$enable_alsaseq" in
15059 cat >> confdefs.h <<EOF
15060 #define IA_ALSASEQ 1
15066 ENABLE_ALSASEQ_TRUE=
15067 ENABLE_ALSASEQ_FALSE='#'
15069 ENABLE_ALSASEQ_TRUE='#'
15070 ENABLE_ALSASEQ_FALSE=
15073 INTERFACE_SRCS="$INTERFACE_SRCS alsaseq_c.c"
15075 for ac_header in sys/asoundlib.h
15077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15079 echo "$as_me:$LINENO: checking for $ac_header" >&5
15080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15082 echo $ECHO_N "(cached) $ECHO_C" >&6
15084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15087 # Is the header compilable?
15088 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15090 cat >conftest.$ac_ext <<_ACEOF
15091 #line $LINENO "configure"
15094 cat confdefs.h >>conftest.$ac_ext
15095 cat >>conftest.$ac_ext <<_ACEOF
15096 /* end confdefs.h. */
15097 $ac_includes_default
15098 #include <$ac_header>
15100 rm -f conftest.$ac_objext
15101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15102 (eval $ac_compile) 2>&5
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); } &&
15106 { ac_try='test -s conftest.$ac_objext'
15107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108 (eval $ac_try) 2>&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); }; }; then
15112 ac_header_compiler=yes
15114 echo "$as_me: failed program was:" >&5
15115 sed 's/^/| /' conftest.$ac_ext >&5
15117 ac_header_compiler=no
15119 rm -f conftest.$ac_objext conftest.$ac_ext
15120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15121 echo "${ECHO_T}$ac_header_compiler" >&6
15123 # Is the header present?
15124 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15126 cat >conftest.$ac_ext <<_ACEOF
15127 #line $LINENO "configure"
15130 cat confdefs.h >>conftest.$ac_ext
15131 cat >>conftest.$ac_ext <<_ACEOF
15132 /* end confdefs.h. */
15133 #include <$ac_header>
15135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15138 grep -v '^ *+' conftest.er1 >conftest.err
15140 cat conftest.err >&5
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); } >/dev/null; then
15143 if test -s conftest.err; then
15144 ac_cpp_err=$ac_c_preproc_warn_flag
15151 if test -z "$ac_cpp_err"; then
15152 ac_header_preproc=yes
15154 echo "$as_me: failed program was:" >&5
15155 sed 's/^/| /' conftest.$ac_ext >&5
15157 ac_header_preproc=no
15159 rm -f conftest.err conftest.$ac_ext
15160 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15161 echo "${ECHO_T}$ac_header_preproc" >&6
15163 # So? What about this header?
15164 case $ac_header_compiler:$ac_header_preproc in
15166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15172 ## ------------------------------------ ##
15173 ## Report this to bug-autoconf@gnu.org. ##
15174 ## ------------------------------------ ##
15177 sed "s/^/$as_me: WARNING: /" >&2
15180 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15182 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15183 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15188 ## ------------------------------------ ##
15189 ## Report this to bug-autoconf@gnu.org. ##
15190 ## ------------------------------------ ##
15193 sed "s/^/$as_me: WARNING: /" >&2
15196 echo "$as_me:$LINENO: checking for $ac_header" >&5
15197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15199 echo $ECHO_N "(cached) $ECHO_C" >&6
15201 eval "$as_ac_Header=$ac_header_preproc"
15203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15208 cat >>confdefs.h <<_ACEOF
15209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15219 dynamic_targets="$dynamic_targets interface_A.\$(so)"
15232 ENABLE_WINSYN_TRUE=
15233 ENABLE_WINSYN_FALSE='#'
15235 ENABLE_WINSYN_TRUE='#'
15236 ENABLE_WINSYN_FALSE=
15239 # Check whether --enable-winsyn or --disable-winsyn was given.
15240 if test "${enable_winsyn+set}" = set; then
15241 enableval="$enable_winsyn"
15242 case "x$enable_winsyn" in xyes|xdynamic) ;; esac
15244 case "x$enable_winsyn" in
15246 cat >> confdefs.h <<EOF
15247 #define IA_WINSYN 1
15253 ENABLE_WINSYN_TRUE=
15254 ENABLE_WINSYN_FALSE='#'
15256 ENABLE_WINSYN_TRUE='#'
15257 ENABLE_WINSYN_FALSE=
15260 INTERFACE_SRCS="$INTERFACE_SRCS winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
15263 dynamic_targets="$dynamic_targets interface_W.\$(so)"
15276 ENABLE_PORTMIDISYN_TRUE=
15277 ENABLE_PORTMIDISYN_FALSE='#'
15279 ENABLE_PORTMIDISYN_TRUE='#'
15280 ENABLE_PORTMIDISYN_FALSE=
15283 # Check whether --enable-portmidisyn or --disable-portmidisyn was given.
15284 if test "${enable_portmidisyn+set}" = set; then
15285 enableval="$enable_portmidisyn"
15286 case "x$enable_portmidisyn" in xyes|xdynamic) ;; esac
15288 case "x$enable_portmidisyn" in
15290 cat >> confdefs.h <<EOF
15291 #define IA_PORTMIDISYN 1
15297 ENABLE_PORTMIDISYN_TRUE=
15298 ENABLE_PORTMIDISYN_FALSE='#'
15300 ENABLE_PORTMIDISYN_TRUE='#'
15301 ENABLE_PORTMIDISYN_FALSE=
15304 INTERFACE_SRCS="$INTERFACE_SRCS portmidisyn_c.c rtsyn_common.c rtsyn_portmidi.c"
15307 dynamic_targets="$dynamic_targets interface_P.\$(so)"
15320 ENABLE_W32G_SYN_TRUE=
15321 ENABLE_W32G_SYN_FALSE='#'
15323 ENABLE_W32G_SYN_TRUE='#'
15324 ENABLE_W32G_SYN_FALSE=
15327 # Check whether --enable-winsyng or --disable-winsyng was given.
15328 if test "${enable_winsyng+set}" = set; then
15329 enableval="$enable_winsyng"
15330 case "x$enable_winsyng" in xyes|xdynamic) ;; esac
15332 case "x$enable_winsyng" in
15334 cat >> confdefs.h <<EOF
15335 #define IA_W32G_SYN 1
15341 ENABLE_W32G_SYN_TRUE=
15342 ENABLE_W32G_SYN_FALSE='#'
15344 ENABLE_W32G_SYN_TRUE='#'
15345 ENABLE_W32G_SYN_FALSE=
15348 lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
15349 lib_user32_opt='-luser32'
15350 LDFLAGS="-mwindows $LDFLAGS"
15351 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"
15355 dynamic_targets="$dynamic_targets interface_W.\$(so)"
15369 ENABLE_W32GUI_TRUE=
15370 ENABLE_W32GUI_FALSE='#'
15372 ENABLE_W32GUI_TRUE='#'
15373 ENABLE_W32GUI_FALSE=
15376 # Check whether --enable-w32gui or --disable-w32gui was given.
15377 if test "${enable_w32gui+set}" = set; then
15378 enableval="$enable_w32gui"
15379 case "x$enable_w32gui" in xyes|xdynamic) ;; esac
15381 case "x$enable_w32gui" in
15383 cat >> confdefs.h <<EOF
15384 #define IA_W32GUI 1
15390 ENABLE_W32GUI_TRUE=
15391 ENABLE_W32GUI_FALSE='#'
15393 ENABLE_W32GUI_TRUE='#'
15394 ENABLE_W32GUI_FALSE=
15397 lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
15398 lib_user32_opt='-luser32'
15399 LDFLAGS="-mwindows $LDFLAGS"
15400 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"
15404 dynamic_targets="$dynamic_targets interface_w.\$(so)"
15417 ENABLE_PLUGIN_TRUE=
15418 ENABLE_PLUGIN_FALSE='#'
15420 ENABLE_PLUGIN_TRUE='#'
15421 ENABLE_PLUGIN_FALSE=
15424 # Check whether --enable-ump or --disable-ump was given.
15425 if test "${enable_ump+set}" = set; then
15426 enableval="$enable_ump"
15427 case "x$enable_ump" in xyes|xdynamic) if test ! -d ump; then
15428 { { echo "$as_me:$LINENO: error: UMP Package is not exists. Can't configure it." >&5
15429 echo "$as_me: error: UMP Package is not exists. Can't configure it." >&2;}
15430 { (exit 1); exit 1; }; }
15432 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
15433 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
15434 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
15435 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
15436 echo $ECHO_N "(cached) $ECHO_C" >&6
15438 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
15439 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
15441 # Is the header compilable?
15442 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
15443 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
15444 cat >conftest.$ac_ext <<_ACEOF
15445 #line $LINENO "configure"
15448 cat confdefs.h >>conftest.$ac_ext
15449 cat >>conftest.$ac_ext <<_ACEOF
15450 /* end confdefs.h. */
15451 $ac_includes_default
15452 #include <X11/xpm.h>
15454 rm -f conftest.$ac_objext
15455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15456 (eval $ac_compile) 2>&5
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); } &&
15460 { ac_try='test -s conftest.$ac_objext'
15461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462 (eval $ac_try) 2>&5
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); }; }; then
15466 ac_header_compiler=yes
15468 echo "$as_me: failed program was:" >&5
15469 sed 's/^/| /' conftest.$ac_ext >&5
15471 ac_header_compiler=no
15473 rm -f conftest.$ac_objext conftest.$ac_ext
15474 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15475 echo "${ECHO_T}$ac_header_compiler" >&6
15477 # Is the header present?
15478 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
15479 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
15480 cat >conftest.$ac_ext <<_ACEOF
15481 #line $LINENO "configure"
15484 cat confdefs.h >>conftest.$ac_ext
15485 cat >>conftest.$ac_ext <<_ACEOF
15486 /* end confdefs.h. */
15487 #include <X11/xpm.h>
15489 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15492 grep -v '^ *+' conftest.er1 >conftest.err
15494 cat conftest.err >&5
15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); } >/dev/null; then
15497 if test -s conftest.err; then
15498 ac_cpp_err=$ac_c_preproc_warn_flag
15505 if test -z "$ac_cpp_err"; then
15506 ac_header_preproc=yes
15508 echo "$as_me: failed program was:" >&5
15509 sed 's/^/| /' conftest.$ac_ext >&5
15511 ac_header_preproc=no
15513 rm -f conftest.err conftest.$ac_ext
15514 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15515 echo "${ECHO_T}$ac_header_preproc" >&6
15517 # So? What about this header?
15518 case $ac_header_compiler:$ac_header_preproc in
15520 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15521 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15522 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
15523 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
15526 ## ------------------------------------ ##
15527 ## Report this to bug-autoconf@gnu.org. ##
15528 ## ------------------------------------ ##
15531 sed "s/^/$as_me: WARNING: /" >&2
15534 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
15535 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
15536 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
15537 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
15538 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
15539 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
15542 ## ------------------------------------ ##
15543 ## Report this to bug-autoconf@gnu.org. ##
15544 ## ------------------------------------ ##
15547 sed "s/^/$as_me: WARNING: /" >&2
15550 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
15551 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
15552 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
15553 echo $ECHO_N "(cached) $ECHO_C" >&6
15555 ac_cv_header_X11_xpm_h=$ac_header_preproc
15557 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
15558 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
15561 if test $ac_cv_header_X11_xpm_h = yes; then
15564 { { echo "$as_me:$LINENO: error: UMP Package needs xpm.h, but could not find it." >&5
15565 echo "$as_me: error: UMP Package needs xpm.h, but could not find it." >&2;}
15566 { (exit 1); exit 1; }; }
15570 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
15571 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
15572 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
15573 echo $ECHO_N "(cached) $ECHO_C" >&6
15575 ac_check_lib_save_LIBS=$LIBS
15577 cat >conftest.$ac_ext <<_ACEOF
15578 #line $LINENO "configure"
15581 cat confdefs.h >>conftest.$ac_ext
15582 cat >>conftest.$ac_ext <<_ACEOF
15583 /* end confdefs.h. */
15585 /* Override any gcc2 internal prototype to avoid an error. */
15589 /* We use char because int might match the return type of a gcc2
15590 builtin and then its argument prototype would still apply. */
15591 char XpmCreatePixmapFromData ();
15595 XpmCreatePixmapFromData ();
15600 rm -f conftest.$ac_objext conftest$ac_exeext
15601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15602 (eval $ac_link) 2>&5
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); } &&
15606 { ac_try='test -s conftest$ac_exeext'
15607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15608 (eval $ac_try) 2>&5
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); }; }; then
15612 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
15614 echo "$as_me: failed program was:" >&5
15615 sed 's/^/| /' conftest.$ac_ext >&5
15617 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
15619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15620 LIBS=$ac_check_lib_save_LIBS
15622 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
15623 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
15624 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
15627 { { echo "$as_me:$LINENO: error: UMP Package needs libXpm.a, but could not find it." >&5
15628 echo "$as_me: error: UMP Package needs libXpm.a, but could not find it." >&2;}
15629 { (exit 1); exit 1; }; }
15632 if test "x$have_xext" = xyes; then
15633 lib_xext_opt=-lXext
15635 if test "x$have_xprelibs" = xyes; then
15636 lib_xprelibs_opt='-lSM -lICE'
15642 case "x$enable_ump" in
15644 cat >> confdefs.h <<EOF
15645 #define IA_PLUGIN 1
15651 ENABLE_PLUGIN_TRUE=
15652 ENABLE_PLUGIN_FALSE='#'
15654 ENABLE_PLUGIN_TRUE='#'
15655 ENABLE_PLUGIN_FALSE=
15661 dynamic_targets="$dynamic_targets interface_p.\$(so)"
15672 # Check whether --enable-offix or --disable-offix was given.
15673 if test "${enable_offix+set}" = set; then
15674 enableval="$enable_offix"
15675 if test "$enableval" = "yes"; then
15676 KEEPCPPFLAGS=$CPPFLAGS
15678 KEEPLDFLAGS=$LDFLAGS
15679 CPPFLAGS="$CPPFLAGS $offix_include_dir"
15680 LDFLAGS="$LDFLAGS $offix_lib_dir"
15681 LIBS="$LIBS $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11"
15682 echo "$as_me:$LINENO: checking for DndInitialize in -lDnd" >&5
15683 echo $ECHO_N "checking for DndInitialize in -lDnd... $ECHO_C" >&6
15684 if test "${ac_cv_lib_Dnd_DndInitialize+set}" = set; then
15685 echo $ECHO_N "(cached) $ECHO_C" >&6
15687 ac_check_lib_save_LIBS=$LIBS
15689 cat >conftest.$ac_ext <<_ACEOF
15690 #line $LINENO "configure"
15693 cat confdefs.h >>conftest.$ac_ext
15694 cat >>conftest.$ac_ext <<_ACEOF
15695 /* end confdefs.h. */
15697 /* Override any gcc2 internal prototype to avoid an error. */
15701 /* We use char because int might match the return type of a gcc2
15702 builtin and then its argument prototype would still apply. */
15703 char DndInitialize ();
15712 rm -f conftest.$ac_objext conftest$ac_exeext
15713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15714 (eval $ac_link) 2>&5
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); } &&
15718 { ac_try='test -s conftest$ac_exeext'
15719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15720 (eval $ac_try) 2>&5
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); }; }; then
15724 ac_cv_lib_Dnd_DndInitialize=yes
15726 echo "$as_me: failed program was:" >&5
15727 sed 's/^/| /' conftest.$ac_ext >&5
15729 ac_cv_lib_Dnd_DndInitialize=no
15731 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15732 LIBS=$ac_check_lib_save_LIBS
15734 echo "$as_me:$LINENO: result: $ac_cv_lib_Dnd_DndInitialize" >&5
15735 echo "${ECHO_T}$ac_cv_lib_Dnd_DndInitialize" >&6
15736 if test $ac_cv_lib_Dnd_DndInitialize = yes; then
15739 lib_offix_opt="-lDnd"
15741 cat >>confdefs.h <<\_ACEOF
15747 LDFLAGS=$KEEPLDFLAGS
15748 CPPFLAGS=$KEEPCPPFLAGS
15757 # Check whether --enable-network or --disable-network was given.
15758 if test "${enable_network+set}" = set; then
15759 enableval="$enable_network"
15760 if test "$enableval" = "yes"; then
15762 cat >>confdefs.h <<\_ACEOF
15763 #define SUPPORT_SOCKET 1
15770 if test "x$enable_network" = "xyes"; then
15771 ENABLE_NETWORK_TRUE=
15772 ENABLE_NETWORK_FALSE='#'
15774 ENABLE_NETWORK_TRUE='#'
15775 ENABLE_NETWORK_FALSE=
15779 # Check whether --enable-spectrogram or --disable-spectrogram was given.
15780 if test "${enable_spectrogram+set}" = set; then
15781 enableval="$enable_spectrogram"
15782 if test "$enableval" = "yes"; then
15783 if test "x$with_x" != xyes; then
15784 { { echo "$as_me:$LINENO: error: spectrogram: --with-x option must be specified" >&5
15785 echo "$as_me: error: spectrogram: --with-x option must be specified" >&2;}
15786 { (exit 1); exit 1; }; }
15789 cat >>confdefs.h <<\_ACEOF
15790 #define SUPPORT_SOUNDSPEC 1
15797 if test "x$enable_spectrogram" = "xyes"; then
15798 ENABLE_SOUND_SPEC_TRUE=
15799 ENABLE_SOUND_SPEC_FALSE='#'
15801 ENABLE_SOUND_SPEC_TRUE='#'
15802 ENABLE_SOUND_SPEC_FALSE=
15806 # Check whether --enable-spline or --disable-spline was given.
15807 if test "${enable_spline+set}" = set; then
15808 enableval="$enable_spline"
15809 case "x$enableval" in
15812 cat >>confdefs.h <<\_ACEOF
15813 #define LINEAR_INTERPOLATION 1
15819 cat >>confdefs.h <<\_ACEOF
15820 #define CSPLINE_INTERPOLATION 1
15826 cat >>confdefs.h <<\_ACEOF
15827 #define LAGRANGE_INTERPOLATION 1
15833 cat >>confdefs.h <<\_ACEOF
15834 #define NEWTON_INTERPOLATION 1
15840 cat >>confdefs.h <<\_ACEOF
15841 #define GAUSS_INTERPOLATION 1
15847 cat >>confdefs.h <<\_ACEOF
15848 #define NO_INTERPOLATION 1
15853 { { echo "$as_me:$LINENO: error: Invalid method of --enable-spline" >&5
15854 echo "$as_me: error: Invalid method of --enable-spline" >&2;}
15855 { (exit 1); exit 1; }; }
15860 # Check whether --enable-wrd or --disable-wrd was given.
15861 if test "${enable_wrd+set}" = set; then
15862 enableval="$enable_wrd"
15863 if test "$enableval" = "yes"; then
15864 if test "x$with_x" != xyes; then
15865 { { echo "$as_me:$LINENO: error: wrd: --with-x option must be specified" >&5
15866 echo "$as_me: error: wrd: --with-x option must be specified" >&2;}
15867 { (exit 1); exit 1; }; }
15870 cat >>confdefs.h <<\_ACEOF
15874 enable_sherry_wrd=yes
15875 echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
15876 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
15877 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
15878 echo $ECHO_N "(cached) $ECHO_C" >&6
15880 ac_check_lib_save_LIBS=$LIBS
15882 cat >conftest.$ac_ext <<_ACEOF
15883 #line $LINENO "configure"
15886 cat confdefs.h >>conftest.$ac_ext
15887 cat >>conftest.$ac_ext <<_ACEOF
15888 /* end confdefs.h. */
15890 /* Override any gcc2 internal prototype to avoid an error. */
15894 /* We use char because int might match the return type of a gcc2
15895 builtin and then its argument prototype would still apply. */
15896 char zlibVersion ();
15905 rm -f conftest.$ac_objext conftest$ac_exeext
15906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15907 (eval $ac_link) 2>&5
15909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); } &&
15911 { ac_try='test -s conftest$ac_exeext'
15912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15913 (eval $ac_try) 2>&5
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); }; }; then
15917 ac_cv_lib_z_zlibVersion=yes
15919 echo "$as_me: failed program was:" >&5
15920 sed 's/^/| /' conftest.$ac_ext >&5
15922 ac_cv_lib_z_zlibVersion=no
15924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15925 LIBS=$ac_check_lib_save_LIBS
15927 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
15928 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
15929 if test $ac_cv_lib_z_zlibVersion = yes; then
15932 enable_sherry_wrd=no
15935 if test "${ac_cv_header_png_h+set}" = set; then
15936 echo "$as_me:$LINENO: checking for png.h" >&5
15937 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
15938 if test "${ac_cv_header_png_h+set}" = set; then
15939 echo $ECHO_N "(cached) $ECHO_C" >&6
15941 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
15942 echo "${ECHO_T}$ac_cv_header_png_h" >&6
15944 # Is the header compilable?
15945 echo "$as_me:$LINENO: checking png.h usability" >&5
15946 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
15947 cat >conftest.$ac_ext <<_ACEOF
15948 #line $LINENO "configure"
15951 cat confdefs.h >>conftest.$ac_ext
15952 cat >>conftest.$ac_ext <<_ACEOF
15953 /* end confdefs.h. */
15954 $ac_includes_default
15957 rm -f conftest.$ac_objext
15958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15959 (eval $ac_compile) 2>&5
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); } &&
15963 { ac_try='test -s conftest.$ac_objext'
15964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15965 (eval $ac_try) 2>&5
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); }; }; then
15969 ac_header_compiler=yes
15971 echo "$as_me: failed program was:" >&5
15972 sed 's/^/| /' conftest.$ac_ext >&5
15974 ac_header_compiler=no
15976 rm -f conftest.$ac_objext conftest.$ac_ext
15977 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15978 echo "${ECHO_T}$ac_header_compiler" >&6
15980 # Is the header present?
15981 echo "$as_me:$LINENO: checking png.h presence" >&5
15982 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
15983 cat >conftest.$ac_ext <<_ACEOF
15984 #line $LINENO "configure"
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h. */
15992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15995 grep -v '^ *+' conftest.er1 >conftest.err
15997 cat conftest.err >&5
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); } >/dev/null; then
16000 if test -s conftest.err; then
16001 ac_cpp_err=$ac_c_preproc_warn_flag
16008 if test -z "$ac_cpp_err"; then
16009 ac_header_preproc=yes
16011 echo "$as_me: failed program was:" >&5
16012 sed 's/^/| /' conftest.$ac_ext >&5
16014 ac_header_preproc=no
16016 rm -f conftest.err conftest.$ac_ext
16017 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16018 echo "${ECHO_T}$ac_header_preproc" >&6
16020 # So? What about this header?
16021 case $ac_header_compiler:$ac_header_preproc in
16023 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
16024 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16025 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
16026 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
16029 ## ------------------------------------ ##
16030 ## Report this to bug-autoconf@gnu.org. ##
16031 ## ------------------------------------ ##
16034 sed "s/^/$as_me: WARNING: /" >&2
16037 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
16038 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
16039 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
16040 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
16041 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
16042 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
16045 ## ------------------------------------ ##
16046 ## Report this to bug-autoconf@gnu.org. ##
16047 ## ------------------------------------ ##
16050 sed "s/^/$as_me: WARNING: /" >&2
16053 echo "$as_me:$LINENO: checking for png.h" >&5
16054 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
16055 if test "${ac_cv_header_png_h+set}" = set; then
16056 echo $ECHO_N "(cached) $ECHO_C" >&6
16058 ac_cv_header_png_h=$ac_header_preproc
16060 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
16061 echo "${ECHO_T}$ac_cv_header_png_h" >&6
16064 if test $ac_cv_header_png_h = yes; then
16067 enable_sherry_wrd=no
16071 echo "$as_me:$LINENO: checking for png_init_io in -lpng" >&5
16072 echo $ECHO_N "checking for png_init_io in -lpng... $ECHO_C" >&6
16073 if test "${ac_cv_lib_png_png_init_io+set}" = set; then
16074 echo $ECHO_N "(cached) $ECHO_C" >&6
16076 ac_check_lib_save_LIBS=$LIBS
16077 LIBS="-lpng -lz $LIBS"
16078 cat >conftest.$ac_ext <<_ACEOF
16079 #line $LINENO "configure"
16082 cat confdefs.h >>conftest.$ac_ext
16083 cat >>conftest.$ac_ext <<_ACEOF
16084 /* end confdefs.h. */
16086 /* Override any gcc2 internal prototype to avoid an error. */
16090 /* We use char because int might match the return type of a gcc2
16091 builtin and then its argument prototype would still apply. */
16092 char png_init_io ();
16101 rm -f conftest.$ac_objext conftest$ac_exeext
16102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16103 (eval $ac_link) 2>&5
16105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); } &&
16107 { ac_try='test -s conftest$ac_exeext'
16108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16109 (eval $ac_try) 2>&5
16111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); }; }; then
16113 ac_cv_lib_png_png_init_io=yes
16115 echo "$as_me: failed program was:" >&5
16116 sed 's/^/| /' conftest.$ac_ext >&5
16118 ac_cv_lib_png_png_init_io=no
16120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16121 LIBS=$ac_check_lib_save_LIBS
16123 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_init_io" >&5
16124 echo "${ECHO_T}$ac_cv_lib_png_png_init_io" >&6
16125 if test $ac_cv_lib_png_png_init_io = yes; then
16128 enable_sherry_wrd=no
16131 if test "$enable_sherry_wrd" = yes; then
16133 cat >>confdefs.h <<\_ACEOF
16134 #define ENABLE_SHERRY 1
16140 { echo "$as_me:$LINENO: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&5
16141 echo "$as_me: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&2;}
16143 if test "x$have_xext" = xyes; then
16144 lib_xext_opt=-lXext
16157 if test "x$enable_wrd" = "xyes"; then
16159 ENABLE_WRD_FALSE='#'
16161 ENABLE_WRD_TRUE='#'
16168 if test "x$CYGNUS" = xyes; then
16178 if test "x$MINGW" = xyes; then
16188 if test "x$W32READDIR" = "xyes"; then
16190 W32READDIR_FALSE='#'
16192 W32READDIR_TRUE='#'
16197 rm -f wordtmp >/dev/null 2>&1
16199 for f in $LDFLAGS; do
16200 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
16203 echo $f >>wordtmp; val="$val $f"
16208 rm -f wordtmp >/dev/null 2>&1
16210 rm -f wordtmp >/dev/null 2>&1
16212 for f in $SHLDFLAGS; do
16213 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
16216 echo $f >>wordtmp; val="$val $f"
16221 rm -f wordtmp >/dev/null 2>&1
16223 rm -f wordtmp >/dev/null 2>&1
16225 for f in $EXTRACFLAGS $CFLAGS; do
16226 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
16229 echo $f >>wordtmp; val="$val $f"
16234 rm -f wordtmp >/dev/null 2>&1
16236 rm -f wordtmp >/dev/null 2>&1
16238 for f in $CPPFLAGS $EXTRADEFS; do
16239 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
16242 echo $f >>wordtmp; val="$val $f"
16247 rm -f wordtmp >/dev/null 2>&1
16250 if test "x$oss_device" != x; then
16252 cat >>confdefs.h <<_ACEOF
16253 #define OSS_DEVICE "$oss_device"
16258 if test "x$TIMIDITY_OUTPUT_ID" != x; then
16260 cat >>confdefs.h <<_ACEOF
16261 #define TIMIDITY_OUTPUT_ID "$TIMIDITY_OUTPUT_ID"
16266 if test "x$with_x" = xyes; then
16267 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/"`
16269 LIBS="$LIBS $lib_dl_opt $lib_png_opt $lib_zip_opt $lib_user32_opt $lib_w32gui_opt $EXTRALIBS"
16270 SHLD="$SHLD $SHLDFLAGS"
16290 ac_config_files="$ac_config_files Makefile autoconf/Makefile common.makefile configs/Makefile doc/Makefile doc/C/Makefile doc/ja_JP.ujis/Makefile interface/Makefile interface/motif_bitmaps/Makefile interface/bitmaps/Makefile interface/pixmaps/Makefile libarc/Makefile libunimod/Makefile timidity/Makefile utils/Makefile script/Makefile TiMidity.ad TiMidity-uj.ad"
16292 cat >confcache <<\_ACEOF
16293 # This file is a shell script that caches the results of configure
16294 # tests run on this system so they can be shared between configure
16295 # scripts and configure runs, see configure's option --config-cache.
16296 # It is not useful on other systems. If it contains results you don't
16297 # want to keep, you may remove or edit it.
16299 # config.status only pays attention to the cache file if you give it
16300 # the --recheck option to rerun configure.
16302 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16303 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16304 # following values.
16308 # The following way of writing the cache mishandles newlines in values,
16309 # but we know of no workaround that is simple, portable, and efficient.
16310 # So, don't put newlines in cache variables' values.
16311 # Ultrix sh set writes to stderr and can't be redirected directly,
16312 # and sets the high bit in the cache file unless we assign to the vars.
16315 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16317 # `set' does not quote correctly, so add quotes (double-quote
16318 # substitution turns \\\\ into \\, and sed turns \\ into \).
16321 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16324 # `set' quotes correctly as required by POSIX, so do not add quotes.
16326 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16333 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16335 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16337 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16338 if test -w $cache_file; then
16339 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16340 cat confcache >$cache_file
16342 echo "not updating unwritable cache $cache_file"
16347 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16348 # Let make expand exec_prefix.
16349 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16351 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16352 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16353 # trailing colons and then remove the whole line if VPATH becomes empty
16354 # (actually we leave an empty line to preserve line numbers).
16355 if test "x$srcdir" = x.; then
16356 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16357 s/:*\$(srcdir):*/:/;
16358 s/:*\${srcdir}:*/:/;
16360 s/^\([^=]*=[ ]*\):*/\1/;
16366 DEFS=-DHAVE_CONFIG_H
16370 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16371 # 1. Remove the extension, and $U if already installed.
16372 ac_i=`echo "$ac_i" |
16373 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16375 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16376 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16378 LIBOBJS=$ac_libobjs
16380 LTLIBOBJS=$ac_ltlibobjs
16383 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16384 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16385 Usually this means the macro was only invoked conditionally." >&5
16386 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16387 Usually this means the macro was only invoked conditionally." >&2;}
16388 { (exit 1); exit 1; }; }
16390 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16391 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16392 Usually this means the macro was only invoked conditionally." >&5
16393 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16394 Usually this means the macro was only invoked conditionally." >&2;}
16395 { (exit 1); exit 1; }; }
16397 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16398 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16399 Usually this means the macro was only invoked conditionally." >&5
16400 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16401 Usually this means the macro was only invoked conditionally." >&2;}
16402 { (exit 1); exit 1; }; }
16404 if test -z "${NEEDGETOPT_TRUE}" && test -z "${NEEDGETOPT_FALSE}"; then
16405 { { echo "$as_me:$LINENO: error: conditional \"NEEDGETOPT\" was never defined.
16406 Usually this means the macro was only invoked conditionally." >&5
16407 echo "$as_me: error: conditional \"NEEDGETOPT\" was never defined.
16408 Usually this means the macro was only invoked conditionally." >&2;}
16409 { (exit 1); exit 1; }; }
16411 if test -z "${NEEDDLOPEN_TRUE}" && test -z "${NEEDDLOPEN_FALSE}"; then
16412 { { echo "$as_me:$LINENO: error: conditional \"NEEDDLOPEN\" was never defined.
16413 Usually this means the macro was only invoked conditionally." >&5
16414 echo "$as_me: error: conditional \"NEEDDLOPEN\" was never defined.
16415 Usually this means the macro was only invoked conditionally." >&2;}
16416 { (exit 1); exit 1; }; }
16418 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
16419 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
16420 Usually this means the macro was only invoked conditionally." >&5
16421 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
16422 Usually this means the macro was only invoked conditionally." >&2;}
16423 { (exit 1); exit 1; }; }
16425 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
16426 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
16427 Usually this means the macro was only invoked conditionally." >&5
16428 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
16429 Usually this means the macro was only invoked conditionally." >&2;}
16430 { (exit 1); exit 1; }; }
16432 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
16433 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
16434 Usually this means the macro was only invoked conditionally." >&5
16435 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
16436 Usually this means the macro was only invoked conditionally." >&2;}
16437 { (exit 1); exit 1; }; }
16439 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
16440 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
16441 Usually this means the macro was only invoked conditionally." >&5
16442 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
16443 Usually this means the macro was only invoked conditionally." >&2;}
16444 { (exit 1); exit 1; }; }
16446 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
16447 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
16448 Usually this means the macro was only invoked conditionally." >&5
16449 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
16450 Usually this means the macro was only invoked conditionally." >&2;}
16451 { (exit 1); exit 1; }; }
16453 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
16454 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
16455 Usually this means the macro was only invoked conditionally." >&5
16456 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
16457 Usually this means the macro was only invoked conditionally." >&2;}
16458 { (exit 1); exit 1; }; }
16460 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
16461 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
16462 Usually this means the macro was only invoked conditionally." >&5
16463 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
16464 Usually this means the macro was only invoked conditionally." >&2;}
16465 { (exit 1); exit 1; }; }
16467 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
16468 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
16469 Usually this means the macro was only invoked conditionally." >&5
16470 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
16471 Usually this means the macro was only invoked conditionally." >&2;}
16472 { (exit 1); exit 1; }; }
16474 if test -z "${ENABLE_DYNAMIC_TCLTK_TRUE}" && test -z "${ENABLE_DYNAMIC_TCLTK_FALSE}"; then
16475 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
16476 Usually this means the macro was only invoked conditionally." >&5
16477 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
16478 Usually this means the macro was only invoked conditionally." >&2;}
16479 { (exit 1); exit 1; }; }
16481 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
16482 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
16483 Usually this means the macro was only invoked conditionally." >&5
16484 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
16485 Usually this means the macro was only invoked conditionally." >&2;}
16486 { (exit 1); exit 1; }; }
16488 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
16489 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
16490 Usually this means the macro was only invoked conditionally." >&5
16491 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
16492 Usually this means the macro was only invoked conditionally." >&2;}
16493 { (exit 1); exit 1; }; }
16495 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
16496 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
16497 Usually this means the macro was only invoked conditionally." >&5
16498 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
16499 Usually this means the macro was only invoked conditionally." >&2;}
16500 { (exit 1); exit 1; }; }
16502 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
16503 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
16504 Usually this means the macro was only invoked conditionally." >&5
16505 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
16506 Usually this means the macro was only invoked conditionally." >&2;}
16507 { (exit 1); exit 1; }; }
16509 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
16510 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
16511 Usually this means the macro was only invoked conditionally." >&5
16512 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
16513 Usually this means the macro was only invoked conditionally." >&2;}
16514 { (exit 1); exit 1; }; }
16516 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
16517 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
16518 Usually this means the macro was only invoked conditionally." >&5
16519 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
16520 Usually this means the macro was only invoked conditionally." >&2;}
16521 { (exit 1); exit 1; }; }
16523 if test -z "${ENABLE_DYNAMIC_XAW_TRUE}" && test -z "${ENABLE_DYNAMIC_XAW_FALSE}"; then
16524 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
16525 Usually this means the macro was only invoked conditionally." >&5
16526 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
16527 Usually this means the macro was only invoked conditionally." >&2;}
16528 { (exit 1); exit 1; }; }
16530 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
16531 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
16532 Usually this means the macro was only invoked conditionally." >&5
16533 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
16534 Usually this means the macro was only invoked conditionally." >&2;}
16535 { (exit 1); exit 1; }; }
16537 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
16538 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
16539 Usually this means the macro was only invoked conditionally." >&5
16540 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
16541 Usually this means the macro was only invoked conditionally." >&2;}
16542 { (exit 1); exit 1; }; }
16544 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
16545 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
16546 Usually this means the macro was only invoked conditionally." >&5
16547 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
16548 Usually this means the macro was only invoked conditionally." >&2;}
16549 { (exit 1); exit 1; }; }
16551 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
16552 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
16553 Usually this means the macro was only invoked conditionally." >&5
16554 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
16555 Usually this means the macro was only invoked conditionally." >&2;}
16556 { (exit 1); exit 1; }; }
16558 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
16559 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
16560 Usually this means the macro was only invoked conditionally." >&5
16561 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
16562 Usually this means the macro was only invoked conditionally." >&2;}
16563 { (exit 1); exit 1; }; }
16565 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
16566 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
16567 Usually this means the macro was only invoked conditionally." >&5
16568 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
16569 Usually this means the macro was only invoked conditionally." >&2;}
16570 { (exit 1); exit 1; }; }
16572 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
16573 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
16574 Usually this means the macro was only invoked conditionally." >&5
16575 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
16576 Usually this means the macro was only invoked conditionally." >&2;}
16577 { (exit 1); exit 1; }; }
16579 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
16580 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
16581 Usually this means the macro was only invoked conditionally." >&5
16582 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
16583 Usually this means the macro was only invoked conditionally." >&2;}
16584 { (exit 1); exit 1; }; }
16586 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
16587 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
16588 Usually this means the macro was only invoked conditionally." >&5
16589 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
16590 Usually this means the macro was only invoked conditionally." >&2;}
16591 { (exit 1); exit 1; }; }
16593 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
16594 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
16595 Usually this means the macro was only invoked conditionally." >&5
16596 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
16597 Usually this means the macro was only invoked conditionally." >&2;}
16598 { (exit 1); exit 1; }; }
16600 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
16601 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
16602 Usually this means the macro was only invoked conditionally." >&5
16603 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
16604 Usually this means the macro was only invoked conditionally." >&2;}
16605 { (exit 1); exit 1; }; }
16607 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
16608 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
16609 Usually this means the macro was only invoked conditionally." >&5
16610 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
16611 Usually this means the macro was only invoked conditionally." >&2;}
16612 { (exit 1); exit 1; }; }
16614 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
16615 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
16616 Usually this means the macro was only invoked conditionally." >&5
16617 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
16618 Usually this means the macro was only invoked conditionally." >&2;}
16619 { (exit 1); exit 1; }; }
16621 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
16622 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
16623 Usually this means the macro was only invoked conditionally." >&5
16624 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
16625 Usually this means the macro was only invoked conditionally." >&2;}
16626 { (exit 1); exit 1; }; }
16628 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
16629 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
16630 Usually this means the macro was only invoked conditionally." >&5
16631 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
16632 Usually this means the macro was only invoked conditionally." >&2;}
16633 { (exit 1); exit 1; }; }
16635 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
16636 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
16637 Usually this means the macro was only invoked conditionally." >&5
16638 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
16639 Usually this means the macro was only invoked conditionally." >&2;}
16640 { (exit 1); exit 1; }; }
16642 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
16643 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
16644 Usually this means the macro was only invoked conditionally." >&5
16645 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
16646 Usually this means the macro was only invoked conditionally." >&2;}
16647 { (exit 1); exit 1; }; }
16649 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
16650 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
16651 Usually this means the macro was only invoked conditionally." >&5
16652 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
16653 Usually this means the macro was only invoked conditionally." >&2;}
16654 { (exit 1); exit 1; }; }
16656 if test -z "${ENABLE_NETWORK_TRUE}" && test -z "${ENABLE_NETWORK_FALSE}"; then
16657 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NETWORK\" was never defined.
16658 Usually this means the macro was only invoked conditionally." >&5
16659 echo "$as_me: error: conditional \"ENABLE_NETWORK\" was never defined.
16660 Usually this means the macro was only invoked conditionally." >&2;}
16661 { (exit 1); exit 1; }; }
16663 if test -z "${ENABLE_SOUND_SPEC_TRUE}" && test -z "${ENABLE_SOUND_SPEC_FALSE}"; then
16664 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
16665 Usually this means the macro was only invoked conditionally." >&5
16666 echo "$as_me: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
16667 Usually this means the macro was only invoked conditionally." >&2;}
16668 { (exit 1); exit 1; }; }
16670 if test -z "${ENABLE_WRD_TRUE}" && test -z "${ENABLE_WRD_FALSE}"; then
16671 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WRD\" was never defined.
16672 Usually this means the macro was only invoked conditionally." >&5
16673 echo "$as_me: error: conditional \"ENABLE_WRD\" was never defined.
16674 Usually this means the macro was only invoked conditionally." >&2;}
16675 { (exit 1); exit 1; }; }
16677 if test -z "${CYGNUS_TRUE}" && test -z "${CYGNUS_FALSE}"; then
16678 { { echo "$as_me:$LINENO: error: conditional \"CYGNUS\" was never defined.
16679 Usually this means the macro was only invoked conditionally." >&5
16680 echo "$as_me: error: conditional \"CYGNUS\" was never defined.
16681 Usually this means the macro was only invoked conditionally." >&2;}
16682 { (exit 1); exit 1; }; }
16684 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
16685 { { echo "$as_me:$LINENO: error: conditional \"MINGW\" was never defined.
16686 Usually this means the macro was only invoked conditionally." >&5
16687 echo "$as_me: error: conditional \"MINGW\" was never defined.
16688 Usually this means the macro was only invoked conditionally." >&2;}
16689 { (exit 1); exit 1; }; }
16691 if test -z "${W32READDIR_TRUE}" && test -z "${W32READDIR_FALSE}"; then
16692 { { echo "$as_me:$LINENO: error: conditional \"W32READDIR\" was never defined.
16693 Usually this means the macro was only invoked conditionally." >&5
16694 echo "$as_me: error: conditional \"W32READDIR\" was never defined.
16695 Usually this means the macro was only invoked conditionally." >&2;}
16696 { (exit 1); exit 1; }; }
16699 : ${CONFIG_STATUS=./config.status}
16700 ac_clean_files_save=$ac_clean_files
16701 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16702 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16703 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16704 cat >$CONFIG_STATUS <<_ACEOF
16706 # Generated by $as_me.
16707 # Run this file to recreate the current configuration.
16708 # Compiler output produced by configure, useful for debugging
16709 # configure, is in config.log if it exists.
16712 ac_cs_recheck=false
16714 SHELL=\${CONFIG_SHELL-$SHELL}
16717 cat >>$CONFIG_STATUS <<\_ACEOF
16718 ## --------------------- ##
16719 ## M4sh Initialization. ##
16720 ## --------------------- ##
16722 # Be Bourne compatible
16723 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16726 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16727 # is contrary to our usage. Disable this feature.
16728 alias -g '${1+"$@"}'='"$@"'
16729 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16733 # Support unset when possible.
16734 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16741 # Work around bugs in pre-3.0 UWIN ksh.
16742 $as_unset ENV MAIL MAILPATH
16749 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16750 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16751 LC_TELEPHONE LC_TIME
16753 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
16754 eval $as_var=C; export $as_var
16760 # Required to use basename.
16761 if expr a : '\(a\)' >/dev/null 2>&1; then
16767 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16768 as_basename=basename
16774 # Name of the executable.
16775 as_me=`$as_basename "$0" ||
16776 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16777 X"$0" : 'X\(//\)$' \| \
16778 X"$0" : 'X\(/\)$' \| \
16779 . : '\(.\)' 2>/dev/null ||
16781 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16782 /^X\/\(\/\/\)$/{ s//\1/; q; }
16783 /^X\/\(\/\).*/{ s//\1/; q; }
16787 # PATH needs CR, and LINENO needs CR and PATH.
16788 # Avoid depending upon Character Ranges.
16789 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16790 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16791 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16792 as_cr_digits='0123456789'
16793 as_cr_alnum=$as_cr_Letters$as_cr_digits
16795 # The user is always right.
16796 if test "${PATH_SEPARATOR+set}" != set; then
16797 echo "#! /bin/sh" >conf$$.sh
16798 echo "exit 0" >>conf$$.sh
16800 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16809 as_lineno_1=$LINENO
16810 as_lineno_2=$LINENO
16811 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16812 test "x$as_lineno_1" != "x$as_lineno_2" &&
16813 test "x$as_lineno_3" = "x$as_lineno_2" || {
16814 # Find who we are. Look in the path if we contain no path at all
16817 *[\\/]* ) as_myself=$0 ;;
16818 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16819 for as_dir in $PATH
16822 test -z "$as_dir" && as_dir=.
16823 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16828 # We did not find ourselves, most probably we were run as `sh COMMAND'
16829 # in which case we are not to be found in the path.
16830 if test "x$as_myself" = x; then
16833 if test ! -f "$as_myself"; then
16834 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16835 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16836 { (exit 1); exit 1; }; }
16838 case $CONFIG_SHELL in
16840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16841 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16844 test -z "$as_dir" && as_dir=.
16845 for as_base in sh bash ksh sh5; do
16848 if ("$as_dir/$as_base" -c '
16849 as_lineno_1=$LINENO
16850 as_lineno_2=$LINENO
16851 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16852 test "x$as_lineno_1" != "x$as_lineno_2" &&
16853 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16854 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16855 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16856 CONFIG_SHELL=$as_dir/$as_base
16857 export CONFIG_SHELL
16858 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16866 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16867 # uniformly replaced by the line number. The first 'sed' inserts a
16868 # line-number line before each line; the second 'sed' does the real
16869 # work. The second script uses 'N' to pair each line-number line
16870 # with the numbered line, and appends trailing '-' during
16871 # substitution so that $LINENO is not a special case at line end.
16872 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16873 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16874 sed '=' <$as_myself |
16879 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16882 s,^['$as_cr_digits']*\n,,
16883 ' >$as_me.lineno &&
16884 chmod +x $as_me.lineno ||
16885 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16886 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16887 { (exit 1); exit 1; }; }
16889 # Don't try to exec as it changes $[0], causing all sort of problems
16890 # (the dirname of $[0] is not the place where we might find the
16891 # original and so on. Autoconf is especially sensible to this).
16893 # Exit status is that of the last command.
16898 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16899 *c*,-n*) ECHO_N= ECHO_C='
16901 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16902 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16905 if expr a : '\(a\)' >/dev/null 2>&1; then
16911 rm -f conf$$ conf$$.exe conf$$.file
16913 if ln -s conf$$.file conf$$ 2>/dev/null; then
16914 # We could just check for DJGPP; but this test a) works b) is more generic
16915 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16916 if test -f conf$$.exe; then
16917 # Don't use ln at all; we don't have any links
16922 elif ln conf$$.file conf$$ 2>/dev/null; then
16927 rm -f conf$$ conf$$.exe conf$$.file
16929 if mkdir -p . 2>/dev/null; then
16935 as_executable_p="test -f"
16937 # Sed expression to map a string onto a valid CPP name.
16938 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16940 # Sed expression to map a string onto a valid variable name.
16941 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16945 # We need space, tab and new line, in precisely that order.
16955 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16956 # report actual input values of CONFIG_FILES etc. instead of their
16957 # values after options handling. Logging --version etc. is OK.
16961 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16962 ## Running $as_me. ##
16967 This file was extended by TiMidity++ $as_me 2.12.0-pre1b, which was
16968 generated by GNU Autoconf 2.57. Invocation command line was
16970 CONFIG_FILES = $CONFIG_FILES
16971 CONFIG_HEADERS = $CONFIG_HEADERS
16972 CONFIG_LINKS = $CONFIG_LINKS
16973 CONFIG_COMMANDS = $CONFIG_COMMANDS
16977 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16981 # Files that config.status was made for.
16982 if test -n "$ac_config_files"; then
16983 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16986 if test -n "$ac_config_headers"; then
16987 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16990 if test -n "$ac_config_links"; then
16991 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16994 if test -n "$ac_config_commands"; then
16995 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16998 cat >>$CONFIG_STATUS <<\_ACEOF
17001 \`$as_me' instantiates files from templates according to the
17002 current configuration.
17004 Usage: $0 [OPTIONS] [FILE]...
17006 -h, --help print this help, then exit
17007 -V, --version print version number, then exit
17008 -q, --quiet do not print progress messages
17009 -d, --debug don't remove temporary files
17010 --recheck update $as_me by reconfiguring in the same conditions
17011 --file=FILE[:TEMPLATE]
17012 instantiate the configuration file FILE
17013 --header=FILE[:TEMPLATE]
17014 instantiate the configuration header FILE
17016 Configuration files:
17019 Configuration headers:
17022 Configuration commands:
17025 Report bugs to <bug-autoconf@gnu.org>."
17028 cat >>$CONFIG_STATUS <<_ACEOF
17030 TiMidity++ config.status 2.12.0-pre1b
17031 configured by $0, generated by GNU Autoconf 2.57,
17032 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17034 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17035 Free Software Foundation, Inc.
17036 This config.status script is free software; the Free Software Foundation
17037 gives unlimited permission to copy, distribute and modify it."
17042 cat >>$CONFIG_STATUS <<\_ACEOF
17043 # If no file are specified by the user, then we need to provide default
17044 # value. By we need to know if files were specified by the user.
17050 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17051 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17059 *) # This is not an option, so the user has probably given explicit
17062 ac_need_defaults=false;;
17066 # Handling of the options.
17068 cat >>$CONFIG_STATUS <<\_ACEOF
17069 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17071 --version | --vers* | -V )
17072 echo "$ac_cs_version"; exit 0 ;;
17074 # Conflict between --help and --header
17075 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17076 Try \`$0 --help' for more information." >&5
17077 echo "$as_me: error: ambiguous option: $1
17078 Try \`$0 --help' for more information." >&2;}
17079 { (exit 1); exit 1; }; };;
17080 --help | --hel | -h )
17081 echo "$ac_cs_usage"; exit 0 ;;
17082 --debug | --d* | -d )
17084 --file | --fil | --fi | --f )
17086 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17087 ac_need_defaults=false;;
17088 --header | --heade | --head | --hea )
17090 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17091 ac_need_defaults=false;;
17092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17093 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17096 # This is an error.
17097 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17098 Try \`$0 --help' for more information." >&5
17099 echo "$as_me: error: unrecognized option: $1
17100 Try \`$0 --help' for more information." >&2;}
17101 { (exit 1); exit 1; }; } ;;
17103 *) ac_config_targets="$ac_config_targets $1" ;;
17109 ac_configure_extra_args=
17111 if $ac_cs_silent; then
17113 ac_configure_extra_args="$ac_configure_extra_args --silent"
17117 cat >>$CONFIG_STATUS <<_ACEOF
17118 if \$ac_cs_recheck; then
17119 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17120 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17125 cat >>$CONFIG_STATUS <<_ACEOF
17127 # INIT-COMMANDS section.
17130 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17136 cat >>$CONFIG_STATUS <<\_ACEOF
17137 for ac_config_target in $ac_config_targets
17139 case "$ac_config_target" in
17140 # Handling of arguments.
17141 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17142 "autoconf/Makefile" ) CONFIG_FILES="$CONFIG_FILES autoconf/Makefile" ;;
17143 "common.makefile" ) CONFIG_FILES="$CONFIG_FILES common.makefile" ;;
17144 "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
17145 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17146 "doc/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
17147 "doc/ja_JP.ujis/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/ja_JP.ujis/Makefile" ;;
17148 "interface/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
17149 "interface/motif_bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/motif_bitmaps/Makefile" ;;
17150 "interface/bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/bitmaps/Makefile" ;;
17151 "interface/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/pixmaps/Makefile" ;;
17152 "libarc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libarc/Makefile" ;;
17153 "libunimod/Makefile" ) CONFIG_FILES="$CONFIG_FILES libunimod/Makefile" ;;
17154 "timidity/Makefile" ) CONFIG_FILES="$CONFIG_FILES timidity/Makefile" ;;
17155 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
17156 "script/Makefile" ) CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
17157 "TiMidity.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity.ad" ;;
17158 "TiMidity-uj.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity-uj.ad" ;;
17159 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17160 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17161 "interface.h" ) CONFIG_HEADERS="$CONFIG_HEADERS interface.h" ;;
17162 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17163 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17164 { (exit 1); exit 1; }; };;
17168 # If the user did not use the arguments to specify the items to instantiate,
17169 # then the envvar interface is used. Set only those that are not.
17170 # We use the long form for the default assignment because of an extremely
17171 # bizarre bug on SunOS 4.1.3.
17172 if $ac_need_defaults; then
17173 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17174 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17175 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17178 # Have a temporary directory for convenience. Make it in the build tree
17179 # simply because there is no reason to put it here, and in addition,
17180 # creating and moving files from /tmp can sometimes cause problems.
17181 # Create a temporary directory, and hook for its removal unless debugging.
17184 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17185 trap '{ (exit 1); exit 1; }' 1 2 13 15
17188 # Create a (secure) tmp directory for tmp files.
17191 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17192 test -n "$tmp" && test -d "$tmp"
17195 tmp=./confstat$$-$RANDOM
17196 (umask 077 && mkdir $tmp)
17199 echo "$me: cannot create a temporary directory in ." >&2
17200 { (exit 1); exit 1; }
17205 cat >>$CONFIG_STATUS <<_ACEOF
17208 # CONFIG_FILES section.
17211 # No need to generate the scripts if there are no CONFIG_FILES.
17212 # This happens for instance when ./config.status config.h
17213 if test -n "\$CONFIG_FILES"; then
17214 # Protect against being on the right side of a sed subst in config.status.
17215 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17216 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17217 s,@SHELL@,$SHELL,;t t
17218 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17219 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17220 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17221 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17222 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17223 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17224 s,@exec_prefix@,$exec_prefix,;t t
17225 s,@prefix@,$prefix,;t t
17226 s,@program_transform_name@,$program_transform_name,;t t
17227 s,@bindir@,$bindir,;t t
17228 s,@sbindir@,$sbindir,;t t
17229 s,@libexecdir@,$libexecdir,;t t
17230 s,@datadir@,$datadir,;t t
17231 s,@sysconfdir@,$sysconfdir,;t t
17232 s,@sharedstatedir@,$sharedstatedir,;t t
17233 s,@localstatedir@,$localstatedir,;t t
17234 s,@libdir@,$libdir,;t t
17235 s,@includedir@,$includedir,;t t
17236 s,@oldincludedir@,$oldincludedir,;t t
17237 s,@infodir@,$infodir,;t t
17238 s,@mandir@,$mandir,;t t
17239 s,@build_alias@,$build_alias,;t t
17240 s,@host_alias@,$host_alias,;t t
17241 s,@target_alias@,$target_alias,;t t
17242 s,@DEFS@,$DEFS,;t t
17243 s,@ECHO_C@,$ECHO_C,;t t
17244 s,@ECHO_N@,$ECHO_N,;t t
17245 s,@ECHO_T@,$ECHO_T,;t t
17246 s,@LIBS@,$LIBS,;t t
17247 s,@build@,$build,;t t
17248 s,@build_cpu@,$build_cpu,;t t
17249 s,@build_vendor@,$build_vendor,;t t
17250 s,@build_os@,$build_os,;t t
17251 s,@host@,$host,;t t
17252 s,@host_cpu@,$host_cpu,;t t
17253 s,@host_vendor@,$host_vendor,;t t
17254 s,@host_os@,$host_os,;t t
17255 s,@target@,$target,;t t
17256 s,@target_cpu@,$target_cpu,;t t
17257 s,@target_vendor@,$target_vendor,;t t
17258 s,@target_os@,$target_os,;t t
17259 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17260 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17261 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17262 s,@CYGPATH_W@,$CYGPATH_W,;t t
17263 s,@PACKAGE@,$PACKAGE,;t t
17264 s,@VERSION@,$VERSION,;t t
17265 s,@ACLOCAL@,$ACLOCAL,;t t
17266 s,@AUTOCONF@,$AUTOCONF,;t t
17267 s,@AUTOMAKE@,$AUTOMAKE,;t t
17268 s,@AUTOHEADER@,$AUTOHEADER,;t t
17269 s,@MAKEINFO@,$MAKEINFO,;t t
17270 s,@AMTAR@,$AMTAR,;t t
17271 s,@install_sh@,$install_sh,;t t
17272 s,@STRIP@,$STRIP,;t t
17273 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17274 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17276 s,@SET_MAKE@,$SET_MAKE,;t t
17277 s,@am__leading_dot@,$am__leading_dot,;t t
17278 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17279 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17280 s,@MAINT@,$MAINT,;t t
17281 s,@EMACS@,$EMACS,;t t
17282 s,@lispdir@,$lispdir,;t t
17284 s,@CFLAGS@,$CFLAGS,;t t
17285 s,@LDFLAGS@,$LDFLAGS,;t t
17286 s,@CPPFLAGS@,$CPPFLAGS,;t t
17287 s,@ac_ct_CC@,$ac_ct_CC,;t t
17288 s,@EXEEXT@,$EXEEXT,;t t
17289 s,@OBJEXT@,$OBJEXT,;t t
17290 s,@DEPDIR@,$DEPDIR,;t t
17291 s,@am__include@,$am__include,;t t
17292 s,@am__quote@,$am__quote,;t t
17293 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17294 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17295 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17296 s,@CCDEPMODE@,$CCDEPMODE,;t t
17297 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17298 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17300 s,@EGREP@,$EGREP,;t t
17301 s,@RANLIB@,$RANLIB,;t t
17302 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17303 s,@LN_S@,$LN_S,;t t
17304 s,@X_CFLAGS@,$X_CFLAGS,;t t
17305 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17306 s,@X_LIBS@,$X_LIBS,;t t
17307 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17308 s,@LIBOBJS@,$LIBOBJS,;t t
17309 s,@NEEDGETOPT_TRUE@,$NEEDGETOPT_TRUE,;t t
17310 s,@NEEDGETOPT_FALSE@,$NEEDGETOPT_FALSE,;t t
17311 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
17312 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
17313 s,@ARTS_CONFIG@,$ARTS_CONFIG,;t t
17314 s,@ARTS_CFLAGS@,$ARTS_CFLAGS,;t t
17315 s,@ARTS_LIBS@,$ARTS_LIBS,;t t
17316 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
17317 s,@ESD_CFLAGS@,$ESD_CFLAGS,;t t
17318 s,@ESD_LIBS@,$ESD_LIBS,;t t
17319 s,@VORBIS_CFLAGS@,$VORBIS_CFLAGS,;t t
17320 s,@VORBIS_LIBS@,$VORBIS_LIBS,;t t
17321 s,@VORBISFILE_LIBS@,$VORBISFILE_LIBS,;t t
17322 s,@VORBISENC_LIBS@,$VORBISENC_LIBS,;t t
17323 s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t
17324 s,@OGG_LIBS@,$OGG_LIBS,;t t
17325 s,@NEEDDLOPEN_TRUE@,$NEEDDLOPEN_TRUE,;t t
17326 s,@NEEDDLOPEN_FALSE@,$NEEDDLOPEN_FALSE,;t t
17327 s,@ENABLE_NCURSES_TRUE@,$ENABLE_NCURSES_TRUE,;t t
17328 s,@ENABLE_NCURSES_FALSE@,$ENABLE_NCURSES_FALSE,;t t
17329 s,@n_so_libs@,$n_so_libs,;t t
17330 s,@ENABLE_SLANG_TRUE@,$ENABLE_SLANG_TRUE,;t t
17331 s,@ENABLE_SLANG_FALSE@,$ENABLE_SLANG_FALSE,;t t
17332 s,@s_so_libs@,$s_so_libs,;t t
17333 s,@ENABLE_MOTIF_TRUE@,$ENABLE_MOTIF_TRUE,;t t
17334 s,@ENABLE_MOTIF_FALSE@,$ENABLE_MOTIF_FALSE,;t t
17335 s,@m_so_libs@,$m_so_libs,;t t
17336 s,@ENABLE_TCLTK_TRUE@,$ENABLE_TCLTK_TRUE,;t t
17337 s,@ENABLE_TCLTK_FALSE@,$ENABLE_TCLTK_FALSE,;t t
17338 s,@k_so_libs@,$k_so_libs,;t t
17339 s,@ENABLE_DYNAMIC_TCLTK_TRUE@,$ENABLE_DYNAMIC_TCLTK_TRUE,;t t
17340 s,@ENABLE_DYNAMIC_TCLTK_FALSE@,$ENABLE_DYNAMIC_TCLTK_FALSE,;t t
17341 s,@ENABLE_EMACS_TRUE@,$ENABLE_EMACS_TRUE,;t t
17342 s,@ENABLE_EMACS_FALSE@,$ENABLE_EMACS_FALSE,;t t
17343 s,@e_so_libs@,$e_so_libs,;t t
17344 s,@ENABLE_VT100_TRUE@,$ENABLE_VT100_TRUE,;t t
17345 s,@ENABLE_VT100_FALSE@,$ENABLE_VT100_FALSE,;t t
17346 s,@T_so_libs@,$T_so_libs,;t t
17347 s,@ENABLE_XAW_TRUE@,$ENABLE_XAW_TRUE,;t t
17348 s,@ENABLE_XAW_FALSE@,$ENABLE_XAW_FALSE,;t t
17349 s,@a_so_libs@,$a_so_libs,;t t
17350 s,@ENABLE_DYNAMIC_XAW_TRUE@,$ENABLE_DYNAMIC_XAW_TRUE,;t t
17351 s,@ENABLE_DYNAMIC_XAW_FALSE@,$ENABLE_DYNAMIC_XAW_FALSE,;t t
17352 s,@ENABLE_XSKIN_TRUE@,$ENABLE_XSKIN_TRUE,;t t
17353 s,@ENABLE_XSKIN_FALSE@,$ENABLE_XSKIN_FALSE,;t t
17354 s,@i_so_libs@,$i_so_libs,;t t
17355 s,@ENABLE_GTK_TRUE@,$ENABLE_GTK_TRUE,;t t
17356 s,@ENABLE_GTK_FALSE@,$ENABLE_GTK_FALSE,;t t
17357 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
17358 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17359 s,@GTK_LIBS@,$GTK_LIBS,;t t
17360 s,@g_so_libs@,$g_so_libs,;t t
17361 s,@ENABLE_SERVER_TRUE@,$ENABLE_SERVER_TRUE,;t t
17362 s,@ENABLE_SERVER_FALSE@,$ENABLE_SERVER_FALSE,;t t
17363 s,@r_so_libs@,$r_so_libs,;t t
17364 s,@ENABLE_ALSASEQ_TRUE@,$ENABLE_ALSASEQ_TRUE,;t t
17365 s,@ENABLE_ALSASEQ_FALSE@,$ENABLE_ALSASEQ_FALSE,;t t
17366 s,@A_so_libs@,$A_so_libs,;t t
17367 s,@ENABLE_WINSYN_TRUE@,$ENABLE_WINSYN_TRUE,;t t
17368 s,@ENABLE_WINSYN_FALSE@,$ENABLE_WINSYN_FALSE,;t t
17369 s,@W_so_libs@,$W_so_libs,;t t
17370 s,@ENABLE_PORTMIDISYN_TRUE@,$ENABLE_PORTMIDISYN_TRUE,;t t
17371 s,@ENABLE_PORTMIDISYN_FALSE@,$ENABLE_PORTMIDISYN_FALSE,;t t
17372 s,@P_so_libs@,$P_so_libs,;t t
17373 s,@ENABLE_W32G_SYN_TRUE@,$ENABLE_W32G_SYN_TRUE,;t t
17374 s,@ENABLE_W32G_SYN_FALSE@,$ENABLE_W32G_SYN_FALSE,;t t
17375 s,@ENABLE_W32GUI_TRUE@,$ENABLE_W32GUI_TRUE,;t t
17376 s,@ENABLE_W32GUI_FALSE@,$ENABLE_W32GUI_FALSE,;t t
17377 s,@w_so_libs@,$w_so_libs,;t t
17378 s,@ENABLE_PLUGIN_TRUE@,$ENABLE_PLUGIN_TRUE,;t t
17379 s,@ENABLE_PLUGIN_FALSE@,$ENABLE_PLUGIN_FALSE,;t t
17380 s,@p_so_libs@,$p_so_libs,;t t
17381 s,@ENABLE_NETWORK_TRUE@,$ENABLE_NETWORK_TRUE,;t t
17382 s,@ENABLE_NETWORK_FALSE@,$ENABLE_NETWORK_FALSE,;t t
17383 s,@ENABLE_SOUND_SPEC_TRUE@,$ENABLE_SOUND_SPEC_TRUE,;t t
17384 s,@ENABLE_SOUND_SPEC_FALSE@,$ENABLE_SOUND_SPEC_FALSE,;t t
17385 s,@ENABLE_WRD_TRUE@,$ENABLE_WRD_TRUE,;t t
17386 s,@ENABLE_WRD_FALSE@,$ENABLE_WRD_FALSE,;t t
17387 s,@CYGNUS_TRUE@,$CYGNUS_TRUE,;t t
17388 s,@CYGNUS_FALSE@,$CYGNUS_FALSE,;t t
17389 s,@MINGW_TRUE@,$MINGW_TRUE,;t t
17390 s,@MINGW_FALSE@,$MINGW_FALSE,;t t
17391 s,@W32READDIR_TRUE@,$W32READDIR_TRUE,;t t
17392 s,@W32READDIR_FALSE@,$W32READDIR_FALSE,;t t
17393 s,@timidity_LDFLAGS@,$timidity_LDFLAGS,;t t
17394 s,@SYSEXTRAS@,$SYSEXTRAS,;t t
17395 s,@EXTRALIBS@,$EXTRALIBS,;t t
17396 s,@NETSRCS@,$NETSRCS,;t t
17397 s,@ELFILES@,$ELFILES,;t t
17398 s,@SHLD@,$SHLD,;t t
17399 s,@SHCFLAGS@,$SHCFLAGS,;t t
17400 s,@dynamic_targets@,$dynamic_targets,;t t
17402 s,@WISH@,$WISH,;t t
17403 s,@tcltk_dep@,$tcltk_dep,;t t
17404 s,@INTERFACE_SRCS@,$INTERFACE_SRCS,;t t
17405 s,@pkgdatadir@,$pkgdatadir,;t t
17406 s,@pkglibdir@,$pkglibdir,;t t
17407 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17412 cat >>$CONFIG_STATUS <<\_ACEOF
17413 # Split the substitutions into bite-sized pieces for seds with
17414 # small command number limits, like on Digital OSF/1 and HP-UX.
17415 ac_max_sed_lines=48
17416 ac_sed_frag=1 # Number of current file.
17417 ac_beg=1 # First line for current file.
17418 ac_end=$ac_max_sed_lines # Line after last line for current file.
17421 while $ac_more_lines; do
17422 if test $ac_beg -gt 1; then
17423 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17425 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17427 if test ! -s $tmp/subs.frag; then
17428 ac_more_lines=false
17430 # The purpose of the label and of the branching condition is to
17431 # speed up the sed processing (if there are no `@' at all, there
17432 # is no need to browse any of the substitutions).
17433 # These are the two extra sed commands mentioned above.
17435 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17436 if test -z "$ac_sed_cmds"; then
17437 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17439 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17441 ac_sed_frag=`expr $ac_sed_frag + 1`
17443 ac_end=`expr $ac_end + $ac_max_sed_lines`
17446 if test -z "$ac_sed_cmds"; then
17449 fi # test -n "$CONFIG_FILES"
17452 cat >>$CONFIG_STATUS <<\_ACEOF
17453 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17454 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17456 - | *:- | *:-:* ) # input from stdin
17458 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17459 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17460 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17461 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17462 * ) ac_file_in=$ac_file.in ;;
17465 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17466 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17467 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17468 X"$ac_file" : 'X\(//\)[^/]' \| \
17469 X"$ac_file" : 'X\(//\)$' \| \
17470 X"$ac_file" : 'X\(/\)' \| \
17471 . : '\(.\)' 2>/dev/null ||
17473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17474 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17475 /^X\(\/\/\)$/{ s//\1/; q; }
17476 /^X\(\/\).*/{ s//\1/; q; }
17478 { if $as_mkdir_p; then
17483 while test ! -d "$as_dir"; do
17484 as_dirs="$as_dir $as_dirs"
17485 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17486 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17487 X"$as_dir" : 'X\(//\)[^/]' \| \
17488 X"$as_dir" : 'X\(//\)$' \| \
17489 X"$as_dir" : 'X\(/\)' \| \
17490 . : '\(.\)' 2>/dev/null ||
17492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17493 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17494 /^X\(\/\/\)$/{ s//\1/; q; }
17495 /^X\(\/\).*/{ s//\1/; q; }
17498 test ! -n "$as_dirs" || mkdir $as_dirs
17499 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17500 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17501 { (exit 1); exit 1; }; }; }
17505 if test "$ac_dir" != .; then
17506 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17507 # A "../" for each directory in $ac_dir_suffix.
17508 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17510 ac_dir_suffix= ac_top_builddir=
17514 .) # No --srcdir option. We are building in place.
17516 if test -z "$ac_top_builddir"; then
17519 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17521 [\\/]* | ?:[\\/]* ) # Absolute path.
17522 ac_srcdir=$srcdir$ac_dir_suffix;
17523 ac_top_srcdir=$srcdir ;;
17524 *) # Relative path.
17525 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17526 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17528 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17530 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17531 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17532 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17533 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17537 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17538 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17541 if test x"$ac_file" != x-; then
17542 { echo "$as_me:$LINENO: creating $ac_file" >&5
17543 echo "$as_me: creating $ac_file" >&6;}
17546 # Let's still pretend it is `configure' which instantiates (i.e., don't
17547 # use $as_me), people would be surprised to read:
17548 # /* config.h. Generated by config.status. */
17549 if test x"$ac_file" = x-; then
17552 configure_input="$ac_file. "
17554 configure_input=$configure_input"Generated from `echo $ac_file_in |
17555 sed 's,.*/,,'` by configure."
17557 # First look for the input files in the build tree, otherwise in the
17559 ac_file_inputs=`IFS=:
17560 for f in $ac_file_in; do
17562 -) echo $tmp/stdin ;;
17564 # Absolute (can't be DOS-style, as IFS=:)
17565 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17566 echo "$as_me: error: cannot find input file: $f" >&2;}
17567 { (exit 1); exit 1; }; }
17570 if test -f "$f"; then
17573 elif test -f "$srcdir/$f"; then
17578 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17579 echo "$as_me: error: cannot find input file: $f" >&2;}
17580 { (exit 1); exit 1; }; }
17583 done` || { (exit 1); exit 1; }
17585 cat >>$CONFIG_STATUS <<_ACEOF
17589 cat >>$CONFIG_STATUS <<\_ACEOF
17591 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17592 s,@configure_input@,$configure_input,;t t
17593 s,@srcdir@,$ac_srcdir,;t t
17594 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17595 s,@top_srcdir@,$ac_top_srcdir,;t t
17596 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17597 s,@builddir@,$ac_builddir,;t t
17598 s,@abs_builddir@,$ac_abs_builddir,;t t
17599 s,@top_builddir@,$ac_top_builddir,;t t
17600 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17601 s,@INSTALL@,$ac_INSTALL,;t t
17602 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17604 if test x"$ac_file" != x-; then
17605 mv $tmp/out $ac_file
17613 cat >>$CONFIG_STATUS <<\_ACEOF
17616 # CONFIG_HEADER section.
17619 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17620 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17622 # ac_d sets the value in "#define NAME VALUE" lines.
17623 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17624 ac_dB='[ ].*$,\1#\2'
17627 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17628 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17629 ac_uB='$,\1#\2define\3'
17633 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17634 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17636 - | *:- | *:-:* ) # input from stdin
17638 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17639 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17640 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17641 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17642 * ) ac_file_in=$ac_file.in ;;
17645 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17646 echo "$as_me: creating $ac_file" >&6;}
17648 # First look for the input files in the build tree, otherwise in the
17650 ac_file_inputs=`IFS=:
17651 for f in $ac_file_in; do
17653 -) echo $tmp/stdin ;;
17655 # Absolute (can't be DOS-style, as IFS=:)
17656 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17657 echo "$as_me: error: cannot find input file: $f" >&2;}
17658 { (exit 1); exit 1; }; }
17661 if test -f "$f"; then
17664 elif test -f "$srcdir/$f"; then
17669 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17670 echo "$as_me: error: cannot find input file: $f" >&2;}
17671 { (exit 1); exit 1; }; }
17674 done` || { (exit 1); exit 1; }
17675 # Remove the trailing spaces.
17676 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17680 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17681 # `conftest.undefs', that substitutes the proper values into
17682 # config.h.in to produce config.h. The first handles `#define'
17683 # templates, and the second `#undef' templates.
17684 # And first: Protect against being on the right side of a sed subst in
17685 # config.status. Protect against being in an unquoted here document
17686 # in config.status.
17687 rm -f conftest.defines conftest.undefs
17688 # Using a here document instead of a string reduces the quoting nightmare.
17689 # Putting comments in sed scripts is not portable.
17691 # `end' is used to avoid that the second main sed command (meant for
17692 # 0-ary CPP macros) applies to n-ary macro definitions.
17693 # See the Autoconf documentation for `clear'.
17694 cat >confdef2sed.sed <<\_ACEOF
17699 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17701 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17704 # If some macros were called several times there might be several times
17705 # the same #defines, which is useless. Nevertheless, we may not want to
17706 # sort them, since we want the *last* AC-DEFINE to be honored.
17707 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17708 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17709 rm -f confdef2sed.sed
17711 # This sed command replaces #undef with comments. This is necessary, for
17712 # example, in the case of _POSIX_SOURCE, which is predefined and required
17713 # on some systems where configure will not decide to define it.
17714 cat >>conftest.undefs <<\_ACEOF
17715 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17718 # Break up conftest.defines because some shells have a limit on the size
17719 # of here documents, and old seds have small limits too (100 cmds).
17720 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17721 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17722 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17723 echo ' :' >>$CONFIG_STATUS
17724 rm -f conftest.tail
17725 while grep . conftest.defines >/dev/null
17727 # Write a limited-size here document to $tmp/defines.sed.
17728 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17729 # Speed up: don't consider the non `#define' lines.
17730 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17731 # Work around the forget-to-reset-the-flag bug.
17732 echo 't clr' >>$CONFIG_STATUS
17733 echo ': clr' >>$CONFIG_STATUS
17734 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17736 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17738 mv $tmp/out $tmp/in
17740 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17741 rm -f conftest.defines
17742 mv conftest.tail conftest.defines
17744 rm -f conftest.defines
17745 echo ' fi # grep' >>$CONFIG_STATUS
17746 echo >>$CONFIG_STATUS
17748 # Break up conftest.undefs because some shells have a limit on the size
17749 # of here documents, and old seds have small limits too (100 cmds).
17750 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17751 rm -f conftest.tail
17752 while grep . conftest.undefs >/dev/null
17754 # Write a limited-size here document to $tmp/undefs.sed.
17755 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17756 # Speed up: don't consider the non `#undef'
17757 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17758 # Work around the forget-to-reset-the-flag bug.
17759 echo 't clr' >>$CONFIG_STATUS
17760 echo ': clr' >>$CONFIG_STATUS
17761 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17763 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17765 mv $tmp/out $tmp/in
17767 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17768 rm -f conftest.undefs
17769 mv conftest.tail conftest.undefs
17771 rm -f conftest.undefs
17773 cat >>$CONFIG_STATUS <<\_ACEOF
17774 # Let's still pretend it is `configure' which instantiates (i.e., don't
17775 # use $as_me), people would be surprised to read:
17776 # /* config.h. Generated by config.status. */
17777 if test x"$ac_file" = x-; then
17778 echo "/* Generated by configure. */" >$tmp/config.h
17780 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17782 cat $tmp/in >>$tmp/config.h
17784 if test x"$ac_file" != x-; then
17785 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17786 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17787 echo "$as_me: $ac_file is unchanged" >&6;}
17789 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17790 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17791 X"$ac_file" : 'X\(//\)[^/]' \| \
17792 X"$ac_file" : 'X\(//\)$' \| \
17793 X"$ac_file" : 'X\(/\)' \| \
17794 . : '\(.\)' 2>/dev/null ||
17796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17797 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17798 /^X\(\/\/\)$/{ s//\1/; q; }
17799 /^X\(\/\).*/{ s//\1/; q; }
17801 { if $as_mkdir_p; then
17806 while test ! -d "$as_dir"; do
17807 as_dirs="$as_dir $as_dirs"
17808 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17809 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17810 X"$as_dir" : 'X\(//\)[^/]' \| \
17811 X"$as_dir" : 'X\(//\)$' \| \
17812 X"$as_dir" : 'X\(/\)' \| \
17813 . : '\(.\)' 2>/dev/null ||
17815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17816 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17817 /^X\(\/\/\)$/{ s//\1/; q; }
17818 /^X\(\/\).*/{ s//\1/; q; }
17821 test ! -n "$as_dirs" || mkdir $as_dirs
17822 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17823 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17824 { (exit 1); exit 1; }; }; }
17827 mv $tmp/config.h $ac_file
17831 rm -f $tmp/config.h
17833 # Compute $ac_file's index in $config_headers.
17835 for _am_header in $config_headers :; do
17836 case $_am_header in
17837 $ac_file | $ac_file:* )
17840 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17843 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17844 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17845 X$ac_file : 'X\(//\)[^/]' \| \
17846 X$ac_file : 'X\(//\)$' \| \
17847 X$ac_file : 'X\(/\)' \| \
17848 . : '\(.\)' 2>/dev/null ||
17850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17851 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17852 /^X\(\/\/\)$/{ s//\1/; q; }
17853 /^X\(\/\).*/{ s//\1/; q; }
17854 s/.*/./; q'`/stamp-h$_am_stamp_count
17857 cat >>$CONFIG_STATUS <<\_ACEOF
17860 # CONFIG_COMMANDS section.
17862 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17863 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17864 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17865 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17866 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17867 X"$ac_dest" : 'X\(//\)[^/]' \| \
17868 X"$ac_dest" : 'X\(//\)$' \| \
17869 X"$ac_dest" : 'X\(/\)' \| \
17870 . : '\(.\)' 2>/dev/null ||
17872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17874 /^X\(\/\/\)$/{ s//\1/; q; }
17875 /^X\(\/\).*/{ s//\1/; q; }
17879 if test "$ac_dir" != .; then
17880 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17881 # A "../" for each directory in $ac_dir_suffix.
17882 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17884 ac_dir_suffix= ac_top_builddir=
17888 .) # No --srcdir option. We are building in place.
17890 if test -z "$ac_top_builddir"; then
17893 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17895 [\\/]* | ?:[\\/]* ) # Absolute path.
17896 ac_srcdir=$srcdir$ac_dir_suffix;
17897 ac_top_srcdir=$srcdir ;;
17898 *) # Relative path.
17899 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17900 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17902 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17904 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17905 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17906 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17907 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17910 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17911 echo "$as_me: executing $ac_dest commands" >&6;}
17913 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17914 # Strip MF so we end up with the name of the file.
17915 mf=`echo "$mf" | sed -e 's/:.*$//'`
17916 # Check whether this is an Automake generated Makefile or not.
17917 # We used to match only the files named `Makefile.in', but
17918 # some people rename them; so instead we look at the file content.
17919 # Grep'ing the first line is not enough: some people post-process
17920 # each Makefile.in and add a new line on top of each file to say so.
17921 # So let's grep whole file.
17922 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17923 dirpart=`(dirname "$mf") 2>/dev/null ||
17924 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17925 X"$mf" : 'X\(//\)[^/]' \| \
17926 X"$mf" : 'X\(//\)$' \| \
17927 X"$mf" : 'X\(/\)' \| \
17928 . : '\(.\)' 2>/dev/null ||
17930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17931 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17932 /^X\(\/\/\)$/{ s//\1/; q; }
17933 /^X\(\/\).*/{ s//\1/; q; }
17938 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
17939 # Extract the definition of DEP_FILES from the Makefile without
17941 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
17942 test -z "$DEPDIR" && continue
17943 # When using ansi2knr, U may be empty or an underscore; expand it
17944 U=`sed -n -e '/^U = / s///p' < "$mf"`
17945 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
17946 # We invoke sed twice because it is the simplest approach to
17947 # changing $(DEPDIR) to its actual value in the expansion.
17948 for file in `sed -n -e '
17949 /^DEP_FILES = .*\\\\$/ {
17958 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
17959 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17960 # Make sure the directory exists.
17961 test -f "$dirpart/$file" && continue
17962 fdir=`(dirname "$file") 2>/dev/null ||
17963 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17964 X"$file" : 'X\(//\)[^/]' \| \
17965 X"$file" : 'X\(//\)$' \| \
17966 X"$file" : 'X\(/\)' \| \
17967 . : '\(.\)' 2>/dev/null ||
17969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17970 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17971 /^X\(\/\/\)$/{ s//\1/; q; }
17972 /^X\(\/\).*/{ s//\1/; q; }
17974 { if $as_mkdir_p; then
17975 mkdir -p $dirpart/$fdir
17977 as_dir=$dirpart/$fdir
17979 while test ! -d "$as_dir"; do
17980 as_dirs="$as_dir $as_dirs"
17981 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17982 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17983 X"$as_dir" : 'X\(//\)[^/]' \| \
17984 X"$as_dir" : 'X\(//\)$' \| \
17985 X"$as_dir" : 'X\(/\)' \| \
17986 . : '\(.\)' 2>/dev/null ||
17988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17989 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17990 /^X\(\/\/\)$/{ s//\1/; q; }
17991 /^X\(\/\).*/{ s//\1/; q; }
17994 test ! -n "$as_dirs" || mkdir $as_dirs
17995 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17996 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17997 { (exit 1); exit 1; }; }; }
17999 # echo "creating $dirpart/$file"
18000 echo '# dummy' > "$dirpart/$file"
18008 cat >>$CONFIG_STATUS <<\_ACEOF
18010 { (exit 0); exit 0; }
18012 chmod +x $CONFIG_STATUS
18013 ac_clean_files=$ac_clean_files_save
18016 # configure is writing to config.log, and then calls config.status.
18017 # config.status does its own redirection, appending to config.log.
18018 # Unfortunately, on DOS this fails, as config.log is still kept open
18019 # by configure, so config.status won't be able to write to it; its
18020 # output is simply discarded. So we exec the FD to /dev/null,
18021 # effectively closing config.log, so it can be properly (re)opened and
18022 # appended to by config.status. When coming back to configure, we
18023 # need to make the FD available again.
18024 if test "$no_create" != yes; then
18026 ac_config_status_args=
18027 test "$silent" = yes &&
18028 ac_config_status_args="$ac_config_status_args --quiet"
18030 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18032 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18033 # would make configure fail if this is the last instruction.
18034 $ac_cs_success || { (exit 1); exit 1; }