2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.56 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 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 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
882 gogo: MP3 GOGO (Only Windows is supported)
883 --disable-alsatest Do not try to compile and run a test Alsa program
884 --disable-artstest Do not try to compile and run a test ARTS program
885 --disable-esdtest Do not try to compile and run a test ESD program
886 --disable-oggtest Do not try to compile and run a test Ogg program
887 --disable-vorbistest Do not try to compile and run a test Vorbis program
888 --enable-interface=interface_list
889 Comma separated interface list
890 --enable-dynamic Enable dynamic link interface (default is no)
891 --enable-dynamic=dynamic_list
892 Comma separated dynamic interface list
893 --enable-ncurses Enable ncurses interface (default is no)
894 --enable-slang Enable slang interface (default is no)
895 --enable-motif Enable motif interface (default is no)
896 --enable-tcltk Enable tcltk interface (default is no)
897 --enable-emacs Enable emacs interface (default is no)
898 --enable-vt100 Enable VT100 interface (default is no)
899 --enable-xaw Enable athena interface (default is no)
900 --enable-xskin Enable X skin interface (default is no)
901 --enable-gtk Enable GTK+ interface (default is no)
902 --disable-gtktest Do not try to compile and run a test GTK program
903 --enable-server Enable server interface (default is no)
904 --enable-alsaseq Enable ALSA sequencer server interface
906 --enable-winsyn Enable Windows Synthesizer interface
908 --enable-portmidisyn Enable PortMIDI Synthesizer interface
910 --enable-winsyng Enable Windows GUI Synthesizer interface
912 --enable-w32gui Enable Windows GUI interface (default is no)
913 --enable-ump UMP configuration (default is no)
914 --enable-offix Enable offix support (default is no)
915 --enable-network Enable network support (default is no)
916 --enable-spectrogram Enable Sound Spectrogram Viewer (default is no)
917 --enable-spline=method Specify spline method.
918 one of no,linear,cubic,lagrange,newton,gauss
920 --enable-wrd Enable WRD interface for X (default is no)
923 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
924 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
925 --with-includes=DIR Specify include directories (colon separated)
926 --with-libraries=DIR Specify library directories (colon separated)
927 --with-default-path=DIR Where timidity.cfg is (PREFIX/share/timidity)
928 --with-module-dir=DIR Where to install interfaces (PREFIX/lib/timidity)
929 --with-lispdir Override the default lisp directory
930 --with-elf create ELF shared object instead of AOUT
931 --with-simd create SIMD friendly binary (default is no)
932 --with-x use the X Window System
933 --with-tcl-includes=DIR Tcl include file path
934 --with-tcl-libs=DIR Tcl library file path
935 --with-tk-includes=DIR Tk include file path
936 --with-tk-libs=DIR Tk library file path
937 --with-offix-includes=DIR Offix include file path
938 --with-offix-libs=DIR Offix include file path
939 --with-nas-library=library NAS absolute library path(Don't use -laudio)
940 --with-nas-includes=DIR NAS include files are in dir
941 --with-default-output=<mode> Specify default output mode (optional):
942 (default|alsa|alib|arts|nas|
943 esd|wav|au|aiff|list|vorbis|
945 --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
946 --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
947 --with-arts-prefix=PFX Prefix where ARTS is installed (optional)
948 --with-esd-prefix=PFX Prefix where ESD is installed (optional)
949 --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
950 --with-ogg=PFX Prefix where libogg is installed (optional)
951 --with-ogg-libraries=DIR Directory where libogg library is installed (optional)
952 --with-ogg-includes=DIR Directory where libogg header files are installed (optional)
953 --with-vorbis=PFX Prefix where libvorbis is installed (optional)
954 --with-vorbis-libraries=DIR Directory where libvorbis library is installed (optional)
955 --with-vorbis-includes=DIR Directory where libvorbis header files are installed (optional)
956 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
957 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
959 Some influential environment variables:
960 CC C compiler command
961 CFLAGS C compiler flags
962 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
963 nonstandard directory <lib dir>
964 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
965 headers in a nonstandard directory <include dir>
968 Use these variables to override the choices made by `configure' or to help
969 it to find libraries and programs with nonstandard names/locations.
971 Report bugs to <root@mput.dip.jp>.
975 if test "$ac_init_help" = "recursive"; then
976 # If there are subdirs, report their specific --help.
978 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
979 test -d $ac_dir || continue
982 if test "$ac_dir" != .; then
983 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
984 # A "../" for each directory in $ac_dir_suffix.
985 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
987 ac_dir_suffix= ac_top_builddir=
991 .) # No --srcdir option. We are building in place.
993 if test -z "$ac_top_builddir"; then
996 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
998 [\\/]* | ?:[\\/]* ) # Absolute path.
999 ac_srcdir=$srcdir$ac_dir_suffix;
1000 ac_top_srcdir=$srcdir ;;
1002 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1003 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1005 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1007 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1008 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1009 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1010 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1013 # Check for guested configure; otherwise get Cygnus style configure.
1014 if test -f $ac_srcdir/configure.gnu; then
1016 $SHELL $ac_srcdir/configure.gnu --help=recursive
1017 elif test -f $ac_srcdir/configure; then
1019 $SHELL $ac_srcdir/configure --help=recursive
1020 elif test -f $ac_srcdir/configure.ac ||
1021 test -f $ac_srcdir/configure.in; then
1023 $ac_configure --help
1025 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1031 test -n "$ac_init_help" && exit 0
1032 if $ac_init_version; then
1034 TiMidity++ configure 2.12.0-pre1b
1035 generated by GNU Autoconf 2.56
1037 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1038 Free Software Foundation, Inc.
1039 This configure script is free software; the Free Software Foundation
1040 gives unlimited permission to copy, distribute and modify it.
1046 This file contains any messages produced by compilers while
1047 running configure, to aid debugging if configure makes a mistake.
1049 It was created by TiMidity++ $as_me 2.12.0-pre1b, which was
1050 generated by GNU Autoconf 2.56. Invocation command line was
1061 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1062 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1063 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1064 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1065 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1067 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1068 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1070 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1071 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1072 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1073 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1074 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1075 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1076 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1084 test -z "$as_dir" && as_dir=.
1085 echo "PATH: $as_dir"
1100 # Keep a trace of the command line.
1101 # Strip out --no-create and --no-recursion so they do not pile up.
1102 # Strip out --silent because we don't want to record it for future runs.
1103 # Also quote any args containing shell meta-characters.
1104 # Make two passes to allow for proper duplicate-argument suppression.
1109 ac_must_keep_next=false
1115 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1117 | -silent | --silent | --silen | --sile | --sil)
1119 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1120 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1123 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1125 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1126 if test $ac_must_keep_next = true; then
1127 ac_must_keep_next=false # Got value, back to normal.
1130 *=* | --config-cache | -C | -disable-* | --disable-* \
1131 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1132 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1133 | -with-* | --with-* | -without-* | --without-* | --x)
1134 case "$ac_configure_args0 " in
1135 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1138 -* ) ac_must_keep_next=true ;;
1141 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1142 # Get rid of the leading space.
1148 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1149 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1151 # When interrupted or exit'd, cleanup temporary files, and complete
1152 # config.log. We remove comments because anyway the quotes in there
1153 # would cause problems or look ugly.
1154 # WARNING: Be sure not to use single quotes in there, as some shells,
1155 # such as our DU 5.0 friend, will then `close' the trap.
1156 trap 'exit_status=$?
1157 # Save into config.log some information that might help in debugging.
1162 ## ---------------- ##
1163 ## Cache variables. ##
1164 ## ---------------- ##
1167 # The following way of writing the cache mishandles newlines in values,
1170 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1173 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1174 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1178 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1185 ## ----------------- ##
1186 ## Output variables. ##
1187 ## ----------------- ##
1190 for ac_var in $ac_subst_vars
1192 eval ac_val=$`echo $ac_var`
1193 echo "$ac_var='"'"'$ac_val'"'"'"
1197 if test -n "$ac_subst_files"; then
1204 for ac_var in $ac_subst_files
1206 eval ac_val=$`echo $ac_var`
1207 echo "$ac_var='"'"'$ac_val'"'"'"
1212 if test -s confdefs.h; then
1219 sed "/^$/d" confdefs.h | sort
1222 test "$ac_signal" != 0 &&
1223 echo "$as_me: caught signal $ac_signal"
1224 echo "$as_me: exit $exit_status"
1226 rm -f core core.* *.core &&
1227 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1230 for ac_signal in 1 2 13 15; do
1231 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1235 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1236 rm -rf conftest* confdefs.h
1237 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1240 # Predefined preprocessor variables.
1242 cat >>confdefs.h <<_ACEOF
1243 #define PACKAGE_NAME "$PACKAGE_NAME"
1247 cat >>confdefs.h <<_ACEOF
1248 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1257 cat >>confdefs.h <<_ACEOF
1258 #define PACKAGE_STRING "$PACKAGE_STRING"
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1267 # Let the site file select an alternate cache file if it wants to.
1268 # Prefer explicitly selected file to automatically selected ones.
1269 if test -z "$CONFIG_SITE"; then
1270 if test "x$prefix" != xNONE; then
1271 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1273 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1276 for ac_site_file in $CONFIG_SITE; do
1277 if test -r "$ac_site_file"; then
1278 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1279 echo "$as_me: loading site script $ac_site_file" >&6;}
1280 sed 's/^/| /' "$ac_site_file" >&5
1285 if test -r "$cache_file"; then
1286 # Some versions of bash will fail to source /dev/null (special
1287 # files actually), so we avoid doing that.
1288 if test -f "$cache_file"; then
1289 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1290 echo "$as_me: loading cache $cache_file" >&6;}
1292 [\\/]* | ?:[\\/]* ) . $cache_file;;
1293 *) . ./$cache_file;;
1297 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1298 echo "$as_me: creating cache $cache_file" >&6;}
1302 # Check that the precious variables saved in the cache have kept the same
1304 ac_cache_corrupted=false
1305 for ac_var in `(set) 2>&1 |
1306 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1307 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1308 eval ac_new_set=\$ac_env_${ac_var}_set
1309 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1310 eval ac_new_val="\$ac_env_${ac_var}_value"
1311 case $ac_old_set,$ac_new_set in
1313 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1314 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1315 ac_cache_corrupted=: ;;
1317 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1318 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1319 ac_cache_corrupted=: ;;
1322 if test "x$ac_old_val" != "x$ac_new_val"; then
1323 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1324 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1325 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1326 echo "$as_me: former value: $ac_old_val" >&2;}
1327 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1328 echo "$as_me: current value: $ac_new_val" >&2;}
1329 ac_cache_corrupted=:
1332 # Pass precious variables to config.status.
1333 if test "$ac_new_set" = set; then
1335 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1336 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1337 *) ac_arg=$ac_var=$ac_new_val ;;
1339 case " $ac_configure_args " in
1340 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1341 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1345 if $ac_cache_corrupted; then
1346 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1347 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1348 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1349 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1350 { (exit 1); exit 1; }; }
1354 ac_cpp='$CPP $CPPFLAGS'
1355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1386 for ac_dir in autoconf $srcdir/autoconf; do
1387 if test -f $ac_dir/install-sh; then
1389 ac_install_sh="$ac_aux_dir/install-sh -c"
1391 elif test -f $ac_dir/install.sh; then
1393 ac_install_sh="$ac_aux_dir/install.sh -c"
1395 elif test -f $ac_dir/shtool; then
1397 ac_install_sh="$ac_aux_dir/shtool install -c"
1401 if test -z "$ac_aux_dir"; then
1402 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1403 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1404 { (exit 1); exit 1; }; }
1406 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1407 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1408 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1410 # Make sure we can run config.sub.
1411 $ac_config_sub sun4 >/dev/null 2>&1 ||
1412 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1413 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1414 { (exit 1); exit 1; }; }
1416 echo "$as_me:$LINENO: checking build system type" >&5
1417 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1418 if test "${ac_cv_build+set}" = set; then
1419 echo $ECHO_N "(cached) $ECHO_C" >&6
1421 ac_cv_build_alias=$build_alias
1422 test -z "$ac_cv_build_alias" &&
1423 ac_cv_build_alias=`$ac_config_guess`
1424 test -z "$ac_cv_build_alias" &&
1425 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1426 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1427 { (exit 1); exit 1; }; }
1428 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1429 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1430 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1431 { (exit 1); exit 1; }; }
1434 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1435 echo "${ECHO_T}$ac_cv_build" >&6
1437 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1438 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1439 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1442 echo "$as_me:$LINENO: checking host system type" >&5
1443 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1444 if test "${ac_cv_host+set}" = set; then
1445 echo $ECHO_N "(cached) $ECHO_C" >&6
1447 ac_cv_host_alias=$host_alias
1448 test -z "$ac_cv_host_alias" &&
1449 ac_cv_host_alias=$ac_cv_build_alias
1450 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1451 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1452 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1453 { (exit 1); exit 1; }; }
1456 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1457 echo "${ECHO_T}$ac_cv_host" >&6
1459 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1460 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1461 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1464 echo "$as_me:$LINENO: checking target system type" >&5
1465 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1466 if test "${ac_cv_target+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1469 ac_cv_target_alias=$target_alias
1470 test "x$ac_cv_target_alias" = "x" &&
1471 ac_cv_target_alias=$ac_cv_host_alias
1472 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1473 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1474 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1475 { (exit 1); exit 1; }; }
1478 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1479 echo "${ECHO_T}$ac_cv_target" >&6
1480 target=$ac_cv_target
1481 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1482 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1483 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1486 # The aliases save the names the user supplied, while $host etc.
1487 # will get canonicalized.
1488 test -n "$target_alias" &&
1489 test "$program_prefix$program_suffix$program_transform_name" = \
1491 program_prefix=${target_alias}-
1492 am__api_version="1.7"
1493 # Find a good install program. We prefer a C program (faster),
1494 # so one script is as good as another. But avoid the broken or
1495 # incompatible versions:
1496 # SysV /etc/install, /usr/sbin/install
1497 # SunOS /usr/etc/install
1498 # IRIX /sbin/install
1500 # AmigaOS /C/install, which installs bootblocks on floppy discs
1501 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1502 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1503 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1504 # ./install, which can be erroneously created by make from ./install.sh.
1505 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1506 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1507 if test -z "$INSTALL"; then
1508 if test "${ac_cv_path_install+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515 test -z "$as_dir" && as_dir=.
1516 # Account for people who put trailing slashes in PATH elements.
1518 ./ | .// | /cC/* | \
1519 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1522 # OSF1 and SCO ODT 3.0 have their own names for install.
1523 # Don't use installbsd from OSF since it installs stuff as root
1525 for ac_prog in ginstall scoinst install; do
1526 for ac_exec_ext in '' $ac_executable_extensions; do
1527 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1528 if test $ac_prog = install &&
1529 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1530 # AIX install. It has an incompatible calling convention.
1532 elif test $ac_prog = install &&
1533 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1534 # program-specific install script used by HP pwplus--don't use.
1537 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1549 if test "${ac_cv_path_install+set}" = set; then
1550 INSTALL=$ac_cv_path_install
1552 # As a last resort, use the slow shell script. We don't cache a
1553 # path for INSTALL within a source directory, because that will
1554 # break other packages using the cache if that directory is
1555 # removed, or if the path is relative.
1556 INSTALL=$ac_install_sh
1559 echo "$as_me:$LINENO: result: $INSTALL" >&5
1560 echo "${ECHO_T}$INSTALL" >&6
1562 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1563 # It thinks the first close brace ends the variable substitution.
1564 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1566 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1568 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1570 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1571 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1574 echo timestamp > conftest.file
1575 # Do `set' in a subshell so we don't clobber the current shell's
1576 # arguments. Must try -L first in case configure is actually a
1577 # symlink; some systems play weird games with the mod time of symlinks
1578 # (eg FreeBSD returns the mod time of the symlink's containing
1581 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1582 if test "$*" = "X"; then
1584 set X `ls -t $srcdir/configure conftest.file`
1587 if test "$*" != "X $srcdir/configure conftest.file" \
1588 && test "$*" != "X conftest.file $srcdir/configure"; then
1590 # If neither matched, then we have a broken ls. This can happen
1591 # if, for instance, CONFIG_SHELL is bash and it inherits a
1592 # broken ls alias from the environment. This has actually
1593 # happened. Such a system could not be considered "sane".
1594 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1595 alias in your environment" >&5
1596 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1597 alias in your environment" >&2;}
1598 { (exit 1); exit 1; }; }
1601 test "$2" = conftest.file
1607 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1608 Check your system clock" >&5
1609 echo "$as_me: error: newly created file is older than distributed files!
1610 Check your system clock" >&2;}
1611 { (exit 1); exit 1; }; }
1613 echo "$as_me:$LINENO: result: yes" >&5
1614 echo "${ECHO_T}yes" >&6
1615 test "$program_prefix" != NONE &&
1616 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1617 # Use a double $ so make ignores it.
1618 test "$program_suffix" != NONE &&
1619 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1620 # Double any \ or $. echo might interpret backslashes.
1621 # By default was `s,x,x', remove it if useless.
1622 cat <<\_ACEOF >conftest.sed
1623 s/[\\$]/&&/g;s/;s,x,x,$//
1625 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1629 # expand $ac_aux_dir to an absolute path
1630 am_aux_dir=`cd $ac_aux_dir && pwd`
1632 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1633 # Use eval to expand $SHELL
1634 if eval "$MISSING --run true"; then
1635 am_missing_run="$MISSING --run "
1638 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1639 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1642 for ac_prog in gawk mawk nawk awk
1644 # Extract the first word of "$ac_prog", so it can be a program name with args.
1645 set dummy $ac_prog; ac_word=$2
1646 echo "$as_me:$LINENO: checking for $ac_word" >&5
1647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1648 if test "${ac_cv_prog_AWK+set}" = set; then
1649 echo $ECHO_N "(cached) $ECHO_C" >&6
1651 if test -n "$AWK"; then
1652 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658 test -z "$as_dir" && as_dir=.
1659 for ac_exec_ext in '' $ac_executable_extensions; do
1660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1661 ac_cv_prog_AWK="$ac_prog"
1662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671 if test -n "$AWK"; then
1672 echo "$as_me:$LINENO: result: $AWK" >&5
1673 echo "${ECHO_T}$AWK" >&6
1675 echo "$as_me:$LINENO: result: no" >&5
1676 echo "${ECHO_T}no" >&6
1679 test -n "$AWK" && break
1682 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1683 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1684 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1685 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1686 echo $ECHO_N "(cached) $ECHO_C" >&6
1688 cat >conftest.make <<\_ACEOF
1690 @echo 'ac_maketemp="$(MAKE)"'
1692 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1693 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1694 if test -n "$ac_maketemp"; then
1695 eval ac_cv_prog_make_${ac_make}_set=yes
1697 eval ac_cv_prog_make_${ac_make}_set=no
1701 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1702 echo "$as_me:$LINENO: result: yes" >&5
1703 echo "${ECHO_T}yes" >&6
1706 echo "$as_me:$LINENO: result: no" >&5
1707 echo "${ECHO_T}no" >&6
1708 SET_MAKE="MAKE=${MAKE-make}"
1711 # test to see if srcdir already configured
1712 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1713 test -f $srcdir/config.status; then
1714 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1715 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1716 { (exit 1); exit 1; }; }
1719 # test whether we have cygpath
1720 if test -z "$CYGPATH_W"; then
1721 if (cygpath --version) >/dev/null 2>/dev/null; then
1722 CYGPATH_W='cygpath -w'
1729 # Define the identity of the package.
1731 VERSION=2.12.0-pre1b
1734 cat >>confdefs.h <<_ACEOF
1735 #define PACKAGE "$PACKAGE"
1739 cat >>confdefs.h <<_ACEOF
1740 #define VERSION "$VERSION"
1743 # Some tools Automake needs.
1745 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1748 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1751 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1754 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1757 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1760 AMTAR=${AMTAR-"${am_missing_run}tar"}
1762 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1764 # Installed binaries are usually stripped using `strip' when the user
1765 # run `make install-strip'. However `strip' might not be the right
1766 # tool to use in cross-compilation environments, therefore Automake
1767 # will honor the `STRIP' environment variable to overrule this program.
1768 if test "$cross_compiling" != no; then
1769 if test -n "$ac_tool_prefix"; then
1770 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1771 set dummy ${ac_tool_prefix}strip; ac_word=$2
1772 echo "$as_me:$LINENO: checking for $ac_word" >&5
1773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1774 if test "${ac_cv_prog_STRIP+set}" = set; then
1775 echo $ECHO_N "(cached) $ECHO_C" >&6
1777 if test -n "$STRIP"; then
1778 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1784 test -z "$as_dir" && as_dir=.
1785 for ac_exec_ext in '' $ac_executable_extensions; do
1786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1787 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1796 STRIP=$ac_cv_prog_STRIP
1797 if test -n "$STRIP"; then
1798 echo "$as_me:$LINENO: result: $STRIP" >&5
1799 echo "${ECHO_T}$STRIP" >&6
1801 echo "$as_me:$LINENO: result: no" >&5
1802 echo "${ECHO_T}no" >&6
1806 if test -z "$ac_cv_prog_STRIP"; then
1808 # Extract the first word of "strip", so it can be a program name with args.
1809 set dummy strip; ac_word=$2
1810 echo "$as_me:$LINENO: checking for $ac_word" >&5
1811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1812 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1813 echo $ECHO_N "(cached) $ECHO_C" >&6
1815 if test -n "$ac_ct_STRIP"; then
1816 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1822 test -z "$as_dir" && as_dir=.
1823 for ac_exec_ext in '' $ac_executable_extensions; do
1824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1825 ac_cv_prog_ac_ct_STRIP="strip"
1826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1832 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1835 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1836 if test -n "$ac_ct_STRIP"; then
1837 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1838 echo "${ECHO_T}$ac_ct_STRIP" >&6
1840 echo "$as_me:$LINENO: result: no" >&5
1841 echo "${ECHO_T}no" >&6
1846 STRIP="$ac_cv_prog_STRIP"
1850 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1852 # We need awk for the "check" target. The system "awk" is bad on
1858 ac_config_headers="$ac_config_headers config.h interface.h"
1860 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1861 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1862 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1863 if test "${enable_maintainer_mode+set}" = set; then
1864 enableval="$enable_maintainer_mode"
1865 USE_MAINTAINER_MODE=$enableval
1867 USE_MAINTAINER_MODE=no
1869 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1870 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1873 if test $USE_MAINTAINER_MODE = yes; then
1874 MAINTAINER_MODE_TRUE=
1875 MAINTAINER_MODE_FALSE='#'
1877 MAINTAINER_MODE_TRUE='#'
1878 MAINTAINER_MODE_FALSE=
1881 MAINT=$MAINTAINER_MODE_TRUE
1885 SHELL=${CONFIG_SHELL-"/bin/sh"}
1888 echo "$as_me:$LINENO: checking whether grep returns status" >&5
1889 echo $ECHO_N "checking whether grep returns status... $ECHO_C" >&6
1890 echo "grimblepritz" >grimble
1891 if grep blurfldyick grimble >/dev/null 2>&1 ; then
1892 contains="./contains"
1893 elif grep grimblepritz grimble >/dev/null 2>&1 ; then
1896 contains="./contains"
1900 grep) echo "$as_me:$LINENO: result: yes" >&5
1901 echo "${ECHO_T}yes" >&6
1904 echo "$as_me:$LINENO: result: AGH! Grep doesn't return a status. Attempting remedial action." >&5
1905 echo "${ECHO_T}AGH! Grep doesn't return a status. Attempting remedial action." >&6
1906 cat >./contains <<'EOSS'
1907 grep "$1" "$2" >.greptmp && cat .greptmp && test -s .greptmp
1909 chmod +x "./contains"
1914 # Check for compiler options -- such as debug flags.
1916 echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
1917 echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6
1918 # Check whether --enable-debug or --disable-debug was given.
1919 if test "${enable_debug+set}" = set; then
1920 enableval="$enable_debug"
1921 timidity_cv_debug="yes"
1923 timidity_cv_debug="no"
1925 if test "x$timidity_cv_debug" = "xyes"; then
1927 cat >>confdefs.h <<\_ACEOF
1931 CFLAGS=${CFLAGS-"-g"}
1933 if test "x$timidity_cv_debug" = "xno"; then
1935 cat >>confdefs.h <<\_ACEOF
1940 echo "$as_me:$LINENO: result: $timidity_cv_debug" >&5
1941 echo "${ECHO_T}$timidity_cv_debug" >&6
1943 CFLAGS=${CFLAGS-"-O2"}
1945 if test "x$with_x" = x; then
1951 # Checking gcc environment
1952 for i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do
1953 LDFLAGS="$LDFLAGS -L${i}"
1955 for i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do
1956 CPPFLAGS="$CPPFLAGS -I${i}"
1959 # add $prefix if specified.
1960 if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then
1961 LDFLAGS="-L$prefix/lib $LDFLAGS"
1962 SHLDFLAGS="-L$prefix/lib $SHLDFLAGS"
1963 CPPFLAGS="-I$prefix/include $CPPFLAGS"
1967 # Check whether --with-includes or --without-includes was given.
1968 if test "${with_includes+set}" = set; then
1969 withval="$with_includes"
1971 for i in `echo "$withval"|sed -e 's,:, ,g'`; do
1974 CPPFLAGS="$j$CPPFLAGS"
1979 # Check whether --with-libraries or --without-libraries was given.
1980 if test "${with_libraries+set}" = set; then
1981 withval="$with_libraries"
1983 for i in `echo "$withval"|sed -e 's,:, ,g'`; do
1986 LDFLAGS="$j$LDFLAGS"
1992 # Check whether --with-default-path or --without-default-path was given.
1993 if test "${with_default_path+set}" = set; then
1994 withval="$with_default_path"
1998 if test "x$prefix" != "xNONE"; then
1999 pkgdatadir='${prefix}/share/timidity'
2001 pkgdatadir='/usr/local/share/timidity'
2005 tmpdefpath="`eval \"echo ${pkgdatadir}\"`"
2007 cat >>confdefs.h <<_ACEOF
2008 #define DEFAULT_PATH "$tmpdefpath"
2012 cat >>confdefs.h <<\_ACEOF
2013 #define PKGDATADIR DEFAULT_PATH
2018 # Check whether --with-module-dir or --without-module-dir was given.
2019 if test "${with_module_dir+set}" = set; then
2020 withval="$with_module_dir"
2024 if test "x$prefix" != "xNONE"; then
2025 pkglibdir='${prefix}/lib/timidity'
2027 pkglibdir='/usr/local/lib/timidity'
2031 tmplibdir="`eval \"echo ${pkglibdir}\"`"
2033 cat >>confdefs.h <<_ACEOF
2034 #define PKGLIBDIR "$tmplibdir"
2039 # Checks for programs.
2041 # Check whether --with-lispdir or --without-lispdir was given.
2042 if test "${with_lispdir+set}" = set; then
2043 withval="$with_lispdir"
2045 echo "$as_me:$LINENO: checking where .elc files should go" >&5
2046 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2047 echo "$as_me:$LINENO: result: $lispdir" >&5
2048 echo "${ECHO_T}$lispdir" >&6
2051 # If set to t, that means we are running in a shell under Emacs.
2052 # If you have an Emacs named "t", then use the full path.
2053 test x"$EMACS" = xt && EMACS=
2054 for ac_prog in emacs xemacs
2056 # Extract the first word of "$ac_prog", so it can be a program name with args.
2057 set dummy $ac_prog; ac_word=$2
2058 echo "$as_me:$LINENO: checking for $ac_word" >&5
2059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2060 if test "${ac_cv_prog_EMACS+set}" = set; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2063 if test -n "$EMACS"; then
2064 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070 test -z "$as_dir" && as_dir=.
2071 for ac_exec_ext in '' $ac_executable_extensions; do
2072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2073 ac_cv_prog_EMACS="$ac_prog"
2074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2082 EMACS=$ac_cv_prog_EMACS
2083 if test -n "$EMACS"; then
2084 echo "$as_me:$LINENO: result: $EMACS" >&5
2085 echo "${ECHO_T}$EMACS" >&6
2087 echo "$as_me:$LINENO: result: no" >&5
2088 echo "${ECHO_T}no" >&6
2091 test -n "$EMACS" && break
2093 test -n "$EMACS" || EMACS="no"
2095 if test $EMACS != "no"; then
2096 if test x${lispdir+set} != xset; then
2097 echo "$as_me:$LINENO: checking where .elc files should go" >&5
2098 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2099 if test "${am_cv_lispdir+set}" = set; then
2100 echo $ECHO_N "(cached) $ECHO_C" >&6
2102 # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
2103 # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
2104 # which is non-obvious for non-emacs users.
2105 # Redirecting /dev/null should help a bit; pity we can't detect "broken"
2106 # emacsen earlier and avoid running this altogether.
2107 { (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
2108 ($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
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); }
2112 am_cv_lispdir=`sed -n \
2114 -e '/.*\/lib\/\(x\?emacs\/site-lisp\)$/{s,,${libdir}/\1,;p;q;}' \
2115 -e '/.*\/share\/\(x\?emacs\/site-lisp\)$/{s,,${datadir}/\1,;p;q;}' \
2118 if test -z "$am_cv_lispdir"; then
2119 am_cv_lispdir='${datadir}/emacs/site-lisp'
2123 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2124 echo "${ECHO_T}$am_cv_lispdir" >&6
2125 lispdir="$am_cv_lispdir"
2133 ac_cpp='$CPP $CPPFLAGS'
2134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2137 if test -n "$ac_tool_prefix"; then
2138 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2139 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2140 echo "$as_me:$LINENO: checking for $ac_word" >&5
2141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2142 if test "${ac_cv_prog_CC+set}" = set; then
2143 echo $ECHO_N "(cached) $ECHO_C" >&6
2145 if test -n "$CC"; then
2146 ac_cv_prog_CC="$CC" # Let the user override the test.
2148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 test -z "$as_dir" && as_dir=.
2153 for ac_exec_ext in '' $ac_executable_extensions; do
2154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2155 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2165 if test -n "$CC"; then
2166 echo "$as_me:$LINENO: result: $CC" >&5
2167 echo "${ECHO_T}$CC" >&6
2169 echo "$as_me:$LINENO: result: no" >&5
2170 echo "${ECHO_T}no" >&6
2174 if test -z "$ac_cv_prog_CC"; then
2176 # Extract the first word of "gcc", so it can be a program name with args.
2177 set dummy gcc; ac_word=$2
2178 echo "$as_me:$LINENO: checking for $ac_word" >&5
2179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2180 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2183 if test -n "$ac_ct_CC"; then
2184 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 test -z "$as_dir" && as_dir=.
2191 for ac_exec_ext in '' $ac_executable_extensions; do
2192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2193 ac_cv_prog_ac_ct_CC="gcc"
2194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2202 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2203 if test -n "$ac_ct_CC"; then
2204 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2205 echo "${ECHO_T}$ac_ct_CC" >&6
2207 echo "$as_me:$LINENO: result: no" >&5
2208 echo "${ECHO_T}no" >&6
2216 if test -z "$CC"; then
2217 if test -n "$ac_tool_prefix"; then
2218 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2219 set dummy ${ac_tool_prefix}cc; ac_word=$2
2220 echo "$as_me:$LINENO: checking for $ac_word" >&5
2221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2222 if test "${ac_cv_prog_CC+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2225 if test -n "$CC"; then
2226 ac_cv_prog_CC="$CC" # Let the user override the test.
2228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2232 test -z "$as_dir" && as_dir=.
2233 for ac_exec_ext in '' $ac_executable_extensions; do
2234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2235 ac_cv_prog_CC="${ac_tool_prefix}cc"
2236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245 if test -n "$CC"; then
2246 echo "$as_me:$LINENO: result: $CC" >&5
2247 echo "${ECHO_T}$CC" >&6
2249 echo "$as_me:$LINENO: result: no" >&5
2250 echo "${ECHO_T}no" >&6
2254 if test -z "$ac_cv_prog_CC"; then
2256 # Extract the first word of "cc", so it can be a program name with args.
2257 set dummy cc; ac_word=$2
2258 echo "$as_me:$LINENO: checking for $ac_word" >&5
2259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2260 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2261 echo $ECHO_N "(cached) $ECHO_C" >&6
2263 if test -n "$ac_ct_CC"; then
2264 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270 test -z "$as_dir" && as_dir=.
2271 for ac_exec_ext in '' $ac_executable_extensions; do
2272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2273 ac_cv_prog_ac_ct_CC="cc"
2274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2282 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2283 if test -n "$ac_ct_CC"; then
2284 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2285 echo "${ECHO_T}$ac_ct_CC" >&6
2287 echo "$as_me:$LINENO: result: no" >&5
2288 echo "${ECHO_T}no" >&6
2297 if test -z "$CC"; then
2298 # Extract the first word of "cc", so it can be a program name with args.
2299 set dummy cc; ac_word=$2
2300 echo "$as_me:$LINENO: checking for $ac_word" >&5
2301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2302 if test "${ac_cv_prog_CC+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 if test -n "$CC"; then
2306 ac_cv_prog_CC="$CC" # Let the user override the test.
2309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313 test -z "$as_dir" && as_dir=.
2314 for ac_exec_ext in '' $ac_executable_extensions; do
2315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2316 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2317 ac_prog_rejected=yes
2321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2327 if test $ac_prog_rejected = yes; then
2328 # We found a bogon in the path, so make sure we never use it.
2329 set dummy $ac_cv_prog_CC
2331 if test $# != 0; then
2332 # We chose a different compiler from the bogus one.
2333 # However, it has the same basename, so the bogon will be chosen
2334 # first if we set CC to just the basename; use the full file name.
2336 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2342 if test -n "$CC"; then
2343 echo "$as_me:$LINENO: result: $CC" >&5
2344 echo "${ECHO_T}$CC" >&6
2346 echo "$as_me:$LINENO: result: no" >&5
2347 echo "${ECHO_T}no" >&6
2351 if test -z "$CC"; then
2352 if test -n "$ac_tool_prefix"; then
2355 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2356 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2357 echo "$as_me:$LINENO: checking for $ac_word" >&5
2358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2359 if test "${ac_cv_prog_CC+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 if test -n "$CC"; then
2363 ac_cv_prog_CC="$CC" # Let the user override the test.
2365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 test -z "$as_dir" && as_dir=.
2370 for ac_exec_ext in '' $ac_executable_extensions; do
2371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2372 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382 if test -n "$CC"; then
2383 echo "$as_me:$LINENO: result: $CC" >&5
2384 echo "${ECHO_T}$CC" >&6
2386 echo "$as_me:$LINENO: result: no" >&5
2387 echo "${ECHO_T}no" >&6
2390 test -n "$CC" && break
2393 if test -z "$CC"; then
2397 # Extract the first word of "$ac_prog", so it can be a program name with args.
2398 set dummy $ac_prog; ac_word=$2
2399 echo "$as_me:$LINENO: checking for $ac_word" >&5
2400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2401 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2402 echo $ECHO_N "(cached) $ECHO_C" >&6
2404 if test -n "$ac_ct_CC"; then
2405 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411 test -z "$as_dir" && as_dir=.
2412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2414 ac_cv_prog_ac_ct_CC="$ac_prog"
2415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2423 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2424 if test -n "$ac_ct_CC"; then
2425 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2426 echo "${ECHO_T}$ac_ct_CC" >&6
2428 echo "$as_me:$LINENO: result: no" >&5
2429 echo "${ECHO_T}no" >&6
2432 test -n "$ac_ct_CC" && break
2441 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2442 See \`config.log' for more details." >&5
2443 echo "$as_me: error: no acceptable C compiler found in \$PATH
2444 See \`config.log' for more details." >&2;}
2445 { (exit 1); exit 1; }; }
2447 # Provide some information about the compiler.
2448 echo "$as_me:$LINENO:" \
2449 "checking for C compiler version" >&5
2450 ac_compiler=`set X $ac_compile; echo $2`
2451 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2452 (eval $ac_compiler --version </dev/null >&5) 2>&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }
2456 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2457 (eval $ac_compiler -v </dev/null >&5) 2>&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }
2461 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2462 (eval $ac_compiler -V </dev/null >&5) 2>&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }
2467 cat >conftest.$ac_ext <<_ACEOF
2468 #line $LINENO "configure"
2471 cat confdefs.h >>conftest.$ac_ext
2472 cat >>conftest.$ac_ext <<_ACEOF
2473 /* end confdefs.h. */
2483 ac_clean_files_save=$ac_clean_files
2484 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2485 # Try to create an executable without -o first, disregard a.out.
2486 # It will help us diagnose broken compilers, and finding out an intuition
2488 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2489 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2490 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2491 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2492 (eval $ac_link_default) 2>&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }; then
2496 # Find the output, starting from the most likely. This scheme is
2497 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2500 # Be careful to initialize this variable, since it used to be cached.
2501 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2503 # b.out is created by i960 compilers.
2504 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2506 test -f "$ac_file" || continue
2508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2511 # This is the source file.
2514 # We found the default executable, but exeext='' is most
2518 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2519 # FIXME: I believe we export ac_cv_exeext for Libtool,
2520 # but it would be cool to find out if it's true. Does anybody
2521 # maintain Libtool? --akim.
2529 echo "$as_me: failed program was:" >&5
2530 sed 's/^/| /' conftest.$ac_ext >&5
2532 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2533 See \`config.log' for more details." >&5
2534 echo "$as_me: error: C compiler cannot create executables
2535 See \`config.log' for more details." >&2;}
2536 { (exit 77); exit 77; }; }
2539 ac_exeext=$ac_cv_exeext
2540 echo "$as_me:$LINENO: result: $ac_file" >&5
2541 echo "${ECHO_T}$ac_file" >&6
2543 # Check the compiler produces executables we can run. If not, either
2544 # the compiler is broken, or we cross compile.
2545 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2546 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2547 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2548 # If not cross compiling, check that we can run a simple program.
2549 if test "$cross_compiling" != yes; then
2550 if { ac_try='./$ac_file'
2551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }; }; then
2558 if test "$cross_compiling" = maybe; then
2561 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2562 If you meant to cross compile, use \`--host'.
2563 See \`config.log' for more details." >&5
2564 echo "$as_me: error: cannot run C compiled programs.
2565 If you meant to cross compile, use \`--host'.
2566 See \`config.log' for more details." >&2;}
2567 { (exit 1); exit 1; }; }
2571 echo "$as_me:$LINENO: result: yes" >&5
2572 echo "${ECHO_T}yes" >&6
2574 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2575 ac_clean_files=$ac_clean_files_save
2576 # Check the compiler produces executables we can run. If not, either
2577 # the compiler is broken, or we cross compile.
2578 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2579 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2580 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2581 echo "${ECHO_T}$cross_compiling" >&6
2583 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2584 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2586 (eval $ac_link) 2>&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; then
2590 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2591 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2592 # work properly (i.e., refer to `conftest.exe'), while it won't with
2594 for ac_file in conftest.exe conftest conftest.*; do
2595 test -f "$ac_file" || continue
2597 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2598 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2605 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2606 See \`config.log' for more details." >&5
2607 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2608 See \`config.log' for more details." >&2;}
2609 { (exit 1); exit 1; }; }
2612 rm -f conftest$ac_cv_exeext
2613 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2614 echo "${ECHO_T}$ac_cv_exeext" >&6
2616 rm -f conftest.$ac_ext
2617 EXEEXT=$ac_cv_exeext
2619 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2620 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2621 if test "${ac_cv_objext+set}" = set; then
2622 echo $ECHO_N "(cached) $ECHO_C" >&6
2624 cat >conftest.$ac_ext <<_ACEOF
2625 #line $LINENO "configure"
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>conftest.$ac_ext <<_ACEOF
2630 /* end confdefs.h. */
2640 rm -f conftest.o conftest.obj
2641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2642 (eval $ac_compile) 2>&5
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); }; then
2646 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2648 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2649 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2654 echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2657 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2658 See \`config.log' for more details." >&5
2659 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2660 See \`config.log' for more details." >&2;}
2661 { (exit 1); exit 1; }; }
2664 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2666 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2667 echo "${ECHO_T}$ac_cv_objext" >&6
2668 OBJEXT=$ac_cv_objext
2670 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2671 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2672 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2673 echo $ECHO_N "(cached) $ECHO_C" >&6
2675 cat >conftest.$ac_ext <<_ACEOF
2676 #line $LINENO "configure"
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h. */
2694 rm -f conftest.$ac_objext
2695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2696 (eval $ac_compile) 2>&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); } &&
2700 { ac_try='test -s conftest.$ac_objext'
2701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }; }; then
2708 echo "$as_me: failed program was:" >&5
2709 sed 's/^/| /' conftest.$ac_ext >&5
2713 rm -f conftest.$ac_objext conftest.$ac_ext
2714 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2717 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2718 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2719 GCC=`test $ac_compiler_gnu = yes && echo yes`
2720 ac_test_CFLAGS=${CFLAGS+set}
2721 ac_save_CFLAGS=$CFLAGS
2723 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2724 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2725 if test "${ac_cv_prog_cc_g+set}" = set; then
2726 echo $ECHO_N "(cached) $ECHO_C" >&6
2728 cat >conftest.$ac_ext <<_ACEOF
2729 #line $LINENO "configure"
2732 cat confdefs.h >>conftest.$ac_ext
2733 cat >>conftest.$ac_ext <<_ACEOF
2734 /* end confdefs.h. */
2744 rm -f conftest.$ac_objext
2745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2746 (eval $ac_compile) 2>&5
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); } &&
2750 { ac_try='test -s conftest.$ac_objext'
2751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; }; then
2758 echo "$as_me: failed program was:" >&5
2759 sed 's/^/| /' conftest.$ac_ext >&5
2763 rm -f conftest.$ac_objext conftest.$ac_ext
2765 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2766 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2767 if test "$ac_test_CFLAGS" = set; then
2768 CFLAGS=$ac_save_CFLAGS
2769 elif test $ac_cv_prog_cc_g = yes; then
2770 if test "$GCC" = yes; then
2776 if test "$GCC" = yes; then
2782 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2783 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2784 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2787 ac_cv_prog_cc_stdc=no
2789 cat >conftest.$ac_ext <<_ACEOF
2790 #line $LINENO "configure"
2793 cat confdefs.h >>conftest.$ac_ext
2794 cat >>conftest.$ac_ext <<_ACEOF
2795 /* end confdefs.h. */
2798 #include <sys/types.h>
2799 #include <sys/stat.h>
2800 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2801 struct buf { int x; };
2802 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2803 static char *e (p, i)
2809 static char *f (char * (*g) (char **, int), char **p, ...)
2814 s = g (p, va_arg (v,int));
2818 int test (int i, double x);
2819 struct s1 {int (*f) (int a);};
2820 struct s2 {int (*f) (double a);};
2821 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2827 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2832 # Don't try gcc -ansi; that turns off useful extensions and
2833 # breaks some systems' header files.
2834 # AIX -qlanglvl=ansi
2835 # Ultrix and OSF/1 -std1
2836 # HP-UX 10.20 and later -Ae
2837 # HP-UX older versions -Aa -D_HPUX_SOURCE
2838 # SVR4 -Xc -D__EXTENSIONS__
2839 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2841 CC="$ac_save_CC $ac_arg"
2842 rm -f conftest.$ac_objext
2843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2844 (eval $ac_compile) 2>&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); } &&
2848 { ac_try='test -s conftest.$ac_objext'
2849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; }; then
2854 ac_cv_prog_cc_stdc=$ac_arg
2857 echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2861 rm -f conftest.$ac_objext
2863 rm -f conftest.$ac_ext conftest.$ac_objext
2868 case "x$ac_cv_prog_cc_stdc" in
2870 echo "$as_me:$LINENO: result: none needed" >&5
2871 echo "${ECHO_T}none needed" >&6 ;;
2873 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2874 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2875 CC="$CC $ac_cv_prog_cc_stdc" ;;
2878 # Some people use a C++ compiler to compile C. Since we use `exit',
2879 # in C++ we need to declare it. In case someone uses the same compiler
2880 # for both compiling C and C++ we need to have the C++ compiler decide
2881 # the declaration of exit, since it's the most demanding environment.
2882 cat >conftest.$ac_ext <<_ACEOF
2887 rm -f conftest.$ac_objext
2888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2889 (eval $ac_compile) 2>&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); } &&
2893 { ac_try='test -s conftest.$ac_objext'
2894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }; }; then
2899 for ac_declaration in \
2901 '#include <stdlib.h>' \
2902 'extern "C" void std::exit (int) throw (); using std::exit;' \
2903 'extern "C" void std::exit (int); using std::exit;' \
2904 'extern "C" void exit (int) throw ();' \
2905 'extern "C" void exit (int);' \
2908 cat >conftest.$ac_ext <<_ACEOF
2909 #line $LINENO "configure"
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h. */
2925 rm -f conftest.$ac_objext
2926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2927 (eval $ac_compile) 2>&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } &&
2931 { ac_try='test -s conftest.$ac_objext'
2932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; }; then
2939 echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.$ac_ext >&5
2944 rm -f conftest.$ac_objext conftest.$ac_ext
2945 cat >conftest.$ac_ext <<_ACEOF
2946 #line $LINENO "configure"
2949 cat confdefs.h >>conftest.$ac_ext
2950 cat >>conftest.$ac_ext <<_ACEOF
2951 /* end confdefs.h. */
2961 rm -f conftest.$ac_objext
2962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2963 (eval $ac_compile) 2>&5
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); } &&
2967 { ac_try='test -s conftest.$ac_objext'
2968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); }; }; then
2975 echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2979 rm -f conftest.$ac_objext conftest.$ac_ext
2982 if test -n "$ac_declaration"; then
2983 echo '#ifdef __cplusplus' >>confdefs.h
2984 echo $ac_declaration >>confdefs.h
2985 echo '#endif' >>confdefs.h
2989 echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2993 rm -f conftest.$ac_objext conftest.$ac_ext
2995 ac_cpp='$CPP $CPPFLAGS'
2996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2999 rm -f .deps 2>/dev/null
3000 mkdir .deps 2>/dev/null
3001 if test -d .deps; then
3004 # MS-DOS does not allow filenames that begin with a dot.
3007 rmdir .deps 2>/dev/null
3010 ac_config_commands="$ac_config_commands depfiles"
3013 am_make=${MAKE-make}
3014 cat > confinc << 'END'
3018 # If we don't find an include directive, just comment out the code.
3019 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3020 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3024 # First try GNU make style include.
3025 echo "include confinc" > confmf
3026 # We grep out `Entering directory' and `Leaving directory'
3027 # messages which can occur if `w' ends up in MAKEFLAGS.
3028 # In particular we don't look at `^make:' because GNU make might
3029 # be invoked under some other name (usually "gmake"), in which
3030 # case it prints its new name instead of `make'.
3031 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3036 # Now try BSD make style include.
3037 if test "$am__include" = "#"; then
3038 echo '.include "confinc"' > confmf
3039 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3040 am__include=.include
3047 echo "$as_me:$LINENO: result: $_am_result" >&5
3048 echo "${ECHO_T}$_am_result" >&6
3049 rm -f confinc confmf
3051 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3052 if test "${enable_dependency_tracking+set}" = set; then
3053 enableval="$enable_dependency_tracking"
3056 if test "x$enable_dependency_tracking" != xno; then
3057 am_depcomp="$ac_aux_dir/depcomp"
3062 if test "x$enable_dependency_tracking" != xno; then
3073 depcc="$CC" am_compiler_list=
3075 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3076 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3077 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3078 echo $ECHO_N "(cached) $ECHO_C" >&6
3080 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3081 # We make a subdir and do the tests there. Otherwise we can end up
3082 # making bogus files that we don't know about and never remove. For
3083 # instance it was reported that on HP-UX the gcc test will end up
3084 # making a dummy file named `D' -- because `-MD' means `put the output
3087 # Copy depcomp to subdir because otherwise we won't find it if we're
3088 # using a relative directory.
3089 cp "$am_depcomp" conftest.dir
3092 am_cv_CC_dependencies_compiler_type=none
3093 if test "$am_compiler_list" = ""; then
3094 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3096 for depmode in $am_compiler_list; do
3097 # We need to recreate these files for each test, as the compiler may
3098 # overwrite some of them when testing with obscure command lines.
3099 # This happens at least with the AIX C compiler.
3100 echo '#include "conftest.h"' > conftest.c
3101 echo 'int i;' > conftest.h
3102 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3106 # after this tag, mechanisms are not by side-effect, so they'll
3107 # only be used when explicitly requested
3108 if test "x$enable_dependency_tracking" = xyes; then
3116 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3117 # mode. It turns out that the SunPro C++ compiler does not properly
3118 # handle `-M -o', and we need to detect this.
3119 if depmode=$depmode \
3120 source=conftest.c object=conftest.o \
3121 depfile=conftest.Po tmpdepfile=conftest.TPo \
3122 $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
3123 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3124 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3125 am_cv_CC_dependencies_compiler_type=$depmode
3133 am_cv_CC_dependencies_compiler_type=none
3137 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3138 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3139 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3144 test "x$enable_dependency_tracking" != xno \
3145 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3147 am__fastdepCC_FALSE='#'
3149 am__fastdepCC_TRUE='#'
3150 am__fastdepCC_FALSE=
3156 ac_cpp='$CPP $CPPFLAGS'
3157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3160 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3161 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3162 # On Suns, sometimes $CPP names a directory.
3163 if test -n "$CPP" && test -d "$CPP"; then
3166 if test -z "$CPP"; then
3167 if test "${ac_cv_prog_CPP+set}" = set; then
3168 echo $ECHO_N "(cached) $ECHO_C" >&6
3170 # Double quotes because CPP needs to be expanded
3171 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3174 for ac_c_preproc_warn_flag in '' yes
3176 # Use a header file that comes with gcc, so configuring glibc
3177 # with a fresh cross-compiler works.
3178 # On the NeXT, cc -E runs the code through the compiler's parser,
3179 # not just through cpp. "Syntax error" is here to catch this case.
3180 cat >conftest.$ac_ext <<_ACEOF
3181 #line $LINENO "configure"
3184 cat confdefs.h >>conftest.$ac_ext
3185 cat >>conftest.$ac_ext <<_ACEOF
3186 /* end confdefs.h. */
3190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3193 grep -v '^ *+' conftest.er1 >conftest.err
3195 cat conftest.err >&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); } >/dev/null; then
3198 if test -s conftest.err; then
3199 ac_cpp_err=$ac_c_preproc_warn_flag
3206 if test -z "$ac_cpp_err"; then
3209 echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3212 # Broken: fails on valid input.
3215 rm -f conftest.err conftest.$ac_ext
3217 # OK, works on sane cases. Now check whether non-existent headers
3218 # can be detected and how.
3219 cat >conftest.$ac_ext <<_ACEOF
3220 #line $LINENO "configure"
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h. */
3226 #include <ac_nonexistent.h>
3228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3229 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3231 grep -v '^ *+' conftest.er1 >conftest.err
3233 cat conftest.err >&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); } >/dev/null; then
3236 if test -s conftest.err; then
3237 ac_cpp_err=$ac_c_preproc_warn_flag
3244 if test -z "$ac_cpp_err"; then
3245 # Broken: success on invalid input.
3248 echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.$ac_ext >&5
3251 # Passes both tests.
3255 rm -f conftest.err conftest.$ac_ext
3258 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3259 rm -f conftest.err conftest.$ac_ext
3260 if $ac_preproc_ok; then
3272 echo "$as_me:$LINENO: result: $CPP" >&5
3273 echo "${ECHO_T}$CPP" >&6
3275 for ac_c_preproc_warn_flag in '' yes
3277 # Use a header file that comes with gcc, so configuring glibc
3278 # with a fresh cross-compiler works.
3279 # On the NeXT, cc -E runs the code through the compiler's parser,
3280 # not just through cpp. "Syntax error" is here to catch this case.
3281 cat >conftest.$ac_ext <<_ACEOF
3282 #line $LINENO "configure"
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3294 grep -v '^ *+' conftest.er1 >conftest.err
3296 cat conftest.err >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } >/dev/null; then
3299 if test -s conftest.err; then
3300 ac_cpp_err=$ac_c_preproc_warn_flag
3307 if test -z "$ac_cpp_err"; then
3310 echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3313 # Broken: fails on valid input.
3316 rm -f conftest.err conftest.$ac_ext
3318 # OK, works on sane cases. Now check whether non-existent headers
3319 # can be detected and how.
3320 cat >conftest.$ac_ext <<_ACEOF
3321 #line $LINENO "configure"
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3327 #include <ac_nonexistent.h>
3329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3332 grep -v '^ *+' conftest.er1 >conftest.err
3334 cat conftest.err >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); } >/dev/null; then
3337 if test -s conftest.err; then
3338 ac_cpp_err=$ac_c_preproc_warn_flag
3345 if test -z "$ac_cpp_err"; then
3346 # Broken: success on invalid input.
3349 echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3352 # Passes both tests.
3356 rm -f conftest.err conftest.$ac_ext
3359 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3360 rm -f conftest.err conftest.$ac_ext
3361 if $ac_preproc_ok; then
3364 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3365 See \`config.log' for more details." >&5
3366 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3367 See \`config.log' for more details." >&2;}
3368 { (exit 1); exit 1; }; }
3372 ac_cpp='$CPP $CPPFLAGS'
3373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3378 echo "$as_me:$LINENO: checking for egrep" >&5
3379 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3380 if test "${ac_cv_prog_egrep+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3384 then ac_cv_prog_egrep='grep -E'
3385 else ac_cv_prog_egrep='egrep'
3388 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3389 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3390 EGREP=$ac_cv_prog_egrep
3393 if test $ac_cv_c_compiler_gnu = yes; then
3394 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3395 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3396 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3397 echo $ECHO_N "(cached) $ECHO_C" >&6
3399 ac_pattern="Autoconf.*'x'"
3400 cat >conftest.$ac_ext <<_ACEOF
3401 #line $LINENO "configure"
3404 cat confdefs.h >>conftest.$ac_ext
3405 cat >>conftest.$ac_ext <<_ACEOF
3406 /* end confdefs.h. */
3410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3411 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3412 ac_cv_prog_gcc_traditional=yes
3414 ac_cv_prog_gcc_traditional=no
3419 if test $ac_cv_prog_gcc_traditional = no; then
3420 cat >conftest.$ac_ext <<_ACEOF
3421 #line $LINENO "configure"
3424 cat confdefs.h >>conftest.$ac_ext
3425 cat >>conftest.$ac_ext <<_ACEOF
3426 /* end confdefs.h. */
3430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3431 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3432 ac_cv_prog_gcc_traditional=yes
3438 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3439 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3440 if test $ac_cv_prog_gcc_traditional = yes; then
3441 CC="$CC -traditional"
3445 # Find a good install program. We prefer a C program (faster),
3446 # so one script is as good as another. But avoid the broken or
3447 # incompatible versions:
3448 # SysV /etc/install, /usr/sbin/install
3449 # SunOS /usr/etc/install
3450 # IRIX /sbin/install
3452 # AmigaOS /C/install, which installs bootblocks on floppy discs
3453 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3454 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3455 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3456 # ./install, which can be erroneously created by make from ./install.sh.
3457 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3458 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3459 if test -z "$INSTALL"; then
3460 if test "${ac_cv_path_install+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 test -z "$as_dir" && as_dir=.
3468 # Account for people who put trailing slashes in PATH elements.
3470 ./ | .// | /cC/* | \
3471 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3474 # OSF1 and SCO ODT 3.0 have their own names for install.
3475 # Don't use installbsd from OSF since it installs stuff as root
3477 for ac_prog in ginstall scoinst install; do
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3480 if test $ac_prog = install &&
3481 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3482 # AIX install. It has an incompatible calling convention.
3484 elif test $ac_prog = install &&
3485 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3486 # program-specific install script used by HP pwplus--don't use.
3489 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3501 if test "${ac_cv_path_install+set}" = set; then
3502 INSTALL=$ac_cv_path_install
3504 # As a last resort, use the slow shell script. We don't cache a
3505 # path for INSTALL within a source directory, because that will
3506 # break other packages using the cache if that directory is
3507 # removed, or if the path is relative.
3508 INSTALL=$ac_install_sh
3511 echo "$as_me:$LINENO: result: $INSTALL" >&5
3512 echo "${ECHO_T}$INSTALL" >&6
3514 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3515 # It thinks the first close brace ends the variable substitution.
3516 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3518 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3520 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3522 for ac_prog in gawk mawk nawk awk
3524 # Extract the first word of "$ac_prog", so it can be a program name with args.
3525 set dummy $ac_prog; ac_word=$2
3526 echo "$as_me:$LINENO: checking for $ac_word" >&5
3527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3528 if test "${ac_cv_prog_AWK+set}" = set; then
3529 echo $ECHO_N "(cached) $ECHO_C" >&6
3531 if test -n "$AWK"; then
3532 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538 test -z "$as_dir" && as_dir=.
3539 for ac_exec_ext in '' $ac_executable_extensions; do
3540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3541 ac_cv_prog_AWK="$ac_prog"
3542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3551 if test -n "$AWK"; then
3552 echo "$as_me:$LINENO: result: $AWK" >&5
3553 echo "${ECHO_T}$AWK" >&6
3555 echo "$as_me:$LINENO: result: no" >&5
3556 echo "${ECHO_T}no" >&6
3559 test -n "$AWK" && break
3562 if test -n "$ac_tool_prefix"; then
3563 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3564 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3565 echo "$as_me:$LINENO: checking for $ac_word" >&5
3566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3567 if test "${ac_cv_prog_RANLIB+set}" = set; then
3568 echo $ECHO_N "(cached) $ECHO_C" >&6
3570 if test -n "$RANLIB"; then
3571 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577 test -z "$as_dir" && as_dir=.
3578 for ac_exec_ext in '' $ac_executable_extensions; do
3579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3580 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3589 RANLIB=$ac_cv_prog_RANLIB
3590 if test -n "$RANLIB"; then
3591 echo "$as_me:$LINENO: result: $RANLIB" >&5
3592 echo "${ECHO_T}$RANLIB" >&6
3594 echo "$as_me:$LINENO: result: no" >&5
3595 echo "${ECHO_T}no" >&6
3599 if test -z "$ac_cv_prog_RANLIB"; then
3600 ac_ct_RANLIB=$RANLIB
3601 # Extract the first word of "ranlib", so it can be a program name with args.
3602 set dummy ranlib; ac_word=$2
3603 echo "$as_me:$LINENO: checking for $ac_word" >&5
3604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3605 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 if test -n "$ac_ct_RANLIB"; then
3609 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615 test -z "$as_dir" && as_dir=.
3616 for ac_exec_ext in '' $ac_executable_extensions; do
3617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3618 ac_cv_prog_ac_ct_RANLIB="ranlib"
3619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3625 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3628 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3629 if test -n "$ac_ct_RANLIB"; then
3630 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3631 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3633 echo "$as_me:$LINENO: result: no" >&5
3634 echo "${ECHO_T}no" >&6
3637 RANLIB=$ac_ct_RANLIB
3639 RANLIB="$ac_cv_prog_RANLIB"
3642 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3643 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3645 if test "$LN_S" = "ln -s"; then
3646 echo "$as_me:$LINENO: result: yes" >&5
3647 echo "${ECHO_T}yes" >&6
3649 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3650 echo "${ECHO_T}no, using $LN_S" >&6
3653 echo "$as_me:$LINENO: checking whether -rdynamic option is recognized" >&5
3654 echo $ECHO_N "checking whether -rdynamic option is recognized... $ECHO_C" >&6
3655 ac_ccoption=`echo rdynamic | sed 'y%./+-%__p_%'`
3656 if eval "test \"\${timidity_cv_ccoption_$ac_ccoption+set}\" = set"; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 cat > conftest.$ac_ext <<EOF
3660 int main() {return 0;}
3662 if ${CC-cc} $LDFLAGS $CFLAGS -o conftest${ac_exeext} -rdynamic conftest.$ac_ext > conftest.out 2>&1; then
3663 if test -s conftest.out; then
3664 eval "timidity_cv_ccoption_$ac_ccoption=no"
3666 eval "timidity_cv_ccoption_$ac_ccoption=yes"
3669 eval "timidity_cv_ccoption_$ac_ccoption=no"
3674 if eval "test \"`echo '$timidity_cv_ccoption_'$ac_ccoption`\" = yes"; then
3675 echo "$as_me:$LINENO: result: yes" >&5
3676 echo "${ECHO_T}yes" >&6
3679 echo "$as_me:$LINENO: result: no" >&5
3680 echo "${ECHO_T}no" >&6
3685 # Checks for target dependencies
3688 # Check whether --with-elf or --without-elf was given.
3689 if test "${with_elf+set}" = set; then
3697 # Check whether --with-simd or --without-simd was given.
3698 if test "${with_simd+set}" = set; then
3699 withval="$with_simd"
3708 test -n "$SHLD" || SHLD="ld -b"
3712 case ".$CC" in .cc*) EXTRACFLAGS="-signed";; esac
3713 test -n "$SHLD" || SHLD="cc -shared -all"
3717 test -n "$SHLD" || SHLD="$CC -shared -nostartfiles"
3722 test -n "$SHLD" || SHLD="ld -Bshareable"
3726 if test "$ELFFORMAT" = yes; then
3727 test -n "$SHLD" || SHLD="ld -Bshareable"
3730 SHLDFLAGS="-L/usr/X11R6/lib/aout $SHLDFLAGS"
3731 test -n "$SHLD" || SHLD="env OBJFORMAT=aout ld -shared"
3737 # EXTRALIBS="$EXTRALIBS -lxpg4"
3738 # test -n "$SHLD" || SHLD="ld -Bshareable"
3743 EXTRADEFS="-D__W32__"
3746 "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3747 "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3748 "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3749 *) test -n "$SHLD" || SHLD="unknown" ;;
3753 lib_user32_test=-luser32
3756 EXTRADEFS="-D__W32__"
3759 "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3760 "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3761 "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3762 *) test -n "$SHLD" || SHLD="unknown" ;;
3766 lib_user32_test=-luser32
3770 test -n "$SHLD" || SHLD="ld -Bdynamic -G"
3774 EXTRADEFS="-DSOLARIS"
3775 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3779 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3783 if test "x$SIMD" = "xyes"; then
3785 cat >>confdefs.h <<\_ACEOF
3786 #define USE_ALTIVEC 1
3789 # EXTRACFLAGS="$EXTRACFLAGS -faltivec -mabi=altivec -maltivec" # for GCC3.
3790 EXTRACFLAGS="$EXTRACFLAGS -faltivec"
3793 cat >>confdefs.h <<\_ACEOF
3794 #define USE_ALTIVEC 0
3798 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
3799 LDOPTS="-dynamic -undefined suppress -flat_namespace $LDOPTS"
3800 test -n "$SHLD" || SHLD="$CC -dynamic -bundle -undefined suppress -flat_namespace $LDFLAGS"
3804 test -n "$SHLD" || \
3805 if test "x$GCC" = xyes; then
3808 SHLD="ld -Bdynamic -G"
3815 # Checks for libraries.
3817 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
3818 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
3819 if test "${ac_cv_lib_m_sqrt+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3822 ac_check_lib_save_LIBS=$LIBS
3824 cat >conftest.$ac_ext <<_ACEOF
3825 #line $LINENO "configure"
3828 cat confdefs.h >>conftest.$ac_ext
3829 cat >>conftest.$ac_ext <<_ACEOF
3830 /* end confdefs.h. */
3832 /* Override any gcc2 internal prototype to avoid an error. */
3836 /* We use char because int might match the return type of a gcc2
3837 builtin and then its argument prototype would still apply. */
3847 rm -f conftest.$ac_objext conftest$ac_exeext
3848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3849 (eval $ac_link) 2>&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); } &&
3853 { ac_try='test -s conftest$ac_exeext'
3854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; }; then
3859 ac_cv_lib_m_sqrt=yes
3861 echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3867 LIBS=$ac_check_lib_save_LIBS
3869 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
3870 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
3871 if test $ac_cv_lib_m_sqrt = yes; then
3872 cat >>confdefs.h <<_ACEOF
3881 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3882 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3883 if test "${ac_cv_lib_socket_socket+set}" = set; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
3886 ac_check_lib_save_LIBS=$LIBS
3887 LIBS="-lsocket $LIBS"
3888 cat >conftest.$ac_ext <<_ACEOF
3889 #line $LINENO "configure"
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h. */
3896 /* Override any gcc2 internal prototype to avoid an error. */
3900 /* We use char because int might match the return type of a gcc2
3901 builtin and then its argument prototype would still apply. */
3911 rm -f conftest.$ac_objext conftest$ac_exeext
3912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3913 (eval $ac_link) 2>&5
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); } &&
3917 { ac_try='test -s conftest$ac_exeext'
3918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); }; }; then
3923 ac_cv_lib_socket_socket=yes
3925 echo "$as_me: failed program was:" >&5
3926 sed 's/^/| /' conftest.$ac_ext >&5
3928 ac_cv_lib_socket_socket=no
3930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3931 LIBS=$ac_check_lib_save_LIBS
3933 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3934 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3935 if test $ac_cv_lib_socket_socket = yes; then
3936 cat >>confdefs.h <<_ACEOF
3937 #define HAVE_LIBSOCKET 1
3940 LIBS="-lsocket $LIBS"
3944 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
3945 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
3946 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3949 ac_check_lib_save_LIBS=$LIBS
3951 cat >conftest.$ac_ext <<_ACEOF
3952 #line $LINENO "configure"
3955 cat confdefs.h >>conftest.$ac_ext
3956 cat >>conftest.$ac_ext <<_ACEOF
3957 /* end confdefs.h. */
3959 /* Override any gcc2 internal prototype to avoid an error. */
3963 /* We use char because int might match the return type of a gcc2
3964 builtin and then its argument prototype would still apply. */
3974 rm -f conftest.$ac_objext conftest$ac_exeext
3975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3976 (eval $ac_link) 2>&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); } &&
3980 { ac_try='test -s conftest$ac_exeext'
3981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); }; }; then
3986 ac_cv_lib_dl_dlopen=yes
3988 echo "$as_me: failed program was:" >&5
3989 sed 's/^/| /' conftest.$ac_ext >&5
3991 ac_cv_lib_dl_dlopen=no
3993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3994 LIBS=$ac_check_lib_save_LIBS
3996 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
3997 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
3998 if test $ac_cv_lib_dl_dlopen = yes; then
4002 echo "$as_me:$LINENO: checking for NSLinkModule in -lobjc" >&5
4003 echo $ECHO_N "checking for NSLinkModule in -lobjc... $ECHO_C" >&6
4004 if test "${ac_cv_lib_objc_NSLinkModule+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4007 ac_check_lib_save_LIBS=$LIBS
4009 cat >conftest.$ac_ext <<_ACEOF
4010 #line $LINENO "configure"
4013 cat confdefs.h >>conftest.$ac_ext
4014 cat >>conftest.$ac_ext <<_ACEOF
4015 /* end confdefs.h. */
4017 /* Override any gcc2 internal prototype to avoid an error. */
4021 /* We use char because int might match the return type of a gcc2
4022 builtin and then its argument prototype would still apply. */
4023 char NSLinkModule ();
4032 rm -f conftest.$ac_objext conftest$ac_exeext
4033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4034 (eval $ac_link) 2>&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); } &&
4038 { ac_try='test -s conftest$ac_exeext'
4039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); }; }; then
4044 ac_cv_lib_objc_NSLinkModule=yes
4046 echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4049 ac_cv_lib_objc_NSLinkModule=no
4051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4052 LIBS=$ac_check_lib_save_LIBS
4054 echo "$as_me:$LINENO: result: $ac_cv_lib_objc_NSLinkModule" >&5
4055 echo "${ECHO_T}$ac_cv_lib_objc_NSLinkModule" >&6
4056 if test $ac_cv_lib_objc_NSLinkModule = yes; then
4059 # Mac OS X need this.
4061 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
4062 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
4063 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 ac_check_lib_save_LIBS=$LIBS
4068 cat >conftest.$ac_ext <<_ACEOF
4069 #line $LINENO "configure"
4072 cat confdefs.h >>conftest.$ac_ext
4073 cat >>conftest.$ac_ext <<_ACEOF
4074 /* end confdefs.h. */
4076 /* Override any gcc2 internal prototype to avoid an error. */
4080 /* We use char because int might match the return type of a gcc2
4081 builtin and then its argument prototype would still apply. */
4091 rm -f conftest.$ac_objext conftest$ac_exeext
4092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4093 (eval $ac_link) 2>&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); } &&
4097 { ac_try='test -s conftest$ac_exeext'
4098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }; }; then
4103 ac_cv_lib_xpg4_setlocale=yes
4105 echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4108 ac_cv_lib_xpg4_setlocale=no
4110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4111 LIBS=$ac_check_lib_save_LIBS
4113 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
4114 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
4115 if test $ac_cv_lib_xpg4_setlocale = yes; then
4116 cat >>confdefs.h <<_ACEOF
4117 #define HAVE_LIBXPG4 1
4123 # Mac OS X (and maybe NetBSD) need this.
4125 for ac_func in gethostbyname
4127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4128 echo "$as_me:$LINENO: checking for $ac_func" >&5
4129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4130 if eval "test \"\${$as_ac_var+set}\" = set"; then
4131 echo $ECHO_N "(cached) $ECHO_C" >&6
4133 cat >conftest.$ac_ext <<_ACEOF
4134 #line $LINENO "configure"
4137 cat confdefs.h >>conftest.$ac_ext
4138 cat >>conftest.$ac_ext <<_ACEOF
4139 /* end confdefs.h. */
4140 /* System header to define __stub macros and hopefully few prototypes,
4141 which can conflict with char $ac_func (); below. */
4143 /* Override any gcc2 internal prototype to avoid an error. */
4148 /* We use char because int might match the return type of a gcc2
4149 builtin and then its argument prototype would still apply. */
4151 /* The GNU C library defines this for functions which it implements
4152 to always fail with ENOSYS. Some functions are actually named
4153 something starting with __ and the normal name is an alias. */
4154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4157 char (*f) () = $ac_func;
4171 rm -f conftest.$ac_objext conftest$ac_exeext
4172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4173 (eval $ac_link) 2>&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } &&
4177 { ac_try='test -s conftest$ac_exeext'
4178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; }; then
4183 eval "$as_ac_var=yes"
4185 echo "$as_me: failed program was:" >&5
4186 sed 's/^/| /' conftest.$ac_ext >&5
4188 eval "$as_ac_var=no"
4190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4193 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4194 if test `eval echo '${'$as_ac_var'}'` = yes; then
4195 cat >>confdefs.h <<_ACEOF
4196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4201 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4202 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4203 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 ac_check_lib_save_LIBS=$LIBS
4208 cat >conftest.$ac_ext <<_ACEOF
4209 #line $LINENO "configure"
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4216 /* Override any gcc2 internal prototype to avoid an error. */
4220 /* We use char because int might match the return type of a gcc2
4221 builtin and then its argument prototype would still apply. */
4222 char gethostbyname ();
4231 rm -f conftest.$ac_objext conftest$ac_exeext
4232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4233 (eval $ac_link) 2>&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); } &&
4237 { ac_try='test -s conftest$ac_exeext'
4238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); }; }; then
4243 ac_cv_lib_nsl_gethostbyname=yes
4245 echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4248 ac_cv_lib_nsl_gethostbyname=no
4250 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4251 LIBS=$ac_check_lib_save_LIBS
4253 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4254 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4255 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4256 cat >>confdefs.h <<_ACEOF
4257 #define HAVE_LIBNSL 1
4267 echo "$as_me:$LINENO: checking for X" >&5
4268 echo $ECHO_N "checking for X... $ECHO_C" >&6
4271 # Check whether --with-x or --without-x was given.
4272 if test "${with_x+set}" = set; then
4276 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4277 if test "x$with_x" = xno; then
4278 # The user explicitly disabled X.
4281 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4282 # Both variables are already set.
4285 if test "${ac_cv_have_x+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 # One or both of the vars are not set, and there is no cached value.
4289 ac_x_includes=no ac_x_libraries=no
4291 if mkdir conftest.dir; then
4293 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4294 cat >Imakefile <<'_ACEOF'
4296 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4298 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4299 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4300 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4301 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4302 for ac_extension in a so sl; do
4303 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4304 test -f $ac_im_libdir/libX11.$ac_extension; then
4305 ac_im_usrlibdir=$ac_im_libdir; break
4308 # Screen out bogus values from the imake configuration. They are
4309 # bogus both because they are the default anyway, and because
4310 # using them would break gcc on systems where it needs fixed includes.
4311 case $ac_im_incroot in
4313 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4315 case $ac_im_usrlibdir in
4317 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4324 # Standard set of common directories for X headers.
4325 # Check X11 before X11Rn because it is often a symlink to the current release.
4337 /usr/local/X11/include
4338 /usr/local/X11R6/include
4339 /usr/local/X11R5/include
4340 /usr/local/X11R4/include
4342 /usr/local/include/X11
4343 /usr/local/include/X11R6
4344 /usr/local/include/X11R5
4345 /usr/local/include/X11R4
4349 /usr/XFree86/include/X11
4353 /usr/unsupported/include
4355 /usr/local/x11r5/include
4356 /usr/lpp/Xamples/include
4358 /usr/openwin/include
4359 /usr/openwin/share/include'
4361 if test "$ac_x_includes" = no; then
4362 # Guess where to find include files, by looking for Intrinsic.h.
4363 # First, try using that file with no special directory specified.
4364 cat >conftest.$ac_ext <<_ACEOF
4365 #line $LINENO "configure"
4368 cat confdefs.h >>conftest.$ac_ext
4369 cat >>conftest.$ac_ext <<_ACEOF
4370 /* end confdefs.h. */
4371 #include <X11/Intrinsic.h>
4373 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4374 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4376 grep -v '^ *+' conftest.er1 >conftest.err
4378 cat conftest.err >&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); } >/dev/null; then
4381 if test -s conftest.err; then
4382 ac_cpp_err=$ac_c_preproc_warn_flag
4389 if test -z "$ac_cpp_err"; then
4390 # We can compile using X headers with no special include directory.
4393 echo "$as_me: failed program was:" >&5
4394 sed 's/^/| /' conftest.$ac_ext >&5
4396 for ac_dir in $ac_x_header_dirs; do
4397 if test -r "$ac_dir/X11/Intrinsic.h"; then
4398 ac_x_includes=$ac_dir
4403 rm -f conftest.err conftest.$ac_ext
4404 fi # $ac_x_includes = no
4406 if test "$ac_x_libraries" = no; then
4407 # Check for the libraries.
4408 # See if we find them without any special options.
4409 # Don't add to $LIBS permanently.
4412 cat >conftest.$ac_ext <<_ACEOF
4413 #line $LINENO "configure"
4416 cat confdefs.h >>conftest.$ac_ext
4417 cat >>conftest.$ac_ext <<_ACEOF
4418 /* end confdefs.h. */
4419 #include <X11/Intrinsic.h>
4428 rm -f conftest.$ac_objext conftest$ac_exeext
4429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4430 (eval $ac_link) 2>&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); } &&
4434 { ac_try='test -s conftest$ac_exeext'
4435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); }; }; then
4441 # We can link X programs with no special library path.
4444 echo "$as_me: failed program was:" >&5
4445 sed 's/^/| /' conftest.$ac_ext >&5
4448 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4450 # Don't even attempt the hair of trying to link an X program!
4451 for ac_extension in a so sl; do
4452 if test -r $ac_dir/libXt.$ac_extension; then
4453 ac_x_libraries=$ac_dir
4459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4460 fi # $ac_x_libraries = no
4462 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4463 # Didn't find X anywhere. Cache the known absence of X.
4464 ac_cv_have_x="have_x=no"
4466 # Record where we found X for the cache.
4467 ac_cv_have_x="have_x=yes \
4468 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4473 eval "$ac_cv_have_x"
4476 if test "$have_x" != yes; then
4477 echo "$as_me:$LINENO: result: $have_x" >&5
4478 echo "${ECHO_T}$have_x" >&6
4481 # If each of the values was on the command line, it overrides each guess.
4482 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4483 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4484 # Update the cache value to reflect the command line values.
4485 ac_cv_have_x="have_x=yes \
4486 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4487 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4488 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4491 if test "$no_x" = yes; then
4492 # Not all programs may use this symbol, but it does not hurt to define it.
4494 cat >>confdefs.h <<\_ACEOF
4495 #define X_DISPLAY_MISSING 1
4498 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4500 if test -n "$x_includes"; then
4501 X_CFLAGS="$X_CFLAGS -I$x_includes"
4504 # It would also be nice to do this for all -L options, not just this one.
4505 if test -n "$x_libraries"; then
4506 X_LIBS="$X_LIBS -L$x_libraries"
4507 # For Solaris; some versions of Sun CC require a space after -R and
4508 # others require no space. Words are not sufficient . . . .
4509 case `(uname -sr) 2>/dev/null` in
4511 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4512 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4513 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4514 cat >conftest.$ac_ext <<_ACEOF
4515 #line $LINENO "configure"
4518 cat confdefs.h >>conftest.$ac_ext
4519 cat >>conftest.$ac_ext <<_ACEOF
4520 /* end confdefs.h. */
4530 rm -f conftest.$ac_objext conftest$ac_exeext
4531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4532 (eval $ac_link) 2>&5
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); } &&
4536 { ac_try='test -s conftest$ac_exeext'
4537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; }; then
4544 echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.$ac_ext >&5
4549 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4550 if test $ac_R_nospace = yes; then
4551 echo "$as_me:$LINENO: result: no" >&5
4552 echo "${ECHO_T}no" >&6
4553 X_LIBS="$X_LIBS -R$x_libraries"
4555 LIBS="$ac_xsave_LIBS -R $x_libraries"
4556 cat >conftest.$ac_ext <<_ACEOF
4557 #line $LINENO "configure"
4560 cat confdefs.h >>conftest.$ac_ext
4561 cat >>conftest.$ac_ext <<_ACEOF
4562 /* end confdefs.h. */
4572 rm -f conftest.$ac_objext conftest$ac_exeext
4573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4574 (eval $ac_link) 2>&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); } &&
4578 { ac_try='test -s conftest$ac_exeext'
4579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; }; then
4586 echo "$as_me: failed program was:" >&5
4587 sed 's/^/| /' conftest.$ac_ext >&5
4591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4592 if test $ac_R_space = yes; then
4593 echo "$as_me:$LINENO: result: yes" >&5
4594 echo "${ECHO_T}yes" >&6
4595 X_LIBS="$X_LIBS -R $x_libraries"
4597 echo "$as_me:$LINENO: result: neither works" >&5
4598 echo "${ECHO_T}neither works" >&6
4605 # Check for system-dependent libraries X programs must link with.
4606 # Do this before checking for the system-independent R6 libraries
4607 # (-lICE), since we may need -lsocket or whatever for X linking.
4609 if test "$ISC" = yes; then
4610 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4612 # Martyn Johnson says this is needed for Ultrix, if the X
4613 # libraries were built with DECnet support. And Karl Berry says
4614 # the Alpha needs dnet_stub (dnet does not exist).
4615 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4616 cat >conftest.$ac_ext <<_ACEOF
4617 #line $LINENO "configure"
4620 cat confdefs.h >>conftest.$ac_ext
4621 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h. */
4624 /* Override any gcc2 internal prototype to avoid an error. */
4628 /* We use char because int might match the return type of a gcc2
4629 builtin and then its argument prototype would still apply. */
4630 char XOpenDisplay ();
4639 rm -f conftest.$ac_objext conftest$ac_exeext
4640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4641 (eval $ac_link) 2>&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); } &&
4645 { ac_try='test -s conftest$ac_exeext'
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; }; then
4653 echo "$as_me: failed program was:" >&5
4654 sed 's/^/| /' conftest.$ac_ext >&5
4656 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4657 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4658 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 ac_check_lib_save_LIBS=$LIBS
4663 cat >conftest.$ac_ext <<_ACEOF
4664 #line $LINENO "configure"
4667 cat confdefs.h >>conftest.$ac_ext
4668 cat >>conftest.$ac_ext <<_ACEOF
4669 /* end confdefs.h. */
4671 /* Override any gcc2 internal prototype to avoid an error. */
4675 /* We use char because int might match the return type of a gcc2
4676 builtin and then its argument prototype would still apply. */
4686 rm -f conftest.$ac_objext conftest$ac_exeext
4687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4688 (eval $ac_link) 2>&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); } &&
4692 { ac_try='test -s conftest$ac_exeext'
4693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); }; }; then
4698 ac_cv_lib_dnet_dnet_ntoa=yes
4700 echo "$as_me: failed program was:" >&5
4701 sed 's/^/| /' conftest.$ac_ext >&5
4703 ac_cv_lib_dnet_dnet_ntoa=no
4705 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4706 LIBS=$ac_check_lib_save_LIBS
4708 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4709 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4710 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4711 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4714 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4715 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4716 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4717 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4720 ac_check_lib_save_LIBS=$LIBS
4721 LIBS="-ldnet_stub $LIBS"
4722 cat >conftest.$ac_ext <<_ACEOF
4723 #line $LINENO "configure"
4726 cat confdefs.h >>conftest.$ac_ext
4727 cat >>conftest.$ac_ext <<_ACEOF
4728 /* end confdefs.h. */
4730 /* Override any gcc2 internal prototype to avoid an error. */
4734 /* We use char because int might match the return type of a gcc2
4735 builtin and then its argument prototype would still apply. */
4745 rm -f conftest.$ac_objext conftest$ac_exeext
4746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4747 (eval $ac_link) 2>&5
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); } &&
4751 { ac_try='test -s conftest$ac_exeext'
4752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }; }; then
4757 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4759 echo "$as_me: failed program was:" >&5
4760 sed 's/^/| /' conftest.$ac_ext >&5
4762 ac_cv_lib_dnet_stub_dnet_ntoa=no
4764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4765 LIBS=$ac_check_lib_save_LIBS
4767 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4768 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
4769 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4770 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4776 LIBS="$ac_xsave_LIBS"
4778 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4779 # to get the SysV transport functions.
4780 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4782 # The nsl library prevents programs from opening the X display
4783 # on Irix 5.2, according to T.E. Dickey.
4784 # The functions gethostbyname, getservbyname, and inet_addr are
4785 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4786 echo "$as_me:$LINENO: checking for gethostbyname" >&5
4787 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4788 if test "${ac_cv_func_gethostbyname+set}" = set; then
4789 echo $ECHO_N "(cached) $ECHO_C" >&6
4791 cat >conftest.$ac_ext <<_ACEOF
4792 #line $LINENO "configure"
4795 cat confdefs.h >>conftest.$ac_ext
4796 cat >>conftest.$ac_ext <<_ACEOF
4797 /* end confdefs.h. */
4798 /* System header to define __stub macros and hopefully few prototypes,
4799 which can conflict with char gethostbyname (); below. */
4801 /* Override any gcc2 internal prototype to avoid an error. */
4806 /* We use char because int might match the return type of a gcc2
4807 builtin and then its argument prototype would still apply. */
4808 char gethostbyname ();
4809 /* The GNU C library defines this for functions which it implements
4810 to always fail with ENOSYS. Some functions are actually named
4811 something starting with __ and the normal name is an alias. */
4812 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4815 char (*f) () = gethostbyname;
4829 rm -f conftest.$ac_objext conftest$ac_exeext
4830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4831 (eval $ac_link) 2>&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); } &&
4835 { ac_try='test -s conftest$ac_exeext'
4836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); }; }; then
4841 ac_cv_func_gethostbyname=yes
4843 echo "$as_me: failed program was:" >&5
4844 sed 's/^/| /' conftest.$ac_ext >&5
4846 ac_cv_func_gethostbyname=no
4848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4850 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4851 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4853 if test $ac_cv_func_gethostbyname = no; then
4854 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4855 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4856 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4857 echo $ECHO_N "(cached) $ECHO_C" >&6
4859 ac_check_lib_save_LIBS=$LIBS
4861 cat >conftest.$ac_ext <<_ACEOF
4862 #line $LINENO "configure"
4865 cat confdefs.h >>conftest.$ac_ext
4866 cat >>conftest.$ac_ext <<_ACEOF
4867 /* end confdefs.h. */
4869 /* Override any gcc2 internal prototype to avoid an error. */
4873 /* We use char because int might match the return type of a gcc2
4874 builtin and then its argument prototype would still apply. */
4875 char gethostbyname ();
4884 rm -f conftest.$ac_objext conftest$ac_exeext
4885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4886 (eval $ac_link) 2>&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } &&
4890 { ac_try='test -s conftest$ac_exeext'
4891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }; }; then
4896 ac_cv_lib_nsl_gethostbyname=yes
4898 echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4901 ac_cv_lib_nsl_gethostbyname=no
4903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4904 LIBS=$ac_check_lib_save_LIBS
4906 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4907 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4908 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4909 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4912 if test $ac_cv_lib_nsl_gethostbyname = no; then
4913 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4914 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4915 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4916 echo $ECHO_N "(cached) $ECHO_C" >&6
4918 ac_check_lib_save_LIBS=$LIBS
4920 cat >conftest.$ac_ext <<_ACEOF
4921 #line $LINENO "configure"
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h. */
4928 /* Override any gcc2 internal prototype to avoid an error. */
4932 /* We use char because int might match the return type of a gcc2
4933 builtin and then its argument prototype would still apply. */
4934 char gethostbyname ();
4943 rm -f conftest.$ac_objext conftest$ac_exeext
4944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4945 (eval $ac_link) 2>&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } &&
4949 { ac_try='test -s conftest$ac_exeext'
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; }; then
4955 ac_cv_lib_bsd_gethostbyname=yes
4957 echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.$ac_ext >&5
4960 ac_cv_lib_bsd_gethostbyname=no
4962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4963 LIBS=$ac_check_lib_save_LIBS
4965 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4966 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4967 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4968 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4974 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4975 # socket/setsockopt and other routines are undefined under SCO ODT
4976 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4977 # on later versions), says Simon Leinen: it contains gethostby*
4978 # variants that don't use the name server (or something). -lsocket
4979 # must be given before -lnsl if both are needed. We assume that
4980 # if connect needs -lnsl, so does gethostbyname.
4981 echo "$as_me:$LINENO: checking for connect" >&5
4982 echo $ECHO_N "checking for connect... $ECHO_C" >&6
4983 if test "${ac_cv_func_connect+set}" = set; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 cat >conftest.$ac_ext <<_ACEOF
4987 #line $LINENO "configure"
4990 cat confdefs.h >>conftest.$ac_ext
4991 cat >>conftest.$ac_ext <<_ACEOF
4992 /* end confdefs.h. */
4993 /* System header to define __stub macros and hopefully few prototypes,
4994 which can conflict with char connect (); below. */
4996 /* Override any gcc2 internal prototype to avoid an error. */
5001 /* We use char because int might match the return type of a gcc2
5002 builtin and then its argument prototype would still apply. */
5004 /* The GNU C library defines this for functions which it implements
5005 to always fail with ENOSYS. Some functions are actually named
5006 something starting with __ and the normal name is an alias. */
5007 #if defined (__stub_connect) || defined (__stub___connect)
5010 char (*f) () = connect;
5024 rm -f conftest.$ac_objext conftest$ac_exeext
5025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5026 (eval $ac_link) 2>&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); } &&
5030 { ac_try='test -s conftest$ac_exeext'
5031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); }; }; then
5036 ac_cv_func_connect=yes
5038 echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.$ac_ext >&5
5041 ac_cv_func_connect=no
5043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5045 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5046 echo "${ECHO_T}$ac_cv_func_connect" >&6
5048 if test $ac_cv_func_connect = no; then
5049 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5050 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5051 if test "${ac_cv_lib_socket_connect+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5054 ac_check_lib_save_LIBS=$LIBS
5055 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5056 cat >conftest.$ac_ext <<_ACEOF
5057 #line $LINENO "configure"
5060 cat confdefs.h >>conftest.$ac_ext
5061 cat >>conftest.$ac_ext <<_ACEOF
5062 /* end confdefs.h. */
5064 /* Override any gcc2 internal prototype to avoid an error. */
5068 /* We use char because int might match the return type of a gcc2
5069 builtin and then its argument prototype would still apply. */
5079 rm -f conftest.$ac_objext conftest$ac_exeext
5080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5081 (eval $ac_link) 2>&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); } &&
5085 { ac_try='test -s conftest$ac_exeext'
5086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); }; }; then
5091 ac_cv_lib_socket_connect=yes
5093 echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.$ac_ext >&5
5096 ac_cv_lib_socket_connect=no
5098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5099 LIBS=$ac_check_lib_save_LIBS
5101 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5102 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5103 if test $ac_cv_lib_socket_connect = yes; then
5104 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5109 # Guillermo Gomez says -lposix is necessary on A/UX.
5110 echo "$as_me:$LINENO: checking for remove" >&5
5111 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5112 if test "${ac_cv_func_remove+set}" = set; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 cat >conftest.$ac_ext <<_ACEOF
5116 #line $LINENO "configure"
5119 cat confdefs.h >>conftest.$ac_ext
5120 cat >>conftest.$ac_ext <<_ACEOF
5121 /* end confdefs.h. */
5122 /* System header to define __stub macros and hopefully few prototypes,
5123 which can conflict with char remove (); below. */
5125 /* Override any gcc2 internal prototype to avoid an error. */
5130 /* We use char because int might match the return type of a gcc2
5131 builtin and then its argument prototype would still apply. */
5133 /* The GNU C library defines this for functions which it implements
5134 to always fail with ENOSYS. Some functions are actually named
5135 something starting with __ and the normal name is an alias. */
5136 #if defined (__stub_remove) || defined (__stub___remove)
5139 char (*f) () = remove;
5153 rm -f conftest.$ac_objext conftest$ac_exeext
5154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5155 (eval $ac_link) 2>&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); } &&
5159 { ac_try='test -s conftest$ac_exeext'
5160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); }; }; then
5165 ac_cv_func_remove=yes
5167 echo "$as_me: failed program was:" >&5
5168 sed 's/^/| /' conftest.$ac_ext >&5
5170 ac_cv_func_remove=no
5172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5174 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5175 echo "${ECHO_T}$ac_cv_func_remove" >&6
5177 if test $ac_cv_func_remove = no; then
5178 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5179 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5180 if test "${ac_cv_lib_posix_remove+set}" = set; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5183 ac_check_lib_save_LIBS=$LIBS
5184 LIBS="-lposix $LIBS"
5185 cat >conftest.$ac_ext <<_ACEOF
5186 #line $LINENO "configure"
5189 cat confdefs.h >>conftest.$ac_ext
5190 cat >>conftest.$ac_ext <<_ACEOF
5191 /* end confdefs.h. */
5193 /* Override any gcc2 internal prototype to avoid an error. */
5197 /* We use char because int might match the return type of a gcc2
5198 builtin and then its argument prototype would still apply. */
5208 rm -f conftest.$ac_objext conftest$ac_exeext
5209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5210 (eval $ac_link) 2>&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); } &&
5214 { ac_try='test -s conftest$ac_exeext'
5215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); }; }; then
5220 ac_cv_lib_posix_remove=yes
5222 echo "$as_me: failed program was:" >&5
5223 sed 's/^/| /' conftest.$ac_ext >&5
5225 ac_cv_lib_posix_remove=no
5227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5228 LIBS=$ac_check_lib_save_LIBS
5230 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5231 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5232 if test $ac_cv_lib_posix_remove = yes; then
5233 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5238 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5239 echo "$as_me:$LINENO: checking for shmat" >&5
5240 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5241 if test "${ac_cv_func_shmat+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 cat >conftest.$ac_ext <<_ACEOF
5245 #line $LINENO "configure"
5248 cat confdefs.h >>conftest.$ac_ext
5249 cat >>conftest.$ac_ext <<_ACEOF
5250 /* end confdefs.h. */
5251 /* System header to define __stub macros and hopefully few prototypes,
5252 which can conflict with char shmat (); below. */
5254 /* Override any gcc2 internal prototype to avoid an error. */
5259 /* We use char because int might match the return type of a gcc2
5260 builtin and then its argument prototype would still apply. */
5262 /* The GNU C library defines this for functions which it implements
5263 to always fail with ENOSYS. Some functions are actually named
5264 something starting with __ and the normal name is an alias. */
5265 #if defined (__stub_shmat) || defined (__stub___shmat)
5268 char (*f) () = shmat;
5282 rm -f conftest.$ac_objext conftest$ac_exeext
5283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5284 (eval $ac_link) 2>&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); } &&
5288 { ac_try='test -s conftest$ac_exeext'
5289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }; }; then
5294 ac_cv_func_shmat=yes
5296 echo "$as_me: failed program was:" >&5
5297 sed 's/^/| /' conftest.$ac_ext >&5
5301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5303 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5304 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5306 if test $ac_cv_func_shmat = no; then
5307 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5308 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5309 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 ac_check_lib_save_LIBS=$LIBS
5314 cat >conftest.$ac_ext <<_ACEOF
5315 #line $LINENO "configure"
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h. */
5322 /* Override any gcc2 internal prototype to avoid an error. */
5326 /* We use char because int might match the return type of a gcc2
5327 builtin and then its argument prototype would still apply. */
5337 rm -f conftest.$ac_objext conftest$ac_exeext
5338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5339 (eval $ac_link) 2>&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); } &&
5343 { ac_try='test -s conftest$ac_exeext'
5344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }; }; then
5349 ac_cv_lib_ipc_shmat=yes
5351 echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5354 ac_cv_lib_ipc_shmat=no
5356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5357 LIBS=$ac_check_lib_save_LIBS
5359 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5360 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5361 if test $ac_cv_lib_ipc_shmat = yes; then
5362 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5368 # Check for libraries that X11R6 Xt/Xaw programs need.
5369 ac_save_LDFLAGS=$LDFLAGS
5370 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5371 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5372 # check for ICE first), but we must link in the order -lSM -lICE or
5373 # we get undefined symbols. So assume we have SM if we have ICE.
5374 # These have to be linked with before -lX11, unlike the other
5375 # libraries we check for below, so use a different variable.
5376 # John Interrante, Karl Berry
5377 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5378 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5379 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
5382 ac_check_lib_save_LIBS=$LIBS
5383 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5384 cat >conftest.$ac_ext <<_ACEOF
5385 #line $LINENO "configure"
5388 cat confdefs.h >>conftest.$ac_ext
5389 cat >>conftest.$ac_ext <<_ACEOF
5390 /* end confdefs.h. */
5392 /* Override any gcc2 internal prototype to avoid an error. */
5396 /* We use char because int might match the return type of a gcc2
5397 builtin and then its argument prototype would still apply. */
5398 char IceConnectionNumber ();
5402 IceConnectionNumber ();
5407 rm -f conftest.$ac_objext conftest$ac_exeext
5408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5409 (eval $ac_link) 2>&5
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); } &&
5413 { ac_try='test -s conftest$ac_exeext'
5414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); }; }; then
5419 ac_cv_lib_ICE_IceConnectionNumber=yes
5421 echo "$as_me: failed program was:" >&5
5422 sed 's/^/| /' conftest.$ac_ext >&5
5424 ac_cv_lib_ICE_IceConnectionNumber=no
5426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5427 LIBS=$ac_check_lib_save_LIBS
5429 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5430 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5431 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5432 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5435 LDFLAGS=$ac_save_LDFLAGS
5441 if test "x$with_x" = xyes; then
5442 if test "x$have_x" = xno; then
5443 if test "x$x_config_flag" = xyes; then
5444 { { echo "$as_me:$LINENO: error: Could not configure X" >&5
5445 echo "$as_me: error: Could not configure X" >&2;}
5446 { (exit 1); exit 1; }; }
5448 { echo "$as_me:$LINENO: WARNING: Could not configure X" >&5
5449 echo "$as_me: WARNING: Could not configure X" >&2;}
5453 if test "x$with_x" = xyes -a "x$have_x" = xyes; then
5454 if test "x$x_libraries" != x; then
5455 ldflags_x_opt="-L$x_libraries"
5456 LDFLAGS="$LDFLAGS $ldflags_x_opt"
5457 SHLDFLAGS="$SHLDFLAGS $ldflags_x_opt"
5461 if test "x$x_includes" != x; then
5462 CPPFLAGS="$CPPFLAGS -I$x_includes"
5466 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
5467 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
5468 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
5469 echo $ECHO_N "(cached) $ECHO_C" >&6
5471 ac_check_lib_save_LIBS=$LIBS
5473 cat >conftest.$ac_ext <<_ACEOF
5474 #line $LINENO "configure"
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h. */
5481 /* Override any gcc2 internal prototype to avoid an error. */
5485 /* We use char because int might match the return type of a gcc2
5486 builtin and then its argument prototype would still apply. */
5487 char XOpenDisplay ();
5496 rm -f conftest.$ac_objext conftest$ac_exeext
5497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5498 (eval $ac_link) 2>&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); } &&
5502 { ac_try='test -s conftest$ac_exeext'
5503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); }; }; then
5508 ac_cv_lib_X11_XOpenDisplay=yes
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5513 ac_cv_lib_X11_XOpenDisplay=no
5515 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5516 LIBS=$ac_check_lib_save_LIBS
5518 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
5519 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
5520 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
5521 cat >>confdefs.h <<_ACEOF
5522 #define HAVE_LIBX11 1
5529 echo "$as_me:$LINENO: checking X11 version 6" >&5
5530 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
5531 if test "${timidity_cv_x11_version_6+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5534 cat >conftest.$ac_ext <<_ACEOF
5535 #line $LINENO "configure"
5538 cat confdefs.h >>conftest.$ac_ext
5539 cat >>conftest.$ac_ext <<_ACEOF
5540 /* end confdefs.h. */
5541 #include <X11/Xlib.h>
5546 #if XlibSpecificationRelease < 6
5554 rm -f conftest.$ac_objext conftest$ac_exeext
5555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5556 (eval $ac_link) 2>&5
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); } &&
5560 { ac_try='test -s conftest$ac_exeext'
5561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }; }; then
5566 timidity_cv_x11_version_6=yes
5568 echo "$as_me: failed program was:" >&5
5569 sed 's/^/| /' conftest.$ac_ext >&5
5571 timidity_cv_x11_version_6=no
5573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5576 if test "$timidity_cv_x11_version_6" = "yes"; then
5577 echo "$as_me:$LINENO: result: 6 or newer" >&5
5578 echo "${ECHO_T}6 or newer" >&6
5580 echo "$as_me:$LINENO: result: before 6" >&5
5581 echo "${ECHO_T}before 6" >&6
5585 echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
5586 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
5587 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
5590 ac_check_lib_save_LIBS=$LIBS
5592 cat >conftest.$ac_ext <<_ACEOF
5593 #line $LINENO "configure"
5596 cat confdefs.h >>conftest.$ac_ext
5597 cat >>conftest.$ac_ext <<_ACEOF
5598 /* end confdefs.h. */
5600 /* Override any gcc2 internal prototype to avoid an error. */
5604 /* We use char because int might match the return type of a gcc2
5605 builtin and then its argument prototype would still apply. */
5606 char XShapeCombineMask ();
5610 XShapeCombineMask ();
5615 rm -f conftest.$ac_objext conftest$ac_exeext
5616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5617 (eval $ac_link) 2>&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } &&
5621 { ac_try='test -s conftest$ac_exeext'
5622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); }; }; then
5627 ac_cv_lib_Xext_XShapeCombineMask=yes
5629 echo "$as_me: failed program was:" >&5
5630 sed 's/^/| /' conftest.$ac_ext >&5
5632 ac_cv_lib_Xext_XShapeCombineMask=no
5634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5635 LIBS=$ac_check_lib_save_LIBS
5637 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
5638 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
5639 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
5640 have_xext=yes; LIBS="-lXext $LIBS"
5646 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5647 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5648 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5649 echo $ECHO_N "(cached) $ECHO_C" >&6
5651 ac_check_lib_save_LIBS=$LIBS
5653 cat >conftest.$ac_ext <<_ACEOF
5654 #line $LINENO "configure"
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h. */
5661 /* Override any gcc2 internal prototype to avoid an error. */
5665 /* We use char because int might match the return type of a gcc2
5666 builtin and then its argument prototype would still apply. */
5667 char IceConnectionNumber ();
5671 IceConnectionNumber ();
5676 rm -f conftest.$ac_objext conftest$ac_exeext
5677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5678 (eval $ac_link) 2>&5
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); } &&
5682 { ac_try='test -s conftest$ac_exeext'
5683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); }; }; then
5688 ac_cv_lib_ICE_IceConnectionNumber=yes
5690 echo "$as_me: failed program was:" >&5
5691 sed 's/^/| /' conftest.$ac_ext >&5
5693 ac_cv_lib_ICE_IceConnectionNumber=no
5695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5696 LIBS=$ac_check_lib_save_LIBS
5698 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5699 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5700 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5701 cat >>confdefs.h <<_ACEOF
5702 #define HAVE_LIBICE 1
5709 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
5710 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
5711 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
5712 echo $ECHO_N "(cached) $ECHO_C" >&6
5714 ac_check_lib_save_LIBS=$LIBS
5716 cat >conftest.$ac_ext <<_ACEOF
5717 #line $LINENO "configure"
5720 cat confdefs.h >>conftest.$ac_ext
5721 cat >>conftest.$ac_ext <<_ACEOF
5722 /* end confdefs.h. */
5724 /* Override any gcc2 internal prototype to avoid an error. */
5728 /* We use char because int might match the return type of a gcc2
5729 builtin and then its argument prototype would still apply. */
5730 char SmcOpenConnection ();
5734 SmcOpenConnection ();
5739 rm -f conftest.$ac_objext conftest$ac_exeext
5740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5741 (eval $ac_link) 2>&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } &&
5745 { ac_try='test -s conftest$ac_exeext'
5746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; }; then
5751 ac_cv_lib_SM_SmcOpenConnection=yes
5753 echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5756 ac_cv_lib_SM_SmcOpenConnection=no
5758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5759 LIBS=$ac_check_lib_save_LIBS
5761 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
5762 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
5763 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
5764 have_xprelibs=yes; LIBS="-lSM $LIBS"
5769 echo "$as_me:$LINENO: checking for XtVaAppInitialize in -lXt" >&5
5770 echo $ECHO_N "checking for XtVaAppInitialize in -lXt... $ECHO_C" >&6
5771 if test "${ac_cv_lib_Xt_XtVaAppInitialize+set}" = set; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5774 ac_check_lib_save_LIBS=$LIBS
5776 cat >conftest.$ac_ext <<_ACEOF
5777 #line $LINENO "configure"
5780 cat confdefs.h >>conftest.$ac_ext
5781 cat >>conftest.$ac_ext <<_ACEOF
5782 /* end confdefs.h. */
5784 /* Override any gcc2 internal prototype to avoid an error. */
5788 /* We use char because int might match the return type of a gcc2
5789 builtin and then its argument prototype would still apply. */
5790 char XtVaAppInitialize ();
5794 XtVaAppInitialize ();
5799 rm -f conftest.$ac_objext conftest$ac_exeext
5800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5801 (eval $ac_link) 2>&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); } &&
5805 { ac_try='test -s conftest$ac_exeext'
5806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); }; }; then
5811 ac_cv_lib_Xt_XtVaAppInitialize=yes
5813 echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5816 ac_cv_lib_Xt_XtVaAppInitialize=no
5818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5819 LIBS=$ac_check_lib_save_LIBS
5821 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtVaAppInitialize" >&5
5822 echo "${ECHO_T}$ac_cv_lib_Xt_XtVaAppInitialize" >&6
5823 if test $ac_cv_lib_Xt_XtVaAppInitialize = yes; then
5824 have_xt=yes; LIBS="-lXt $LIBS"
5829 echo "$as_me:$LINENO: checking for XmuInternAtom in -lXmu" >&5
5830 echo $ECHO_N "checking for XmuInternAtom in -lXmu... $ECHO_C" >&6
5831 if test "${ac_cv_lib_Xmu_XmuInternAtom+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5834 ac_check_lib_save_LIBS=$LIBS
5836 cat >conftest.$ac_ext <<_ACEOF
5837 #line $LINENO "configure"
5840 cat confdefs.h >>conftest.$ac_ext
5841 cat >>conftest.$ac_ext <<_ACEOF
5842 /* end confdefs.h. */
5844 /* Override any gcc2 internal prototype to avoid an error. */
5848 /* We use char because int might match the return type of a gcc2
5849 builtin and then its argument prototype would still apply. */
5850 char XmuInternAtom ();
5859 rm -f conftest.$ac_objext conftest$ac_exeext
5860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5861 (eval $ac_link) 2>&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } &&
5865 { ac_try='test -s conftest$ac_exeext'
5866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); }; }; then
5871 ac_cv_lib_Xmu_XmuInternAtom=yes
5873 echo "$as_me: failed program was:" >&5
5874 sed 's/^/| /' conftest.$ac_ext >&5
5876 ac_cv_lib_Xmu_XmuInternAtom=no
5878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5879 LIBS=$ac_check_lib_save_LIBS
5881 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuInternAtom" >&5
5882 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuInternAtom" >&6
5883 if test $ac_cv_lib_Xmu_XmuInternAtom = yes; then
5888 for ac_func in XmuRegisterExternalAgent
5890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5891 echo "$as_me:$LINENO: checking for $ac_func" >&5
5892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5893 if eval "test \"\${$as_ac_var+set}\" = set"; then
5894 echo $ECHO_N "(cached) $ECHO_C" >&6
5896 cat >conftest.$ac_ext <<_ACEOF
5897 #line $LINENO "configure"
5900 cat confdefs.h >>conftest.$ac_ext
5901 cat >>conftest.$ac_ext <<_ACEOF
5902 /* end confdefs.h. */
5903 /* System header to define __stub macros and hopefully few prototypes,
5904 which can conflict with char $ac_func (); below. */
5906 /* Override any gcc2 internal prototype to avoid an error. */
5911 /* We use char because int might match the return type of a gcc2
5912 builtin and then its argument prototype would still apply. */
5914 /* The GNU C library defines this for functions which it implements
5915 to always fail with ENOSYS. Some functions are actually named
5916 something starting with __ and the normal name is an alias. */
5917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5920 char (*f) () = $ac_func;
5934 rm -f conftest.$ac_objext conftest$ac_exeext
5935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5936 (eval $ac_link) 2>&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } &&
5940 { ac_try='test -s conftest$ac_exeext'
5941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); }; }; then
5946 eval "$as_ac_var=yes"
5948 echo "$as_me: failed program was:" >&5
5949 sed 's/^/| /' conftest.$ac_ext >&5
5951 eval "$as_ac_var=no"
5953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5956 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5957 if test `eval echo '${'$as_ac_var'}'` = yes; then
5958 cat >>confdefs.h <<_ACEOF
5959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5965 echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw3d" >&5
5966 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw3d... $ECHO_C" >&6
5967 if test "${ac_cv_lib_Xaw3d_XawInitializeWidgetSet+set}" = set; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5970 ac_check_lib_save_LIBS=$LIBS
5971 LIBS="-lXaw3d $LIBS"
5972 cat >conftest.$ac_ext <<_ACEOF
5973 #line $LINENO "configure"
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h. */
5980 /* Override any gcc2 internal prototype to avoid an error. */
5984 /* We use char because int might match the return type of a gcc2
5985 builtin and then its argument prototype would still apply. */
5986 char XawInitializeWidgetSet ();
5990 XawInitializeWidgetSet ();
5995 rm -f conftest.$ac_objext conftest$ac_exeext
5996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5997 (eval $ac_link) 2>&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } &&
6001 { ac_try='test -s conftest$ac_exeext'
6002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); }; }; then
6007 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=yes
6009 echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.$ac_ext >&5
6012 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=no
6014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6015 LIBS=$ac_check_lib_save_LIBS
6017 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&5
6018 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&6
6019 if test $ac_cv_lib_Xaw3d_XawInitializeWidgetSet = yes; then
6022 echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw" >&5
6023 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw... $ECHO_C" >&6
6024 if test "${ac_cv_lib_Xaw_XawInitializeWidgetSet+set}" = set; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 ac_check_lib_save_LIBS=$LIBS
6029 cat >conftest.$ac_ext <<_ACEOF
6030 #line $LINENO "configure"
6033 cat confdefs.h >>conftest.$ac_ext
6034 cat >>conftest.$ac_ext <<_ACEOF
6035 /* end confdefs.h. */
6037 /* Override any gcc2 internal prototype to avoid an error. */
6041 /* We use char because int might match the return type of a gcc2
6042 builtin and then its argument prototype would still apply. */
6043 char XawInitializeWidgetSet ();
6047 XawInitializeWidgetSet ();
6052 rm -f conftest.$ac_objext conftest$ac_exeext
6053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6054 (eval $ac_link) 2>&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); } &&
6058 { ac_try='test -s conftest$ac_exeext'
6059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); }; }; then
6064 ac_cv_lib_Xaw_XawInitializeWidgetSet=yes
6066 echo "$as_me: failed program was:" >&5
6067 sed 's/^/| /' conftest.$ac_ext >&5
6069 ac_cv_lib_Xaw_XawInitializeWidgetSet=no
6071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6072 LIBS=$ac_check_lib_save_LIBS
6074 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_XawInitializeWidgetSet" >&5
6075 echo "${ECHO_T}$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6
6076 if test $ac_cv_lib_Xaw_XawInitializeWidgetSet = yes; then
6084 echo "$as_me:$LINENO: checking for XmCreateForm in -lXm" >&5
6085 echo $ECHO_N "checking for XmCreateForm in -lXm... $ECHO_C" >&6
6086 if test "${ac_cv_lib_Xm_XmCreateForm+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6089 ac_check_lib_save_LIBS=$LIBS
6091 cat >conftest.$ac_ext <<_ACEOF
6092 #line $LINENO "configure"
6095 cat confdefs.h >>conftest.$ac_ext
6096 cat >>conftest.$ac_ext <<_ACEOF
6097 /* end confdefs.h. */
6099 /* Override any gcc2 internal prototype to avoid an error. */
6103 /* We use char because int might match the return type of a gcc2
6104 builtin and then its argument prototype would still apply. */
6105 char XmCreateForm ();
6114 rm -f conftest.$ac_objext conftest$ac_exeext
6115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6116 (eval $ac_link) 2>&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); } &&
6120 { ac_try='test -s conftest$ac_exeext'
6121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); }; }; then
6126 ac_cv_lib_Xm_XmCreateForm=yes
6128 echo "$as_me: failed program was:" >&5
6129 sed 's/^/| /' conftest.$ac_ext >&5
6131 ac_cv_lib_Xm_XmCreateForm=no
6133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6134 LIBS=$ac_check_lib_save_LIBS
6136 echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmCreateForm" >&5
6137 echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateForm" >&6
6138 if test $ac_cv_lib_Xm_XmCreateForm = yes; then
6145 for ac_func in XShmCreatePixmap
6147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6148 echo "$as_me:$LINENO: checking for $ac_func" >&5
6149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6150 if eval "test \"\${$as_ac_var+set}\" = set"; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 cat >conftest.$ac_ext <<_ACEOF
6154 #line $LINENO "configure"
6157 cat confdefs.h >>conftest.$ac_ext
6158 cat >>conftest.$ac_ext <<_ACEOF
6159 /* end confdefs.h. */
6160 /* System header to define __stub macros and hopefully few prototypes,
6161 which can conflict with char $ac_func (); below. */
6163 /* Override any gcc2 internal prototype to avoid an error. */
6168 /* We use char because int might match the return type of a gcc2
6169 builtin and then its argument prototype would still apply. */
6171 /* The GNU C library defines this for functions which it implements
6172 to always fail with ENOSYS. Some functions are actually named
6173 something starting with __ and the normal name is an alias. */
6174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6177 char (*f) () = $ac_func;
6191 rm -f conftest.$ac_objext conftest$ac_exeext
6192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6193 (eval $ac_link) 2>&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } &&
6197 { ac_try='test -s conftest$ac_exeext'
6198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); }; }; then
6203 eval "$as_ac_var=yes"
6205 echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.$ac_ext >&5
6208 eval "$as_ac_var=no"
6210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6213 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6214 if test `eval echo '${'$as_ac_var'}'` = yes; then
6215 cat >>confdefs.h <<_ACEOF
6216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6225 # Checks for header files.
6226 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6227 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6228 if test "${ac_cv_header_stdc+set}" = set; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6231 cat >conftest.$ac_ext <<_ACEOF
6232 #line $LINENO "configure"
6235 cat confdefs.h >>conftest.$ac_ext
6236 cat >>conftest.$ac_ext <<_ACEOF
6237 /* end confdefs.h. */
6251 rm -f conftest.$ac_objext
6252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6253 (eval $ac_compile) 2>&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } &&
6257 { ac_try='test -s conftest.$ac_objext'
6258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); }; }; then
6263 ac_cv_header_stdc=yes
6265 echo "$as_me: failed program was:" >&5
6266 sed 's/^/| /' conftest.$ac_ext >&5
6268 ac_cv_header_stdc=no
6270 rm -f conftest.$ac_objext conftest.$ac_ext
6272 if test $ac_cv_header_stdc = yes; then
6273 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6274 cat >conftest.$ac_ext <<_ACEOF
6275 #line $LINENO "configure"
6278 cat confdefs.h >>conftest.$ac_ext
6279 cat >>conftest.$ac_ext <<_ACEOF
6280 /* end confdefs.h. */
6284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6285 $EGREP "memchr" >/dev/null 2>&1; then
6288 ac_cv_header_stdc=no
6294 if test $ac_cv_header_stdc = yes; then
6295 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6296 cat >conftest.$ac_ext <<_ACEOF
6297 #line $LINENO "configure"
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h. */
6306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6307 $EGREP "free" >/dev/null 2>&1; then
6310 ac_cv_header_stdc=no
6316 if test $ac_cv_header_stdc = yes; then
6317 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6318 if test "$cross_compiling" = yes; then
6321 cat >conftest.$ac_ext <<_ACEOF
6322 #line $LINENO "configure"
6325 cat confdefs.h >>conftest.$ac_ext
6326 cat >>conftest.$ac_ext <<_ACEOF
6327 /* end confdefs.h. */
6329 #if ((' ' & 0x0FF) == 0x020)
6330 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6331 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6333 # define ISLOWER(c) \
6334 (('a' <= (c) && (c) <= 'i') \
6335 || ('j' <= (c) && (c) <= 'r') \
6336 || ('s' <= (c) && (c) <= 'z'))
6337 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6340 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6345 for (i = 0; i < 256; i++)
6346 if (XOR (islower (i), ISLOWER (i))
6347 || toupper (i) != TOUPPER (i))
6352 rm -f conftest$ac_exeext
6353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6354 (eval $ac_link) 2>&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }; }; then
6365 echo "$as_me: program exited with status $ac_status" >&5
6366 echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6370 ac_cv_header_stdc=no
6372 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6376 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6377 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6378 if test $ac_cv_header_stdc = yes; then
6380 cat >>confdefs.h <<\_ACEOF
6381 #define STDC_HEADERS 1
6386 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6396 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6397 inttypes.h stdint.h unistd.h
6399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6400 echo "$as_me:$LINENO: checking for $ac_header" >&5
6401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
6405 cat >conftest.$ac_ext <<_ACEOF
6406 #line $LINENO "configure"
6409 cat confdefs.h >>conftest.$ac_ext
6410 cat >>conftest.$ac_ext <<_ACEOF
6411 /* end confdefs.h. */
6412 $ac_includes_default
6414 #include <$ac_header>
6416 rm -f conftest.$ac_objext
6417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6418 (eval $ac_compile) 2>&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); } &&
6422 { ac_try='test -s conftest.$ac_objext'
6423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; }; then
6428 eval "$as_ac_Header=yes"
6430 echo "$as_me: failed program was:" >&5
6431 sed 's/^/| /' conftest.$ac_ext >&5
6433 eval "$as_ac_Header=no"
6435 rm -f conftest.$ac_objext conftest.$ac_ext
6437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6440 cat >>confdefs.h <<_ACEOF
6441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6449 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
6450 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
6451 if test "${ac_cv_header_stdbool_h+set}" = set; then
6452 echo $ECHO_N "(cached) $ECHO_C" >&6
6454 cat >conftest.$ac_ext <<_ACEOF
6455 #line $LINENO "configure"
6458 cat confdefs.h >>conftest.$ac_ext
6459 cat >>conftest.$ac_ext <<_ACEOF
6460 /* end confdefs.h. */
6462 #include <stdbool.h>
6464 # error bool is not defined
6467 # error false is not defined
6470 # error false is not 0
6473 # error true is not defined
6476 # error true is not 1
6478 #ifndef __bool_true_false_are_defined
6479 # error __bool_true_false_are_defined is not defined
6482 struct s { _Bool s: 1; _Bool t; } s;
6484 char a[true == 1 ? 1 : -1];
6485 char b[false == 0 ? 1 : -1];
6486 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6487 char d[(bool) -0.5 == true ? 1 : -1];
6489 char f[(_Bool) -0.0 == false ? 1 : -1];
6491 char h[sizeof (_Bool)];
6497 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
6502 rm -f conftest.$ac_objext
6503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6504 (eval $ac_compile) 2>&5
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); } &&
6508 { ac_try='test -s conftest.$ac_objext'
6509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); }; }; then
6514 ac_cv_header_stdbool_h=yes
6516 echo "$as_me: failed program was:" >&5
6517 sed 's/^/| /' conftest.$ac_ext >&5
6519 ac_cv_header_stdbool_h=no
6521 rm -f conftest.$ac_objext conftest.$ac_ext
6523 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
6524 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
6525 echo "$as_me:$LINENO: checking for _Bool" >&5
6526 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
6527 if test "${ac_cv_type__Bool+set}" = set; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
6530 cat >conftest.$ac_ext <<_ACEOF
6531 #line $LINENO "configure"
6534 cat confdefs.h >>conftest.$ac_ext
6535 cat >>conftest.$ac_ext <<_ACEOF
6536 /* end confdefs.h. */
6537 $ac_includes_default
6549 rm -f conftest.$ac_objext
6550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6551 (eval $ac_compile) 2>&5
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); } &&
6555 { ac_try='test -s conftest.$ac_objext'
6556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); }; }; then
6561 ac_cv_type__Bool=yes
6563 echo "$as_me: failed program was:" >&5
6564 sed 's/^/| /' conftest.$ac_ext >&5
6568 rm -f conftest.$ac_objext conftest.$ac_ext
6570 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
6571 echo "${ECHO_T}$ac_cv_type__Bool" >&6
6572 if test $ac_cv_type__Bool = yes; then
6574 cat >>confdefs.h <<_ACEOF
6575 #define HAVE__BOOL 1
6581 if test $ac_cv_header_stdbool_h = yes; then
6583 cat >>confdefs.h <<\_ACEOF
6584 #define HAVE_STDBOOL_H 1
6589 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6590 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6591 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6592 echo $ECHO_N "(cached) $ECHO_C" >&6
6594 cat >conftest.$ac_ext <<_ACEOF
6595 #line $LINENO "configure"
6598 cat confdefs.h >>conftest.$ac_ext
6599 cat >>conftest.$ac_ext <<_ACEOF
6600 /* end confdefs.h. */
6601 #include <sys/types.h>
6602 #include <sys/wait.h>
6604 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6607 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6615 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6620 rm -f conftest.$ac_objext
6621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6622 (eval $ac_compile) 2>&5
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); } &&
6626 { ac_try='test -s conftest.$ac_objext'
6627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); }; }; then
6632 ac_cv_header_sys_wait_h=yes
6634 echo "$as_me: failed program was:" >&5
6635 sed 's/^/| /' conftest.$ac_ext >&5
6637 ac_cv_header_sys_wait_h=no
6639 rm -f conftest.$ac_objext conftest.$ac_ext
6641 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6642 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6643 if test $ac_cv_header_sys_wait_h = yes; then
6645 cat >>confdefs.h <<\_ACEOF
6646 #define HAVE_SYS_WAIT_H 1
6651 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6652 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6653 if test "${ac_cv_header_time+set}" = set; then
6654 echo $ECHO_N "(cached) $ECHO_C" >&6
6656 cat >conftest.$ac_ext <<_ACEOF
6657 #line $LINENO "configure"
6660 cat confdefs.h >>conftest.$ac_ext
6661 cat >>conftest.$ac_ext <<_ACEOF
6662 /* end confdefs.h. */
6663 #include <sys/types.h>
6664 #include <sys/time.h>
6670 if ((struct tm *) 0)
6676 rm -f conftest.$ac_objext
6677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6678 (eval $ac_compile) 2>&5
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); } &&
6682 { ac_try='test -s conftest.$ac_objext'
6683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); }; }; then
6688 ac_cv_header_time=yes
6690 echo "$as_me: failed program was:" >&5
6691 sed 's/^/| /' conftest.$ac_ext >&5
6693 ac_cv_header_time=no
6695 rm -f conftest.$ac_objext conftest.$ac_ext
6697 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6698 echo "${ECHO_T}$ac_cv_header_time" >&6
6699 if test $ac_cv_header_time = yes; then
6701 cat >>confdefs.h <<\_ACEOF
6702 #define TIME_WITH_SYS_TIME 1
6713 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6714 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6715 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6716 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6718 echo $ECHO_N "(cached) $ECHO_C" >&6
6720 cat >conftest.$ac_ext <<_ACEOF
6721 #line $LINENO "configure"
6724 cat confdefs.h >>conftest.$ac_ext
6725 cat >>conftest.$ac_ext <<_ACEOF
6726 /* end confdefs.h. */
6727 #include <sys/types.h>
6739 rm -f conftest.$ac_objext
6740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6741 (eval $ac_compile) 2>&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); } &&
6745 { ac_try='test -s conftest.$ac_objext'
6746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); }; }; then
6751 eval "$as_ac_Header=yes"
6753 echo "$as_me: failed program was:" >&5
6754 sed 's/^/| /' conftest.$ac_ext >&5
6756 eval "$as_ac_Header=no"
6758 rm -f conftest.$ac_objext conftest.$ac_ext
6760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6763 cat >>confdefs.h <<_ACEOF
6764 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6767 ac_header_dirent=$ac_hdr; break
6771 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6772 if test $ac_header_dirent = dirent.h; then
6773 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6774 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6775 if test "${ac_cv_search_opendir+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6778 ac_func_search_save_LIBS=$LIBS
6779 ac_cv_search_opendir=no
6780 cat >conftest.$ac_ext <<_ACEOF
6781 #line $LINENO "configure"
6784 cat confdefs.h >>conftest.$ac_ext
6785 cat >>conftest.$ac_ext <<_ACEOF
6786 /* end confdefs.h. */
6788 /* Override any gcc2 internal prototype to avoid an error. */
6792 /* We use char because int might match the return type of a gcc2
6793 builtin and then its argument prototype would still apply. */
6803 rm -f conftest.$ac_objext conftest$ac_exeext
6804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6805 (eval $ac_link) 2>&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } &&
6809 { ac_try='test -s conftest$ac_exeext'
6810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); }; }; then
6815 ac_cv_search_opendir="none required"
6817 echo "$as_me: failed program was:" >&5
6818 sed 's/^/| /' conftest.$ac_ext >&5
6821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6822 if test "$ac_cv_search_opendir" = no; then
6823 for ac_lib in dir; do
6824 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6825 cat >conftest.$ac_ext <<_ACEOF
6826 #line $LINENO "configure"
6829 cat confdefs.h >>conftest.$ac_ext
6830 cat >>conftest.$ac_ext <<_ACEOF
6831 /* end confdefs.h. */
6833 /* Override any gcc2 internal prototype to avoid an error. */
6837 /* We use char because int might match the return type of a gcc2
6838 builtin and then its argument prototype would still apply. */
6848 rm -f conftest.$ac_objext conftest$ac_exeext
6849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6850 (eval $ac_link) 2>&5
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); } &&
6854 { ac_try='test -s conftest$ac_exeext'
6855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); }; }; then
6860 ac_cv_search_opendir="-l$ac_lib"
6863 echo "$as_me: failed program was:" >&5
6864 sed 's/^/| /' conftest.$ac_ext >&5
6867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6870 LIBS=$ac_func_search_save_LIBS
6872 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6873 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6874 if test "$ac_cv_search_opendir" != no; then
6875 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6880 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6881 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6882 if test "${ac_cv_search_opendir+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6885 ac_func_search_save_LIBS=$LIBS
6886 ac_cv_search_opendir=no
6887 cat >conftest.$ac_ext <<_ACEOF
6888 #line $LINENO "configure"
6891 cat confdefs.h >>conftest.$ac_ext
6892 cat >>conftest.$ac_ext <<_ACEOF
6893 /* end confdefs.h. */
6895 /* Override any gcc2 internal prototype to avoid an error. */
6899 /* We use char because int might match the return type of a gcc2
6900 builtin and then its argument prototype would still apply. */
6910 rm -f conftest.$ac_objext conftest$ac_exeext
6911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6912 (eval $ac_link) 2>&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); } &&
6916 { ac_try='test -s conftest$ac_exeext'
6917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); }; }; then
6922 ac_cv_search_opendir="none required"
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
6929 if test "$ac_cv_search_opendir" = no; then
6931 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6932 cat >conftest.$ac_ext <<_ACEOF
6933 #line $LINENO "configure"
6936 cat confdefs.h >>conftest.$ac_ext
6937 cat >>conftest.$ac_ext <<_ACEOF
6938 /* end confdefs.h. */
6940 /* Override any gcc2 internal prototype to avoid an error. */
6944 /* We use char because int might match the return type of a gcc2
6945 builtin and then its argument prototype would still apply. */
6955 rm -f conftest.$ac_objext conftest$ac_exeext
6956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6957 (eval $ac_link) 2>&5
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); } &&
6961 { ac_try='test -s conftest$ac_exeext'
6962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); }; }; then
6967 ac_cv_search_opendir="-l$ac_lib"
6970 echo "$as_me: failed program was:" >&5
6971 sed 's/^/| /' conftest.$ac_ext >&5
6974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6977 LIBS=$ac_func_search_save_LIBS
6979 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6980 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6981 if test "$ac_cv_search_opendir" != no; then
6982 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7065 X11/extensions/XShm.h \
7068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7070 echo "$as_me:$LINENO: checking for $ac_header" >&5
7071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7073 echo $ECHO_N "(cached) $ECHO_C" >&6
7075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7078 # Is the header compilable?
7079 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7081 cat >conftest.$ac_ext <<_ACEOF
7082 #line $LINENO "configure"
7085 cat confdefs.h >>conftest.$ac_ext
7086 cat >>conftest.$ac_ext <<_ACEOF
7087 /* end confdefs.h. */
7088 $ac_includes_default
7089 #include <$ac_header>
7091 rm -f conftest.$ac_objext
7092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7093 (eval $ac_compile) 2>&5
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); } &&
7097 { ac_try='test -s conftest.$ac_objext'
7098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); }; }; then
7103 ac_header_compiler=yes
7105 echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.$ac_ext >&5
7108 ac_header_compiler=no
7110 rm -f conftest.$ac_objext conftest.$ac_ext
7111 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7112 echo "${ECHO_T}$ac_header_compiler" >&6
7114 # Is the header present?
7115 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7116 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7117 cat >conftest.$ac_ext <<_ACEOF
7118 #line $LINENO "configure"
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7124 #include <$ac_header>
7126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7129 grep -v '^ *+' conftest.er1 >conftest.err
7131 cat conftest.err >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } >/dev/null; then
7134 if test -s conftest.err; then
7135 ac_cpp_err=$ac_c_preproc_warn_flag
7142 if test -z "$ac_cpp_err"; then
7143 ac_header_preproc=yes
7145 echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.$ac_ext >&5
7148 ac_header_preproc=no
7150 rm -f conftest.err conftest.$ac_ext
7151 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7152 echo "${ECHO_T}$ac_header_preproc" >&6
7154 # So? What about this header?
7155 case $ac_header_compiler:$ac_header_preproc in
7157 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7163 ## ------------------------------------ ##
7164 ## Report this to bug-autoconf@gnu.org. ##
7165 ## ------------------------------------ ##
7168 sed "s/^/$as_me: WARNING: /" >&2
7171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7174 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7176 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7179 ## ------------------------------------ ##
7180 ## Report this to bug-autoconf@gnu.org. ##
7181 ## ------------------------------------ ##
7184 sed "s/^/$as_me: WARNING: /" >&2
7187 echo "$as_me:$LINENO: checking for $ac_header" >&5
7188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7192 eval "$as_ac_Header=$ac_header_preproc"
7194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7199 cat >>confdefs.h <<_ACEOF
7200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7207 if test "${ac_cv_header_string_h+set}" = set; then
7208 echo "$as_me:$LINENO: checking for string.h" >&5
7209 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
7210 if test "${ac_cv_header_string_h+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7213 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7214 echo "${ECHO_T}$ac_cv_header_string_h" >&6
7216 # Is the header compilable?
7217 echo "$as_me:$LINENO: checking string.h usability" >&5
7218 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
7219 cat >conftest.$ac_ext <<_ACEOF
7220 #line $LINENO "configure"
7223 cat confdefs.h >>conftest.$ac_ext
7224 cat >>conftest.$ac_ext <<_ACEOF
7225 /* end confdefs.h. */
7226 $ac_includes_default
7229 rm -f conftest.$ac_objext
7230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7231 (eval $ac_compile) 2>&5
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); } &&
7235 { ac_try='test -s conftest.$ac_objext'
7236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); }; }; then
7241 ac_header_compiler=yes
7243 echo "$as_me: failed program was:" >&5
7244 sed 's/^/| /' conftest.$ac_ext >&5
7246 ac_header_compiler=no
7248 rm -f conftest.$ac_objext conftest.$ac_ext
7249 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7250 echo "${ECHO_T}$ac_header_compiler" >&6
7252 # Is the header present?
7253 echo "$as_me:$LINENO: checking string.h presence" >&5
7254 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
7255 cat >conftest.$ac_ext <<_ACEOF
7256 #line $LINENO "configure"
7259 cat confdefs.h >>conftest.$ac_ext
7260 cat >>conftest.$ac_ext <<_ACEOF
7261 /* end confdefs.h. */
7264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7267 grep -v '^ *+' conftest.er1 >conftest.err
7269 cat conftest.err >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } >/dev/null; then
7272 if test -s conftest.err; then
7273 ac_cpp_err=$ac_c_preproc_warn_flag
7280 if test -z "$ac_cpp_err"; then
7281 ac_header_preproc=yes
7283 echo "$as_me: failed program was:" >&5
7284 sed 's/^/| /' conftest.$ac_ext >&5
7286 ac_header_preproc=no
7288 rm -f conftest.err conftest.$ac_ext
7289 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7290 echo "${ECHO_T}$ac_header_preproc" >&6
7292 # So? What about this header?
7293 case $ac_header_compiler:$ac_header_preproc in
7295 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
7296 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7297 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
7298 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
7301 ## ------------------------------------ ##
7302 ## Report this to bug-autoconf@gnu.org. ##
7303 ## ------------------------------------ ##
7306 sed "s/^/$as_me: WARNING: /" >&2
7309 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
7310 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
7311 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
7312 echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
7313 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
7314 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
7317 ## ------------------------------------ ##
7318 ## Report this to bug-autoconf@gnu.org. ##
7319 ## ------------------------------------ ##
7322 sed "s/^/$as_me: WARNING: /" >&2
7325 echo "$as_me:$LINENO: checking for string.h" >&5
7326 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
7327 if test "${ac_cv_header_string_h+set}" = set; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
7330 ac_cv_header_string_h=$ac_header_preproc
7332 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7333 echo "${ECHO_T}$ac_cv_header_string_h" >&6
7336 if test $ac_cv_header_string_h = yes; then
7340 cat >>confdefs.h <<\_ACEOF
7341 #define NO_STRING_H 1
7348 # Checks for typedefs, structures, and compiler characteristics.
7349 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7350 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7351 if test "${ac_cv_c_bigendian+set}" = set; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7354 # See if sys/param.h defines the BYTE_ORDER macro.
7355 cat >conftest.$ac_ext <<_ACEOF
7356 #line $LINENO "configure"
7359 cat confdefs.h >>conftest.$ac_ext
7360 cat >>conftest.$ac_ext <<_ACEOF
7361 /* end confdefs.h. */
7362 #include <sys/types.h>
7363 #include <sys/param.h>
7368 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7376 rm -f conftest.$ac_objext
7377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7378 (eval $ac_compile) 2>&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); } &&
7382 { ac_try='test -s conftest.$ac_objext'
7383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); }; }; then
7388 # It does; now see whether it defined to BIG_ENDIAN or not.
7389 cat >conftest.$ac_ext <<_ACEOF
7390 #line $LINENO "configure"
7393 cat confdefs.h >>conftest.$ac_ext
7394 cat >>conftest.$ac_ext <<_ACEOF
7395 /* end confdefs.h. */
7396 #include <sys/types.h>
7397 #include <sys/param.h>
7402 #if BYTE_ORDER != BIG_ENDIAN
7410 rm -f conftest.$ac_objext
7411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7412 (eval $ac_compile) 2>&5
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); } &&
7416 { ac_try='test -s conftest.$ac_objext'
7417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); }; }; then
7422 ac_cv_c_bigendian=yes
7424 echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.$ac_ext >&5
7427 ac_cv_c_bigendian=no
7429 rm -f conftest.$ac_objext conftest.$ac_ext
7431 echo "$as_me: failed program was:" >&5
7432 sed 's/^/| /' conftest.$ac_ext >&5
7434 # It does not; compile a test program.
7435 if test "$cross_compiling" = yes; then
7436 # try to guess the endianness by grepping values into an object file
7437 ac_cv_c_bigendian=unknown
7438 cat >conftest.$ac_ext <<_ACEOF
7439 #line $LINENO "configure"
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h. */
7445 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7446 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7447 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7448 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7449 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7450 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7454 _ascii (); _ebcdic ();
7459 rm -f conftest.$ac_objext
7460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7461 (eval $ac_compile) 2>&5
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); } &&
7465 { ac_try='test -s conftest.$ac_objext'
7466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); }; }; then
7471 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7472 ac_cv_c_bigendian=yes
7474 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7475 if test "$ac_cv_c_bigendian" = unknown; then
7476 ac_cv_c_bigendian=no
7478 # finding both strings is unlikely to happen, but who knows?
7479 ac_cv_c_bigendian=unknown
7483 echo "$as_me: failed program was:" >&5
7484 sed 's/^/| /' conftest.$ac_ext >&5
7487 rm -f conftest.$ac_objext conftest.$ac_ext
7489 cat >conftest.$ac_ext <<_ACEOF
7490 #line $LINENO "configure"
7493 cat confdefs.h >>conftest.$ac_ext
7494 cat >>conftest.$ac_ext <<_ACEOF
7495 /* end confdefs.h. */
7499 /* Are we little or big endian? From Harbison&Steele. */
7503 char c[sizeof (long)];
7506 exit (u.c[sizeof (long) - 1] == 1);
7509 rm -f conftest$ac_exeext
7510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7511 (eval $ac_link) 2>&5
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); }; }; then
7520 ac_cv_c_bigendian=no
7522 echo "$as_me: program exited with status $ac_status" >&5
7523 echo "$as_me: failed program was:" >&5
7524 sed 's/^/| /' conftest.$ac_ext >&5
7527 ac_cv_c_bigendian=yes
7529 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7532 rm -f conftest.$ac_objext conftest.$ac_ext
7534 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7535 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7536 case $ac_cv_c_bigendian in
7539 cat >>confdefs.h <<\_ACEOF
7540 #define WORDS_BIGENDIAN 1
7546 { { echo "$as_me:$LINENO: error: unknown endianness
7547 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7548 echo "$as_me: error: unknown endianness
7549 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7550 { (exit 1); exit 1; }; } ;;
7554 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
7555 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
7556 if test "${ac_cv_c_char_unsigned+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
7559 cat >conftest.$ac_ext <<_ACEOF
7560 #line $LINENO "configure"
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h. */
7566 $ac_includes_default
7570 static int test_array [1 - 2 * !(((char) -1) < 0)];
7577 rm -f conftest.$ac_objext
7578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7579 (eval $ac_compile) 2>&5
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); } &&
7583 { ac_try='test -s conftest.$ac_objext'
7584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); }; }; then
7589 ac_cv_c_char_unsigned=no
7591 echo "$as_me: failed program was:" >&5
7592 sed 's/^/| /' conftest.$ac_ext >&5
7594 ac_cv_c_char_unsigned=yes
7596 rm -f conftest.$ac_objext conftest.$ac_ext
7598 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
7599 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
7600 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
7601 cat >>confdefs.h <<\_ACEOF
7602 #define __CHAR_UNSIGNED__ 1
7607 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7608 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7609 if test "${ac_cv_c_const+set}" = set; then
7610 echo $ECHO_N "(cached) $ECHO_C" >&6
7612 cat >conftest.$ac_ext <<_ACEOF
7613 #line $LINENO "configure"
7616 cat confdefs.h >>conftest.$ac_ext
7617 cat >>conftest.$ac_ext <<_ACEOF
7618 /* end confdefs.h. */
7623 /* FIXME: Include the comments suggested by Paul. */
7625 /* Ultrix mips cc rejects this. */
7626 typedef int charset[2];
7628 /* SunOS 4.1.1 cc rejects this. */
7629 char const *const *ccp;
7631 /* NEC SVR4.0.2 mips cc rejects this. */
7632 struct point {int x, y;};
7633 static struct point const zero = {0,0};
7634 /* AIX XL C 1.02.0.0 rejects this.
7635 It does not let you subtract one const X* pointer from another in
7636 an arm of an if-expression whose if-part is not a constant
7638 const char *g = "string";
7639 ccp = &g + (g ? g-g : 0);
7640 /* HPUX 7.0 cc rejects these. */
7643 ccp = (char const *const *) p;
7644 { /* SCO 3.2v4 cc rejects this. */
7646 char const *s = 0 ? (char *) 0 : (char const *) 0;
7650 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7652 const int *foo = &x[0];
7655 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7656 typedef const int *iptr;
7660 { /* AIX XL C 1.02.0.0 rejects this saying
7661 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7662 struct s { int j; const int *ap[3]; };
7663 struct s *b; b->j = 5;
7665 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7674 rm -f conftest.$ac_objext
7675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7676 (eval $ac_compile) 2>&5
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); } &&
7680 { ac_try='test -s conftest.$ac_objext'
7681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); }; }; then
7688 echo "$as_me: failed program was:" >&5
7689 sed 's/^/| /' conftest.$ac_ext >&5
7693 rm -f conftest.$ac_objext conftest.$ac_ext
7695 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7696 echo "${ECHO_T}$ac_cv_c_const" >&6
7697 if test $ac_cv_c_const = no; then
7699 cat >>confdefs.h <<\_ACEOF
7705 echo "$as_me:$LINENO: checking for inline" >&5
7706 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7707 if test "${ac_cv_c_inline+set}" = set; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7711 for ac_kw in inline __inline__ __inline; do
7712 cat >conftest.$ac_ext <<_ACEOF
7713 #line $LINENO "configure"
7716 cat confdefs.h >>conftest.$ac_ext
7717 cat >>conftest.$ac_ext <<_ACEOF
7718 /* end confdefs.h. */
7721 static $ac_kw foo_t static_foo () {return 0; }
7722 $ac_kw foo_t foo () {return 0; }
7726 rm -f conftest.$ac_objext
7727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7728 (eval $ac_compile) 2>&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); } &&
7732 { ac_try='test -s conftest.$ac_objext'
7733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; }; then
7738 ac_cv_c_inline=$ac_kw; break
7740 echo "$as_me: failed program was:" >&5
7741 sed 's/^/| /' conftest.$ac_ext >&5
7744 rm -f conftest.$ac_objext conftest.$ac_ext
7748 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7749 echo "${ECHO_T}$ac_cv_c_inline" >&6
7750 case $ac_cv_c_inline in
7753 cat >>confdefs.h <<\_ACEOF
7757 *) cat >>confdefs.h <<_ACEOF
7758 #define inline $ac_cv_c_inline
7763 echo "$as_me:$LINENO: checking for working volatile" >&5
7764 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7765 if test "${ac_cv_c_volatile+set}" = set; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7768 cat >conftest.$ac_ext <<_ACEOF
7769 #line $LINENO "configure"
7772 cat confdefs.h >>conftest.$ac_ext
7773 cat >>conftest.$ac_ext <<_ACEOF
7774 /* end confdefs.h. */
7786 rm -f conftest.$ac_objext
7787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7788 (eval $ac_compile) 2>&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); } &&
7792 { ac_try='test -s conftest.$ac_objext'
7793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); }; }; then
7798 ac_cv_c_volatile=yes
7800 echo "$as_me: failed program was:" >&5
7801 sed 's/^/| /' conftest.$ac_ext >&5
7805 rm -f conftest.$ac_objext conftest.$ac_ext
7807 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7808 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7809 if test $ac_cv_c_volatile = no; then
7811 cat >>confdefs.h <<\_ACEOF
7817 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
7818 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
7819 if test "${ac_cv_c_stringize+set}" = set; then
7820 echo $ECHO_N "(cached) $ECHO_C" >&6
7822 cat >conftest.$ac_ext <<_ACEOF
7823 #line $LINENO "configure"
7826 cat confdefs.h >>conftest.$ac_ext
7827 cat >>conftest.$ac_ext <<_ACEOF
7828 /* end confdefs.h. */
7831 char *s = x(teststring);
7833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7834 $EGREP "#teststring" >/dev/null 2>&1; then
7835 ac_cv_c_stringize=no
7837 ac_cv_c_stringize=yes
7842 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
7843 echo "${ECHO_T}$ac_cv_c_stringize" >&6
7844 if test $ac_cv_c_stringize = yes; then
7846 cat >>confdefs.h <<\_ACEOF
7847 #define HAVE_STRINGIZE 1
7852 echo "$as_me:$LINENO: checking for function prototypes" >&5
7853 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7854 if test "$ac_cv_prog_cc_stdc" != no; then
7855 echo "$as_me:$LINENO: result: yes" >&5
7856 echo "${ECHO_T}yes" >&6
7858 cat >>confdefs.h <<\_ACEOF
7859 #define PROTOTYPES 1
7863 cat >>confdefs.h <<\_ACEOF
7864 #define __PROTOTYPES 1
7868 echo "$as_me:$LINENO: result: no" >&5
7869 echo "${ECHO_T}no" >&6
7872 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7873 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7874 if test "${ac_cv_struct_tm+set}" = set; then
7875 echo $ECHO_N "(cached) $ECHO_C" >&6
7877 cat >conftest.$ac_ext <<_ACEOF
7878 #line $LINENO "configure"
7881 cat confdefs.h >>conftest.$ac_ext
7882 cat >>conftest.$ac_ext <<_ACEOF
7883 /* end confdefs.h. */
7884 #include <sys/types.h>
7890 struct tm *tp; tp->tm_sec;
7895 rm -f conftest.$ac_objext
7896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7897 (eval $ac_compile) 2>&5
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); } &&
7901 { ac_try='test -s conftest.$ac_objext'
7902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); }; }; then
7907 ac_cv_struct_tm=time.h
7909 echo "$as_me: failed program was:" >&5
7910 sed 's/^/| /' conftest.$ac_ext >&5
7912 ac_cv_struct_tm=sys/time.h
7914 rm -f conftest.$ac_objext conftest.$ac_ext
7916 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7917 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7918 if test $ac_cv_struct_tm = sys/time.h; then
7920 cat >>confdefs.h <<\_ACEOF
7921 #define TM_IN_SYS_TIME 1
7926 echo "$as_me:$LINENO: checking for size_t" >&5
7927 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7928 if test "${ac_cv_type_size_t+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7931 cat >conftest.$ac_ext <<_ACEOF
7932 #line $LINENO "configure"
7935 cat confdefs.h >>conftest.$ac_ext
7936 cat >>conftest.$ac_ext <<_ACEOF
7937 /* end confdefs.h. */
7938 $ac_includes_default
7944 if (sizeof (size_t))
7950 rm -f conftest.$ac_objext
7951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7952 (eval $ac_compile) 2>&5
7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); } &&
7956 { ac_try='test -s conftest.$ac_objext'
7957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); }; }; then
7962 ac_cv_type_size_t=yes
7964 echo "$as_me: failed program was:" >&5
7965 sed 's/^/| /' conftest.$ac_ext >&5
7967 ac_cv_type_size_t=no
7969 rm -f conftest.$ac_objext conftest.$ac_ext
7971 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7972 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7973 if test $ac_cv_type_size_t = yes; then
7977 cat >>confdefs.h <<_ACEOF
7978 #define size_t unsigned
7983 echo "$as_me:$LINENO: checking for off_t" >&5
7984 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7985 if test "${ac_cv_type_off_t+set}" = set; then
7986 echo $ECHO_N "(cached) $ECHO_C" >&6
7988 cat >conftest.$ac_ext <<_ACEOF
7989 #line $LINENO "configure"
7992 cat confdefs.h >>conftest.$ac_ext
7993 cat >>conftest.$ac_ext <<_ACEOF
7994 /* end confdefs.h. */
7995 $ac_includes_default
8007 rm -f conftest.$ac_objext
8008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8009 (eval $ac_compile) 2>&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } &&
8013 { ac_try='test -s conftest.$ac_objext'
8014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); }; }; then
8019 ac_cv_type_off_t=yes
8021 echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8026 rm -f conftest.$ac_objext conftest.$ac_ext
8028 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8029 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8030 if test $ac_cv_type_off_t = yes; then
8034 cat >>confdefs.h <<_ACEOF
8040 echo "$as_me:$LINENO: checking for pid_t" >&5
8041 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8042 if test "${ac_cv_type_pid_t+set}" = set; then
8043 echo $ECHO_N "(cached) $ECHO_C" >&6
8045 cat >conftest.$ac_ext <<_ACEOF
8046 #line $LINENO "configure"
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h. */
8052 $ac_includes_default
8064 rm -f conftest.$ac_objext
8065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8066 (eval $ac_compile) 2>&5
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); } &&
8070 { ac_try='test -s conftest.$ac_objext'
8071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); }; }; then
8076 ac_cv_type_pid_t=yes
8078 echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.$ac_ext >&5
8083 rm -f conftest.$ac_objext conftest.$ac_ext
8085 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8086 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8087 if test $ac_cv_type_pid_t = yes; then
8091 cat >>confdefs.h <<_ACEOF
8098 echo "$as_me:$LINENO: checking volatile declaration" >&5
8099 echo $ECHO_N "checking volatile declaration... $ECHO_C" >&6
8100 if test "${timidity_cv_type_volatile+set}" = set; then
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
8103 cat >conftest.$ac_ext <<_ACEOF
8104 #line $LINENO "configure"
8107 cat confdefs.h >>conftest.$ac_ext
8108 cat >>conftest.$ac_ext <<_ACEOF
8109 /* end confdefs.h. */
8119 rm -f conftest.$ac_objext
8120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8121 (eval $ac_compile) 2>&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); } &&
8125 { ac_try='test -s conftest.$ac_objext'
8126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); }; }; then
8131 timidity_cv_type_volatile=yes
8133 echo "$as_me: failed program was:" >&5
8134 sed 's/^/| /' conftest.$ac_ext >&5
8136 timidity_cv_type_volatile=no
8138 rm -f conftest.$ac_objext conftest.$ac_ext
8140 echo "$as_me:$LINENO: result: $timidity_cv_type_volatile" >&5
8141 echo "${ECHO_T}$timidity_cv_type_volatile" >&6
8142 if test $timidity_cv_type_volatile = no; then
8144 cat >>confdefs.h <<\_ACEOF
8145 #define NO_VOLATILE 1
8150 echo "$as_me:$LINENO: checking union semun declaration" >&5
8151 echo $ECHO_N "checking union semun declaration... $ECHO_C" >&6
8152 if test "${timidity_cv_type_union_semun+set}" = set; then
8153 echo $ECHO_N "(cached) $ECHO_C" >&6
8155 cat >conftest.$ac_ext <<_ACEOF
8156 #line $LINENO "configure"
8159 cat confdefs.h >>conftest.$ac_ext
8160 cat >>conftest.$ac_ext <<_ACEOF
8161 /* end confdefs.h. */
8163 #include <sys/types.h>
8164 #include <sys/ipc.h>
8165 #include <sys/sem.h>
8175 rm -f conftest.$ac_objext
8176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8177 (eval $ac_compile) 2>&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); } &&
8181 { ac_try='test -s conftest.$ac_objext'
8182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); }; }; then
8187 timidity_cv_type_union_semun=yes
8189 echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8192 timidity_cv_type_union_semun=no
8194 rm -f conftest.$ac_objext conftest.$ac_ext
8196 echo "$as_me:$LINENO: result: $timidity_cv_type_union_semun" >&5
8197 echo "${ECHO_T}$timidity_cv_type_union_semun" >&6
8198 if test $timidity_cv_type_union_semun = yes; then
8200 cat >>confdefs.h <<\_ACEOF
8201 #define HAVE_UNION_SEMUN 1
8206 if test "x$CYGNUS" = xyes; then
8207 echo "$as_me:$LINENO: checking Cygwin new mmsystem" >&5
8208 echo $ECHO_N "checking Cygwin new mmsystem... $ECHO_C" >&6
8209 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
8212 cat >conftest.$ac_ext <<_ACEOF
8213 #line $LINENO "configure"
8216 cat confdefs.h >>conftest.$ac_ext
8217 cat >>conftest.$ac_ext <<_ACEOF
8218 /* end confdefs.h. */
8220 #include <windows.h>
8221 #include <mmsystem.h>
8226 return WOM_OPEN != 0x3BB
8231 rm -f conftest.$ac_objext
8232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8233 (eval $ac_compile) 2>&5
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); } &&
8237 { ac_try='test -s conftest.$ac_objext'
8238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); }; }; then
8243 timidity_cv_header_new_mmsystem=yes
8245 echo "$as_me: failed program was:" >&5
8246 sed 's/^/| /' conftest.$ac_ext >&5
8248 timidity_cv_header_new_mmsystem=no
8250 rm -f conftest.$ac_objext conftest.$ac_ext
8252 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
8253 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
8254 if test $timidity_cv_header_new_mmsystem = yes; then
8256 cat >>confdefs.h <<\_ACEOF
8257 #define HAVE_NEW_MMSYSTEM 1
8263 if test "x$MINGW" = xyes; then
8264 echo "$as_me:$LINENO: checking Mingw new mmsystem" >&5
8265 echo $ECHO_N "checking Mingw new mmsystem... $ECHO_C" >&6
8266 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
8269 cat >conftest.$ac_ext <<_ACEOF
8270 #line $LINENO "configure"
8273 cat confdefs.h >>conftest.$ac_ext
8274 cat >>conftest.$ac_ext <<_ACEOF
8275 /* end confdefs.h. */
8277 #include <windows.h>
8278 #include <mmsystem.h>
8283 return WOM_OPEN != 0x3BB
8288 rm -f conftest.$ac_objext
8289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8290 (eval $ac_compile) 2>&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } &&
8294 { ac_try='test -s conftest.$ac_objext'
8295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); }; }; then
8300 timidity_cv_header_new_mmsystem=yes
8302 echo "$as_me: failed program was:" >&5
8303 sed 's/^/| /' conftest.$ac_ext >&5
8305 timidity_cv_header_new_mmsystem=no
8307 rm -f conftest.$ac_objext conftest.$ac_ext
8309 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
8310 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
8311 if test $timidity_cv_header_new_mmsystem = yes; then
8313 cat >>confdefs.h <<\_ACEOF
8314 #define HAVE_NEW_MMSYSTEM 1
8320 # Checks for library functions.
8321 echo "$as_me:$LINENO: checking for error_at_line" >&5
8322 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
8323 if test "${ac_cv_lib_error_at_line+set}" = set; then
8324 echo $ECHO_N "(cached) $ECHO_C" >&6
8326 cat >conftest.$ac_ext <<_ACEOF
8327 #line $LINENO "configure"
8330 cat confdefs.h >>conftest.$ac_ext
8331 cat >>conftest.$ac_ext <<_ACEOF
8332 /* end confdefs.h. */
8337 error_at_line (0, 0, "", 0, "");
8342 rm -f conftest.$ac_objext conftest$ac_exeext
8343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8344 (eval $ac_link) 2>&5
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); } &&
8348 { ac_try='test -s conftest$ac_exeext'
8349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); }; }; then
8354 ac_cv_lib_error_at_line=yes
8356 echo "$as_me: failed program was:" >&5
8357 sed 's/^/| /' conftest.$ac_ext >&5
8359 ac_cv_lib_error_at_line=no
8361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8363 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
8364 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
8365 if test $ac_cv_lib_error_at_line = no; then
8366 LIBOBJS="$LIBOBJS error.$ac_objext"
8371 for ac_header in unistd.h vfork.h
8373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8375 echo "$as_me:$LINENO: checking for $ac_header" >&5
8376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8378 echo $ECHO_N "(cached) $ECHO_C" >&6
8380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8383 # Is the header compilable?
8384 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8386 cat >conftest.$ac_ext <<_ACEOF
8387 #line $LINENO "configure"
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8393 $ac_includes_default
8394 #include <$ac_header>
8396 rm -f conftest.$ac_objext
8397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8398 (eval $ac_compile) 2>&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } &&
8402 { ac_try='test -s conftest.$ac_objext'
8403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); }; }; then
8408 ac_header_compiler=yes
8410 echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.$ac_ext >&5
8413 ac_header_compiler=no
8415 rm -f conftest.$ac_objext conftest.$ac_ext
8416 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8417 echo "${ECHO_T}$ac_header_compiler" >&6
8419 # Is the header present?
8420 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8422 cat >conftest.$ac_ext <<_ACEOF
8423 #line $LINENO "configure"
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h. */
8429 #include <$ac_header>
8431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8434 grep -v '^ *+' conftest.er1 >conftest.err
8436 cat conftest.err >&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); } >/dev/null; then
8439 if test -s conftest.err; then
8440 ac_cpp_err=$ac_c_preproc_warn_flag
8447 if test -z "$ac_cpp_err"; then
8448 ac_header_preproc=yes
8450 echo "$as_me: failed program was:" >&5
8451 sed 's/^/| /' conftest.$ac_ext >&5
8453 ac_header_preproc=no
8455 rm -f conftest.err conftest.$ac_ext
8456 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8457 echo "${ECHO_T}$ac_header_preproc" >&6
8459 # So? What about this header?
8460 case $ac_header_compiler:$ac_header_preproc in
8462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8468 ## ------------------------------------ ##
8469 ## Report this to bug-autoconf@gnu.org. ##
8470 ## ------------------------------------ ##
8473 sed "s/^/$as_me: WARNING: /" >&2
8476 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8477 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8478 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8479 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8484 ## ------------------------------------ ##
8485 ## Report this to bug-autoconf@gnu.org. ##
8486 ## ------------------------------------ ##
8489 sed "s/^/$as_me: WARNING: /" >&2
8492 echo "$as_me:$LINENO: checking for $ac_header" >&5
8493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8495 echo $ECHO_N "(cached) $ECHO_C" >&6
8497 eval "$as_ac_Header=$ac_header_preproc"
8499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8504 cat >>confdefs.h <<_ACEOF
8505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8514 for ac_func in fork vfork
8516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8517 echo "$as_me:$LINENO: checking for $ac_func" >&5
8518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8519 if eval "test \"\${$as_ac_var+set}\" = set"; then
8520 echo $ECHO_N "(cached) $ECHO_C" >&6
8522 cat >conftest.$ac_ext <<_ACEOF
8523 #line $LINENO "configure"
8526 cat confdefs.h >>conftest.$ac_ext
8527 cat >>conftest.$ac_ext <<_ACEOF
8528 /* end confdefs.h. */
8529 /* System header to define __stub macros and hopefully few prototypes,
8530 which can conflict with char $ac_func (); below. */
8532 /* Override any gcc2 internal prototype to avoid an error. */
8537 /* We use char because int might match the return type of a gcc2
8538 builtin and then its argument prototype would still apply. */
8540 /* The GNU C library defines this for functions which it implements
8541 to always fail with ENOSYS. Some functions are actually named
8542 something starting with __ and the normal name is an alias. */
8543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8546 char (*f) () = $ac_func;
8560 rm -f conftest.$ac_objext conftest$ac_exeext
8561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8562 (eval $ac_link) 2>&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); } &&
8566 { ac_try='test -s conftest$ac_exeext'
8567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); }; }; then
8572 eval "$as_ac_var=yes"
8574 echo "$as_me: failed program was:" >&5
8575 sed 's/^/| /' conftest.$ac_ext >&5
8577 eval "$as_ac_var=no"
8579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8582 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8583 if test `eval echo '${'$as_ac_var'}'` = yes; then
8584 cat >>confdefs.h <<_ACEOF
8585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8591 if test "x$ac_cv_func_fork" = xyes; then
8592 echo "$as_me:$LINENO: checking for working fork" >&5
8593 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
8594 if test "${ac_cv_func_fork_works+set}" = set; then
8595 echo $ECHO_N "(cached) $ECHO_C" >&6
8597 if test "$cross_compiling" = yes; then
8598 ac_cv_func_fork_works=cross
8600 cat >conftest.$ac_ext <<_ACEOF
8601 /* By Ruediger Kuhlmann. */
8602 #include <sys/types.h>
8604 # include <unistd.h>
8606 /* Some systems only have a dummy stub for fork() */
8614 rm -f conftest$ac_exeext
8615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8616 (eval $ac_link) 2>&5
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; }; then
8625 ac_cv_func_fork_works=yes
8627 echo "$as_me: program exited with status $ac_status" >&5
8628 echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8632 ac_cv_func_fork_works=no
8634 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8637 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
8638 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
8641 ac_cv_func_fork_works=$ac_cv_func_fork
8643 if test "x$ac_cv_func_fork_works" = xcross; then
8645 *-*-amigaos* | *-*-msdosdjgpp*)
8646 # Override, as these systems have only a dummy fork() stub
8647 ac_cv_func_fork_works=no
8650 ac_cv_func_fork_works=yes
8653 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8654 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8656 ac_cv_func_vfork_works=$ac_cv_func_vfork
8657 if test "x$ac_cv_func_vfork" = xyes; then
8658 echo "$as_me:$LINENO: checking for working vfork" >&5
8659 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
8660 if test "${ac_cv_func_vfork_works+set}" = set; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
8663 if test "$cross_compiling" = yes; then
8664 ac_cv_func_vfork_works=cross
8666 cat >conftest.$ac_ext <<_ACEOF
8667 #line $LINENO "configure"
8670 cat confdefs.h >>conftest.$ac_ext
8671 cat >>conftest.$ac_ext <<_ACEOF
8672 /* end confdefs.h. */
8673 /* Thanks to Paul Eggert for this test. */
8676 #include <sys/types.h>
8677 #include <sys/stat.h>
8678 #include <sys/wait.h>
8680 # include <unistd.h>
8685 /* On some sparc systems, changes by the child to local and incoming
8686 argument registers are propagated back to the parent. The compiler
8687 is told about this with #include <vfork.h>, but some compilers
8688 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8689 static variable whose address is put into a register that is
8690 clobbered by the vfork. */
8693 sparc_address_test (int arg)
8695 sparc_address_test (arg) int arg;
8716 pid_t parent = getpid ();
8719 sparc_address_test (0);
8724 /* Here is another test for sparc vfork register problems. This
8725 test uses lots of local variables, at least as many local
8726 variables as main has allocated so far including compiler
8727 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8728 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8729 reuse the register of parent for one of the local variables,
8730 since it will think that parent can't possibly be used any more
8731 in this routine. Assigning to the local variable will thus
8732 munge parent in the parent process. */
8734 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8735 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8736 /* Convince the compiler that p..p7 are live; otherwise, it might
8737 use the same hardware register for all 8 local variables. */
8738 if (p != p1 || p != p2 || p != p3 || p != p4
8739 || p != p5 || p != p6 || p != p7)
8742 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8743 from child file descriptors. If the child closes a descriptor
8744 before it execs or exits, this munges the parent's descriptor
8745 as well. Test for this by closing stdout in the child. */
8746 _exit(close(fileno(stdout)) != 0);
8751 while (wait(&status) != child)
8754 /* Was there some problem with vforking? */
8757 /* Did the child fail? (This shouldn't happen.) */
8760 /* Did the vfork/compiler bug occur? */
8761 || parent != getpid()
8763 /* Did the file descriptor bug occur? */
8764 || fstat(fileno(stdout), &st) != 0
8769 rm -f conftest$ac_exeext
8770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8771 (eval $ac_link) 2>&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); }; }; then
8780 ac_cv_func_vfork_works=yes
8782 echo "$as_me: program exited with status $ac_status" >&5
8783 echo "$as_me: failed program was:" >&5
8784 sed 's/^/| /' conftest.$ac_ext >&5
8787 ac_cv_func_vfork_works=no
8789 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8792 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8793 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
8796 if test "x$ac_cv_func_fork_works" = xcross; then
8797 ac_cv_func_vfork_works=ac_cv_func_vfork
8798 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8799 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8802 if test "x$ac_cv_func_vfork_works" = xyes; then
8804 cat >>confdefs.h <<\_ACEOF
8805 #define HAVE_WORKING_VFORK 1
8810 cat >>confdefs.h <<\_ACEOF
8815 if test "x$ac_cv_func_fork_works" = xyes; then
8817 cat >>confdefs.h <<\_ACEOF
8818 #define HAVE_WORKING_FORK 1
8823 echo "$as_me:$LINENO: checking for working memcmp" >&5
8824 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
8825 if test "${ac_cv_func_memcmp_working+set}" = set; then
8826 echo $ECHO_N "(cached) $ECHO_C" >&6
8828 if test "$cross_compiling" = yes; then
8829 ac_cv_func_memcmp_working=no
8831 cat >conftest.$ac_ext <<_ACEOF
8832 #line $LINENO "configure"
8835 cat confdefs.h >>conftest.$ac_ext
8836 cat >>conftest.$ac_ext <<_ACEOF
8837 /* end confdefs.h. */
8843 /* Some versions of memcmp are not 8-bit clean. */
8844 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
8845 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8848 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8849 or more and with at least one buffer not starting on a 4-byte boundary.
8850 William Lewis provided this test program. */
8855 for (i = 0; i < 4; i++)
8859 strcpy (a, "--------01111111");
8860 strcpy (b, "--------10000000");
8861 if (memcmp (a, b, 16) >= 0)
8871 rm -f conftest$ac_exeext
8872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8873 (eval $ac_link) 2>&5
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; }; then
8882 ac_cv_func_memcmp_working=yes
8884 echo "$as_me: program exited with status $ac_status" >&5
8885 echo "$as_me: failed program was:" >&5
8886 sed 's/^/| /' conftest.$ac_ext >&5
8889 ac_cv_func_memcmp_working=no
8891 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8894 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8895 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
8896 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8900 for ac_header in stdlib.h unistd.h
8902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8904 echo "$as_me:$LINENO: checking for $ac_header" >&5
8905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8907 echo $ECHO_N "(cached) $ECHO_C" >&6
8909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8912 # Is the header compilable?
8913 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8914 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8915 cat >conftest.$ac_ext <<_ACEOF
8916 #line $LINENO "configure"
8919 cat confdefs.h >>conftest.$ac_ext
8920 cat >>conftest.$ac_ext <<_ACEOF
8921 /* end confdefs.h. */
8922 $ac_includes_default
8923 #include <$ac_header>
8925 rm -f conftest.$ac_objext
8926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8927 (eval $ac_compile) 2>&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); } &&
8931 { ac_try='test -s conftest.$ac_objext'
8932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); }; }; then
8937 ac_header_compiler=yes
8939 echo "$as_me: failed program was:" >&5
8940 sed 's/^/| /' conftest.$ac_ext >&5
8942 ac_header_compiler=no
8944 rm -f conftest.$ac_objext conftest.$ac_ext
8945 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8946 echo "${ECHO_T}$ac_header_compiler" >&6
8948 # Is the header present?
8949 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8950 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8951 cat >conftest.$ac_ext <<_ACEOF
8952 #line $LINENO "configure"
8955 cat confdefs.h >>conftest.$ac_ext
8956 cat >>conftest.$ac_ext <<_ACEOF
8957 /* end confdefs.h. */
8958 #include <$ac_header>
8960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8963 grep -v '^ *+' conftest.er1 >conftest.err
8965 cat conftest.err >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } >/dev/null; then
8968 if test -s conftest.err; then
8969 ac_cpp_err=$ac_c_preproc_warn_flag
8976 if test -z "$ac_cpp_err"; then
8977 ac_header_preproc=yes
8979 echo "$as_me: failed program was:" >&5
8980 sed 's/^/| /' conftest.$ac_ext >&5
8982 ac_header_preproc=no
8984 rm -f conftest.err conftest.$ac_ext
8985 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8986 echo "${ECHO_T}$ac_header_preproc" >&6
8988 # So? What about this header?
8989 case $ac_header_compiler:$ac_header_preproc in
8991 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8992 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8997 ## ------------------------------------ ##
8998 ## Report this to bug-autoconf@gnu.org. ##
8999 ## ------------------------------------ ##
9002 sed "s/^/$as_me: WARNING: /" >&2
9005 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9006 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9007 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9008 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9013 ## ------------------------------------ ##
9014 ## Report this to bug-autoconf@gnu.org. ##
9015 ## ------------------------------------ ##
9018 sed "s/^/$as_me: WARNING: /" >&2
9021 echo "$as_me:$LINENO: checking for $ac_header" >&5
9022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9026 eval "$as_ac_Header=$ac_header_preproc"
9028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9033 cat >>confdefs.h <<_ACEOF
9034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9042 for ac_func in getpagesize
9044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9045 echo "$as_me:$LINENO: checking for $ac_func" >&5
9046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9047 if eval "test \"\${$as_ac_var+set}\" = set"; then
9048 echo $ECHO_N "(cached) $ECHO_C" >&6
9050 cat >conftest.$ac_ext <<_ACEOF
9051 #line $LINENO "configure"
9054 cat confdefs.h >>conftest.$ac_ext
9055 cat >>conftest.$ac_ext <<_ACEOF
9056 /* end confdefs.h. */
9057 /* System header to define __stub macros and hopefully few prototypes,
9058 which can conflict with char $ac_func (); below. */
9060 /* Override any gcc2 internal prototype to avoid an error. */
9065 /* We use char because int might match the return type of a gcc2
9066 builtin and then its argument prototype would still apply. */
9068 /* The GNU C library defines this for functions which it implements
9069 to always fail with ENOSYS. Some functions are actually named
9070 something starting with __ and the normal name is an alias. */
9071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9074 char (*f) () = $ac_func;
9088 rm -f conftest.$ac_objext conftest$ac_exeext
9089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9090 (eval $ac_link) 2>&5
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); } &&
9094 { ac_try='test -s conftest$ac_exeext'
9095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); }; }; then
9100 eval "$as_ac_var=yes"
9102 echo "$as_me: failed program was:" >&5
9103 sed 's/^/| /' conftest.$ac_ext >&5
9105 eval "$as_ac_var=no"
9107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9110 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9111 if test `eval echo '${'$as_ac_var'}'` = yes; then
9112 cat >>confdefs.h <<_ACEOF
9113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9119 echo "$as_me:$LINENO: checking for working mmap" >&5
9120 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9121 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9122 echo $ECHO_N "(cached) $ECHO_C" >&6
9124 if test "$cross_compiling" = yes; then
9125 ac_cv_func_mmap_fixed_mapped=no
9127 cat >conftest.$ac_ext <<_ACEOF
9128 #line $LINENO "configure"
9131 cat confdefs.h >>conftest.$ac_ext
9132 cat >>conftest.$ac_ext <<_ACEOF
9133 /* end confdefs.h. */
9134 $ac_includes_default
9135 /* malloc might have been renamed as rpl_malloc. */
9138 /* Thanks to Mike Haertel and Jim Avera for this test.
9139 Here is a matrix of mmap possibilities:
9140 mmap private not fixed
9141 mmap private fixed at somewhere currently unmapped
9142 mmap private fixed at somewhere already mapped
9143 mmap shared not fixed
9144 mmap shared fixed at somewhere currently unmapped
9145 mmap shared fixed at somewhere already mapped
9146 For private mappings, we should verify that changes cannot be read()
9147 back from the file, nor mmap's back from the file at a different
9148 address. (There have been systems where private was not correctly
9149 implemented like the infamous i386 svr4.0, and systems where the
9150 VM page cache was not coherent with the file system buffer cache
9151 like early versions of FreeBSD and possibly contemporary NetBSD.)
9152 For shared mappings, we should conversely verify that changes get
9153 propagated back to all the places they're supposed to be.
9155 Grep wants private fixed already mapped.
9156 The main things grep needs to know about mmap are:
9157 * does it exist and is it safe to write into the mmap'd area
9158 * how to use it (BSD variants) */
9161 #include <sys/mman.h>
9163 #if !STDC_HEADERS && !HAVE_STDLIB_H
9167 /* This mess was copied from the GNU getpagesize.h. */
9168 #if !HAVE_GETPAGESIZE
9169 /* Assume that all systems that can run configure have sys/param.h. */
9170 # if !HAVE_SYS_PARAM_H
9171 # define HAVE_SYS_PARAM_H 1
9174 # ifdef _SC_PAGESIZE
9175 # define getpagesize() sysconf(_SC_PAGESIZE)
9176 # else /* no _SC_PAGESIZE */
9177 # if HAVE_SYS_PARAM_H
9178 # include <sys/param.h>
9179 # ifdef EXEC_PAGESIZE
9180 # define getpagesize() EXEC_PAGESIZE
9181 # else /* no EXEC_PAGESIZE */
9183 # define getpagesize() NBPG * CLSIZE
9186 # endif /* no CLSIZE */
9187 # else /* no NBPG */
9189 # define getpagesize() NBPC
9190 # else /* no NBPC */
9192 # define getpagesize() PAGESIZE
9193 # endif /* PAGESIZE */
9194 # endif /* no NBPC */
9195 # endif /* no NBPG */
9196 # endif /* no EXEC_PAGESIZE */
9197 # else /* no HAVE_SYS_PARAM_H */
9198 # define getpagesize() 8192 /* punt totally */
9199 # endif /* no HAVE_SYS_PARAM_H */
9200 # endif /* no _SC_PAGESIZE */
9202 #endif /* no HAVE_GETPAGESIZE */
9207 char *data, *data2, *data3;
9211 pagesize = getpagesize ();
9213 /* First, make a file with some known garbage in it. */
9214 data = (char *) malloc (pagesize);
9217 for (i = 0; i < pagesize; ++i)
9218 *(data + i) = rand ();
9220 fd = creat ("conftest.mmap", 0600);
9223 if (write (fd, data, pagesize) != pagesize)
9227 /* Next, try to mmap the file at a fixed address which already has
9228 something else allocated at it. If we can, also make sure that
9229 we see the same garbage. */
9230 fd = open ("conftest.mmap", O_RDWR);
9233 data2 = (char *) malloc (2 * pagesize);
9236 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
9237 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9238 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9240 for (i = 0; i < pagesize; ++i)
9241 if (*(data + i) != *(data2 + i))
9244 /* Finally, make sure that changes to the mapped area do not
9245 percolate back to the file as seen by read(). (This is a bug on
9246 some variants of i386 svr4.0.) */
9247 for (i = 0; i < pagesize; ++i)
9248 *(data2 + i) = *(data2 + i) + 1;
9249 data3 = (char *) malloc (pagesize);
9252 if (read (fd, data3, pagesize) != pagesize)
9254 for (i = 0; i < pagesize; ++i)
9255 if (*(data + i) != *(data3 + i))
9261 rm -f conftest$ac_exeext
9262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9263 (eval $ac_link) 2>&5
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); }; }; then
9272 ac_cv_func_mmap_fixed_mapped=yes
9274 echo "$as_me: program exited with status $ac_status" >&5
9275 echo "$as_me: failed program was:" >&5
9276 sed 's/^/| /' conftest.$ac_ext >&5
9279 ac_cv_func_mmap_fixed_mapped=no
9281 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9284 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9285 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9286 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9288 cat >>confdefs.h <<\_ACEOF
9295 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
9296 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
9297 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
9298 echo $ECHO_N "(cached) $ECHO_C" >&6
9300 ac_cv_func_setvbuf_reversed=no
9301 cat >conftest.$ac_ext <<_ACEOF
9302 #line $LINENO "configure"
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h. */
9310 int (setvbuf) (FILE *, int, char *, size_t);
9315 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
9320 rm -f conftest.$ac_objext conftest$ac_exeext
9321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9322 (eval $ac_link) 2>&5
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); } &&
9326 { ac_try='test -s conftest$ac_exeext'
9327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); }; }; then
9332 cat >conftest.$ac_ext <<_ACEOF
9333 #line $LINENO "configure"
9336 cat confdefs.h >>conftest.$ac_ext
9337 cat >>conftest.$ac_ext <<_ACEOF
9338 /* end confdefs.h. */
9341 int (setvbuf) (FILE *, int, char *, size_t);
9346 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
9351 rm -f conftest.$ac_objext conftest$ac_exeext
9352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9353 (eval $ac_link) 2>&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); } &&
9357 { ac_try='test -s conftest$ac_exeext'
9358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); }; }; then
9363 # It compiles and links either way, so it must not be declared
9364 # with a prototype and most likely this is a K&R C compiler.
9366 if test "$cross_compiling" = yes; then
9367 : # Assume setvbuf is not reversed when cross-compiling.
9369 cat >conftest.$ac_ext <<_ACEOF
9370 #line $LINENO "configure"
9373 cat confdefs.h >>conftest.$ac_ext
9374 cat >>conftest.$ac_ext <<_ACEOF
9375 /* end confdefs.h. */
9380 /* This call has the arguments reversed.
9381 A reversed system may check and see that the address of buf
9382 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
9384 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
9387 exit (0); /* Non-reversed systems SEGV here. */
9392 rm -f conftest$ac_exeext
9393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9394 (eval $ac_link) 2>&5
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); }; }; then
9403 ac_cv_func_setvbuf_reversed=yes
9405 echo "$as_me: program exited with status $ac_status" >&5
9406 echo "$as_me: failed program was:" >&5
9407 sed 's/^/| /' conftest.$ac_ext >&5
9410 rm -f core core.* *.core
9412 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9414 ac_cv_func_setvbuf_reversed=yes
9416 echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9422 echo "$as_me: failed program was:" >&5
9423 sed 's/^/| /' conftest.$ac_ext >&5
9426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9428 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
9429 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
9430 if test $ac_cv_func_setvbuf_reversed = yes; then
9432 cat >>confdefs.h <<\_ACEOF
9433 #define SETVBUF_REVERSED 1
9438 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9439 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9440 if test "${ac_cv_type_signal+set}" = set; then
9441 echo $ECHO_N "(cached) $ECHO_C" >&6
9443 cat >conftest.$ac_ext <<_ACEOF
9444 #line $LINENO "configure"
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h. */
9450 #include <sys/types.h>
9456 extern "C" void (*signal (int, void (*)(int)))(int);
9458 void (*signal ()) ();
9469 rm -f conftest.$ac_objext
9470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9471 (eval $ac_compile) 2>&5
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); } &&
9475 { ac_try='test -s conftest.$ac_objext'
9476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); }; }; then
9481 ac_cv_type_signal=void
9483 echo "$as_me: failed program was:" >&5
9484 sed 's/^/| /' conftest.$ac_ext >&5
9486 ac_cv_type_signal=int
9488 rm -f conftest.$ac_objext conftest.$ac_ext
9490 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9491 echo "${ECHO_T}$ac_cv_type_signal" >&6
9493 cat >>confdefs.h <<_ACEOF
9494 #define RETSIGTYPE $ac_cv_type_signal
9499 for ac_func in vprintf
9501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9502 echo "$as_me:$LINENO: checking for $ac_func" >&5
9503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9504 if eval "test \"\${$as_ac_var+set}\" = set"; then
9505 echo $ECHO_N "(cached) $ECHO_C" >&6
9507 cat >conftest.$ac_ext <<_ACEOF
9508 #line $LINENO "configure"
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h. */
9514 /* System header to define __stub macros and hopefully few prototypes,
9515 which can conflict with char $ac_func (); below. */
9517 /* Override any gcc2 internal prototype to avoid an error. */
9522 /* We use char because int might match the return type of a gcc2
9523 builtin and then its argument prototype would still apply. */
9525 /* The GNU C library defines this for functions which it implements
9526 to always fail with ENOSYS. Some functions are actually named
9527 something starting with __ and the normal name is an alias. */
9528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9531 char (*f) () = $ac_func;
9545 rm -f conftest.$ac_objext conftest$ac_exeext
9546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9547 (eval $ac_link) 2>&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } &&
9551 { ac_try='test -s conftest$ac_exeext'
9552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); }; }; then
9557 eval "$as_ac_var=yes"
9559 echo "$as_me: failed program was:" >&5
9560 sed 's/^/| /' conftest.$ac_ext >&5
9562 eval "$as_ac_var=no"
9564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9567 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9568 if test `eval echo '${'$as_ac_var'}'` = yes; then
9569 cat >>confdefs.h <<_ACEOF
9570 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9573 echo "$as_me:$LINENO: checking for _doprnt" >&5
9574 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
9575 if test "${ac_cv_func__doprnt+set}" = set; then
9576 echo $ECHO_N "(cached) $ECHO_C" >&6
9578 cat >conftest.$ac_ext <<_ACEOF
9579 #line $LINENO "configure"
9582 cat confdefs.h >>conftest.$ac_ext
9583 cat >>conftest.$ac_ext <<_ACEOF
9584 /* end confdefs.h. */
9585 /* System header to define __stub macros and hopefully few prototypes,
9586 which can conflict with char _doprnt (); below. */
9588 /* Override any gcc2 internal prototype to avoid an error. */
9593 /* We use char because int might match the return type of a gcc2
9594 builtin and then its argument prototype would still apply. */
9596 /* The GNU C library defines this for functions which it implements
9597 to always fail with ENOSYS. Some functions are actually named
9598 something starting with __ and the normal name is an alias. */
9599 #if defined (__stub__doprnt) || defined (__stub____doprnt)
9602 char (*f) () = _doprnt;
9616 rm -f conftest.$ac_objext conftest$ac_exeext
9617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9618 (eval $ac_link) 2>&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); } &&
9622 { ac_try='test -s conftest$ac_exeext'
9623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); }; }; then
9628 ac_cv_func__doprnt=yes
9630 echo "$as_me: failed program was:" >&5
9631 sed 's/^/| /' conftest.$ac_ext >&5
9633 ac_cv_func__doprnt=no
9635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9637 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9638 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
9639 if test $ac_cv_func__doprnt = yes; then
9641 cat >>confdefs.h <<\_ACEOF
9642 #define HAVE_DOPRNT 1
9721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9722 echo "$as_me:$LINENO: checking for $ac_func" >&5
9723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9724 if eval "test \"\${$as_ac_var+set}\" = set"; then
9725 echo $ECHO_N "(cached) $ECHO_C" >&6
9727 cat >conftest.$ac_ext <<_ACEOF
9728 #line $LINENO "configure"
9731 cat confdefs.h >>conftest.$ac_ext
9732 cat >>conftest.$ac_ext <<_ACEOF
9733 /* end confdefs.h. */
9734 /* System header to define __stub macros and hopefully few prototypes,
9735 which can conflict with char $ac_func (); below. */
9737 /* Override any gcc2 internal prototype to avoid an error. */
9742 /* We use char because int might match the return type of a gcc2
9743 builtin and then its argument prototype would still apply. */
9745 /* The GNU C library defines this for functions which it implements
9746 to always fail with ENOSYS. Some functions are actually named
9747 something starting with __ and the normal name is an alias. */
9748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9751 char (*f) () = $ac_func;
9765 rm -f conftest.$ac_objext conftest$ac_exeext
9766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9767 (eval $ac_link) 2>&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } &&
9771 { ac_try='test -s conftest$ac_exeext'
9772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); }; }; then
9777 eval "$as_ac_var=yes"
9779 echo "$as_me: failed program was:" >&5
9780 sed 's/^/| /' conftest.$ac_ext >&5
9782 eval "$as_ac_var=no"
9784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9787 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9788 if test `eval echo '${'$as_ac_var'}'` = yes; then
9789 cat >>confdefs.h <<_ACEOF
9790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9798 if test "x$CYGNUS" = xyes; then
9799 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
9801 echo "$as_me:$LINENO: checking for opendir" >&5
9802 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
9803 if test "${ac_cv_func_opendir+set}" = set; then
9804 echo $ECHO_N "(cached) $ECHO_C" >&6
9806 cat >conftest.$ac_ext <<_ACEOF
9807 #line $LINENO "configure"
9810 cat confdefs.h >>conftest.$ac_ext
9811 cat >>conftest.$ac_ext <<_ACEOF
9812 /* end confdefs.h. */
9813 /* System header to define __stub macros and hopefully few prototypes,
9814 which can conflict with char opendir (); below. */
9816 /* Override any gcc2 internal prototype to avoid an error. */
9821 /* We use char because int might match the return type of a gcc2
9822 builtin and then its argument prototype would still apply. */
9824 /* The GNU C library defines this for functions which it implements
9825 to always fail with ENOSYS. Some functions are actually named
9826 something starting with __ and the normal name is an alias. */
9827 #if defined (__stub_opendir) || defined (__stub___opendir)
9830 char (*f) () = opendir;
9844 rm -f conftest.$ac_objext conftest$ac_exeext
9845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9846 (eval $ac_link) 2>&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); } &&
9850 { ac_try='test -s conftest$ac_exeext'
9851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); }; }; then
9856 ac_cv_func_opendir=yes
9858 echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.$ac_ext >&5
9861 ac_cv_func_opendir=no
9863 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9865 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
9866 echo "${ECHO_T}$ac_cv_func_opendir" >&6
9867 if test $ac_cv_func_opendir = yes; then
9870 EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
9875 *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
9879 if test "x$enable_network" = "xyes"; then
9880 echo "$as_me:$LINENO: checking for socket" >&5
9881 echo $ECHO_N "checking for socket... $ECHO_C" >&6
9882 if test "${ac_cv_func_socket+set}" = set; then
9883 echo $ECHO_N "(cached) $ECHO_C" >&6
9885 cat >conftest.$ac_ext <<_ACEOF
9886 #line $LINENO "configure"
9889 cat confdefs.h >>conftest.$ac_ext
9890 cat >>conftest.$ac_ext <<_ACEOF
9891 /* end confdefs.h. */
9892 /* System header to define __stub macros and hopefully few prototypes,
9893 which can conflict with char socket (); below. */
9895 /* Override any gcc2 internal prototype to avoid an error. */
9900 /* We use char because int might match the return type of a gcc2
9901 builtin and then its argument prototype would still apply. */
9903 /* The GNU C library defines this for functions which it implements
9904 to always fail with ENOSYS. Some functions are actually named
9905 something starting with __ and the normal name is an alias. */
9906 #if defined (__stub_socket) || defined (__stub___socket)
9909 char (*f) () = socket;
9923 rm -f conftest.$ac_objext conftest$ac_exeext
9924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9925 (eval $ac_link) 2>&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); } &&
9929 { ac_try='test -s conftest$ac_exeext'
9930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); }; }; then
9935 ac_cv_func_socket=yes
9937 echo "$as_me: failed program was:" >&5
9938 sed 's/^/| /' conftest.$ac_ext >&5
9940 ac_cv_func_socket=no
9942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9944 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
9945 echo "${ECHO_T}$ac_cv_func_socket" >&6
9946 if test $ac_cv_func_socket = yes; then
9949 echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
9950 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
9951 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
9952 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
9953 echo $ECHO_N "(cached) $ECHO_C" >&6
9955 ac_save_LIBS="$LIBS"
9956 LIBS="-lwsock32 $LIBS"
9957 cat >conftest.$ac_ext <<_ACEOF
9958 #line $LINENO "configure"
9961 cat confdefs.h >>conftest.$ac_ext
9962 cat >>conftest.$ac_ext <<_ACEOF
9963 /* end confdefs.h. */
9964 #include <windows.h>
9965 #include <winsock.h>
9975 rm -f conftest.$ac_objext conftest$ac_exeext
9976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9977 (eval $ac_link) 2>&5
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); } &&
9981 { ac_try='test -s conftest$ac_exeext'
9982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); }; }; then
9987 eval "wapi_cv_lib_$ac_lib_var=yes"
9989 echo "$as_me: failed program was:" >&5
9990 sed 's/^/| /' conftest.$ac_ext >&5
9992 eval "wapi_cv_lib_$ac_lib_var=no"
9994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9995 LIBS="$ac_save_LIBS"
9998 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
9999 echo "$as_me:$LINENO: result: yes" >&5
10000 echo "${ECHO_T}yes" >&6
10001 EXTRALIBS="$EXTRALIBS -lwsock32"
10002 EXTRADEFS="$EXTRADEFS -DWINSOCK"
10004 echo "$as_me:$LINENO: result: no" >&5
10005 echo "${ECHO_T}no" >&6
10014 if test "x$CYGWIN" = xyes; then
10015 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
10017 echo "$as_me:$LINENO: checking for opendir" >&5
10018 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
10019 if test "${ac_cv_func_opendir+set}" = set; then
10020 echo $ECHO_N "(cached) $ECHO_C" >&6
10022 cat >conftest.$ac_ext <<_ACEOF
10023 #line $LINENO "configure"
10026 cat confdefs.h >>conftest.$ac_ext
10027 cat >>conftest.$ac_ext <<_ACEOF
10028 /* end confdefs.h. */
10029 /* System header to define __stub macros and hopefully few prototypes,
10030 which can conflict with char opendir (); below. */
10031 #include <assert.h>
10032 /* Override any gcc2 internal prototype to avoid an error. */
10037 /* We use char because int might match the return type of a gcc2
10038 builtin and then its argument prototype would still apply. */
10040 /* The GNU C library defines this for functions which it implements
10041 to always fail with ENOSYS. Some functions are actually named
10042 something starting with __ and the normal name is an alias. */
10043 #if defined (__stub_opendir) || defined (__stub___opendir)
10046 char (*f) () = opendir;
10060 rm -f conftest.$ac_objext conftest$ac_exeext
10061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10062 (eval $ac_link) 2>&5
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); } &&
10066 { ac_try='test -s conftest$ac_exeext'
10067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10068 (eval $ac_try) 2>&5
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; }; then
10072 ac_cv_func_opendir=yes
10074 echo "$as_me: failed program was:" >&5
10075 sed 's/^/| /' conftest.$ac_ext >&5
10077 ac_cv_func_opendir=no
10079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10081 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
10082 echo "${ECHO_T}$ac_cv_func_opendir" >&6
10083 if test $ac_cv_func_opendir = yes; then
10086 EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
10091 *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
10095 if test "x$enable_network" = "xyes"; then
10096 echo "$as_me:$LINENO: checking for socket" >&5
10097 echo $ECHO_N "checking for socket... $ECHO_C" >&6
10098 if test "${ac_cv_func_socket+set}" = set; then
10099 echo $ECHO_N "(cached) $ECHO_C" >&6
10101 cat >conftest.$ac_ext <<_ACEOF
10102 #line $LINENO "configure"
10105 cat confdefs.h >>conftest.$ac_ext
10106 cat >>conftest.$ac_ext <<_ACEOF
10107 /* end confdefs.h. */
10108 /* System header to define __stub macros and hopefully few prototypes,
10109 which can conflict with char socket (); below. */
10110 #include <assert.h>
10111 /* Override any gcc2 internal prototype to avoid an error. */
10116 /* We use char because int might match the return type of a gcc2
10117 builtin and then its argument prototype would still apply. */
10119 /* The GNU C library defines this for functions which it implements
10120 to always fail with ENOSYS. Some functions are actually named
10121 something starting with __ and the normal name is an alias. */
10122 #if defined (__stub_socket) || defined (__stub___socket)
10125 char (*f) () = socket;
10139 rm -f conftest.$ac_objext conftest$ac_exeext
10140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10141 (eval $ac_link) 2>&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); } &&
10145 { ac_try='test -s conftest$ac_exeext'
10146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147 (eval $ac_try) 2>&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); }; }; then
10151 ac_cv_func_socket=yes
10153 echo "$as_me: failed program was:" >&5
10154 sed 's/^/| /' conftest.$ac_ext >&5
10156 ac_cv_func_socket=no
10158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10160 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
10161 echo "${ECHO_T}$ac_cv_func_socket" >&6
10162 if test $ac_cv_func_socket = yes; then
10165 echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
10166 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
10167 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
10168 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
10169 echo $ECHO_N "(cached) $ECHO_C" >&6
10171 ac_save_LIBS="$LIBS"
10172 LIBS="-lwsock32 $LIBS"
10173 cat >conftest.$ac_ext <<_ACEOF
10174 #line $LINENO "configure"
10177 cat confdefs.h >>conftest.$ac_ext
10178 cat >>conftest.$ac_ext <<_ACEOF
10179 /* end confdefs.h. */
10180 #include <windows.h>
10181 #include <winsock.h>
10191 rm -f conftest.$ac_objext conftest$ac_exeext
10192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10193 (eval $ac_link) 2>&5
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); } &&
10197 { ac_try='test -s conftest$ac_exeext'
10198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10199 (eval $ac_try) 2>&5
10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); }; }; then
10203 eval "wapi_cv_lib_$ac_lib_var=yes"
10205 echo "$as_me: failed program was:" >&5
10206 sed 's/^/| /' conftest.$ac_ext >&5
10208 eval "wapi_cv_lib_$ac_lib_var=no"
10210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10211 LIBS="$ac_save_LIBS"
10214 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
10215 echo "$as_me:$LINENO: result: yes" >&5
10216 echo "${ECHO_T}yes" >&6
10217 EXTRALIBS="$EXTRALIBS -lwsock32"
10218 EXTRADEFS="$EXTRADEFS -DWINSOCK"
10220 echo "$as_me:$LINENO: result: no" >&5
10221 echo "${ECHO_T}no" >&6
10229 # Checks on extra paths
10232 # Check whether --with-tcl-includes or --without-tcl-includes was given.
10233 if test "${with_tcl_includes+set}" = set; then
10234 withval="$with_tcl_includes"
10235 if test ! -d $withval; then
10236 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10237 echo "$as_me: WARNING: $withval is not found." >&2;}
10239 tcl_include_dir="-I$withval"
10243 # Check whether --with-tcl-libs or --without-tcl-libs was given.
10244 if test "${with_tcl_libs+set}" = set; then
10245 withval="$with_tcl_libs"
10246 if test ! -d $withval; then
10247 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10248 echo "$as_me: WARNING: $withval is not found." >&2;}
10250 tcl_libdir="-L$withval"
10253 # Check whether --with-tk-includes or --without-tk-includes was given.
10254 if test "${with_tk_includes+set}" = set; then
10255 withval="$with_tk_includes"
10256 if test ! -d $withval; then
10257 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10258 echo "$as_me: WARNING: $withval is not found." >&2;}
10260 tk_includes="-I$withval"
10263 # Check whether --with-tk-libs or --without-tk-libs was given.
10264 if test "${with_tk_libs+set}" = set; then
10265 withval="$with_tk_libs"
10266 if test ! -d $withval; then
10267 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10268 echo "$as_me: WARNING: $withval is not found." >&2;}
10270 tk_libdir="-L$withval"
10274 # Check whether --with-offix-includes or --without-offix-includes was given.
10275 if test "${with_offix_includes+set}" = set; then
10276 withval="$with_offix_includes"
10277 if test ! -d $withval; then
10278 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10279 echo "$as_me: WARNING: $withval is not found." >&2;}
10281 offix_include_dir="-I$withval"
10284 # Check whether --with-offix-libs or --without-offix-libs was given.
10285 if test "${with_offix_libs+set}" = set; then
10286 withval="$with_offix_libs"
10287 if test ! -d $withval; then
10288 { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10289 echo "$as_me: WARNING: $withval is not found." >&2;}
10291 offix_lib_dir="-L$withval"
10299 audio_targets='default oss alsa sun hpux irix mme sb_dsp w32 alib nas arts esd vorbis gogo portaudio'
10302 # Check whether --with-nas-library or --without-nas-library was given.
10303 if test "${with_nas_library+set}" = set; then
10304 withval="$with_nas_library"
10308 # Check whether --with-nas-includes or --without-nas-includes was given.
10309 if test "${with_nas_includes+set}" = set; then
10310 withval="$with_nas_includes"
10315 # Check whether --enable-audio or --disable-audio was given.
10316 if test "${enable_audio+set}" = set; then
10317 enableval="$enable_audio"
10318 enable_audio=$enableval
10325 test "x$enable_audio" = xyes && enable_audio=default
10327 if test "x$enable_audio" != xno; then
10328 for i in `echo $enable_audio | sed 's/,/ /g'`; do
10329 eval "au_enable_$i=yes"
10335 # Check whether --with-default-output or --without-default-output was given.
10336 if test "${with_default_output+set}" = set; then
10337 withval="$with_default_output"
10338 if test "$enable_audio" != no; then
10339 DEFAULT_PLAYMODE=$withval
10340 eval "au_enable_$DEFAULT_PLAYMODE=yes"
10342 { echo "$as_me:$LINENO: WARNING: --with-default-output=$withval: audio is not enabled" >&5
10343 echo "$as_me: WARNING: --with-default-output=$withval: audio is not enabled" >&2;}
10348 if test "x$au_enable_default" = xyes; then
10350 *-*-linux*|*-*-freebsd*)
10354 au_enable_sb_dsp=yes
10356 *-*-bsdi2.1|*-*-bsdi3.?|*-*-bsdi4.?)
10384 au_enable_darwin=yes
10387 { echo "$as_me:$LINENO: WARNING: No --enable-audio=default audio for $target" >&5
10388 echo "$as_me: WARNING: No --enable-audio=default audio for $target" >&2;}
10394 # Each audio mode's configurations
10395 echo "$as_me:$LINENO: checking enable_audio=oss" >&5
10396 echo $ECHO_N "checking enable_audio=oss... $ECHO_C" >&6
10397 if test "x$au_enable_oss" = xyes; then
10398 EXTRADEFS="$EXTRADEFS -DAU_OSS"
10399 SYSEXTRAS="$SYSEXTRAS oss_a.c"
10400 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then
10401 echo "$as_me:$LINENO: result: yes - <sys/soundcard.h>" >&5
10402 echo "${ECHO_T}yes - <sys/soundcard.h>" >&6
10406 echo "$as_me:$LINENO: result: yes" >&5
10407 echo "${ECHO_T}yes" >&6
10410 if test "x$ac_cv_header_soundcard_h" = xyes; then
10411 echo "$as_me:$LINENO: result: yes - <soundcard.h>" >&5
10412 echo "${ECHO_T}yes - <soundcard.h>" >&6
10414 { echo "$as_me:$LINENO: WARNING: <sys/soundcard.h> is not found" >&5
10415 echo "$as_me: WARNING: <sys/soundcard.h> is not found" >&2;}
10421 echo "$as_me:$LINENO: checking for open in -lossaudio" >&5
10422 echo $ECHO_N "checking for open in -lossaudio... $ECHO_C" >&6
10423 if test "${ac_cv_lib_ossaudio_open+set}" = set; then
10424 echo $ECHO_N "(cached) $ECHO_C" >&6
10426 ac_check_lib_save_LIBS=$LIBS
10427 LIBS="-lossaudio $LIBS"
10428 cat >conftest.$ac_ext <<_ACEOF
10429 #line $LINENO "configure"
10432 cat confdefs.h >>conftest.$ac_ext
10433 cat >>conftest.$ac_ext <<_ACEOF
10434 /* end confdefs.h. */
10436 /* Override any gcc2 internal prototype to avoid an error. */
10440 /* We use char because int might match the return type of a gcc2
10441 builtin and then its argument prototype would still apply. */
10451 rm -f conftest.$ac_objext conftest$ac_exeext
10452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10453 (eval $ac_link) 2>&5
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); } &&
10457 { ac_try='test -s conftest$ac_exeext'
10458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10459 (eval $ac_try) 2>&5
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); }; }; then
10463 ac_cv_lib_ossaudio_open=yes
10465 echo "$as_me: failed program was:" >&5
10466 sed 's/^/| /' conftest.$ac_ext >&5
10468 ac_cv_lib_ossaudio_open=no
10470 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10471 LIBS=$ac_check_lib_save_LIBS
10473 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_open" >&5
10474 echo "${ECHO_T}$ac_cv_lib_ossaudio_open" >&6
10475 if test $ac_cv_lib_ossaudio_open = yes; then
10476 cat >>confdefs.h <<_ACEOF
10477 #define HAVE_LIBOSSAUDIO 1
10480 LIBS="-lossaudio $LIBS"
10487 if test ! -e "/dev/dsp"; then
10488 oss_device=/dev/audio
10493 echo "$as_me:$LINENO: result: no" >&5
10494 echo "${ECHO_T}no" >&6
10497 echo "$as_me:$LINENO: checking enable_audio=sun" >&5
10498 echo $ECHO_N "checking enable_audio=sun... $ECHO_C" >&6
10499 if test "x$au_enable_sun" = xyes; then
10502 if test -f /usr/demo/SOUND/libaudio.a; then
10503 EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/libaudio.a"
10504 echo "$as_me:$LINENO: result: yes" >&5
10505 echo "${ECHO_T}yes" >&6
10507 echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
10508 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
10512 if test -f /usr/demo/SOUND/lib/libaudio.a; then
10513 EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/lib/libaudio.a"
10514 echo "$as_me:$LINENO: result: yes" >&5
10515 echo "${ECHO_T}yes" >&6
10517 echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
10518 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
10521 *) echo "$as_me:$LINENO: result: yes" >&5
10522 echo "${ECHO_T}yes" >&6
10525 EXTRADEFS="$EXTRADEFS -DAU_SUN"
10526 SYSEXTRAS="$SYSEXTRAS sun_a.c"
10528 echo "$as_me:$LINENO: result: no" >&5
10529 echo "${ECHO_T}no" >&6
10532 echo "$as_me:$LINENO: checking enable_audio=hpux" >&5
10533 echo $ECHO_N "checking enable_audio=hpux... $ECHO_C" >&6
10534 if test "x$au_enable_hpux" = xyes; then
10536 *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
10537 echo "${ECHO_T}yes" >&6 ;;
10538 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10539 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
10541 EXTRADEFS="$EXTRADEFS -DAU_HPUX_AUDIO"
10542 SYSEXTRAS="$SYSEXTRAS hpux_d_a.c"
10544 echo "$as_me:$LINENO: result: no" >&5
10545 echo "${ECHO_T}no" >&6
10548 echo "$as_me:$LINENO: checking enable_audio=irix" >&5
10549 echo $ECHO_N "checking enable_audio=irix... $ECHO_C" >&6
10550 if test "x$au_enable_irix" = xyes; then
10552 *-sgi-irix5*|*-sgi-irix6.2)
10553 EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_OLDAL"
10554 echo "$as_me:$LINENO: result: yes" >&5
10555 echo "${ECHO_T}yes" >&6
10558 EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_NEWAL"
10559 echo "$as_me:$LINENO: result: yes" >&5
10560 echo "${ECHO_T}yes" >&6
10562 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10563 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
10565 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_al.c"
10566 EXTRALIBS="$EXTRASLIBS -laudio"
10568 echo "$as_me:$LINENO: result: no" >&5
10569 echo "${ECHO_T}no" >&6
10572 echo "$as_me:$LINENO: checking enable_audio=mme" >&5
10573 echo $ECHO_N "checking enable_audio=mme... $ECHO_C" >&6
10574 if test "x$au_enable_mme" = xyes; then
10576 *-dec-*) echo "$as_me:$LINENO: result: yes" >&5
10577 echo "${ECHO_T}yes" >&6 ;;
10578 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10579 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
10581 EXTRADEFS="$EXTRADEFS -DAU_DEC -DAU_AUDRIV"
10582 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_mme.c"
10583 CPPFLAGS="$CPPFLAGS -I/usr/opt/MME210/include"
10584 EXTRALIBS="$EXTRALIBS /usr/opt/MME220/lib/libmme.a"
10586 echo "$as_me:$LINENO: result: no" >&5
10587 echo "${ECHO_T}no" >&6
10590 echo "$as_me:$LINENO: checking enable_audio=sb_dsp" >&5
10591 echo $ECHO_N "checking enable_audio=sb_dsp... $ECHO_C" >&6
10592 if test "x$au_enable_sb_dsp" = xyes; then
10594 *-*-bsdi2.0) echo "$as_me:$LINENO: result: yes" >&5
10595 echo "${ECHO_T}yes" >&6 ;;
10596 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10597 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
10599 EXTRADEFS="$EXTRADEFS -DAU_BSDI -DDEFAULT_RATE=22500"
10600 SYSEXTRAS="$SYSEXTRAS bsd20_a.c"
10602 echo "$as_me:$LINENO: result: no" >&5
10603 echo "${ECHO_T}no" >&6
10606 echo "$as_me:$LINENO: checking enable_audio=w32" >&5
10607 echo $ECHO_N "checking enable_audio=w32... $ECHO_C" >&6
10608 if test "x$au_enable_w32" = xyes; then
10611 echo "$as_me:$LINENO: result: yes" >&5
10612 echo "${ECHO_T}yes" >&6
10615 echo "$as_me:$LINENO: result: yes" >&5
10616 echo "${ECHO_T}yes" >&6
10619 { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10620 echo "$as_me: WARNING: may not work on $target" >&2;}
10623 SYSEXTRAS="$SYSEXTRAS w32_a.c"
10624 EXTRALIBS="$EXTRALIBS -lwinmm"
10625 EXTRADEFS="$EXTRADEFS -DAU_W32"
10627 echo "$as_me:$LINENO: result: no" >&5
10628 echo "${ECHO_T}no" >&6
10631 echo "$as_me:$LINENO: checking enable_audio=darwin" >&5
10632 echo $ECHO_N "checking enable_audio=darwin... $ECHO_C" >&6
10633 if test "x$au_enable_darwin" = xyes; then
10634 EXTRADEFS="$EXTRADEFS -DAU_DARWIN"
10635 SYSEXTRAS="$SYSEXTRAS darwin_a.c"
10636 EXTRALIBS="$EXTRALIBS -framework CoreAudio"
10639 echo "$as_me:$LINENO: result: yes" >&5
10640 echo "${ECHO_T}yes" >&6;;
10642 { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10643 echo "$as_me: WARNING: may not work on $target" >&2;}
10647 echo "$as_me:$LINENO: result: no" >&5
10648 echo "${ECHO_T}no" >&6
10652 echo "$as_me:$LINENO: checking enable_audio=alsa" >&5
10653 echo $ECHO_N "checking enable_audio=alsa... $ECHO_C" >&6
10654 if test "x$au_enable_alsa" = xyes; then
10655 echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
10656 echo "${ECHO_T}yes, configuring alsa" >&6
10659 KEEPLDFLAGS=$LDFLAGS
10660 alsa_save_CFLAGS="$CFLAGS"
10661 alsa_save_LDFLAGS="$LDFLAGS"
10662 alsa_save_LIBS="$LIBS"
10666 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
10667 if test "${with_alsa_prefix+set}" = set; then
10668 withval="$with_alsa_prefix"
10669 alsa_prefix="$withval"
10675 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
10676 if test "${with_alsa_inc_prefix+set}" = set; then
10677 withval="$with_alsa_inc_prefix"
10678 alsa_inc_prefix="$withval"
10683 # Check whether --enable-alsatest or --disable-alsatest was given.
10684 if test "${enable_alsatest+set}" = set; then
10685 enableval="$enable_alsatest"
10688 enable_alsatest=yes
10691 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
10692 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
10693 if test "$alsa_inc_prefix" != "" ; then
10694 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
10695 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
10697 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
10698 echo "${ECHO_T}$ALSA_CFLAGS" >&6
10700 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
10701 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
10702 if test "$alsa_prefix" != "" ; then
10703 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
10704 LDFLAGS="$LDFLAGS $ALSA_LIBS"
10707 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
10708 LIBS=`echo $LIBS | sed 's/-lm//'`
10709 LIBS=`echo $LIBS | sed 's/-ldl//'`
10710 LIBS=`echo $LIBS | sed 's/-lpthread//'`
10711 LIBS=`echo $LIBS | sed 's/ //'`
10712 LIBS="$ALSA_LIBS $LIBS"
10713 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
10714 echo "${ECHO_T}$ALSA_LIBS" >&6
10716 min_alsa_version=0.1.1
10717 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
10718 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
10720 alsa_min_major_version=`echo $min_alsa_version | \
10721 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10722 alsa_min_minor_version=`echo $min_alsa_version | \
10723 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10724 alsa_min_micro_version=`echo $min_alsa_version | \
10725 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10731 ac_cpp='$CPP $CPPFLAGS'
10732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10736 cat >conftest.$ac_ext <<_ACEOF
10737 #line $LINENO "configure"
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h. */
10744 #include <alsa/asoundlib.h>
10750 /* ensure backward compatibility */
10751 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
10752 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
10754 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
10755 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
10757 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
10758 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
10761 # if(SND_LIB_MAJOR > $alsa_min_major_version)
10764 # if(SND_LIB_MAJOR < $alsa_min_major_version)
10765 # error not present
10768 # if(SND_LIB_MINOR > $alsa_min_minor_version)
10771 # if(SND_LIB_MINOR < $alsa_min_minor_version)
10772 # error not present
10775 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
10776 # error not present
10786 rm -f conftest.$ac_objext
10787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10788 (eval $ac_compile) 2>&5
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); } &&
10792 { ac_try='test -s conftest.$ac_objext'
10793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10794 (eval $ac_try) 2>&5
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); }; }; then
10798 echo "$as_me:$LINENO: result: found." >&5
10799 echo "${ECHO_T}found." >&6
10801 echo "$as_me: failed program was:" >&5
10802 sed 's/^/| /' conftest.$ac_ext >&5
10804 cat >conftest.$ac_ext <<_ACEOF
10805 #line $LINENO "configure"
10808 cat confdefs.h >>conftest.$ac_ext
10809 cat >>conftest.$ac_ext <<_ACEOF
10810 /* end confdefs.h. */
10812 #include <sys/asoundlib.h>
10818 /* ensure backward compatibility */
10819 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
10820 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
10822 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
10823 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
10825 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
10826 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
10829 # if(SND_LIB_MAJOR > $alsa_min_major_version)
10832 # if(SND_LIB_MAJOR < $alsa_min_major_version)
10833 # error not present
10836 # if(SND_LIB_MINOR > $alsa_min_minor_version)
10839 # if(SND_LIB_MINOR < $alsa_min_minor_version)
10840 # error not present
10843 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
10844 # error not present
10854 rm -f conftest.$ac_objext
10855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10856 (eval $ac_compile) 2>&5
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); } &&
10860 { ac_try='test -s conftest.$ac_objext'
10861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10862 (eval $ac_try) 2>&5
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); }; }; then
10866 echo "$as_me:$LINENO: result: found." >&5
10867 echo "${ECHO_T}found." >&6
10869 echo "$as_me: failed program was:" >&5
10870 sed 's/^/| /' conftest.$ac_ext >&5
10872 echo "$as_me:$LINENO: result: not present." >&5
10873 echo "${ECHO_T}not present." >&6
10874 echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
10875 echo "${ECHO_T}libasound was not found anywhere." >&6
10878 rm -f conftest.$ac_objext conftest.$ac_ext
10879 echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
10880 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
10883 rm -f conftest.$ac_objext conftest.$ac_ext
10885 ac_cpp='$CPP $CPPFLAGS'
10886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10892 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
10893 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
10894 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
10895 echo $ECHO_N "(cached) $ECHO_C" >&6
10897 ac_check_lib_save_LIBS=$LIBS
10898 LIBS="-lasound $LIBS"
10899 cat >conftest.$ac_ext <<_ACEOF
10900 #line $LINENO "configure"
10903 cat confdefs.h >>conftest.$ac_ext
10904 cat >>conftest.$ac_ext <<_ACEOF
10905 /* end confdefs.h. */
10907 /* Override any gcc2 internal prototype to avoid an error. */
10911 /* We use char because int might match the return type of a gcc2
10912 builtin and then its argument prototype would still apply. */
10913 char snd_ctl_open ();
10922 rm -f conftest.$ac_objext conftest$ac_exeext
10923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10924 (eval $ac_link) 2>&5
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); } &&
10928 { ac_try='test -s conftest$ac_exeext'
10929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10930 (eval $ac_try) 2>&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); }; }; then
10934 ac_cv_lib_asound_snd_ctl_open=yes
10936 echo "$as_me: failed program was:" >&5
10937 sed 's/^/| /' conftest.$ac_ext >&5
10939 ac_cv_lib_asound_snd_ctl_open=no
10941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10942 LIBS=$ac_check_lib_save_LIBS
10944 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
10945 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
10946 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
10947 cat >>confdefs.h <<_ACEOF
10948 #define HAVE_LIBASOUND 1
10951 LIBS="-lasound $LIBS"
10954 echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
10955 echo "${ECHO_T}No linkable libasound was found." >&6
10961 if test "x$alsa_found" = "xyes" ; then
10963 LIBS=`echo $LIBS | sed 's/-lasound//g'`
10964 LIBS=`echo $LIBS | sed 's/ //'`
10965 LIBS="-lasound $LIBS"
10968 CFLAGS="$alsa_save_CFLAGS"
10969 LDFLAGS="$alsa_save_LDFLAGS"
10970 LIBS="$alsa_save_LIBS"
10978 if test "x$alsa_found" = "xyes" ; then
10979 EXTRADEFS="$EXTRADEFS -DAU_ALSA"
10980 SYSEXTRAS="$SYSEXTRAS alsa_a.c"
10981 for f in $ALSA_CFLAGS; do
10983 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
10984 *) CFLAGS="$CPPFLAGS $f" ;;
10988 LIBS="$KEEPLIBS $ALSA_LIBS"
10990 { echo "$as_me:$LINENO: WARNING: Couldn't configure alsa." >&5
10991 echo "$as_me: WARNING: Couldn't configure alsa." >&2;}
10994 LDFLAGS=$KEEPLDFLAGS
10997 echo "$as_me:$LINENO: result: no" >&5
10998 echo "${ECHO_T}no" >&6
11001 echo "$as_me:$LINENO: checking enable_audio=alib" >&5
11002 echo $ECHO_N "checking enable_audio=alib... $ECHO_C" >&6
11003 if test "x$au_enable_alib" = xyes; then
11005 *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
11006 echo "${ECHO_T}yes" >&6 ;;
11007 *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11008 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11010 SYSEXTRAS="$SYSEXTRAS hpux_a.c"
11011 EXTRADEFS="$EXTRADEFS -DAU_HPUX_ALIB"
11012 if test -d /opt/audio/include; then
11013 CPPFLAGS="$CPPFLAGS -I/opt/audio/include"
11015 if test -d /opt/audio/lib; then
11016 EXTRALIBS="$EXTRALIBS -L/opt/audio/lib"
11018 EXTRALIBS="$EXTRALIBS -lAlib"
11020 echo "$as_me:$LINENO: result: no" >&5
11021 echo "${ECHO_T}no" >&6
11024 echo "$as_me:$LINENO: checking enable_audio=nas" >&5
11025 echo $ECHO_N "checking enable_audio=nas... $ECHO_C" >&6
11026 if test "x$au_enable_nas" = xyes; then
11027 if test "x$with_x" != xyes; then
11028 { { echo "$as_me:$LINENO: error: nas: --with-x option must be specified" >&5
11029 echo "$as_me: error: nas: --with-x option must be specified" >&2;}
11030 { (exit 1); exit 1; }; }
11032 EXTRADEFS="$EXTRADEFS -DAU_NAS"
11033 SYSEXTRAS="$SYSEXTRAS nas_a.c"
11036 if test "x$with_nas_library" != x; then
11037 echo "$as_me:$LINENO: result: $with_nas_library" >&5
11038 echo "${ECHO_T}$with_nas_library" >&6;
11039 EXTRALIBS="$EXTRALIBS $with_nas_library"
11041 echo "$as_me:$LINENO: result: " >&5
11042 echo "${ECHO_T}" >&6
11043 echo "$as_me:$LINENO: checking for library containing AuOpenServer" >&5
11044 echo $ECHO_N "checking for library containing AuOpenServer... $ECHO_C" >&6
11045 if test "${timidity_cv_search_AuOpenServer+set}" = set; then
11046 echo $ECHO_N "(cached) $ECHO_C" >&6
11048 ac_func_search_save_LIBS="$LIBS"
11049 timidity_cv_search_AuOpenServer="no"
11050 for i in $x_libraries/libaudio.a \
11051 /usr/lib/libaudio.so \
11052 /usr/lib/libaudio.a ; do
11053 LIBS="$i $ac_func_search_save_LIBS"
11054 cat >conftest.$ac_ext <<_ACEOF
11055 #line $LINENO "configure"
11058 cat confdefs.h >>conftest.$ac_ext
11059 cat >>conftest.$ac_ext <<_ACEOF
11060 /* end confdefs.h. */
11062 /* Override any gcc2 internal prototype to avoid an error. */
11066 /* We use char because int might match the return type of a gcc2
11067 builtin and then its argument prototype would still apply. */
11068 char AuOpenServer ();
11077 rm -f conftest.$ac_objext conftest$ac_exeext
11078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11079 (eval $ac_link) 2>&5
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); } &&
11083 { ac_try='test -s conftest$ac_exeext'
11084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085 (eval $ac_try) 2>&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; }; then
11089 timidity_cv_search_AuOpenServer="$i"; break
11091 echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11097 LIBS="$ac_func_search_save_LIBS"
11099 echo "$as_me:$LINENO: result: $timidity_cv_search_AuOpenServer" >&5
11100 echo "${ECHO_T}$timidity_cv_search_AuOpenServer" >&6
11101 if test "$timidity_cv_search_AuOpenServer" != "no"; then
11102 echo "$as_me:$LINENO: result: NAS: $timidity_cv_search_AuOpenServer" >&5
11103 echo "${ECHO_T}NAS: $timidity_cv_search_AuOpenServer" >&6
11104 EXTRALIBS="$EXTRALIBS $timidity_cv_search_AuOpenServer"
11106 { echo "$as_me:$LINENO: WARNING: NAS library is not found." >&5
11107 echo "$as_me: WARNING: NAS library is not found." >&2;}
11110 test "x$with_nas_includes" != x && CPPFLAGS="$CPPFLAGS -I$with_nas_includes"
11112 if test "x$have_xext" = xyes; then
11113 lib_xext_opt=-lXext
11115 if test "x$have_xprelibs" = xyes; then
11116 lib_xprelibs_opt='-lSM -lICE'
11119 echo "$as_me:$LINENO: result: no" >&5
11120 echo "${ECHO_T}no" >&6
11123 echo "$as_me:$LINENO: checking enable_audio=arts" >&5
11124 echo $ECHO_N "checking enable_audio=arts... $ECHO_C" >&6
11125 if test "x$au_enable_arts" = xyes; then
11126 echo "$as_me:$LINENO: result: yes, configuring aRts" >&5
11127 echo "${ECHO_T}yes, configuring aRts" >&6
11130 KEEPLDFLAGS=$LDFLAGS
11132 # Check whether --with-arts-prefix or --without-arts-prefix was given.
11133 if test "${with_arts_prefix+set}" = set; then
11134 withval="$with_arts_prefix"
11135 arts_prefix="$withval"
11139 # Check whether --enable-artstest or --disable-artstest was given.
11140 if test "${enable_artstest+set}" = set; then
11141 enableval="$enable_artstest"
11144 enable_artstest=yes
11147 if test x$arts_prefix != x ; then
11148 arts_args="$arts_args --prefix=$arts_prefix"
11149 if test x${ARTS_CONFIG+set} != xset ; then
11150 ARTS_CONFIG=$arts_prefix/bin/artsc-config
11154 # Extract the first word of "artsc-config", so it can be a program name with args.
11155 set dummy artsc-config; ac_word=$2
11156 echo "$as_me:$LINENO: checking for $ac_word" >&5
11157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11158 if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
11159 echo $ECHO_N "(cached) $ECHO_C" >&6
11161 case $ARTS_CONFIG in
11163 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
11166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11167 for as_dir in $PATH
11170 test -z "$as_dir" && as_dir=.
11171 for ac_exec_ext in '' $ac_executable_extensions; do
11172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11173 ac_cv_path_ARTS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11180 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
11184 ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
11186 if test -n "$ARTS_CONFIG"; then
11187 echo "$as_me:$LINENO: result: $ARTS_CONFIG" >&5
11188 echo "${ECHO_T}$ARTS_CONFIG" >&6
11190 echo "$as_me:$LINENO: result: no" >&5
11191 echo "${ECHO_T}no" >&6
11194 min_arts_version=0.9.5
11195 echo "$as_me:$LINENO: checking for ARTS - version >= $min_arts_version" >&5
11196 echo $ECHO_N "checking for ARTS - version >= $min_arts_version... $ECHO_C" >&6
11198 if test "$ARTS_CONFIG" = "no" ; then
11201 ARTS_CFLAGS=`$ARTS_CONFIG $artsconf_args --cflags`
11202 ARTS_LIBS=`$ARTS_CONFIG $artsconf_args --libs`
11204 arts_major_version=`$ARTS_CONFIG $arts_args --version | \
11205 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11206 arts_minor_version=`$ARTS_CONFIG $arts_args --version | \
11207 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11208 arts_micro_version=`$ARTS_CONFIG $arts_config_args --version | \
11209 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11210 if test "x$enable_artstest" = "xyes" ; then
11211 ac_save_CFLAGS="$CFLAGS"
11212 ac_save_LIBS="$LIBS"
11213 CFLAGS="$CFLAGS $ARTS_CFLAGS"
11214 LIBS="$LIBS $ARTS_LIBS"
11215 rm -f conf.artstest
11216 if test "$cross_compiling" = yes; then
11217 echo $ac_n "cross compiling; assumed OK... $ac_c"
11219 cat >conftest.$ac_ext <<_ACEOF
11220 #line $LINENO "configure"
11223 cat confdefs.h >>conftest.$ac_ext
11224 cat >>conftest.$ac_ext <<_ACEOF
11225 /* end confdefs.h. */
11228 #include <stdlib.h>
11229 #include <string.h>
11233 my_strdup (char *str)
11239 new_str = malloc ((strlen (str) + 1) * sizeof(char));
11240 strcpy (new_str, str);
11250 int major, minor, micro;
11253 system ("touch conf.artstest");
11255 /* HP/UX 9 (%@#!) writes to sscanf strings */
11256 tmp_version = my_strdup("$min_arts_version");
11257 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
11258 printf("%s, bad version string\n", "$min_arts_version");
11262 if (($arts_major_version > major) ||
11263 (($arts_major_version == major) && ($arts_minor_version > minor)) ||
11264 (($arts_major_version == major) && ($arts_minor_version == minor) && ($arts_micro_version >= micro)))
11270 printf("\n*** 'artsc-config --version' returned %d.%d.%d, but the minimum version\n", $arts_major_version, $arts_minor_version, $arts_micro_version);
11271 printf("*** of ARTS required is %d.%d.%d. If artsc-config is correct, then it is\n", major, minor, micro);
11272 printf("*** best to upgrade to the required version.\n");
11273 printf("*** If artsc-config was wrong, set the environment variable ARTS_CONFIG\n");
11274 printf("*** to point to the correct copy of artsc-config, and remove the file\n");
11275 printf("*** config.cache before re-running configure\n");
11282 rm -f conftest$ac_exeext
11283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11284 (eval $ac_link) 2>&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11289 (eval $ac_try) 2>&5
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); }; }; then
11295 echo "$as_me: program exited with status $ac_status" >&5
11296 echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11299 ( exit $ac_status )
11302 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11304 CFLAGS="$ac_save_CFLAGS"
11305 LIBS="$ac_save_LIBS"
11308 if test "x$no_arts" = x ; then
11309 echo "$as_me:$LINENO: result: yes" >&5
11310 echo "${ECHO_T}yes" >&6
11313 echo "$as_me:$LINENO: result: no" >&5
11314 echo "${ECHO_T}no" >&6
11315 if test "$ARTS_CONFIG" = "no" ; then
11316 echo "*** The artsc-config script installed by ARTS could not be found"
11317 echo "*** If ARTS was installed in PREFIX, make sure PREFIX/bin is in"
11318 echo "*** your path, or set the ARTS_CONFIG environment variable to the"
11319 echo "*** full path to artsc-config."
11321 if test -f conf.artstest ; then
11324 echo "*** Could not run ARTS test program, checking why..."
11325 CFLAGS="$CFLAGS $ARTS_CFLAGS"
11326 LIBS="$LIBS $ARTS_LIBS"
11327 cat >conftest.$ac_ext <<_ACEOF
11328 #line $LINENO "configure"
11331 cat confdefs.h >>conftest.$ac_ext
11332 cat >>conftest.$ac_ext <<_ACEOF
11333 /* end confdefs.h. */
11346 rm -f conftest.$ac_objext conftest$ac_exeext
11347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11348 (eval $ac_link) 2>&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); } &&
11352 { ac_try='test -s conftest$ac_exeext'
11353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11354 (eval $ac_try) 2>&5
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); }; }; then
11358 echo "*** The test program compiled, but did not run. This usually means"
11359 echo "*** that the run-time linker is not finding ARTS or finding the wrong"
11360 echo "*** version of ARTS. If it is not finding ARTS, you'll need to set your"
11361 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11362 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11363 echo "*** is required on your system"
11365 echo "*** If you have an old version installed, it is best to remove it, although"
11366 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11368 echo "$as_me: failed program was:" >&5
11369 sed 's/^/| /' conftest.$ac_ext >&5
11371 echo "*** The test program failed to compile or link. See the file config.log for the"
11372 echo "*** exact error that occured. This usually means ARTS was incorrectly installed"
11373 echo "*** or that you have moved ARTS since it was installed. In the latter case, you"
11374 echo "*** may want to edit the arts-config script: $ARTS_CONFIG"
11376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11377 CFLAGS="$ac_save_CFLAGS"
11378 LIBS="$ac_save_LIBS"
11387 rm -f conf.artstest
11391 LDFLAGS=$KEEPLDFLAGS
11392 if test "x$no_arts" = x; then
11393 EXTRADEFS="$EXTRADEFS -DAU_ARTS"
11394 SYSEXTRAS="$SYSEXTRAS aRts_a.c"
11395 for f in $ARTS_CFLAGS; do
11397 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
11398 *) CFLAGS="$CPPFLAGS $f" ;;
11402 LIBS="$LIBS $ARTS_LIBS"
11404 { echo "$as_me:$LINENO: WARNING: aRts: Couldn't configure" >&5
11405 echo "$as_me: WARNING: aRts: Couldn't configure" >&2;}
11408 echo "$as_me:$LINENO: result: no" >&5
11409 echo "${ECHO_T}no" >&6
11412 echo "$as_me:$LINENO: checking enable_audio=esd" >&5
11413 echo $ECHO_N "checking enable_audio=esd... $ECHO_C" >&6
11414 if test "x$au_enable_esd" = xyes; then
11415 echo "$as_me:$LINENO: result: yes, configuring esd" >&5
11416 echo "${ECHO_T}yes, configuring esd" >&6
11419 KEEPLDFLAGS=$LDFLAGS
11421 # Check whether --with-esd-prefix or --without-esd-prefix was given.
11422 if test "${with_esd_prefix+set}" = set; then
11423 withval="$with_esd_prefix"
11424 esd_prefix="$withval"
11429 # Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given.
11430 if test "${with_esd_exec_prefix+set}" = set; then
11431 withval="$with_esd_exec_prefix"
11432 esd_exec_prefix="$withval"
11436 # Check whether --enable-esdtest or --disable-esdtest was given.
11437 if test "${enable_esdtest+set}" = set; then
11438 enableval="$enable_esdtest"
11444 if test x$esd_exec_prefix != x ; then
11445 esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
11446 if test x${ESD_CONFIG+set} != xset ; then
11447 ESD_CONFIG=$esd_exec_prefix/bin/esd-config
11450 if test x$esd_prefix != x ; then
11451 esd_args="$esd_args --prefix=$esd_prefix"
11452 if test x${ESD_CONFIG+set} != xset ; then
11453 ESD_CONFIG=$esd_prefix/bin/esd-config
11457 # Extract the first word of "esd-config", so it can be a program name with args.
11458 set dummy esd-config; ac_word=$2
11459 echo "$as_me:$LINENO: checking for $ac_word" >&5
11460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11461 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
11464 case $ESD_CONFIG in
11466 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
11469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11470 for as_dir in $PATH
11473 test -z "$as_dir" && as_dir=.
11474 for ac_exec_ext in '' $ac_executable_extensions; do
11475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11476 ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11483 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
11487 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
11489 if test -n "$ESD_CONFIG"; then
11490 echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
11491 echo "${ECHO_T}$ESD_CONFIG" >&6
11493 echo "$as_me:$LINENO: result: no" >&5
11494 echo "${ECHO_T}no" >&6
11497 min_esd_version=0.2.7
11498 echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
11499 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6
11501 if test "$ESD_CONFIG" = "no" ; then
11507 ac_cpp='$CPP $CPPFLAGS'
11508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11512 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
11513 ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
11515 esd_major_version=`$ESD_CONFIG $esd_args --version | \
11516 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11517 esd_minor_version=`$ESD_CONFIG $esd_args --version | \
11518 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11519 esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
11520 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11521 if test "x$enable_esdtest" = "xyes" ; then
11522 ac_save_CFLAGS="$CFLAGS"
11523 ac_save_LIBS="$LIBS"
11524 CFLAGS="$CFLAGS $ESD_CFLAGS"
11525 LIBS="$LIBS $ESD_LIBS"
11527 if test "$cross_compiling" = yes; then
11528 echo $ac_n "cross compiling; assumed OK... $ac_c"
11530 cat >conftest.$ac_ext <<_ACEOF
11531 #line $LINENO "configure"
11534 cat confdefs.h >>conftest.$ac_ext
11535 cat >>conftest.$ac_ext <<_ACEOF
11536 /* end confdefs.h. */
11539 #include <stdlib.h>
11540 #include <string.h>
11544 my_strdup (char *str)
11550 new_str = malloc ((strlen (str) + 1) * sizeof(char));
11551 strcpy (new_str, str);
11561 int major, minor, micro;
11564 system ("touch conf.esdtest");
11566 /* HP/UX 9 (%@#!) writes to sscanf strings */
11567 tmp_version = my_strdup("$min_esd_version");
11568 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
11569 printf("%s, bad version string\n", "$min_esd_version");
11573 if (($esd_major_version > major) ||
11574 (($esd_major_version == major) && ($esd_minor_version > minor)) ||
11575 (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
11581 printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
11582 printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
11583 printf("*** best to upgrade to the required version.\n");
11584 printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
11585 printf("*** to point to the correct copy of esd-config, and remove the file\n");
11586 printf("*** config.cache before re-running configure\n");
11593 rm -f conftest$ac_exeext
11594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11595 (eval $ac_link) 2>&5
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11600 (eval $ac_try) 2>&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }; }; then
11606 echo "$as_me: program exited with status $ac_status" >&5
11607 echo "$as_me: failed program was:" >&5
11608 sed 's/^/| /' conftest.$ac_ext >&5
11610 ( exit $ac_status )
11613 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11615 CFLAGS="$ac_save_CFLAGS"
11616 LIBS="$ac_save_LIBS"
11618 ac_cpp='$CPP $CPPFLAGS'
11619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11625 if test "x$no_esd" = x ; then
11626 echo "$as_me:$LINENO: result: yes" >&5
11627 echo "${ECHO_T}yes" >&6
11630 echo "$as_me:$LINENO: result: no" >&5
11631 echo "${ECHO_T}no" >&6
11632 if test "$ESD_CONFIG" = "no" ; then
11633 echo "*** The esd-config script installed by ESD could not be found"
11634 echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
11635 echo "*** your path, or set the ESD_CONFIG environment variable to the"
11636 echo "*** full path to esd-config."
11638 if test -f conf.esdtest ; then
11641 echo "*** Could not run ESD test program, checking why..."
11642 CFLAGS="$CFLAGS $ESD_CFLAGS"
11643 LIBS="$LIBS $ESD_LIBS"
11647 ac_cpp='$CPP $CPPFLAGS'
11648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11652 cat >conftest.$ac_ext <<_ACEOF
11653 #line $LINENO "configure"
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h. */
11671 rm -f conftest.$ac_objext conftest$ac_exeext
11672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11673 (eval $ac_link) 2>&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } &&
11677 { ac_try='test -s conftest$ac_exeext'
11678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679 (eval $ac_try) 2>&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); }; }; then
11683 echo "*** The test program compiled, but did not run. This usually means"
11684 echo "*** that the run-time linker is not finding ESD or finding the wrong"
11685 echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
11686 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11687 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11688 echo "*** is required on your system"
11690 echo "*** If you have an old version installed, it is best to remove it, although"
11691 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11693 echo "$as_me: failed program was:" >&5
11694 sed 's/^/| /' conftest.$ac_ext >&5
11696 echo "*** The test program failed to compile or link. See the file config.log for the"
11697 echo "*** exact error that occured. This usually means ESD was incorrectly installed"
11698 echo "*** or that you have moved ESD since it was installed. In the latter case, you"
11699 echo "*** may want to edit the esd-config script: $ESD_CONFIG"
11701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11702 CFLAGS="$ac_save_CFLAGS"
11703 LIBS="$ac_save_LIBS"
11705 ac_cpp='$CPP $CPPFLAGS'
11706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11722 LDFLAGS=$KEEPLDFLAGS
11723 if test "x$no_esd" = x; then
11724 EXTRADEFS="$EXTRADEFS -DAU_ESD"
11725 SYSEXTRAS="$SYSEXTRAS esd_a.c"
11726 for f in $ESD_CFLAGS; do
11728 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
11729 *) CFLAGS="$CPPFLAGS $f" ;;
11733 LIBS="$LIBS $ESD_LIBS"
11735 { echo "$as_me:$LINENO: WARNING: EsounD: Couldn't configure" >&5
11736 echo "$as_me: WARNING: EsounD: Couldn't configure" >&2;}
11739 echo "$as_me:$LINENO: result: no" >&5
11740 echo "${ECHO_T}no" >&6
11743 echo "$as_me:$LINENO: checking enable_audio=portaudio" >&5
11744 echo $ECHO_N "checking enable_audio=portaudio... $ECHO_C" >&6
11745 if test "x$au_enable_portaudio" = xyes; then
11746 echo "$as_me:$LINENO: result: yes" >&5
11747 echo "${ECHO_T}yes" >&6
11748 SYSEXTRAS="$SYSEXTRAS portaudio_a.c"
11749 EXTRALIBS="$EXTRALIBS -lportaudio"
11750 EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO"
11752 echo "$as_me:$LINENO: result: no" >&5
11753 echo "${ECHO_T}no" >&6
11756 echo "$as_me:$LINENO: checking enable_audio=vorbis" >&5
11757 echo $ECHO_N "checking enable_audio=vorbis... $ECHO_C" >&6
11758 if test "x$au_enable_vorbis" = xyes; then
11759 echo "$as_me:$LINENO: result: yes, configuring vorbis" >&5
11760 echo "${ECHO_T}yes, configuring vorbis" >&6
11762 # Check whether --with-ogg or --without-ogg was given.
11763 if test "${with_ogg+set}" = set; then
11764 withval="$with_ogg"
11765 ogg_prefix="$withval"
11770 # Check whether --with-ogg-libraries or --without-ogg-libraries was given.
11771 if test "${with_ogg_libraries+set}" = set; then
11772 withval="$with_ogg_libraries"
11773 ogg_libraries="$withval"
11778 # Check whether --with-ogg-includes or --without-ogg-includes was given.
11779 if test "${with_ogg_includes+set}" = set; then
11780 withval="$with_ogg_includes"
11781 ogg_includes="$withval"
11785 # Check whether --enable-oggtest or --disable-oggtest was given.
11786 if test "${enable_oggtest+set}" = set; then
11787 enableval="$enable_oggtest"
11793 if test "x$ogg_libraries" != "x" ; then
11794 OGG_LIBS="-L$ogg_libraries"
11795 elif test "x$ogg_prefix" != "x" ; then
11796 OGG_LIBS="-L$ogg_prefix/lib"
11797 elif test "x$prefix" != "xNONE" ; then
11798 OGG_LIBS="-L$prefix/lib"
11801 OGG_LIBS="$OGG_LIBS -logg"
11803 if test "x$ogg_includes" != "x" ; then
11804 OGG_CFLAGS="-I$ogg_includes"
11805 elif test "x$ogg_prefix" != "x" ; then
11806 OGG_CFLAGS="-I$ogg_prefix/include"
11807 elif test "x$prefix" != "xNONE"; then
11808 OGG_CFLAGS="-I$prefix/include"
11811 echo "$as_me:$LINENO: checking for Ogg" >&5
11812 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6
11816 if test "x$enable_oggtest" = "xyes" ; then
11817 ac_save_CFLAGS="$CFLAGS"
11818 ac_save_LIBS="$LIBS"
11819 CFLAGS="$CFLAGS $OGG_CFLAGS"
11820 LIBS="$LIBS $OGG_LIBS"
11822 if test "$cross_compiling" = yes; then
11823 echo $ac_n "cross compiling; assumed OK... $ac_c"
11825 cat >conftest.$ac_ext <<_ACEOF
11826 #line $LINENO "configure"
11829 cat confdefs.h >>conftest.$ac_ext
11830 cat >>conftest.$ac_ext <<_ACEOF
11831 /* end confdefs.h. */
11834 #include <stdlib.h>
11835 #include <string.h>
11836 #include <ogg/ogg.h>
11840 system("touch conf.oggtest");
11846 rm -f conftest$ac_exeext
11847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11848 (eval $ac_link) 2>&5
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11853 (eval $ac_try) 2>&5
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); }; }; then
11859 echo "$as_me: program exited with status $ac_status" >&5
11860 echo "$as_me: failed program was:" >&5
11861 sed 's/^/| /' conftest.$ac_ext >&5
11863 ( exit $ac_status )
11866 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11868 CFLAGS="$ac_save_CFLAGS"
11869 LIBS="$ac_save_LIBS"
11872 if test "x$no_ogg" = "x" ; then
11873 echo "$as_me:$LINENO: result: yes" >&5
11874 echo "${ECHO_T}yes" >&6
11877 # Check whether --with-vorbis or --without-vorbis was given.
11878 if test "${with_vorbis+set}" = set; then
11879 withval="$with_vorbis"
11880 vorbis_prefix="$withval"
11885 # Check whether --with-vorbis-libraries or --without-vorbis-libraries was given.
11886 if test "${with_vorbis_libraries+set}" = set; then
11887 withval="$with_vorbis_libraries"
11888 vorbis_libraries="$withval"
11890 vorbis_libraries=""
11893 # Check whether --with-vorbis-includes or --without-vorbis-includes was given.
11894 if test "${with_vorbis_includes+set}" = set; then
11895 withval="$with_vorbis_includes"
11896 vorbis_includes="$withval"
11900 # Check whether --enable-vorbistest or --disable-vorbistest was given.
11901 if test "${enable_vorbistest+set}" = set; then
11902 enableval="$enable_vorbistest"
11905 enable_vorbistest=yes
11908 if test "x$vorbis_libraries" != "x" ; then
11909 VORBIS_LIBS="-L$vorbis_libraries"
11910 elif test "x$vorbis_prefix" != "x" ; then
11911 VORBIS_LIBS="-L$vorbis_prefix/lib"
11912 elif test "x$prefix" != "xNONE"; then
11913 VORBIS_LIBS="-L$prefix/lib"
11916 VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
11917 VORBISFILE_LIBS="-lvorbisfile"
11918 VORBISENC_LIBS="-lvorbisenc"
11920 if test "x$vorbis_includes" != "x" ; then
11921 VORBIS_CFLAGS="-I$vorbis_includes"
11922 elif test "x$vorbis_prefix" != "x" ; then
11923 VORBIS_CFLAGS="-I$vorbis_prefix/include"
11924 elif test "x$prefix" != "xNONE"; then
11925 VORBIS_CFLAGS="-I$prefix/include"
11929 echo "$as_me:$LINENO: checking for Vorbis" >&5
11930 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6
11934 if test "x$enable_vorbistest" = "xyes" ; then
11935 ac_save_CFLAGS="$CFLAGS"
11936 ac_save_LIBS="$LIBS"
11937 CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
11938 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
11939 rm -f conf.vorbistest
11940 if test "$cross_compiling" = yes; then
11941 echo $ac_n "cross compiling; assumed OK... $ac_c"
11943 cat >conftest.$ac_ext <<_ACEOF
11944 #line $LINENO "configure"
11947 cat confdefs.h >>conftest.$ac_ext
11948 cat >>conftest.$ac_ext <<_ACEOF
11949 /* end confdefs.h. */
11952 #include <stdlib.h>
11953 #include <string.h>
11954 #include <vorbis/codec.h>
11958 system("touch conf.vorbistest");
11964 rm -f conftest$ac_exeext
11965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11966 (eval $ac_link) 2>&5
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971 (eval $ac_try) 2>&5
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; }; then
11977 echo "$as_me: program exited with status $ac_status" >&5
11978 echo "$as_me: failed program was:" >&5
11979 sed 's/^/| /' conftest.$ac_ext >&5
11981 ( exit $ac_status )
11984 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11986 CFLAGS="$ac_save_CFLAGS"
11987 LIBS="$ac_save_LIBS"
11990 if test "x$no_vorbis" = "x" ; then
11991 echo "$as_me:$LINENO: result: yes" >&5
11992 echo "${ECHO_T}yes" >&6
11995 SYSEXTRAS="$SYSEXTRAS vorbis_a.c"
11996 EXTRADEFS="$EXTRADEFS -DAU_VORBIS $OGG_CFLAGS $VORBIS_CFLAGS"
11997 EXTRALIBS="$EXTRALIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
11998 if test "x$CYGNUS" = "xyes"; then
11999 EXTRADEFS="-DAU_VORBIS_DLL $EXTRALIBS"
12000 SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
12002 if test "x$MINGW" = "xyes"; then
12003 EXTRADEFS="-DAU_VORBIS_DLL $EXTRALIBS"
12004 SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
12008 echo "$as_me:$LINENO: result: no" >&5
12009 echo "${ECHO_T}no" >&6
12010 if test -f conf.vorbistest ; then
12013 echo "*** Could not run Vorbis test program, checking why..."
12014 CFLAGS="$CFLAGS $VORBIS_CFLAGS"
12015 LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
12016 cat >conftest.$ac_ext <<_ACEOF
12017 #line $LINENO "configure"
12020 cat confdefs.h >>conftest.$ac_ext
12021 cat >>conftest.$ac_ext <<_ACEOF
12022 /* end confdefs.h. */
12025 #include <vorbis/codec.h>
12035 rm -f conftest.$ac_objext conftest$ac_exeext
12036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12037 (eval $ac_link) 2>&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } &&
12041 { ac_try='test -s conftest$ac_exeext'
12042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043 (eval $ac_try) 2>&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; }; then
12047 echo "*** The test program compiled, but did not run. This usually means"
12048 echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
12049 echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
12050 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12051 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12052 echo "*** is required on your system"
12054 echo "*** If you have an old version installed, it is best to remove it, although"
12055 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12057 echo "$as_me: failed program was:" >&5
12058 sed 's/^/| /' conftest.$ac_ext >&5
12060 echo "*** The test program failed to compile or link. See the file config.log for the"
12061 echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
12062 echo "*** or that you have moved Vorbis since it was installed."
12064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12065 CFLAGS="$ac_save_CFLAGS"
12066 LIBS="$ac_save_LIBS"
12073 { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis, but ogg is there (???)" >&5
12074 echo "$as_me: WARNING: Unable to configure vorbis, but ogg is there (???)" >&2;}
12081 rm -f conf.vorbistest
12085 echo "$as_me:$LINENO: result: no" >&5
12086 echo "${ECHO_T}no" >&6
12087 if test -f conf.oggtest ; then
12090 echo "*** Could not run Ogg test program, checking why..."
12091 CFLAGS="$CFLAGS $OGG_CFLAGS"
12092 LIBS="$LIBS $OGG_LIBS"
12093 cat >conftest.$ac_ext <<_ACEOF
12094 #line $LINENO "configure"
12097 cat confdefs.h >>conftest.$ac_ext
12098 cat >>conftest.$ac_ext <<_ACEOF
12099 /* end confdefs.h. */
12102 #include <ogg/ogg.h>
12112 rm -f conftest.$ac_objext conftest$ac_exeext
12113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12114 (eval $ac_link) 2>&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } &&
12118 { ac_try='test -s conftest$ac_exeext'
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; }; then
12124 echo "*** The test program compiled, but did not run. This usually means"
12125 echo "*** that the run-time linker is not finding Ogg or finding the wrong"
12126 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
12127 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12128 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12129 echo "*** is required on your system"
12131 echo "*** If you have an old version installed, it is best to remove it, although"
12132 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12134 echo "$as_me: failed program was:" >&5
12135 sed 's/^/| /' conftest.$ac_ext >&5
12137 echo "*** The test program failed to compile or link. See the file config.log for the"
12138 echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
12139 echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
12140 echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
12142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12143 CFLAGS="$ac_save_CFLAGS"
12144 LIBS="$ac_save_LIBS"
12149 { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis!" >&5
12150 echo "$as_me: WARNING: Unable to configure vorbis!" >&2;}
12159 echo "$as_me:$LINENO: result: no" >&5
12160 echo "${ECHO_T}no" >&6
12163 echo "$as_me:$LINENO: checking enable_audio=gogo" >&5
12164 echo $ECHO_N "checking enable_audio=gogo... $ECHO_C" >&6
12165 if test "x$au_enable_gogo" = xyes; then
12166 if test "x$CYGNUS" = "xyes"; then
12167 echo "$as_me:$LINENO: result: yes" >&5
12168 echo "${ECHO_T}yes" >&6
12170 if test "x$MINGW" = "xyes"; then
12171 echo "$as_me:$LINENO: result: yes" >&5
12172 echo "${ECHO_T}yes" >&6
12174 { echo "$as_me:$LINENO: WARNING: May be gogo is not supported. You need hack the gogo_a.c" >&5
12175 echo "$as_me: WARNING: May be gogo is not supported. You need hack the gogo_a.c" >&2;}
12179 SYSEXTRAS="$SYSEXTRAS gogo_a.c w32_gogo.c"
12180 EXTRADEFS="$EXTRADEFS -DAU_GOGO -DAU_GOGO_DLL"
12181 EXTRALIBS="$EXTRALIBS -lgogo"
12183 echo "$as_me:$LINENO: result: no" >&5
12184 echo "${ECHO_T}no" >&6
12187 if test "x$au_enable_none" = xyes; then
12188 EXTRADEFS="$EXTRADEFS -DAU_NONE -DAU_AUDRIV"
12189 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_none.c"
12191 echo "$as_me:$LINENO: checking default output mode" >&5
12192 echo $ECHO_N "checking default output mode... $ECHO_C" >&6
12193 if test "x$DEFAULT_PLAYMODE" = x; then
12194 DEFAULT_PLAYMODE=`echo $enable_audio | sed 's/,.*//'`
12196 case ".$DEFAULT_PLAYMODE" in
12197 .default) TIMIDITY_OUTPUT_ID=d ;;
12198 .oss) TIMIDITY_OUTPUT_ID=d ;;
12199 .alsa) TIMIDITY_OUTPUT_ID=s ;;
12200 .sun) TIMIDITY_OUTPUT_ID=d ;;
12201 .hpux) TIMIDITY_OUTPUT_ID=d ;;
12202 .irix) TIMIDITY_OUTPUT_ID=d ;;
12203 .mme) TIMIDITY_OUTPUT_ID=d ;;
12204 .sb_dsp) TIMIDITY_OUTPUT_ID=d ;;
12205 .darwin) TIMIDITY_OUTPUT_ID=d ;;
12206 .w32) TIMIDITY_OUTPUT_ID=d ;;
12207 .alib) TIMIDITY_OUTPUT_ID=A ;;
12208 .nas) TIMIDITY_OUTPUT_ID=n ;;
12209 .arts) TIMIDITY_OUTPUT_ID=R ;;
12210 .esd) TIMIDITY_OUTPUT_ID=e ;;
12211 .portaudio) TIMIDITY_OUTPUT_ID=p ;;
12212 .wav) TIMIDITY_OUTPUT_ID=w ;;
12213 .au) TIMIDITY_OUTPUT_ID=u ;;
12214 .aiff) TIMIDITY_OUTPUT_ID=a ;;
12215 .list) TIMIDITY_OUTPUT_ID=l ;;
12216 .vorbis) TIMIDITY_OUTPUT_ID=v ;;
12217 .gogo) TIMIDITY_OUTPUT_ID=g ;;
12218 *) TIMIDITY_OUTPUT_ID= ;;
12220 echo "$as_me:$LINENO: result: $DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&5
12221 echo "${ECHO_T}$DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&6
12224 # Interface Section
12227 interface_targets='dynamic ncurses slang motif tcltk emacs vt100 xaw xskin gtk alsaseq winsyn winsyng portmidisyng'
12229 # Check whether --enable-interface or --disable-interface was given.
12230 if test "${enable_interface+set}" = set; then
12231 enableval="$enable_interface"
12232 for i in `echo $enableval | sed 's/,/ /g'`; do
12233 eval "enable_$i=yes"
12237 # Dynamic link configuration
12238 # Check whether --enable-dynamic or --disable-dynamic was given.
12239 if test "${enable_dynamic+set}" = set; then
12240 enableval="$enable_dynamic"
12241 if test "x$enable_dynamic" = xyes; then
12242 enable_dynamic=dynamic
12243 elif test "x$enable_dynamic" != xno; then
12244 for i in `echo $enableval | sed 's/,/ /g'`; do
12245 eval "enable_$i=dynamic"
12251 for i in $interface_targets; do
12252 eval "join_targets=$join_targets\$enable_$i"
12255 case ".$join_targets" in
12256 .*dynamic*) NEEDDLOPEN=yes;;
12260 if test "x$GCC" = xyes; then SHCFLAGS="$SHCFLAGS -fPIC"; fi
12261 case "x$enable_ump" in xyes|xdynamic) EXTRACFLAGS="$EXTRACFLAGS -DXP_UNIX $SHCFLAGS";; esac
12263 if test "$NEEDDLOPEN" = "yes"; then
12266 echo "$as_me:$LINENO: checking for LoadLibrary" >&5
12267 echo $ECHO_N "checking for LoadLibrary... $ECHO_C" >&6
12268 if test "${wapi_cv_func_LoadLibrary+set}" = set; then
12269 echo $ECHO_N "(cached) $ECHO_C" >&6
12271 cat >conftest.$ac_ext <<_ACEOF
12272 #line $LINENO "configure"
12275 cat confdefs.h >>conftest.$ac_ext
12276 cat >>conftest.$ac_ext <<_ACEOF
12277 /* end confdefs.h. */
12278 #include <windows.h>
12289 rm -f conftest.$ac_objext conftest$ac_exeext
12290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12291 (eval $ac_link) 2>&5
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); } &&
12295 { ac_try='test -s conftest$ac_exeext'
12296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12297 (eval $ac_try) 2>&5
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); }; }; then
12301 wapi_cv_func_LoadLibrary=yes
12303 echo "$as_me: failed program was:" >&5
12304 sed 's/^/| /' conftest.$ac_ext >&5
12306 wapi_cv_func_LoadLibrary=no
12308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12311 if eval "test \"`echo '$wapi_cv_func_'LoadLibrary`\" = yes"; then
12312 echo "$as_me:$LINENO: result: yes" >&5
12313 echo "${ECHO_T}yes" >&6
12316 echo "$as_me:$LINENO: result: no" >&5
12317 echo "${ECHO_T}no" >&6
12320 test $wapi_cv_func_LoadLibrary = yes && have_dl=w32
12322 if test "$have_dl" = "no"; then
12323 echo "$as_me:$LINENO: checking for shl_load" >&5
12324 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12325 if test "${ac_cv_func_shl_load+set}" = set; then
12326 echo $ECHO_N "(cached) $ECHO_C" >&6
12328 cat >conftest.$ac_ext <<_ACEOF
12329 #line $LINENO "configure"
12332 cat confdefs.h >>conftest.$ac_ext
12333 cat >>conftest.$ac_ext <<_ACEOF
12334 /* end confdefs.h. */
12335 /* System header to define __stub macros and hopefully few prototypes,
12336 which can conflict with char shl_load (); below. */
12337 #include <assert.h>
12338 /* Override any gcc2 internal prototype to avoid an error. */
12343 /* We use char because int might match the return type of a gcc2
12344 builtin and then its argument prototype would still apply. */
12346 /* The GNU C library defines this for functions which it implements
12347 to always fail with ENOSYS. Some functions are actually named
12348 something starting with __ and the normal name is an alias. */
12349 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12352 char (*f) () = shl_load;
12366 rm -f conftest.$ac_objext conftest$ac_exeext
12367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12368 (eval $ac_link) 2>&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } &&
12372 { ac_try='test -s conftest$ac_exeext'
12373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12374 (eval $ac_try) 2>&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; }; then
12378 ac_cv_func_shl_load=yes
12380 echo "$as_me: failed program was:" >&5
12381 sed 's/^/| /' conftest.$ac_ext >&5
12383 ac_cv_func_shl_load=no
12385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12387 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12388 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12389 if test $ac_cv_func_shl_load = yes; then
12394 if test "$have_dl" = "no"; then
12395 echo "$as_me:$LINENO: checking for NSLinkModule" >&5
12396 echo $ECHO_N "checking for NSLinkModule... $ECHO_C" >&6
12397 if test "${ac_cv_func_NSLinkModule+set}" = set; then
12398 echo $ECHO_N "(cached) $ECHO_C" >&6
12400 cat >conftest.$ac_ext <<_ACEOF
12401 #line $LINENO "configure"
12404 cat confdefs.h >>conftest.$ac_ext
12405 cat >>conftest.$ac_ext <<_ACEOF
12406 /* end confdefs.h. */
12407 /* System header to define __stub macros and hopefully few prototypes,
12408 which can conflict with char NSLinkModule (); below. */
12409 #include <assert.h>
12410 /* Override any gcc2 internal prototype to avoid an error. */
12415 /* We use char because int might match the return type of a gcc2
12416 builtin and then its argument prototype would still apply. */
12417 char NSLinkModule ();
12418 /* The GNU C library defines this for functions which it implements
12419 to always fail with ENOSYS. Some functions are actually named
12420 something starting with __ and the normal name is an alias. */
12421 #if defined (__stub_NSLinkModule) || defined (__stub___NSLinkModule)
12424 char (*f) () = NSLinkModule;
12438 rm -f conftest.$ac_objext conftest$ac_exeext
12439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12440 (eval $ac_link) 2>&5
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); } &&
12444 { ac_try='test -s conftest$ac_exeext'
12445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12446 (eval $ac_try) 2>&5
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); }; }; then
12450 ac_cv_func_NSLinkModule=yes
12452 echo "$as_me: failed program was:" >&5
12453 sed 's/^/| /' conftest.$ac_ext >&5
12455 ac_cv_func_NSLinkModule=no
12457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12459 echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5
12460 echo "${ECHO_T}$ac_cv_func_NSLinkModule" >&6
12461 if test $ac_cv_func_NSLinkModule = yes; then
12466 if test "$have_dl" = "no" -a "x$ac_cv_lib_dl_dlopen" = xyes; then
12469 if test "$have_dl" = "no"; then
12470 echo "$as_me:$LINENO: checking for dlopen" >&5
12471 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12472 if test "${ac_cv_func_dlopen+set}" = set; then
12473 echo $ECHO_N "(cached) $ECHO_C" >&6
12475 cat >conftest.$ac_ext <<_ACEOF
12476 #line $LINENO "configure"
12479 cat confdefs.h >>conftest.$ac_ext
12480 cat >>conftest.$ac_ext <<_ACEOF
12481 /* end confdefs.h. */
12482 /* System header to define __stub macros and hopefully few prototypes,
12483 which can conflict with char dlopen (); below. */
12484 #include <assert.h>
12485 /* Override any gcc2 internal prototype to avoid an error. */
12490 /* We use char because int might match the return type of a gcc2
12491 builtin and then its argument prototype would still apply. */
12493 /* The GNU C library defines this for functions which it implements
12494 to always fail with ENOSYS. Some functions are actually named
12495 something starting with __ and the normal name is an alias. */
12496 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12499 char (*f) () = dlopen;
12513 rm -f conftest.$ac_objext conftest$ac_exeext
12514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12515 (eval $ac_link) 2>&5
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); } &&
12519 { ac_try='test -s conftest$ac_exeext'
12520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521 (eval $ac_try) 2>&5
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }; }; then
12525 ac_cv_func_dlopen=yes
12527 echo "$as_me: failed program was:" >&5
12528 sed 's/^/| /' conftest.$ac_ext >&5
12530 ac_cv_func_dlopen=no
12532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12534 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12535 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12536 if test $ac_cv_func_dlopen = yes; then
12541 if test "$have_dl" = "no"; then
12542 echo "$as_me:$LINENO: checking for dld_init" >&5
12543 echo $ECHO_N "checking for dld_init... $ECHO_C" >&6
12544 if test "${ac_cv_func_dld_init+set}" = set; then
12545 echo $ECHO_N "(cached) $ECHO_C" >&6
12547 cat >conftest.$ac_ext <<_ACEOF
12548 #line $LINENO "configure"
12551 cat confdefs.h >>conftest.$ac_ext
12552 cat >>conftest.$ac_ext <<_ACEOF
12553 /* end confdefs.h. */
12554 /* System header to define __stub macros and hopefully few prototypes,
12555 which can conflict with char dld_init (); below. */
12556 #include <assert.h>
12557 /* Override any gcc2 internal prototype to avoid an error. */
12562 /* We use char because int might match the return type of a gcc2
12563 builtin and then its argument prototype would still apply. */
12565 /* The GNU C library defines this for functions which it implements
12566 to always fail with ENOSYS. Some functions are actually named
12567 something starting with __ and the normal name is an alias. */
12568 #if defined (__stub_dld_init) || defined (__stub___dld_init)
12571 char (*f) () = dld_init;
12585 rm -f conftest.$ac_objext conftest$ac_exeext
12586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12587 (eval $ac_link) 2>&5
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); } &&
12591 { ac_try='test -s conftest$ac_exeext'
12592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12593 (eval $ac_try) 2>&5
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); }; }; then
12597 ac_cv_func_dld_init=yes
12599 echo "$as_me: failed program was:" >&5
12600 sed 's/^/| /' conftest.$ac_ext >&5
12602 ac_cv_func_dld_init=no
12604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12606 echo "$as_me:$LINENO: result: $ac_cv_func_dld_init" >&5
12607 echo "${ECHO_T}$ac_cv_func_dld_init" >&6
12608 if test $ac_cv_func_dld_init = yes; then
12613 if test "$have_dl" = "no"; then
12614 echo "$as_me:$LINENO: checking for dld_init in -ldld" >&5
12615 echo $ECHO_N "checking for dld_init in -ldld... $ECHO_C" >&6
12616 if test "${ac_cv_lib_dld_dld_init+set}" = set; then
12617 echo $ECHO_N "(cached) $ECHO_C" >&6
12619 ac_check_lib_save_LIBS=$LIBS
12621 cat >conftest.$ac_ext <<_ACEOF
12622 #line $LINENO "configure"
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h. */
12629 /* Override any gcc2 internal prototype to avoid an error. */
12633 /* We use char because int might match the return type of a gcc2
12634 builtin and then its argument prototype would still apply. */
12644 rm -f conftest.$ac_objext conftest$ac_exeext
12645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12646 (eval $ac_link) 2>&5
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); } &&
12650 { ac_try='test -s conftest$ac_exeext'
12651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12652 (eval $ac_try) 2>&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); }; }; then
12656 ac_cv_lib_dld_dld_init=yes
12658 echo "$as_me: failed program was:" >&5
12659 sed 's/^/| /' conftest.$ac_ext >&5
12661 ac_cv_lib_dld_dld_init=no
12663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12664 LIBS=$ac_check_lib_save_LIBS
12666 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_init" >&5
12667 echo "${ECHO_T}$ac_cv_lib_dld_dld_init" >&6
12668 if test $ac_cv_lib_dld_dld_init = yes; then
12669 have_dl=dld;lib_dl_opt=-ldld
12674 echo "$as_me:$LINENO: checking dynamic link method" >&5
12675 echo $ECHO_N "checking dynamic link method... $ECHO_C" >&6
12678 echo "$as_me:$LINENO: result: use dl_dlopen.c" >&5
12679 echo "${ECHO_T}use dl_dlopen.c" >&6
12680 SYSEXTRAS="$SYSEXTRAS dl_dlopen.c"
12681 echo "$as_me:$LINENO: checking whether your dlsym() needs a leading underscore" >&5
12682 echo $ECHO_N "checking whether your dlsym() needs a leading underscore... $ECHO_C" >&6
12683 if test "${timidity_cv_func_dlsym_underscore+set}" = set; then
12684 echo $ECHO_N "(cached) $ECHO_C" >&6
12686 case "$ac_cv_header_dlfcn_h" in
12687 yes) i_dlfcn=define;;
12698 #include <dlfcn.h> /* the dynamic linker include file for Sunos/Solaris */
12700 #include <sys/types.h>
12705 extern int fred() ;
12714 int mode = RTLD_LAZY ;
12716 handle = dlopen("./dyna.$so", mode) ;
12717 if (handle == NULL) {
12722 symbol = dlsym(handle, "fred") ;
12723 if (symbol == NULL) {
12724 /* try putting a leading underscore */
12725 symbol = dlsym(handle, "_fred") ;
12726 if (symbol == NULL) {
12739 : Call the object file tmp-dyna.o in case dlext=o.
12740 if ${CC-cc} $CFLAGS $SHCFLAGS $CPPFLAGS -c dyna.c > /dev/null 2>&1 &&
12741 mv dyna.o tmp-dyna.o > /dev/null 2>&1 &&
12742 $SHLD $SHLDFLAGS -o dyna.$so tmp-dyna.o > /dev/null 2>&1 &&
12743 ${CC-cc} -o fred $CFLAGS $CPPFLAGS $LDFLAGS fred.c $LIBS $lib_dl_opt > /dev/null 2>&1; then
12746 1) { echo "$as_me:$LINENO: WARNING: Test program failed using dlopen. Perhaps you should not use dynamic loading." >&5
12747 echo "$as_me: WARNING: Test program failed using dlopen. Perhaps you should not use dynamic loading." >&2;}
12749 2) { echo "$as_me:$LINENO: WARNING: Test program failed using dlsym. Perhaps you should not use dynamic loading." >&5
12750 echo "$as_me: WARNING: Test program failed using dlsym. Perhaps you should not use dynamic loading." >&2;}
12752 3) timidity_cv_func_dlsym_underscore=yes
12754 4) timidity_cv_func_dlsym_underscore=no
12758 { echo "$as_me:$LINENO: WARNING: I can't compile and run the test program." >&5
12759 echo "$as_me: WARNING: I can't compile and run the test program." >&2;}
12761 rm -f dyna.c dyna.o dyna.$so tmp-dyna.o fred.c fred.o fred
12765 case "x$timidity_cv_func_dlsym_underscore" in
12767 cat >>confdefs.h <<\_ACEOF
12768 #define DLSYM_NEEDS_UNDERSCORE 1
12771 echo "$as_me:$LINENO: result: yes" >&5
12772 echo "${ECHO_T}yes" >&6
12775 echo "$as_me:$LINENO: result: no" >&5
12776 echo "${ECHO_T}no" >&6
12782 echo "$as_me:$LINENO: result: use dl_dld.c" >&5
12783 echo "${ECHO_T}use dl_dld.c" >&6
12784 SYSEXTRAS="$SYSEXTRAS dl_dld.c"
12787 echo "$as_me:$LINENO: result: use dl_hpux.c" >&5
12788 echo "${ECHO_T}use dl_hpux.c" >&6
12789 SYSEXTRAS="$SYSEXTRAS dl_hpux.c"
12790 LDFLAGS="$LDFLAGS -Wl,-E $LDFLAGS"
12793 echo "$as_me:$LINENO: result: use dl_w32.c" >&5
12794 echo "${ECHO_T}use dl_w32.c" >&6
12795 SYSEXTRAS="$SYSEXTRAS dl_w32.c"
12798 echo "$as_me:$LINENO: result: use dl_dyld.c" >&5
12799 echo "${ECHO_T}use dl_dyld.c" >&6
12800 SYSEXTRAS="$SYSEXTRAS dl_dyld.c"
12804 { echo "$as_me:$LINENO: WARNING: no method to open a shared object" >&5
12805 echo "$as_me: WARNING: no method to open a shared object" >&2;}
12810 if test "$NEEDDLOPEN" = "yes"; then
12811 cat >> confdefs.h <<EOF
12812 #define IA_DYNAMIC 1
12816 cat >>confdefs.h <<_ACEOF
12817 #define SHARED_LIB_EXT ".$so"
12820 test "x$GCC" = xyes -a "x$timidity_cv_ccoption_rdynamic" = xyes && timidity_LDFLAGS="-rdynamic"
12825 if test "$NEEDDLOPEN" = "yes"; then
12827 NEEDDLOPEN_FALSE='#'
12829 NEEDDLOPEN_TRUE='#'
12838 ENABLE_NCURSES_TRUE=
12839 ENABLE_NCURSES_FALSE='#'
12841 ENABLE_NCURSES_TRUE='#'
12842 ENABLE_NCURSES_FALSE=
12845 # Check whether --enable-ncurses or --disable-ncurses was given.
12846 if test "${enable_ncurses+set}" = set; then
12847 enableval="$enable_ncurses"
12848 case "x$enable_ncurses" in xyes|xdynamic)
12851 for ac_header in ncurses.h ncurses/curses.h curses.h
12853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12855 echo "$as_me:$LINENO: checking for $ac_header" >&5
12856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12858 echo $ECHO_N "(cached) $ECHO_C" >&6
12860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12863 # Is the header compilable?
12864 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12866 cat >conftest.$ac_ext <<_ACEOF
12867 #line $LINENO "configure"
12870 cat confdefs.h >>conftest.$ac_ext
12871 cat >>conftest.$ac_ext <<_ACEOF
12872 /* end confdefs.h. */
12873 $ac_includes_default
12874 #include <$ac_header>
12876 rm -f conftest.$ac_objext
12877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12878 (eval $ac_compile) 2>&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); } &&
12882 { ac_try='test -s conftest.$ac_objext'
12883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12884 (eval $ac_try) 2>&5
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); }; }; then
12888 ac_header_compiler=yes
12890 echo "$as_me: failed program was:" >&5
12891 sed 's/^/| /' conftest.$ac_ext >&5
12893 ac_header_compiler=no
12895 rm -f conftest.$ac_objext conftest.$ac_ext
12896 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12897 echo "${ECHO_T}$ac_header_compiler" >&6
12899 # Is the header present?
12900 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12902 cat >conftest.$ac_ext <<_ACEOF
12903 #line $LINENO "configure"
12906 cat confdefs.h >>conftest.$ac_ext
12907 cat >>conftest.$ac_ext <<_ACEOF
12908 /* end confdefs.h. */
12909 #include <$ac_header>
12911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12914 grep -v '^ *+' conftest.er1 >conftest.err
12916 cat conftest.err >&5
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); } >/dev/null; then
12919 if test -s conftest.err; then
12920 ac_cpp_err=$ac_c_preproc_warn_flag
12927 if test -z "$ac_cpp_err"; then
12928 ac_header_preproc=yes
12930 echo "$as_me: failed program was:" >&5
12931 sed 's/^/| /' conftest.$ac_ext >&5
12933 ac_header_preproc=no
12935 rm -f conftest.err conftest.$ac_ext
12936 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12937 echo "${ECHO_T}$ac_header_preproc" >&6
12939 # So? What about this header?
12940 case $ac_header_compiler:$ac_header_preproc in
12942 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12943 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12945 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12948 ## ------------------------------------ ##
12949 ## Report this to bug-autoconf@gnu.org. ##
12950 ## ------------------------------------ ##
12953 sed "s/^/$as_me: WARNING: /" >&2
12956 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12957 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12958 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12959 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12964 ## ------------------------------------ ##
12965 ## Report this to bug-autoconf@gnu.org. ##
12966 ## ------------------------------------ ##
12969 sed "s/^/$as_me: WARNING: /" >&2
12972 echo "$as_me:$LINENO: checking for $ac_header" >&5
12973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12975 echo $ECHO_N "(cached) $ECHO_C" >&6
12977 eval "$as_ac_Header=$ac_header_preproc"
12979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12980 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12984 cat >>confdefs.h <<_ACEOF
12985 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12994 case "$ac_cv_header_curses_h$ac_cv_header_ncurses_curses_h$ac_cv_header_ncurses_h" in
12996 *) for i in /usr/include /usr/local/include; do
12997 if test -f "$i/ncurses/curses.h" -a -f "$i/ncurses/unctrl.h"; then
12998 { echo "$as_me:$LINENO: WARNING: ncurses test is failure. Please check config.h and common.makefile later" >&5
12999 echo "$as_me: WARNING: ncurses test is failure. Please check config.h and common.makefile later" >&2;}
13000 CPPFLAGS="$CPPFLAGS -I$i/ncurses"
13007 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
13008 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
13009 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
13010 echo $ECHO_N "(cached) $ECHO_C" >&6
13012 ac_check_lib_save_LIBS=$LIBS
13013 LIBS="-lncurses $LIBS"
13014 cat >conftest.$ac_ext <<_ACEOF
13015 #line $LINENO "configure"
13018 cat confdefs.h >>conftest.$ac_ext
13019 cat >>conftest.$ac_ext <<_ACEOF
13020 /* end confdefs.h. */
13022 /* Override any gcc2 internal prototype to avoid an error. */
13026 /* We use char because int might match the return type of a gcc2
13027 builtin and then its argument prototype would still apply. */
13037 rm -f conftest.$ac_objext conftest$ac_exeext
13038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13039 (eval $ac_link) 2>&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); } &&
13043 { ac_try='test -s conftest$ac_exeext'
13044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13045 (eval $ac_try) 2>&5
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); }; }; then
13049 ac_cv_lib_ncurses_initscr=yes
13051 echo "$as_me: failed program was:" >&5
13052 sed 's/^/| /' conftest.$ac_ext >&5
13054 ac_cv_lib_ncurses_initscr=no
13056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13057 LIBS=$ac_check_lib_save_LIBS
13059 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
13060 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
13061 if test $ac_cv_lib_ncurses_initscr = yes; then
13062 lib_curses_opt=-lncurses
13064 echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lcurses" >&5
13065 echo $ECHO_N "checking for PDC_set_ctrl_break in -lcurses... $ECHO_C" >&6
13066 if test "${ac_cv_lib_curses_PDC_set_ctrl_break+set}" = set; then
13067 echo $ECHO_N "(cached) $ECHO_C" >&6
13069 ac_check_lib_save_LIBS=$LIBS
13070 LIBS="-lcurses $lib_user32_test $LIBS"
13071 cat >conftest.$ac_ext <<_ACEOF
13072 #line $LINENO "configure"
13075 cat confdefs.h >>conftest.$ac_ext
13076 cat >>conftest.$ac_ext <<_ACEOF
13077 /* end confdefs.h. */
13079 /* Override any gcc2 internal prototype to avoid an error. */
13083 /* We use char because int might match the return type of a gcc2
13084 builtin and then its argument prototype would still apply. */
13085 char PDC_set_ctrl_break ();
13089 PDC_set_ctrl_break ();
13094 rm -f conftest.$ac_objext conftest$ac_exeext
13095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13096 (eval $ac_link) 2>&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); } &&
13100 { ac_try='test -s conftest$ac_exeext'
13101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13102 (eval $ac_try) 2>&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); }; }; then
13106 ac_cv_lib_curses_PDC_set_ctrl_break=yes
13108 echo "$as_me: failed program was:" >&5
13109 sed 's/^/| /' conftest.$ac_ext >&5
13111 ac_cv_lib_curses_PDC_set_ctrl_break=no
13113 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13114 LIBS=$ac_check_lib_save_LIBS
13116 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_PDC_set_ctrl_break" >&5
13117 echo "${ECHO_T}$ac_cv_lib_curses_PDC_set_ctrl_break" >&6
13118 if test $ac_cv_lib_curses_PDC_set_ctrl_break = yes; then
13119 lib_curses_opt=-lcurses
13121 cat >>confdefs.h <<\_ACEOF
13122 #define USE_PDCURSES 1
13125 lib_user32_opt="$lib_user32_test"
13128 echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lpdcurses" >&5
13129 echo $ECHO_N "checking for PDC_set_ctrl_break in -lpdcurses... $ECHO_C" >&6
13130 if test "${ac_cv_lib_pdcurses_PDC_set_ctrl_break+set}" = set; then
13131 echo $ECHO_N "(cached) $ECHO_C" >&6
13133 ac_check_lib_save_LIBS=$LIBS
13134 LIBS="-lpdcurses $LIBS"
13135 cat >conftest.$ac_ext <<_ACEOF
13136 #line $LINENO "configure"
13139 cat confdefs.h >>conftest.$ac_ext
13140 cat >>conftest.$ac_ext <<_ACEOF
13141 /* end confdefs.h. */
13143 /* Override any gcc2 internal prototype to avoid an error. */
13147 /* We use char because int might match the return type of a gcc2
13148 builtin and then its argument prototype would still apply. */
13149 char PDC_set_ctrl_break ();
13153 PDC_set_ctrl_break ();
13158 rm -f conftest.$ac_objext conftest$ac_exeext
13159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13160 (eval $ac_link) 2>&5
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); } &&
13164 { ac_try='test -s conftest$ac_exeext'
13165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13166 (eval $ac_try) 2>&5
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); }; }; then
13170 ac_cv_lib_pdcurses_PDC_set_ctrl_break=yes
13172 echo "$as_me: failed program was:" >&5
13173 sed 's/^/| /' conftest.$ac_ext >&5
13175 ac_cv_lib_pdcurses_PDC_set_ctrl_break=no
13177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13178 LIBS=$ac_check_lib_save_LIBS
13180 echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&5
13181 echo "${ECHO_T}$ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&6
13182 if test $ac_cv_lib_pdcurses_PDC_set_ctrl_break = yes; then
13183 lib_curses_opt=-lpdcurses
13185 cat >>confdefs.h <<\_ACEOF
13186 #define USE_PDCURSES 1
13189 lib_user32_opt="$lib_user32_test"
13194 echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
13195 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
13196 if test "${ac_cv_lib_curses_initscr+set}" = set; then
13197 echo $ECHO_N "(cached) $ECHO_C" >&6
13199 ac_check_lib_save_LIBS=$LIBS
13200 LIBS="-lcurses $LIBS"
13201 cat >conftest.$ac_ext <<_ACEOF
13202 #line $LINENO "configure"
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h. */
13209 /* Override any gcc2 internal prototype to avoid an error. */
13213 /* We use char because int might match the return type of a gcc2
13214 builtin and then its argument prototype would still apply. */
13224 rm -f conftest.$ac_objext conftest$ac_exeext
13225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13226 (eval $ac_link) 2>&5
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); } &&
13230 { ac_try='test -s conftest$ac_exeext'
13231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13232 (eval $ac_try) 2>&5
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); }; }; then
13236 ac_cv_lib_curses_initscr=yes
13238 echo "$as_me: failed program was:" >&5
13239 sed 's/^/| /' conftest.$ac_ext >&5
13241 ac_cv_lib_curses_initscr=no
13243 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13244 LIBS=$ac_check_lib_save_LIBS
13246 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
13247 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
13248 if test $ac_cv_lib_curses_initscr = yes; then
13249 lib_curses_opt=-lcurses
13251 { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
13252 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
13258 { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
13259 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
13274 case "x$enable_ncurses" in
13276 cat >> confdefs.h <<EOF
13277 #define IA_NCURSES 1
13283 ENABLE_NCURSES_TRUE=
13284 ENABLE_NCURSES_FALSE='#'
13286 ENABLE_NCURSES_TRUE='#'
13287 ENABLE_NCURSES_FALSE=
13290 LIBS="$LIBS $lib_curses_opt"
13293 EXTRALIBS="$EXTRALIBS -lmytinfo"
13296 INTERFACE_SRCS="$INTERFACE_SRCS ncurs_c.c"
13300 dynamic_targets="$dynamic_targets interface_n.\$(so)"
13301 n_so_libs="$lib_curses_opt"
13304 EXTRALIBS="$EXTRALIBS -lmytinfo"
13319 ENABLE_SLANG_FALSE='#'
13321 ENABLE_SLANG_TRUE='#'
13322 ENABLE_SLANG_FALSE=
13325 # Check whether --enable-slang or --disable-slang was given.
13326 if test "${enable_slang+set}" = set; then
13327 enableval="$enable_slang"
13328 case "x$enable_slang" in xyes|xdynamic) echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5
13329 echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6
13330 if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then
13331 echo $ECHO_N "(cached) $ECHO_C" >&6
13333 ac_check_lib_save_LIBS=$LIBS
13334 LIBS="-lslang $LIBS"
13335 cat >conftest.$ac_ext <<_ACEOF
13336 #line $LINENO "configure"
13339 cat confdefs.h >>conftest.$ac_ext
13340 cat >>conftest.$ac_ext <<_ACEOF
13341 /* end confdefs.h. */
13343 /* Override any gcc2 internal prototype to avoid an error. */
13347 /* We use char because int might match the return type of a gcc2
13348 builtin and then its argument prototype would still apply. */
13349 char SLang_init_tty ();
13358 rm -f conftest.$ac_objext conftest$ac_exeext
13359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13360 (eval $ac_link) 2>&5
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); } &&
13364 { ac_try='test -s conftest$ac_exeext'
13365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13366 (eval $ac_try) 2>&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); }; }; then
13370 ac_cv_lib_slang_SLang_init_tty=yes
13372 echo "$as_me: failed program was:" >&5
13373 sed 's/^/| /' conftest.$ac_ext >&5
13375 ac_cv_lib_slang_SLang_init_tty=no
13377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13378 LIBS=$ac_check_lib_save_LIBS
13380 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5
13381 echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6
13382 if test $ac_cv_lib_slang_SLang_init_tty = yes; then
13386 { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
13387 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
13393 for ac_header in slang/slang.h slang.h
13395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13397 echo "$as_me:$LINENO: checking for $ac_header" >&5
13398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13400 echo $ECHO_N "(cached) $ECHO_C" >&6
13402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13405 # Is the header compilable?
13406 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13408 cat >conftest.$ac_ext <<_ACEOF
13409 #line $LINENO "configure"
13412 cat confdefs.h >>conftest.$ac_ext
13413 cat >>conftest.$ac_ext <<_ACEOF
13414 /* end confdefs.h. */
13415 $ac_includes_default
13416 #include <$ac_header>
13418 rm -f conftest.$ac_objext
13419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13420 (eval $ac_compile) 2>&5
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); } &&
13424 { ac_try='test -s conftest.$ac_objext'
13425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426 (eval $ac_try) 2>&5
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; }; then
13430 ac_header_compiler=yes
13432 echo "$as_me: failed program was:" >&5
13433 sed 's/^/| /' conftest.$ac_ext >&5
13435 ac_header_compiler=no
13437 rm -f conftest.$ac_objext conftest.$ac_ext
13438 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13439 echo "${ECHO_T}$ac_header_compiler" >&6
13441 # Is the header present?
13442 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13443 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13444 cat >conftest.$ac_ext <<_ACEOF
13445 #line $LINENO "configure"
13448 cat confdefs.h >>conftest.$ac_ext
13449 cat >>conftest.$ac_ext <<_ACEOF
13450 /* end confdefs.h. */
13451 #include <$ac_header>
13453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13456 grep -v '^ *+' conftest.er1 >conftest.err
13458 cat conftest.err >&5
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); } >/dev/null; then
13461 if test -s conftest.err; then
13462 ac_cpp_err=$ac_c_preproc_warn_flag
13469 if test -z "$ac_cpp_err"; then
13470 ac_header_preproc=yes
13472 echo "$as_me: failed program was:" >&5
13473 sed 's/^/| /' conftest.$ac_ext >&5
13475 ac_header_preproc=no
13477 rm -f conftest.err conftest.$ac_ext
13478 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13479 echo "${ECHO_T}$ac_header_preproc" >&6
13481 # So? What about this header?
13482 case $ac_header_compiler:$ac_header_preproc in
13484 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13485 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13490 ## ------------------------------------ ##
13491 ## Report this to bug-autoconf@gnu.org. ##
13492 ## ------------------------------------ ##
13495 sed "s/^/$as_me: WARNING: /" >&2
13498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13501 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13506 ## ------------------------------------ ##
13507 ## Report this to bug-autoconf@gnu.org. ##
13508 ## ------------------------------------ ##
13511 sed "s/^/$as_me: WARNING: /" >&2
13514 echo "$as_me:$LINENO: checking for $ac_header" >&5
13515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13517 echo $ECHO_N "(cached) $ECHO_C" >&6
13519 eval "$as_ac_Header=$ac_header_preproc"
13521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13522 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13526 cat >>confdefs.h <<_ACEOF
13527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13536 case "x$enable_slang" in
13538 cat >> confdefs.h <<EOF
13546 ENABLE_SLANG_FALSE='#'
13548 ENABLE_SLANG_TRUE='#'
13549 ENABLE_SLANG_FALSE=
13552 LIBS="$LIBS -lslang"
13553 INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
13557 dynamic_targets="$dynamic_targets interface_s.\$(so)"
13558 s_so_libs="-lslang"
13559 echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
13560 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6
13561 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
13562 echo $ECHO_N "(cached) $ECHO_C" >&6
13564 ac_check_lib_save_LIBS=$LIBS
13565 LIBS="-ltermcap $LIBS"
13566 cat >conftest.$ac_ext <<_ACEOF
13567 #line $LINENO "configure"
13570 cat confdefs.h >>conftest.$ac_ext
13571 cat >>conftest.$ac_ext <<_ACEOF
13572 /* end confdefs.h. */
13574 /* Override any gcc2 internal prototype to avoid an error. */
13578 /* We use char because int might match the return type of a gcc2
13579 builtin and then its argument prototype would still apply. */
13589 rm -f conftest.$ac_objext conftest$ac_exeext
13590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13591 (eval $ac_link) 2>&5
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); } &&
13595 { ac_try='test -s conftest$ac_exeext'
13596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13597 (eval $ac_try) 2>&5
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); }; }; then
13601 ac_cv_lib_termcap_initscr=yes
13603 echo "$as_me: failed program was:" >&5
13604 sed 's/^/| /' conftest.$ac_ext >&5
13606 ac_cv_lib_termcap_initscr=no
13608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13609 LIBS=$ac_check_lib_save_LIBS
13611 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
13612 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6
13613 if test $ac_cv_lib_termcap_initscr = yes; then
13614 s_so_libs="$s_so_libs -ltermcap"
13630 ENABLE_MOTIF_FALSE='#'
13632 ENABLE_MOTIF_TRUE='#'
13633 ENABLE_MOTIF_FALSE=
13636 # Check whether --enable-motif or --disable-motif was given.
13637 if test "${enable_motif+set}" = set; then
13638 enableval="$enable_motif"
13639 case "x$enable_motif" in xyes|xdynamic) if test "x$with_x" != xyes; then
13640 { { echo "$as_me:$LINENO: error: motif: --with-x option must be specified" >&5
13641 echo "$as_me: error: motif: --with-x option must be specified" >&2;}
13642 { (exit 1); exit 1; }; }
13644 if test "x$have_xm" != xyes; then
13645 { echo "$as_me:$LINENO: WARNING: Motif library is not found." >&5
13646 echo "$as_me: WARNING: Motif library is not found." >&2;}
13651 case "x$enable_motif" in
13653 cat >> confdefs.h <<EOF
13661 ENABLE_MOTIF_FALSE='#'
13663 ENABLE_MOTIF_TRUE='#'
13664 ENABLE_MOTIF_FALSE=
13669 lib_xext_opt=-lXext
13670 if test "x$have_xprelibs" = xyes; then
13671 lib_xprelibs_opt='-lSM -lICE'
13673 INTERFACE_SRCS="$INTERFACE_SRCS motif_c.c motif_i.c motif_p.c"
13677 dynamic_targets="$dynamic_targets interface_m.\$(so)"
13678 if test x$have_xprelibs = xyes; then
13679 m_so_libs="-lXext -lSM -lICE"
13681 m_so_libs="$ldflags_x_opt -lXm -lXt $m_so_libs -lX11"
13695 ENABLE_TCLTK_FALSE='#'
13697 ENABLE_TCLTK_TRUE='#'
13698 ENABLE_TCLTK_FALSE=
13701 # Check whether --enable-tcltk or --disable-tcltk was given.
13702 if test "${enable_tcltk+set}" = set; then
13703 enableval="$enable_tcltk"
13704 case "x$enable_tcltk" in xyes|xdynamic) if test "x$with_x" != xyes; then
13705 { { echo "$as_me:$LINENO: error: tcltk: --with-x option must be specified" >&5
13706 echo "$as_me: error: tcltk: --with-x option must be specified" >&2;}
13707 { (exit 1); exit 1; }; }
13710 KEEPCPPFLAGS=$CPPFLAGS
13711 KEEPLDFLAGS=$LDFLAGS
13714 CPPFLAGS="$tcl_include_dir $tk_includes $CPPFLAGS"
13715 LDFLAGS="$tcl_libdir $tk_libdir $LDFLAGS"
13716 LIBS="$LIBS $lib_dl_opt"
13720 for l in tcl tcl8.0jp tcl7.6jp tcl80jp tcl76jp tcl8.0 tcl7.6 tcl80 tcl76; do
13721 case "x$tcl_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tcl_Init" | $as_tr_sh`
13722 echo "$as_me:$LINENO: checking for Tcl_Init in -l$l" >&5
13723 echo $ECHO_N "checking for Tcl_Init in -l$l... $ECHO_C" >&6
13724 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13725 echo $ECHO_N "(cached) $ECHO_C" >&6
13727 ac_check_lib_save_LIBS=$LIBS
13729 cat >conftest.$ac_ext <<_ACEOF
13730 #line $LINENO "configure"
13733 cat confdefs.h >>conftest.$ac_ext
13734 cat >>conftest.$ac_ext <<_ACEOF
13735 /* end confdefs.h. */
13737 /* Override any gcc2 internal prototype to avoid an error. */
13741 /* We use char because int might match the return type of a gcc2
13742 builtin and then its argument prototype would still apply. */
13752 rm -f conftest.$ac_objext conftest$ac_exeext
13753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13754 (eval $ac_link) 2>&5
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); } &&
13758 { ac_try='test -s conftest$ac_exeext'
13759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13760 (eval $ac_try) 2>&5
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); }; }; then
13764 eval "$as_ac_Lib=yes"
13766 echo "$as_me: failed program was:" >&5
13767 sed 's/^/| /' conftest.$ac_ext >&5
13769 eval "$as_ac_Lib=no"
13771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13772 LIBS=$ac_check_lib_save_LIBS
13774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13775 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13776 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13781 LIBS="$LIBS $tcl_lib"
13782 for l in tk tk8.0jp tk4.2jp tk80jp tk42jp tk8.0 tk4.2 tk80 tk42; do
13783 case "x$tk_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tk_Init" | $as_tr_sh`
13784 echo "$as_me:$LINENO: checking for Tk_Init in -l$l" >&5
13785 echo $ECHO_N "checking for Tk_Init in -l$l... $ECHO_C" >&6
13786 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13787 echo $ECHO_N "(cached) $ECHO_C" >&6
13789 ac_check_lib_save_LIBS=$LIBS
13791 cat >conftest.$ac_ext <<_ACEOF
13792 #line $LINENO "configure"
13795 cat confdefs.h >>conftest.$ac_ext
13796 cat >>conftest.$ac_ext <<_ACEOF
13797 /* end confdefs.h. */
13799 /* Override any gcc2 internal prototype to avoid an error. */
13803 /* We use char because int might match the return type of a gcc2
13804 builtin and then its argument prototype would still apply. */
13814 rm -f conftest.$ac_objext conftest$ac_exeext
13815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13816 (eval $ac_link) 2>&5
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); } &&
13820 { ac_try='test -s conftest$ac_exeext'
13821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13822 (eval $ac_try) 2>&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); }; }; then
13826 eval "$as_ac_Lib=yes"
13828 echo "$as_me: failed program was:" >&5
13829 sed 's/^/| /' conftest.$ac_ext >&5
13831 eval "$as_ac_Lib=no"
13833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13834 LIBS=$ac_check_lib_save_LIBS
13836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13837 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13838 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13845 if test "x$tcl_lib" = x -o "x$tk_lib" = x; then
13846 CPPFLAGS=$KEEPCPPFLAGS
13847 LDFLAGS=$KEEPLDFLAGS
13849 { echo "$as_me:$LINENO: WARNING: tcl/tk is not enable" >&5
13850 echo "$as_me: WARNING: tcl/tk is not enable" >&2;}
13852 tcltk_dep='tclIndex'
13856 case "x$enable_tcltk" in
13858 cat >> confdefs.h <<EOF
13866 ENABLE_TCLTK_FALSE='#'
13868 ENABLE_TCLTK_TRUE='#'
13869 ENABLE_TCLTK_FALSE=
13872 LIBS=`echo $LIBS | sed "s/-lX11/$tk_lib $tcl_lib -lX11/"`
13875 EXTRALIBS="$EXTRALIBS -lipc"
13878 INTERFACE_SRCS="$INTERFACE_SRCS tk_c.c"
13882 dynamic_targets="$dynamic_targets interface_k.\$(so)"
13883 k_so_libs="$tcl_libdir $tk_libdir $tcl_lib $tk_lib $lib_dl_opt"
13886 k_so_libs="$k_so_libs -lipc"
13889 k_so_libs="$k_so_libs -lX11 -lm"
13900 if test "x$enable_tcltk" = "xdynamic"; then
13901 ENABLE_DYNAMIC_TCLTK_TRUE=
13902 ENABLE_DYNAMIC_TCLTK_FALSE='#'
13904 ENABLE_DYNAMIC_TCLTK_TRUE='#'
13905 ENABLE_DYNAMIC_TCLTK_FALSE=
13913 ENABLE_EMACS_FALSE='#'
13915 ENABLE_EMACS_TRUE='#'
13916 ENABLE_EMACS_FALSE=
13919 # Check whether --enable-emacs or --disable-emacs was given.
13920 if test "${enable_emacs+set}" = set; then
13921 enableval="$enable_emacs"
13922 case "x$enable_emacs" in xyes|xdynamic) ;; esac
13924 case "x$enable_emacs" in
13926 cat >> confdefs.h <<EOF
13934 ENABLE_EMACS_FALSE='#'
13936 ENABLE_EMACS_TRUE='#'
13937 ENABLE_EMACS_FALSE=
13940 ELFILES="$ELFILES timidity.el"
13941 INTERFACE_SRCS="$INTERFACE_SRCS emacs_c.c"
13945 dynamic_targets="$dynamic_targets interface_e.\$(so)"
13946 ELFILES="$ELFILES timidity.el"
13959 ENABLE_VT100_FALSE='#'
13961 ENABLE_VT100_TRUE='#'
13962 ENABLE_VT100_FALSE=
13965 # Check whether --enable-vt100 or --disable-vt100 was given.
13966 if test "${enable_vt100+set}" = set; then
13967 enableval="$enable_vt100"
13968 case "x$enable_vt100" in xyes|xdynamic) ;; esac
13970 case "x$enable_vt100" in
13972 cat >> confdefs.h <<EOF
13980 ENABLE_VT100_FALSE='#'
13982 ENABLE_VT100_TRUE='#'
13983 ENABLE_VT100_FALSE=
13986 INTERFACE_SRCS="$INTERFACE_SRCS vt100_c.c vt100.c"
13989 dynamic_targets="$dynamic_targets interface_T.\$(so)"
14003 ENABLE_XAW_FALSE='#'
14005 ENABLE_XAW_TRUE='#'
14009 # Check whether --enable-xaw or --disable-xaw was given.
14010 if test "${enable_xaw+set}" = set; then
14011 enableval="$enable_xaw"
14012 case "x$enable_xaw" in xyes|xdynamic) if test "x$with_x" != xyes; then
14013 { { echo "$as_me:$LINENO: error: xaw: --with-x option must be specified" >&5
14014 echo "$as_me: error: xaw: --with-x option must be specified" >&2;}
14015 { (exit 1); exit 1; }; }
14017 if test "x$have_xaw" != "xyes" -a "x$have_xaw" != "x3d"; then
14018 { echo "$as_me:$LINENO: WARNING: X Athena Widget library is not found." >&5
14019 echo "$as_me: WARNING: X Athena Widget library is not found." >&2;}
14023 case "x$enable_xaw" in
14025 cat >> confdefs.h <<EOF
14033 ENABLE_XAW_FALSE='#'
14035 ENABLE_XAW_TRUE='#'
14039 if test "x$have_xext" = xyes; then
14040 lib_xext_opt=-lXext
14042 if test "x$have_xprelibs" = xyes; then
14043 lib_xprelibs_opt='-lSM -lICE'
14047 if test "x$have_xaw" = x3d; then
14049 cat >>confdefs.h <<\_ACEOF
14053 lib_xaw_opt=-lXaw3d
14057 INTERFACE_SRCS="$INTERFACE_SRCS xaw_c.c xaw_i.c"
14061 dynamic_targets="$dynamic_targets interface_a.\$(so)"
14062 if test "x$have_xext" = xyes; then
14063 a_so_libs="-lXext -lX11"
14069 a_so_libs="$a_so_libs -lcc_dynamic"
14072 if test "x$have_xprelibs" = xyes; then
14073 a_so_libs="-lSM -lICE $a_so_libs"
14075 if test "x$have_xaw" = xyes; then
14076 a_so_libs="-lXaw -lXmu -lXt $a_so_libs"
14077 elif test "x$have_xaw" = x3d; then
14079 cat >>confdefs.h <<\_ACEOF
14083 a_so_libs="-lXaw3d -lXmu -lXt $a_so_libs"
14085 a_so_libs="$ldflags_x_opt $a_so_libs"
14096 if test "x$enable_xaw" = "xdynamic"; then
14097 ENABLE_DYNAMIC_XAW_TRUE=
14098 ENABLE_DYNAMIC_XAW_FALSE='#'
14100 ENABLE_DYNAMIC_XAW_TRUE='#'
14101 ENABLE_DYNAMIC_XAW_FALSE=
14109 ENABLE_XSKIN_FALSE='#'
14111 ENABLE_XSKIN_TRUE='#'
14112 ENABLE_XSKIN_FALSE=
14115 # Check whether --enable-xskin or --disable-xskin was given.
14116 if test "${enable_xskin+set}" = set; then
14117 enableval="$enable_xskin"
14118 case "x$enable_xskin" in xyes|xdynamic) if test "x$with_x" != xyes; then
14119 { { echo "$as_me:$LINENO: error: xskin: --with-x option must be specified" >&5
14120 echo "$as_me: error: xskin: --with-x option must be specified" >&2;}
14121 { (exit 1); exit 1; }; }
14125 case "x$enable_xskin" in
14127 cat >> confdefs.h <<EOF
14135 ENABLE_XSKIN_FALSE='#'
14137 ENABLE_XSKIN_TRUE='#'
14138 ENABLE_XSKIN_FALSE=
14141 INTERFACE_SRCS="$INTERFACE_SRCS xskin_c.c xskin_i.c xskin_loadBMP.c xskin_spectrum.c"
14144 dynamic_targets="$dynamic_targets interface_i.\$(so)"
14145 i_so_libs="$ldflags_x_opt -lX11"
14158 ENABLE_GTK_FALSE='#'
14160 ENABLE_GTK_TRUE='#'
14164 # Check whether --enable-gtk or --disable-gtk was given.
14165 if test "${enable_gtk+set}" = set; then
14166 enableval="$enable_gtk"
14167 case "x$enable_gtk" in xyes|xdynamic)
14168 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
14169 if test "${with_gtk_prefix+set}" = set; then
14170 withval="$with_gtk_prefix"
14171 gtk_config_prefix="$withval"
14173 gtk_config_prefix=""
14176 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
14177 if test "${with_gtk_exec_prefix+set}" = set; then
14178 withval="$with_gtk_exec_prefix"
14179 gtk_config_exec_prefix="$withval"
14181 gtk_config_exec_prefix=""
14183 # Check whether --enable-gtktest or --disable-gtktest was given.
14184 if test "${enable_gtktest+set}" = set; then
14185 enableval="$enable_gtktest"
14195 gtk_config_args="$gtk_config_args gthread"
14200 if test x$gtk_config_exec_prefix != x ; then
14201 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
14202 if test x${GTK_CONFIG+set} != xset ; then
14203 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
14206 if test x$gtk_config_prefix != x ; then
14207 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
14208 if test x${GTK_CONFIG+set} != xset ; then
14209 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
14213 # Extract the first word of "gtk-config", so it can be a program name with args.
14214 set dummy gtk-config; ac_word=$2
14215 echo "$as_me:$LINENO: checking for $ac_word" >&5
14216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14217 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
14218 echo $ECHO_N "(cached) $ECHO_C" >&6
14220 case $GTK_CONFIG in
14222 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
14225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14226 for as_dir in $PATH
14229 test -z "$as_dir" && as_dir=.
14230 for ac_exec_ext in '' $ac_executable_extensions; do
14231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14232 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14239 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
14243 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
14245 if test -n "$GTK_CONFIG"; then
14246 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
14247 echo "${ECHO_T}$GTK_CONFIG" >&6
14249 echo "$as_me:$LINENO: result: no" >&5
14250 echo "${ECHO_T}no" >&6
14253 min_gtk_version=1.1.3
14254 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
14255 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
14257 if test "$GTK_CONFIG" = "no" ; then
14260 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
14261 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
14262 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
14263 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14264 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
14265 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14266 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
14267 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14268 if test "x$enable_gtktest" = "xyes" ; then
14269 ac_save_CFLAGS="$CFLAGS"
14270 ac_save_LIBS="$LIBS"
14271 CFLAGS="$CFLAGS $GTK_CFLAGS"
14272 LIBS="$GTK_LIBS $LIBS"
14274 if test "$cross_compiling" = yes; then
14275 echo $ac_n "cross compiling; assumed OK... $ac_c"
14277 cat >conftest.$ac_ext <<_ACEOF
14278 #line $LINENO "configure"
14281 cat confdefs.h >>conftest.$ac_ext
14282 cat >>conftest.$ac_ext <<_ACEOF
14283 /* end confdefs.h. */
14285 #include <gtk/gtk.h>
14287 #include <stdlib.h>
14292 int major, minor, micro;
14295 system ("touch conf.gtktest");
14297 /* HP/UX 9 (%@#!) writes to sscanf strings */
14298 tmp_version = g_strdup("$min_gtk_version");
14299 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
14300 printf("%s, bad version string\n", "$min_gtk_version");
14304 if ((gtk_major_version != $gtk_config_major_version) ||
14305 (gtk_minor_version != $gtk_config_minor_version) ||
14306 (gtk_micro_version != $gtk_config_micro_version))
14308 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
14309 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
14310 gtk_major_version, gtk_minor_version, gtk_micro_version);
14311 printf ("*** was found! If gtk-config was correct, then it is best\n");
14312 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
14313 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
14314 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
14315 printf("*** required on your system.\n");
14316 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
14317 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
14318 printf("*** before re-running configure\n");
14320 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
14321 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
14322 (gtk_minor_version != GTK_MINOR_VERSION) ||
14323 (gtk_micro_version != GTK_MICRO_VERSION))
14325 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
14326 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
14327 printf("*** library (version %d.%d.%d)\n",
14328 gtk_major_version, gtk_minor_version, gtk_micro_version);
14330 #endif /* defined (GTK_MAJOR_VERSION) ... */
14333 if ((gtk_major_version > major) ||
14334 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
14335 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
14341 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
14342 gtk_major_version, gtk_minor_version, gtk_micro_version);
14343 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
14344 major, minor, micro);
14345 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
14347 printf("*** If you have already installed a sufficiently new version, this error\n");
14348 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
14349 printf("*** being found. The easiest way to fix this is to remove the old version\n");
14350 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
14351 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
14352 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
14353 printf("*** so that the correct libraries are found at run-time))\n");
14360 rm -f conftest$ac_exeext
14361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14362 (eval $ac_link) 2>&5
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367 (eval $ac_try) 2>&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; }; then
14373 echo "$as_me: program exited with status $ac_status" >&5
14374 echo "$as_me: failed program was:" >&5
14375 sed 's/^/| /' conftest.$ac_ext >&5
14377 ( exit $ac_status )
14380 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14382 CFLAGS="$ac_save_CFLAGS"
14383 LIBS="$ac_save_LIBS"
14386 if test "x$no_gtk" = x ; then
14387 echo "$as_me:$LINENO: result: yes" >&5
14388 echo "${ECHO_T}yes" >&6
14391 echo "$as_me:$LINENO: result: no" >&5
14392 echo "${ECHO_T}no" >&6
14393 if test "$GTK_CONFIG" = "no" ; then
14394 echo "*** The gtk-config script installed by GTK could not be found"
14395 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
14396 echo "*** your path, or set the GTK_CONFIG environment variable to the"
14397 echo "*** full path to gtk-config."
14399 if test -f conf.gtktest ; then
14402 echo "*** Could not run GTK test program, checking why..."
14403 CFLAGS="$CFLAGS $GTK_CFLAGS"
14404 LIBS="$LIBS $GTK_LIBS"
14405 cat >conftest.$ac_ext <<_ACEOF
14406 #line $LINENO "configure"
14409 cat confdefs.h >>conftest.$ac_ext
14410 cat >>conftest.$ac_ext <<_ACEOF
14411 /* end confdefs.h. */
14413 #include <gtk/gtk.h>
14419 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
14424 rm -f conftest.$ac_objext conftest$ac_exeext
14425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14426 (eval $ac_link) 2>&5
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); } &&
14430 { ac_try='test -s conftest$ac_exeext'
14431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14432 (eval $ac_try) 2>&5
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); }; }; then
14436 echo "*** The test program compiled, but did not run. This usually means"
14437 echo "*** that the run-time linker is not finding GTK or finding the wrong"
14438 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
14439 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14440 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14441 echo "*** is required on your system"
14443 echo "*** If you have an old version installed, it is best to remove it, although"
14444 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14446 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
14447 echo "*** came with the system with the command"
14449 echo "*** rpm --erase --nodeps gtk gtk-devel"
14451 echo "$as_me: failed program was:" >&5
14452 sed 's/^/| /' conftest.$ac_ext >&5
14454 echo "*** The test program failed to compile or link. See the file config.log for the"
14455 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
14456 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
14457 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
14459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14460 CFLAGS="$ac_save_CFLAGS"
14461 LIBS="$ac_save_LIBS"
14473 case "x$enable_gtk" in
14475 cat >> confdefs.h <<EOF
14483 ENABLE_GTK_FALSE='#'
14485 ENABLE_GTK_TRUE='#'
14489 LIBS="$LIBS $GTK_LIBS"
14490 for f in $GTK_CFLAGS; do
14492 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
14493 *) CFLAGS="$CPPFLAGS $f" ;;
14497 INTERFACE_SRCS="$INTERFACE_SRCS gtk_c.c gtk_i.c gtk_p.c"
14501 dynamic_targets="$dynamic_targets interface_g.\$(so)"
14502 if test "x$GCC" = xyes; then
14503 for i in $GTK_LIBS; do
14506 *) g_so_libs="$g_so_libs $i" ;;
14510 g_so_libs="$GTK_LIBS"
14512 for f in $GTK_CFLAGS; do
14514 .-I?*|.-D?*) CPPFLAGS="$CPPFLAGS $f" ;;
14515 *) CFLAGS="$CPPFLAGS $f" ;;
14530 ENABLE_SERVER_TRUE=
14531 ENABLE_SERVER_FALSE='#'
14533 ENABLE_SERVER_TRUE='#'
14534 ENABLE_SERVER_FALSE=
14537 # Check whether --enable-server or --disable-server was given.
14538 if test "${enable_server+set}" = set; then
14539 enableval="$enable_server"
14540 case "x$enable_server" in xyes|xdynamic) ;; esac
14542 case "x$enable_server" in
14544 cat >> confdefs.h <<EOF
14545 #define IA_SERVER 1
14551 ENABLE_SERVER_TRUE=
14552 ENABLE_SERVER_FALSE='#'
14554 ENABLE_SERVER_TRUE='#'
14555 ENABLE_SERVER_FALSE=
14558 INTERFACE_SRCS="$INTERFACE_SRCS server_c.c"
14560 for ac_header in sys/soundcard.h
14562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14564 echo "$as_me:$LINENO: checking for $ac_header" >&5
14565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14567 echo $ECHO_N "(cached) $ECHO_C" >&6
14569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14572 # Is the header compilable?
14573 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14575 cat >conftest.$ac_ext <<_ACEOF
14576 #line $LINENO "configure"
14579 cat confdefs.h >>conftest.$ac_ext
14580 cat >>conftest.$ac_ext <<_ACEOF
14581 /* end confdefs.h. */
14582 $ac_includes_default
14583 #include <$ac_header>
14585 rm -f conftest.$ac_objext
14586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14587 (eval $ac_compile) 2>&5
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); } &&
14591 { ac_try='test -s conftest.$ac_objext'
14592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14593 (eval $ac_try) 2>&5
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); }; }; then
14597 ac_header_compiler=yes
14599 echo "$as_me: failed program was:" >&5
14600 sed 's/^/| /' conftest.$ac_ext >&5
14602 ac_header_compiler=no
14604 rm -f conftest.$ac_objext conftest.$ac_ext
14605 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14606 echo "${ECHO_T}$ac_header_compiler" >&6
14608 # Is the header present?
14609 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14610 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14611 cat >conftest.$ac_ext <<_ACEOF
14612 #line $LINENO "configure"
14615 cat confdefs.h >>conftest.$ac_ext
14616 cat >>conftest.$ac_ext <<_ACEOF
14617 /* end confdefs.h. */
14618 #include <$ac_header>
14620 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14623 grep -v '^ *+' conftest.er1 >conftest.err
14625 cat conftest.err >&5
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); } >/dev/null; then
14628 if test -s conftest.err; then
14629 ac_cpp_err=$ac_c_preproc_warn_flag
14636 if test -z "$ac_cpp_err"; then
14637 ac_header_preproc=yes
14639 echo "$as_me: failed program was:" >&5
14640 sed 's/^/| /' conftest.$ac_ext >&5
14642 ac_header_preproc=no
14644 rm -f conftest.err conftest.$ac_ext
14645 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14646 echo "${ECHO_T}$ac_header_preproc" >&6
14648 # So? What about this header?
14649 case $ac_header_compiler:$ac_header_preproc in
14651 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14652 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14657 ## ------------------------------------ ##
14658 ## Report this to bug-autoconf@gnu.org. ##
14659 ## ------------------------------------ ##
14662 sed "s/^/$as_me: WARNING: /" >&2
14665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14668 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14673 ## ------------------------------------ ##
14674 ## Report this to bug-autoconf@gnu.org. ##
14675 ## ------------------------------------ ##
14678 sed "s/^/$as_me: WARNING: /" >&2
14681 echo "$as_me:$LINENO: checking for $ac_header" >&5
14682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14684 echo $ECHO_N "(cached) $ECHO_C" >&6
14686 eval "$as_ac_Header=$ac_header_preproc"
14688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14693 cat >>confdefs.h <<_ACEOF
14694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14704 dynamic_targets="$dynamic_targets interface_r.\$(so)"
14717 ENABLE_ALSASEQ_TRUE=
14718 ENABLE_ALSASEQ_FALSE='#'
14720 ENABLE_ALSASEQ_TRUE='#'
14721 ENABLE_ALSASEQ_FALSE=
14724 # Check whether --enable-alsaseq or --disable-alsaseq was given.
14725 if test "${enable_alsaseq+set}" = set; then
14726 enableval="$enable_alsaseq"
14727 case "x$enable_alsaseq" in xyes|xdynamic) ;; esac
14729 case "x$enable_alsaseq" in
14731 cat >> confdefs.h <<EOF
14732 #define IA_ALSASEQ 1
14738 ENABLE_ALSASEQ_TRUE=
14739 ENABLE_ALSASEQ_FALSE='#'
14741 ENABLE_ALSASEQ_TRUE='#'
14742 ENABLE_ALSASEQ_FALSE=
14745 INTERFACE_SRCS="$INTERFACE_SRCS alsaseq_c.c"
14747 for ac_header in sys/asoundlib.h
14749 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14751 echo "$as_me:$LINENO: checking for $ac_header" >&5
14752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14754 echo $ECHO_N "(cached) $ECHO_C" >&6
14756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14759 # Is the header compilable?
14760 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14761 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14762 cat >conftest.$ac_ext <<_ACEOF
14763 #line $LINENO "configure"
14766 cat confdefs.h >>conftest.$ac_ext
14767 cat >>conftest.$ac_ext <<_ACEOF
14768 /* end confdefs.h. */
14769 $ac_includes_default
14770 #include <$ac_header>
14772 rm -f conftest.$ac_objext
14773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14774 (eval $ac_compile) 2>&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); } &&
14778 { ac_try='test -s conftest.$ac_objext'
14779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14780 (eval $ac_try) 2>&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); }; }; then
14784 ac_header_compiler=yes
14786 echo "$as_me: failed program was:" >&5
14787 sed 's/^/| /' conftest.$ac_ext >&5
14789 ac_header_compiler=no
14791 rm -f conftest.$ac_objext conftest.$ac_ext
14792 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14793 echo "${ECHO_T}$ac_header_compiler" >&6
14795 # Is the header present?
14796 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14797 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14798 cat >conftest.$ac_ext <<_ACEOF
14799 #line $LINENO "configure"
14802 cat confdefs.h >>conftest.$ac_ext
14803 cat >>conftest.$ac_ext <<_ACEOF
14804 /* end confdefs.h. */
14805 #include <$ac_header>
14807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14808 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14810 grep -v '^ *+' conftest.er1 >conftest.err
14812 cat conftest.err >&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); } >/dev/null; then
14815 if test -s conftest.err; then
14816 ac_cpp_err=$ac_c_preproc_warn_flag
14823 if test -z "$ac_cpp_err"; then
14824 ac_header_preproc=yes
14826 echo "$as_me: failed program was:" >&5
14827 sed 's/^/| /' conftest.$ac_ext >&5
14829 ac_header_preproc=no
14831 rm -f conftest.err conftest.$ac_ext
14832 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14833 echo "${ECHO_T}$ac_header_preproc" >&6
14835 # So? What about this header?
14836 case $ac_header_compiler:$ac_header_preproc in
14838 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14839 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14844 ## ------------------------------------ ##
14845 ## Report this to bug-autoconf@gnu.org. ##
14846 ## ------------------------------------ ##
14849 sed "s/^/$as_me: WARNING: /" >&2
14852 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14853 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14854 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14855 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14857 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14860 ## ------------------------------------ ##
14861 ## Report this to bug-autoconf@gnu.org. ##
14862 ## ------------------------------------ ##
14865 sed "s/^/$as_me: WARNING: /" >&2
14868 echo "$as_me:$LINENO: checking for $ac_header" >&5
14869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14871 echo $ECHO_N "(cached) $ECHO_C" >&6
14873 eval "$as_ac_Header=$ac_header_preproc"
14875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14880 cat >>confdefs.h <<_ACEOF
14881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14891 dynamic_targets="$dynamic_targets interface_A.\$(so)"
14904 ENABLE_WINSYN_TRUE=
14905 ENABLE_WINSYN_FALSE='#'
14907 ENABLE_WINSYN_TRUE='#'
14908 ENABLE_WINSYN_FALSE=
14911 # Check whether --enable-winsyn or --disable-winsyn was given.
14912 if test "${enable_winsyn+set}" = set; then
14913 enableval="$enable_winsyn"
14914 case "x$enable_winsyn" in xyes|xdynamic) ;; esac
14916 case "x$enable_winsyn" in
14918 cat >> confdefs.h <<EOF
14919 #define IA_WINSYN 1
14925 ENABLE_WINSYN_TRUE=
14926 ENABLE_WINSYN_FALSE='#'
14928 ENABLE_WINSYN_TRUE='#'
14929 ENABLE_WINSYN_FALSE=
14932 INTERFACE_SRCS="$INTERFACE_SRCS winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
14935 dynamic_targets="$dynamic_targets interface_W.\$(so)"
14948 ENABLE_PORTMIDISYN_TRUE=
14949 ENABLE_PORTMIDISYN_FALSE='#'
14951 ENABLE_PORTMIDISYN_TRUE='#'
14952 ENABLE_PORTMIDISYN_FALSE=
14955 # Check whether --enable-portmidisyn or --disable-portmidisyn was given.
14956 if test "${enable_portmidisyn+set}" = set; then
14957 enableval="$enable_portmidisyn"
14958 case "x$enable_portmidisyn" in xyes|xdynamic) ;; esac
14960 case "x$enable_portmidisyn" in
14962 cat >> confdefs.h <<EOF
14963 #define IA_PORTMIDISYN 1
14969 ENABLE_PORTMIDISYN_TRUE=
14970 ENABLE_PORTMIDISYN_FALSE='#'
14972 ENABLE_PORTMIDISYN_TRUE='#'
14973 ENABLE_PORTMIDISYN_FALSE=
14976 INTERFACE_SRCS="$INTERFACE_SRCS portmidisyn_c.c rtsyn_common.c rtsyn_portmidi.c"
14979 dynamic_targets="$dynamic_targets interface_P.\$(so)"
14992 ENABLE_W32G_SYN_TRUE=
14993 ENABLE_W32G_SYN_FALSE='#'
14995 ENABLE_W32G_SYN_TRUE='#'
14996 ENABLE_W32G_SYN_FALSE=
14999 # Check whether --enable-winsyng or --disable-winsyng was given.
15000 if test "${enable_winsyng+set}" = set; then
15001 enableval="$enable_winsyng"
15002 case "x$enable_winsyng" in xyes|xdynamic) ;; esac
15004 case "x$enable_winsyng" in
15006 cat >> confdefs.h <<EOF
15007 #define IA_W32G_SYN 1
15013 ENABLE_W32G_SYN_TRUE=
15014 ENABLE_W32G_SYN_FALSE='#'
15016 ENABLE_W32G_SYN_TRUE='#'
15017 ENABLE_W32G_SYN_FALSE=
15020 lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
15021 lib_user32_opt='-luser32'
15022 LDFLAGS="-mwindows $LDFLAGS"
15023 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"
15027 dynamic_targets="$dynamic_targets interface_W.\$(so)"
15041 ENABLE_W32GUI_TRUE=
15042 ENABLE_W32GUI_FALSE='#'
15044 ENABLE_W32GUI_TRUE='#'
15045 ENABLE_W32GUI_FALSE=
15048 # Check whether --enable-w32gui or --disable-w32gui was given.
15049 if test "${enable_w32gui+set}" = set; then
15050 enableval="$enable_w32gui"
15051 case "x$enable_w32gui" in xyes|xdynamic) ;; esac
15053 case "x$enable_w32gui" in
15055 cat >> confdefs.h <<EOF
15056 #define IA_W32GUI 1
15062 ENABLE_W32GUI_TRUE=
15063 ENABLE_W32GUI_FALSE='#'
15065 ENABLE_W32GUI_TRUE='#'
15066 ENABLE_W32GUI_FALSE=
15069 lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
15070 lib_user32_opt='-luser32'
15071 LDFLAGS="-mwindows $LDFLAGS"
15072 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"
15076 dynamic_targets="$dynamic_targets interface_w.\$(so)"
15089 ENABLE_PLUGIN_TRUE=
15090 ENABLE_PLUGIN_FALSE='#'
15092 ENABLE_PLUGIN_TRUE='#'
15093 ENABLE_PLUGIN_FALSE=
15096 # Check whether --enable-ump or --disable-ump was given.
15097 if test "${enable_ump+set}" = set; then
15098 enableval="$enable_ump"
15099 case "x$enable_ump" in xyes|xdynamic) if test ! -d ump; then
15100 { { echo "$as_me:$LINENO: error: UMP Package is not exists. Can't configure it." >&5
15101 echo "$as_me: error: UMP Package is not exists. Can't configure it." >&2;}
15102 { (exit 1); exit 1; }; }
15104 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
15105 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
15106 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
15107 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
15108 echo $ECHO_N "(cached) $ECHO_C" >&6
15110 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
15111 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
15113 # Is the header compilable?
15114 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
15115 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
15116 cat >conftest.$ac_ext <<_ACEOF
15117 #line $LINENO "configure"
15120 cat confdefs.h >>conftest.$ac_ext
15121 cat >>conftest.$ac_ext <<_ACEOF
15122 /* end confdefs.h. */
15123 $ac_includes_default
15124 #include <X11/xpm.h>
15126 rm -f conftest.$ac_objext
15127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15128 (eval $ac_compile) 2>&5
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); } &&
15132 { ac_try='test -s conftest.$ac_objext'
15133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15134 (eval $ac_try) 2>&5
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); }; }; then
15138 ac_header_compiler=yes
15140 echo "$as_me: failed program was:" >&5
15141 sed 's/^/| /' conftest.$ac_ext >&5
15143 ac_header_compiler=no
15145 rm -f conftest.$ac_objext conftest.$ac_ext
15146 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15147 echo "${ECHO_T}$ac_header_compiler" >&6
15149 # Is the header present?
15150 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
15151 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
15152 cat >conftest.$ac_ext <<_ACEOF
15153 #line $LINENO "configure"
15156 cat confdefs.h >>conftest.$ac_ext
15157 cat >>conftest.$ac_ext <<_ACEOF
15158 /* end confdefs.h. */
15159 #include <X11/xpm.h>
15161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15164 grep -v '^ *+' conftest.er1 >conftest.err
15166 cat conftest.err >&5
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); } >/dev/null; then
15169 if test -s conftest.err; then
15170 ac_cpp_err=$ac_c_preproc_warn_flag
15177 if test -z "$ac_cpp_err"; then
15178 ac_header_preproc=yes
15180 echo "$as_me: failed program was:" >&5
15181 sed 's/^/| /' conftest.$ac_ext >&5
15183 ac_header_preproc=no
15185 rm -f conftest.err conftest.$ac_ext
15186 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15187 echo "${ECHO_T}$ac_header_preproc" >&6
15189 # So? What about this header?
15190 case $ac_header_compiler:$ac_header_preproc in
15192 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15193 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15194 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
15195 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
15198 ## ------------------------------------ ##
15199 ## Report this to bug-autoconf@gnu.org. ##
15200 ## ------------------------------------ ##
15203 sed "s/^/$as_me: WARNING: /" >&2
15206 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
15207 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
15208 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
15209 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
15210 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
15211 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
15214 ## ------------------------------------ ##
15215 ## Report this to bug-autoconf@gnu.org. ##
15216 ## ------------------------------------ ##
15219 sed "s/^/$as_me: WARNING: /" >&2
15222 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
15223 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
15224 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
15225 echo $ECHO_N "(cached) $ECHO_C" >&6
15227 ac_cv_header_X11_xpm_h=$ac_header_preproc
15229 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
15230 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
15233 if test $ac_cv_header_X11_xpm_h = yes; then
15236 { { echo "$as_me:$LINENO: error: UMP Package needs xpm.h, but could not find it." >&5
15237 echo "$as_me: error: UMP Package needs xpm.h, but could not find it." >&2;}
15238 { (exit 1); exit 1; }; }
15242 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
15243 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
15244 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
15245 echo $ECHO_N "(cached) $ECHO_C" >&6
15247 ac_check_lib_save_LIBS=$LIBS
15249 cat >conftest.$ac_ext <<_ACEOF
15250 #line $LINENO "configure"
15253 cat confdefs.h >>conftest.$ac_ext
15254 cat >>conftest.$ac_ext <<_ACEOF
15255 /* end confdefs.h. */
15257 /* Override any gcc2 internal prototype to avoid an error. */
15261 /* We use char because int might match the return type of a gcc2
15262 builtin and then its argument prototype would still apply. */
15263 char XpmCreatePixmapFromData ();
15267 XpmCreatePixmapFromData ();
15272 rm -f conftest.$ac_objext conftest$ac_exeext
15273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15274 (eval $ac_link) 2>&5
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); } &&
15278 { ac_try='test -s conftest$ac_exeext'
15279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15280 (eval $ac_try) 2>&5
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); }; }; then
15284 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
15286 echo "$as_me: failed program was:" >&5
15287 sed 's/^/| /' conftest.$ac_ext >&5
15289 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
15291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15292 LIBS=$ac_check_lib_save_LIBS
15294 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
15295 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
15296 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
15299 { { echo "$as_me:$LINENO: error: UMP Package needs libXpm.a, but could not find it." >&5
15300 echo "$as_me: error: UMP Package needs libXpm.a, but could not find it." >&2;}
15301 { (exit 1); exit 1; }; }
15304 if test "x$have_xext" = xyes; then
15305 lib_xext_opt=-lXext
15307 if test "x$have_xprelibs" = xyes; then
15308 lib_xprelibs_opt='-lSM -lICE'
15314 case "x$enable_ump" in
15316 cat >> confdefs.h <<EOF
15317 #define IA_PLUGIN 1
15323 ENABLE_PLUGIN_TRUE=
15324 ENABLE_PLUGIN_FALSE='#'
15326 ENABLE_PLUGIN_TRUE='#'
15327 ENABLE_PLUGIN_FALSE=
15333 dynamic_targets="$dynamic_targets interface_p.\$(so)"
15344 # Check whether --enable-offix or --disable-offix was given.
15345 if test "${enable_offix+set}" = set; then
15346 enableval="$enable_offix"
15347 if test "$enableval" = "yes"; then
15348 KEEPCPPFLAGS=$CPPFLAGS
15350 KEEPLDFLAGS=$LDFLAGS
15351 CPPFLAGS="$CPPFLAGS $offix_include_dir"
15352 LDFLAGS="$LDFLAGS $offix_lib_dir"
15353 LIBS="$LIBS $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11"
15354 echo "$as_me:$LINENO: checking for DndInitialize in -lDnd" >&5
15355 echo $ECHO_N "checking for DndInitialize in -lDnd... $ECHO_C" >&6
15356 if test "${ac_cv_lib_Dnd_DndInitialize+set}" = set; then
15357 echo $ECHO_N "(cached) $ECHO_C" >&6
15359 ac_check_lib_save_LIBS=$LIBS
15361 cat >conftest.$ac_ext <<_ACEOF
15362 #line $LINENO "configure"
15365 cat confdefs.h >>conftest.$ac_ext
15366 cat >>conftest.$ac_ext <<_ACEOF
15367 /* end confdefs.h. */
15369 /* Override any gcc2 internal prototype to avoid an error. */
15373 /* We use char because int might match the return type of a gcc2
15374 builtin and then its argument prototype would still apply. */
15375 char DndInitialize ();
15384 rm -f conftest.$ac_objext conftest$ac_exeext
15385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15386 (eval $ac_link) 2>&5
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); } &&
15390 { ac_try='test -s conftest$ac_exeext'
15391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15392 (eval $ac_try) 2>&5
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); }; }; then
15396 ac_cv_lib_Dnd_DndInitialize=yes
15398 echo "$as_me: failed program was:" >&5
15399 sed 's/^/| /' conftest.$ac_ext >&5
15401 ac_cv_lib_Dnd_DndInitialize=no
15403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15404 LIBS=$ac_check_lib_save_LIBS
15406 echo "$as_me:$LINENO: result: $ac_cv_lib_Dnd_DndInitialize" >&5
15407 echo "${ECHO_T}$ac_cv_lib_Dnd_DndInitialize" >&6
15408 if test $ac_cv_lib_Dnd_DndInitialize = yes; then
15411 lib_offix_opt="-lDnd"
15413 cat >>confdefs.h <<\_ACEOF
15419 LDFLAGS=$KEEPLDFLAGS
15420 CPPFLAGS=$KEEPCPPFLAGS
15429 # Check whether --enable-network or --disable-network was given.
15430 if test "${enable_network+set}" = set; then
15431 enableval="$enable_network"
15432 if test "$enableval" = "yes"; then
15434 cat >>confdefs.h <<\_ACEOF
15435 #define SUPPORT_SOCKET 1
15442 if test "x$enable_network" = "xyes"; then
15443 ENABLE_NETWORK_TRUE=
15444 ENABLE_NETWORK_FALSE='#'
15446 ENABLE_NETWORK_TRUE='#'
15447 ENABLE_NETWORK_FALSE=
15451 # Check whether --enable-spectrogram or --disable-spectrogram was given.
15452 if test "${enable_spectrogram+set}" = set; then
15453 enableval="$enable_spectrogram"
15454 if test "$enableval" = "yes"; then
15455 if test "x$with_x" != xyes; then
15456 { { echo "$as_me:$LINENO: error: spectrogram: --with-x option must be specified" >&5
15457 echo "$as_me: error: spectrogram: --with-x option must be specified" >&2;}
15458 { (exit 1); exit 1; }; }
15461 cat >>confdefs.h <<\_ACEOF
15462 #define SUPPORT_SOUNDSPEC 1
15469 if test "x$enable_spectrogram" = "xyes"; then
15470 ENABLE_SOUND_SPEC_TRUE=
15471 ENABLE_SOUND_SPEC_FALSE='#'
15473 ENABLE_SOUND_SPEC_TRUE='#'
15474 ENABLE_SOUND_SPEC_FALSE=
15478 # Check whether --enable-spline or --disable-spline was given.
15479 if test "${enable_spline+set}" = set; then
15480 enableval="$enable_spline"
15481 case "x$enableval" in
15484 cat >>confdefs.h <<\_ACEOF
15485 #define LINEAR_INTERPOLATION 1
15491 cat >>confdefs.h <<\_ACEOF
15492 #define CSPLINE_INTERPOLATION 1
15498 cat >>confdefs.h <<\_ACEOF
15499 #define LAGRANGE_INTERPOLATION 1
15505 cat >>confdefs.h <<\_ACEOF
15506 #define NEWTON_INTERPOLATION 1
15512 cat >>confdefs.h <<\_ACEOF
15513 #define GAUSS_INTERPOLATION 1
15519 cat >>confdefs.h <<\_ACEOF
15520 #define NO_INTERPOLATION 1
15525 { { echo "$as_me:$LINENO: error: Invalid method of --enable-spline" >&5
15526 echo "$as_me: error: Invalid method of --enable-spline" >&2;}
15527 { (exit 1); exit 1; }; }
15532 # Check whether --enable-wrd or --disable-wrd was given.
15533 if test "${enable_wrd+set}" = set; then
15534 enableval="$enable_wrd"
15535 if test "$enableval" = "yes"; then
15536 if test "x$with_x" != xyes; then
15537 { { echo "$as_me:$LINENO: error: wrd: --with-x option must be specified" >&5
15538 echo "$as_me: error: wrd: --with-x option must be specified" >&2;}
15539 { (exit 1); exit 1; }; }
15542 cat >>confdefs.h <<\_ACEOF
15546 enable_sherry_wrd=yes
15547 echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
15548 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
15549 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
15550 echo $ECHO_N "(cached) $ECHO_C" >&6
15552 ac_check_lib_save_LIBS=$LIBS
15554 cat >conftest.$ac_ext <<_ACEOF
15555 #line $LINENO "configure"
15558 cat confdefs.h >>conftest.$ac_ext
15559 cat >>conftest.$ac_ext <<_ACEOF
15560 /* end confdefs.h. */
15562 /* Override any gcc2 internal prototype to avoid an error. */
15566 /* We use char because int might match the return type of a gcc2
15567 builtin and then its argument prototype would still apply. */
15568 char zlibVersion ();
15577 rm -f conftest.$ac_objext conftest$ac_exeext
15578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15579 (eval $ac_link) 2>&5
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); } &&
15583 { ac_try='test -s conftest$ac_exeext'
15584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15585 (eval $ac_try) 2>&5
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); }; }; then
15589 ac_cv_lib_z_zlibVersion=yes
15591 echo "$as_me: failed program was:" >&5
15592 sed 's/^/| /' conftest.$ac_ext >&5
15594 ac_cv_lib_z_zlibVersion=no
15596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15597 LIBS=$ac_check_lib_save_LIBS
15599 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
15600 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
15601 if test $ac_cv_lib_z_zlibVersion = yes; then
15604 enable_sherry_wrd=no
15607 if test "${ac_cv_header_png_h+set}" = set; then
15608 echo "$as_me:$LINENO: checking for png.h" >&5
15609 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
15610 if test "${ac_cv_header_png_h+set}" = set; then
15611 echo $ECHO_N "(cached) $ECHO_C" >&6
15613 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
15614 echo "${ECHO_T}$ac_cv_header_png_h" >&6
15616 # Is the header compilable?
15617 echo "$as_me:$LINENO: checking png.h usability" >&5
15618 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
15619 cat >conftest.$ac_ext <<_ACEOF
15620 #line $LINENO "configure"
15623 cat confdefs.h >>conftest.$ac_ext
15624 cat >>conftest.$ac_ext <<_ACEOF
15625 /* end confdefs.h. */
15626 $ac_includes_default
15629 rm -f conftest.$ac_objext
15630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15631 (eval $ac_compile) 2>&5
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); } &&
15635 { ac_try='test -s conftest.$ac_objext'
15636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15637 (eval $ac_try) 2>&5
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); }; }; then
15641 ac_header_compiler=yes
15643 echo "$as_me: failed program was:" >&5
15644 sed 's/^/| /' conftest.$ac_ext >&5
15646 ac_header_compiler=no
15648 rm -f conftest.$ac_objext conftest.$ac_ext
15649 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15650 echo "${ECHO_T}$ac_header_compiler" >&6
15652 # Is the header present?
15653 echo "$as_me:$LINENO: checking png.h presence" >&5
15654 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
15655 cat >conftest.$ac_ext <<_ACEOF
15656 #line $LINENO "configure"
15659 cat confdefs.h >>conftest.$ac_ext
15660 cat >>conftest.$ac_ext <<_ACEOF
15661 /* end confdefs.h. */
15664 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15665 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15667 grep -v '^ *+' conftest.er1 >conftest.err
15669 cat conftest.err >&5
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); } >/dev/null; then
15672 if test -s conftest.err; then
15673 ac_cpp_err=$ac_c_preproc_warn_flag
15680 if test -z "$ac_cpp_err"; then
15681 ac_header_preproc=yes
15683 echo "$as_me: failed program was:" >&5
15684 sed 's/^/| /' conftest.$ac_ext >&5
15686 ac_header_preproc=no
15688 rm -f conftest.err conftest.$ac_ext
15689 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15690 echo "${ECHO_T}$ac_header_preproc" >&6
15692 # So? What about this header?
15693 case $ac_header_compiler:$ac_header_preproc in
15695 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
15696 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15697 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
15698 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
15701 ## ------------------------------------ ##
15702 ## Report this to bug-autoconf@gnu.org. ##
15703 ## ------------------------------------ ##
15706 sed "s/^/$as_me: WARNING: /" >&2
15709 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
15710 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
15711 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
15712 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
15713 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
15714 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
15717 ## ------------------------------------ ##
15718 ## Report this to bug-autoconf@gnu.org. ##
15719 ## ------------------------------------ ##
15722 sed "s/^/$as_me: WARNING: /" >&2
15725 echo "$as_me:$LINENO: checking for png.h" >&5
15726 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
15727 if test "${ac_cv_header_png_h+set}" = set; then
15728 echo $ECHO_N "(cached) $ECHO_C" >&6
15730 ac_cv_header_png_h=$ac_header_preproc
15732 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
15733 echo "${ECHO_T}$ac_cv_header_png_h" >&6
15736 if test $ac_cv_header_png_h = yes; then
15739 enable_sherry_wrd=no
15743 echo "$as_me:$LINENO: checking for png_init_io in -lpng" >&5
15744 echo $ECHO_N "checking for png_init_io in -lpng... $ECHO_C" >&6
15745 if test "${ac_cv_lib_png_png_init_io+set}" = set; then
15746 echo $ECHO_N "(cached) $ECHO_C" >&6
15748 ac_check_lib_save_LIBS=$LIBS
15749 LIBS="-lpng -lz $LIBS"
15750 cat >conftest.$ac_ext <<_ACEOF
15751 #line $LINENO "configure"
15754 cat confdefs.h >>conftest.$ac_ext
15755 cat >>conftest.$ac_ext <<_ACEOF
15756 /* end confdefs.h. */
15758 /* Override any gcc2 internal prototype to avoid an error. */
15762 /* We use char because int might match the return type of a gcc2
15763 builtin and then its argument prototype would still apply. */
15764 char png_init_io ();
15773 rm -f conftest.$ac_objext conftest$ac_exeext
15774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15775 (eval $ac_link) 2>&5
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); } &&
15779 { ac_try='test -s conftest$ac_exeext'
15780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15781 (eval $ac_try) 2>&5
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); }; }; then
15785 ac_cv_lib_png_png_init_io=yes
15787 echo "$as_me: failed program was:" >&5
15788 sed 's/^/| /' conftest.$ac_ext >&5
15790 ac_cv_lib_png_png_init_io=no
15792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15793 LIBS=$ac_check_lib_save_LIBS
15795 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_init_io" >&5
15796 echo "${ECHO_T}$ac_cv_lib_png_png_init_io" >&6
15797 if test $ac_cv_lib_png_png_init_io = yes; then
15800 enable_sherry_wrd=no
15803 if test "$enable_sherry_wrd" = yes; then
15805 cat >>confdefs.h <<\_ACEOF
15806 #define ENABLE_SHERRY 1
15812 { echo "$as_me:$LINENO: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&5
15813 echo "$as_me: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&2;}
15815 if test "x$have_xext" = xyes; then
15816 lib_xext_opt=-lXext
15829 if test "x$enable_wrd" = "xyes"; then
15831 ENABLE_WRD_FALSE='#'
15833 ENABLE_WRD_TRUE='#'
15840 if test "x$CYGNUS" = xyes; then
15850 if test "x$MINGW" = xyes; then
15860 if test "x$W32READDIR" = "xyes"; then
15862 W32READDIR_FALSE='#'
15864 W32READDIR_TRUE='#'
15869 rm -f wordtmp >/dev/null 2>&1
15871 for f in $LDFLAGS; do
15872 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
15875 echo $f >>wordtmp; val="$val $f"
15880 rm -f wordtmp >/dev/null 2>&1
15882 rm -f wordtmp >/dev/null 2>&1
15884 for f in $SHLDFLAGS; do
15885 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
15888 echo $f >>wordtmp; val="$val $f"
15893 rm -f wordtmp >/dev/null 2>&1
15895 rm -f wordtmp >/dev/null 2>&1
15897 for f in $EXTRACFLAGS $CFLAGS; do
15898 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
15901 echo $f >>wordtmp; val="$val $f"
15906 rm -f wordtmp >/dev/null 2>&1
15908 rm -f wordtmp >/dev/null 2>&1
15910 for f in $CPPFLAGS $EXTRADEFS; do
15911 if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
15914 echo $f >>wordtmp; val="$val $f"
15919 rm -f wordtmp >/dev/null 2>&1
15922 if test "x$oss_device" != x; then
15924 cat >>confdefs.h <<_ACEOF
15925 #define OSS_DEVICE "$oss_device"
15930 if test "x$TIMIDITY_OUTPUT_ID" != x; then
15932 cat >>confdefs.h <<_ACEOF
15933 #define TIMIDITY_OUTPUT_ID "$TIMIDITY_OUTPUT_ID"
15938 if test "x$with_x" = xyes; then
15939 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/"`
15941 LIBS="$LIBS $lib_dl_opt $lib_png_opt $lib_zip_opt $lib_user32_opt $lib_w32gui_opt $EXTRALIBS"
15942 SHLD="$SHLD $SHLDFLAGS"
15962 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"
15964 cat >confcache <<\_ACEOF
15965 # This file is a shell script that caches the results of configure
15966 # tests run on this system so they can be shared between configure
15967 # scripts and configure runs, see configure's option --config-cache.
15968 # It is not useful on other systems. If it contains results you don't
15969 # want to keep, you may remove or edit it.
15971 # config.status only pays attention to the cache file if you give it
15972 # the --recheck option to rerun configure.
15974 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15975 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15976 # following values.
15980 # The following way of writing the cache mishandles newlines in values,
15981 # but we know of no workaround that is simple, portable, and efficient.
15982 # So, don't put newlines in cache variables' values.
15983 # Ultrix sh set writes to stderr and can't be redirected directly,
15984 # and sets the high bit in the cache file unless we assign to the vars.
15987 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15989 # `set' does not quote correctly, so add quotes (double-quote
15990 # substitution turns \\\\ into \\, and sed turns \\ into \).
15993 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15996 # `set' quotes correctly as required by POSIX, so do not add quotes.
15998 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16005 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16007 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16009 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16010 if test -w $cache_file; then
16011 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16012 cat confcache >$cache_file
16014 echo "not updating unwritable cache $cache_file"
16019 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16020 # Let make expand exec_prefix.
16021 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16023 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16024 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16025 # trailing colons and then remove the whole line if VPATH becomes empty
16026 # (actually we leave an empty line to preserve line numbers).
16027 if test "x$srcdir" = x.; then
16028 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16029 s/:*\$(srcdir):*/:/;
16030 s/:*\${srcdir}:*/:/;
16032 s/^\([^=]*=[ ]*\):*/\1/;
16038 DEFS=-DHAVE_CONFIG_H
16042 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16043 # 1. Remove the extension, and $U if already installed.
16044 ac_i=`echo "$ac_i" |
16045 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16047 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16048 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16050 LIBOBJS=$ac_libobjs
16052 LTLIBOBJS=$ac_ltlibobjs
16055 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16056 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16057 Usually this means the macro was only invoked conditionally." >&5
16058 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16059 Usually this means the macro was only invoked conditionally." >&2;}
16060 { (exit 1); exit 1; }; }
16062 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16063 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16064 Usually this means the macro was only invoked conditionally." >&5
16065 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16066 Usually this means the macro was only invoked conditionally." >&2;}
16067 { (exit 1); exit 1; }; }
16069 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16070 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16071 Usually this means the macro was only invoked conditionally." >&5
16072 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16073 Usually this means the macro was only invoked conditionally." >&2;}
16074 { (exit 1); exit 1; }; }
16076 if test -z "${NEEDDLOPEN_TRUE}" && test -z "${NEEDDLOPEN_FALSE}"; then
16077 { { echo "$as_me:$LINENO: error: conditional \"NEEDDLOPEN\" was never defined.
16078 Usually this means the macro was only invoked conditionally." >&5
16079 echo "$as_me: error: conditional \"NEEDDLOPEN\" was never defined.
16080 Usually this means the macro was only invoked conditionally." >&2;}
16081 { (exit 1); exit 1; }; }
16083 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
16084 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
16085 Usually this means the macro was only invoked conditionally." >&5
16086 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
16087 Usually this means the macro was only invoked conditionally." >&2;}
16088 { (exit 1); exit 1; }; }
16090 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
16091 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
16092 Usually this means the macro was only invoked conditionally." >&5
16093 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
16094 Usually this means the macro was only invoked conditionally." >&2;}
16095 { (exit 1); exit 1; }; }
16097 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
16098 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
16099 Usually this means the macro was only invoked conditionally." >&5
16100 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
16101 Usually this means the macro was only invoked conditionally." >&2;}
16102 { (exit 1); exit 1; }; }
16104 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
16105 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
16106 Usually this means the macro was only invoked conditionally." >&5
16107 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
16108 Usually this means the macro was only invoked conditionally." >&2;}
16109 { (exit 1); exit 1; }; }
16111 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
16112 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
16113 Usually this means the macro was only invoked conditionally." >&5
16114 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
16115 Usually this means the macro was only invoked conditionally." >&2;}
16116 { (exit 1); exit 1; }; }
16118 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
16119 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
16120 Usually this means the macro was only invoked conditionally." >&5
16121 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
16122 Usually this means the macro was only invoked conditionally." >&2;}
16123 { (exit 1); exit 1; }; }
16125 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
16126 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
16127 Usually this means the macro was only invoked conditionally." >&5
16128 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
16129 Usually this means the macro was only invoked conditionally." >&2;}
16130 { (exit 1); exit 1; }; }
16132 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
16133 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
16134 Usually this means the macro was only invoked conditionally." >&5
16135 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
16136 Usually this means the macro was only invoked conditionally." >&2;}
16137 { (exit 1); exit 1; }; }
16139 if test -z "${ENABLE_DYNAMIC_TCLTK_TRUE}" && test -z "${ENABLE_DYNAMIC_TCLTK_FALSE}"; then
16140 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
16141 Usually this means the macro was only invoked conditionally." >&5
16142 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
16143 Usually this means the macro was only invoked conditionally." >&2;}
16144 { (exit 1); exit 1; }; }
16146 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
16147 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
16148 Usually this means the macro was only invoked conditionally." >&5
16149 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
16150 Usually this means the macro was only invoked conditionally." >&2;}
16151 { (exit 1); exit 1; }; }
16153 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
16154 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
16155 Usually this means the macro was only invoked conditionally." >&5
16156 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
16157 Usually this means the macro was only invoked conditionally." >&2;}
16158 { (exit 1); exit 1; }; }
16160 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
16161 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
16162 Usually this means the macro was only invoked conditionally." >&5
16163 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
16164 Usually this means the macro was only invoked conditionally." >&2;}
16165 { (exit 1); exit 1; }; }
16167 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
16168 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
16169 Usually this means the macro was only invoked conditionally." >&5
16170 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
16171 Usually this means the macro was only invoked conditionally." >&2;}
16172 { (exit 1); exit 1; }; }
16174 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
16175 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
16176 Usually this means the macro was only invoked conditionally." >&5
16177 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
16178 Usually this means the macro was only invoked conditionally." >&2;}
16179 { (exit 1); exit 1; }; }
16181 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
16182 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
16183 Usually this means the macro was only invoked conditionally." >&5
16184 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
16185 Usually this means the macro was only invoked conditionally." >&2;}
16186 { (exit 1); exit 1; }; }
16188 if test -z "${ENABLE_DYNAMIC_XAW_TRUE}" && test -z "${ENABLE_DYNAMIC_XAW_FALSE}"; then
16189 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
16190 Usually this means the macro was only invoked conditionally." >&5
16191 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
16192 Usually this means the macro was only invoked conditionally." >&2;}
16193 { (exit 1); exit 1; }; }
16195 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
16196 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
16197 Usually this means the macro was only invoked conditionally." >&5
16198 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
16199 Usually this means the macro was only invoked conditionally." >&2;}
16200 { (exit 1); exit 1; }; }
16202 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
16203 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
16204 Usually this means the macro was only invoked conditionally." >&5
16205 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
16206 Usually this means the macro was only invoked conditionally." >&2;}
16207 { (exit 1); exit 1; }; }
16209 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
16210 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
16211 Usually this means the macro was only invoked conditionally." >&5
16212 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
16213 Usually this means the macro was only invoked conditionally." >&2;}
16214 { (exit 1); exit 1; }; }
16216 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
16217 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
16218 Usually this means the macro was only invoked conditionally." >&5
16219 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
16220 Usually this means the macro was only invoked conditionally." >&2;}
16221 { (exit 1); exit 1; }; }
16223 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
16224 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
16225 Usually this means the macro was only invoked conditionally." >&5
16226 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
16227 Usually this means the macro was only invoked conditionally." >&2;}
16228 { (exit 1); exit 1; }; }
16230 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
16231 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
16232 Usually this means the macro was only invoked conditionally." >&5
16233 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
16234 Usually this means the macro was only invoked conditionally." >&2;}
16235 { (exit 1); exit 1; }; }
16237 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
16238 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
16239 Usually this means the macro was only invoked conditionally." >&5
16240 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
16241 Usually this means the macro was only invoked conditionally." >&2;}
16242 { (exit 1); exit 1; }; }
16244 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
16245 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
16246 Usually this means the macro was only invoked conditionally." >&5
16247 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
16248 Usually this means the macro was only invoked conditionally." >&2;}
16249 { (exit 1); exit 1; }; }
16251 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
16252 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
16253 Usually this means the macro was only invoked conditionally." >&5
16254 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
16255 Usually this means the macro was only invoked conditionally." >&2;}
16256 { (exit 1); exit 1; }; }
16258 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
16259 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
16260 Usually this means the macro was only invoked conditionally." >&5
16261 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
16262 Usually this means the macro was only invoked conditionally." >&2;}
16263 { (exit 1); exit 1; }; }
16265 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
16266 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
16267 Usually this means the macro was only invoked conditionally." >&5
16268 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
16269 Usually this means the macro was only invoked conditionally." >&2;}
16270 { (exit 1); exit 1; }; }
16272 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
16273 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
16274 Usually this means the macro was only invoked conditionally." >&5
16275 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
16276 Usually this means the macro was only invoked conditionally." >&2;}
16277 { (exit 1); exit 1; }; }
16279 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
16280 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
16281 Usually this means the macro was only invoked conditionally." >&5
16282 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
16283 Usually this means the macro was only invoked conditionally." >&2;}
16284 { (exit 1); exit 1; }; }
16286 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
16287 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
16288 Usually this means the macro was only invoked conditionally." >&5
16289 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
16290 Usually this means the macro was only invoked conditionally." >&2;}
16291 { (exit 1); exit 1; }; }
16293 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
16294 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
16295 Usually this means the macro was only invoked conditionally." >&5
16296 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
16297 Usually this means the macro was only invoked conditionally." >&2;}
16298 { (exit 1); exit 1; }; }
16300 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
16301 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
16302 Usually this means the macro was only invoked conditionally." >&5
16303 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
16304 Usually this means the macro was only invoked conditionally." >&2;}
16305 { (exit 1); exit 1; }; }
16307 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
16308 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
16309 Usually this means the macro was only invoked conditionally." >&5
16310 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
16311 Usually this means the macro was only invoked conditionally." >&2;}
16312 { (exit 1); exit 1; }; }
16314 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
16315 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
16316 Usually this means the macro was only invoked conditionally." >&5
16317 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
16318 Usually this means the macro was only invoked conditionally." >&2;}
16319 { (exit 1); exit 1; }; }
16321 if test -z "${ENABLE_NETWORK_TRUE}" && test -z "${ENABLE_NETWORK_FALSE}"; then
16322 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NETWORK\" was never defined.
16323 Usually this means the macro was only invoked conditionally." >&5
16324 echo "$as_me: error: conditional \"ENABLE_NETWORK\" was never defined.
16325 Usually this means the macro was only invoked conditionally." >&2;}
16326 { (exit 1); exit 1; }; }
16328 if test -z "${ENABLE_SOUND_SPEC_TRUE}" && test -z "${ENABLE_SOUND_SPEC_FALSE}"; then
16329 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
16330 Usually this means the macro was only invoked conditionally." >&5
16331 echo "$as_me: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
16332 Usually this means the macro was only invoked conditionally." >&2;}
16333 { (exit 1); exit 1; }; }
16335 if test -z "${ENABLE_WRD_TRUE}" && test -z "${ENABLE_WRD_FALSE}"; then
16336 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WRD\" was never defined.
16337 Usually this means the macro was only invoked conditionally." >&5
16338 echo "$as_me: error: conditional \"ENABLE_WRD\" was never defined.
16339 Usually this means the macro was only invoked conditionally." >&2;}
16340 { (exit 1); exit 1; }; }
16342 if test -z "${CYGNUS_TRUE}" && test -z "${CYGNUS_FALSE}"; then
16343 { { echo "$as_me:$LINENO: error: conditional \"CYGNUS\" was never defined.
16344 Usually this means the macro was only invoked conditionally." >&5
16345 echo "$as_me: error: conditional \"CYGNUS\" was never defined.
16346 Usually this means the macro was only invoked conditionally." >&2;}
16347 { (exit 1); exit 1; }; }
16349 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
16350 { { echo "$as_me:$LINENO: error: conditional \"MINGW\" was never defined.
16351 Usually this means the macro was only invoked conditionally." >&5
16352 echo "$as_me: error: conditional \"MINGW\" was never defined.
16353 Usually this means the macro was only invoked conditionally." >&2;}
16354 { (exit 1); exit 1; }; }
16356 if test -z "${W32READDIR_TRUE}" && test -z "${W32READDIR_FALSE}"; then
16357 { { echo "$as_me:$LINENO: error: conditional \"W32READDIR\" was never defined.
16358 Usually this means the macro was only invoked conditionally." >&5
16359 echo "$as_me: error: conditional \"W32READDIR\" was never defined.
16360 Usually this means the macro was only invoked conditionally." >&2;}
16361 { (exit 1); exit 1; }; }
16364 : ${CONFIG_STATUS=./config.status}
16365 ac_clean_files_save=$ac_clean_files
16366 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16367 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16368 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16369 cat >$CONFIG_STATUS <<_ACEOF
16371 # Generated by $as_me.
16372 # Run this file to recreate the current configuration.
16373 # Compiler output produced by configure, useful for debugging
16374 # configure, is in config.log if it exists.
16377 ac_cs_recheck=false
16379 SHELL=\${CONFIG_SHELL-$SHELL}
16382 cat >>$CONFIG_STATUS <<\_ACEOF
16383 ## --------------------- ##
16384 ## M4sh Initialization. ##
16385 ## --------------------- ##
16387 # Be Bourne compatible
16388 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16391 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16392 # is contrary to our usage. Disable this feature.
16393 alias -g '${1+"$@"}'='"$@"'
16394 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16398 # Support unset when possible.
16399 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16406 # Work around bugs in pre-3.0 UWIN ksh.
16407 $as_unset ENV MAIL MAILPATH
16414 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16415 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16416 LC_TELEPHONE LC_TIME
16418 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
16419 eval $as_var=C; export $as_var
16425 # Required to use basename.
16426 if expr a : '\(a\)' >/dev/null 2>&1; then
16432 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16433 as_basename=basename
16439 # Name of the executable.
16440 as_me=`$as_basename "$0" ||
16441 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16442 X"$0" : 'X\(//\)$' \| \
16443 X"$0" : 'X\(/\)$' \| \
16444 . : '\(.\)' 2>/dev/null ||
16446 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16447 /^X\/\(\/\/\)$/{ s//\1/; q; }
16448 /^X\/\(\/\).*/{ s//\1/; q; }
16452 # PATH needs CR, and LINENO needs CR and PATH.
16453 # Avoid depending upon Character Ranges.
16454 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16455 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16456 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16457 as_cr_digits='0123456789'
16458 as_cr_alnum=$as_cr_Letters$as_cr_digits
16460 # The user is always right.
16461 if test "${PATH_SEPARATOR+set}" != set; then
16462 echo "#! /bin/sh" >conf$$.sh
16463 echo "exit 0" >>conf$$.sh
16465 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16474 as_lineno_1=$LINENO
16475 as_lineno_2=$LINENO
16476 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16477 test "x$as_lineno_1" != "x$as_lineno_2" &&
16478 test "x$as_lineno_3" = "x$as_lineno_2" || {
16479 # Find who we are. Look in the path if we contain no path at all
16482 *[\\/]* ) as_myself=$0 ;;
16483 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16484 for as_dir in $PATH
16487 test -z "$as_dir" && as_dir=.
16488 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16493 # We did not find ourselves, most probably we were run as `sh COMMAND'
16494 # in which case we are not to be found in the path.
16495 if test "x$as_myself" = x; then
16498 if test ! -f "$as_myself"; then
16499 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16500 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16501 { (exit 1); exit 1; }; }
16503 case $CONFIG_SHELL in
16505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16506 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16509 test -z "$as_dir" && as_dir=.
16510 for as_base in sh bash ksh sh5; do
16513 if ("$as_dir/$as_base" -c '
16514 as_lineno_1=$LINENO
16515 as_lineno_2=$LINENO
16516 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16517 test "x$as_lineno_1" != "x$as_lineno_2" &&
16518 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16519 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16520 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16521 CONFIG_SHELL=$as_dir/$as_base
16522 export CONFIG_SHELL
16523 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16531 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16532 # uniformly replaced by the line number. The first 'sed' inserts a
16533 # line-number line before each line; the second 'sed' does the real
16534 # work. The second script uses 'N' to pair each line-number line
16535 # with the numbered line, and appends trailing '-' during
16536 # substitution so that $LINENO is not a special case at line end.
16537 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16538 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16539 sed '=' <$as_myself |
16544 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16547 s,^['$as_cr_digits']*\n,,
16548 ' >$as_me.lineno &&
16549 chmod +x $as_me.lineno ||
16550 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16551 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16552 { (exit 1); exit 1; }; }
16554 # Don't try to exec as it changes $[0], causing all sort of problems
16555 # (the dirname of $[0] is not the place where we might find the
16556 # original and so on. Autoconf is especially sensible to this).
16558 # Exit status is that of the last command.
16563 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16564 *c*,-n*) ECHO_N= ECHO_C='
16566 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16567 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16570 if expr a : '\(a\)' >/dev/null 2>&1; then
16576 rm -f conf$$ conf$$.exe conf$$.file
16578 if ln -s conf$$.file conf$$ 2>/dev/null; then
16579 # We could just check for DJGPP; but this test a) works b) is more generic
16580 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16581 if test -f conf$$.exe; then
16582 # Don't use ln at all; we don't have any links
16587 elif ln conf$$.file conf$$ 2>/dev/null; then
16592 rm -f conf$$ conf$$.exe conf$$.file
16594 if mkdir -p . 2>/dev/null; then
16600 as_executable_p="test -f"
16602 # Sed expression to map a string onto a valid CPP name.
16603 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16605 # Sed expression to map a string onto a valid variable name.
16606 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16610 # We need space, tab and new line, in precisely that order.
16620 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16621 # report actual input values of CONFIG_FILES etc. instead of their
16622 # values after options handling. Logging --version etc. is OK.
16626 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16627 ## Running $as_me. ##
16632 This file was extended by TiMidity++ $as_me 2.12.0-pre1b, which was
16633 generated by GNU Autoconf 2.56. Invocation command line was
16635 CONFIG_FILES = $CONFIG_FILES
16636 CONFIG_HEADERS = $CONFIG_HEADERS
16637 CONFIG_LINKS = $CONFIG_LINKS
16638 CONFIG_COMMANDS = $CONFIG_COMMANDS
16642 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16646 # Files that config.status was made for.
16647 if test -n "$ac_config_files"; then
16648 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16651 if test -n "$ac_config_headers"; then
16652 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16655 if test -n "$ac_config_links"; then
16656 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16659 if test -n "$ac_config_commands"; then
16660 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16663 cat >>$CONFIG_STATUS <<\_ACEOF
16666 \`$as_me' instantiates files from templates according to the
16667 current configuration.
16669 Usage: $0 [OPTIONS] [FILE]...
16671 -h, --help print this help, then exit
16672 -V, --version print version number, then exit
16673 -q, --quiet do not print progress messages
16674 -d, --debug don't remove temporary files
16675 --recheck update $as_me by reconfiguring in the same conditions
16676 --file=FILE[:TEMPLATE]
16677 instantiate the configuration file FILE
16678 --header=FILE[:TEMPLATE]
16679 instantiate the configuration header FILE
16681 Configuration files:
16684 Configuration headers:
16687 Configuration commands:
16690 Report bugs to <bug-autoconf@gnu.org>."
16693 cat >>$CONFIG_STATUS <<_ACEOF
16695 TiMidity++ config.status 2.12.0-pre1b
16696 configured by $0, generated by GNU Autoconf 2.56,
16697 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16699 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16700 Free Software Foundation, Inc.
16701 This config.status script is free software; the Free Software Foundation
16702 gives unlimited permission to copy, distribute and modify it."
16707 cat >>$CONFIG_STATUS <<\_ACEOF
16708 # If no file are specified by the user, then we need to provide default
16709 # value. By we need to know if files were specified by the user.
16715 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16716 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16724 *) # This is not an option, so the user has probably given explicit
16727 ac_need_defaults=false;;
16731 # Handling of the options.
16733 cat >>$CONFIG_STATUS <<\_ACEOF
16734 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16736 --version | --vers* | -V )
16737 echo "$ac_cs_version"; exit 0 ;;
16739 # Conflict between --help and --header
16740 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16741 Try \`$0 --help' for more information." >&5
16742 echo "$as_me: error: ambiguous option: $1
16743 Try \`$0 --help' for more information." >&2;}
16744 { (exit 1); exit 1; }; };;
16745 --help | --hel | -h )
16746 echo "$ac_cs_usage"; exit 0 ;;
16747 --debug | --d* | -d )
16749 --file | --fil | --fi | --f )
16751 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16752 ac_need_defaults=false;;
16753 --header | --heade | --head | --hea )
16755 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16756 ac_need_defaults=false;;
16757 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16758 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16761 # This is an error.
16762 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16763 Try \`$0 --help' for more information." >&5
16764 echo "$as_me: error: unrecognized option: $1
16765 Try \`$0 --help' for more information." >&2;}
16766 { (exit 1); exit 1; }; } ;;
16768 *) ac_config_targets="$ac_config_targets $1" ;;
16774 ac_configure_extra_args=
16776 if $ac_cs_silent; then
16778 ac_configure_extra_args="$ac_configure_extra_args --silent"
16782 cat >>$CONFIG_STATUS <<_ACEOF
16783 if \$ac_cs_recheck; then
16784 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16785 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16790 cat >>$CONFIG_STATUS <<_ACEOF
16792 # INIT-COMMANDS section.
16795 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16801 cat >>$CONFIG_STATUS <<\_ACEOF
16802 for ac_config_target in $ac_config_targets
16804 case "$ac_config_target" in
16805 # Handling of arguments.
16806 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16807 "autoconf/Makefile" ) CONFIG_FILES="$CONFIG_FILES autoconf/Makefile" ;;
16808 "common.makefile" ) CONFIG_FILES="$CONFIG_FILES common.makefile" ;;
16809 "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
16810 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16811 "doc/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
16812 "doc/ja_JP.ujis/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/ja_JP.ujis/Makefile" ;;
16813 "interface/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
16814 "interface/motif_bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/motif_bitmaps/Makefile" ;;
16815 "interface/bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/bitmaps/Makefile" ;;
16816 "interface/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/pixmaps/Makefile" ;;
16817 "libarc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libarc/Makefile" ;;
16818 "libunimod/Makefile" ) CONFIG_FILES="$CONFIG_FILES libunimod/Makefile" ;;
16819 "timidity/Makefile" ) CONFIG_FILES="$CONFIG_FILES timidity/Makefile" ;;
16820 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
16821 "script/Makefile" ) CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
16822 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16823 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16824 "interface.h" ) CONFIG_HEADERS="$CONFIG_HEADERS interface.h" ;;
16825 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16826 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16827 { (exit 1); exit 1; }; };;
16831 # If the user did not use the arguments to specify the items to instantiate,
16832 # then the envvar interface is used. Set only those that are not.
16833 # We use the long form for the default assignment because of an extremely
16834 # bizarre bug on SunOS 4.1.3.
16835 if $ac_need_defaults; then
16836 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16837 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16838 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16841 # Have a temporary directory for convenience. Make it in the build tree
16842 # simply because there is no reason to put it here, and in addition,
16843 # creating and moving files from /tmp can sometimes cause problems.
16844 # Create a temporary directory, and hook for its removal unless debugging.
16847 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16848 trap '{ (exit 1); exit 1; }' 1 2 13 15
16851 # Create a (secure) tmp directory for tmp files.
16854 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16855 test -n "$tmp" && test -d "$tmp"
16858 tmp=./confstat$$-$RANDOM
16859 (umask 077 && mkdir $tmp)
16862 echo "$me: cannot create a temporary directory in ." >&2
16863 { (exit 1); exit 1; }
16868 cat >>$CONFIG_STATUS <<_ACEOF
16871 # CONFIG_FILES section.
16874 # No need to generate the scripts if there are no CONFIG_FILES.
16875 # This happens for instance when ./config.status config.h
16876 if test -n "\$CONFIG_FILES"; then
16877 # Protect against being on the right side of a sed subst in config.status.
16878 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16879 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16880 s,@SHELL@,$SHELL,;t t
16881 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16882 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16883 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16884 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16885 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16886 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16887 s,@exec_prefix@,$exec_prefix,;t t
16888 s,@prefix@,$prefix,;t t
16889 s,@program_transform_name@,$program_transform_name,;t t
16890 s,@bindir@,$bindir,;t t
16891 s,@sbindir@,$sbindir,;t t
16892 s,@libexecdir@,$libexecdir,;t t
16893 s,@datadir@,$datadir,;t t
16894 s,@sysconfdir@,$sysconfdir,;t t
16895 s,@sharedstatedir@,$sharedstatedir,;t t
16896 s,@localstatedir@,$localstatedir,;t t
16897 s,@libdir@,$libdir,;t t
16898 s,@includedir@,$includedir,;t t
16899 s,@oldincludedir@,$oldincludedir,;t t
16900 s,@infodir@,$infodir,;t t
16901 s,@mandir@,$mandir,;t t
16902 s,@build_alias@,$build_alias,;t t
16903 s,@host_alias@,$host_alias,;t t
16904 s,@target_alias@,$target_alias,;t t
16905 s,@DEFS@,$DEFS,;t t
16906 s,@ECHO_C@,$ECHO_C,;t t
16907 s,@ECHO_N@,$ECHO_N,;t t
16908 s,@ECHO_T@,$ECHO_T,;t t
16909 s,@LIBS@,$LIBS,;t t
16910 s,@build@,$build,;t t
16911 s,@build_cpu@,$build_cpu,;t t
16912 s,@build_vendor@,$build_vendor,;t t
16913 s,@build_os@,$build_os,;t t
16914 s,@host@,$host,;t t
16915 s,@host_cpu@,$host_cpu,;t t
16916 s,@host_vendor@,$host_vendor,;t t
16917 s,@host_os@,$host_os,;t t
16918 s,@target@,$target,;t t
16919 s,@target_cpu@,$target_cpu,;t t
16920 s,@target_vendor@,$target_vendor,;t t
16921 s,@target_os@,$target_os,;t t
16922 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16923 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16924 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16925 s,@CYGPATH_W@,$CYGPATH_W,;t t
16926 s,@PACKAGE@,$PACKAGE,;t t
16927 s,@VERSION@,$VERSION,;t t
16928 s,@ACLOCAL@,$ACLOCAL,;t t
16929 s,@AUTOCONF@,$AUTOCONF,;t t
16930 s,@AUTOMAKE@,$AUTOMAKE,;t t
16931 s,@AUTOHEADER@,$AUTOHEADER,;t t
16932 s,@MAKEINFO@,$MAKEINFO,;t t
16933 s,@AMTAR@,$AMTAR,;t t
16934 s,@install_sh@,$install_sh,;t t
16935 s,@STRIP@,$STRIP,;t t
16936 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16937 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16939 s,@SET_MAKE@,$SET_MAKE,;t t
16940 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
16941 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
16942 s,@MAINT@,$MAINT,;t t
16943 s,@EMACS@,$EMACS,;t t
16944 s,@lispdir@,$lispdir,;t t
16946 s,@CFLAGS@,$CFLAGS,;t t
16947 s,@LDFLAGS@,$LDFLAGS,;t t
16948 s,@CPPFLAGS@,$CPPFLAGS,;t t
16949 s,@ac_ct_CC@,$ac_ct_CC,;t t
16950 s,@EXEEXT@,$EXEEXT,;t t
16951 s,@OBJEXT@,$OBJEXT,;t t
16952 s,@DEPDIR@,$DEPDIR,;t t
16953 s,@am__include@,$am__include,;t t
16954 s,@am__quote@,$am__quote,;t t
16955 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16956 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16957 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16958 s,@CCDEPMODE@,$CCDEPMODE,;t t
16959 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16960 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16962 s,@EGREP@,$EGREP,;t t
16963 s,@RANLIB@,$RANLIB,;t t
16964 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16965 s,@LN_S@,$LN_S,;t t
16966 s,@X_CFLAGS@,$X_CFLAGS,;t t
16967 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16968 s,@X_LIBS@,$X_LIBS,;t t
16969 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16970 s,@LIBOBJS@,$LIBOBJS,;t t
16971 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
16972 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
16973 s,@ARTS_CONFIG@,$ARTS_CONFIG,;t t
16974 s,@ARTS_CFLAGS@,$ARTS_CFLAGS,;t t
16975 s,@ARTS_LIBS@,$ARTS_LIBS,;t t
16976 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
16977 s,@ESD_CFLAGS@,$ESD_CFLAGS,;t t
16978 s,@ESD_LIBS@,$ESD_LIBS,;t t
16979 s,@VORBIS_CFLAGS@,$VORBIS_CFLAGS,;t t
16980 s,@VORBIS_LIBS@,$VORBIS_LIBS,;t t
16981 s,@VORBISFILE_LIBS@,$VORBISFILE_LIBS,;t t
16982 s,@VORBISENC_LIBS@,$VORBISENC_LIBS,;t t
16983 s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t
16984 s,@OGG_LIBS@,$OGG_LIBS,;t t
16985 s,@NEEDDLOPEN_TRUE@,$NEEDDLOPEN_TRUE,;t t
16986 s,@NEEDDLOPEN_FALSE@,$NEEDDLOPEN_FALSE,;t t
16987 s,@ENABLE_NCURSES_TRUE@,$ENABLE_NCURSES_TRUE,;t t
16988 s,@ENABLE_NCURSES_FALSE@,$ENABLE_NCURSES_FALSE,;t t
16989 s,@n_so_libs@,$n_so_libs,;t t
16990 s,@ENABLE_SLANG_TRUE@,$ENABLE_SLANG_TRUE,;t t
16991 s,@ENABLE_SLANG_FALSE@,$ENABLE_SLANG_FALSE,;t t
16992 s,@s_so_libs@,$s_so_libs,;t t
16993 s,@ENABLE_MOTIF_TRUE@,$ENABLE_MOTIF_TRUE,;t t
16994 s,@ENABLE_MOTIF_FALSE@,$ENABLE_MOTIF_FALSE,;t t
16995 s,@m_so_libs@,$m_so_libs,;t t
16996 s,@ENABLE_TCLTK_TRUE@,$ENABLE_TCLTK_TRUE,;t t
16997 s,@ENABLE_TCLTK_FALSE@,$ENABLE_TCLTK_FALSE,;t t
16998 s,@k_so_libs@,$k_so_libs,;t t
16999 s,@ENABLE_DYNAMIC_TCLTK_TRUE@,$ENABLE_DYNAMIC_TCLTK_TRUE,;t t
17000 s,@ENABLE_DYNAMIC_TCLTK_FALSE@,$ENABLE_DYNAMIC_TCLTK_FALSE,;t t
17001 s,@ENABLE_EMACS_TRUE@,$ENABLE_EMACS_TRUE,;t t
17002 s,@ENABLE_EMACS_FALSE@,$ENABLE_EMACS_FALSE,;t t
17003 s,@e_so_libs@,$e_so_libs,;t t
17004 s,@ENABLE_VT100_TRUE@,$ENABLE_VT100_TRUE,;t t
17005 s,@ENABLE_VT100_FALSE@,$ENABLE_VT100_FALSE,;t t
17006 s,@T_so_libs@,$T_so_libs,;t t
17007 s,@ENABLE_XAW_TRUE@,$ENABLE_XAW_TRUE,;t t
17008 s,@ENABLE_XAW_FALSE@,$ENABLE_XAW_FALSE,;t t
17009 s,@a_so_libs@,$a_so_libs,;t t
17010 s,@ENABLE_DYNAMIC_XAW_TRUE@,$ENABLE_DYNAMIC_XAW_TRUE,;t t
17011 s,@ENABLE_DYNAMIC_XAW_FALSE@,$ENABLE_DYNAMIC_XAW_FALSE,;t t
17012 s,@ENABLE_XSKIN_TRUE@,$ENABLE_XSKIN_TRUE,;t t
17013 s,@ENABLE_XSKIN_FALSE@,$ENABLE_XSKIN_FALSE,;t t
17014 s,@i_so_libs@,$i_so_libs,;t t
17015 s,@ENABLE_GTK_TRUE@,$ENABLE_GTK_TRUE,;t t
17016 s,@ENABLE_GTK_FALSE@,$ENABLE_GTK_FALSE,;t t
17017 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
17018 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17019 s,@GTK_LIBS@,$GTK_LIBS,;t t
17020 s,@g_so_libs@,$g_so_libs,;t t
17021 s,@ENABLE_SERVER_TRUE@,$ENABLE_SERVER_TRUE,;t t
17022 s,@ENABLE_SERVER_FALSE@,$ENABLE_SERVER_FALSE,;t t
17023 s,@r_so_libs@,$r_so_libs,;t t
17024 s,@ENABLE_ALSASEQ_TRUE@,$ENABLE_ALSASEQ_TRUE,;t t
17025 s,@ENABLE_ALSASEQ_FALSE@,$ENABLE_ALSASEQ_FALSE,;t t
17026 s,@A_so_libs@,$A_so_libs,;t t
17027 s,@ENABLE_WINSYN_TRUE@,$ENABLE_WINSYN_TRUE,;t t
17028 s,@ENABLE_WINSYN_FALSE@,$ENABLE_WINSYN_FALSE,;t t
17029 s,@W_so_libs@,$W_so_libs,;t t
17030 s,@ENABLE_PORTMIDISYN_TRUE@,$ENABLE_PORTMIDISYN_TRUE,;t t
17031 s,@ENABLE_PORTMIDISYN_FALSE@,$ENABLE_PORTMIDISYN_FALSE,;t t
17032 s,@P_so_libs@,$P_so_libs,;t t
17033 s,@ENABLE_W32G_SYN_TRUE@,$ENABLE_W32G_SYN_TRUE,;t t
17034 s,@ENABLE_W32G_SYN_FALSE@,$ENABLE_W32G_SYN_FALSE,;t t
17035 s,@ENABLE_W32GUI_TRUE@,$ENABLE_W32GUI_TRUE,;t t
17036 s,@ENABLE_W32GUI_FALSE@,$ENABLE_W32GUI_FALSE,;t t
17037 s,@w_so_libs@,$w_so_libs,;t t
17038 s,@ENABLE_PLUGIN_TRUE@,$ENABLE_PLUGIN_TRUE,;t t
17039 s,@ENABLE_PLUGIN_FALSE@,$ENABLE_PLUGIN_FALSE,;t t
17040 s,@p_so_libs@,$p_so_libs,;t t
17041 s,@ENABLE_NETWORK_TRUE@,$ENABLE_NETWORK_TRUE,;t t
17042 s,@ENABLE_NETWORK_FALSE@,$ENABLE_NETWORK_FALSE,;t t
17043 s,@ENABLE_SOUND_SPEC_TRUE@,$ENABLE_SOUND_SPEC_TRUE,;t t
17044 s,@ENABLE_SOUND_SPEC_FALSE@,$ENABLE_SOUND_SPEC_FALSE,;t t
17045 s,@ENABLE_WRD_TRUE@,$ENABLE_WRD_TRUE,;t t
17046 s,@ENABLE_WRD_FALSE@,$ENABLE_WRD_FALSE,;t t
17047 s,@CYGNUS_TRUE@,$CYGNUS_TRUE,;t t
17048 s,@CYGNUS_FALSE@,$CYGNUS_FALSE,;t t
17049 s,@MINGW_TRUE@,$MINGW_TRUE,;t t
17050 s,@MINGW_FALSE@,$MINGW_FALSE,;t t
17051 s,@W32READDIR_TRUE@,$W32READDIR_TRUE,;t t
17052 s,@W32READDIR_FALSE@,$W32READDIR_FALSE,;t t
17053 s,@timidity_LDFLAGS@,$timidity_LDFLAGS,;t t
17054 s,@SYSEXTRAS@,$SYSEXTRAS,;t t
17055 s,@EXTRALIBS@,$EXTRALIBS,;t t
17056 s,@NETSRCS@,$NETSRCS,;t t
17057 s,@ELFILES@,$ELFILES,;t t
17058 s,@SHLD@,$SHLD,;t t
17059 s,@SHCFLAGS@,$SHCFLAGS,;t t
17060 s,@dynamic_targets@,$dynamic_targets,;t t
17062 s,@WISH@,$WISH,;t t
17063 s,@tcltk_dep@,$tcltk_dep,;t t
17064 s,@INTERFACE_SRCS@,$INTERFACE_SRCS,;t t
17065 s,@pkgdatadir@,$pkgdatadir,;t t
17066 s,@pkglibdir@,$pkglibdir,;t t
17067 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17072 cat >>$CONFIG_STATUS <<\_ACEOF
17073 # Split the substitutions into bite-sized pieces for seds with
17074 # small command number limits, like on Digital OSF/1 and HP-UX.
17075 ac_max_sed_lines=48
17076 ac_sed_frag=1 # Number of current file.
17077 ac_beg=1 # First line for current file.
17078 ac_end=$ac_max_sed_lines # Line after last line for current file.
17081 while $ac_more_lines; do
17082 if test $ac_beg -gt 1; then
17083 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17085 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17087 if test ! -s $tmp/subs.frag; then
17088 ac_more_lines=false
17090 # The purpose of the label and of the branching condition is to
17091 # speed up the sed processing (if there are no `@' at all, there
17092 # is no need to browse any of the substitutions).
17093 # These are the two extra sed commands mentioned above.
17095 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17096 if test -z "$ac_sed_cmds"; then
17097 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17099 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17101 ac_sed_frag=`expr $ac_sed_frag + 1`
17103 ac_end=`expr $ac_end + $ac_max_sed_lines`
17106 if test -z "$ac_sed_cmds"; then
17109 fi # test -n "$CONFIG_FILES"
17112 cat >>$CONFIG_STATUS <<\_ACEOF
17113 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17114 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17116 - | *:- | *:-:* ) # input from stdin
17118 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17119 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17120 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17121 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17122 * ) ac_file_in=$ac_file.in ;;
17125 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17126 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17127 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17128 X"$ac_file" : 'X\(//\)[^/]' \| \
17129 X"$ac_file" : 'X\(//\)$' \| \
17130 X"$ac_file" : 'X\(/\)' \| \
17131 . : '\(.\)' 2>/dev/null ||
17133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17134 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17135 /^X\(\/\/\)$/{ s//\1/; q; }
17136 /^X\(\/\).*/{ s//\1/; q; }
17138 { if $as_mkdir_p; then
17143 while test ! -d "$as_dir"; do
17144 as_dirs="$as_dir $as_dirs"
17145 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17146 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17147 X"$as_dir" : 'X\(//\)[^/]' \| \
17148 X"$as_dir" : 'X\(//\)$' \| \
17149 X"$as_dir" : 'X\(/\)' \| \
17150 . : '\(.\)' 2>/dev/null ||
17152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17153 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17154 /^X\(\/\/\)$/{ s//\1/; q; }
17155 /^X\(\/\).*/{ s//\1/; q; }
17158 test ! -n "$as_dirs" || mkdir $as_dirs
17159 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17160 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17161 { (exit 1); exit 1; }; }; }
17165 if test "$ac_dir" != .; then
17166 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17167 # A "../" for each directory in $ac_dir_suffix.
17168 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17170 ac_dir_suffix= ac_top_builddir=
17174 .) # No --srcdir option. We are building in place.
17176 if test -z "$ac_top_builddir"; then
17179 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17181 [\\/]* | ?:[\\/]* ) # Absolute path.
17182 ac_srcdir=$srcdir$ac_dir_suffix;
17183 ac_top_srcdir=$srcdir ;;
17184 *) # Relative path.
17185 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17186 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17188 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17190 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17191 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17192 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17193 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17197 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17198 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17201 if test x"$ac_file" != x-; then
17202 { echo "$as_me:$LINENO: creating $ac_file" >&5
17203 echo "$as_me: creating $ac_file" >&6;}
17206 # Let's still pretend it is `configure' which instantiates (i.e., don't
17207 # use $as_me), people would be surprised to read:
17208 # /* config.h. Generated by config.status. */
17209 if test x"$ac_file" = x-; then
17212 configure_input="$ac_file. "
17214 configure_input=$configure_input"Generated from `echo $ac_file_in |
17215 sed 's,.*/,,'` by configure."
17217 # First look for the input files in the build tree, otherwise in the
17219 ac_file_inputs=`IFS=:
17220 for f in $ac_file_in; do
17222 -) echo $tmp/stdin ;;
17224 # Absolute (can't be DOS-style, as IFS=:)
17225 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17226 echo "$as_me: error: cannot find input file: $f" >&2;}
17227 { (exit 1); exit 1; }; }
17230 if test -f "$f"; then
17233 elif test -f "$srcdir/$f"; then
17238 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17239 echo "$as_me: error: cannot find input file: $f" >&2;}
17240 { (exit 1); exit 1; }; }
17243 done` || { (exit 1); exit 1; }
17245 cat >>$CONFIG_STATUS <<_ACEOF
17249 cat >>$CONFIG_STATUS <<\_ACEOF
17251 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17252 s,@configure_input@,$configure_input,;t t
17253 s,@srcdir@,$ac_srcdir,;t t
17254 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17255 s,@top_srcdir@,$ac_top_srcdir,;t t
17256 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17257 s,@builddir@,$ac_builddir,;t t
17258 s,@abs_builddir@,$ac_abs_builddir,;t t
17259 s,@top_builddir@,$ac_top_builddir,;t t
17260 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17261 s,@INSTALL@,$ac_INSTALL,;t t
17262 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17264 if test x"$ac_file" != x-; then
17265 mv $tmp/out $ac_file
17273 cat >>$CONFIG_STATUS <<\_ACEOF
17276 # CONFIG_HEADER section.
17279 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17280 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17282 # ac_d sets the value in "#define NAME VALUE" lines.
17283 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17284 ac_dB='[ ].*$,\1#\2'
17287 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17288 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17289 ac_uB='$,\1#\2define\3'
17293 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17294 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17296 - | *:- | *:-:* ) # input from stdin
17298 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17299 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17300 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17301 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17302 * ) ac_file_in=$ac_file.in ;;
17305 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17306 echo "$as_me: creating $ac_file" >&6;}
17308 # First look for the input files in the build tree, otherwise in the
17310 ac_file_inputs=`IFS=:
17311 for f in $ac_file_in; do
17313 -) echo $tmp/stdin ;;
17315 # Absolute (can't be DOS-style, as IFS=:)
17316 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17317 echo "$as_me: error: cannot find input file: $f" >&2;}
17318 { (exit 1); exit 1; }; }
17321 if test -f "$f"; then
17324 elif test -f "$srcdir/$f"; then
17329 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17330 echo "$as_me: error: cannot find input file: $f" >&2;}
17331 { (exit 1); exit 1; }; }
17334 done` || { (exit 1); exit 1; }
17335 # Remove the trailing spaces.
17336 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17340 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17341 # `conftest.undefs', that substitutes the proper values into
17342 # config.h.in to produce config.h. The first handles `#define'
17343 # templates, and the second `#undef' templates.
17344 # And first: Protect against being on the right side of a sed subst in
17345 # config.status. Protect against being in an unquoted here document
17346 # in config.status.
17347 rm -f conftest.defines conftest.undefs
17348 # Using a here document instead of a string reduces the quoting nightmare.
17349 # Putting comments in sed scripts is not portable.
17351 # `end' is used to avoid that the second main sed command (meant for
17352 # 0-ary CPP macros) applies to n-ary macro definitions.
17353 # See the Autoconf documentation for `clear'.
17354 cat >confdef2sed.sed <<\_ACEOF
17359 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17361 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17364 # If some macros were called several times there might be several times
17365 # the same #defines, which is useless. Nevertheless, we may not want to
17366 # sort them, since we want the *last* AC-DEFINE to be honored.
17367 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17368 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17369 rm -f confdef2sed.sed
17371 # This sed command replaces #undef with comments. This is necessary, for
17372 # example, in the case of _POSIX_SOURCE, which is predefined and required
17373 # on some systems where configure will not decide to define it.
17374 cat >>conftest.undefs <<\_ACEOF
17375 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17378 # Break up conftest.defines because some shells have a limit on the size
17379 # of here documents, and old seds have small limits too (100 cmds).
17380 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17381 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17382 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17383 echo ' :' >>$CONFIG_STATUS
17384 rm -f conftest.tail
17385 while grep . conftest.defines >/dev/null
17387 # Write a limited-size here document to $tmp/defines.sed.
17388 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17389 # Speed up: don't consider the non `#define' lines.
17390 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17391 # Work around the forget-to-reset-the-flag bug.
17392 echo 't clr' >>$CONFIG_STATUS
17393 echo ': clr' >>$CONFIG_STATUS
17394 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17396 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17398 mv $tmp/out $tmp/in
17400 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17401 rm -f conftest.defines
17402 mv conftest.tail conftest.defines
17404 rm -f conftest.defines
17405 echo ' fi # grep' >>$CONFIG_STATUS
17406 echo >>$CONFIG_STATUS
17408 # Break up conftest.undefs because some shells have a limit on the size
17409 # of here documents, and old seds have small limits too (100 cmds).
17410 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17411 rm -f conftest.tail
17412 while grep . conftest.undefs >/dev/null
17414 # Write a limited-size here document to $tmp/undefs.sed.
17415 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17416 # Speed up: don't consider the non `#undef'
17417 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17418 # Work around the forget-to-reset-the-flag bug.
17419 echo 't clr' >>$CONFIG_STATUS
17420 echo ': clr' >>$CONFIG_STATUS
17421 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17423 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17425 mv $tmp/out $tmp/in
17427 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17428 rm -f conftest.undefs
17429 mv conftest.tail conftest.undefs
17431 rm -f conftest.undefs
17433 cat >>$CONFIG_STATUS <<\_ACEOF
17434 # Let's still pretend it is `configure' which instantiates (i.e., don't
17435 # use $as_me), people would be surprised to read:
17436 # /* config.h. Generated by config.status. */
17437 if test x"$ac_file" = x-; then
17438 echo "/* Generated by configure. */" >$tmp/config.h
17440 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17442 cat $tmp/in >>$tmp/config.h
17444 if test x"$ac_file" != x-; then
17445 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17446 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17447 echo "$as_me: $ac_file is unchanged" >&6;}
17449 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17450 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17451 X"$ac_file" : 'X\(//\)[^/]' \| \
17452 X"$ac_file" : 'X\(//\)$' \| \
17453 X"$ac_file" : 'X\(/\)' \| \
17454 . : '\(.\)' 2>/dev/null ||
17456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17457 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17458 /^X\(\/\/\)$/{ s//\1/; q; }
17459 /^X\(\/\).*/{ s//\1/; q; }
17461 { if $as_mkdir_p; then
17466 while test ! -d "$as_dir"; do
17467 as_dirs="$as_dir $as_dirs"
17468 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17469 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17470 X"$as_dir" : 'X\(//\)[^/]' \| \
17471 X"$as_dir" : 'X\(//\)$' \| \
17472 X"$as_dir" : 'X\(/\)' \| \
17473 . : '\(.\)' 2>/dev/null ||
17475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17476 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17477 /^X\(\/\/\)$/{ s//\1/; q; }
17478 /^X\(\/\).*/{ s//\1/; q; }
17481 test ! -n "$as_dirs" || mkdir $as_dirs
17482 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17483 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17484 { (exit 1); exit 1; }; }; }
17487 mv $tmp/config.h $ac_file
17491 rm -f $tmp/config.h
17493 _am_stamp_count=`expr ${_am_stamp_count-0} + 1`
17494 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17495 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17496 X$ac_file : 'X\(//\)[^/]' \| \
17497 X$ac_file : 'X\(//\)$' \| \
17498 X$ac_file : 'X\(/\)' \| \
17499 . : '\(.\)' 2>/dev/null ||
17501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17502 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17503 /^X\(\/\/\)$/{ s//\1/; q; }
17504 /^X\(\/\).*/{ s//\1/; q; }
17505 s/.*/./; q'`/stamp-h$_am_stamp_count
17508 cat >>$CONFIG_STATUS <<\_ACEOF
17511 # CONFIG_COMMANDS section.
17513 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17514 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17515 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17516 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17517 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17518 X"$ac_dest" : 'X\(//\)[^/]' \| \
17519 X"$ac_dest" : 'X\(//\)$' \| \
17520 X"$ac_dest" : 'X\(/\)' \| \
17521 . : '\(.\)' 2>/dev/null ||
17523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17524 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17525 /^X\(\/\/\)$/{ s//\1/; q; }
17526 /^X\(\/\).*/{ s//\1/; q; }
17530 if test "$ac_dir" != .; then
17531 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17532 # A "../" for each directory in $ac_dir_suffix.
17533 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17535 ac_dir_suffix= ac_top_builddir=
17539 .) # No --srcdir option. We are building in place.
17541 if test -z "$ac_top_builddir"; then
17544 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17546 [\\/]* | ?:[\\/]* ) # Absolute path.
17547 ac_srcdir=$srcdir$ac_dir_suffix;
17548 ac_top_srcdir=$srcdir ;;
17549 *) # Relative path.
17550 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17551 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17553 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17555 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17556 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17557 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17558 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17561 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17562 echo "$as_me: executing $ac_dest commands" >&6;}
17564 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17565 # Strip MF so we end up with the name of the file.
17566 mf=`echo "$mf" | sed -e 's/:.*$//'`
17567 # Check whether this is an Automake generated Makefile or not.
17568 # We used to match only the files named `Makefile.in', but
17569 # some people rename them; so instead we look at the file content.
17570 # Grep'ing the first line is not enough: some people post-process
17571 # each Makefile.in and add a new line on top of each file to say so.
17572 # So let's grep whole file.
17573 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17574 dirpart=`(dirname "$mf") 2>/dev/null ||
17575 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17576 X"$mf" : 'X\(//\)[^/]' \| \
17577 X"$mf" : 'X\(//\)$' \| \
17578 X"$mf" : 'X\(/\)' \| \
17579 . : '\(.\)' 2>/dev/null ||
17581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17582 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17583 /^X\(\/\/\)$/{ s//\1/; q; }
17584 /^X\(\/\).*/{ s//\1/; q; }
17589 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
17590 # Extract the definition of DEP_FILES from the Makefile without
17592 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
17593 test -z "$DEPDIR" && continue
17594 # When using ansi2knr, U may be empty or an underscore; expand it
17595 U=`sed -n -e '/^U = / s///p' < "$mf"`
17596 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
17597 # We invoke sed twice because it is the simplest approach to
17598 # changing $(DEPDIR) to its actual value in the expansion.
17599 for file in `sed -n -e '
17600 /^DEP_FILES = .*\\\\$/ {
17609 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
17610 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17611 # Make sure the directory exists.
17612 test -f "$dirpart/$file" && continue
17613 fdir=`(dirname "$file") 2>/dev/null ||
17614 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17615 X"$file" : 'X\(//\)[^/]' \| \
17616 X"$file" : 'X\(//\)$' \| \
17617 X"$file" : 'X\(/\)' \| \
17618 . : '\(.\)' 2>/dev/null ||
17620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17621 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17622 /^X\(\/\/\)$/{ s//\1/; q; }
17623 /^X\(\/\).*/{ s//\1/; q; }
17625 { if $as_mkdir_p; then
17626 mkdir -p $dirpart/$fdir
17628 as_dir=$dirpart/$fdir
17630 while test ! -d "$as_dir"; do
17631 as_dirs="$as_dir $as_dirs"
17632 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17633 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17634 X"$as_dir" : 'X\(//\)[^/]' \| \
17635 X"$as_dir" : 'X\(//\)$' \| \
17636 X"$as_dir" : 'X\(/\)' \| \
17637 . : '\(.\)' 2>/dev/null ||
17639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17640 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17641 /^X\(\/\/\)$/{ s//\1/; q; }
17642 /^X\(\/\).*/{ s//\1/; q; }
17645 test ! -n "$as_dirs" || mkdir $as_dirs
17646 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17647 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17648 { (exit 1); exit 1; }; }; }
17650 # echo "creating $dirpart/$file"
17651 echo '# dummy' > "$dirpart/$file"
17659 cat >>$CONFIG_STATUS <<\_ACEOF
17661 { (exit 0); exit 0; }
17663 chmod +x $CONFIG_STATUS
17664 ac_clean_files=$ac_clean_files_save
17667 # configure is writing to config.log, and then calls config.status.
17668 # config.status does its own redirection, appending to config.log.
17669 # Unfortunately, on DOS this fails, as config.log is still kept open
17670 # by configure, so config.status won't be able to write to it; its
17671 # output is simply discarded. So we exec the FD to /dev/null,
17672 # effectively closing config.log, so it can be properly (re)opened and
17673 # appended to by config.status. When coming back to configure, we
17674 # need to make the FD available again.
17675 if test "$no_create" != yes; then
17677 ac_config_status_args=
17678 test "$silent" = yes &&
17679 ac_config_status_args="$ac_config_status_args --quiet"
17681 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17683 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17684 # would make configure fail if this is the last instruction.
17685 $ac_cs_success || { (exit 1); exit 1; }