OSDN Git Service

autoreconfed
[timidity41/timidity41.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for TiMidity++ 2.12.0-pre1b.
4 #
5 # Report bugs to <root@mput.dip.jp>.
6 #
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 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
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
23   set -o posix
24 fi
25
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
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 \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
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 ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
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
87
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
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
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
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
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
124     as_myself=$0
125   fi
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; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
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
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
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 |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
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; }; }
179
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).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >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
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
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"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245 # Name of the host.
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`
249
250 exec 6>&1
251
252 #
253 # Initializations.
254 #
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
257 cross_compiling=no
258 subdirs=
259 MFLAGS=
260 MAKEFLAGS=
261 SHELL=${CONFIG_SHELL-/bin/sh}
262
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}
267
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'
274
275 ac_unique_file="timidity/timidity.c"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 #  include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 #  include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 #  include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT EMACS lispdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP RANLIB ac_ct_RANLIB LN_S X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS NEEDGETOPT_TRUE NEEDGETOPT_FALSE ALSA_CFLAGS ALSA_LIBS ARTS_CONFIG ARTS_CFLAGS ARTS_LIBS ESD_CONFIG ESD_CFLAGS ESD_LIBS VORBIS_CFLAGS VORBIS_LIBS VORBISFILE_LIBS VORBISENC_LIBS OGG_CFLAGS OGG_LIBS NEEDDLOPEN_TRUE NEEDDLOPEN_FALSE ENABLE_NCURSES_TRUE ENABLE_NCURSES_FALSE n_so_libs ENABLE_SLANG_TRUE ENABLE_SLANG_FALSE s_so_libs ENABLE_MOTIF_TRUE ENABLE_MOTIF_FALSE m_so_libs ENABLE_TCLTK_TRUE ENABLE_TCLTK_FALSE k_so_libs ENABLE_DYNAMIC_TCLTK_TRUE ENABLE_DYNAMIC_TCLTK_FALSE ENABLE_EMACS_TRUE ENABLE_EMACS_FALSE e_so_libs ENABLE_VT100_TRUE ENABLE_VT100_FALSE T_so_libs ENABLE_XAW_TRUE ENABLE_XAW_FALSE a_so_libs ENABLE_DYNAMIC_XAW_TRUE ENABLE_DYNAMIC_XAW_FALSE ENABLE_XSKIN_TRUE ENABLE_XSKIN_FALSE i_so_libs ENABLE_GTK_TRUE ENABLE_GTK_FALSE GTK_CONFIG GTK_CFLAGS GTK_LIBS g_so_libs ENABLE_SERVER_TRUE ENABLE_SERVER_FALSE r_so_libs ENABLE_ALSASEQ_TRUE ENABLE_ALSASEQ_FALSE A_so_libs ENABLE_WINSYN_TRUE ENABLE_WINSYN_FALSE W_so_libs ENABLE_PORTMIDISYN_TRUE ENABLE_PORTMIDISYN_FALSE P_so_libs ENABLE_W32G_SYN_TRUE ENABLE_W32G_SYN_FALSE ENABLE_W32GUI_TRUE ENABLE_W32GUI_FALSE w_so_libs ENABLE_PLUGIN_TRUE ENABLE_PLUGIN_FALSE p_so_libs ENABLE_NETWORK_TRUE ENABLE_NETWORK_FALSE ENABLE_SOUND_SPEC_TRUE ENABLE_SOUND_SPEC_FALSE ENABLE_WRD_TRUE ENABLE_WRD_FALSE CYGNUS_TRUE CYGNUS_FALSE MINGW_TRUE MINGW_FALSE W32READDIR_TRUE W32READDIR_FALSE timidity_LDFLAGS SYSEXTRAS EXTRALIBS NETSRCS ELFILES SHLD SHCFLAGS dynamic_targets so WISH tcltk_dep INTERFACE_SRCS pkgdatadir pkglibdir LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
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'
353
354 ac_prev=
355 for ac_option
356 do
357   # If the previous option needs an argument, assign it.
358   if test -n "$ac_prev"; then
359     eval "$ac_prev=\$ac_option"
360     ac_prev=
361     continue
362   fi
363
364   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366   # Accept the important Cygnus configure options, so we can diagnose typos.
367
368   case $ac_option in
369
370   -bindir | --bindir | --bindi | --bind | --bin | --bi)
371     ac_prev=bindir ;;
372   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373     bindir=$ac_optarg ;;
374
375   -build | --build | --buil | --bui | --bu)
376     ac_prev=build_alias ;;
377   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378     build_alias=$ac_optarg ;;
379
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 ;;
386
387   --config-cache | -C)
388     cache_file=config.cache ;;
389
390   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391     ac_prev=datadir ;;
392   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393   | --da=*)
394     datadir=$ac_optarg ;;
395
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" ;;
404
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'`
412     case $ac_option in
413       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414       *) ac_optarg=yes ;;
415     esac
416     eval "enable_$ac_feature='$ac_optarg'" ;;
417
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 ;;
426
427   -gas | --gas | --ga | --g)
428     # Obsolete; use --with-gas.
429     with_gas=yes ;;
430
431   -help | --help | --hel | --he | -h)
432     ac_init_help=long ;;
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 ;;
437
438   -host | --host | --hos | --ho)
439     ac_prev=host_alias ;;
440   -host=* | --host=* | --hos=* | --ho=*)
441     host_alias=$ac_optarg ;;
442
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 ;;
449
450   -infodir | --infodir | --infodi | --infod | --info | --inf)
451     ac_prev=infodir ;;
452   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453     infodir=$ac_optarg ;;
454
455   -libdir | --libdir | --libdi | --libd)
456     ac_prev=libdir ;;
457   -libdir=* | --libdir=* | --libdi=* | --libd=*)
458     libdir=$ac_optarg ;;
459
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 ;;
466
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 ;;
475
476   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477     ac_prev=mandir ;;
478   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479     mandir=$ac_optarg ;;
480
481   -nfp | --nfp | --nf)
482     # Obsolete; use --without-fp.
483     with_fp=no ;;
484
485   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486   | --no-cr | --no-c | -n)
487     no_create=yes ;;
488
489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491     no_recursion=yes ;;
492
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 ;;
501
502   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503     ac_prev=prefix ;;
504   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505     prefix=$ac_optarg ;;
506
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 ;;
513
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 ;;
520
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 ;;
537
538   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539   | -silent | --silent | --silen | --sile | --sil)
540     silent=yes ;;
541
542   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543     ac_prev=sbindir ;;
544   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545   | --sbi=* | --sb=*)
546     sbindir=$ac_optarg ;;
547
548   -sharedstatedir | --sharedstatedir | --sharedstatedi \
549   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550   | --sharedst | --shareds | --shared | --share | --shar \
551   | --sha | --sh)
552     ac_prev=sharedstatedir ;;
553   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556   | --sha=* | --sh=*)
557     sharedstatedir=$ac_optarg ;;
558
559   -site | --site | --sit)
560     ac_prev=site ;;
561   -site=* | --site=* | --sit=*)
562     site=$ac_optarg ;;
563
564   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565     ac_prev=srcdir ;;
566   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567     srcdir=$ac_optarg ;;
568
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 ;;
575
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 ;;
580
581   -v | -verbose | --verbose | --verbos | --verbo | --verb)
582     verbose=yes ;;
583
584   -version | --version | --versio | --versi | --vers | -V)
585     ac_init_version=: ;;
586
587   -with-* | --with-*)
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'`
594     case $ac_option in
595       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596       *) ac_optarg=yes ;;
597     esac
598     eval "with_$ac_package='$ac_optarg'" ;;
599
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" ;;
608
609   --x)
610     # Obsolete; use --with-x.
611     with_x=yes ;;
612
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 ;;
619
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 ;;
626
627   -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629    { (exit 1); exit 1; }; }
630     ;;
631
632   *=*)
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'"
640     export $ac_envvar ;;
641
642   *)
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}
648     ;;
649
650   esac
651 done
652
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; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662   eval ac_val=$`echo $ac_var`
663   case $ac_val in
664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666    { (exit 1); exit 1; }; };;
667   esac
668 done
669
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
673 do
674   eval ac_val=$`echo $ac_var`
675   case $ac_val in
676     [\\/$]* | ?:[\\/]* ) ;;
677     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678    { (exit 1); exit 1; }; };;
679   esac
680 done
681
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.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
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
696     cross_compiling=yes
697   fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
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 ||
716 echo X"$0" |
717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719           /^X\(\/\/\)$/{ s//\1/; q; }
720           /^X\(\/\).*/{ s//\1/; q; }
721           s/.*/./; q'`
722   srcdir=$ac_confdir
723   if test ! -r $srcdir/$ac_unique_file; then
724     srcdir=..
725   fi
726 else
727   ac_srcdir_defaulted=no
728 fi
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; }; }
733   else
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735    { (exit 1); exit 1; }; }
736   fi
737 fi
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}
755 ac_env_CC_value=$CC
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
774
775 #
776 # Report the --help message.
777 #
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.
781   cat <<_ACEOF
782 \`configure' configures TiMidity++ 2.12.0-pre1b to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
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.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
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 \`..']
801
802 _ACEOF
803
804   cat <<_ACEOF
805 Installation directories:
806   --prefix=PREFIX         install architecture-independent files in PREFIX
807                           [$ac_default_prefix]
808   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
809                           [PREFIX]
810
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'.
815
816 For better control, use the options below.
817
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]
831 _ACEOF
832
833   cat <<\_ACEOF
834
835 Program names:
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
839
840 X features:
841   --x-includes=DIR    X include files are in DIR
842   --x-libraries=DIR   X library files are in DIR
843
844 System types:
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]
848 _ACEOF
849 fi
850
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:";;
854    esac
855   cat <<\_ACEOF
856
857 Optional Features:
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.
867                               oss:       OSS /dev/dsp
868                               sun:       SunOS /dev/audio
869                               hpux:      HPUX /dev/audio
870                               irix:      IRIX audio library
871                               mme:       OSF/1 MME
872                               sb_dsp:    BSD/OS 2.0 /dev/sb_dsp
873                               w32:       Windows MMS
874                               darwin:    Darwin CoreAudio
875                               alsa:      ALSA pcm device
876                               alib:      HPUX network audio (Alib)
877                               nas:       NAS - Network Audio System
878                               arts:      aRts
879                               esd:       EsounD - Enlightened Sound Daemon
880                               portaudio: PortAudio
881                               jack:      JACK
882                               vorbis:    Ogg Vorbis
883                               gogo:      MP3 GOGO (Only Windows is supported)
884   --disable-alsatest      Do not try to compile and run a test Alsa program
885   --disable-artstest       Do not try to compile and run a test ARTS program
886   --disable-esdtest       Do not try to compile and run a test ESD program
887   --disable-oggtest       Do not try to compile and run a test Ogg program
888   --disable-vorbistest       Do not try to compile and run a test Vorbis program
889   --enable-interface=interface_list
890                           Comma separated interface list
891   --enable-dynamic        Enable dynamic link interface   (default is no)
892   --enable-dynamic=dynamic_list
893                           Comma separated dynamic interface list
894   --enable-ncurses        Enable ncurses interface        (default is no)
895   --enable-slang          Enable slang interface          (default is no)
896   --enable-motif          Enable motif interface          (default is no)
897   --enable-tcltk          Enable tcltk interface          (default is no)
898   --enable-emacs          Enable emacs interface          (default is no)
899   --enable-vt100          Enable VT100 interface          (default is no)
900   --enable-xaw            Enable athena interface         (default is no)
901   --enable-xskin          Enable X skin interface         (default is no)
902   --enable-gtk            Enable GTK+ interface           (default is no)
903   --disable-gtktest       Do not try to compile and run a test GTK program
904   --enable-server         Enable server interface         (default is no)
905   --enable-alsaseq        Enable ALSA sequencer server interface
906                                                           (default is no)
907   --enable-winsyn        Enable Windows Synthesizer interface
908                                                           (default is no)
909   --enable-portmidisyn        Enable PortMIDI Synthesizer interface
910                                                           (default is no)
911   --enable-winsyng        Enable Windows GUI Synthesizer interface
912                                                           (default is no)
913   --enable-w32gui         Enable Windows GUI interface    (default is no)
914   --enable-ump            UMP configuration               (default is no)
915   --enable-offix          Enable offix support            (default is no)
916   --enable-network        Enable network support          (default is no)
917   --enable-spectrogram    Enable Sound Spectrogram Viewer (default is no)
918   --enable-spline=method  Specify spline method.
919                                   one of no,linear,cubic,lagrange,newton,gauss
920                                                           (default is linear)
921   --enable-wrd            Enable WRD interface for X      (default is no)
922
923 Optional Packages:
924   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
925   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
926   --with-includes=DIR     Specify include directories (colon separated)
927   --with-libraries=DIR    Specify library directories (colon separated)
928   --with-default-path=DIR Where timidity.cfg is  (PREFIX/share/timidity)
929   --with-module-dir=DIR   Where to install interfaces (PREFIX/lib/timidity)
930   --with-lispdir          Override the default lisp directory
931   --with-elf              create ELF shared object instead of AOUT
932   --with-simd             create SIMD friendly binary (default is no)
933   --with-x                use the X Window System
934   --with-tcl-includes=DIR Tcl include file path
935   --with-tcl-libs=DIR     Tcl library file path
936   --with-tk-includes=DIR  Tk include file path
937   --with-tk-libs=DIR      Tk library file path
938   --with-offix-includes=DIR Offix include file path
939   --with-offix-libs=DIR   Offix include file path
940   --with-nas-library=library NAS absolute library path(Don't use -laudio)
941   --with-nas-includes=DIR NAS include files are in dir
942   --with-default-output=<mode>  Specify default output mode (optional):
943                                 (default|alsa|alib|arts|nas|
944                                 esd|wav|au|aiff|list|vorbis|
945                                 gogo|portaudio|jack)
946   --with-alsa-prefix=PFX  Prefix where Alsa library is installed(optional)
947   --with-alsa-inc-prefix=PFX  Prefix where include libraries are (optional)
948   --with-arts-prefix=PFX   Prefix where ARTS is installed (optional)
949   --with-esd-prefix=PFX   Prefix where ESD is installed (optional)
950   --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
951   --with-ogg=PFX   Prefix where libogg is installed (optional)
952   --with-ogg-libraries=DIR   Directory where libogg library is installed (optional)
953   --with-ogg-includes=DIR   Directory where libogg header files are installed (optional)
954   --with-vorbis=PFX   Prefix where libvorbis is installed (optional)
955   --with-vorbis-libraries=DIR   Directory where libvorbis library is installed (optional)
956   --with-vorbis-includes=DIR   Directory where libvorbis header files are installed (optional)
957   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
958   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
959
960 Some influential environment variables:
961   CC          C compiler command
962   CFLAGS      C compiler flags
963   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
964               nonstandard directory <lib dir>
965   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
966               headers in a nonstandard directory <include dir>
967   CPP         C preprocessor
968
969 Use these variables to override the choices made by `configure' or to help
970 it to find libraries and programs with nonstandard names/locations.
971
972 Report bugs to <root@mput.dip.jp>.
973 _ACEOF
974 fi
975
976 if test "$ac_init_help" = "recursive"; then
977   # If there are subdirs, report their specific --help.
978   ac_popdir=`pwd`
979   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
980     test -d $ac_dir || continue
981     ac_builddir=.
982
983 if test "$ac_dir" != .; then
984   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
985   # A "../" for each directory in $ac_dir_suffix.
986   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
987 else
988   ac_dir_suffix= ac_top_builddir=
989 fi
990
991 case $srcdir in
992   .)  # No --srcdir option.  We are building in place.
993     ac_srcdir=.
994     if test -z "$ac_top_builddir"; then
995        ac_top_srcdir=.
996     else
997        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
998     fi ;;
999   [\\/]* | ?:[\\/]* )  # Absolute path.
1000     ac_srcdir=$srcdir$ac_dir_suffix;
1001     ac_top_srcdir=$srcdir ;;
1002   *) # Relative path.
1003     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1004     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1005 esac
1006 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1007 # absolute.
1008 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1009 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1010 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1011 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1012
1013     cd $ac_dir
1014     # Check for guested configure; otherwise get Cygnus style configure.
1015     if test -f $ac_srcdir/configure.gnu; then
1016       echo
1017       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1018     elif test -f $ac_srcdir/configure; then
1019       echo
1020       $SHELL $ac_srcdir/configure  --help=recursive
1021     elif test -f $ac_srcdir/configure.ac ||
1022            test -f $ac_srcdir/configure.in; then
1023       echo
1024       $ac_configure --help
1025     else
1026       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1027     fi
1028     cd $ac_popdir
1029   done
1030 fi
1031
1032 test -n "$ac_init_help" && exit 0
1033 if $ac_init_version; then
1034   cat <<\_ACEOF
1035 TiMidity++ configure 2.12.0-pre1b
1036 generated by GNU Autoconf 2.57
1037
1038 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1039 Free Software Foundation, Inc.
1040 This configure script is free software; the Free Software Foundation
1041 gives unlimited permission to copy, distribute and modify it.
1042 _ACEOF
1043   exit 0
1044 fi
1045 exec 5>config.log
1046 cat >&5 <<_ACEOF
1047 This file contains any messages produced by compilers while
1048 running configure, to aid debugging if configure makes a mistake.
1049
1050 It was created by TiMidity++ $as_me 2.12.0-pre1b, which was
1051 generated by GNU Autoconf 2.57.  Invocation command line was
1052
1053   $ $0 $@
1054
1055 _ACEOF
1056 {
1057 cat <<_ASUNAME
1058 ## --------- ##
1059 ## Platform. ##
1060 ## --------- ##
1061
1062 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1063 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1064 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1065 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1066 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1067
1068 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1069 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1070
1071 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1072 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1073 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1074 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1075 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1076 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1077 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1078
1079 _ASUNAME
1080
1081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1082 for as_dir in $PATH
1083 do
1084   IFS=$as_save_IFS
1085   test -z "$as_dir" && as_dir=.
1086   echo "PATH: $as_dir"
1087 done
1088
1089 } >&5
1090
1091 cat >&5 <<_ACEOF
1092
1093
1094 ## ----------- ##
1095 ## Core tests. ##
1096 ## ----------- ##
1097
1098 _ACEOF
1099
1100
1101 # Keep a trace of the command line.
1102 # Strip out --no-create and --no-recursion so they do not pile up.
1103 # Strip out --silent because we don't want to record it for future runs.
1104 # Also quote any args containing shell meta-characters.
1105 # Make two passes to allow for proper duplicate-argument suppression.
1106 ac_configure_args=
1107 ac_configure_args0=
1108 ac_configure_args1=
1109 ac_sep=
1110 ac_must_keep_next=false
1111 for ac_pass in 1 2
1112 do
1113   for ac_arg
1114   do
1115     case $ac_arg in
1116     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1117     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1118     | -silent | --silent | --silen | --sile | --sil)
1119       continue ;;
1120     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1121       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1122     esac
1123     case $ac_pass in
1124     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1125     2)
1126       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1127       if test $ac_must_keep_next = true; then
1128         ac_must_keep_next=false # Got value, back to normal.
1129       else
1130         case $ac_arg in
1131           *=* | --config-cache | -C | -disable-* | --disable-* \
1132           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1133           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1134           | -with-* | --with-* | -without-* | --without-* | --x)
1135             case "$ac_configure_args0 " in
1136               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1137             esac
1138             ;;
1139           -* ) ac_must_keep_next=true ;;
1140         esac
1141       fi
1142       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1143       # Get rid of the leading space.
1144       ac_sep=" "
1145       ;;
1146     esac
1147   done
1148 done
1149 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1150 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1151
1152 # When interrupted or exit'd, cleanup temporary files, and complete
1153 # config.log.  We remove comments because anyway the quotes in there
1154 # would cause problems or look ugly.
1155 # WARNING: Be sure not to use single quotes in there, as some shells,
1156 # such as our DU 5.0 friend, will then `close' the trap.
1157 trap 'exit_status=$?
1158   # Save into config.log some information that might help in debugging.
1159   {
1160     echo
1161
1162     cat <<\_ASBOX
1163 ## ---------------- ##
1164 ## Cache variables. ##
1165 ## ---------------- ##
1166 _ASBOX
1167     echo
1168     # The following way of writing the cache mishandles newlines in values,
1169 {
1170   (set) 2>&1 |
1171     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1172     *ac_space=\ *)
1173       sed -n \
1174         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1175           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1176       ;;
1177     *)
1178       sed -n \
1179         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1180       ;;
1181     esac;
1182 }
1183     echo
1184
1185     cat <<\_ASBOX
1186 ## ----------------- ##
1187 ## Output variables. ##
1188 ## ----------------- ##
1189 _ASBOX
1190     echo
1191     for ac_var in $ac_subst_vars
1192     do
1193       eval ac_val=$`echo $ac_var`
1194       echo "$ac_var='"'"'$ac_val'"'"'"
1195     done | sort
1196     echo
1197
1198     if test -n "$ac_subst_files"; then
1199       cat <<\_ASBOX
1200 ## ------------- ##
1201 ## Output files. ##
1202 ## ------------- ##
1203 _ASBOX
1204       echo
1205       for ac_var in $ac_subst_files
1206       do
1207         eval ac_val=$`echo $ac_var`
1208         echo "$ac_var='"'"'$ac_val'"'"'"
1209       done | sort
1210       echo
1211     fi
1212
1213     if test -s confdefs.h; then
1214       cat <<\_ASBOX
1215 ## ----------- ##
1216 ## confdefs.h. ##
1217 ## ----------- ##
1218 _ASBOX
1219       echo
1220       sed "/^$/d" confdefs.h | sort
1221       echo
1222     fi
1223     test "$ac_signal" != 0 &&
1224       echo "$as_me: caught signal $ac_signal"
1225     echo "$as_me: exit $exit_status"
1226   } >&5
1227   rm -f core core.* *.core &&
1228   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1229     exit $exit_status
1230      ' 0
1231 for ac_signal in 1 2 13 15; do
1232   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1233 done
1234 ac_signal=0
1235
1236 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1237 rm -rf conftest* confdefs.h
1238 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1239 echo >confdefs.h
1240
1241 # Predefined preprocessor variables.
1242
1243 cat >>confdefs.h <<_ACEOF
1244 #define PACKAGE_NAME "$PACKAGE_NAME"
1245 _ACEOF
1246
1247
1248 cat >>confdefs.h <<_ACEOF
1249 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1250 _ACEOF
1251
1252
1253 cat >>confdefs.h <<_ACEOF
1254 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1255 _ACEOF
1256
1257
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_STRING "$PACKAGE_STRING"
1260 _ACEOF
1261
1262
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1265 _ACEOF
1266
1267
1268 # Let the site file select an alternate cache file if it wants to.
1269 # Prefer explicitly selected file to automatically selected ones.
1270 if test -z "$CONFIG_SITE"; then
1271   if test "x$prefix" != xNONE; then
1272     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1273   else
1274     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1275   fi
1276 fi
1277 for ac_site_file in $CONFIG_SITE; do
1278   if test -r "$ac_site_file"; then
1279     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1280 echo "$as_me: loading site script $ac_site_file" >&6;}
1281     sed 's/^/| /' "$ac_site_file" >&5
1282     . "$ac_site_file"
1283   fi
1284 done
1285
1286 if test -r "$cache_file"; then
1287   # Some versions of bash will fail to source /dev/null (special
1288   # files actually), so we avoid doing that.
1289   if test -f "$cache_file"; then
1290     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1291 echo "$as_me: loading cache $cache_file" >&6;}
1292     case $cache_file in
1293       [\\/]* | ?:[\\/]* ) . $cache_file;;
1294       *)                      . ./$cache_file;;
1295     esac
1296   fi
1297 else
1298   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1299 echo "$as_me: creating cache $cache_file" >&6;}
1300   >$cache_file
1301 fi
1302
1303 # Check that the precious variables saved in the cache have kept the same
1304 # value.
1305 ac_cache_corrupted=false
1306 for ac_var in `(set) 2>&1 |
1307                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1308   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1309   eval ac_new_set=\$ac_env_${ac_var}_set
1310   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1311   eval ac_new_val="\$ac_env_${ac_var}_value"
1312   case $ac_old_set,$ac_new_set in
1313     set,)
1314       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1315 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1316       ac_cache_corrupted=: ;;
1317     ,set)
1318       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1319 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1320       ac_cache_corrupted=: ;;
1321     ,);;
1322     *)
1323       if test "x$ac_old_val" != "x$ac_new_val"; then
1324         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1325 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1326         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1327 echo "$as_me:   former value:  $ac_old_val" >&2;}
1328         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1329 echo "$as_me:   current value: $ac_new_val" >&2;}
1330         ac_cache_corrupted=:
1331       fi;;
1332   esac
1333   # Pass precious variables to config.status.
1334   if test "$ac_new_set" = set; then
1335     case $ac_new_val in
1336     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1337       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1338     *) ac_arg=$ac_var=$ac_new_val ;;
1339     esac
1340     case " $ac_configure_args " in
1341       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1342       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1343     esac
1344   fi
1345 done
1346 if $ac_cache_corrupted; then
1347   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1348 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1349   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1350 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1351    { (exit 1); exit 1; }; }
1352 fi
1353
1354 ac_ext=c
1355 ac_cpp='$CPP $CPPFLAGS'
1356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386 ac_aux_dir=
1387 for ac_dir in autoconf $srcdir/autoconf; do
1388   if test -f $ac_dir/install-sh; then
1389     ac_aux_dir=$ac_dir
1390     ac_install_sh="$ac_aux_dir/install-sh -c"
1391     break
1392   elif test -f $ac_dir/install.sh; then
1393     ac_aux_dir=$ac_dir
1394     ac_install_sh="$ac_aux_dir/install.sh -c"
1395     break
1396   elif test -f $ac_dir/shtool; then
1397     ac_aux_dir=$ac_dir
1398     ac_install_sh="$ac_aux_dir/shtool install -c"
1399     break
1400   fi
1401 done
1402 if test -z "$ac_aux_dir"; then
1403   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1404 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1405    { (exit 1); exit 1; }; }
1406 fi
1407 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1408 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1409 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1410
1411 # Make sure we can run config.sub.
1412 $ac_config_sub sun4 >/dev/null 2>&1 ||
1413   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1414 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1415    { (exit 1); exit 1; }; }
1416
1417 echo "$as_me:$LINENO: checking build system type" >&5
1418 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1419 if test "${ac_cv_build+set}" = set; then
1420   echo $ECHO_N "(cached) $ECHO_C" >&6
1421 else
1422   ac_cv_build_alias=$build_alias
1423 test -z "$ac_cv_build_alias" &&
1424   ac_cv_build_alias=`$ac_config_guess`
1425 test -z "$ac_cv_build_alias" &&
1426   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1427 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1428    { (exit 1); exit 1; }; }
1429 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1430   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1431 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1432    { (exit 1); exit 1; }; }
1433
1434 fi
1435 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1436 echo "${ECHO_T}$ac_cv_build" >&6
1437 build=$ac_cv_build
1438 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1439 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1440 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1441
1442
1443 echo "$as_me:$LINENO: checking host system type" >&5
1444 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1445 if test "${ac_cv_host+set}" = set; then
1446   echo $ECHO_N "(cached) $ECHO_C" >&6
1447 else
1448   ac_cv_host_alias=$host_alias
1449 test -z "$ac_cv_host_alias" &&
1450   ac_cv_host_alias=$ac_cv_build_alias
1451 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1452   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1453 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1454    { (exit 1); exit 1; }; }
1455
1456 fi
1457 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1458 echo "${ECHO_T}$ac_cv_host" >&6
1459 host=$ac_cv_host
1460 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1461 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1462 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1463
1464
1465 echo "$as_me:$LINENO: checking target system type" >&5
1466 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1467 if test "${ac_cv_target+set}" = set; then
1468   echo $ECHO_N "(cached) $ECHO_C" >&6
1469 else
1470   ac_cv_target_alias=$target_alias
1471 test "x$ac_cv_target_alias" = "x" &&
1472   ac_cv_target_alias=$ac_cv_host_alias
1473 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1474   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1475 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1476    { (exit 1); exit 1; }; }
1477
1478 fi
1479 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1480 echo "${ECHO_T}$ac_cv_target" >&6
1481 target=$ac_cv_target
1482 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1483 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1484 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1485
1486
1487 # The aliases save the names the user supplied, while $host etc.
1488 # will get canonicalized.
1489 test -n "$target_alias" &&
1490   test "$program_prefix$program_suffix$program_transform_name" = \
1491     NONENONEs,x,x, &&
1492   program_prefix=${target_alias}-
1493 am__api_version="1.7"
1494 # Find a good install program.  We prefer a C program (faster),
1495 # so one script is as good as another.  But avoid the broken or
1496 # incompatible versions:
1497 # SysV /etc/install, /usr/sbin/install
1498 # SunOS /usr/etc/install
1499 # IRIX /sbin/install
1500 # AIX /bin/install
1501 # AmigaOS /C/install, which installs bootblocks on floppy discs
1502 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1503 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1504 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1505 # ./install, which can be erroneously created by make from ./install.sh.
1506 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1507 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1508 if test -z "$INSTALL"; then
1509 if test "${ac_cv_path_install+set}" = set; then
1510   echo $ECHO_N "(cached) $ECHO_C" >&6
1511 else
1512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1513 for as_dir in $PATH
1514 do
1515   IFS=$as_save_IFS
1516   test -z "$as_dir" && as_dir=.
1517   # Account for people who put trailing slashes in PATH elements.
1518 case $as_dir/ in
1519   ./ | .// | /cC/* | \
1520   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1521   /usr/ucb/* ) ;;
1522   *)
1523     # OSF1 and SCO ODT 3.0 have their own names for install.
1524     # Don't use installbsd from OSF since it installs stuff as root
1525     # by default.
1526     for ac_prog in ginstall scoinst install; do
1527       for ac_exec_ext in '' $ac_executable_extensions; do
1528         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1529           if test $ac_prog = install &&
1530             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1531             # AIX install.  It has an incompatible calling convention.
1532             :
1533           elif test $ac_prog = install &&
1534             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1535             # program-specific install script used by HP pwplus--don't use.
1536             :
1537           else
1538             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1539             break 3
1540           fi
1541         fi
1542       done
1543     done
1544     ;;
1545 esac
1546 done
1547
1548
1549 fi
1550   if test "${ac_cv_path_install+set}" = set; then
1551     INSTALL=$ac_cv_path_install
1552   else
1553     # As a last resort, use the slow shell script.  We don't cache a
1554     # path for INSTALL within a source directory, because that will
1555     # break other packages using the cache if that directory is
1556     # removed, or if the path is relative.
1557     INSTALL=$ac_install_sh
1558   fi
1559 fi
1560 echo "$as_me:$LINENO: result: $INSTALL" >&5
1561 echo "${ECHO_T}$INSTALL" >&6
1562
1563 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1564 # It thinks the first close brace ends the variable substitution.
1565 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1566
1567 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1568
1569 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1570
1571 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1572 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1573 # Just in case
1574 sleep 1
1575 echo timestamp > conftest.file
1576 # Do `set' in a subshell so we don't clobber the current shell's
1577 # arguments.  Must try -L first in case configure is actually a
1578 # symlink; some systems play weird games with the mod time of symlinks
1579 # (eg FreeBSD returns the mod time of the symlink's containing
1580 # directory).
1581 if (
1582    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1583    if test "$*" = "X"; then
1584       # -L didn't work.
1585       set X `ls -t $srcdir/configure conftest.file`
1586    fi
1587    rm -f conftest.file
1588    if test "$*" != "X $srcdir/configure conftest.file" \
1589       && test "$*" != "X conftest.file $srcdir/configure"; then
1590
1591       # If neither matched, then we have a broken ls.  This can happen
1592       # if, for instance, CONFIG_SHELL is bash and it inherits a
1593       # broken ls alias from the environment.  This has actually
1594       # happened.  Such a system could not be considered "sane".
1595       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1596 alias in your environment" >&5
1597 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1598 alias in your environment" >&2;}
1599    { (exit 1); exit 1; }; }
1600    fi
1601
1602    test "$2" = conftest.file
1603    )
1604 then
1605    # Ok.
1606    :
1607 else
1608    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1609 Check your system clock" >&5
1610 echo "$as_me: error: newly created file is older than distributed files!
1611 Check your system clock" >&2;}
1612    { (exit 1); exit 1; }; }
1613 fi
1614 echo "$as_me:$LINENO: result: yes" >&5
1615 echo "${ECHO_T}yes" >&6
1616 test "$program_prefix" != NONE &&
1617   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1618 # Use a double $ so make ignores it.
1619 test "$program_suffix" != NONE &&
1620   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1621 # Double any \ or $.  echo might interpret backslashes.
1622 # By default was `s,x,x', remove it if useless.
1623 cat <<\_ACEOF >conftest.sed
1624 s/[\\$]/&&/g;s/;s,x,x,$//
1625 _ACEOF
1626 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1627 rm conftest.sed
1628
1629
1630 # expand $ac_aux_dir to an absolute path
1631 am_aux_dir=`cd $ac_aux_dir && pwd`
1632
1633 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1634 # Use eval to expand $SHELL
1635 if eval "$MISSING --run true"; then
1636   am_missing_run="$MISSING --run "
1637 else
1638   am_missing_run=
1639   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1640 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1641 fi
1642
1643 for ac_prog in gawk mawk nawk awk
1644 do
1645   # Extract the first word of "$ac_prog", so it can be a program name with args.
1646 set dummy $ac_prog; ac_word=$2
1647 echo "$as_me:$LINENO: checking for $ac_word" >&5
1648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1649 if test "${ac_cv_prog_AWK+set}" = set; then
1650   echo $ECHO_N "(cached) $ECHO_C" >&6
1651 else
1652   if test -n "$AWK"; then
1653   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1654 else
1655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656 for as_dir in $PATH
1657 do
1658   IFS=$as_save_IFS
1659   test -z "$as_dir" && as_dir=.
1660   for ac_exec_ext in '' $ac_executable_extensions; do
1661   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662     ac_cv_prog_AWK="$ac_prog"
1663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664     break 2
1665   fi
1666 done
1667 done
1668
1669 fi
1670 fi
1671 AWK=$ac_cv_prog_AWK
1672 if test -n "$AWK"; then
1673   echo "$as_me:$LINENO: result: $AWK" >&5
1674 echo "${ECHO_T}$AWK" >&6
1675 else
1676   echo "$as_me:$LINENO: result: no" >&5
1677 echo "${ECHO_T}no" >&6
1678 fi
1679
1680   test -n "$AWK" && break
1681 done
1682
1683 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1684 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1685 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1686 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1687   echo $ECHO_N "(cached) $ECHO_C" >&6
1688 else
1689   cat >conftest.make <<\_ACEOF
1690 all:
1691         @echo 'ac_maketemp="$(MAKE)"'
1692 _ACEOF
1693 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1694 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1695 if test -n "$ac_maketemp"; then
1696   eval ac_cv_prog_make_${ac_make}_set=yes
1697 else
1698   eval ac_cv_prog_make_${ac_make}_set=no
1699 fi
1700 rm -f conftest.make
1701 fi
1702 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1703   echo "$as_me:$LINENO: result: yes" >&5
1704 echo "${ECHO_T}yes" >&6
1705   SET_MAKE=
1706 else
1707   echo "$as_me:$LINENO: result: no" >&5
1708 echo "${ECHO_T}no" >&6
1709   SET_MAKE="MAKE=${MAKE-make}"
1710 fi
1711
1712 rm -rf .tst 2>/dev/null
1713 mkdir .tst 2>/dev/null
1714 if test -d .tst; then
1715   am__leading_dot=.
1716 else
1717   am__leading_dot=_
1718 fi
1719 rmdir .tst 2>/dev/null
1720
1721  # test to see if srcdir already configured
1722 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1723    test -f $srcdir/config.status; then
1724   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1725 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1726    { (exit 1); exit 1; }; }
1727 fi
1728
1729 # test whether we have cygpath
1730 if test -z "$CYGPATH_W"; then
1731   if (cygpath --version) >/dev/null 2>/dev/null; then
1732     CYGPATH_W='cygpath -w'
1733   else
1734     CYGPATH_W=echo
1735   fi
1736 fi
1737
1738
1739 # Define the identity of the package.
1740  PACKAGE='TiMidity++'
1741  VERSION='2.12.0-pre1b'
1742
1743
1744 cat >>confdefs.h <<_ACEOF
1745 #define PACKAGE "$PACKAGE"
1746 _ACEOF
1747
1748
1749 cat >>confdefs.h <<_ACEOF
1750 #define VERSION "$VERSION"
1751 _ACEOF
1752
1753 # Some tools Automake needs.
1754
1755 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1756
1757
1758 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1759
1760
1761 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1762
1763
1764 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1765
1766
1767 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1768
1769
1770 AMTAR=${AMTAR-"${am_missing_run}tar"}
1771
1772 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1773
1774 # Installed binaries are usually stripped using `strip' when the user
1775 # run `make install-strip'.  However `strip' might not be the right
1776 # tool to use in cross-compilation environments, therefore Automake
1777 # will honor the `STRIP' environment variable to overrule this program.
1778 if test "$cross_compiling" != no; then
1779   if test -n "$ac_tool_prefix"; then
1780   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1781 set dummy ${ac_tool_prefix}strip; ac_word=$2
1782 echo "$as_me:$LINENO: checking for $ac_word" >&5
1783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1784 if test "${ac_cv_prog_STRIP+set}" = set; then
1785   echo $ECHO_N "(cached) $ECHO_C" >&6
1786 else
1787   if test -n "$STRIP"; then
1788   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1789 else
1790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1791 for as_dir in $PATH
1792 do
1793   IFS=$as_save_IFS
1794   test -z "$as_dir" && as_dir=.
1795   for ac_exec_ext in '' $ac_executable_extensions; do
1796   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1797     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1799     break 2
1800   fi
1801 done
1802 done
1803
1804 fi
1805 fi
1806 STRIP=$ac_cv_prog_STRIP
1807 if test -n "$STRIP"; then
1808   echo "$as_me:$LINENO: result: $STRIP" >&5
1809 echo "${ECHO_T}$STRIP" >&6
1810 else
1811   echo "$as_me:$LINENO: result: no" >&5
1812 echo "${ECHO_T}no" >&6
1813 fi
1814
1815 fi
1816 if test -z "$ac_cv_prog_STRIP"; then
1817   ac_ct_STRIP=$STRIP
1818   # Extract the first word of "strip", so it can be a program name with args.
1819 set dummy strip; ac_word=$2
1820 echo "$as_me:$LINENO: checking for $ac_word" >&5
1821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1822 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1823   echo $ECHO_N "(cached) $ECHO_C" >&6
1824 else
1825   if test -n "$ac_ct_STRIP"; then
1826   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1827 else
1828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1829 for as_dir in $PATH
1830 do
1831   IFS=$as_save_IFS
1832   test -z "$as_dir" && as_dir=.
1833   for ac_exec_ext in '' $ac_executable_extensions; do
1834   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1835     ac_cv_prog_ac_ct_STRIP="strip"
1836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1837     break 2
1838   fi
1839 done
1840 done
1841
1842   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1843 fi
1844 fi
1845 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1846 if test -n "$ac_ct_STRIP"; then
1847   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1848 echo "${ECHO_T}$ac_ct_STRIP" >&6
1849 else
1850   echo "$as_me:$LINENO: result: no" >&5
1851 echo "${ECHO_T}no" >&6
1852 fi
1853
1854   STRIP=$ac_ct_STRIP
1855 else
1856   STRIP="$ac_cv_prog_STRIP"
1857 fi
1858
1859 fi
1860 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1861
1862 # We need awk for the "check" target.  The system "awk" is bad on
1863 # some platforms.
1864
1865
1866
1867
1868                     ac_config_headers="$ac_config_headers config.h interface.h"
1869
1870 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1871 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1872     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1873 if test "${enable_maintainer_mode+set}" = set; then
1874   enableval="$enable_maintainer_mode"
1875   USE_MAINTAINER_MODE=$enableval
1876 else
1877   USE_MAINTAINER_MODE=no
1878 fi;
1879   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1880 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1881
1882
1883 if test $USE_MAINTAINER_MODE = yes; then
1884   MAINTAINER_MODE_TRUE=
1885   MAINTAINER_MODE_FALSE='#'
1886 else
1887   MAINTAINER_MODE_TRUE='#'
1888   MAINTAINER_MODE_FALSE=
1889 fi
1890
1891   MAINT=$MAINTAINER_MODE_TRUE
1892
1893
1894
1895 SHELL=${CONFIG_SHELL-"/bin/sh"}
1896 WISH=${WISH-"wish"}
1897
1898 echo "$as_me:$LINENO: checking whether grep returns status" >&5
1899 echo $ECHO_N "checking whether grep returns status... $ECHO_C" >&6
1900 echo "grimblepritz" >grimble
1901 if grep blurfldyick grimble >/dev/null 2>&1 ; then
1902         contains="./contains"
1903 elif grep grimblepritz grimble >/dev/null 2>&1 ; then
1904         contains=grep
1905 else
1906         contains="./contains"
1907 fi
1908 rm -f grimble
1909 case "$contains" in
1910 grep)   echo "$as_me:$LINENO: result: yes" >&5
1911 echo "${ECHO_T}yes" >&6
1912         ;;
1913 ./contains)
1914         echo "$as_me:$LINENO: result: AGH!  Grep doesn't return a status.  Attempting remedial action." >&5
1915 echo "${ECHO_T}AGH!  Grep doesn't return a status.  Attempting remedial action." >&6
1916         cat >./contains <<'EOSS'
1917 grep "$1" "$2" >.greptmp && cat .greptmp && test -s .greptmp
1918 EOSS
1919         chmod +x "./contains"
1920         ;;
1921 esac
1922
1923
1924 # Check for compiler options -- such as debug flags.
1925
1926 echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
1927 echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6
1928 # Check whether --enable-debug or --disable-debug was given.
1929 if test "${enable_debug+set}" = set; then
1930   enableval="$enable_debug"
1931   timidity_cv_debug="yes"
1932 else
1933   timidity_cv_debug="no"
1934 fi;
1935 if test "x$timidity_cv_debug" = "xyes"; then
1936
1937 cat >>confdefs.h <<\_ACEOF
1938 #define DEBUG 1
1939 _ACEOF
1940
1941   CFLAGS=${CFLAGS-"-g"}
1942 fi
1943 if test "x$timidity_cv_debug" = "xno"; then
1944
1945 cat >>confdefs.h <<\_ACEOF
1946 #define NDEBUG 1
1947 _ACEOF
1948
1949 fi
1950 echo "$as_me:$LINENO: result: $timidity_cv_debug" >&5
1951 echo "${ECHO_T}$timidity_cv_debug" >&6
1952
1953 CFLAGS=${CFLAGS-"-O2"}
1954
1955 if test "x$with_x" = x; then
1956   with_x=yes
1957 else
1958   x_config_flag=yes
1959 fi
1960
1961 # Checking gcc environment
1962 for i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do
1963   LDFLAGS="$LDFLAGS -L${i}"
1964 done
1965 for i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do
1966   CPPFLAGS="$CPPFLAGS -I${i}"
1967 done
1968
1969 # add $prefix if specified.
1970 if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then
1971   LDFLAGS="-L$prefix/lib $LDFLAGS"
1972   SHLDFLAGS="-L$prefix/lib $SHLDFLAGS"
1973   CPPFLAGS="-I$prefix/include $CPPFLAGS"
1974 fi
1975
1976
1977 # Check whether --with-includes or --without-includes was given.
1978 if test "${with_includes+set}" = set; then
1979   withval="$with_includes"
1980    j=' '
1981     for i in `echo "$withval"|sed -e 's,:, ,g'`; do
1982       j="${j}-I${i} "
1983     done
1984     CPPFLAGS="$j$CPPFLAGS"
1985
1986 fi;
1987
1988
1989 # Check whether --with-libraries or --without-libraries was given.
1990 if test "${with_libraries+set}" = set; then
1991   withval="$with_libraries"
1992    j=' '
1993     for i in `echo "$withval"|sed -e 's,:, ,g'`; do
1994       j="${j}-L${i} "
1995     done
1996     LDFLAGS="$j$LDFLAGS"
1997
1998 fi;
1999
2000
2001
2002 # Check whether --with-default-path or --without-default-path was given.
2003 if test "${with_default_path+set}" = set; then
2004   withval="$with_default_path"
2005   pkgdatadir=$withval
2006 else
2007
2008    if test "x$prefix" != "xNONE"; then
2009       pkgdatadir='${prefix}/share/timidity'
2010    else
2011       pkgdatadir='/usr/local/share/timidity'
2012    fi
2013
2014 fi;
2015 tmpdefpath="`eval \"echo ${pkgdatadir}\"`"
2016
2017 cat >>confdefs.h <<_ACEOF
2018 #define DEFAULT_PATH "$tmpdefpath"
2019 _ACEOF
2020
2021
2022 cat >>confdefs.h <<\_ACEOF
2023 #define PKGDATADIR DEFAULT_PATH
2024 _ACEOF
2025
2026
2027
2028 # Check whether --with-module-dir or --without-module-dir was given.
2029 if test "${with_module_dir+set}" = set; then
2030   withval="$with_module_dir"
2031   pkglibdir=$withval
2032 else
2033
2034    if test "x$prefix" != "xNONE"; then
2035       pkglibdir='${prefix}/lib/timidity'
2036    else
2037       pkglibdir='/usr/local/lib/timidity'
2038    fi
2039
2040 fi;
2041 tmplibdir="`eval \"echo ${pkglibdir}\"`"
2042
2043 cat >>confdefs.h <<_ACEOF
2044 #define PKGLIBDIR "$tmplibdir"
2045 _ACEOF
2046
2047
2048
2049 # Checks for programs.
2050
2051 # Check whether --with-lispdir or --without-lispdir was given.
2052 if test "${with_lispdir+set}" = set; then
2053   withval="$with_lispdir"
2054    lispdir="$withval"
2055    echo "$as_me:$LINENO: checking where .elc files should go" >&5
2056 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2057    echo "$as_me:$LINENO: result: $lispdir" >&5
2058 echo "${ECHO_T}$lispdir" >&6
2059 else
2060
2061  # If set to t, that means we are running in a shell under Emacs.
2062  # If you have an Emacs named "t", then use the full path.
2063  test x"$EMACS" = xt && EMACS=
2064  for ac_prog in emacs xemacs
2065 do
2066   # Extract the first word of "$ac_prog", so it can be a program name with args.
2067 set dummy $ac_prog; ac_word=$2
2068 echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2070 if test "${ac_cv_prog_EMACS+set}" = set; then
2071   echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073   if test -n "$EMACS"; then
2074   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2075 else
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 for as_dir in $PATH
2078 do
2079   IFS=$as_save_IFS
2080   test -z "$as_dir" && as_dir=.
2081   for ac_exec_ext in '' $ac_executable_extensions; do
2082   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2083     ac_cv_prog_EMACS="$ac_prog"
2084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085     break 2
2086   fi
2087 done
2088 done
2089
2090 fi
2091 fi
2092 EMACS=$ac_cv_prog_EMACS
2093 if test -n "$EMACS"; then
2094   echo "$as_me:$LINENO: result: $EMACS" >&5
2095 echo "${ECHO_T}$EMACS" >&6
2096 else
2097   echo "$as_me:$LINENO: result: no" >&5
2098 echo "${ECHO_T}no" >&6
2099 fi
2100
2101   test -n "$EMACS" && break
2102 done
2103 test -n "$EMACS" || EMACS="no"
2104
2105  if test $EMACS != "no"; then
2106    if test x${lispdir+set} != xset; then
2107      echo "$as_me:$LINENO: checking where .elc files should go" >&5
2108 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2109 if test "${am_cv_lispdir+set}" = set; then
2110   echo $ECHO_N "(cached) $ECHO_C" >&6
2111 else
2112   # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
2113   # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
2114   #  which is non-obvious for non-emacs users.
2115   # Redirecting /dev/null should help a bit; pity we can't detect "broken"
2116   #  emacsen earlier and avoid running this altogether.
2117   { (echo "$as_me:$LINENO: \$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) \"\\n\")) (setq load-path (cdr load-path)))' </dev/null >conftest.out") >&5
2118   ($EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out) 2>&5
2119   ac_status=$?
2120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121   (exit $ac_status); }
2122         am_cv_lispdir=`sed -n \
2123        -e 's,/$,,' \
2124        -e '/.*\/lib\/\(x\?emacs\/site-lisp\)$/{s,,${libdir}/\1,;p;q;}' \
2125        -e '/.*\/share\/\(x\?emacs\/site-lisp\)$/{s,,${datadir}/\1,;p;q;}' \
2126        conftest.out`
2127        rm conftest.out
2128        if test -z "$am_cv_lispdir"; then
2129          am_cv_lispdir='${datadir}/emacs/site-lisp'
2130        fi
2131
2132 fi
2133 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2134 echo "${ECHO_T}$am_cv_lispdir" >&6
2135      lispdir="$am_cv_lispdir"
2136    fi
2137  fi
2138
2139 fi;
2140
2141
2142 ac_ext=c
2143 ac_cpp='$CPP $CPPFLAGS'
2144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2147 if test -n "$ac_tool_prefix"; then
2148   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2149 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2150 echo "$as_me:$LINENO: checking for $ac_word" >&5
2151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2152 if test "${ac_cv_prog_CC+set}" = set; then
2153   echo $ECHO_N "(cached) $ECHO_C" >&6
2154 else
2155   if test -n "$CC"; then
2156   ac_cv_prog_CC="$CC" # Let the user override the test.
2157 else
2158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159 for as_dir in $PATH
2160 do
2161   IFS=$as_save_IFS
2162   test -z "$as_dir" && as_dir=.
2163   for ac_exec_ext in '' $ac_executable_extensions; do
2164   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2165     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2167     break 2
2168   fi
2169 done
2170 done
2171
2172 fi
2173 fi
2174 CC=$ac_cv_prog_CC
2175 if test -n "$CC"; then
2176   echo "$as_me:$LINENO: result: $CC" >&5
2177 echo "${ECHO_T}$CC" >&6
2178 else
2179   echo "$as_me:$LINENO: result: no" >&5
2180 echo "${ECHO_T}no" >&6
2181 fi
2182
2183 fi
2184 if test -z "$ac_cv_prog_CC"; then
2185   ac_ct_CC=$CC
2186   # Extract the first word of "gcc", so it can be a program name with args.
2187 set dummy gcc; ac_word=$2
2188 echo "$as_me:$LINENO: checking for $ac_word" >&5
2189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2190 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2191   echo $ECHO_N "(cached) $ECHO_C" >&6
2192 else
2193   if test -n "$ac_ct_CC"; then
2194   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2195 else
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 for as_dir in $PATH
2198 do
2199   IFS=$as_save_IFS
2200   test -z "$as_dir" && as_dir=.
2201   for ac_exec_ext in '' $ac_executable_extensions; do
2202   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2203     ac_cv_prog_ac_ct_CC="gcc"
2204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205     break 2
2206   fi
2207 done
2208 done
2209
2210 fi
2211 fi
2212 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2213 if test -n "$ac_ct_CC"; then
2214   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2215 echo "${ECHO_T}$ac_ct_CC" >&6
2216 else
2217   echo "$as_me:$LINENO: result: no" >&5
2218 echo "${ECHO_T}no" >&6
2219 fi
2220
2221   CC=$ac_ct_CC
2222 else
2223   CC="$ac_cv_prog_CC"
2224 fi
2225
2226 if test -z "$CC"; then
2227   if test -n "$ac_tool_prefix"; then
2228   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2229 set dummy ${ac_tool_prefix}cc; ac_word=$2
2230 echo "$as_me:$LINENO: checking for $ac_word" >&5
2231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2232 if test "${ac_cv_prog_CC+set}" = set; then
2233   echo $ECHO_N "(cached) $ECHO_C" >&6
2234 else
2235   if test -n "$CC"; then
2236   ac_cv_prog_CC="$CC" # Let the user override the test.
2237 else
2238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239 for as_dir in $PATH
2240 do
2241   IFS=$as_save_IFS
2242   test -z "$as_dir" && as_dir=.
2243   for ac_exec_ext in '' $ac_executable_extensions; do
2244   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2245     ac_cv_prog_CC="${ac_tool_prefix}cc"
2246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2247     break 2
2248   fi
2249 done
2250 done
2251
2252 fi
2253 fi
2254 CC=$ac_cv_prog_CC
2255 if test -n "$CC"; then
2256   echo "$as_me:$LINENO: result: $CC" >&5
2257 echo "${ECHO_T}$CC" >&6
2258 else
2259   echo "$as_me:$LINENO: result: no" >&5
2260 echo "${ECHO_T}no" >&6
2261 fi
2262
2263 fi
2264 if test -z "$ac_cv_prog_CC"; then
2265   ac_ct_CC=$CC
2266   # Extract the first word of "cc", so it can be a program name with args.
2267 set dummy cc; ac_word=$2
2268 echo "$as_me:$LINENO: checking for $ac_word" >&5
2269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2270 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2271   echo $ECHO_N "(cached) $ECHO_C" >&6
2272 else
2273   if test -n "$ac_ct_CC"; then
2274   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2275 else
2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277 for as_dir in $PATH
2278 do
2279   IFS=$as_save_IFS
2280   test -z "$as_dir" && as_dir=.
2281   for ac_exec_ext in '' $ac_executable_extensions; do
2282   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2283     ac_cv_prog_ac_ct_CC="cc"
2284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285     break 2
2286   fi
2287 done
2288 done
2289
2290 fi
2291 fi
2292 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2293 if test -n "$ac_ct_CC"; then
2294   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2295 echo "${ECHO_T}$ac_ct_CC" >&6
2296 else
2297   echo "$as_me:$LINENO: result: no" >&5
2298 echo "${ECHO_T}no" >&6
2299 fi
2300
2301   CC=$ac_ct_CC
2302 else
2303   CC="$ac_cv_prog_CC"
2304 fi
2305
2306 fi
2307 if test -z "$CC"; then
2308   # Extract the first word of "cc", so it can be a program name with args.
2309 set dummy cc; ac_word=$2
2310 echo "$as_me:$LINENO: checking for $ac_word" >&5
2311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2312 if test "${ac_cv_prog_CC+set}" = set; then
2313   echo $ECHO_N "(cached) $ECHO_C" >&6
2314 else
2315   if test -n "$CC"; then
2316   ac_cv_prog_CC="$CC" # Let the user override the test.
2317 else
2318   ac_prog_rejected=no
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 for as_dir in $PATH
2321 do
2322   IFS=$as_save_IFS
2323   test -z "$as_dir" && as_dir=.
2324   for ac_exec_ext in '' $ac_executable_extensions; do
2325   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2326     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2327        ac_prog_rejected=yes
2328        continue
2329      fi
2330     ac_cv_prog_CC="cc"
2331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2332     break 2
2333   fi
2334 done
2335 done
2336
2337 if test $ac_prog_rejected = yes; then
2338   # We found a bogon in the path, so make sure we never use it.
2339   set dummy $ac_cv_prog_CC
2340   shift
2341   if test $# != 0; then
2342     # We chose a different compiler from the bogus one.
2343     # However, it has the same basename, so the bogon will be chosen
2344     # first if we set CC to just the basename; use the full file name.
2345     shift
2346     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2347   fi
2348 fi
2349 fi
2350 fi
2351 CC=$ac_cv_prog_CC
2352 if test -n "$CC"; then
2353   echo "$as_me:$LINENO: result: $CC" >&5
2354 echo "${ECHO_T}$CC" >&6
2355 else
2356   echo "$as_me:$LINENO: result: no" >&5
2357 echo "${ECHO_T}no" >&6
2358 fi
2359
2360 fi
2361 if test -z "$CC"; then
2362   if test -n "$ac_tool_prefix"; then
2363   for ac_prog in cl
2364   do
2365     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2366 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2367 echo "$as_me:$LINENO: checking for $ac_word" >&5
2368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2369 if test "${ac_cv_prog_CC+set}" = set; then
2370   echo $ECHO_N "(cached) $ECHO_C" >&6
2371 else
2372   if test -n "$CC"; then
2373   ac_cv_prog_CC="$CC" # Let the user override the test.
2374 else
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 for as_dir in $PATH
2377 do
2378   IFS=$as_save_IFS
2379   test -z "$as_dir" && as_dir=.
2380   for ac_exec_ext in '' $ac_executable_extensions; do
2381   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2382     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2384     break 2
2385   fi
2386 done
2387 done
2388
2389 fi
2390 fi
2391 CC=$ac_cv_prog_CC
2392 if test -n "$CC"; then
2393   echo "$as_me:$LINENO: result: $CC" >&5
2394 echo "${ECHO_T}$CC" >&6
2395 else
2396   echo "$as_me:$LINENO: result: no" >&5
2397 echo "${ECHO_T}no" >&6
2398 fi
2399
2400     test -n "$CC" && break
2401   done
2402 fi
2403 if test -z "$CC"; then
2404   ac_ct_CC=$CC
2405   for ac_prog in cl
2406 do
2407   # Extract the first word of "$ac_prog", so it can be a program name with args.
2408 set dummy $ac_prog; ac_word=$2
2409 echo "$as_me:$LINENO: checking for $ac_word" >&5
2410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2411 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2412   echo $ECHO_N "(cached) $ECHO_C" >&6
2413 else
2414   if test -n "$ac_ct_CC"; then
2415   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2416 else
2417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418 for as_dir in $PATH
2419 do
2420   IFS=$as_save_IFS
2421   test -z "$as_dir" && as_dir=.
2422   for ac_exec_ext in '' $ac_executable_extensions; do
2423   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2424     ac_cv_prog_ac_ct_CC="$ac_prog"
2425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2426     break 2
2427   fi
2428 done
2429 done
2430
2431 fi
2432 fi
2433 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2434 if test -n "$ac_ct_CC"; then
2435   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2436 echo "${ECHO_T}$ac_ct_CC" >&6
2437 else
2438   echo "$as_me:$LINENO: result: no" >&5
2439 echo "${ECHO_T}no" >&6
2440 fi
2441
2442   test -n "$ac_ct_CC" && break
2443 done
2444
2445   CC=$ac_ct_CC
2446 fi
2447
2448 fi
2449
2450
2451 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2452 See \`config.log' for more details." >&5
2453 echo "$as_me: error: no acceptable C compiler found in \$PATH
2454 See \`config.log' for more details." >&2;}
2455    { (exit 1); exit 1; }; }
2456
2457 # Provide some information about the compiler.
2458 echo "$as_me:$LINENO:" \
2459      "checking for C compiler version" >&5
2460 ac_compiler=`set X $ac_compile; echo $2`
2461 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2462   (eval $ac_compiler --version </dev/null >&5) 2>&5
2463   ac_status=$?
2464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465   (exit $ac_status); }
2466 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2467   (eval $ac_compiler -v </dev/null >&5) 2>&5
2468   ac_status=$?
2469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470   (exit $ac_status); }
2471 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2472   (eval $ac_compiler -V </dev/null >&5) 2>&5
2473   ac_status=$?
2474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475   (exit $ac_status); }
2476
2477 cat >conftest.$ac_ext <<_ACEOF
2478 #line $LINENO "configure"
2479 /* confdefs.h.  */
2480 _ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h.  */
2484
2485 int
2486 main ()
2487 {
2488
2489   ;
2490   return 0;
2491 }
2492 _ACEOF
2493 ac_clean_files_save=$ac_clean_files
2494 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2495 # Try to create an executable without -o first, disregard a.out.
2496 # It will help us diagnose broken compilers, and finding out an intuition
2497 # of exeext.
2498 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2499 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2500 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2501 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2502   (eval $ac_link_default) 2>&5
2503   ac_status=$?
2504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505   (exit $ac_status); }; then
2506   # Find the output, starting from the most likely.  This scheme is
2507 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2508 # resort.
2509
2510 # Be careful to initialize this variable, since it used to be cached.
2511 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2512 ac_cv_exeext=
2513 # b.out is created by i960 compilers.
2514 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2515 do
2516   test -f "$ac_file" || continue
2517   case $ac_file in
2518     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2519         ;;
2520     conftest.$ac_ext )
2521         # This is the source file.
2522         ;;
2523     [ab].out )
2524         # We found the default executable, but exeext='' is most
2525         # certainly right.
2526         break;;
2527     *.* )
2528         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2529         # FIXME: I believe we export ac_cv_exeext for Libtool,
2530         # but it would be cool to find out if it's true.  Does anybody
2531         # maintain Libtool? --akim.
2532         export ac_cv_exeext
2533         break;;
2534     * )
2535         break;;
2536   esac
2537 done
2538 else
2539   echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2541
2542 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2543 See \`config.log' for more details." >&5
2544 echo "$as_me: error: C compiler cannot create executables
2545 See \`config.log' for more details." >&2;}
2546    { (exit 77); exit 77; }; }
2547 fi
2548
2549 ac_exeext=$ac_cv_exeext
2550 echo "$as_me:$LINENO: result: $ac_file" >&5
2551 echo "${ECHO_T}$ac_file" >&6
2552
2553 # Check the compiler produces executables we can run.  If not, either
2554 # the compiler is broken, or we cross compile.
2555 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2556 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2557 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2558 # If not cross compiling, check that we can run a simple program.
2559 if test "$cross_compiling" != yes; then
2560   if { ac_try='./$ac_file'
2561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562   (eval $ac_try) 2>&5
2563   ac_status=$?
2564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565   (exit $ac_status); }; }; then
2566     cross_compiling=no
2567   else
2568     if test "$cross_compiling" = maybe; then
2569         cross_compiling=yes
2570     else
2571         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2572 If you meant to cross compile, use \`--host'.
2573 See \`config.log' for more details." >&5
2574 echo "$as_me: error: cannot run C compiled programs.
2575 If you meant to cross compile, use \`--host'.
2576 See \`config.log' for more details." >&2;}
2577    { (exit 1); exit 1; }; }
2578     fi
2579   fi
2580 fi
2581 echo "$as_me:$LINENO: result: yes" >&5
2582 echo "${ECHO_T}yes" >&6
2583
2584 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2585 ac_clean_files=$ac_clean_files_save
2586 # Check the compiler produces executables we can run.  If not, either
2587 # the compiler is broken, or we cross compile.
2588 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2589 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2590 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2591 echo "${ECHO_T}$cross_compiling" >&6
2592
2593 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2594 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2596   (eval $ac_link) 2>&5
2597   ac_status=$?
2598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599   (exit $ac_status); }; then
2600   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2601 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2602 # work properly (i.e., refer to `conftest.exe'), while it won't with
2603 # `rm'.
2604 for ac_file in conftest.exe conftest conftest.*; do
2605   test -f "$ac_file" || continue
2606   case $ac_file in
2607     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2608     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2609           export ac_cv_exeext
2610           break;;
2611     * ) break;;
2612   esac
2613 done
2614 else
2615   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2616 See \`config.log' for more details." >&5
2617 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2618 See \`config.log' for more details." >&2;}
2619    { (exit 1); exit 1; }; }
2620 fi
2621
2622 rm -f conftest$ac_cv_exeext
2623 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2624 echo "${ECHO_T}$ac_cv_exeext" >&6
2625
2626 rm -f conftest.$ac_ext
2627 EXEEXT=$ac_cv_exeext
2628 ac_exeext=$EXEEXT
2629 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2630 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2631 if test "${ac_cv_objext+set}" = set; then
2632   echo $ECHO_N "(cached) $ECHO_C" >&6
2633 else
2634   cat >conftest.$ac_ext <<_ACEOF
2635 #line $LINENO "configure"
2636 /* confdefs.h.  */
2637 _ACEOF
2638 cat confdefs.h >>conftest.$ac_ext
2639 cat >>conftest.$ac_ext <<_ACEOF
2640 /* end confdefs.h.  */
2641
2642 int
2643 main ()
2644 {
2645
2646   ;
2647   return 0;
2648 }
2649 _ACEOF
2650 rm -f conftest.o conftest.obj
2651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2652   (eval $ac_compile) 2>&5
2653   ac_status=$?
2654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655   (exit $ac_status); }; then
2656   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2657   case $ac_file in
2658     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2659     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2660        break;;
2661   esac
2662 done
2663 else
2664   echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2666
2667 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2668 See \`config.log' for more details." >&5
2669 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2670 See \`config.log' for more details." >&2;}
2671    { (exit 1); exit 1; }; }
2672 fi
2673
2674 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2675 fi
2676 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2677 echo "${ECHO_T}$ac_cv_objext" >&6
2678 OBJEXT=$ac_cv_objext
2679 ac_objext=$OBJEXT
2680 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2681 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2682 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2683   echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685   cat >conftest.$ac_ext <<_ACEOF
2686 #line $LINENO "configure"
2687 /* confdefs.h.  */
2688 _ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h.  */
2692
2693 int
2694 main ()
2695 {
2696 #ifndef __GNUC__
2697        choke me
2698 #endif
2699
2700   ;
2701   return 0;
2702 }
2703 _ACEOF
2704 rm -f conftest.$ac_objext
2705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2706   (eval $ac_compile) 2>&5
2707   ac_status=$?
2708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709   (exit $ac_status); } &&
2710          { ac_try='test -s conftest.$ac_objext'
2711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712   (eval $ac_try) 2>&5
2713   ac_status=$?
2714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715   (exit $ac_status); }; }; then
2716   ac_compiler_gnu=yes
2717 else
2718   echo "$as_me: failed program was:" >&5
2719 sed 's/^/| /' conftest.$ac_ext >&5
2720
2721 ac_compiler_gnu=no
2722 fi
2723 rm -f conftest.$ac_objext conftest.$ac_ext
2724 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2725
2726 fi
2727 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2728 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2729 GCC=`test $ac_compiler_gnu = yes && echo yes`
2730 ac_test_CFLAGS=${CFLAGS+set}
2731 ac_save_CFLAGS=$CFLAGS
2732 CFLAGS="-g"
2733 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2734 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2735 if test "${ac_cv_prog_cc_g+set}" = set; then
2736   echo $ECHO_N "(cached) $ECHO_C" >&6
2737 else
2738   cat >conftest.$ac_ext <<_ACEOF
2739 #line $LINENO "configure"
2740 /* confdefs.h.  */
2741 _ACEOF
2742 cat confdefs.h >>conftest.$ac_ext
2743 cat >>conftest.$ac_ext <<_ACEOF
2744 /* end confdefs.h.  */
2745
2746 int
2747 main ()
2748 {
2749
2750   ;
2751   return 0;
2752 }
2753 _ACEOF
2754 rm -f conftest.$ac_objext
2755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2756   (eval $ac_compile) 2>&5
2757   ac_status=$?
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); } &&
2760          { ac_try='test -s conftest.$ac_objext'
2761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762   (eval $ac_try) 2>&5
2763   ac_status=$?
2764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765   (exit $ac_status); }; }; then
2766   ac_cv_prog_cc_g=yes
2767 else
2768   echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2770
2771 ac_cv_prog_cc_g=no
2772 fi
2773 rm -f conftest.$ac_objext conftest.$ac_ext
2774 fi
2775 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2776 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2777 if test "$ac_test_CFLAGS" = set; then
2778   CFLAGS=$ac_save_CFLAGS
2779 elif test $ac_cv_prog_cc_g = yes; then
2780   if test "$GCC" = yes; then
2781     CFLAGS="-g -O2"
2782   else
2783     CFLAGS="-g"
2784   fi
2785 else
2786   if test "$GCC" = yes; then
2787     CFLAGS="-O2"
2788   else
2789     CFLAGS=
2790   fi
2791 fi
2792 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2793 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2794 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2795   echo $ECHO_N "(cached) $ECHO_C" >&6
2796 else
2797   ac_cv_prog_cc_stdc=no
2798 ac_save_CC=$CC
2799 cat >conftest.$ac_ext <<_ACEOF
2800 #line $LINENO "configure"
2801 /* confdefs.h.  */
2802 _ACEOF
2803 cat confdefs.h >>conftest.$ac_ext
2804 cat >>conftest.$ac_ext <<_ACEOF
2805 /* end confdefs.h.  */
2806 #include <stdarg.h>
2807 #include <stdio.h>
2808 #include <sys/types.h>
2809 #include <sys/stat.h>
2810 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2811 struct buf { int x; };
2812 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2813 static char *e (p, i)
2814      char **p;
2815      int i;
2816 {
2817   return p[i];
2818 }
2819 static char *f (char * (*g) (char **, int), char **p, ...)
2820 {
2821   char *s;
2822   va_list v;
2823   va_start (v,p);
2824   s = g (p, va_arg (v,int));
2825   va_end (v);
2826   return s;
2827 }
2828 int test (int i, double x);
2829 struct s1 {int (*f) (int a);};
2830 struct s2 {int (*f) (double a);};
2831 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2832 int argc;
2833 char **argv;
2834 int
2835 main ()
2836 {
2837 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2838   ;
2839   return 0;
2840 }
2841 _ACEOF
2842 # Don't try gcc -ansi; that turns off useful extensions and
2843 # breaks some systems' header files.
2844 # AIX                   -qlanglvl=ansi
2845 # Ultrix and OSF/1      -std1
2846 # HP-UX 10.20 and later -Ae
2847 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2848 # SVR4                  -Xc -D__EXTENSIONS__
2849 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2850 do
2851   CC="$ac_save_CC $ac_arg"
2852   rm -f conftest.$ac_objext
2853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2854   (eval $ac_compile) 2>&5
2855   ac_status=$?
2856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); } &&
2858          { ac_try='test -s conftest.$ac_objext'
2859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860   (eval $ac_try) 2>&5
2861   ac_status=$?
2862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863   (exit $ac_status); }; }; then
2864   ac_cv_prog_cc_stdc=$ac_arg
2865 break
2866 else
2867   echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2869
2870 fi
2871 rm -f conftest.$ac_objext
2872 done
2873 rm -f conftest.$ac_ext conftest.$ac_objext
2874 CC=$ac_save_CC
2875
2876 fi
2877
2878 case "x$ac_cv_prog_cc_stdc" in
2879   x|xno)
2880     echo "$as_me:$LINENO: result: none needed" >&5
2881 echo "${ECHO_T}none needed" >&6 ;;
2882   *)
2883     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2884 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2885     CC="$CC $ac_cv_prog_cc_stdc" ;;
2886 esac
2887
2888 # Some people use a C++ compiler to compile C.  Since we use `exit',
2889 # in C++ we need to declare it.  In case someone uses the same compiler
2890 # for both compiling C and C++ we need to have the C++ compiler decide
2891 # the declaration of exit, since it's the most demanding environment.
2892 cat >conftest.$ac_ext <<_ACEOF
2893 #ifndef __cplusplus
2894   choke me
2895 #endif
2896 _ACEOF
2897 rm -f conftest.$ac_objext
2898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2899   (eval $ac_compile) 2>&5
2900   ac_status=$?
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); } &&
2903          { ac_try='test -s conftest.$ac_objext'
2904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905   (eval $ac_try) 2>&5
2906   ac_status=$?
2907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908   (exit $ac_status); }; }; then
2909   for ac_declaration in \
2910    ''\
2911    '#include <stdlib.h>' \
2912    'extern "C" void std::exit (int) throw (); using std::exit;' \
2913    'extern "C" void std::exit (int); using std::exit;' \
2914    'extern "C" void exit (int) throw ();' \
2915    'extern "C" void exit (int);' \
2916    'void exit (int);'
2917 do
2918   cat >conftest.$ac_ext <<_ACEOF
2919 #line $LINENO "configure"
2920 /* confdefs.h.  */
2921 _ACEOF
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h.  */
2925 #include <stdlib.h>
2926 $ac_declaration
2927 int
2928 main ()
2929 {
2930 exit (42);
2931   ;
2932   return 0;
2933 }
2934 _ACEOF
2935 rm -f conftest.$ac_objext
2936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2937   (eval $ac_compile) 2>&5
2938   ac_status=$?
2939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940   (exit $ac_status); } &&
2941          { ac_try='test -s conftest.$ac_objext'
2942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2943   (eval $ac_try) 2>&5
2944   ac_status=$?
2945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946   (exit $ac_status); }; }; then
2947   :
2948 else
2949   echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.$ac_ext >&5
2951
2952 continue
2953 fi
2954 rm -f conftest.$ac_objext conftest.$ac_ext
2955   cat >conftest.$ac_ext <<_ACEOF
2956 #line $LINENO "configure"
2957 /* confdefs.h.  */
2958 _ACEOF
2959 cat confdefs.h >>conftest.$ac_ext
2960 cat >>conftest.$ac_ext <<_ACEOF
2961 /* end confdefs.h.  */
2962 $ac_declaration
2963 int
2964 main ()
2965 {
2966 exit (42);
2967   ;
2968   return 0;
2969 }
2970 _ACEOF
2971 rm -f conftest.$ac_objext
2972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2973   (eval $ac_compile) 2>&5
2974   ac_status=$?
2975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976   (exit $ac_status); } &&
2977          { ac_try='test -s conftest.$ac_objext'
2978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979   (eval $ac_try) 2>&5
2980   ac_status=$?
2981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982   (exit $ac_status); }; }; then
2983   break
2984 else
2985   echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2987
2988 fi
2989 rm -f conftest.$ac_objext conftest.$ac_ext
2990 done
2991 rm -f conftest*
2992 if test -n "$ac_declaration"; then
2993   echo '#ifdef __cplusplus' >>confdefs.h
2994   echo $ac_declaration      >>confdefs.h
2995   echo '#endif'             >>confdefs.h
2996 fi
2997
2998 else
2999   echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3001
3002 fi
3003 rm -f conftest.$ac_objext conftest.$ac_ext
3004 ac_ext=c
3005 ac_cpp='$CPP $CPPFLAGS'
3006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009 DEPDIR="${am__leading_dot}deps"
3010
3011           ac_config_commands="$ac_config_commands depfiles"
3012
3013
3014 am_make=${MAKE-make}
3015 cat > confinc << 'END'
3016 am__doit:
3017         @echo done
3018 .PHONY: am__doit
3019 END
3020 # If we don't find an include directive, just comment out the code.
3021 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3022 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3023 am__include="#"
3024 am__quote=
3025 _am_result=none
3026 # First try GNU make style include.
3027 echo "include confinc" > confmf
3028 # We grep out `Entering directory' and `Leaving directory'
3029 # messages which can occur if `w' ends up in MAKEFLAGS.
3030 # In particular we don't look at `^make:' because GNU make might
3031 # be invoked under some other name (usually "gmake"), in which
3032 # case it prints its new name instead of `make'.
3033 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3034    am__include=include
3035    am__quote=
3036    _am_result=GNU
3037 fi
3038 # Now try BSD make style include.
3039 if test "$am__include" = "#"; then
3040    echo '.include "confinc"' > confmf
3041    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3042       am__include=.include
3043       am__quote="\""
3044       _am_result=BSD
3045    fi
3046 fi
3047
3048
3049 echo "$as_me:$LINENO: result: $_am_result" >&5
3050 echo "${ECHO_T}$_am_result" >&6
3051 rm -f confinc confmf
3052
3053 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3054 if test "${enable_dependency_tracking+set}" = set; then
3055   enableval="$enable_dependency_tracking"
3056
3057 fi;
3058 if test "x$enable_dependency_tracking" != xno; then
3059   am_depcomp="$ac_aux_dir/depcomp"
3060   AMDEPBACKSLASH='\'
3061 fi
3062
3063
3064 if test "x$enable_dependency_tracking" != xno; then
3065   AMDEP_TRUE=
3066   AMDEP_FALSE='#'
3067 else
3068   AMDEP_TRUE='#'
3069   AMDEP_FALSE=
3070 fi
3071
3072
3073
3074
3075 depcc="$CC"   am_compiler_list=
3076
3077 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3078 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3079 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3080   echo $ECHO_N "(cached) $ECHO_C" >&6
3081 else
3082   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3083   # We make a subdir and do the tests there.  Otherwise we can end up
3084   # making bogus files that we don't know about and never remove.  For
3085   # instance it was reported that on HP-UX the gcc test will end up
3086   # making a dummy file named `D' -- because `-MD' means `put the output
3087   # in D'.
3088   mkdir conftest.dir
3089   # Copy depcomp to subdir because otherwise we won't find it if we're
3090   # using a relative directory.
3091   cp "$am_depcomp" conftest.dir
3092   cd conftest.dir
3093
3094   am_cv_CC_dependencies_compiler_type=none
3095   if test "$am_compiler_list" = ""; then
3096      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3097   fi
3098   for depmode in $am_compiler_list; do
3099     # We need to recreate these files for each test, as the compiler may
3100     # overwrite some of them when testing with obscure command lines.
3101     # This happens at least with the AIX C compiler.
3102     echo '#include "conftest.h"' > conftest.c
3103     echo 'int i;' > conftest.h
3104     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3105
3106     case $depmode in
3107     nosideeffect)
3108       # after this tag, mechanisms are not by side-effect, so they'll
3109       # only be used when explicitly requested
3110       if test "x$enable_dependency_tracking" = xyes; then
3111         continue
3112       else
3113         break
3114       fi
3115       ;;
3116     none) break ;;
3117     esac
3118     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3119     # mode.  It turns out that the SunPro C++ compiler does not properly
3120     # handle `-M -o', and we need to detect this.
3121     if depmode=$depmode \
3122        source=conftest.c object=conftest.o \
3123        depfile=conftest.Po tmpdepfile=conftest.TPo \
3124        $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
3125          >/dev/null 2>conftest.err &&
3126        grep conftest.h conftest.Po > /dev/null 2>&1 &&
3127        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3128       # icc doesn't choke on unknown options, it will just issue warnings
3129       # (even with -Werror).  So we grep stderr for any message
3130       # that says an option was ignored.
3131       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3132         am_cv_CC_dependencies_compiler_type=$depmode
3133         break
3134       fi
3135     fi
3136   done
3137
3138   cd ..
3139   rm -rf conftest.dir
3140 else
3141   am_cv_CC_dependencies_compiler_type=none
3142 fi
3143
3144 fi
3145 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3146 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3147 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3148
3149
3150
3151 if
3152   test "x$enable_dependency_tracking" != xno \
3153   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3154   am__fastdepCC_TRUE=
3155   am__fastdepCC_FALSE='#'
3156 else
3157   am__fastdepCC_TRUE='#'
3158   am__fastdepCC_FALSE=
3159 fi
3160
3161
3162
3163 ac_ext=c
3164 ac_cpp='$CPP $CPPFLAGS'
3165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3168 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3169 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3170 # On Suns, sometimes $CPP names a directory.
3171 if test -n "$CPP" && test -d "$CPP"; then
3172   CPP=
3173 fi
3174 if test -z "$CPP"; then
3175   if test "${ac_cv_prog_CPP+set}" = set; then
3176   echo $ECHO_N "(cached) $ECHO_C" >&6
3177 else
3178       # Double quotes because CPP needs to be expanded
3179     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3180     do
3181       ac_preproc_ok=false
3182 for ac_c_preproc_warn_flag in '' yes
3183 do
3184   # Use a header file that comes with gcc, so configuring glibc
3185   # with a fresh cross-compiler works.
3186   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3187   # <limits.h> exists even on freestanding compilers.
3188   # On the NeXT, cc -E runs the code through the compiler's parser,
3189   # not just through cpp. "Syntax error" is here to catch this case.
3190   cat >conftest.$ac_ext <<_ACEOF
3191 #line $LINENO "configure"
3192 /* confdefs.h.  */
3193 _ACEOF
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h.  */
3197 #ifdef __STDC__
3198 # include <limits.h>
3199 #else
3200 # include <assert.h>
3201 #endif
3202                      Syntax error
3203 _ACEOF
3204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3205   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3206   ac_status=$?
3207   grep -v '^ *+' conftest.er1 >conftest.err
3208   rm -f conftest.er1
3209   cat conftest.err >&5
3210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211   (exit $ac_status); } >/dev/null; then
3212   if test -s conftest.err; then
3213     ac_cpp_err=$ac_c_preproc_warn_flag
3214   else
3215     ac_cpp_err=
3216   fi
3217 else
3218   ac_cpp_err=yes
3219 fi
3220 if test -z "$ac_cpp_err"; then
3221   :
3222 else
3223   echo "$as_me: failed program was:" >&5
3224 sed 's/^/| /' conftest.$ac_ext >&5
3225
3226   # Broken: fails on valid input.
3227 continue
3228 fi
3229 rm -f conftest.err conftest.$ac_ext
3230
3231   # OK, works on sane cases.  Now check whether non-existent headers
3232   # can be detected and how.
3233   cat >conftest.$ac_ext <<_ACEOF
3234 #line $LINENO "configure"
3235 /* confdefs.h.  */
3236 _ACEOF
3237 cat confdefs.h >>conftest.$ac_ext
3238 cat >>conftest.$ac_ext <<_ACEOF
3239 /* end confdefs.h.  */
3240 #include <ac_nonexistent.h>
3241 _ACEOF
3242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3243   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3244   ac_status=$?
3245   grep -v '^ *+' conftest.er1 >conftest.err
3246   rm -f conftest.er1
3247   cat conftest.err >&5
3248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249   (exit $ac_status); } >/dev/null; then
3250   if test -s conftest.err; then
3251     ac_cpp_err=$ac_c_preproc_warn_flag
3252   else
3253     ac_cpp_err=
3254   fi
3255 else
3256   ac_cpp_err=yes
3257 fi
3258 if test -z "$ac_cpp_err"; then
3259   # Broken: success on invalid input.
3260 continue
3261 else
3262   echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3264
3265   # Passes both tests.
3266 ac_preproc_ok=:
3267 break
3268 fi
3269 rm -f conftest.err conftest.$ac_ext
3270
3271 done
3272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3273 rm -f conftest.err conftest.$ac_ext
3274 if $ac_preproc_ok; then
3275   break
3276 fi
3277
3278     done
3279     ac_cv_prog_CPP=$CPP
3280
3281 fi
3282   CPP=$ac_cv_prog_CPP
3283 else
3284   ac_cv_prog_CPP=$CPP
3285 fi
3286 echo "$as_me:$LINENO: result: $CPP" >&5
3287 echo "${ECHO_T}$CPP" >&6
3288 ac_preproc_ok=false
3289 for ac_c_preproc_warn_flag in '' yes
3290 do
3291   # Use a header file that comes with gcc, so configuring glibc
3292   # with a fresh cross-compiler works.
3293   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3294   # <limits.h> exists even on freestanding compilers.
3295   # On the NeXT, cc -E runs the code through the compiler's parser,
3296   # not just through cpp. "Syntax error" is here to catch this case.
3297   cat >conftest.$ac_ext <<_ACEOF
3298 #line $LINENO "configure"
3299 /* confdefs.h.  */
3300 _ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h.  */
3304 #ifdef __STDC__
3305 # include <limits.h>
3306 #else
3307 # include <assert.h>
3308 #endif
3309                      Syntax error
3310 _ACEOF
3311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3312   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3313   ac_status=$?
3314   grep -v '^ *+' conftest.er1 >conftest.err
3315   rm -f conftest.er1
3316   cat conftest.err >&5
3317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318   (exit $ac_status); } >/dev/null; then
3319   if test -s conftest.err; then
3320     ac_cpp_err=$ac_c_preproc_warn_flag
3321   else
3322     ac_cpp_err=
3323   fi
3324 else
3325   ac_cpp_err=yes
3326 fi
3327 if test -z "$ac_cpp_err"; then
3328   :
3329 else
3330   echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3332
3333   # Broken: fails on valid input.
3334 continue
3335 fi
3336 rm -f conftest.err conftest.$ac_ext
3337
3338   # OK, works on sane cases.  Now check whether non-existent headers
3339   # can be detected and how.
3340   cat >conftest.$ac_ext <<_ACEOF
3341 #line $LINENO "configure"
3342 /* confdefs.h.  */
3343 _ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h.  */
3347 #include <ac_nonexistent.h>
3348 _ACEOF
3349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3350   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3351   ac_status=$?
3352   grep -v '^ *+' conftest.er1 >conftest.err
3353   rm -f conftest.er1
3354   cat conftest.err >&5
3355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356   (exit $ac_status); } >/dev/null; then
3357   if test -s conftest.err; then
3358     ac_cpp_err=$ac_c_preproc_warn_flag
3359   else
3360     ac_cpp_err=
3361   fi
3362 else
3363   ac_cpp_err=yes
3364 fi
3365 if test -z "$ac_cpp_err"; then
3366   # Broken: success on invalid input.
3367 continue
3368 else
3369   echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3371
3372   # Passes both tests.
3373 ac_preproc_ok=:
3374 break
3375 fi
3376 rm -f conftest.err conftest.$ac_ext
3377
3378 done
3379 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3380 rm -f conftest.err conftest.$ac_ext
3381 if $ac_preproc_ok; then
3382   :
3383 else
3384   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3385 See \`config.log' for more details." >&5
3386 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3387 See \`config.log' for more details." >&2;}
3388    { (exit 1); exit 1; }; }
3389 fi
3390
3391 ac_ext=c
3392 ac_cpp='$CPP $CPPFLAGS'
3393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3396
3397
3398 echo "$as_me:$LINENO: checking for egrep" >&5
3399 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3400 if test "${ac_cv_prog_egrep+set}" = set; then
3401   echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3404     then ac_cv_prog_egrep='grep -E'
3405     else ac_cv_prog_egrep='egrep'
3406     fi
3407 fi
3408 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3409 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3410  EGREP=$ac_cv_prog_egrep
3411
3412
3413 if test $ac_cv_c_compiler_gnu = yes; then
3414     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3415 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3416 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3417   echo $ECHO_N "(cached) $ECHO_C" >&6
3418 else
3419     ac_pattern="Autoconf.*'x'"
3420   cat >conftest.$ac_ext <<_ACEOF
3421 #line $LINENO "configure"
3422 /* confdefs.h.  */
3423 _ACEOF
3424 cat confdefs.h >>conftest.$ac_ext
3425 cat >>conftest.$ac_ext <<_ACEOF
3426 /* end confdefs.h.  */
3427 #include <sgtty.h>
3428 Autoconf TIOCGETP
3429 _ACEOF
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
3433 else
3434   ac_cv_prog_gcc_traditional=no
3435 fi
3436 rm -f conftest*
3437
3438
3439   if test $ac_cv_prog_gcc_traditional = no; then
3440     cat >conftest.$ac_ext <<_ACEOF
3441 #line $LINENO "configure"
3442 /* confdefs.h.  */
3443 _ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h.  */
3447 #include <termio.h>
3448 Autoconf TCGETA
3449 _ACEOF
3450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3451   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3452   ac_cv_prog_gcc_traditional=yes
3453 fi
3454 rm -f conftest*
3455
3456   fi
3457 fi
3458 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3459 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3460   if test $ac_cv_prog_gcc_traditional = yes; then
3461     CC="$CC -traditional"
3462   fi
3463 fi
3464
3465 # Find a good install program.  We prefer a C program (faster),
3466 # so one script is as good as another.  But avoid the broken or
3467 # incompatible versions:
3468 # SysV /etc/install, /usr/sbin/install
3469 # SunOS /usr/etc/install
3470 # IRIX /sbin/install
3471 # AIX /bin/install
3472 # AmigaOS /C/install, which installs bootblocks on floppy discs
3473 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3474 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3475 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3476 # ./install, which can be erroneously created by make from ./install.sh.
3477 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3478 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3479 if test -z "$INSTALL"; then
3480 if test "${ac_cv_path_install+set}" = set; then
3481   echo $ECHO_N "(cached) $ECHO_C" >&6
3482 else
3483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 for as_dir in $PATH
3485 do
3486   IFS=$as_save_IFS
3487   test -z "$as_dir" && as_dir=.
3488   # Account for people who put trailing slashes in PATH elements.
3489 case $as_dir/ in
3490   ./ | .// | /cC/* | \
3491   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3492   /usr/ucb/* ) ;;
3493   *)
3494     # OSF1 and SCO ODT 3.0 have their own names for install.
3495     # Don't use installbsd from OSF since it installs stuff as root
3496     # by default.
3497     for ac_prog in ginstall scoinst install; do
3498       for ac_exec_ext in '' $ac_executable_extensions; do
3499         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3500           if test $ac_prog = install &&
3501             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3502             # AIX install.  It has an incompatible calling convention.
3503             :
3504           elif test $ac_prog = install &&
3505             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3506             # program-specific install script used by HP pwplus--don't use.
3507             :
3508           else
3509             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3510             break 3
3511           fi
3512         fi
3513       done
3514     done
3515     ;;
3516 esac
3517 done
3518
3519
3520 fi
3521   if test "${ac_cv_path_install+set}" = set; then
3522     INSTALL=$ac_cv_path_install
3523   else
3524     # As a last resort, use the slow shell script.  We don't cache a
3525     # path for INSTALL within a source directory, because that will
3526     # break other packages using the cache if that directory is
3527     # removed, or if the path is relative.
3528     INSTALL=$ac_install_sh
3529   fi
3530 fi
3531 echo "$as_me:$LINENO: result: $INSTALL" >&5
3532 echo "${ECHO_T}$INSTALL" >&6
3533
3534 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3535 # It thinks the first close brace ends the variable substitution.
3536 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3537
3538 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3539
3540 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3541
3542 for ac_prog in gawk mawk nawk awk
3543 do
3544   # Extract the first word of "$ac_prog", so it can be a program name with args.
3545 set dummy $ac_prog; ac_word=$2
3546 echo "$as_me:$LINENO: checking for $ac_word" >&5
3547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3548 if test "${ac_cv_prog_AWK+set}" = set; then
3549   echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551   if test -n "$AWK"; then
3552   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3553 else
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 for as_dir in $PATH
3556 do
3557   IFS=$as_save_IFS
3558   test -z "$as_dir" && as_dir=.
3559   for ac_exec_ext in '' $ac_executable_extensions; do
3560   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3561     ac_cv_prog_AWK="$ac_prog"
3562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3563     break 2
3564   fi
3565 done
3566 done
3567
3568 fi
3569 fi
3570 AWK=$ac_cv_prog_AWK
3571 if test -n "$AWK"; then
3572   echo "$as_me:$LINENO: result: $AWK" >&5
3573 echo "${ECHO_T}$AWK" >&6
3574 else
3575   echo "$as_me:$LINENO: result: no" >&5
3576 echo "${ECHO_T}no" >&6
3577 fi
3578
3579   test -n "$AWK" && break
3580 done
3581
3582 if test -n "$ac_tool_prefix"; then
3583   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3584 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3585 echo "$as_me:$LINENO: checking for $ac_word" >&5
3586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3587 if test "${ac_cv_prog_RANLIB+set}" = set; then
3588   echo $ECHO_N "(cached) $ECHO_C" >&6
3589 else
3590   if test -n "$RANLIB"; then
3591   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3592 else
3593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 for as_dir in $PATH
3595 do
3596   IFS=$as_save_IFS
3597   test -z "$as_dir" && as_dir=.
3598   for ac_exec_ext in '' $ac_executable_extensions; do
3599   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3600     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3602     break 2
3603   fi
3604 done
3605 done
3606
3607 fi
3608 fi
3609 RANLIB=$ac_cv_prog_RANLIB
3610 if test -n "$RANLIB"; then
3611   echo "$as_me:$LINENO: result: $RANLIB" >&5
3612 echo "${ECHO_T}$RANLIB" >&6
3613 else
3614   echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6
3616 fi
3617
3618 fi
3619 if test -z "$ac_cv_prog_RANLIB"; then
3620   ac_ct_RANLIB=$RANLIB
3621   # Extract the first word of "ranlib", so it can be a program name with args.
3622 set dummy ranlib; ac_word=$2
3623 echo "$as_me:$LINENO: checking for $ac_word" >&5
3624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3625 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3626   echo $ECHO_N "(cached) $ECHO_C" >&6
3627 else
3628   if test -n "$ac_ct_RANLIB"; then
3629   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3630 else
3631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632 for as_dir in $PATH
3633 do
3634   IFS=$as_save_IFS
3635   test -z "$as_dir" && as_dir=.
3636   for ac_exec_ext in '' $ac_executable_extensions; do
3637   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3638     ac_cv_prog_ac_ct_RANLIB="ranlib"
3639     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3640     break 2
3641   fi
3642 done
3643 done
3644
3645   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3646 fi
3647 fi
3648 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3649 if test -n "$ac_ct_RANLIB"; then
3650   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3651 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3652 else
3653   echo "$as_me:$LINENO: result: no" >&5
3654 echo "${ECHO_T}no" >&6
3655 fi
3656
3657   RANLIB=$ac_ct_RANLIB
3658 else
3659   RANLIB="$ac_cv_prog_RANLIB"
3660 fi
3661
3662 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3663 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3664 LN_S=$as_ln_s
3665 if test "$LN_S" = "ln -s"; then
3666   echo "$as_me:$LINENO: result: yes" >&5
3667 echo "${ECHO_T}yes" >&6
3668 else
3669   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3670 echo "${ECHO_T}no, using $LN_S" >&6
3671 fi
3672
3673 echo "$as_me:$LINENO: checking whether -rdynamic option is recognized" >&5
3674 echo $ECHO_N "checking whether -rdynamic option is recognized... $ECHO_C" >&6
3675 ac_ccoption=`echo rdynamic | sed 'y%./+-%__p_%'`
3676 if eval "test \"\${timidity_cv_ccoption_$ac_ccoption+set}\" = set"; then
3677   echo $ECHO_N "(cached) $ECHO_C" >&6
3678 else
3679   cat > conftest.$ac_ext <<EOF
3680 int main() {return 0;}
3681 EOF
3682 if ${CC-cc} $LDFLAGS $CFLAGS -o conftest${ac_exeext} -rdynamic conftest.$ac_ext > conftest.out 2>&1; then
3683     if test -s conftest.out; then
3684         eval "timidity_cv_ccoption_$ac_ccoption=no"
3685     else
3686         eval "timidity_cv_ccoption_$ac_ccoption=yes"
3687     fi
3688 else
3689     eval "timidity_cv_ccoption_$ac_ccoption=no"
3690 fi
3691
3692 fi
3693
3694 if eval "test \"`echo '$timidity_cv_ccoption_'$ac_ccoption`\" = yes"; then
3695   echo "$as_me:$LINENO: result: yes" >&5
3696 echo "${ECHO_T}yes" >&6
3697
3698 else
3699   echo "$as_me:$LINENO: result: no" >&5
3700 echo "${ECHO_T}no" >&6
3701
3702 fi
3703
3704
3705 # Checks for target dependencies
3706
3707
3708 # Check whether --with-elf or --without-elf was given.
3709 if test "${with_elf+set}" = set; then
3710   withval="$with_elf"
3711    ELFFORMAT=$withval
3712 else
3713    ELFFORMAT="yes"
3714 fi;
3715
3716
3717 # Check whether --with-simd or --without-simd was given.
3718 if test "${with_simd+set}" = set; then
3719   withval="$with_simd"
3720    SIMD=$withval
3721 else
3722    SIMD="no"
3723 fi;
3724
3725 case "$target" in
3726   *-*-hpux*)
3727     EXTRADEFS="-DHPUX"
3728     test -n "$SHLD" || SHLD="ld -b"
3729     so="sl"
3730     ;;
3731   *-sgi-irix*)
3732         case ".$CC" in .cc*) EXTRACFLAGS="-signed";; esac
3733     test -n "$SHLD" || SHLD="cc -shared -all"
3734     so="so"
3735     ;;
3736   *-*-netbsd*)
3737     test -n "$SHLD" || SHLD="$CC -shared -nostartfiles"
3738     so="so"
3739     ;;
3740
3741   *-*-freebsd2*)
3742         test -n "$SHLD" || SHLD="ld -Bshareable"
3743     so="so"
3744     ;;
3745   *-*-freebsd*)
3746     if test "$ELFFORMAT" = yes; then
3747         test -n "$SHLD" || SHLD="ld -Bshareable"
3748     else
3749         SHCFLAGS=-aou
3750         SHLDFLAGS="-L/usr/X11R6/lib/aout $SHLDFLAGS"
3751         test -n "$SHLD" || SHLD="env OBJFORMAT=aout ld -shared"
3752     fi
3753         so="so"
3754     ;;
3755
3756 #  *-*-freebsd*)
3757 #    EXTRALIBS="$EXTRALIBS -lxpg4"
3758 #    test -n "$SHLD" || SHLD="ld -Bshareable"
3759 #    so="so"
3760 #  ;;
3761
3762   *-*-cygwin*)
3763     EXTRADEFS="-D__W32__"
3764     # ??
3765     case "x${CC} " in
3766       "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3767       "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3768       "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3769       *) test -n "$SHLD" || SHLD="unknown" ;;
3770     esac
3771     so="dll"
3772     CYGNUS=yes
3773     lib_user32_test=-luser32
3774     ;;
3775   *-*-mingw*)
3776     EXTRADEFS="-D__W32__"
3777     # ??
3778     case "x${CC} " in
3779       "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3780       "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3781       "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3782       *) test -n "$SHLD" || SHLD="unknown" ;;
3783     esac
3784     so="dll"
3785     MINGW=yes
3786     lib_user32_test=-luser32
3787     ;;
3788   *-dec-*)
3789     EXTRADEFS="-DDEC"
3790     test -n "$SHLD" || SHLD="ld -Bdynamic -G"
3791     so="so"
3792     ;;
3793   *-*-solaris*)
3794     EXTRADEFS="-DSOLARIS"
3795     test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3796     so="so"
3797     ;;
3798   *-*-nextstep*)
3799     test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3800     so="so"
3801     ;;
3802   *-*-darwin*)
3803     if test "x$SIMD" = "xyes"; then
3804
3805 cat >>confdefs.h <<\_ACEOF
3806 #define USE_ALTIVEC 1
3807 _ACEOF
3808
3809        # EXTRACFLAGS="$EXTRACFLAGS -faltivec -mabi=altivec -maltivec" # for GCC3.
3810        EXTRACFLAGS="$EXTRACFLAGS -faltivec"
3811     else
3812
3813 cat >>confdefs.h <<\_ACEOF
3814 #define USE_ALTIVEC 0
3815 _ACEOF
3816
3817     fi
3818     CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
3819     LDOPTS="-dynamic -undefined suppress -flat_namespace $LDOPTS"
3820     test -n "$SHLD" || SHLD="$CC -dynamic -bundle -undefined suppress -flat_namespace $LDFLAGS"
3821     so="bundle"
3822     ;;
3823   *)
3824     test -n "$SHLD" || \
3825       if test "x$GCC" = xyes; then
3826         SHLD="$CC -shared"
3827       else
3828         SHLD="ld -Bdynamic -G"
3829       fi
3830     so="so"
3831     ;;
3832 esac
3833
3834
3835 # Checks for libraries.
3836
3837 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
3838 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
3839 if test "${ac_cv_lib_m_sqrt+set}" = set; then
3840   echo $ECHO_N "(cached) $ECHO_C" >&6
3841 else
3842   ac_check_lib_save_LIBS=$LIBS
3843 LIBS="-lm  $LIBS"
3844 cat >conftest.$ac_ext <<_ACEOF
3845 #line $LINENO "configure"
3846 /* confdefs.h.  */
3847 _ACEOF
3848 cat confdefs.h >>conftest.$ac_ext
3849 cat >>conftest.$ac_ext <<_ACEOF
3850 /* end confdefs.h.  */
3851
3852 /* Override any gcc2 internal prototype to avoid an error.  */
3853 #ifdef __cplusplus
3854 extern "C"
3855 #endif
3856 /* We use char because int might match the return type of a gcc2
3857    builtin and then its argument prototype would still apply.  */
3858 char sqrt ();
3859 int
3860 main ()
3861 {
3862 sqrt ();
3863   ;
3864   return 0;
3865 }
3866 _ACEOF
3867 rm -f conftest.$ac_objext conftest$ac_exeext
3868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3869   (eval $ac_link) 2>&5
3870   ac_status=$?
3871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872   (exit $ac_status); } &&
3873          { ac_try='test -s conftest$ac_exeext'
3874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875   (eval $ac_try) 2>&5
3876   ac_status=$?
3877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878   (exit $ac_status); }; }; then
3879   ac_cv_lib_m_sqrt=yes
3880 else
3881   echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3883
3884 ac_cv_lib_m_sqrt=no
3885 fi
3886 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3887 LIBS=$ac_check_lib_save_LIBS
3888 fi
3889 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
3890 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
3891 if test $ac_cv_lib_m_sqrt = yes; then
3892   cat >>confdefs.h <<_ACEOF
3893 #define HAVE_LIBM 1
3894 _ACEOF
3895
3896   LIBS="-lm $LIBS"
3897
3898 fi
3899
3900
3901 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3902 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3903 if test "${ac_cv_lib_socket_socket+set}" = set; then
3904   echo $ECHO_N "(cached) $ECHO_C" >&6
3905 else
3906   ac_check_lib_save_LIBS=$LIBS
3907 LIBS="-lsocket  $LIBS"
3908 cat >conftest.$ac_ext <<_ACEOF
3909 #line $LINENO "configure"
3910 /* confdefs.h.  */
3911 _ACEOF
3912 cat confdefs.h >>conftest.$ac_ext
3913 cat >>conftest.$ac_ext <<_ACEOF
3914 /* end confdefs.h.  */
3915
3916 /* Override any gcc2 internal prototype to avoid an error.  */
3917 #ifdef __cplusplus
3918 extern "C"
3919 #endif
3920 /* We use char because int might match the return type of a gcc2
3921    builtin and then its argument prototype would still apply.  */
3922 char socket ();
3923 int
3924 main ()
3925 {
3926 socket ();
3927   ;
3928   return 0;
3929 }
3930 _ACEOF
3931 rm -f conftest.$ac_objext conftest$ac_exeext
3932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3933   (eval $ac_link) 2>&5
3934   ac_status=$?
3935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936   (exit $ac_status); } &&
3937          { ac_try='test -s conftest$ac_exeext'
3938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939   (eval $ac_try) 2>&5
3940   ac_status=$?
3941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942   (exit $ac_status); }; }; then
3943   ac_cv_lib_socket_socket=yes
3944 else
3945   echo "$as_me: failed program was:" >&5
3946 sed 's/^/| /' conftest.$ac_ext >&5
3947
3948 ac_cv_lib_socket_socket=no
3949 fi
3950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3951 LIBS=$ac_check_lib_save_LIBS
3952 fi
3953 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3954 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3955 if test $ac_cv_lib_socket_socket = yes; then
3956   cat >>confdefs.h <<_ACEOF
3957 #define HAVE_LIBSOCKET 1
3958 _ACEOF
3959
3960   LIBS="-lsocket $LIBS"
3961
3962 fi
3963
3964 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
3965 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
3966 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
3967   echo $ECHO_N "(cached) $ECHO_C" >&6
3968 else
3969   ac_check_lib_save_LIBS=$LIBS
3970 LIBS="-ldl  $LIBS"
3971 cat >conftest.$ac_ext <<_ACEOF
3972 #line $LINENO "configure"
3973 /* confdefs.h.  */
3974 _ACEOF
3975 cat confdefs.h >>conftest.$ac_ext
3976 cat >>conftest.$ac_ext <<_ACEOF
3977 /* end confdefs.h.  */
3978
3979 /* Override any gcc2 internal prototype to avoid an error.  */
3980 #ifdef __cplusplus
3981 extern "C"
3982 #endif
3983 /* We use char because int might match the return type of a gcc2
3984    builtin and then its argument prototype would still apply.  */
3985 char dlopen ();
3986 int
3987 main ()
3988 {
3989 dlopen ();
3990   ;
3991   return 0;
3992 }
3993 _ACEOF
3994 rm -f conftest.$ac_objext conftest$ac_exeext
3995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3996   (eval $ac_link) 2>&5
3997   ac_status=$?
3998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999   (exit $ac_status); } &&
4000          { ac_try='test -s conftest$ac_exeext'
4001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002   (eval $ac_try) 2>&5
4003   ac_status=$?
4004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005   (exit $ac_status); }; }; then
4006   ac_cv_lib_dl_dlopen=yes
4007 else
4008   echo "$as_me: failed program was:" >&5
4009 sed 's/^/| /' conftest.$ac_ext >&5
4010
4011 ac_cv_lib_dl_dlopen=no
4012 fi
4013 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4014 LIBS=$ac_check_lib_save_LIBS
4015 fi
4016 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4017 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4018 if test $ac_cv_lib_dl_dlopen = yes; then
4019   lib_dl_opt=-ldl
4020 fi
4021
4022 echo "$as_me:$LINENO: checking for NSLinkModule in -lobjc" >&5
4023 echo $ECHO_N "checking for NSLinkModule in -lobjc... $ECHO_C" >&6
4024 if test "${ac_cv_lib_objc_NSLinkModule+set}" = set; then
4025   echo $ECHO_N "(cached) $ECHO_C" >&6
4026 else
4027   ac_check_lib_save_LIBS=$LIBS
4028 LIBS="-lobjc  $LIBS"
4029 cat >conftest.$ac_ext <<_ACEOF
4030 #line $LINENO "configure"
4031 /* confdefs.h.  */
4032 _ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h.  */
4036
4037 /* Override any gcc2 internal prototype to avoid an error.  */
4038 #ifdef __cplusplus
4039 extern "C"
4040 #endif
4041 /* We use char because int might match the return type of a gcc2
4042    builtin and then its argument prototype would still apply.  */
4043 char NSLinkModule ();
4044 int
4045 main ()
4046 {
4047 NSLinkModule ();
4048   ;
4049   return 0;
4050 }
4051 _ACEOF
4052 rm -f conftest.$ac_objext conftest$ac_exeext
4053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4054   (eval $ac_link) 2>&5
4055   ac_status=$?
4056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057   (exit $ac_status); } &&
4058          { ac_try='test -s conftest$ac_exeext'
4059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4060   (eval $ac_try) 2>&5
4061   ac_status=$?
4062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063   (exit $ac_status); }; }; then
4064   ac_cv_lib_objc_NSLinkModule=yes
4065 else
4066   echo "$as_me: failed program was:" >&5
4067 sed 's/^/| /' conftest.$ac_ext >&5
4068
4069 ac_cv_lib_objc_NSLinkModule=no
4070 fi
4071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4072 LIBS=$ac_check_lib_save_LIBS
4073 fi
4074 echo "$as_me:$LINENO: result: $ac_cv_lib_objc_NSLinkModule" >&5
4075 echo "${ECHO_T}$ac_cv_lib_objc_NSLinkModule" >&6
4076 if test $ac_cv_lib_objc_NSLinkModule = yes; then
4077   lib_dl_opt=-lobjc
4078 fi
4079  # Mac OS X need this.
4080
4081 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
4082 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
4083 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
4084   echo $ECHO_N "(cached) $ECHO_C" >&6
4085 else
4086   ac_check_lib_save_LIBS=$LIBS
4087 LIBS="-lxpg4  $LIBS"
4088 cat >conftest.$ac_ext <<_ACEOF
4089 #line $LINENO "configure"
4090 /* confdefs.h.  */
4091 _ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h.  */
4095
4096 /* Override any gcc2 internal prototype to avoid an error.  */
4097 #ifdef __cplusplus
4098 extern "C"
4099 #endif
4100 /* We use char because int might match the return type of a gcc2
4101    builtin and then its argument prototype would still apply.  */
4102 char setlocale ();
4103 int
4104 main ()
4105 {
4106 setlocale ();
4107   ;
4108   return 0;
4109 }
4110 _ACEOF
4111 rm -f conftest.$ac_objext conftest$ac_exeext
4112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4113   (eval $ac_link) 2>&5
4114   ac_status=$?
4115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116   (exit $ac_status); } &&
4117          { ac_try='test -s conftest$ac_exeext'
4118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119   (eval $ac_try) 2>&5
4120   ac_status=$?
4121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122   (exit $ac_status); }; }; then
4123   ac_cv_lib_xpg4_setlocale=yes
4124 else
4125   echo "$as_me: failed program was:" >&5
4126 sed 's/^/| /' conftest.$ac_ext >&5
4127
4128 ac_cv_lib_xpg4_setlocale=no
4129 fi
4130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4131 LIBS=$ac_check_lib_save_LIBS
4132 fi
4133 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
4134 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
4135 if test $ac_cv_lib_xpg4_setlocale = yes; then
4136   cat >>confdefs.h <<_ACEOF
4137 #define HAVE_LIBXPG4 1
4138 _ACEOF
4139
4140   LIBS="-lxpg4 $LIBS"
4141
4142 fi
4143  # Mac OS X (and maybe NetBSD) need this.
4144
4145 for ac_func in gethostbyname
4146 do
4147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4148 echo "$as_me:$LINENO: checking for $ac_func" >&5
4149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4150 if eval "test \"\${$as_ac_var+set}\" = set"; then
4151   echo $ECHO_N "(cached) $ECHO_C" >&6
4152 else
4153   cat >conftest.$ac_ext <<_ACEOF
4154 #line $LINENO "configure"
4155 /* confdefs.h.  */
4156 _ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h.  */
4160 /* System header to define __stub macros and hopefully few prototypes,
4161     which can conflict with char $ac_func (); below.
4162     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4163     <limits.h> exists even on freestanding compilers.  */
4164 #ifdef __STDC__
4165 # include <limits.h>
4166 #else
4167 # include <assert.h>
4168 #endif
4169 /* Override any gcc2 internal prototype to avoid an error.  */
4170 #ifdef __cplusplus
4171 extern "C"
4172 {
4173 #endif
4174 /* We use char because int might match the return type of a gcc2
4175    builtin and then its argument prototype would still apply.  */
4176 char $ac_func ();
4177 /* The GNU C library defines this for functions which it implements
4178     to always fail with ENOSYS.  Some functions are actually named
4179     something starting with __ and the normal name is an alias.  */
4180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4181 choke me
4182 #else
4183 char (*f) () = $ac_func;
4184 #endif
4185 #ifdef __cplusplus
4186 }
4187 #endif
4188
4189 int
4190 main ()
4191 {
4192 return f != $ac_func;
4193   ;
4194   return 0;
4195 }
4196 _ACEOF
4197 rm -f conftest.$ac_objext conftest$ac_exeext
4198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4199   (eval $ac_link) 2>&5
4200   ac_status=$?
4201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202   (exit $ac_status); } &&
4203          { ac_try='test -s conftest$ac_exeext'
4204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205   (eval $ac_try) 2>&5
4206   ac_status=$?
4207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208   (exit $ac_status); }; }; then
4209   eval "$as_ac_var=yes"
4210 else
4211   echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4213
4214 eval "$as_ac_var=no"
4215 fi
4216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4217 fi
4218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4219 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4220 if test `eval echo '${'$as_ac_var'}'` = yes; then
4221   cat >>confdefs.h <<_ACEOF
4222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4223 _ACEOF
4224
4225 else
4226
4227 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4228 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4229 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4230   echo $ECHO_N "(cached) $ECHO_C" >&6
4231 else
4232   ac_check_lib_save_LIBS=$LIBS
4233 LIBS="-lnsl  $LIBS"
4234 cat >conftest.$ac_ext <<_ACEOF
4235 #line $LINENO "configure"
4236 /* confdefs.h.  */
4237 _ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h.  */
4241
4242 /* Override any gcc2 internal prototype to avoid an error.  */
4243 #ifdef __cplusplus
4244 extern "C"
4245 #endif
4246 /* We use char because int might match the return type of a gcc2
4247    builtin and then its argument prototype would still apply.  */
4248 char gethostbyname ();
4249 int
4250 main ()
4251 {
4252 gethostbyname ();
4253   ;
4254   return 0;
4255 }
4256 _ACEOF
4257 rm -f conftest.$ac_objext conftest$ac_exeext
4258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4259   (eval $ac_link) 2>&5
4260   ac_status=$?
4261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262   (exit $ac_status); } &&
4263          { ac_try='test -s conftest$ac_exeext'
4264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4265   (eval $ac_try) 2>&5
4266   ac_status=$?
4267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268   (exit $ac_status); }; }; then
4269   ac_cv_lib_nsl_gethostbyname=yes
4270 else
4271   echo "$as_me: failed program was:" >&5
4272 sed 's/^/| /' conftest.$ac_ext >&5
4273
4274 ac_cv_lib_nsl_gethostbyname=no
4275 fi
4276 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4277 LIBS=$ac_check_lib_save_LIBS
4278 fi
4279 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4280 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4281 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4282   cat >>confdefs.h <<_ACEOF
4283 #define HAVE_LIBNSL 1
4284 _ACEOF
4285
4286   LIBS="-lnsl $LIBS"
4287
4288 fi
4289
4290 fi
4291 done
4292
4293 echo "$as_me:$LINENO: checking for X" >&5
4294 echo $ECHO_N "checking for X... $ECHO_C" >&6
4295
4296
4297 # Check whether --with-x or --without-x was given.
4298 if test "${with_x+set}" = set; then
4299   withval="$with_x"
4300
4301 fi;
4302 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4303 if test "x$with_x" = xno; then
4304   # The user explicitly disabled X.
4305   have_x=disabled
4306 else
4307   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4308     # Both variables are already set.
4309     have_x=yes
4310   else
4311     if test "${ac_cv_have_x+set}" = set; then
4312   echo $ECHO_N "(cached) $ECHO_C" >&6
4313 else
4314   # One or both of the vars are not set, and there is no cached value.
4315 ac_x_includes=no ac_x_libraries=no
4316 rm -fr conftest.dir
4317 if mkdir conftest.dir; then
4318   cd conftest.dir
4319   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4320   cat >Imakefile <<'_ACEOF'
4321 acfindx:
4322         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4323 _ACEOF
4324   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4325     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4326     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4327     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4328     for ac_extension in a so sl; do
4329       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4330          test -f $ac_im_libdir/libX11.$ac_extension; then
4331         ac_im_usrlibdir=$ac_im_libdir; break
4332       fi
4333     done
4334     # Screen out bogus values from the imake configuration.  They are
4335     # bogus both because they are the default anyway, and because
4336     # using them would break gcc on systems where it needs fixed includes.
4337     case $ac_im_incroot in
4338         /usr/include) ;;
4339         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4340     esac
4341     case $ac_im_usrlibdir in
4342         /usr/lib | /lib) ;;
4343         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4344     esac
4345   fi
4346   cd ..
4347   rm -fr conftest.dir
4348 fi
4349
4350 # Standard set of common directories for X headers.
4351 # Check X11 before X11Rn because it is often a symlink to the current release.
4352 ac_x_header_dirs='
4353 /usr/X11/include
4354 /usr/X11R6/include
4355 /usr/X11R5/include
4356 /usr/X11R4/include
4357
4358 /usr/include/X11
4359 /usr/include/X11R6
4360 /usr/include/X11R5
4361 /usr/include/X11R4
4362
4363 /usr/local/X11/include
4364 /usr/local/X11R6/include
4365 /usr/local/X11R5/include
4366 /usr/local/X11R4/include
4367
4368 /usr/local/include/X11
4369 /usr/local/include/X11R6
4370 /usr/local/include/X11R5
4371 /usr/local/include/X11R4
4372
4373 /usr/X386/include
4374 /usr/x386/include
4375 /usr/XFree86/include/X11
4376
4377 /usr/include
4378 /usr/local/include
4379 /usr/unsupported/include
4380 /usr/athena/include
4381 /usr/local/x11r5/include
4382 /usr/lpp/Xamples/include
4383
4384 /usr/openwin/include
4385 /usr/openwin/share/include'
4386
4387 if test "$ac_x_includes" = no; then
4388   # Guess where to find include files, by looking for Intrinsic.h.
4389   # First, try using that file with no special directory specified.
4390   cat >conftest.$ac_ext <<_ACEOF
4391 #line $LINENO "configure"
4392 /* confdefs.h.  */
4393 _ACEOF
4394 cat confdefs.h >>conftest.$ac_ext
4395 cat >>conftest.$ac_ext <<_ACEOF
4396 /* end confdefs.h.  */
4397 #include <X11/Intrinsic.h>
4398 _ACEOF
4399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4400   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4401   ac_status=$?
4402   grep -v '^ *+' conftest.er1 >conftest.err
4403   rm -f conftest.er1
4404   cat conftest.err >&5
4405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406   (exit $ac_status); } >/dev/null; then
4407   if test -s conftest.err; then
4408     ac_cpp_err=$ac_c_preproc_warn_flag
4409   else
4410     ac_cpp_err=
4411   fi
4412 else
4413   ac_cpp_err=yes
4414 fi
4415 if test -z "$ac_cpp_err"; then
4416   # We can compile using X headers with no special include directory.
4417 ac_x_includes=
4418 else
4419   echo "$as_me: failed program was:" >&5
4420 sed 's/^/| /' conftest.$ac_ext >&5
4421
4422   for ac_dir in $ac_x_header_dirs; do
4423   if test -r "$ac_dir/X11/Intrinsic.h"; then
4424     ac_x_includes=$ac_dir
4425     break
4426   fi
4427 done
4428 fi
4429 rm -f conftest.err conftest.$ac_ext
4430 fi # $ac_x_includes = no
4431
4432 if test "$ac_x_libraries" = no; then
4433   # Check for the libraries.
4434   # See if we find them without any special options.
4435   # Don't add to $LIBS permanently.
4436   ac_save_LIBS=$LIBS
4437   LIBS="-lXt $LIBS"
4438   cat >conftest.$ac_ext <<_ACEOF
4439 #line $LINENO "configure"
4440 /* confdefs.h.  */
4441 _ACEOF
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h.  */
4445 #include <X11/Intrinsic.h>
4446 int
4447 main ()
4448 {
4449 XtMalloc (0)
4450   ;
4451   return 0;
4452 }
4453 _ACEOF
4454 rm -f conftest.$ac_objext conftest$ac_exeext
4455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4456   (eval $ac_link) 2>&5
4457   ac_status=$?
4458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459   (exit $ac_status); } &&
4460          { ac_try='test -s conftest$ac_exeext'
4461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462   (eval $ac_try) 2>&5
4463   ac_status=$?
4464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465   (exit $ac_status); }; }; then
4466   LIBS=$ac_save_LIBS
4467 # We can link X programs with no special library path.
4468 ac_x_libraries=
4469 else
4470   echo "$as_me: failed program was:" >&5
4471 sed 's/^/| /' conftest.$ac_ext >&5
4472
4473 LIBS=$ac_save_LIBS
4474 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4475 do
4476   # Don't even attempt the hair of trying to link an X program!
4477   for ac_extension in a so sl; do
4478     if test -r $ac_dir/libXt.$ac_extension; then
4479       ac_x_libraries=$ac_dir
4480       break 2
4481     fi
4482   done
4483 done
4484 fi
4485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4486 fi # $ac_x_libraries = no
4487
4488 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4489   # Didn't find X anywhere.  Cache the known absence of X.
4490   ac_cv_have_x="have_x=no"
4491 else
4492   # Record where we found X for the cache.
4493   ac_cv_have_x="have_x=yes \
4494                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4495 fi
4496 fi
4497
4498   fi
4499   eval "$ac_cv_have_x"
4500 fi # $with_x != no
4501
4502 if test "$have_x" != yes; then
4503   echo "$as_me:$LINENO: result: $have_x" >&5
4504 echo "${ECHO_T}$have_x" >&6
4505   no_x=yes
4506 else
4507   # If each of the values was on the command line, it overrides each guess.
4508   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4509   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4510   # Update the cache value to reflect the command line values.
4511   ac_cv_have_x="have_x=yes \
4512                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4513   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4514 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4515 fi
4516
4517 if test "$no_x" = yes; then
4518   # Not all programs may use this symbol, but it does not hurt to define it.
4519
4520 cat >>confdefs.h <<\_ACEOF
4521 #define X_DISPLAY_MISSING 1
4522 _ACEOF
4523
4524   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4525 else
4526   if test -n "$x_includes"; then
4527     X_CFLAGS="$X_CFLAGS -I$x_includes"
4528   fi
4529
4530   # It would also be nice to do this for all -L options, not just this one.
4531   if test -n "$x_libraries"; then
4532     X_LIBS="$X_LIBS -L$x_libraries"
4533     # For Solaris; some versions of Sun CC require a space after -R and
4534     # others require no space.  Words are not sufficient . . . .
4535     case `(uname -sr) 2>/dev/null` in
4536     "SunOS 5"*)
4537       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4538 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4539       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4540       cat >conftest.$ac_ext <<_ACEOF
4541 #line $LINENO "configure"
4542 /* confdefs.h.  */
4543 _ACEOF
4544 cat confdefs.h >>conftest.$ac_ext
4545 cat >>conftest.$ac_ext <<_ACEOF
4546 /* end confdefs.h.  */
4547
4548 int
4549 main ()
4550 {
4551
4552   ;
4553   return 0;
4554 }
4555 _ACEOF
4556 rm -f conftest.$ac_objext conftest$ac_exeext
4557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4558   (eval $ac_link) 2>&5
4559   ac_status=$?
4560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561   (exit $ac_status); } &&
4562          { ac_try='test -s conftest$ac_exeext'
4563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4564   (eval $ac_try) 2>&5
4565   ac_status=$?
4566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567   (exit $ac_status); }; }; then
4568   ac_R_nospace=yes
4569 else
4570   echo "$as_me: failed program was:" >&5
4571 sed 's/^/| /' conftest.$ac_ext >&5
4572
4573 ac_R_nospace=no
4574 fi
4575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4576       if test $ac_R_nospace = yes; then
4577         echo "$as_me:$LINENO: result: no" >&5
4578 echo "${ECHO_T}no" >&6
4579         X_LIBS="$X_LIBS -R$x_libraries"
4580       else
4581         LIBS="$ac_xsave_LIBS -R $x_libraries"
4582         cat >conftest.$ac_ext <<_ACEOF
4583 #line $LINENO "configure"
4584 /* confdefs.h.  */
4585 _ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h.  */
4589
4590 int
4591 main ()
4592 {
4593
4594   ;
4595   return 0;
4596 }
4597 _ACEOF
4598 rm -f conftest.$ac_objext conftest$ac_exeext
4599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4600   (eval $ac_link) 2>&5
4601   ac_status=$?
4602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603   (exit $ac_status); } &&
4604          { ac_try='test -s conftest$ac_exeext'
4605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4606   (eval $ac_try) 2>&5
4607   ac_status=$?
4608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609   (exit $ac_status); }; }; then
4610   ac_R_space=yes
4611 else
4612   echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.$ac_ext >&5
4614
4615 ac_R_space=no
4616 fi
4617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4618         if test $ac_R_space = yes; then
4619           echo "$as_me:$LINENO: result: yes" >&5
4620 echo "${ECHO_T}yes" >&6
4621           X_LIBS="$X_LIBS -R $x_libraries"
4622         else
4623           echo "$as_me:$LINENO: result: neither works" >&5
4624 echo "${ECHO_T}neither works" >&6
4625         fi
4626       fi
4627       LIBS=$ac_xsave_LIBS
4628     esac
4629   fi
4630
4631   # Check for system-dependent libraries X programs must link with.
4632   # Do this before checking for the system-independent R6 libraries
4633   # (-lICE), since we may need -lsocket or whatever for X linking.
4634
4635   if test "$ISC" = yes; then
4636     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4637   else
4638     # Martyn Johnson says this is needed for Ultrix, if the X
4639     # libraries were built with DECnet support.  And Karl Berry says
4640     # the Alpha needs dnet_stub (dnet does not exist).
4641     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4642     cat >conftest.$ac_ext <<_ACEOF
4643 #line $LINENO "configure"
4644 /* confdefs.h.  */
4645 _ACEOF
4646 cat confdefs.h >>conftest.$ac_ext
4647 cat >>conftest.$ac_ext <<_ACEOF
4648 /* end confdefs.h.  */
4649
4650 /* Override any gcc2 internal prototype to avoid an error.  */
4651 #ifdef __cplusplus
4652 extern "C"
4653 #endif
4654 /* We use char because int might match the return type of a gcc2
4655    builtin and then its argument prototype would still apply.  */
4656 char XOpenDisplay ();
4657 int
4658 main ()
4659 {
4660 XOpenDisplay ();
4661   ;
4662   return 0;
4663 }
4664 _ACEOF
4665 rm -f conftest.$ac_objext conftest$ac_exeext
4666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4667   (eval $ac_link) 2>&5
4668   ac_status=$?
4669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670   (exit $ac_status); } &&
4671          { ac_try='test -s conftest$ac_exeext'
4672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673   (eval $ac_try) 2>&5
4674   ac_status=$?
4675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676   (exit $ac_status); }; }; then
4677   :
4678 else
4679   echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.$ac_ext >&5
4681
4682 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4683 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4684 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4685   echo $ECHO_N "(cached) $ECHO_C" >&6
4686 else
4687   ac_check_lib_save_LIBS=$LIBS
4688 LIBS="-ldnet  $LIBS"
4689 cat >conftest.$ac_ext <<_ACEOF
4690 #line $LINENO "configure"
4691 /* confdefs.h.  */
4692 _ACEOF
4693 cat confdefs.h >>conftest.$ac_ext
4694 cat >>conftest.$ac_ext <<_ACEOF
4695 /* end confdefs.h.  */
4696
4697 /* Override any gcc2 internal prototype to avoid an error.  */
4698 #ifdef __cplusplus
4699 extern "C"
4700 #endif
4701 /* We use char because int might match the return type of a gcc2
4702    builtin and then its argument prototype would still apply.  */
4703 char dnet_ntoa ();
4704 int
4705 main ()
4706 {
4707 dnet_ntoa ();
4708   ;
4709   return 0;
4710 }
4711 _ACEOF
4712 rm -f conftest.$ac_objext conftest$ac_exeext
4713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4714   (eval $ac_link) 2>&5
4715   ac_status=$?
4716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717   (exit $ac_status); } &&
4718          { ac_try='test -s conftest$ac_exeext'
4719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720   (eval $ac_try) 2>&5
4721   ac_status=$?
4722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723   (exit $ac_status); }; }; then
4724   ac_cv_lib_dnet_dnet_ntoa=yes
4725 else
4726   echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.$ac_ext >&5
4728
4729 ac_cv_lib_dnet_dnet_ntoa=no
4730 fi
4731 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4732 LIBS=$ac_check_lib_save_LIBS
4733 fi
4734 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4735 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4736 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4737   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4738 fi
4739
4740     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4741       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4742 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4743 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4744   echo $ECHO_N "(cached) $ECHO_C" >&6
4745 else
4746   ac_check_lib_save_LIBS=$LIBS
4747 LIBS="-ldnet_stub  $LIBS"
4748 cat >conftest.$ac_ext <<_ACEOF
4749 #line $LINENO "configure"
4750 /* confdefs.h.  */
4751 _ACEOF
4752 cat confdefs.h >>conftest.$ac_ext
4753 cat >>conftest.$ac_ext <<_ACEOF
4754 /* end confdefs.h.  */
4755
4756 /* Override any gcc2 internal prototype to avoid an error.  */
4757 #ifdef __cplusplus
4758 extern "C"
4759 #endif
4760 /* We use char because int might match the return type of a gcc2
4761    builtin and then its argument prototype would still apply.  */
4762 char dnet_ntoa ();
4763 int
4764 main ()
4765 {
4766 dnet_ntoa ();
4767   ;
4768   return 0;
4769 }
4770 _ACEOF
4771 rm -f conftest.$ac_objext conftest$ac_exeext
4772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4773   (eval $ac_link) 2>&5
4774   ac_status=$?
4775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776   (exit $ac_status); } &&
4777          { ac_try='test -s conftest$ac_exeext'
4778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779   (eval $ac_try) 2>&5
4780   ac_status=$?
4781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782   (exit $ac_status); }; }; then
4783   ac_cv_lib_dnet_stub_dnet_ntoa=yes
4784 else
4785   echo "$as_me: failed program was:" >&5
4786 sed 's/^/| /' conftest.$ac_ext >&5
4787
4788 ac_cv_lib_dnet_stub_dnet_ntoa=no
4789 fi
4790 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4791 LIBS=$ac_check_lib_save_LIBS
4792 fi
4793 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4794 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
4795 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4796   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4797 fi
4798
4799     fi
4800 fi
4801 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4802     LIBS="$ac_xsave_LIBS"
4803
4804     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4805     # to get the SysV transport functions.
4806     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4807     # needs -lnsl.
4808     # The nsl library prevents programs from opening the X display
4809     # on Irix 5.2, according to T.E. Dickey.
4810     # The functions gethostbyname, getservbyname, and inet_addr are
4811     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4812     echo "$as_me:$LINENO: checking for gethostbyname" >&5
4813 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4814 if test "${ac_cv_func_gethostbyname+set}" = set; then
4815   echo $ECHO_N "(cached) $ECHO_C" >&6
4816 else
4817   cat >conftest.$ac_ext <<_ACEOF
4818 #line $LINENO "configure"
4819 /* confdefs.h.  */
4820 _ACEOF
4821 cat confdefs.h >>conftest.$ac_ext
4822 cat >>conftest.$ac_ext <<_ACEOF
4823 /* end confdefs.h.  */
4824 /* System header to define __stub macros and hopefully few prototypes,
4825     which can conflict with char gethostbyname (); below.
4826     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4827     <limits.h> exists even on freestanding compilers.  */
4828 #ifdef __STDC__
4829 # include <limits.h>
4830 #else
4831 # include <assert.h>
4832 #endif
4833 /* Override any gcc2 internal prototype to avoid an error.  */
4834 #ifdef __cplusplus
4835 extern "C"
4836 {
4837 #endif
4838 /* We use char because int might match the return type of a gcc2
4839    builtin and then its argument prototype would still apply.  */
4840 char gethostbyname ();
4841 /* The GNU C library defines this for functions which it implements
4842     to always fail with ENOSYS.  Some functions are actually named
4843     something starting with __ and the normal name is an alias.  */
4844 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4845 choke me
4846 #else
4847 char (*f) () = gethostbyname;
4848 #endif
4849 #ifdef __cplusplus
4850 }
4851 #endif
4852
4853 int
4854 main ()
4855 {
4856 return f != gethostbyname;
4857   ;
4858   return 0;
4859 }
4860 _ACEOF
4861 rm -f conftest.$ac_objext conftest$ac_exeext
4862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4863   (eval $ac_link) 2>&5
4864   ac_status=$?
4865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866   (exit $ac_status); } &&
4867          { ac_try='test -s conftest$ac_exeext'
4868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4869   (eval $ac_try) 2>&5
4870   ac_status=$?
4871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872   (exit $ac_status); }; }; then
4873   ac_cv_func_gethostbyname=yes
4874 else
4875   echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4877
4878 ac_cv_func_gethostbyname=no
4879 fi
4880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4881 fi
4882 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4883 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4884
4885     if test $ac_cv_func_gethostbyname = no; then
4886       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4887 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4888 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4889   echo $ECHO_N "(cached) $ECHO_C" >&6
4890 else
4891   ac_check_lib_save_LIBS=$LIBS
4892 LIBS="-lnsl  $LIBS"
4893 cat >conftest.$ac_ext <<_ACEOF
4894 #line $LINENO "configure"
4895 /* confdefs.h.  */
4896 _ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h.  */
4900
4901 /* Override any gcc2 internal prototype to avoid an error.  */
4902 #ifdef __cplusplus
4903 extern "C"
4904 #endif
4905 /* We use char because int might match the return type of a gcc2
4906    builtin and then its argument prototype would still apply.  */
4907 char gethostbyname ();
4908 int
4909 main ()
4910 {
4911 gethostbyname ();
4912   ;
4913   return 0;
4914 }
4915 _ACEOF
4916 rm -f conftest.$ac_objext conftest$ac_exeext
4917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4918   (eval $ac_link) 2>&5
4919   ac_status=$?
4920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921   (exit $ac_status); } &&
4922          { ac_try='test -s conftest$ac_exeext'
4923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924   (eval $ac_try) 2>&5
4925   ac_status=$?
4926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927   (exit $ac_status); }; }; then
4928   ac_cv_lib_nsl_gethostbyname=yes
4929 else
4930   echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4932
4933 ac_cv_lib_nsl_gethostbyname=no
4934 fi
4935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4936 LIBS=$ac_check_lib_save_LIBS
4937 fi
4938 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4939 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4940 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4941   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4942 fi
4943
4944       if test $ac_cv_lib_nsl_gethostbyname = no; then
4945         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4946 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4947 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4948   echo $ECHO_N "(cached) $ECHO_C" >&6
4949 else
4950   ac_check_lib_save_LIBS=$LIBS
4951 LIBS="-lbsd  $LIBS"
4952 cat >conftest.$ac_ext <<_ACEOF
4953 #line $LINENO "configure"
4954 /* confdefs.h.  */
4955 _ACEOF
4956 cat confdefs.h >>conftest.$ac_ext
4957 cat >>conftest.$ac_ext <<_ACEOF
4958 /* end confdefs.h.  */
4959
4960 /* Override any gcc2 internal prototype to avoid an error.  */
4961 #ifdef __cplusplus
4962 extern "C"
4963 #endif
4964 /* We use char because int might match the return type of a gcc2
4965    builtin and then its argument prototype would still apply.  */
4966 char gethostbyname ();
4967 int
4968 main ()
4969 {
4970 gethostbyname ();
4971   ;
4972   return 0;
4973 }
4974 _ACEOF
4975 rm -f conftest.$ac_objext conftest$ac_exeext
4976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4977   (eval $ac_link) 2>&5
4978   ac_status=$?
4979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980   (exit $ac_status); } &&
4981          { ac_try='test -s conftest$ac_exeext'
4982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4983   (eval $ac_try) 2>&5
4984   ac_status=$?
4985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986   (exit $ac_status); }; }; then
4987   ac_cv_lib_bsd_gethostbyname=yes
4988 else
4989   echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4991
4992 ac_cv_lib_bsd_gethostbyname=no
4993 fi
4994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4995 LIBS=$ac_check_lib_save_LIBS
4996 fi
4997 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4998 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4999 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5000   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5001 fi
5002
5003       fi
5004     fi
5005
5006     # lieder@skyler.mavd.honeywell.com says without -lsocket,
5007     # socket/setsockopt and other routines are undefined under SCO ODT
5008     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
5009     # on later versions), says Simon Leinen: it contains gethostby*
5010     # variants that don't use the name server (or something).  -lsocket
5011     # must be given before -lnsl if both are needed.  We assume that
5012     # if connect needs -lnsl, so does gethostbyname.
5013     echo "$as_me:$LINENO: checking for connect" >&5
5014 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5015 if test "${ac_cv_func_connect+set}" = set; then
5016   echo $ECHO_N "(cached) $ECHO_C" >&6
5017 else
5018   cat >conftest.$ac_ext <<_ACEOF
5019 #line $LINENO "configure"
5020 /* confdefs.h.  */
5021 _ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h.  */
5025 /* System header to define __stub macros and hopefully few prototypes,
5026     which can conflict with char connect (); below.
5027     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5028     <limits.h> exists even on freestanding compilers.  */
5029 #ifdef __STDC__
5030 # include <limits.h>
5031 #else
5032 # include <assert.h>
5033 #endif
5034 /* Override any gcc2 internal prototype to avoid an error.  */
5035 #ifdef __cplusplus
5036 extern "C"
5037 {
5038 #endif
5039 /* We use char because int might match the return type of a gcc2
5040    builtin and then its argument prototype would still apply.  */
5041 char connect ();
5042 /* The GNU C library defines this for functions which it implements
5043     to always fail with ENOSYS.  Some functions are actually named
5044     something starting with __ and the normal name is an alias.  */
5045 #if defined (__stub_connect) || defined (__stub___connect)
5046 choke me
5047 #else
5048 char (*f) () = connect;
5049 #endif
5050 #ifdef __cplusplus
5051 }
5052 #endif
5053
5054 int
5055 main ()
5056 {
5057 return f != connect;
5058   ;
5059   return 0;
5060 }
5061 _ACEOF
5062 rm -f conftest.$ac_objext conftest$ac_exeext
5063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5064   (eval $ac_link) 2>&5
5065   ac_status=$?
5066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067   (exit $ac_status); } &&
5068          { ac_try='test -s conftest$ac_exeext'
5069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5070   (eval $ac_try) 2>&5
5071   ac_status=$?
5072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073   (exit $ac_status); }; }; then
5074   ac_cv_func_connect=yes
5075 else
5076   echo "$as_me: failed program was:" >&5
5077 sed 's/^/| /' conftest.$ac_ext >&5
5078
5079 ac_cv_func_connect=no
5080 fi
5081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5082 fi
5083 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5084 echo "${ECHO_T}$ac_cv_func_connect" >&6
5085
5086     if test $ac_cv_func_connect = no; then
5087       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5088 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5089 if test "${ac_cv_lib_socket_connect+set}" = set; then
5090   echo $ECHO_N "(cached) $ECHO_C" >&6
5091 else
5092   ac_check_lib_save_LIBS=$LIBS
5093 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5094 cat >conftest.$ac_ext <<_ACEOF
5095 #line $LINENO "configure"
5096 /* confdefs.h.  */
5097 _ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h.  */
5101
5102 /* Override any gcc2 internal prototype to avoid an error.  */
5103 #ifdef __cplusplus
5104 extern "C"
5105 #endif
5106 /* We use char because int might match the return type of a gcc2
5107    builtin and then its argument prototype would still apply.  */
5108 char connect ();
5109 int
5110 main ()
5111 {
5112 connect ();
5113   ;
5114   return 0;
5115 }
5116 _ACEOF
5117 rm -f conftest.$ac_objext conftest$ac_exeext
5118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5119   (eval $ac_link) 2>&5
5120   ac_status=$?
5121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122   (exit $ac_status); } &&
5123          { ac_try='test -s conftest$ac_exeext'
5124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5125   (eval $ac_try) 2>&5
5126   ac_status=$?
5127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128   (exit $ac_status); }; }; then
5129   ac_cv_lib_socket_connect=yes
5130 else
5131   echo "$as_me: failed program was:" >&5
5132 sed 's/^/| /' conftest.$ac_ext >&5
5133
5134 ac_cv_lib_socket_connect=no
5135 fi
5136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5137 LIBS=$ac_check_lib_save_LIBS
5138 fi
5139 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5140 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5141 if test $ac_cv_lib_socket_connect = yes; then
5142   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5143 fi
5144
5145     fi
5146
5147     # Guillermo Gomez says -lposix is necessary on A/UX.
5148     echo "$as_me:$LINENO: checking for remove" >&5
5149 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5150 if test "${ac_cv_func_remove+set}" = set; then
5151   echo $ECHO_N "(cached) $ECHO_C" >&6
5152 else
5153   cat >conftest.$ac_ext <<_ACEOF
5154 #line $LINENO "configure"
5155 /* confdefs.h.  */
5156 _ACEOF
5157 cat confdefs.h >>conftest.$ac_ext
5158 cat >>conftest.$ac_ext <<_ACEOF
5159 /* end confdefs.h.  */
5160 /* System header to define __stub macros and hopefully few prototypes,
5161     which can conflict with char remove (); below.
5162     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5163     <limits.h> exists even on freestanding compilers.  */
5164 #ifdef __STDC__
5165 # include <limits.h>
5166 #else
5167 # include <assert.h>
5168 #endif
5169 /* Override any gcc2 internal prototype to avoid an error.  */
5170 #ifdef __cplusplus
5171 extern "C"
5172 {
5173 #endif
5174 /* We use char because int might match the return type of a gcc2
5175    builtin and then its argument prototype would still apply.  */
5176 char remove ();
5177 /* The GNU C library defines this for functions which it implements
5178     to always fail with ENOSYS.  Some functions are actually named
5179     something starting with __ and the normal name is an alias.  */
5180 #if defined (__stub_remove) || defined (__stub___remove)
5181 choke me
5182 #else
5183 char (*f) () = remove;
5184 #endif
5185 #ifdef __cplusplus
5186 }
5187 #endif
5188
5189 int
5190 main ()
5191 {
5192 return f != remove;
5193   ;
5194   return 0;
5195 }
5196 _ACEOF
5197 rm -f conftest.$ac_objext conftest$ac_exeext
5198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5199   (eval $ac_link) 2>&5
5200   ac_status=$?
5201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202   (exit $ac_status); } &&
5203          { ac_try='test -s conftest$ac_exeext'
5204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205   (eval $ac_try) 2>&5
5206   ac_status=$?
5207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208   (exit $ac_status); }; }; then
5209   ac_cv_func_remove=yes
5210 else
5211   echo "$as_me: failed program was:" >&5
5212 sed 's/^/| /' conftest.$ac_ext >&5
5213
5214 ac_cv_func_remove=no
5215 fi
5216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5217 fi
5218 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5219 echo "${ECHO_T}$ac_cv_func_remove" >&6
5220
5221     if test $ac_cv_func_remove = no; then
5222       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5223 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5224 if test "${ac_cv_lib_posix_remove+set}" = set; then
5225   echo $ECHO_N "(cached) $ECHO_C" >&6
5226 else
5227   ac_check_lib_save_LIBS=$LIBS
5228 LIBS="-lposix  $LIBS"
5229 cat >conftest.$ac_ext <<_ACEOF
5230 #line $LINENO "configure"
5231 /* confdefs.h.  */
5232 _ACEOF
5233 cat confdefs.h >>conftest.$ac_ext
5234 cat >>conftest.$ac_ext <<_ACEOF
5235 /* end confdefs.h.  */
5236
5237 /* Override any gcc2 internal prototype to avoid an error.  */
5238 #ifdef __cplusplus
5239 extern "C"
5240 #endif
5241 /* We use char because int might match the return type of a gcc2
5242    builtin and then its argument prototype would still apply.  */
5243 char remove ();
5244 int
5245 main ()
5246 {
5247 remove ();
5248   ;
5249   return 0;
5250 }
5251 _ACEOF
5252 rm -f conftest.$ac_objext conftest$ac_exeext
5253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5254   (eval $ac_link) 2>&5
5255   ac_status=$?
5256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257   (exit $ac_status); } &&
5258          { ac_try='test -s conftest$ac_exeext'
5259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5260   (eval $ac_try) 2>&5
5261   ac_status=$?
5262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263   (exit $ac_status); }; }; then
5264   ac_cv_lib_posix_remove=yes
5265 else
5266   echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.$ac_ext >&5
5268
5269 ac_cv_lib_posix_remove=no
5270 fi
5271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5272 LIBS=$ac_check_lib_save_LIBS
5273 fi
5274 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5275 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5276 if test $ac_cv_lib_posix_remove = yes; then
5277   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5278 fi
5279
5280     fi
5281
5282     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5283     echo "$as_me:$LINENO: checking for shmat" >&5
5284 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5285 if test "${ac_cv_func_shmat+set}" = set; then
5286   echo $ECHO_N "(cached) $ECHO_C" >&6
5287 else
5288   cat >conftest.$ac_ext <<_ACEOF
5289 #line $LINENO "configure"
5290 /* confdefs.h.  */
5291 _ACEOF
5292 cat confdefs.h >>conftest.$ac_ext
5293 cat >>conftest.$ac_ext <<_ACEOF
5294 /* end confdefs.h.  */
5295 /* System header to define __stub macros and hopefully few prototypes,
5296     which can conflict with char shmat (); below.
5297     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5298     <limits.h> exists even on freestanding compilers.  */
5299 #ifdef __STDC__
5300 # include <limits.h>
5301 #else
5302 # include <assert.h>
5303 #endif
5304 /* Override any gcc2 internal prototype to avoid an error.  */
5305 #ifdef __cplusplus
5306 extern "C"
5307 {
5308 #endif
5309 /* We use char because int might match the return type of a gcc2
5310    builtin and then its argument prototype would still apply.  */
5311 char shmat ();
5312 /* The GNU C library defines this for functions which it implements
5313     to always fail with ENOSYS.  Some functions are actually named
5314     something starting with __ and the normal name is an alias.  */
5315 #if defined (__stub_shmat) || defined (__stub___shmat)
5316 choke me
5317 #else
5318 char (*f) () = shmat;
5319 #endif
5320 #ifdef __cplusplus
5321 }
5322 #endif
5323
5324 int
5325 main ()
5326 {
5327 return f != shmat;
5328   ;
5329   return 0;
5330 }
5331 _ACEOF
5332 rm -f conftest.$ac_objext conftest$ac_exeext
5333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5334   (eval $ac_link) 2>&5
5335   ac_status=$?
5336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337   (exit $ac_status); } &&
5338          { ac_try='test -s conftest$ac_exeext'
5339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340   (eval $ac_try) 2>&5
5341   ac_status=$?
5342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343   (exit $ac_status); }; }; then
5344   ac_cv_func_shmat=yes
5345 else
5346   echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5348
5349 ac_cv_func_shmat=no
5350 fi
5351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5352 fi
5353 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5354 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5355
5356     if test $ac_cv_func_shmat = no; then
5357       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5358 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5359 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5360   echo $ECHO_N "(cached) $ECHO_C" >&6
5361 else
5362   ac_check_lib_save_LIBS=$LIBS
5363 LIBS="-lipc  $LIBS"
5364 cat >conftest.$ac_ext <<_ACEOF
5365 #line $LINENO "configure"
5366 /* confdefs.h.  */
5367 _ACEOF
5368 cat confdefs.h >>conftest.$ac_ext
5369 cat >>conftest.$ac_ext <<_ACEOF
5370 /* end confdefs.h.  */
5371
5372 /* Override any gcc2 internal prototype to avoid an error.  */
5373 #ifdef __cplusplus
5374 extern "C"
5375 #endif
5376 /* We use char because int might match the return type of a gcc2
5377    builtin and then its argument prototype would still apply.  */
5378 char shmat ();
5379 int
5380 main ()
5381 {
5382 shmat ();
5383   ;
5384   return 0;
5385 }
5386 _ACEOF
5387 rm -f conftest.$ac_objext conftest$ac_exeext
5388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5389   (eval $ac_link) 2>&5
5390   ac_status=$?
5391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392   (exit $ac_status); } &&
5393          { ac_try='test -s conftest$ac_exeext'
5394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395   (eval $ac_try) 2>&5
5396   ac_status=$?
5397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398   (exit $ac_status); }; }; then
5399   ac_cv_lib_ipc_shmat=yes
5400 else
5401   echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5403
5404 ac_cv_lib_ipc_shmat=no
5405 fi
5406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5407 LIBS=$ac_check_lib_save_LIBS
5408 fi
5409 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5410 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5411 if test $ac_cv_lib_ipc_shmat = yes; then
5412   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5413 fi
5414
5415     fi
5416   fi
5417
5418   # Check for libraries that X11R6 Xt/Xaw programs need.
5419   ac_save_LDFLAGS=$LDFLAGS
5420   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5421   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5422   # check for ICE first), but we must link in the order -lSM -lICE or
5423   # we get undefined symbols.  So assume we have SM if we have ICE.
5424   # These have to be linked with before -lX11, unlike the other
5425   # libraries we check for below, so use a different variable.
5426   # John Interrante, Karl Berry
5427   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5428 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5429 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5430   echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432   ac_check_lib_save_LIBS=$LIBS
5433 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5434 cat >conftest.$ac_ext <<_ACEOF
5435 #line $LINENO "configure"
5436 /* confdefs.h.  */
5437 _ACEOF
5438 cat confdefs.h >>conftest.$ac_ext
5439 cat >>conftest.$ac_ext <<_ACEOF
5440 /* end confdefs.h.  */
5441
5442 /* Override any gcc2 internal prototype to avoid an error.  */
5443 #ifdef __cplusplus
5444 extern "C"
5445 #endif
5446 /* We use char because int might match the return type of a gcc2
5447    builtin and then its argument prototype would still apply.  */
5448 char IceConnectionNumber ();
5449 int
5450 main ()
5451 {
5452 IceConnectionNumber ();
5453   ;
5454   return 0;
5455 }
5456 _ACEOF
5457 rm -f conftest.$ac_objext conftest$ac_exeext
5458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5459   (eval $ac_link) 2>&5
5460   ac_status=$?
5461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462   (exit $ac_status); } &&
5463          { ac_try='test -s conftest$ac_exeext'
5464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5465   (eval $ac_try) 2>&5
5466   ac_status=$?
5467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468   (exit $ac_status); }; }; then
5469   ac_cv_lib_ICE_IceConnectionNumber=yes
5470 else
5471   echo "$as_me: failed program was:" >&5
5472 sed 's/^/| /' conftest.$ac_ext >&5
5473
5474 ac_cv_lib_ICE_IceConnectionNumber=no
5475 fi
5476 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5477 LIBS=$ac_check_lib_save_LIBS
5478 fi
5479 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5480 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5481 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5482   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5483 fi
5484
5485   LDFLAGS=$ac_save_LDFLAGS
5486
5487 fi
5488
5489
5490 # Checks for X
5491 if test "x$with_x" = xyes; then
5492   if test "x$have_x" = xno; then
5493     if test "x$x_config_flag" = xyes; then
5494       { { echo "$as_me:$LINENO: error: Could not configure X" >&5
5495 echo "$as_me: error: Could not configure X" >&2;}
5496    { (exit 1); exit 1; }; }
5497     else
5498       { echo "$as_me:$LINENO: WARNING: Could not configure X" >&5
5499 echo "$as_me: WARNING: Could not configure X" >&2;}
5500     fi
5501   fi
5502 fi
5503 if test "x$with_x" = xyes -a "x$have_x" = xyes; then
5504   if test "x$x_libraries" != x; then
5505     ldflags_x_opt="-L$x_libraries"
5506     LDFLAGS="$LDFLAGS $ldflags_x_opt"
5507     SHLDFLAGS="$SHLDFLAGS $ldflags_x_opt"
5508   else
5509     ldflags_x_opt=
5510   fi
5511   if test "x$x_includes" != x; then
5512     CPPFLAGS="$CPPFLAGS -I$x_includes"
5513   fi
5514
5515
5516 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
5517 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
5518 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
5519   echo $ECHO_N "(cached) $ECHO_C" >&6
5520 else
5521   ac_check_lib_save_LIBS=$LIBS
5522 LIBS="-lX11  $LIBS"
5523 cat >conftest.$ac_ext <<_ACEOF
5524 #line $LINENO "configure"
5525 /* confdefs.h.  */
5526 _ACEOF
5527 cat confdefs.h >>conftest.$ac_ext
5528 cat >>conftest.$ac_ext <<_ACEOF
5529 /* end confdefs.h.  */
5530
5531 /* Override any gcc2 internal prototype to avoid an error.  */
5532 #ifdef __cplusplus
5533 extern "C"
5534 #endif
5535 /* We use char because int might match the return type of a gcc2
5536    builtin and then its argument prototype would still apply.  */
5537 char XOpenDisplay ();
5538 int
5539 main ()
5540 {
5541 XOpenDisplay ();
5542   ;
5543   return 0;
5544 }
5545 _ACEOF
5546 rm -f conftest.$ac_objext conftest$ac_exeext
5547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5548   (eval $ac_link) 2>&5
5549   ac_status=$?
5550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551   (exit $ac_status); } &&
5552          { ac_try='test -s conftest$ac_exeext'
5553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5554   (eval $ac_try) 2>&5
5555   ac_status=$?
5556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557   (exit $ac_status); }; }; then
5558   ac_cv_lib_X11_XOpenDisplay=yes
5559 else
5560   echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.$ac_ext >&5
5562
5563 ac_cv_lib_X11_XOpenDisplay=no
5564 fi
5565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5566 LIBS=$ac_check_lib_save_LIBS
5567 fi
5568 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
5569 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
5570 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
5571   cat >>confdefs.h <<_ACEOF
5572 #define HAVE_LIBX11 1
5573 _ACEOF
5574
5575   LIBS="-lX11 $LIBS"
5576
5577 fi
5578
5579   echo "$as_me:$LINENO: checking X11 version 6" >&5
5580 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
5581   if test "${timidity_cv_x11_version_6+set}" = set; then
5582   echo $ECHO_N "(cached) $ECHO_C" >&6
5583 else
5584   cat >conftest.$ac_ext <<_ACEOF
5585 #line $LINENO "configure"
5586 /* confdefs.h.  */
5587 _ACEOF
5588 cat confdefs.h >>conftest.$ac_ext
5589 cat >>conftest.$ac_ext <<_ACEOF
5590 /* end confdefs.h.  */
5591 #include <X11/Xlib.h>
5592 int
5593 main ()
5594 {
5595
5596 #if XlibSpecificationRelease < 6
5597 fail;
5598 #endif
5599
5600   ;
5601   return 0;
5602 }
5603 _ACEOF
5604 rm -f conftest.$ac_objext conftest$ac_exeext
5605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5606   (eval $ac_link) 2>&5
5607   ac_status=$?
5608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609   (exit $ac_status); } &&
5610          { ac_try='test -s conftest$ac_exeext'
5611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612   (eval $ac_try) 2>&5
5613   ac_status=$?
5614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615   (exit $ac_status); }; }; then
5616   timidity_cv_x11_version_6=yes
5617 else
5618   echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5620
5621 timidity_cv_x11_version_6=no
5622 fi
5623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5624 fi
5625
5626   if test "$timidity_cv_x11_version_6" = "yes"; then
5627     echo "$as_me:$LINENO: result: 6 or newer" >&5
5628 echo "${ECHO_T}6 or newer" >&6
5629       else
5630     echo "$as_me:$LINENO: result: before 6" >&5
5631 echo "${ECHO_T}before 6" >&6
5632   fi
5633
5634     KEEPLIBS=$LIBS
5635   echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
5636 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
5637 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
5638   echo $ECHO_N "(cached) $ECHO_C" >&6
5639 else
5640   ac_check_lib_save_LIBS=$LIBS
5641 LIBS="-lXext  $LIBS"
5642 cat >conftest.$ac_ext <<_ACEOF
5643 #line $LINENO "configure"
5644 /* confdefs.h.  */
5645 _ACEOF
5646 cat confdefs.h >>conftest.$ac_ext
5647 cat >>conftest.$ac_ext <<_ACEOF
5648 /* end confdefs.h.  */
5649
5650 /* Override any gcc2 internal prototype to avoid an error.  */
5651 #ifdef __cplusplus
5652 extern "C"
5653 #endif
5654 /* We use char because int might match the return type of a gcc2
5655    builtin and then its argument prototype would still apply.  */
5656 char XShapeCombineMask ();
5657 int
5658 main ()
5659 {
5660 XShapeCombineMask ();
5661   ;
5662   return 0;
5663 }
5664 _ACEOF
5665 rm -f conftest.$ac_objext conftest$ac_exeext
5666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5667   (eval $ac_link) 2>&5
5668   ac_status=$?
5669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670   (exit $ac_status); } &&
5671          { ac_try='test -s conftest$ac_exeext'
5672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673   (eval $ac_try) 2>&5
5674   ac_status=$?
5675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676   (exit $ac_status); }; }; then
5677   ac_cv_lib_Xext_XShapeCombineMask=yes
5678 else
5679   echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.$ac_ext >&5
5681
5682 ac_cv_lib_Xext_XShapeCombineMask=no
5683 fi
5684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5685 LIBS=$ac_check_lib_save_LIBS
5686 fi
5687 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
5688 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
5689 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
5690   have_xext=yes; LIBS="-lXext $LIBS"
5691 else
5692   have_xext=no
5693 fi
5694
5695
5696 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5697 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5698 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5699   echo $ECHO_N "(cached) $ECHO_C" >&6
5700 else
5701   ac_check_lib_save_LIBS=$LIBS
5702 LIBS="-lICE  $LIBS"
5703 cat >conftest.$ac_ext <<_ACEOF
5704 #line $LINENO "configure"
5705 /* confdefs.h.  */
5706 _ACEOF
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h.  */
5710
5711 /* Override any gcc2 internal prototype to avoid an error.  */
5712 #ifdef __cplusplus
5713 extern "C"
5714 #endif
5715 /* We use char because int might match the return type of a gcc2
5716    builtin and then its argument prototype would still apply.  */
5717 char IceConnectionNumber ();
5718 int
5719 main ()
5720 {
5721 IceConnectionNumber ();
5722   ;
5723   return 0;
5724 }
5725 _ACEOF
5726 rm -f conftest.$ac_objext conftest$ac_exeext
5727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5728   (eval $ac_link) 2>&5
5729   ac_status=$?
5730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731   (exit $ac_status); } &&
5732          { ac_try='test -s conftest$ac_exeext'
5733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734   (eval $ac_try) 2>&5
5735   ac_status=$?
5736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737   (exit $ac_status); }; }; then
5738   ac_cv_lib_ICE_IceConnectionNumber=yes
5739 else
5740   echo "$as_me: failed program was:" >&5
5741 sed 's/^/| /' conftest.$ac_ext >&5
5742
5743 ac_cv_lib_ICE_IceConnectionNumber=no
5744 fi
5745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5746 LIBS=$ac_check_lib_save_LIBS
5747 fi
5748 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5749 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5750 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5751   cat >>confdefs.h <<_ACEOF
5752 #define HAVE_LIBICE 1
5753 _ACEOF
5754
5755   LIBS="-lICE $LIBS"
5756
5757 fi
5758
5759   echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
5760 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
5761 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
5762   echo $ECHO_N "(cached) $ECHO_C" >&6
5763 else
5764   ac_check_lib_save_LIBS=$LIBS
5765 LIBS="-lSM  $LIBS"
5766 cat >conftest.$ac_ext <<_ACEOF
5767 #line $LINENO "configure"
5768 /* confdefs.h.  */
5769 _ACEOF
5770 cat confdefs.h >>conftest.$ac_ext
5771 cat >>conftest.$ac_ext <<_ACEOF
5772 /* end confdefs.h.  */
5773
5774 /* Override any gcc2 internal prototype to avoid an error.  */
5775 #ifdef __cplusplus
5776 extern "C"
5777 #endif
5778 /* We use char because int might match the return type of a gcc2
5779    builtin and then its argument prototype would still apply.  */
5780 char SmcOpenConnection ();
5781 int
5782 main ()
5783 {
5784 SmcOpenConnection ();
5785   ;
5786   return 0;
5787 }
5788 _ACEOF
5789 rm -f conftest.$ac_objext conftest$ac_exeext
5790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5791   (eval $ac_link) 2>&5
5792   ac_status=$?
5793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794   (exit $ac_status); } &&
5795          { ac_try='test -s conftest$ac_exeext'
5796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797   (eval $ac_try) 2>&5
5798   ac_status=$?
5799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800   (exit $ac_status); }; }; then
5801   ac_cv_lib_SM_SmcOpenConnection=yes
5802 else
5803   echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.$ac_ext >&5
5805
5806 ac_cv_lib_SM_SmcOpenConnection=no
5807 fi
5808 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5809 LIBS=$ac_check_lib_save_LIBS
5810 fi
5811 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
5812 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
5813 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
5814   have_xprelibs=yes; LIBS="-lSM $LIBS"
5815 else
5816   have_xprelibs=no
5817 fi
5818
5819   echo "$as_me:$LINENO: checking for XtVaAppInitialize in -lXt" >&5
5820 echo $ECHO_N "checking for XtVaAppInitialize in -lXt... $ECHO_C" >&6
5821 if test "${ac_cv_lib_Xt_XtVaAppInitialize+set}" = set; then
5822   echo $ECHO_N "(cached) $ECHO_C" >&6
5823 else
5824   ac_check_lib_save_LIBS=$LIBS
5825 LIBS="-lXt  $LIBS"
5826 cat >conftest.$ac_ext <<_ACEOF
5827 #line $LINENO "configure"
5828 /* confdefs.h.  */
5829 _ACEOF
5830 cat confdefs.h >>conftest.$ac_ext
5831 cat >>conftest.$ac_ext <<_ACEOF
5832 /* end confdefs.h.  */
5833
5834 /* Override any gcc2 internal prototype to avoid an error.  */
5835 #ifdef __cplusplus
5836 extern "C"
5837 #endif
5838 /* We use char because int might match the return type of a gcc2
5839    builtin and then its argument prototype would still apply.  */
5840 char XtVaAppInitialize ();
5841 int
5842 main ()
5843 {
5844 XtVaAppInitialize ();
5845   ;
5846   return 0;
5847 }
5848 _ACEOF
5849 rm -f conftest.$ac_objext conftest$ac_exeext
5850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5851   (eval $ac_link) 2>&5
5852   ac_status=$?
5853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854   (exit $ac_status); } &&
5855          { ac_try='test -s conftest$ac_exeext'
5856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5857   (eval $ac_try) 2>&5
5858   ac_status=$?
5859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860   (exit $ac_status); }; }; then
5861   ac_cv_lib_Xt_XtVaAppInitialize=yes
5862 else
5863   echo "$as_me: failed program was:" >&5
5864 sed 's/^/| /' conftest.$ac_ext >&5
5865
5866 ac_cv_lib_Xt_XtVaAppInitialize=no
5867 fi
5868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5869 LIBS=$ac_check_lib_save_LIBS
5870 fi
5871 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtVaAppInitialize" >&5
5872 echo "${ECHO_T}$ac_cv_lib_Xt_XtVaAppInitialize" >&6
5873 if test $ac_cv_lib_Xt_XtVaAppInitialize = yes; then
5874   have_xt=yes; LIBS="-lXt $LIBS"
5875 else
5876   have_xt=no
5877 fi
5878
5879   echo "$as_me:$LINENO: checking for XmuInternAtom in -lXmu" >&5
5880 echo $ECHO_N "checking for XmuInternAtom in -lXmu... $ECHO_C" >&6
5881 if test "${ac_cv_lib_Xmu_XmuInternAtom+set}" = set; then
5882   echo $ECHO_N "(cached) $ECHO_C" >&6
5883 else
5884   ac_check_lib_save_LIBS=$LIBS
5885 LIBS="-lXmu  $LIBS"
5886 cat >conftest.$ac_ext <<_ACEOF
5887 #line $LINENO "configure"
5888 /* confdefs.h.  */
5889 _ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h.  */
5893
5894 /* Override any gcc2 internal prototype to avoid an error.  */
5895 #ifdef __cplusplus
5896 extern "C"
5897 #endif
5898 /* We use char because int might match the return type of a gcc2
5899    builtin and then its argument prototype would still apply.  */
5900 char XmuInternAtom ();
5901 int
5902 main ()
5903 {
5904 XmuInternAtom ();
5905   ;
5906   return 0;
5907 }
5908 _ACEOF
5909 rm -f conftest.$ac_objext conftest$ac_exeext
5910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5911   (eval $ac_link) 2>&5
5912   ac_status=$?
5913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914   (exit $ac_status); } &&
5915          { ac_try='test -s conftest$ac_exeext'
5916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917   (eval $ac_try) 2>&5
5918   ac_status=$?
5919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920   (exit $ac_status); }; }; then
5921   ac_cv_lib_Xmu_XmuInternAtom=yes
5922 else
5923   echo "$as_me: failed program was:" >&5
5924 sed 's/^/| /' conftest.$ac_ext >&5
5925
5926 ac_cv_lib_Xmu_XmuInternAtom=no
5927 fi
5928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5929 LIBS=$ac_check_lib_save_LIBS
5930 fi
5931 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuInternAtom" >&5
5932 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuInternAtom" >&6
5933 if test $ac_cv_lib_Xmu_XmuInternAtom = yes; then
5934   LIBS="-lXmu $LIBS"
5935 fi
5936
5937
5938 for ac_func in XmuRegisterExternalAgent
5939 do
5940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5941 echo "$as_me:$LINENO: checking for $ac_func" >&5
5942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5943 if eval "test \"\${$as_ac_var+set}\" = set"; then
5944   echo $ECHO_N "(cached) $ECHO_C" >&6
5945 else
5946   cat >conftest.$ac_ext <<_ACEOF
5947 #line $LINENO "configure"
5948 /* confdefs.h.  */
5949 _ACEOF
5950 cat confdefs.h >>conftest.$ac_ext
5951 cat >>conftest.$ac_ext <<_ACEOF
5952 /* end confdefs.h.  */
5953 /* System header to define __stub macros and hopefully few prototypes,
5954     which can conflict with char $ac_func (); below.
5955     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5956     <limits.h> exists even on freestanding compilers.  */
5957 #ifdef __STDC__
5958 # include <limits.h>
5959 #else
5960 # include <assert.h>
5961 #endif
5962 /* Override any gcc2 internal prototype to avoid an error.  */
5963 #ifdef __cplusplus
5964 extern "C"
5965 {
5966 #endif
5967 /* We use char because int might match the return type of a gcc2
5968    builtin and then its argument prototype would still apply.  */
5969 char $ac_func ();
5970 /* The GNU C library defines this for functions which it implements
5971     to always fail with ENOSYS.  Some functions are actually named
5972     something starting with __ and the normal name is an alias.  */
5973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5974 choke me
5975 #else
5976 char (*f) () = $ac_func;
5977 #endif
5978 #ifdef __cplusplus
5979 }
5980 #endif
5981
5982 int
5983 main ()
5984 {
5985 return f != $ac_func;
5986   ;
5987   return 0;
5988 }
5989 _ACEOF
5990 rm -f conftest.$ac_objext conftest$ac_exeext
5991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5992   (eval $ac_link) 2>&5
5993   ac_status=$?
5994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995   (exit $ac_status); } &&
5996          { ac_try='test -s conftest$ac_exeext'
5997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998   (eval $ac_try) 2>&5
5999   ac_status=$?
6000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001   (exit $ac_status); }; }; then
6002   eval "$as_ac_var=yes"
6003 else
6004   echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6006
6007 eval "$as_ac_var=no"
6008 fi
6009 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6010 fi
6011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6012 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6013 if test `eval echo '${'$as_ac_var'}'` = yes; then
6014   cat >>confdefs.h <<_ACEOF
6015 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6016 _ACEOF
6017
6018 fi
6019 done
6020
6021   echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw3d" >&5
6022 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw3d... $ECHO_C" >&6
6023 if test "${ac_cv_lib_Xaw3d_XawInitializeWidgetSet+set}" = set; then
6024   echo $ECHO_N "(cached) $ECHO_C" >&6
6025 else
6026   ac_check_lib_save_LIBS=$LIBS
6027 LIBS="-lXaw3d  $LIBS"
6028 cat >conftest.$ac_ext <<_ACEOF
6029 #line $LINENO "configure"
6030 /* confdefs.h.  */
6031 _ACEOF
6032 cat confdefs.h >>conftest.$ac_ext
6033 cat >>conftest.$ac_ext <<_ACEOF
6034 /* end confdefs.h.  */
6035
6036 /* Override any gcc2 internal prototype to avoid an error.  */
6037 #ifdef __cplusplus
6038 extern "C"
6039 #endif
6040 /* We use char because int might match the return type of a gcc2
6041    builtin and then its argument prototype would still apply.  */
6042 char XawInitializeWidgetSet ();
6043 int
6044 main ()
6045 {
6046 XawInitializeWidgetSet ();
6047   ;
6048   return 0;
6049 }
6050 _ACEOF
6051 rm -f conftest.$ac_objext conftest$ac_exeext
6052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6053   (eval $ac_link) 2>&5
6054   ac_status=$?
6055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056   (exit $ac_status); } &&
6057          { ac_try='test -s conftest$ac_exeext'
6058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059   (eval $ac_try) 2>&5
6060   ac_status=$?
6061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062   (exit $ac_status); }; }; then
6063   ac_cv_lib_Xaw3d_XawInitializeWidgetSet=yes
6064 else
6065   echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.$ac_ext >&5
6067
6068 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=no
6069 fi
6070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6071 LIBS=$ac_check_lib_save_LIBS
6072 fi
6073 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&5
6074 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&6
6075 if test $ac_cv_lib_Xaw3d_XawInitializeWidgetSet = yes; then
6076   have_xaw=3d
6077 else
6078    echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw" >&5
6079 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw... $ECHO_C" >&6
6080 if test "${ac_cv_lib_Xaw_XawInitializeWidgetSet+set}" = set; then
6081   echo $ECHO_N "(cached) $ECHO_C" >&6
6082 else
6083   ac_check_lib_save_LIBS=$LIBS
6084 LIBS="-lXaw  $LIBS"
6085 cat >conftest.$ac_ext <<_ACEOF
6086 #line $LINENO "configure"
6087 /* confdefs.h.  */
6088 _ACEOF
6089 cat confdefs.h >>conftest.$ac_ext
6090 cat >>conftest.$ac_ext <<_ACEOF
6091 /* end confdefs.h.  */
6092
6093 /* Override any gcc2 internal prototype to avoid an error.  */
6094 #ifdef __cplusplus
6095 extern "C"
6096 #endif
6097 /* We use char because int might match the return type of a gcc2
6098    builtin and then its argument prototype would still apply.  */
6099 char XawInitializeWidgetSet ();
6100 int
6101 main ()
6102 {
6103 XawInitializeWidgetSet ();
6104   ;
6105   return 0;
6106 }
6107 _ACEOF
6108 rm -f conftest.$ac_objext conftest$ac_exeext
6109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6110   (eval $ac_link) 2>&5
6111   ac_status=$?
6112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113   (exit $ac_status); } &&
6114          { ac_try='test -s conftest$ac_exeext'
6115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116   (eval $ac_try) 2>&5
6117   ac_status=$?
6118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119   (exit $ac_status); }; }; then
6120   ac_cv_lib_Xaw_XawInitializeWidgetSet=yes
6121 else
6122   echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6124
6125 ac_cv_lib_Xaw_XawInitializeWidgetSet=no
6126 fi
6127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6128 LIBS=$ac_check_lib_save_LIBS
6129 fi
6130 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_XawInitializeWidgetSet" >&5
6131 echo "${ECHO_T}$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6
6132 if test $ac_cv_lib_Xaw_XawInitializeWidgetSet = yes; then
6133   have_xaw=yes
6134 else
6135   have_xaw=no
6136 fi
6137
6138 fi
6139
6140   echo "$as_me:$LINENO: checking for XmCreateForm in -lXm" >&5
6141 echo $ECHO_N "checking for XmCreateForm in -lXm... $ECHO_C" >&6
6142 if test "${ac_cv_lib_Xm_XmCreateForm+set}" = set; then
6143   echo $ECHO_N "(cached) $ECHO_C" >&6
6144 else
6145   ac_check_lib_save_LIBS=$LIBS
6146 LIBS="-lXm  $LIBS"
6147 cat >conftest.$ac_ext <<_ACEOF
6148 #line $LINENO "configure"
6149 /* confdefs.h.  */
6150 _ACEOF
6151 cat confdefs.h >>conftest.$ac_ext
6152 cat >>conftest.$ac_ext <<_ACEOF
6153 /* end confdefs.h.  */
6154
6155 /* Override any gcc2 internal prototype to avoid an error.  */
6156 #ifdef __cplusplus
6157 extern "C"
6158 #endif
6159 /* We use char because int might match the return type of a gcc2
6160    builtin and then its argument prototype would still apply.  */
6161 char XmCreateForm ();
6162 int
6163 main ()
6164 {
6165 XmCreateForm ();
6166   ;
6167   return 0;
6168 }
6169 _ACEOF
6170 rm -f conftest.$ac_objext conftest$ac_exeext
6171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6172   (eval $ac_link) 2>&5
6173   ac_status=$?
6174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175   (exit $ac_status); } &&
6176          { ac_try='test -s conftest$ac_exeext'
6177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178   (eval $ac_try) 2>&5
6179   ac_status=$?
6180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181   (exit $ac_status); }; }; then
6182   ac_cv_lib_Xm_XmCreateForm=yes
6183 else
6184   echo "$as_me: failed program was:" >&5
6185 sed 's/^/| /' conftest.$ac_ext >&5
6186
6187 ac_cv_lib_Xm_XmCreateForm=no
6188 fi
6189 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6190 LIBS=$ac_check_lib_save_LIBS
6191 fi
6192 echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmCreateForm" >&5
6193 echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateForm" >&6
6194 if test $ac_cv_lib_Xm_XmCreateForm = yes; then
6195   have_xm=yes
6196 else
6197   have_xm=no
6198 fi
6199
6200
6201 for ac_func in XShmCreatePixmap
6202 do
6203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6204 echo "$as_me:$LINENO: checking for $ac_func" >&5
6205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6206 if eval "test \"\${$as_ac_var+set}\" = set"; then
6207   echo $ECHO_N "(cached) $ECHO_C" >&6
6208 else
6209   cat >conftest.$ac_ext <<_ACEOF
6210 #line $LINENO "configure"
6211 /* confdefs.h.  */
6212 _ACEOF
6213 cat confdefs.h >>conftest.$ac_ext
6214 cat >>conftest.$ac_ext <<_ACEOF
6215 /* end confdefs.h.  */
6216 /* System header to define __stub macros and hopefully few prototypes,
6217     which can conflict with char $ac_func (); below.
6218     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6219     <limits.h> exists even on freestanding compilers.  */
6220 #ifdef __STDC__
6221 # include <limits.h>
6222 #else
6223 # include <assert.h>
6224 #endif
6225 /* Override any gcc2 internal prototype to avoid an error.  */
6226 #ifdef __cplusplus
6227 extern "C"
6228 {
6229 #endif
6230 /* We use char because int might match the return type of a gcc2
6231    builtin and then its argument prototype would still apply.  */
6232 char $ac_func ();
6233 /* The GNU C library defines this for functions which it implements
6234     to always fail with ENOSYS.  Some functions are actually named
6235     something starting with __ and the normal name is an alias.  */
6236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6237 choke me
6238 #else
6239 char (*f) () = $ac_func;
6240 #endif
6241 #ifdef __cplusplus
6242 }
6243 #endif
6244
6245 int
6246 main ()
6247 {
6248 return f != $ac_func;
6249   ;
6250   return 0;
6251 }
6252 _ACEOF
6253 rm -f conftest.$ac_objext conftest$ac_exeext
6254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6255   (eval $ac_link) 2>&5
6256   ac_status=$?
6257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258   (exit $ac_status); } &&
6259          { ac_try='test -s conftest$ac_exeext'
6260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261   (eval $ac_try) 2>&5
6262   ac_status=$?
6263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264   (exit $ac_status); }; }; then
6265   eval "$as_ac_var=yes"
6266 else
6267   echo "$as_me: failed program was:" >&5
6268 sed 's/^/| /' conftest.$ac_ext >&5
6269
6270 eval "$as_ac_var=no"
6271 fi
6272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6273 fi
6274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6275 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6276 if test `eval echo '${'$as_ac_var'}'` = yes; then
6277   cat >>confdefs.h <<_ACEOF
6278 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6279 _ACEOF
6280
6281 fi
6282 done
6283
6284   LIBS=$KEEPLIBS
6285 fi
6286
6287 # Checks for header files.
6288 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6289 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6290 if test "${ac_cv_header_stdc+set}" = set; then
6291   echo $ECHO_N "(cached) $ECHO_C" >&6
6292 else
6293   cat >conftest.$ac_ext <<_ACEOF
6294 #line $LINENO "configure"
6295 /* confdefs.h.  */
6296 _ACEOF
6297 cat confdefs.h >>conftest.$ac_ext
6298 cat >>conftest.$ac_ext <<_ACEOF
6299 /* end confdefs.h.  */
6300 #include <stdlib.h>
6301 #include <stdarg.h>
6302 #include <string.h>
6303 #include <float.h>
6304
6305 int
6306 main ()
6307 {
6308
6309   ;
6310   return 0;
6311 }
6312 _ACEOF
6313 rm -f conftest.$ac_objext
6314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6315   (eval $ac_compile) 2>&5
6316   ac_status=$?
6317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318   (exit $ac_status); } &&
6319          { ac_try='test -s conftest.$ac_objext'
6320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6321   (eval $ac_try) 2>&5
6322   ac_status=$?
6323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324   (exit $ac_status); }; }; then
6325   ac_cv_header_stdc=yes
6326 else
6327   echo "$as_me: failed program was:" >&5
6328 sed 's/^/| /' conftest.$ac_ext >&5
6329
6330 ac_cv_header_stdc=no
6331 fi
6332 rm -f conftest.$ac_objext conftest.$ac_ext
6333
6334 if test $ac_cv_header_stdc = yes; then
6335   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6336   cat >conftest.$ac_ext <<_ACEOF
6337 #line $LINENO "configure"
6338 /* confdefs.h.  */
6339 _ACEOF
6340 cat confdefs.h >>conftest.$ac_ext
6341 cat >>conftest.$ac_ext <<_ACEOF
6342 /* end confdefs.h.  */
6343 #include <string.h>
6344
6345 _ACEOF
6346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6347   $EGREP "memchr" >/dev/null 2>&1; then
6348   :
6349 else
6350   ac_cv_header_stdc=no
6351 fi
6352 rm -f conftest*
6353
6354 fi
6355
6356 if test $ac_cv_header_stdc = yes; then
6357   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6358   cat >conftest.$ac_ext <<_ACEOF
6359 #line $LINENO "configure"
6360 /* confdefs.h.  */
6361 _ACEOF
6362 cat confdefs.h >>conftest.$ac_ext
6363 cat >>conftest.$ac_ext <<_ACEOF
6364 /* end confdefs.h.  */
6365 #include <stdlib.h>
6366
6367 _ACEOF
6368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6369   $EGREP "free" >/dev/null 2>&1; then
6370   :
6371 else
6372   ac_cv_header_stdc=no
6373 fi
6374 rm -f conftest*
6375
6376 fi
6377
6378 if test $ac_cv_header_stdc = yes; then
6379   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6380   if test "$cross_compiling" = yes; then
6381   :
6382 else
6383   cat >conftest.$ac_ext <<_ACEOF
6384 #line $LINENO "configure"
6385 /* confdefs.h.  */
6386 _ACEOF
6387 cat confdefs.h >>conftest.$ac_ext
6388 cat >>conftest.$ac_ext <<_ACEOF
6389 /* end confdefs.h.  */
6390 #include <ctype.h>
6391 #if ((' ' & 0x0FF) == 0x020)
6392 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6393 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6394 #else
6395 # define ISLOWER(c) \
6396                    (('a' <= (c) && (c) <= 'i') \
6397                      || ('j' <= (c) && (c) <= 'r') \
6398                      || ('s' <= (c) && (c) <= 'z'))
6399 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6400 #endif
6401
6402 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6403 int
6404 main ()
6405 {
6406   int i;
6407   for (i = 0; i < 256; i++)
6408     if (XOR (islower (i), ISLOWER (i))
6409         || toupper (i) != TOUPPER (i))
6410       exit(2);
6411   exit (0);
6412 }
6413 _ACEOF
6414 rm -f conftest$ac_exeext
6415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6416   (eval $ac_link) 2>&5
6417   ac_status=$?
6418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421   (eval $ac_try) 2>&5
6422   ac_status=$?
6423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424   (exit $ac_status); }; }; then
6425   :
6426 else
6427   echo "$as_me: program exited with status $ac_status" >&5
6428 echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6430
6431 ( exit $ac_status )
6432 ac_cv_header_stdc=no
6433 fi
6434 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6435 fi
6436 fi
6437 fi
6438 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6439 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6440 if test $ac_cv_header_stdc = yes; then
6441
6442 cat >>confdefs.h <<\_ACEOF
6443 #define STDC_HEADERS 1
6444 _ACEOF
6445
6446 fi
6447
6448 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6459                   inttypes.h stdint.h unistd.h
6460 do
6461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6462 echo "$as_me:$LINENO: checking for $ac_header" >&5
6463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6465   echo $ECHO_N "(cached) $ECHO_C" >&6
6466 else
6467   cat >conftest.$ac_ext <<_ACEOF
6468 #line $LINENO "configure"
6469 /* confdefs.h.  */
6470 _ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h.  */
6474 $ac_includes_default
6475
6476 #include <$ac_header>
6477 _ACEOF
6478 rm -f conftest.$ac_objext
6479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6480   (eval $ac_compile) 2>&5
6481   ac_status=$?
6482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483   (exit $ac_status); } &&
6484          { ac_try='test -s conftest.$ac_objext'
6485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486   (eval $ac_try) 2>&5
6487   ac_status=$?
6488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489   (exit $ac_status); }; }; then
6490   eval "$as_ac_Header=yes"
6491 else
6492   echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.$ac_ext >&5
6494
6495 eval "$as_ac_Header=no"
6496 fi
6497 rm -f conftest.$ac_objext conftest.$ac_ext
6498 fi
6499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6502   cat >>confdefs.h <<_ACEOF
6503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6504 _ACEOF
6505
6506 fi
6507
6508 done
6509
6510
6511 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
6512 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
6513 if test "${ac_cv_header_stdbool_h+set}" = set; then
6514   echo $ECHO_N "(cached) $ECHO_C" >&6
6515 else
6516   cat >conftest.$ac_ext <<_ACEOF
6517 #line $LINENO "configure"
6518 /* confdefs.h.  */
6519 _ACEOF
6520 cat confdefs.h >>conftest.$ac_ext
6521 cat >>conftest.$ac_ext <<_ACEOF
6522 /* end confdefs.h.  */
6523
6524 #include <stdbool.h>
6525 #ifndef bool
6526 # error bool is not defined
6527 #endif
6528 #ifndef false
6529 # error false is not defined
6530 #endif
6531 #if false
6532 # error false is not 0
6533 #endif
6534 #ifndef true
6535 # error true is not defined
6536 #endif
6537 #if true != 1
6538 # error true is not 1
6539 #endif
6540 #ifndef __bool_true_false_are_defined
6541 # error __bool_true_false_are_defined is not defined
6542 #endif
6543
6544         struct s { _Bool s: 1; _Bool t; } s;
6545
6546         char a[true == 1 ? 1 : -1];
6547         char b[false == 0 ? 1 : -1];
6548         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6549         char d[(bool) -0.5 == true ? 1 : -1];
6550         bool e = &s;
6551         char f[(_Bool) -0.0 == false ? 1 : -1];
6552         char g[true];
6553         char h[sizeof (_Bool)];
6554         char i[sizeof s.t];
6555
6556 int
6557 main ()
6558 {
6559  return !a + !b + !c + !d + !e + !f + !g + !h + !i;
6560   ;
6561   return 0;
6562 }
6563 _ACEOF
6564 rm -f conftest.$ac_objext
6565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6566   (eval $ac_compile) 2>&5
6567   ac_status=$?
6568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569   (exit $ac_status); } &&
6570          { ac_try='test -s conftest.$ac_objext'
6571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572   (eval $ac_try) 2>&5
6573   ac_status=$?
6574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575   (exit $ac_status); }; }; then
6576   ac_cv_header_stdbool_h=yes
6577 else
6578   echo "$as_me: failed program was:" >&5
6579 sed 's/^/| /' conftest.$ac_ext >&5
6580
6581 ac_cv_header_stdbool_h=no
6582 fi
6583 rm -f conftest.$ac_objext conftest.$ac_ext
6584 fi
6585 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
6586 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
6587 echo "$as_me:$LINENO: checking for _Bool" >&5
6588 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
6589 if test "${ac_cv_type__Bool+set}" = set; then
6590   echo $ECHO_N "(cached) $ECHO_C" >&6
6591 else
6592   cat >conftest.$ac_ext <<_ACEOF
6593 #line $LINENO "configure"
6594 /* confdefs.h.  */
6595 _ACEOF
6596 cat confdefs.h >>conftest.$ac_ext
6597 cat >>conftest.$ac_ext <<_ACEOF
6598 /* end confdefs.h.  */
6599 $ac_includes_default
6600 int
6601 main ()
6602 {
6603 if ((_Bool *) 0)
6604   return 0;
6605 if (sizeof (_Bool))
6606   return 0;
6607   ;
6608   return 0;
6609 }
6610 _ACEOF
6611 rm -f conftest.$ac_objext
6612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6613   (eval $ac_compile) 2>&5
6614   ac_status=$?
6615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616   (exit $ac_status); } &&
6617          { ac_try='test -s conftest.$ac_objext'
6618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6619   (eval $ac_try) 2>&5
6620   ac_status=$?
6621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622   (exit $ac_status); }; }; then
6623   ac_cv_type__Bool=yes
6624 else
6625   echo "$as_me: failed program was:" >&5
6626 sed 's/^/| /' conftest.$ac_ext >&5
6627
6628 ac_cv_type__Bool=no
6629 fi
6630 rm -f conftest.$ac_objext conftest.$ac_ext
6631 fi
6632 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
6633 echo "${ECHO_T}$ac_cv_type__Bool" >&6
6634 if test $ac_cv_type__Bool = yes; then
6635
6636 cat >>confdefs.h <<_ACEOF
6637 #define HAVE__BOOL 1
6638 _ACEOF
6639
6640
6641 fi
6642
6643 if test $ac_cv_header_stdbool_h = yes; then
6644
6645 cat >>confdefs.h <<\_ACEOF
6646 #define HAVE_STDBOOL_H 1
6647 _ACEOF
6648
6649 fi
6650
6651 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6652 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6653 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6654   echo $ECHO_N "(cached) $ECHO_C" >&6
6655 else
6656   cat >conftest.$ac_ext <<_ACEOF
6657 #line $LINENO "configure"
6658 /* confdefs.h.  */
6659 _ACEOF
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/wait.h>
6665 #ifndef WEXITSTATUS
6666 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6667 #endif
6668 #ifndef WIFEXITED
6669 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6670 #endif
6671
6672 int
6673 main ()
6674 {
6675   int s;
6676   wait (&s);
6677   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6678   ;
6679   return 0;
6680 }
6681 _ACEOF
6682 rm -f conftest.$ac_objext
6683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6684   (eval $ac_compile) 2>&5
6685   ac_status=$?
6686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687   (exit $ac_status); } &&
6688          { ac_try='test -s conftest.$ac_objext'
6689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690   (eval $ac_try) 2>&5
6691   ac_status=$?
6692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693   (exit $ac_status); }; }; then
6694   ac_cv_header_sys_wait_h=yes
6695 else
6696   echo "$as_me: failed program was:" >&5
6697 sed 's/^/| /' conftest.$ac_ext >&5
6698
6699 ac_cv_header_sys_wait_h=no
6700 fi
6701 rm -f conftest.$ac_objext conftest.$ac_ext
6702 fi
6703 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6704 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6705 if test $ac_cv_header_sys_wait_h = yes; then
6706
6707 cat >>confdefs.h <<\_ACEOF
6708 #define HAVE_SYS_WAIT_H 1
6709 _ACEOF
6710
6711 fi
6712
6713 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6714 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6715 if test "${ac_cv_header_time+set}" = set; then
6716   echo $ECHO_N "(cached) $ECHO_C" >&6
6717 else
6718   cat >conftest.$ac_ext <<_ACEOF
6719 #line $LINENO "configure"
6720 /* confdefs.h.  */
6721 _ACEOF
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h.  */
6725 #include <sys/types.h>
6726 #include <sys/time.h>
6727 #include <time.h>
6728
6729 int
6730 main ()
6731 {
6732 if ((struct tm *) 0)
6733 return 0;
6734   ;
6735   return 0;
6736 }
6737 _ACEOF
6738 rm -f conftest.$ac_objext
6739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6740   (eval $ac_compile) 2>&5
6741   ac_status=$?
6742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743   (exit $ac_status); } &&
6744          { ac_try='test -s conftest.$ac_objext'
6745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6746   (eval $ac_try) 2>&5
6747   ac_status=$?
6748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749   (exit $ac_status); }; }; then
6750   ac_cv_header_time=yes
6751 else
6752   echo "$as_me: failed program was:" >&5
6753 sed 's/^/| /' conftest.$ac_ext >&5
6754
6755 ac_cv_header_time=no
6756 fi
6757 rm -f conftest.$ac_objext conftest.$ac_ext
6758 fi
6759 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6760 echo "${ECHO_T}$ac_cv_header_time" >&6
6761 if test $ac_cv_header_time = yes; then
6762
6763 cat >>confdefs.h <<\_ACEOF
6764 #define TIME_WITH_SYS_TIME 1
6765 _ACEOF
6766
6767 fi
6768
6769
6770
6771
6772
6773
6774 ac_header_dirent=no
6775 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6776   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6777 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6778 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6780   echo $ECHO_N "(cached) $ECHO_C" >&6
6781 else
6782   cat >conftest.$ac_ext <<_ACEOF
6783 #line $LINENO "configure"
6784 /* confdefs.h.  */
6785 _ACEOF
6786 cat confdefs.h >>conftest.$ac_ext
6787 cat >>conftest.$ac_ext <<_ACEOF
6788 /* end confdefs.h.  */
6789 #include <sys/types.h>
6790 #include <$ac_hdr>
6791
6792 int
6793 main ()
6794 {
6795 if ((DIR *) 0)
6796 return 0;
6797   ;
6798   return 0;
6799 }
6800 _ACEOF
6801 rm -f conftest.$ac_objext
6802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6803   (eval $ac_compile) 2>&5
6804   ac_status=$?
6805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806   (exit $ac_status); } &&
6807          { ac_try='test -s conftest.$ac_objext'
6808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6809   (eval $ac_try) 2>&5
6810   ac_status=$?
6811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812   (exit $ac_status); }; }; then
6813   eval "$as_ac_Header=yes"
6814 else
6815   echo "$as_me: failed program was:" >&5
6816 sed 's/^/| /' conftest.$ac_ext >&5
6817
6818 eval "$as_ac_Header=no"
6819 fi
6820 rm -f conftest.$ac_objext conftest.$ac_ext
6821 fi
6822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6825   cat >>confdefs.h <<_ACEOF
6826 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6827 _ACEOF
6828
6829 ac_header_dirent=$ac_hdr; break
6830 fi
6831
6832 done
6833 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6834 if test $ac_header_dirent = dirent.h; then
6835   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6836 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6837 if test "${ac_cv_search_opendir+set}" = set; then
6838   echo $ECHO_N "(cached) $ECHO_C" >&6
6839 else
6840   ac_func_search_save_LIBS=$LIBS
6841 ac_cv_search_opendir=no
6842 cat >conftest.$ac_ext <<_ACEOF
6843 #line $LINENO "configure"
6844 /* confdefs.h.  */
6845 _ACEOF
6846 cat confdefs.h >>conftest.$ac_ext
6847 cat >>conftest.$ac_ext <<_ACEOF
6848 /* end confdefs.h.  */
6849
6850 /* Override any gcc2 internal prototype to avoid an error.  */
6851 #ifdef __cplusplus
6852 extern "C"
6853 #endif
6854 /* We use char because int might match the return type of a gcc2
6855    builtin and then its argument prototype would still apply.  */
6856 char opendir ();
6857 int
6858 main ()
6859 {
6860 opendir ();
6861   ;
6862   return 0;
6863 }
6864 _ACEOF
6865 rm -f conftest.$ac_objext conftest$ac_exeext
6866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6867   (eval $ac_link) 2>&5
6868   ac_status=$?
6869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870   (exit $ac_status); } &&
6871          { ac_try='test -s conftest$ac_exeext'
6872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6873   (eval $ac_try) 2>&5
6874   ac_status=$?
6875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876   (exit $ac_status); }; }; then
6877   ac_cv_search_opendir="none required"
6878 else
6879   echo "$as_me: failed program was:" >&5
6880 sed 's/^/| /' conftest.$ac_ext >&5
6881
6882 fi
6883 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6884 if test "$ac_cv_search_opendir" = no; then
6885   for ac_lib in dir; do
6886     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6887     cat >conftest.$ac_ext <<_ACEOF
6888 #line $LINENO "configure"
6889 /* confdefs.h.  */
6890 _ACEOF
6891 cat confdefs.h >>conftest.$ac_ext
6892 cat >>conftest.$ac_ext <<_ACEOF
6893 /* end confdefs.h.  */
6894
6895 /* Override any gcc2 internal prototype to avoid an error.  */
6896 #ifdef __cplusplus
6897 extern "C"
6898 #endif
6899 /* We use char because int might match the return type of a gcc2
6900    builtin and then its argument prototype would still apply.  */
6901 char opendir ();
6902 int
6903 main ()
6904 {
6905 opendir ();
6906   ;
6907   return 0;
6908 }
6909 _ACEOF
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
6913   ac_status=$?
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
6918   (eval $ac_try) 2>&5
6919   ac_status=$?
6920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921   (exit $ac_status); }; }; then
6922   ac_cv_search_opendir="-l$ac_lib"
6923 break
6924 else
6925   echo "$as_me: failed program was:" >&5
6926 sed 's/^/| /' conftest.$ac_ext >&5
6927
6928 fi
6929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6930   done
6931 fi
6932 LIBS=$ac_func_search_save_LIBS
6933 fi
6934 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6935 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6936 if test "$ac_cv_search_opendir" != no; then
6937   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6938
6939 fi
6940
6941 else
6942   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6943 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6944 if test "${ac_cv_search_opendir+set}" = set; then
6945   echo $ECHO_N "(cached) $ECHO_C" >&6
6946 else
6947   ac_func_search_save_LIBS=$LIBS
6948 ac_cv_search_opendir=no
6949 cat >conftest.$ac_ext <<_ACEOF
6950 #line $LINENO "configure"
6951 /* confdefs.h.  */
6952 _ACEOF
6953 cat confdefs.h >>conftest.$ac_ext
6954 cat >>conftest.$ac_ext <<_ACEOF
6955 /* end confdefs.h.  */
6956
6957 /* Override any gcc2 internal prototype to avoid an error.  */
6958 #ifdef __cplusplus
6959 extern "C"
6960 #endif
6961 /* We use char because int might match the return type of a gcc2
6962    builtin and then its argument prototype would still apply.  */
6963 char opendir ();
6964 int
6965 main ()
6966 {
6967 opendir ();
6968   ;
6969   return 0;
6970 }
6971 _ACEOF
6972 rm -f conftest.$ac_objext conftest$ac_exeext
6973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6974   (eval $ac_link) 2>&5
6975   ac_status=$?
6976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977   (exit $ac_status); } &&
6978          { ac_try='test -s conftest$ac_exeext'
6979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980   (eval $ac_try) 2>&5
6981   ac_status=$?
6982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983   (exit $ac_status); }; }; then
6984   ac_cv_search_opendir="none required"
6985 else
6986   echo "$as_me: failed program was:" >&5
6987 sed 's/^/| /' conftest.$ac_ext >&5
6988
6989 fi
6990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6991 if test "$ac_cv_search_opendir" = no; then
6992   for ac_lib in x; do
6993     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6994     cat >conftest.$ac_ext <<_ACEOF
6995 #line $LINENO "configure"
6996 /* confdefs.h.  */
6997 _ACEOF
6998 cat confdefs.h >>conftest.$ac_ext
6999 cat >>conftest.$ac_ext <<_ACEOF
7000 /* end confdefs.h.  */
7001
7002 /* Override any gcc2 internal prototype to avoid an error.  */
7003 #ifdef __cplusplus
7004 extern "C"
7005 #endif
7006 /* We use char because int might match the return type of a gcc2
7007    builtin and then its argument prototype would still apply.  */
7008 char opendir ();
7009 int
7010 main ()
7011 {
7012 opendir ();
7013   ;
7014   return 0;
7015 }
7016 _ACEOF
7017 rm -f conftest.$ac_objext conftest$ac_exeext
7018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7019   (eval $ac_link) 2>&5
7020   ac_status=$?
7021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022   (exit $ac_status); } &&
7023          { ac_try='test -s conftest$ac_exeext'
7024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025   (eval $ac_try) 2>&5
7026   ac_status=$?
7027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028   (exit $ac_status); }; }; then
7029   ac_cv_search_opendir="-l$ac_lib"
7030 break
7031 else
7032   echo "$as_me: failed program was:" >&5
7033 sed 's/^/| /' conftest.$ac_ext >&5
7034
7035 fi
7036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7037   done
7038 fi
7039 LIBS=$ac_func_search_save_LIBS
7040 fi
7041 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7042 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7043 if test "$ac_cv_search_opendir" != no; then
7044   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7045
7046 fi
7047
7048 fi
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089 for ac_header in \
7090   arpa/inet.h \
7091   errno.h \
7092   getopt.h \
7093   glob.h \
7094   dlfcn.h \
7095   fcntl.h \
7096   inttypes.h \
7097   limits.h \
7098   machine/endian.h \
7099   malloc.h \
7100   memory.h \
7101   netdb.h \
7102   netinet/in.h \
7103   nlist.h \
7104   stddef.h \
7105   stdlib.h \
7106   stdint.h \
7107   string.h \
7108   strings.h \
7109   stropts.h \
7110   soundcard.h \
7111   alsa/asoundlib.h \
7112   sys/asoundlib.h \
7113   sys/audioio.h \
7114   sys/awe_voice.h\
7115   sys/ioctl.h \
7116   sys/ipc.h \
7117   sys/param.h \
7118   sys/shm.h \
7119   sys/socket.h \
7120   sys/soundcard.h \
7121   sys/param.h \
7122   sys/time.h \
7123   sys/types.h \
7124   sys/sysctl.h \
7125   termios.h \
7126   unistd.h \
7127   X11/extensions/XShm.h \
7128   X11/Xmu/ExtAgent.h
7129 do
7130 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7132   echo "$as_me:$LINENO: checking for $ac_header" >&5
7133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7135   echo $ECHO_N "(cached) $ECHO_C" >&6
7136 fi
7137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7138 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7139 else
7140   # Is the header compilable?
7141 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7142 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7143 cat >conftest.$ac_ext <<_ACEOF
7144 #line $LINENO "configure"
7145 /* confdefs.h.  */
7146 _ACEOF
7147 cat confdefs.h >>conftest.$ac_ext
7148 cat >>conftest.$ac_ext <<_ACEOF
7149 /* end confdefs.h.  */
7150 $ac_includes_default
7151 #include <$ac_header>
7152 _ACEOF
7153 rm -f conftest.$ac_objext
7154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7155   (eval $ac_compile) 2>&5
7156   ac_status=$?
7157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158   (exit $ac_status); } &&
7159          { ac_try='test -s conftest.$ac_objext'
7160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7161   (eval $ac_try) 2>&5
7162   ac_status=$?
7163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164   (exit $ac_status); }; }; then
7165   ac_header_compiler=yes
7166 else
7167   echo "$as_me: failed program was:" >&5
7168 sed 's/^/| /' conftest.$ac_ext >&5
7169
7170 ac_header_compiler=no
7171 fi
7172 rm -f conftest.$ac_objext conftest.$ac_ext
7173 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7174 echo "${ECHO_T}$ac_header_compiler" >&6
7175
7176 # Is the header present?
7177 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7179 cat >conftest.$ac_ext <<_ACEOF
7180 #line $LINENO "configure"
7181 /* confdefs.h.  */
7182 _ACEOF
7183 cat confdefs.h >>conftest.$ac_ext
7184 cat >>conftest.$ac_ext <<_ACEOF
7185 /* end confdefs.h.  */
7186 #include <$ac_header>
7187 _ACEOF
7188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7189   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7190   ac_status=$?
7191   grep -v '^ *+' conftest.er1 >conftest.err
7192   rm -f conftest.er1
7193   cat conftest.err >&5
7194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195   (exit $ac_status); } >/dev/null; then
7196   if test -s conftest.err; then
7197     ac_cpp_err=$ac_c_preproc_warn_flag
7198   else
7199     ac_cpp_err=
7200   fi
7201 else
7202   ac_cpp_err=yes
7203 fi
7204 if test -z "$ac_cpp_err"; then
7205   ac_header_preproc=yes
7206 else
7207   echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7209
7210   ac_header_preproc=no
7211 fi
7212 rm -f conftest.err conftest.$ac_ext
7213 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7214 echo "${ECHO_T}$ac_header_preproc" >&6
7215
7216 # So?  What about this header?
7217 case $ac_header_compiler:$ac_header_preproc in
7218   yes:no )
7219     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7221     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7223     (
7224       cat <<\_ASBOX
7225 ## ------------------------------------ ##
7226 ## Report this to bug-autoconf@gnu.org. ##
7227 ## ------------------------------------ ##
7228 _ASBOX
7229     ) |
7230       sed "s/^/$as_me: WARNING:     /" >&2
7231     ;;
7232   no:yes )
7233     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7234 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7235     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7236 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7237     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7239     (
7240       cat <<\_ASBOX
7241 ## ------------------------------------ ##
7242 ## Report this to bug-autoconf@gnu.org. ##
7243 ## ------------------------------------ ##
7244 _ASBOX
7245     ) |
7246       sed "s/^/$as_me: WARNING:     /" >&2
7247     ;;
7248 esac
7249 echo "$as_me:$LINENO: checking for $ac_header" >&5
7250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7252   echo $ECHO_N "(cached) $ECHO_C" >&6
7253 else
7254   eval "$as_ac_Header=$ac_header_preproc"
7255 fi
7256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7258
7259 fi
7260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7261   cat >>confdefs.h <<_ACEOF
7262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7263 _ACEOF
7264
7265 fi
7266
7267 done
7268
7269 if test "${ac_cv_header_string_h+set}" = set; then
7270   echo "$as_me:$LINENO: checking for string.h" >&5
7271 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
7272 if test "${ac_cv_header_string_h+set}" = set; then
7273   echo $ECHO_N "(cached) $ECHO_C" >&6
7274 fi
7275 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7276 echo "${ECHO_T}$ac_cv_header_string_h" >&6
7277 else
7278   # Is the header compilable?
7279 echo "$as_me:$LINENO: checking string.h usability" >&5
7280 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
7281 cat >conftest.$ac_ext <<_ACEOF
7282 #line $LINENO "configure"
7283 /* confdefs.h.  */
7284 _ACEOF
7285 cat confdefs.h >>conftest.$ac_ext
7286 cat >>conftest.$ac_ext <<_ACEOF
7287 /* end confdefs.h.  */
7288 $ac_includes_default
7289 #include <string.h>
7290 _ACEOF
7291 rm -f conftest.$ac_objext
7292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7293   (eval $ac_compile) 2>&5
7294   ac_status=$?
7295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296   (exit $ac_status); } &&
7297          { ac_try='test -s conftest.$ac_objext'
7298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7299   (eval $ac_try) 2>&5
7300   ac_status=$?
7301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302   (exit $ac_status); }; }; then
7303   ac_header_compiler=yes
7304 else
7305   echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7307
7308 ac_header_compiler=no
7309 fi
7310 rm -f conftest.$ac_objext conftest.$ac_ext
7311 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7312 echo "${ECHO_T}$ac_header_compiler" >&6
7313
7314 # Is the header present?
7315 echo "$as_me:$LINENO: checking string.h presence" >&5
7316 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
7317 cat >conftest.$ac_ext <<_ACEOF
7318 #line $LINENO "configure"
7319 /* confdefs.h.  */
7320 _ACEOF
7321 cat confdefs.h >>conftest.$ac_ext
7322 cat >>conftest.$ac_ext <<_ACEOF
7323 /* end confdefs.h.  */
7324 #include <string.h>
7325 _ACEOF
7326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7327   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7328   ac_status=$?
7329   grep -v '^ *+' conftest.er1 >conftest.err
7330   rm -f conftest.er1
7331   cat conftest.err >&5
7332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333   (exit $ac_status); } >/dev/null; then
7334   if test -s conftest.err; then
7335     ac_cpp_err=$ac_c_preproc_warn_flag
7336   else
7337     ac_cpp_err=
7338   fi
7339 else
7340   ac_cpp_err=yes
7341 fi
7342 if test -z "$ac_cpp_err"; then
7343   ac_header_preproc=yes
7344 else
7345   echo "$as_me: failed program was:" >&5
7346 sed 's/^/| /' conftest.$ac_ext >&5
7347
7348   ac_header_preproc=no
7349 fi
7350 rm -f conftest.err conftest.$ac_ext
7351 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7352 echo "${ECHO_T}$ac_header_preproc" >&6
7353
7354 # So?  What about this header?
7355 case $ac_header_compiler:$ac_header_preproc in
7356   yes:no )
7357     { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
7358 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7359     { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
7360 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
7361     (
7362       cat <<\_ASBOX
7363 ## ------------------------------------ ##
7364 ## Report this to bug-autoconf@gnu.org. ##
7365 ## ------------------------------------ ##
7366 _ASBOX
7367     ) |
7368       sed "s/^/$as_me: WARNING:     /" >&2
7369     ;;
7370   no:yes )
7371     { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
7372 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
7373     { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
7374 echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
7375     { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
7376 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
7377     (
7378       cat <<\_ASBOX
7379 ## ------------------------------------ ##
7380 ## Report this to bug-autoconf@gnu.org. ##
7381 ## ------------------------------------ ##
7382 _ASBOX
7383     ) |
7384       sed "s/^/$as_me: WARNING:     /" >&2
7385     ;;
7386 esac
7387 echo "$as_me:$LINENO: checking for string.h" >&5
7388 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
7389 if test "${ac_cv_header_string_h+set}" = set; then
7390   echo $ECHO_N "(cached) $ECHO_C" >&6
7391 else
7392   ac_cv_header_string_h=$ac_header_preproc
7393 fi
7394 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7395 echo "${ECHO_T}$ac_cv_header_string_h" >&6
7396
7397 fi
7398 if test $ac_cv_header_string_h = yes; then
7399   :
7400 else
7401
7402 cat >>confdefs.h <<\_ACEOF
7403 #define NO_STRING_H 1
7404 _ACEOF
7405
7406 fi
7407
7408
7409
7410 # Checks for typedefs, structures, and compiler characteristics.
7411 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7412 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7413 if test "${ac_cv_c_bigendian+set}" = set; then
7414   echo $ECHO_N "(cached) $ECHO_C" >&6
7415 else
7416   # See if sys/param.h defines the BYTE_ORDER macro.
7417 cat >conftest.$ac_ext <<_ACEOF
7418 #line $LINENO "configure"
7419 /* confdefs.h.  */
7420 _ACEOF
7421 cat confdefs.h >>conftest.$ac_ext
7422 cat >>conftest.$ac_ext <<_ACEOF
7423 /* end confdefs.h.  */
7424 #include <sys/types.h>
7425 #include <sys/param.h>
7426
7427 int
7428 main ()
7429 {
7430 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7431  bogus endian macros
7432 #endif
7433
7434   ;
7435   return 0;
7436 }
7437 _ACEOF
7438 rm -f conftest.$ac_objext
7439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7440   (eval $ac_compile) 2>&5
7441   ac_status=$?
7442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443   (exit $ac_status); } &&
7444          { ac_try='test -s conftest.$ac_objext'
7445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7446   (eval $ac_try) 2>&5
7447   ac_status=$?
7448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449   (exit $ac_status); }; }; then
7450   # It does; now see whether it defined to BIG_ENDIAN or not.
7451 cat >conftest.$ac_ext <<_ACEOF
7452 #line $LINENO "configure"
7453 /* confdefs.h.  */
7454 _ACEOF
7455 cat confdefs.h >>conftest.$ac_ext
7456 cat >>conftest.$ac_ext <<_ACEOF
7457 /* end confdefs.h.  */
7458 #include <sys/types.h>
7459 #include <sys/param.h>
7460
7461 int
7462 main ()
7463 {
7464 #if BYTE_ORDER != BIG_ENDIAN
7465  not big endian
7466 #endif
7467
7468   ;
7469   return 0;
7470 }
7471 _ACEOF
7472 rm -f conftest.$ac_objext
7473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7474   (eval $ac_compile) 2>&5
7475   ac_status=$?
7476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477   (exit $ac_status); } &&
7478          { ac_try='test -s conftest.$ac_objext'
7479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7480   (eval $ac_try) 2>&5
7481   ac_status=$?
7482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483   (exit $ac_status); }; }; then
7484   ac_cv_c_bigendian=yes
7485 else
7486   echo "$as_me: failed program was:" >&5
7487 sed 's/^/| /' conftest.$ac_ext >&5
7488
7489 ac_cv_c_bigendian=no
7490 fi
7491 rm -f conftest.$ac_objext conftest.$ac_ext
7492 else
7493   echo "$as_me: failed program was:" >&5
7494 sed 's/^/| /' conftest.$ac_ext >&5
7495
7496 # It does not; compile a test program.
7497 if test "$cross_compiling" = yes; then
7498   # try to guess the endianness by grepping values into an object file
7499   ac_cv_c_bigendian=unknown
7500   cat >conftest.$ac_ext <<_ACEOF
7501 #line $LINENO "configure"
7502 /* confdefs.h.  */
7503 _ACEOF
7504 cat confdefs.h >>conftest.$ac_ext
7505 cat >>conftest.$ac_ext <<_ACEOF
7506 /* end confdefs.h.  */
7507 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7508 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7509 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7510 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7511 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7512 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7513 int
7514 main ()
7515 {
7516  _ascii (); _ebcdic ();
7517   ;
7518   return 0;
7519 }
7520 _ACEOF
7521 rm -f conftest.$ac_objext
7522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7523   (eval $ac_compile) 2>&5
7524   ac_status=$?
7525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526   (exit $ac_status); } &&
7527          { ac_try='test -s conftest.$ac_objext'
7528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7529   (eval $ac_try) 2>&5
7530   ac_status=$?
7531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532   (exit $ac_status); }; }; then
7533   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7534   ac_cv_c_bigendian=yes
7535 fi
7536 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7537   if test "$ac_cv_c_bigendian" = unknown; then
7538     ac_cv_c_bigendian=no
7539   else
7540     # finding both strings is unlikely to happen, but who knows?
7541     ac_cv_c_bigendian=unknown
7542   fi
7543 fi
7544 else
7545   echo "$as_me: failed program was:" >&5
7546 sed 's/^/| /' conftest.$ac_ext >&5
7547
7548 fi
7549 rm -f conftest.$ac_objext conftest.$ac_ext
7550 else
7551   cat >conftest.$ac_ext <<_ACEOF
7552 #line $LINENO "configure"
7553 /* confdefs.h.  */
7554 _ACEOF
7555 cat confdefs.h >>conftest.$ac_ext
7556 cat >>conftest.$ac_ext <<_ACEOF
7557 /* end confdefs.h.  */
7558 int
7559 main ()
7560 {
7561   /* Are we little or big endian?  From Harbison&Steele.  */
7562   union
7563   {
7564     long l;
7565     char c[sizeof (long)];
7566   } u;
7567   u.l = 1;
7568   exit (u.c[sizeof (long) - 1] == 1);
7569 }
7570 _ACEOF
7571 rm -f conftest$ac_exeext
7572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7573   (eval $ac_link) 2>&5
7574   ac_status=$?
7575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7578   (eval $ac_try) 2>&5
7579   ac_status=$?
7580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581   (exit $ac_status); }; }; then
7582   ac_cv_c_bigendian=no
7583 else
7584   echo "$as_me: program exited with status $ac_status" >&5
7585 echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7587
7588 ( exit $ac_status )
7589 ac_cv_c_bigendian=yes
7590 fi
7591 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7592 fi
7593 fi
7594 rm -f conftest.$ac_objext conftest.$ac_ext
7595 fi
7596 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7597 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7598 case $ac_cv_c_bigendian in
7599   yes)
7600
7601 cat >>confdefs.h <<\_ACEOF
7602 #define WORDS_BIGENDIAN 1
7603 _ACEOF
7604  ;;
7605   no)
7606      ;;
7607   *)
7608     { { echo "$as_me:$LINENO: error: unknown endianness
7609 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7610 echo "$as_me: error: unknown endianness
7611 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7612    { (exit 1); exit 1; }; } ;;
7613 esac
7614
7615
7616 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
7617 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
7618 if test "${ac_cv_c_char_unsigned+set}" = set; then
7619   echo $ECHO_N "(cached) $ECHO_C" >&6
7620 else
7621   cat >conftest.$ac_ext <<_ACEOF
7622 #line $LINENO "configure"
7623 /* confdefs.h.  */
7624 _ACEOF
7625 cat confdefs.h >>conftest.$ac_ext
7626 cat >>conftest.$ac_ext <<_ACEOF
7627 /* end confdefs.h.  */
7628 $ac_includes_default
7629 int
7630 main ()
7631 {
7632 static int test_array [1 - 2 * !(((char) -1) < 0)];
7633 test_array [0] = 0
7634
7635   ;
7636   return 0;
7637 }
7638 _ACEOF
7639 rm -f conftest.$ac_objext
7640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7641   (eval $ac_compile) 2>&5
7642   ac_status=$?
7643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644   (exit $ac_status); } &&
7645          { ac_try='test -s conftest.$ac_objext'
7646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7647   (eval $ac_try) 2>&5
7648   ac_status=$?
7649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650   (exit $ac_status); }; }; then
7651   ac_cv_c_char_unsigned=no
7652 else
7653   echo "$as_me: failed program was:" >&5
7654 sed 's/^/| /' conftest.$ac_ext >&5
7655
7656 ac_cv_c_char_unsigned=yes
7657 fi
7658 rm -f conftest.$ac_objext conftest.$ac_ext
7659 fi
7660 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
7661 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
7662 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
7663   cat >>confdefs.h <<\_ACEOF
7664 #define __CHAR_UNSIGNED__ 1
7665 _ACEOF
7666
7667 fi
7668
7669 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7670 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7671 if test "${ac_cv_c_const+set}" = set; then
7672   echo $ECHO_N "(cached) $ECHO_C" >&6
7673 else
7674   cat >conftest.$ac_ext <<_ACEOF
7675 #line $LINENO "configure"
7676 /* confdefs.h.  */
7677 _ACEOF
7678 cat confdefs.h >>conftest.$ac_ext
7679 cat >>conftest.$ac_ext <<_ACEOF
7680 /* end confdefs.h.  */
7681
7682 int
7683 main ()
7684 {
7685 /* FIXME: Include the comments suggested by Paul. */
7686 #ifndef __cplusplus
7687   /* Ultrix mips cc rejects this.  */
7688   typedef int charset[2];
7689   const charset x;
7690   /* SunOS 4.1.1 cc rejects this.  */
7691   char const *const *ccp;
7692   char **p;
7693   /* NEC SVR4.0.2 mips cc rejects this.  */
7694   struct point {int x, y;};
7695   static struct point const zero = {0,0};
7696   /* AIX XL C 1.02.0.0 rejects this.
7697      It does not let you subtract one const X* pointer from another in
7698      an arm of an if-expression whose if-part is not a constant
7699      expression */
7700   const char *g = "string";
7701   ccp = &g + (g ? g-g : 0);
7702   /* HPUX 7.0 cc rejects these. */
7703   ++ccp;
7704   p = (char**) ccp;
7705   ccp = (char const *const *) p;
7706   { /* SCO 3.2v4 cc rejects this.  */
7707     char *t;
7708     char const *s = 0 ? (char *) 0 : (char const *) 0;
7709
7710     *t++ = 0;
7711   }
7712   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7713     int x[] = {25, 17};
7714     const int *foo = &x[0];
7715     ++foo;
7716   }
7717   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7718     typedef const int *iptr;
7719     iptr p = 0;
7720     ++p;
7721   }
7722   { /* AIX XL C 1.02.0.0 rejects this saying
7723        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7724     struct s { int j; const int *ap[3]; };
7725     struct s *b; b->j = 5;
7726   }
7727   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7728     const int foo = 10;
7729   }
7730 #endif
7731
7732   ;
7733   return 0;
7734 }
7735 _ACEOF
7736 rm -f conftest.$ac_objext
7737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7738   (eval $ac_compile) 2>&5
7739   ac_status=$?
7740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741   (exit $ac_status); } &&
7742          { ac_try='test -s conftest.$ac_objext'
7743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7744   (eval $ac_try) 2>&5
7745   ac_status=$?
7746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747   (exit $ac_status); }; }; then
7748   ac_cv_c_const=yes
7749 else
7750   echo "$as_me: failed program was:" >&5
7751 sed 's/^/| /' conftest.$ac_ext >&5
7752
7753 ac_cv_c_const=no
7754 fi
7755 rm -f conftest.$ac_objext conftest.$ac_ext
7756 fi
7757 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7758 echo "${ECHO_T}$ac_cv_c_const" >&6
7759 if test $ac_cv_c_const = no; then
7760
7761 cat >>confdefs.h <<\_ACEOF
7762 #define const
7763 _ACEOF
7764
7765 fi
7766
7767 echo "$as_me:$LINENO: checking for inline" >&5
7768 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7769 if test "${ac_cv_c_inline+set}" = set; then
7770   echo $ECHO_N "(cached) $ECHO_C" >&6
7771 else
7772   ac_cv_c_inline=no
7773 for ac_kw in inline __inline__ __inline; do
7774   cat >conftest.$ac_ext <<_ACEOF
7775 #line $LINENO "configure"
7776 /* confdefs.h.  */
7777 _ACEOF
7778 cat confdefs.h >>conftest.$ac_ext
7779 cat >>conftest.$ac_ext <<_ACEOF
7780 /* end confdefs.h.  */
7781 #ifndef __cplusplus
7782 typedef int foo_t;
7783 static $ac_kw foo_t static_foo () {return 0; }
7784 $ac_kw foo_t foo () {return 0; }
7785 #endif
7786
7787 _ACEOF
7788 rm -f conftest.$ac_objext
7789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7790   (eval $ac_compile) 2>&5
7791   ac_status=$?
7792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793   (exit $ac_status); } &&
7794          { ac_try='test -s conftest.$ac_objext'
7795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7796   (eval $ac_try) 2>&5
7797   ac_status=$?
7798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799   (exit $ac_status); }; }; then
7800   ac_cv_c_inline=$ac_kw; break
7801 else
7802   echo "$as_me: failed program was:" >&5
7803 sed 's/^/| /' conftest.$ac_ext >&5
7804
7805 fi
7806 rm -f conftest.$ac_objext conftest.$ac_ext
7807 done
7808
7809 fi
7810 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7811 echo "${ECHO_T}$ac_cv_c_inline" >&6
7812 case $ac_cv_c_inline in
7813   inline | yes) ;;
7814   no)
7815 cat >>confdefs.h <<\_ACEOF
7816 #define inline
7817 _ACEOF
7818  ;;
7819   *)  cat >>confdefs.h <<_ACEOF
7820 #define inline $ac_cv_c_inline
7821 _ACEOF
7822  ;;
7823 esac
7824
7825 echo "$as_me:$LINENO: checking for working volatile" >&5
7826 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7827 if test "${ac_cv_c_volatile+set}" = set; then
7828   echo $ECHO_N "(cached) $ECHO_C" >&6
7829 else
7830   cat >conftest.$ac_ext <<_ACEOF
7831 #line $LINENO "configure"
7832 /* confdefs.h.  */
7833 _ACEOF
7834 cat confdefs.h >>conftest.$ac_ext
7835 cat >>conftest.$ac_ext <<_ACEOF
7836 /* end confdefs.h.  */
7837
7838 int
7839 main ()
7840 {
7841
7842 volatile int x;
7843 int * volatile y;
7844   ;
7845   return 0;
7846 }
7847 _ACEOF
7848 rm -f conftest.$ac_objext
7849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7850   (eval $ac_compile) 2>&5
7851   ac_status=$?
7852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853   (exit $ac_status); } &&
7854          { ac_try='test -s conftest.$ac_objext'
7855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7856   (eval $ac_try) 2>&5
7857   ac_status=$?
7858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859   (exit $ac_status); }; }; then
7860   ac_cv_c_volatile=yes
7861 else
7862   echo "$as_me: failed program was:" >&5
7863 sed 's/^/| /' conftest.$ac_ext >&5
7864
7865 ac_cv_c_volatile=no
7866 fi
7867 rm -f conftest.$ac_objext conftest.$ac_ext
7868 fi
7869 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7870 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7871 if test $ac_cv_c_volatile = no; then
7872
7873 cat >>confdefs.h <<\_ACEOF
7874 #define volatile
7875 _ACEOF
7876
7877 fi
7878
7879 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
7880 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
7881 if test "${ac_cv_c_stringize+set}" = set; then
7882   echo $ECHO_N "(cached) $ECHO_C" >&6
7883 else
7884   cat >conftest.$ac_ext <<_ACEOF
7885 #line $LINENO "configure"
7886 /* confdefs.h.  */
7887 _ACEOF
7888 cat confdefs.h >>conftest.$ac_ext
7889 cat >>conftest.$ac_ext <<_ACEOF
7890 /* end confdefs.h.  */
7891 #define x(y) #y
7892
7893 char *s = x(teststring);
7894 _ACEOF
7895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7896   $EGREP "#teststring" >/dev/null 2>&1; then
7897   ac_cv_c_stringize=no
7898 else
7899   ac_cv_c_stringize=yes
7900 fi
7901 rm -f conftest*
7902
7903 fi
7904 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
7905 echo "${ECHO_T}$ac_cv_c_stringize" >&6
7906 if test $ac_cv_c_stringize = yes; then
7907
7908 cat >>confdefs.h <<\_ACEOF
7909 #define HAVE_STRINGIZE 1
7910 _ACEOF
7911
7912 fi
7913
7914 echo "$as_me:$LINENO: checking for function prototypes" >&5
7915 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7916 if test "$ac_cv_prog_cc_stdc" != no; then
7917   echo "$as_me:$LINENO: result: yes" >&5
7918 echo "${ECHO_T}yes" >&6
7919
7920 cat >>confdefs.h <<\_ACEOF
7921 #define PROTOTYPES 1
7922 _ACEOF
7923
7924
7925 cat >>confdefs.h <<\_ACEOF
7926 #define __PROTOTYPES 1
7927 _ACEOF
7928
7929 else
7930   echo "$as_me:$LINENO: result: no" >&5
7931 echo "${ECHO_T}no" >&6
7932 fi
7933
7934 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7935 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7936 if test "${ac_cv_struct_tm+set}" = set; then
7937   echo $ECHO_N "(cached) $ECHO_C" >&6
7938 else
7939   cat >conftest.$ac_ext <<_ACEOF
7940 #line $LINENO "configure"
7941 /* confdefs.h.  */
7942 _ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h.  */
7946 #include <sys/types.h>
7947 #include <time.h>
7948
7949 int
7950 main ()
7951 {
7952 struct tm *tp; tp->tm_sec;
7953   ;
7954   return 0;
7955 }
7956 _ACEOF
7957 rm -f conftest.$ac_objext
7958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7959   (eval $ac_compile) 2>&5
7960   ac_status=$?
7961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962   (exit $ac_status); } &&
7963          { ac_try='test -s conftest.$ac_objext'
7964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965   (eval $ac_try) 2>&5
7966   ac_status=$?
7967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968   (exit $ac_status); }; }; then
7969   ac_cv_struct_tm=time.h
7970 else
7971   echo "$as_me: failed program was:" >&5
7972 sed 's/^/| /' conftest.$ac_ext >&5
7973
7974 ac_cv_struct_tm=sys/time.h
7975 fi
7976 rm -f conftest.$ac_objext conftest.$ac_ext
7977 fi
7978 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7979 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7980 if test $ac_cv_struct_tm = sys/time.h; then
7981
7982 cat >>confdefs.h <<\_ACEOF
7983 #define TM_IN_SYS_TIME 1
7984 _ACEOF
7985
7986 fi
7987
7988 echo "$as_me:$LINENO: checking for size_t" >&5
7989 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7990 if test "${ac_cv_type_size_t+set}" = set; then
7991   echo $ECHO_N "(cached) $ECHO_C" >&6
7992 else
7993   cat >conftest.$ac_ext <<_ACEOF
7994 #line $LINENO "configure"
7995 /* confdefs.h.  */
7996 _ACEOF
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h.  */
8000 $ac_includes_default
8001 int
8002 main ()
8003 {
8004 if ((size_t *) 0)
8005   return 0;
8006 if (sizeof (size_t))
8007   return 0;
8008   ;
8009   return 0;
8010 }
8011 _ACEOF
8012 rm -f conftest.$ac_objext
8013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8014   (eval $ac_compile) 2>&5
8015   ac_status=$?
8016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017   (exit $ac_status); } &&
8018          { ac_try='test -s conftest.$ac_objext'
8019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8020   (eval $ac_try) 2>&5
8021   ac_status=$?
8022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023   (exit $ac_status); }; }; then
8024   ac_cv_type_size_t=yes
8025 else
8026   echo "$as_me: failed program was:" >&5
8027 sed 's/^/| /' conftest.$ac_ext >&5
8028
8029 ac_cv_type_size_t=no
8030 fi
8031 rm -f conftest.$ac_objext conftest.$ac_ext
8032 fi
8033 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8034 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8035 if test $ac_cv_type_size_t = yes; then
8036   :
8037 else
8038
8039 cat >>confdefs.h <<_ACEOF
8040 #define size_t unsigned
8041 _ACEOF
8042
8043 fi
8044
8045 echo "$as_me:$LINENO: checking for off_t" >&5
8046 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8047 if test "${ac_cv_type_off_t+set}" = set; then
8048   echo $ECHO_N "(cached) $ECHO_C" >&6
8049 else
8050   cat >conftest.$ac_ext <<_ACEOF
8051 #line $LINENO "configure"
8052 /* confdefs.h.  */
8053 _ACEOF
8054 cat confdefs.h >>conftest.$ac_ext
8055 cat >>conftest.$ac_ext <<_ACEOF
8056 /* end confdefs.h.  */
8057 $ac_includes_default
8058 int
8059 main ()
8060 {
8061 if ((off_t *) 0)
8062   return 0;
8063 if (sizeof (off_t))
8064   return 0;
8065   ;
8066   return 0;
8067 }
8068 _ACEOF
8069 rm -f conftest.$ac_objext
8070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8071   (eval $ac_compile) 2>&5
8072   ac_status=$?
8073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074   (exit $ac_status); } &&
8075          { ac_try='test -s conftest.$ac_objext'
8076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8077   (eval $ac_try) 2>&5
8078   ac_status=$?
8079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080   (exit $ac_status); }; }; then
8081   ac_cv_type_off_t=yes
8082 else
8083   echo "$as_me: failed program was:" >&5
8084 sed 's/^/| /' conftest.$ac_ext >&5
8085
8086 ac_cv_type_off_t=no
8087 fi
8088 rm -f conftest.$ac_objext conftest.$ac_ext
8089 fi
8090 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8091 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8092 if test $ac_cv_type_off_t = yes; then
8093   :
8094 else
8095
8096 cat >>confdefs.h <<_ACEOF
8097 #define off_t long
8098 _ACEOF
8099
8100 fi
8101
8102 echo "$as_me:$LINENO: checking for pid_t" >&5
8103 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8104 if test "${ac_cv_type_pid_t+set}" = set; then
8105   echo $ECHO_N "(cached) $ECHO_C" >&6
8106 else
8107   cat >conftest.$ac_ext <<_ACEOF
8108 #line $LINENO "configure"
8109 /* confdefs.h.  */
8110 _ACEOF
8111 cat confdefs.h >>conftest.$ac_ext
8112 cat >>conftest.$ac_ext <<_ACEOF
8113 /* end confdefs.h.  */
8114 $ac_includes_default
8115 int
8116 main ()
8117 {
8118 if ((pid_t *) 0)
8119   return 0;
8120 if (sizeof (pid_t))
8121   return 0;
8122   ;
8123   return 0;
8124 }
8125 _ACEOF
8126 rm -f conftest.$ac_objext
8127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8128   (eval $ac_compile) 2>&5
8129   ac_status=$?
8130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131   (exit $ac_status); } &&
8132          { ac_try='test -s conftest.$ac_objext'
8133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8134   (eval $ac_try) 2>&5
8135   ac_status=$?
8136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137   (exit $ac_status); }; }; then
8138   ac_cv_type_pid_t=yes
8139 else
8140   echo "$as_me: failed program was:" >&5
8141 sed 's/^/| /' conftest.$ac_ext >&5
8142
8143 ac_cv_type_pid_t=no
8144 fi
8145 rm -f conftest.$ac_objext conftest.$ac_ext
8146 fi
8147 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8148 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8149 if test $ac_cv_type_pid_t = yes; then
8150   :
8151 else
8152
8153 cat >>confdefs.h <<_ACEOF
8154 #define pid_t int
8155 _ACEOF
8156
8157 fi
8158
8159
8160 echo "$as_me:$LINENO: checking volatile declaration" >&5
8161 echo $ECHO_N "checking volatile declaration... $ECHO_C" >&6
8162 if test "${timidity_cv_type_volatile+set}" = set; then
8163   echo $ECHO_N "(cached) $ECHO_C" >&6
8164 else
8165   cat >conftest.$ac_ext <<_ACEOF
8166 #line $LINENO "configure"
8167 /* confdefs.h.  */
8168 _ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h.  */
8172
8173 int
8174 main ()
8175 {
8176 volatile int x
8177   ;
8178   return 0;
8179 }
8180 _ACEOF
8181 rm -f conftest.$ac_objext
8182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8183   (eval $ac_compile) 2>&5
8184   ac_status=$?
8185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186   (exit $ac_status); } &&
8187          { ac_try='test -s conftest.$ac_objext'
8188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189   (eval $ac_try) 2>&5
8190   ac_status=$?
8191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192   (exit $ac_status); }; }; then
8193   timidity_cv_type_volatile=yes
8194 else
8195   echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8197
8198 timidity_cv_type_volatile=no
8199 fi
8200 rm -f conftest.$ac_objext conftest.$ac_ext
8201 fi
8202 echo "$as_me:$LINENO: result: $timidity_cv_type_volatile" >&5
8203 echo "${ECHO_T}$timidity_cv_type_volatile" >&6
8204 if test $timidity_cv_type_volatile = no; then
8205
8206 cat >>confdefs.h <<\_ACEOF
8207 #define NO_VOLATILE 1
8208 _ACEOF
8209
8210 fi
8211
8212 echo "$as_me:$LINENO: checking union semun declaration" >&5
8213 echo $ECHO_N "checking union semun declaration... $ECHO_C" >&6
8214 if test "${timidity_cv_type_union_semun+set}" = set; then
8215   echo $ECHO_N "(cached) $ECHO_C" >&6
8216 else
8217   cat >conftest.$ac_ext <<_ACEOF
8218 #line $LINENO "configure"
8219 /* confdefs.h.  */
8220 _ACEOF
8221 cat confdefs.h >>conftest.$ac_ext
8222 cat >>conftest.$ac_ext <<_ACEOF
8223 /* end confdefs.h.  */
8224
8225 #include <sys/types.h>
8226 #include <sys/ipc.h>
8227 #include <sys/sem.h>
8228
8229 int
8230 main ()
8231 {
8232 union semun x
8233   ;
8234   return 0;
8235 }
8236 _ACEOF
8237 rm -f conftest.$ac_objext
8238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8239   (eval $ac_compile) 2>&5
8240   ac_status=$?
8241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242   (exit $ac_status); } &&
8243          { ac_try='test -s conftest.$ac_objext'
8244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8245   (eval $ac_try) 2>&5
8246   ac_status=$?
8247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248   (exit $ac_status); }; }; then
8249   timidity_cv_type_union_semun=yes
8250 else
8251   echo "$as_me: failed program was:" >&5
8252 sed 's/^/| /' conftest.$ac_ext >&5
8253
8254 timidity_cv_type_union_semun=no
8255 fi
8256 rm -f conftest.$ac_objext conftest.$ac_ext
8257 fi
8258 echo "$as_me:$LINENO: result: $timidity_cv_type_union_semun" >&5
8259 echo "${ECHO_T}$timidity_cv_type_union_semun" >&6
8260 if test $timidity_cv_type_union_semun = yes; then
8261
8262 cat >>confdefs.h <<\_ACEOF
8263 #define HAVE_UNION_SEMUN 1
8264 _ACEOF
8265
8266 fi
8267
8268 if test "x$CYGNUS" = xyes; then
8269   echo "$as_me:$LINENO: checking Cygwin new mmsystem" >&5
8270 echo $ECHO_N "checking Cygwin new mmsystem... $ECHO_C" >&6
8271 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
8272   echo $ECHO_N "(cached) $ECHO_C" >&6
8273 else
8274   cat >conftest.$ac_ext <<_ACEOF
8275 #line $LINENO "configure"
8276 /* confdefs.h.  */
8277 _ACEOF
8278 cat confdefs.h >>conftest.$ac_ext
8279 cat >>conftest.$ac_ext <<_ACEOF
8280 /* end confdefs.h.  */
8281
8282 #include <windows.h>
8283 #include <mmsystem.h>
8284
8285 int
8286 main ()
8287 {
8288 return WOM_OPEN != 0x3BB
8289   ;
8290   return 0;
8291 }
8292 _ACEOF
8293 rm -f conftest.$ac_objext
8294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8295   (eval $ac_compile) 2>&5
8296   ac_status=$?
8297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298   (exit $ac_status); } &&
8299          { ac_try='test -s conftest.$ac_objext'
8300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8301   (eval $ac_try) 2>&5
8302   ac_status=$?
8303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304   (exit $ac_status); }; }; then
8305   timidity_cv_header_new_mmsystem=yes
8306 else
8307   echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8309
8310 timidity_cv_header_new_mmsystem=no
8311 fi
8312 rm -f conftest.$ac_objext conftest.$ac_ext
8313 fi
8314 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
8315 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
8316   if test $timidity_cv_header_new_mmsystem = yes; then
8317
8318 cat >>confdefs.h <<\_ACEOF
8319 #define HAVE_NEW_MMSYSTEM 1
8320 _ACEOF
8321
8322   fi
8323 fi
8324
8325 if test "x$MINGW" = xyes; then
8326   echo "$as_me:$LINENO: checking Mingw new mmsystem" >&5
8327 echo $ECHO_N "checking Mingw new mmsystem... $ECHO_C" >&6
8328 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
8329   echo $ECHO_N "(cached) $ECHO_C" >&6
8330 else
8331   cat >conftest.$ac_ext <<_ACEOF
8332 #line $LINENO "configure"
8333 /* confdefs.h.  */
8334 _ACEOF
8335 cat confdefs.h >>conftest.$ac_ext
8336 cat >>conftest.$ac_ext <<_ACEOF
8337 /* end confdefs.h.  */
8338
8339 #include <windows.h>
8340 #include <mmsystem.h>
8341
8342 int
8343 main ()
8344 {
8345 return WOM_OPEN != 0x3BB
8346   ;
8347   return 0;
8348 }
8349 _ACEOF
8350 rm -f conftest.$ac_objext
8351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8352   (eval $ac_compile) 2>&5
8353   ac_status=$?
8354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355   (exit $ac_status); } &&
8356          { ac_try='test -s conftest.$ac_objext'
8357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8358   (eval $ac_try) 2>&5
8359   ac_status=$?
8360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361   (exit $ac_status); }; }; then
8362   timidity_cv_header_new_mmsystem=yes
8363 else
8364   echo "$as_me: failed program was:" >&5
8365 sed 's/^/| /' conftest.$ac_ext >&5
8366
8367 timidity_cv_header_new_mmsystem=no
8368 fi
8369 rm -f conftest.$ac_objext conftest.$ac_ext
8370 fi
8371 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
8372 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
8373   if test $timidity_cv_header_new_mmsystem = yes; then
8374
8375 cat >>confdefs.h <<\_ACEOF
8376 #define HAVE_NEW_MMSYSTEM 1
8377 _ACEOF
8378
8379   fi
8380 fi
8381
8382 # Checks for library functions.
8383 echo "$as_me:$LINENO: checking for error_at_line" >&5
8384 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
8385 if test "${ac_cv_lib_error_at_line+set}" = set; then
8386   echo $ECHO_N "(cached) $ECHO_C" >&6
8387 else
8388   cat >conftest.$ac_ext <<_ACEOF
8389 #line $LINENO "configure"
8390 /* confdefs.h.  */
8391 _ACEOF
8392 cat confdefs.h >>conftest.$ac_ext
8393 cat >>conftest.$ac_ext <<_ACEOF
8394 /* end confdefs.h.  */
8395
8396 int
8397 main ()
8398 {
8399 error_at_line (0, 0, "", 0, "");
8400   ;
8401   return 0;
8402 }
8403 _ACEOF
8404 rm -f conftest.$ac_objext conftest$ac_exeext
8405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8406   (eval $ac_link) 2>&5
8407   ac_status=$?
8408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409   (exit $ac_status); } &&
8410          { ac_try='test -s conftest$ac_exeext'
8411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8412   (eval $ac_try) 2>&5
8413   ac_status=$?
8414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415   (exit $ac_status); }; }; then
8416   ac_cv_lib_error_at_line=yes
8417 else
8418   echo "$as_me: failed program was:" >&5
8419 sed 's/^/| /' conftest.$ac_ext >&5
8420
8421 ac_cv_lib_error_at_line=no
8422 fi
8423 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8424 fi
8425 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
8426 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
8427 if test $ac_cv_lib_error_at_line = no; then
8428   LIBOBJS="$LIBOBJS error.$ac_objext"
8429 fi
8430
8431
8432
8433 for ac_header in unistd.h vfork.h
8434 do
8435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8437   echo "$as_me:$LINENO: checking for $ac_header" >&5
8438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8440   echo $ECHO_N "(cached) $ECHO_C" >&6
8441 fi
8442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8444 else
8445   # Is the header compilable?
8446 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8447 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8448 cat >conftest.$ac_ext <<_ACEOF
8449 #line $LINENO "configure"
8450 /* confdefs.h.  */
8451 _ACEOF
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h.  */
8455 $ac_includes_default
8456 #include <$ac_header>
8457 _ACEOF
8458 rm -f conftest.$ac_objext
8459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8460   (eval $ac_compile) 2>&5
8461   ac_status=$?
8462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463   (exit $ac_status); } &&
8464          { ac_try='test -s conftest.$ac_objext'
8465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466   (eval $ac_try) 2>&5
8467   ac_status=$?
8468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469   (exit $ac_status); }; }; then
8470   ac_header_compiler=yes
8471 else
8472   echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8474
8475 ac_header_compiler=no
8476 fi
8477 rm -f conftest.$ac_objext conftest.$ac_ext
8478 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8479 echo "${ECHO_T}$ac_header_compiler" >&6
8480
8481 # Is the header present?
8482 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8483 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8484 cat >conftest.$ac_ext <<_ACEOF
8485 #line $LINENO "configure"
8486 /* confdefs.h.  */
8487 _ACEOF
8488 cat confdefs.h >>conftest.$ac_ext
8489 cat >>conftest.$ac_ext <<_ACEOF
8490 /* end confdefs.h.  */
8491 #include <$ac_header>
8492 _ACEOF
8493 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8494   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8495   ac_status=$?
8496   grep -v '^ *+' conftest.er1 >conftest.err
8497   rm -f conftest.er1
8498   cat conftest.err >&5
8499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500   (exit $ac_status); } >/dev/null; then
8501   if test -s conftest.err; then
8502     ac_cpp_err=$ac_c_preproc_warn_flag
8503   else
8504     ac_cpp_err=
8505   fi
8506 else
8507   ac_cpp_err=yes
8508 fi
8509 if test -z "$ac_cpp_err"; then
8510   ac_header_preproc=yes
8511 else
8512   echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8514
8515   ac_header_preproc=no
8516 fi
8517 rm -f conftest.err conftest.$ac_ext
8518 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8519 echo "${ECHO_T}$ac_header_preproc" >&6
8520
8521 # So?  What about this header?
8522 case $ac_header_compiler:$ac_header_preproc in
8523   yes:no )
8524     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8526     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8528     (
8529       cat <<\_ASBOX
8530 ## ------------------------------------ ##
8531 ## Report this to bug-autoconf@gnu.org. ##
8532 ## ------------------------------------ ##
8533 _ASBOX
8534     ) |
8535       sed "s/^/$as_me: WARNING:     /" >&2
8536     ;;
8537   no:yes )
8538     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8539 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8540     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8541 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8542     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8544     (
8545       cat <<\_ASBOX
8546 ## ------------------------------------ ##
8547 ## Report this to bug-autoconf@gnu.org. ##
8548 ## ------------------------------------ ##
8549 _ASBOX
8550     ) |
8551       sed "s/^/$as_me: WARNING:     /" >&2
8552     ;;
8553 esac
8554 echo "$as_me:$LINENO: checking for $ac_header" >&5
8555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8557   echo $ECHO_N "(cached) $ECHO_C" >&6
8558 else
8559   eval "$as_ac_Header=$ac_header_preproc"
8560 fi
8561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8563
8564 fi
8565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8566   cat >>confdefs.h <<_ACEOF
8567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8568 _ACEOF
8569
8570 fi
8571
8572 done
8573
8574
8575
8576 for ac_func in fork vfork
8577 do
8578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8579 echo "$as_me:$LINENO: checking for $ac_func" >&5
8580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8581 if eval "test \"\${$as_ac_var+set}\" = set"; then
8582   echo $ECHO_N "(cached) $ECHO_C" >&6
8583 else
8584   cat >conftest.$ac_ext <<_ACEOF
8585 #line $LINENO "configure"
8586 /* confdefs.h.  */
8587 _ACEOF
8588 cat confdefs.h >>conftest.$ac_ext
8589 cat >>conftest.$ac_ext <<_ACEOF
8590 /* end confdefs.h.  */
8591 /* System header to define __stub macros and hopefully few prototypes,
8592     which can conflict with char $ac_func (); below.
8593     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8594     <limits.h> exists even on freestanding compilers.  */
8595 #ifdef __STDC__
8596 # include <limits.h>
8597 #else
8598 # include <assert.h>
8599 #endif
8600 /* Override any gcc2 internal prototype to avoid an error.  */
8601 #ifdef __cplusplus
8602 extern "C"
8603 {
8604 #endif
8605 /* We use char because int might match the return type of a gcc2
8606    builtin and then its argument prototype would still apply.  */
8607 char $ac_func ();
8608 /* The GNU C library defines this for functions which it implements
8609     to always fail with ENOSYS.  Some functions are actually named
8610     something starting with __ and the normal name is an alias.  */
8611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8612 choke me
8613 #else
8614 char (*f) () = $ac_func;
8615 #endif
8616 #ifdef __cplusplus
8617 }
8618 #endif
8619
8620 int
8621 main ()
8622 {
8623 return f != $ac_func;
8624   ;
8625   return 0;
8626 }
8627 _ACEOF
8628 rm -f conftest.$ac_objext conftest$ac_exeext
8629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8630   (eval $ac_link) 2>&5
8631   ac_status=$?
8632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633   (exit $ac_status); } &&
8634          { ac_try='test -s conftest$ac_exeext'
8635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8636   (eval $ac_try) 2>&5
8637   ac_status=$?
8638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639   (exit $ac_status); }; }; then
8640   eval "$as_ac_var=yes"
8641 else
8642   echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8644
8645 eval "$as_ac_var=no"
8646 fi
8647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8648 fi
8649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8650 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8651 if test `eval echo '${'$as_ac_var'}'` = yes; then
8652   cat >>confdefs.h <<_ACEOF
8653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8654 _ACEOF
8655
8656 fi
8657 done
8658
8659 if test "x$ac_cv_func_fork" = xyes; then
8660   echo "$as_me:$LINENO: checking for working fork" >&5
8661 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
8662 if test "${ac_cv_func_fork_works+set}" = set; then
8663   echo $ECHO_N "(cached) $ECHO_C" >&6
8664 else
8665   if test "$cross_compiling" = yes; then
8666   ac_cv_func_fork_works=cross
8667 else
8668   cat >conftest.$ac_ext <<_ACEOF
8669 /* By Ruediger Kuhlmann. */
8670       #include <sys/types.h>
8671       #if HAVE_UNISTD_H
8672       # include <unistd.h>
8673       #endif
8674       /* Some systems only have a dummy stub for fork() */
8675       int main ()
8676       {
8677         if (fork() < 0)
8678           exit (1);
8679         exit (0);
8680       }
8681 _ACEOF
8682 rm -f conftest$ac_exeext
8683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8684   (eval $ac_link) 2>&5
8685   ac_status=$?
8686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689   (eval $ac_try) 2>&5
8690   ac_status=$?
8691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692   (exit $ac_status); }; }; then
8693   ac_cv_func_fork_works=yes
8694 else
8695   echo "$as_me: program exited with status $ac_status" >&5
8696 echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.$ac_ext >&5
8698
8699 ( exit $ac_status )
8700 ac_cv_func_fork_works=no
8701 fi
8702 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8703 fi
8704 fi
8705 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
8706 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
8707
8708 else
8709   ac_cv_func_fork_works=$ac_cv_func_fork
8710 fi
8711 if test "x$ac_cv_func_fork_works" = xcross; then
8712   case $host in
8713     *-*-amigaos* | *-*-msdosdjgpp*)
8714       # Override, as these systems have only a dummy fork() stub
8715       ac_cv_func_fork_works=no
8716       ;;
8717     *)
8718       ac_cv_func_fork_works=yes
8719       ;;
8720   esac
8721   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8722 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8723 fi
8724 ac_cv_func_vfork_works=$ac_cv_func_vfork
8725 if test "x$ac_cv_func_vfork" = xyes; then
8726   echo "$as_me:$LINENO: checking for working vfork" >&5
8727 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
8728 if test "${ac_cv_func_vfork_works+set}" = set; then
8729   echo $ECHO_N "(cached) $ECHO_C" >&6
8730 else
8731   if test "$cross_compiling" = yes; then
8732   ac_cv_func_vfork_works=cross
8733 else
8734   cat >conftest.$ac_ext <<_ACEOF
8735 #line $LINENO "configure"
8736 /* confdefs.h.  */
8737 _ACEOF
8738 cat confdefs.h >>conftest.$ac_ext
8739 cat >>conftest.$ac_ext <<_ACEOF
8740 /* end confdefs.h.  */
8741 /* Thanks to Paul Eggert for this test.  */
8742 #include <stdio.h>
8743 #include <stdlib.h>
8744 #include <sys/types.h>
8745 #include <sys/stat.h>
8746 #include <sys/wait.h>
8747 #if HAVE_UNISTD_H
8748 # include <unistd.h>
8749 #endif
8750 #if HAVE_VFORK_H
8751 # include <vfork.h>
8752 #endif
8753 /* On some sparc systems, changes by the child to local and incoming
8754    argument registers are propagated back to the parent.  The compiler
8755    is told about this with #include <vfork.h>, but some compilers
8756    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
8757    static variable whose address is put into a register that is
8758    clobbered by the vfork.  */
8759 static void
8760 #ifdef __cplusplus
8761 sparc_address_test (int arg)
8762 # else
8763 sparc_address_test (arg) int arg;
8764 #endif
8765 {
8766   static pid_t child;
8767   if (!child) {
8768     child = vfork ();
8769     if (child < 0) {
8770       perror ("vfork");
8771       _exit(2);
8772     }
8773     if (!child) {
8774       arg = getpid();
8775       write(-1, "", 0);
8776       _exit (arg);
8777     }
8778   }
8779 }
8780
8781 int
8782 main ()
8783 {
8784   pid_t parent = getpid ();
8785   pid_t child;
8786
8787   sparc_address_test (0);
8788
8789   child = vfork ();
8790
8791   if (child == 0) {
8792     /* Here is another test for sparc vfork register problems.  This
8793        test uses lots of local variables, at least as many local
8794        variables as main has allocated so far including compiler
8795        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
8796        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
8797        reuse the register of parent for one of the local variables,
8798        since it will think that parent can't possibly be used any more
8799        in this routine.  Assigning to the local variable will thus
8800        munge parent in the parent process.  */
8801     pid_t
8802       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8803       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8804     /* Convince the compiler that p..p7 are live; otherwise, it might
8805        use the same hardware register for all 8 local variables.  */
8806     if (p != p1 || p != p2 || p != p3 || p != p4
8807         || p != p5 || p != p6 || p != p7)
8808       _exit(1);
8809
8810     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8811        from child file descriptors.  If the child closes a descriptor
8812        before it execs or exits, this munges the parent's descriptor
8813        as well.  Test for this by closing stdout in the child.  */
8814     _exit(close(fileno(stdout)) != 0);
8815   } else {
8816     int status;
8817     struct stat st;
8818
8819     while (wait(&status) != child)
8820       ;
8821     exit(
8822          /* Was there some problem with vforking?  */
8823          child < 0
8824
8825          /* Did the child fail?  (This shouldn't happen.)  */
8826          || status
8827
8828          /* Did the vfork/compiler bug occur?  */
8829          || parent != getpid()
8830
8831          /* Did the file descriptor bug occur?  */
8832          || fstat(fileno(stdout), &st) != 0
8833          );
8834   }
8835 }
8836 _ACEOF
8837 rm -f conftest$ac_exeext
8838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8839   (eval $ac_link) 2>&5
8840   ac_status=$?
8841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844   (eval $ac_try) 2>&5
8845   ac_status=$?
8846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847   (exit $ac_status); }; }; then
8848   ac_cv_func_vfork_works=yes
8849 else
8850   echo "$as_me: program exited with status $ac_status" >&5
8851 echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8853
8854 ( exit $ac_status )
8855 ac_cv_func_vfork_works=no
8856 fi
8857 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8858 fi
8859 fi
8860 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8861 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
8862
8863 fi;
8864 if test "x$ac_cv_func_fork_works" = xcross; then
8865   ac_cv_func_vfork_works=ac_cv_func_vfork
8866   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8867 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8868 fi
8869
8870 if test "x$ac_cv_func_vfork_works" = xyes; then
8871
8872 cat >>confdefs.h <<\_ACEOF
8873 #define HAVE_WORKING_VFORK 1
8874 _ACEOF
8875
8876 else
8877
8878 cat >>confdefs.h <<\_ACEOF
8879 #define vfork fork
8880 _ACEOF
8881
8882 fi
8883 if test "x$ac_cv_func_fork_works" = xyes; then
8884
8885 cat >>confdefs.h <<\_ACEOF
8886 #define HAVE_WORKING_FORK 1
8887 _ACEOF
8888
8889 fi
8890
8891 echo "$as_me:$LINENO: checking for working memcmp" >&5
8892 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
8893 if test "${ac_cv_func_memcmp_working+set}" = set; then
8894   echo $ECHO_N "(cached) $ECHO_C" >&6
8895 else
8896   if test "$cross_compiling" = yes; then
8897   ac_cv_func_memcmp_working=no
8898 else
8899   cat >conftest.$ac_ext <<_ACEOF
8900 #line $LINENO "configure"
8901 /* confdefs.h.  */
8902 _ACEOF
8903 cat confdefs.h >>conftest.$ac_ext
8904 cat >>conftest.$ac_ext <<_ACEOF
8905 /* end confdefs.h.  */
8906
8907 int
8908 main ()
8909 {
8910
8911   /* Some versions of memcmp are not 8-bit clean.  */
8912   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
8913   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8914     exit (1);
8915
8916   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8917      or more and with at least one buffer not starting on a 4-byte boundary.
8918      William Lewis provided this test program.   */
8919   {
8920     char foo[21];
8921     char bar[21];
8922     int i;
8923     for (i = 0; i < 4; i++)
8924       {
8925         char *a = foo + i;
8926         char *b = bar + i;
8927         strcpy (a, "--------01111111");
8928         strcpy (b, "--------10000000");
8929         if (memcmp (a, b, 16) >= 0)
8930           exit (1);
8931       }
8932     exit (0);
8933   }
8934
8935   ;
8936   return 0;
8937 }
8938 _ACEOF
8939 rm -f conftest$ac_exeext
8940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8941   (eval $ac_link) 2>&5
8942   ac_status=$?
8943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8946   (eval $ac_try) 2>&5
8947   ac_status=$?
8948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949   (exit $ac_status); }; }; then
8950   ac_cv_func_memcmp_working=yes
8951 else
8952   echo "$as_me: program exited with status $ac_status" >&5
8953 echo "$as_me: failed program was:" >&5
8954 sed 's/^/| /' conftest.$ac_ext >&5
8955
8956 ( exit $ac_status )
8957 ac_cv_func_memcmp_working=no
8958 fi
8959 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8960 fi
8961 fi
8962 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8963 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
8964 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8965
8966
8967
8968 for ac_header in stdlib.h unistd.h
8969 do
8970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8972   echo "$as_me:$LINENO: checking for $ac_header" >&5
8973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8975   echo $ECHO_N "(cached) $ECHO_C" >&6
8976 fi
8977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8979 else
8980   # Is the header compilable?
8981 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8982 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8983 cat >conftest.$ac_ext <<_ACEOF
8984 #line $LINENO "configure"
8985 /* confdefs.h.  */
8986 _ACEOF
8987 cat confdefs.h >>conftest.$ac_ext
8988 cat >>conftest.$ac_ext <<_ACEOF
8989 /* end confdefs.h.  */
8990 $ac_includes_default
8991 #include <$ac_header>
8992 _ACEOF
8993 rm -f conftest.$ac_objext
8994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8995   (eval $ac_compile) 2>&5
8996   ac_status=$?
8997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998   (exit $ac_status); } &&
8999          { ac_try='test -s conftest.$ac_objext'
9000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9001   (eval $ac_try) 2>&5
9002   ac_status=$?
9003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004   (exit $ac_status); }; }; then
9005   ac_header_compiler=yes
9006 else
9007   echo "$as_me: failed program was:" >&5
9008 sed 's/^/| /' conftest.$ac_ext >&5
9009
9010 ac_header_compiler=no
9011 fi
9012 rm -f conftest.$ac_objext conftest.$ac_ext
9013 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9014 echo "${ECHO_T}$ac_header_compiler" >&6
9015
9016 # Is the header present?
9017 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9018 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9019 cat >conftest.$ac_ext <<_ACEOF
9020 #line $LINENO "configure"
9021 /* confdefs.h.  */
9022 _ACEOF
9023 cat confdefs.h >>conftest.$ac_ext
9024 cat >>conftest.$ac_ext <<_ACEOF
9025 /* end confdefs.h.  */
9026 #include <$ac_header>
9027 _ACEOF
9028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9029   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9030   ac_status=$?
9031   grep -v '^ *+' conftest.er1 >conftest.err
9032   rm -f conftest.er1
9033   cat conftest.err >&5
9034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035   (exit $ac_status); } >/dev/null; then
9036   if test -s conftest.err; then
9037     ac_cpp_err=$ac_c_preproc_warn_flag
9038   else
9039     ac_cpp_err=
9040   fi
9041 else
9042   ac_cpp_err=yes
9043 fi
9044 if test -z "$ac_cpp_err"; then
9045   ac_header_preproc=yes
9046 else
9047   echo "$as_me: failed program was:" >&5
9048 sed 's/^/| /' conftest.$ac_ext >&5
9049
9050   ac_header_preproc=no
9051 fi
9052 rm -f conftest.err conftest.$ac_ext
9053 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9054 echo "${ECHO_T}$ac_header_preproc" >&6
9055
9056 # So?  What about this header?
9057 case $ac_header_compiler:$ac_header_preproc in
9058   yes:no )
9059     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9060 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9061     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9063     (
9064       cat <<\_ASBOX
9065 ## ------------------------------------ ##
9066 ## Report this to bug-autoconf@gnu.org. ##
9067 ## ------------------------------------ ##
9068 _ASBOX
9069     ) |
9070       sed "s/^/$as_me: WARNING:     /" >&2
9071     ;;
9072   no:yes )
9073     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9075     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9076 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9077     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9079     (
9080       cat <<\_ASBOX
9081 ## ------------------------------------ ##
9082 ## Report this to bug-autoconf@gnu.org. ##
9083 ## ------------------------------------ ##
9084 _ASBOX
9085     ) |
9086       sed "s/^/$as_me: WARNING:     /" >&2
9087     ;;
9088 esac
9089 echo "$as_me:$LINENO: checking for $ac_header" >&5
9090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9092   echo $ECHO_N "(cached) $ECHO_C" >&6
9093 else
9094   eval "$as_ac_Header=$ac_header_preproc"
9095 fi
9096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9098
9099 fi
9100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9101   cat >>confdefs.h <<_ACEOF
9102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9103 _ACEOF
9104
9105 fi
9106
9107 done
9108
9109
9110 for ac_func in getpagesize
9111 do
9112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9113 echo "$as_me:$LINENO: checking for $ac_func" >&5
9114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9115 if eval "test \"\${$as_ac_var+set}\" = set"; then
9116   echo $ECHO_N "(cached) $ECHO_C" >&6
9117 else
9118   cat >conftest.$ac_ext <<_ACEOF
9119 #line $LINENO "configure"
9120 /* confdefs.h.  */
9121 _ACEOF
9122 cat confdefs.h >>conftest.$ac_ext
9123 cat >>conftest.$ac_ext <<_ACEOF
9124 /* end confdefs.h.  */
9125 /* System header to define __stub macros and hopefully few prototypes,
9126     which can conflict with char $ac_func (); below.
9127     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9128     <limits.h> exists even on freestanding compilers.  */
9129 #ifdef __STDC__
9130 # include <limits.h>
9131 #else
9132 # include <assert.h>
9133 #endif
9134 /* Override any gcc2 internal prototype to avoid an error.  */
9135 #ifdef __cplusplus
9136 extern "C"
9137 {
9138 #endif
9139 /* We use char because int might match the return type of a gcc2
9140    builtin and then its argument prototype would still apply.  */
9141 char $ac_func ();
9142 /* The GNU C library defines this for functions which it implements
9143     to always fail with ENOSYS.  Some functions are actually named
9144     something starting with __ and the normal name is an alias.  */
9145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9146 choke me
9147 #else
9148 char (*f) () = $ac_func;
9149 #endif
9150 #ifdef __cplusplus
9151 }
9152 #endif
9153
9154 int
9155 main ()
9156 {
9157 return f != $ac_func;
9158   ;
9159   return 0;
9160 }
9161 _ACEOF
9162 rm -f conftest.$ac_objext conftest$ac_exeext
9163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9164   (eval $ac_link) 2>&5
9165   ac_status=$?
9166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167   (exit $ac_status); } &&
9168          { ac_try='test -s conftest$ac_exeext'
9169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9170   (eval $ac_try) 2>&5
9171   ac_status=$?
9172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173   (exit $ac_status); }; }; then
9174   eval "$as_ac_var=yes"
9175 else
9176   echo "$as_me: failed program was:" >&5
9177 sed 's/^/| /' conftest.$ac_ext >&5
9178
9179 eval "$as_ac_var=no"
9180 fi
9181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9182 fi
9183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9184 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9185 if test `eval echo '${'$as_ac_var'}'` = yes; then
9186   cat >>confdefs.h <<_ACEOF
9187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9188 _ACEOF
9189
9190 fi
9191 done
9192
9193 echo "$as_me:$LINENO: checking for working mmap" >&5
9194 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9195 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9196   echo $ECHO_N "(cached) $ECHO_C" >&6
9197 else
9198   if test "$cross_compiling" = yes; then
9199   ac_cv_func_mmap_fixed_mapped=no
9200 else
9201   cat >conftest.$ac_ext <<_ACEOF
9202 #line $LINENO "configure"
9203 /* confdefs.h.  */
9204 _ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h.  */
9208 $ac_includes_default
9209 /* malloc might have been renamed as rpl_malloc. */
9210 #undef malloc
9211
9212 /* Thanks to Mike Haertel and Jim Avera for this test.
9213    Here is a matrix of mmap possibilities:
9214         mmap private not fixed
9215         mmap private fixed at somewhere currently unmapped
9216         mmap private fixed at somewhere already mapped
9217         mmap shared not fixed
9218         mmap shared fixed at somewhere currently unmapped
9219         mmap shared fixed at somewhere already mapped
9220    For private mappings, we should verify that changes cannot be read()
9221    back from the file, nor mmap's back from the file at a different
9222    address.  (There have been systems where private was not correctly
9223    implemented like the infamous i386 svr4.0, and systems where the
9224    VM page cache was not coherent with the file system buffer cache
9225    like early versions of FreeBSD and possibly contemporary NetBSD.)
9226    For shared mappings, we should conversely verify that changes get
9227    propagated back to all the places they're supposed to be.
9228
9229    Grep wants private fixed already mapped.
9230    The main things grep needs to know about mmap are:
9231    * does it exist and is it safe to write into the mmap'd area
9232    * how to use it (BSD variants)  */
9233
9234 #include <fcntl.h>
9235 #include <sys/mman.h>
9236
9237 #if !STDC_HEADERS && !HAVE_STDLIB_H
9238 char *malloc ();
9239 #endif
9240
9241 /* This mess was copied from the GNU getpagesize.h.  */
9242 #if !HAVE_GETPAGESIZE
9243 /* Assume that all systems that can run configure have sys/param.h.  */
9244 # if !HAVE_SYS_PARAM_H
9245 #  define HAVE_SYS_PARAM_H 1
9246 # endif
9247
9248 # ifdef _SC_PAGESIZE
9249 #  define getpagesize() sysconf(_SC_PAGESIZE)
9250 # else /* no _SC_PAGESIZE */
9251 #  if HAVE_SYS_PARAM_H
9252 #   include <sys/param.h>
9253 #   ifdef EXEC_PAGESIZE
9254 #    define getpagesize() EXEC_PAGESIZE
9255 #   else /* no EXEC_PAGESIZE */
9256 #    ifdef NBPG
9257 #     define getpagesize() NBPG * CLSIZE
9258 #     ifndef CLSIZE
9259 #      define CLSIZE 1
9260 #     endif /* no CLSIZE */
9261 #    else /* no NBPG */
9262 #     ifdef NBPC
9263 #      define getpagesize() NBPC
9264 #     else /* no NBPC */
9265 #      ifdef PAGESIZE
9266 #       define getpagesize() PAGESIZE
9267 #      endif /* PAGESIZE */
9268 #     endif /* no NBPC */
9269 #    endif /* no NBPG */
9270 #   endif /* no EXEC_PAGESIZE */
9271 #  else /* no HAVE_SYS_PARAM_H */
9272 #   define getpagesize() 8192   /* punt totally */
9273 #  endif /* no HAVE_SYS_PARAM_H */
9274 # endif /* no _SC_PAGESIZE */
9275
9276 #endif /* no HAVE_GETPAGESIZE */
9277
9278 int
9279 main ()
9280 {
9281   char *data, *data2, *data3;
9282   int i, pagesize;
9283   int fd;
9284
9285   pagesize = getpagesize ();
9286
9287   /* First, make a file with some known garbage in it. */
9288   data = (char *) malloc (pagesize);
9289   if (!data)
9290     exit (1);
9291   for (i = 0; i < pagesize; ++i)
9292     *(data + i) = rand ();
9293   umask (0);
9294   fd = creat ("conftest.mmap", 0600);
9295   if (fd < 0)
9296     exit (1);
9297   if (write (fd, data, pagesize) != pagesize)
9298     exit (1);
9299   close (fd);
9300
9301   /* Next, try to mmap the file at a fixed address which already has
9302      something else allocated at it.  If we can, also make sure that
9303      we see the same garbage.  */
9304   fd = open ("conftest.mmap", O_RDWR);
9305   if (fd < 0)
9306     exit (1);
9307   data2 = (char *) malloc (2 * pagesize);
9308   if (!data2)
9309     exit (1);
9310   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
9311   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9312                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
9313     exit (1);
9314   for (i = 0; i < pagesize; ++i)
9315     if (*(data + i) != *(data2 + i))
9316       exit (1);
9317
9318   /* Finally, make sure that changes to the mapped area do not
9319      percolate back to the file as seen by read().  (This is a bug on
9320      some variants of i386 svr4.0.)  */
9321   for (i = 0; i < pagesize; ++i)
9322     *(data2 + i) = *(data2 + i) + 1;
9323   data3 = (char *) malloc (pagesize);
9324   if (!data3)
9325     exit (1);
9326   if (read (fd, data3, pagesize) != pagesize)
9327     exit (1);
9328   for (i = 0; i < pagesize; ++i)
9329     if (*(data + i) != *(data3 + i))
9330       exit (1);
9331   close (fd);
9332   exit (0);
9333 }
9334 _ACEOF
9335 rm -f conftest$ac_exeext
9336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9337   (eval $ac_link) 2>&5
9338   ac_status=$?
9339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9342   (eval $ac_try) 2>&5
9343   ac_status=$?
9344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345   (exit $ac_status); }; }; then
9346   ac_cv_func_mmap_fixed_mapped=yes
9347 else
9348   echo "$as_me: program exited with status $ac_status" >&5
9349 echo "$as_me: failed program was:" >&5
9350 sed 's/^/| /' conftest.$ac_ext >&5
9351
9352 ( exit $ac_status )
9353 ac_cv_func_mmap_fixed_mapped=no
9354 fi
9355 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9356 fi
9357 fi
9358 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9359 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9360 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9361
9362 cat >>confdefs.h <<\_ACEOF
9363 #define HAVE_MMAP 1
9364 _ACEOF
9365
9366 fi
9367 rm -f conftest.mmap
9368
9369 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
9370 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
9371 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
9372   echo $ECHO_N "(cached) $ECHO_C" >&6
9373 else
9374   ac_cv_func_setvbuf_reversed=no
9375    cat >conftest.$ac_ext <<_ACEOF
9376 #line $LINENO "configure"
9377 /* confdefs.h.  */
9378 _ACEOF
9379 cat confdefs.h >>conftest.$ac_ext
9380 cat >>conftest.$ac_ext <<_ACEOF
9381 /* end confdefs.h.  */
9382 #include <stdio.h>
9383 #         if PROTOTYPES
9384            int (setvbuf) (FILE *, int, char *, size_t);
9385 #         endif
9386 int
9387 main ()
9388 {
9389 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
9390   ;
9391   return 0;
9392 }
9393 _ACEOF
9394 rm -f conftest.$ac_objext conftest$ac_exeext
9395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9396   (eval $ac_link) 2>&5
9397   ac_status=$?
9398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399   (exit $ac_status); } &&
9400          { ac_try='test -s conftest$ac_exeext'
9401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9402   (eval $ac_try) 2>&5
9403   ac_status=$?
9404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405   (exit $ac_status); }; }; then
9406   cat >conftest.$ac_ext <<_ACEOF
9407 #line $LINENO "configure"
9408 /* confdefs.h.  */
9409 _ACEOF
9410 cat confdefs.h >>conftest.$ac_ext
9411 cat >>conftest.$ac_ext <<_ACEOF
9412 /* end confdefs.h.  */
9413 #include <stdio.h>
9414 #            if PROTOTYPES
9415               int (setvbuf) (FILE *, int, char *, size_t);
9416 #            endif
9417 int
9418 main ()
9419 {
9420 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
9421   ;
9422   return 0;
9423 }
9424 _ACEOF
9425 rm -f conftest.$ac_objext conftest$ac_exeext
9426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9427   (eval $ac_link) 2>&5
9428   ac_status=$?
9429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430   (exit $ac_status); } &&
9431          { ac_try='test -s conftest$ac_exeext'
9432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9433   (eval $ac_try) 2>&5
9434   ac_status=$?
9435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436   (exit $ac_status); }; }; then
9437   # It compiles and links either way, so it must not be declared
9438          # with a prototype and most likely this is a K&R C compiler.
9439          # Try running it.
9440          if test "$cross_compiling" = yes; then
9441   : # Assume setvbuf is not reversed when cross-compiling.
9442 else
9443   cat >conftest.$ac_ext <<_ACEOF
9444 #line $LINENO "configure"
9445 /* confdefs.h.  */
9446 _ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h.  */
9450 #include <stdio.h>
9451 int
9452 main ()
9453 {
9454 /* This call has the arguments reversed.
9455                    A reversed system may check and see that the address of buf
9456                    is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
9457                 char buf;
9458                 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
9459                   exit (1);
9460                 putchar ('\r');
9461                 exit (0); /* Non-reversed systems SEGV here.  */
9462   ;
9463   return 0;
9464 }
9465 _ACEOF
9466 rm -f conftest$ac_exeext
9467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9468   (eval $ac_link) 2>&5
9469   ac_status=$?
9470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9473   (eval $ac_try) 2>&5
9474   ac_status=$?
9475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476   (exit $ac_status); }; }; then
9477   ac_cv_func_setvbuf_reversed=yes
9478 else
9479   echo "$as_me: program exited with status $ac_status" >&5
9480 echo "$as_me: failed program was:" >&5
9481 sed 's/^/| /' conftest.$ac_ext >&5
9482
9483 ( exit $ac_status )
9484 rm -f core core.* *.core
9485 fi
9486 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9487 fi
9488         ac_cv_func_setvbuf_reversed=yes
9489 else
9490   echo "$as_me: failed program was:" >&5
9491 sed 's/^/| /' conftest.$ac_ext >&5
9492
9493 fi
9494 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9495 else
9496   echo "$as_me: failed program was:" >&5
9497 sed 's/^/| /' conftest.$ac_ext >&5
9498
9499 fi
9500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9501 fi
9502 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
9503 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
9504 if test $ac_cv_func_setvbuf_reversed = yes; then
9505
9506 cat >>confdefs.h <<\_ACEOF
9507 #define SETVBUF_REVERSED 1
9508 _ACEOF
9509
9510 fi
9511
9512 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9513 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9514 if test "${ac_cv_type_signal+set}" = set; then
9515   echo $ECHO_N "(cached) $ECHO_C" >&6
9516 else
9517   cat >conftest.$ac_ext <<_ACEOF
9518 #line $LINENO "configure"
9519 /* confdefs.h.  */
9520 _ACEOF
9521 cat confdefs.h >>conftest.$ac_ext
9522 cat >>conftest.$ac_ext <<_ACEOF
9523 /* end confdefs.h.  */
9524 #include <sys/types.h>
9525 #include <signal.h>
9526 #ifdef signal
9527 # undef signal
9528 #endif
9529 #ifdef __cplusplus
9530 extern "C" void (*signal (int, void (*)(int)))(int);
9531 #else
9532 void (*signal ()) ();
9533 #endif
9534
9535 int
9536 main ()
9537 {
9538 int i;
9539   ;
9540   return 0;
9541 }
9542 _ACEOF
9543 rm -f conftest.$ac_objext
9544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9545   (eval $ac_compile) 2>&5
9546   ac_status=$?
9547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548   (exit $ac_status); } &&
9549          { ac_try='test -s conftest.$ac_objext'
9550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9551   (eval $ac_try) 2>&5
9552   ac_status=$?
9553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554   (exit $ac_status); }; }; then
9555   ac_cv_type_signal=void
9556 else
9557   echo "$as_me: failed program was:" >&5
9558 sed 's/^/| /' conftest.$ac_ext >&5
9559
9560 ac_cv_type_signal=int
9561 fi
9562 rm -f conftest.$ac_objext conftest.$ac_ext
9563 fi
9564 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9565 echo "${ECHO_T}$ac_cv_type_signal" >&6
9566
9567 cat >>confdefs.h <<_ACEOF
9568 #define RETSIGTYPE $ac_cv_type_signal
9569 _ACEOF
9570
9571
9572
9573 for ac_func in vprintf
9574 do
9575 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9576 echo "$as_me:$LINENO: checking for $ac_func" >&5
9577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9578 if eval "test \"\${$as_ac_var+set}\" = set"; then
9579   echo $ECHO_N "(cached) $ECHO_C" >&6
9580 else
9581   cat >conftest.$ac_ext <<_ACEOF
9582 #line $LINENO "configure"
9583 /* confdefs.h.  */
9584 _ACEOF
9585 cat confdefs.h >>conftest.$ac_ext
9586 cat >>conftest.$ac_ext <<_ACEOF
9587 /* end confdefs.h.  */
9588 /* System header to define __stub macros and hopefully few prototypes,
9589     which can conflict with char $ac_func (); below.
9590     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9591     <limits.h> exists even on freestanding compilers.  */
9592 #ifdef __STDC__
9593 # include <limits.h>
9594 #else
9595 # include <assert.h>
9596 #endif
9597 /* Override any gcc2 internal prototype to avoid an error.  */
9598 #ifdef __cplusplus
9599 extern "C"
9600 {
9601 #endif
9602 /* We use char because int might match the return type of a gcc2
9603    builtin and then its argument prototype would still apply.  */
9604 char $ac_func ();
9605 /* The GNU C library defines this for functions which it implements
9606     to always fail with ENOSYS.  Some functions are actually named
9607     something starting with __ and the normal name is an alias.  */
9608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9609 choke me
9610 #else
9611 char (*f) () = $ac_func;
9612 #endif
9613 #ifdef __cplusplus
9614 }
9615 #endif
9616
9617 int
9618 main ()
9619 {
9620 return f != $ac_func;
9621   ;
9622   return 0;
9623 }
9624 _ACEOF
9625 rm -f conftest.$ac_objext conftest$ac_exeext
9626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9627   (eval $ac_link) 2>&5
9628   ac_status=$?
9629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630   (exit $ac_status); } &&
9631          { ac_try='test -s conftest$ac_exeext'
9632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9633   (eval $ac_try) 2>&5
9634   ac_status=$?
9635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636   (exit $ac_status); }; }; then
9637   eval "$as_ac_var=yes"
9638 else
9639   echo "$as_me: failed program was:" >&5
9640 sed 's/^/| /' conftest.$ac_ext >&5
9641
9642 eval "$as_ac_var=no"
9643 fi
9644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9645 fi
9646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9647 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9648 if test `eval echo '${'$as_ac_var'}'` = yes; then
9649   cat >>confdefs.h <<_ACEOF
9650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9651 _ACEOF
9652
9653 echo "$as_me:$LINENO: checking for _doprnt" >&5
9654 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
9655 if test "${ac_cv_func__doprnt+set}" = set; then
9656   echo $ECHO_N "(cached) $ECHO_C" >&6
9657 else
9658   cat >conftest.$ac_ext <<_ACEOF
9659 #line $LINENO "configure"
9660 /* confdefs.h.  */
9661 _ACEOF
9662 cat confdefs.h >>conftest.$ac_ext
9663 cat >>conftest.$ac_ext <<_ACEOF
9664 /* end confdefs.h.  */
9665 /* System header to define __stub macros and hopefully few prototypes,
9666     which can conflict with char _doprnt (); below.
9667     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9668     <limits.h> exists even on freestanding compilers.  */
9669 #ifdef __STDC__
9670 # include <limits.h>
9671 #else
9672 # include <assert.h>
9673 #endif
9674 /* Override any gcc2 internal prototype to avoid an error.  */
9675 #ifdef __cplusplus
9676 extern "C"
9677 {
9678 #endif
9679 /* We use char because int might match the return type of a gcc2
9680    builtin and then its argument prototype would still apply.  */
9681 char _doprnt ();
9682 /* The GNU C library defines this for functions which it implements
9683     to always fail with ENOSYS.  Some functions are actually named
9684     something starting with __ and the normal name is an alias.  */
9685 #if defined (__stub__doprnt) || defined (__stub____doprnt)
9686 choke me
9687 #else
9688 char (*f) () = _doprnt;
9689 #endif
9690 #ifdef __cplusplus
9691 }
9692 #endif
9693
9694 int
9695 main ()
9696 {
9697 return f != _doprnt;
9698   ;
9699   return 0;
9700 }
9701 _ACEOF
9702 rm -f conftest.$ac_objext conftest$ac_exeext
9703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9704   (eval $ac_link) 2>&5
9705   ac_status=$?
9706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707   (exit $ac_status); } &&
9708          { ac_try='test -s conftest$ac_exeext'
9709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710   (eval $ac_try) 2>&5
9711   ac_status=$?
9712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713   (exit $ac_status); }; }; then
9714   ac_cv_func__doprnt=yes
9715 else
9716   echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.$ac_ext >&5
9718
9719 ac_cv_func__doprnt=no
9720 fi
9721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9722 fi
9723 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9724 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
9725 if test $ac_cv_func__doprnt = yes; then
9726
9727 cat >>confdefs.h <<\_ACEOF
9728 #define HAVE_DOPRNT 1
9729 _ACEOF
9730
9731 fi
9732
9733 fi
9734 done
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770 for ac_func in \
9771   alarm \
9772   dup2 \
9773   floor \
9774   getcwd \
9775   getopt \
9776   gethostbyname \
9777   gettimeofday \
9778   getwd \
9779   isatty \
9780   memchr \
9781   memmove \
9782   memset \
9783   modf \
9784   munmap \
9785   popen \
9786   pow \
9787   select \
9788   signal \
9789   socket \
9790   sleep \
9791   vsnprintf \
9792   snprintf \
9793   sqrt \
9794   strchr \
9795   strdup \
9796   strstr \
9797   strerror \
9798   strcasecmp \
9799   strncasecmp \
9800   strrchr \
9801   strstr \
9802   strtol \
9803   usleep
9804 do
9805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9806 echo "$as_me:$LINENO: checking for $ac_func" >&5
9807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9808 if eval "test \"\${$as_ac_var+set}\" = set"; then
9809   echo $ECHO_N "(cached) $ECHO_C" >&6
9810 else
9811   cat >conftest.$ac_ext <<_ACEOF
9812 #line $LINENO "configure"
9813 /* confdefs.h.  */
9814 _ACEOF
9815 cat confdefs.h >>conftest.$ac_ext
9816 cat >>conftest.$ac_ext <<_ACEOF
9817 /* end confdefs.h.  */
9818 /* System header to define __stub macros and hopefully few prototypes,
9819     which can conflict with char $ac_func (); below.
9820     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9821     <limits.h> exists even on freestanding compilers.  */
9822 #ifdef __STDC__
9823 # include <limits.h>
9824 #else
9825 # include <assert.h>
9826 #endif
9827 /* Override any gcc2 internal prototype to avoid an error.  */
9828 #ifdef __cplusplus
9829 extern "C"
9830 {
9831 #endif
9832 /* We use char because int might match the return type of a gcc2
9833    builtin and then its argument prototype would still apply.  */
9834 char $ac_func ();
9835 /* The GNU C library defines this for functions which it implements
9836     to always fail with ENOSYS.  Some functions are actually named
9837     something starting with __ and the normal name is an alias.  */
9838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9839 choke me
9840 #else
9841 char (*f) () = $ac_func;
9842 #endif
9843 #ifdef __cplusplus
9844 }
9845 #endif
9846
9847 int
9848 main ()
9849 {
9850 return f != $ac_func;
9851   ;
9852   return 0;
9853 }
9854 _ACEOF
9855 rm -f conftest.$ac_objext conftest$ac_exeext
9856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9857   (eval $ac_link) 2>&5
9858   ac_status=$?
9859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860   (exit $ac_status); } &&
9861          { ac_try='test -s conftest$ac_exeext'
9862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863   (eval $ac_try) 2>&5
9864   ac_status=$?
9865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866   (exit $ac_status); }; }; then
9867   eval "$as_ac_var=yes"
9868 else
9869   echo "$as_me: failed program was:" >&5
9870 sed 's/^/| /' conftest.$ac_ext >&5
9871
9872 eval "$as_ac_var=no"
9873 fi
9874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9875 fi
9876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9877 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9878 if test `eval echo '${'$as_ac_var'}'` = yes; then
9879   cat >>confdefs.h <<_ACEOF
9880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9881 _ACEOF
9882
9883 fi
9884 done
9885
9886 echo "$as_me:$LINENO: checking for getopt_long" >&5
9887 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
9888 if test "${ac_cv_func_getopt_long+set}" = set; then
9889   echo $ECHO_N "(cached) $ECHO_C" >&6
9890 else
9891   cat >conftest.$ac_ext <<_ACEOF
9892 #line $LINENO "configure"
9893 /* confdefs.h.  */
9894 _ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h.  */
9898 /* System header to define __stub macros and hopefully few prototypes,
9899     which can conflict with char getopt_long (); below.
9900     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9901     <limits.h> exists even on freestanding compilers.  */
9902 #ifdef __STDC__
9903 # include <limits.h>
9904 #else
9905 # include <assert.h>
9906 #endif
9907 /* Override any gcc2 internal prototype to avoid an error.  */
9908 #ifdef __cplusplus
9909 extern "C"
9910 {
9911 #endif
9912 /* We use char because int might match the return type of a gcc2
9913    builtin and then its argument prototype would still apply.  */
9914 char getopt_long ();
9915 /* The GNU C library defines this for functions which it implements
9916     to always fail with ENOSYS.  Some functions are actually named
9917     something starting with __ and the normal name is an alias.  */
9918 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
9919 choke me
9920 #else
9921 char (*f) () = getopt_long;
9922 #endif
9923 #ifdef __cplusplus
9924 }
9925 #endif
9926
9927 int
9928 main ()
9929 {
9930 return f != getopt_long;
9931   ;
9932   return 0;
9933 }
9934 _ACEOF
9935 rm -f conftest.$ac_objext conftest$ac_exeext
9936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9937   (eval $ac_link) 2>&5
9938   ac_status=$?
9939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940   (exit $ac_status); } &&
9941          { ac_try='test -s conftest$ac_exeext'
9942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9943   (eval $ac_try) 2>&5
9944   ac_status=$?
9945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946   (exit $ac_status); }; }; then
9947   ac_cv_func_getopt_long=yes
9948 else
9949   echo "$as_me: failed program was:" >&5
9950 sed 's/^/| /' conftest.$ac_ext >&5
9951
9952 ac_cv_func_getopt_long=no
9953 fi
9954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9955 fi
9956 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
9957 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
9958 if test $ac_cv_func_getopt_long = yes; then
9959
9960 cat >>confdefs.h <<\_ACEOF
9961 #define HAVE_GETOPT_LONG 1
9962 _ACEOF
9963
9964          tm_cv_needgetopt="no"
9965 else
9966   tm_cv_needgetopt="yes"
9967 fi
9968
9969
9970
9971 if test "x$tm_cv_needgetopt" = "xyes"; then
9972   NEEDGETOPT_TRUE=
9973   NEEDGETOPT_FALSE='#'
9974 else
9975   NEEDGETOPT_TRUE='#'
9976   NEEDGETOPT_FALSE=
9977 fi
9978
9979
9980 # Checks on cygnus
9981 if test "x$CYGNUS" = xyes; then
9982   case "$ac_cv_header_dirent_dirent_h$ac_cv_header_dirent_sys_ndir_h$ac_cv_header_dirent_sys_dir_h$ac_cv_header_dirent_ndir_h" in
9983   *yes*)
9984     echo "$as_me:$LINENO: checking for opendir" >&5
9985 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
9986 if test "${ac_cv_func_opendir+set}" = set; then
9987   echo $ECHO_N "(cached) $ECHO_C" >&6
9988 else
9989   cat >conftest.$ac_ext <<_ACEOF
9990 #line $LINENO "configure"
9991 /* confdefs.h.  */
9992 _ACEOF
9993 cat confdefs.h >>conftest.$ac_ext
9994 cat >>conftest.$ac_ext <<_ACEOF
9995 /* end confdefs.h.  */
9996 /* System header to define __stub macros and hopefully few prototypes,
9997     which can conflict with char opendir (); below.
9998     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9999     <limits.h> exists even on freestanding compilers.  */
10000 #ifdef __STDC__
10001 # include <limits.h>
10002 #else
10003 # include <assert.h>
10004 #endif
10005 /* Override any gcc2 internal prototype to avoid an error.  */
10006 #ifdef __cplusplus
10007 extern "C"
10008 {
10009 #endif
10010 /* We use char because int might match the return type of a gcc2
10011    builtin and then its argument prototype would still apply.  */
10012 char opendir ();
10013 /* The GNU C library defines this for functions which it implements
10014     to always fail with ENOSYS.  Some functions are actually named
10015     something starting with __ and the normal name is an alias.  */
10016 #if defined (__stub_opendir) || defined (__stub___opendir)
10017 choke me
10018 #else
10019 char (*f) () = opendir;
10020 #endif
10021 #ifdef __cplusplus
10022 }
10023 #endif
10024
10025 int
10026 main ()
10027 {
10028 return f != opendir;
10029   ;
10030   return 0;
10031 }
10032 _ACEOF
10033 rm -f conftest.$ac_objext conftest$ac_exeext
10034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10035   (eval $ac_link) 2>&5
10036   ac_status=$?
10037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038   (exit $ac_status); } &&
10039          { ac_try='test -s conftest$ac_exeext'
10040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041   (eval $ac_try) 2>&5
10042   ac_status=$?
10043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044   (exit $ac_status); }; }; then
10045   ac_cv_func_opendir=yes
10046 else
10047   echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10049
10050 ac_cv_func_opendir=no
10051 fi
10052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10053 fi
10054 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
10055 echo "${ECHO_T}$ac_cv_func_opendir" >&6
10056 if test $ac_cv_func_opendir = yes; then
10057   :
10058 else
10059    EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
10060     W32READDIR=yes
10061 fi
10062
10063     ;;
10064   *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
10065     W32READDIR=yes
10066     ;;
10067   esac
10068   if test "x$enable_network" = "xyes"; then
10069     echo "$as_me:$LINENO: checking for socket" >&5
10070 echo $ECHO_N "checking for socket... $ECHO_C" >&6
10071 if test "${ac_cv_func_socket+set}" = set; then
10072   echo $ECHO_N "(cached) $ECHO_C" >&6
10073 else
10074   cat >conftest.$ac_ext <<_ACEOF
10075 #line $LINENO "configure"
10076 /* confdefs.h.  */
10077 _ACEOF
10078 cat confdefs.h >>conftest.$ac_ext
10079 cat >>conftest.$ac_ext <<_ACEOF
10080 /* end confdefs.h.  */
10081 /* System header to define __stub macros and hopefully few prototypes,
10082     which can conflict with char socket (); below.
10083     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10084     <limits.h> exists even on freestanding compilers.  */
10085 #ifdef __STDC__
10086 # include <limits.h>
10087 #else
10088 # include <assert.h>
10089 #endif
10090 /* Override any gcc2 internal prototype to avoid an error.  */
10091 #ifdef __cplusplus
10092 extern "C"
10093 {
10094 #endif
10095 /* We use char because int might match the return type of a gcc2
10096    builtin and then its argument prototype would still apply.  */
10097 char socket ();
10098 /* The GNU C library defines this for functions which it implements
10099     to always fail with ENOSYS.  Some functions are actually named
10100     something starting with __ and the normal name is an alias.  */
10101 #if defined (__stub_socket) || defined (__stub___socket)
10102 choke me
10103 #else
10104 char (*f) () = socket;
10105 #endif
10106 #ifdef __cplusplus
10107 }
10108 #endif
10109
10110 int
10111 main ()
10112 {
10113 return f != socket;
10114   ;
10115   return 0;
10116 }
10117 _ACEOF
10118 rm -f conftest.$ac_objext conftest$ac_exeext
10119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10120   (eval $ac_link) 2>&5
10121   ac_status=$?
10122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123   (exit $ac_status); } &&
10124          { ac_try='test -s conftest$ac_exeext'
10125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126   (eval $ac_try) 2>&5
10127   ac_status=$?
10128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129   (exit $ac_status); }; }; then
10130   ac_cv_func_socket=yes
10131 else
10132   echo "$as_me: failed program was:" >&5
10133 sed 's/^/| /' conftest.$ac_ext >&5
10134
10135 ac_cv_func_socket=no
10136 fi
10137 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10138 fi
10139 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
10140 echo "${ECHO_T}$ac_cv_func_socket" >&6
10141 if test $ac_cv_func_socket = yes; then
10142   :
10143 else
10144   echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
10145 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
10146 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
10147 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
10148   echo $ECHO_N "(cached) $ECHO_C" >&6
10149 else
10150   ac_save_LIBS="$LIBS"
10151 LIBS="-lwsock32  $LIBS"
10152 cat >conftest.$ac_ext <<_ACEOF
10153 #line $LINENO "configure"
10154 /* confdefs.h.  */
10155 _ACEOF
10156 cat confdefs.h >>conftest.$ac_ext
10157 cat >>conftest.$ac_ext <<_ACEOF
10158 /* end confdefs.h.  */
10159 #include <windows.h>
10160 #include <winsock.h>
10161
10162 int
10163 main ()
10164 {
10165 WSAStartup(0,0);
10166   ;
10167   return 0;
10168 }
10169 _ACEOF
10170 rm -f conftest.$ac_objext conftest$ac_exeext
10171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10172   (eval $ac_link) 2>&5
10173   ac_status=$?
10174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175   (exit $ac_status); } &&
10176          { ac_try='test -s conftest$ac_exeext'
10177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10178   (eval $ac_try) 2>&5
10179   ac_status=$?
10180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181   (exit $ac_status); }; }; then
10182   eval "wapi_cv_lib_$ac_lib_var=yes"
10183 else
10184   echo "$as_me: failed program was:" >&5
10185 sed 's/^/| /' conftest.$ac_ext >&5
10186
10187 eval "wapi_cv_lib_$ac_lib_var=no"
10188 fi
10189 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10190 LIBS="$ac_save_LIBS"
10191
10192 fi
10193 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
10194   echo "$as_me:$LINENO: result: yes" >&5
10195 echo "${ECHO_T}yes" >&6
10196    EXTRALIBS="$EXTRALIBS -lwsock32"
10197     EXTRADEFS="$EXTRADEFS -DWINSOCK"
10198 else
10199   echo "$as_me:$LINENO: result: no" >&5
10200 echo "${ECHO_T}no" >&6
10201 fi
10202
10203 fi
10204
10205   fi
10206 fi
10207
10208 # Checks on Mingw
10209 if test "x$CYGWIN" = xyes; then
10210   case "$ac_cv_header_dirent_dirent_h$ac_cv_header_dirent_sys_ndir_h$ac_cv_header_dirent_sys_dir_h$ac_cv_header_dirent_ndir_h" in
10211   *yes*)
10212     echo "$as_me:$LINENO: checking for opendir" >&5
10213 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
10214 if test "${ac_cv_func_opendir+set}" = set; then
10215   echo $ECHO_N "(cached) $ECHO_C" >&6
10216 else
10217   cat >conftest.$ac_ext <<_ACEOF
10218 #line $LINENO "configure"
10219 /* confdefs.h.  */
10220 _ACEOF
10221 cat confdefs.h >>conftest.$ac_ext
10222 cat >>conftest.$ac_ext <<_ACEOF
10223 /* end confdefs.h.  */
10224 /* System header to define __stub macros and hopefully few prototypes,
10225     which can conflict with char opendir (); below.
10226     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10227     <limits.h> exists even on freestanding compilers.  */
10228 #ifdef __STDC__
10229 # include <limits.h>
10230 #else
10231 # include <assert.h>
10232 #endif
10233 /* Override any gcc2 internal prototype to avoid an error.  */
10234 #ifdef __cplusplus
10235 extern "C"
10236 {
10237 #endif
10238 /* We use char because int might match the return type of a gcc2
10239    builtin and then its argument prototype would still apply.  */
10240 char opendir ();
10241 /* The GNU C library defines this for functions which it implements
10242     to always fail with ENOSYS.  Some functions are actually named
10243     something starting with __ and the normal name is an alias.  */
10244 #if defined (__stub_opendir) || defined (__stub___opendir)
10245 choke me
10246 #else
10247 char (*f) () = opendir;
10248 #endif
10249 #ifdef __cplusplus
10250 }
10251 #endif
10252
10253 int
10254 main ()
10255 {
10256 return f != opendir;
10257   ;
10258   return 0;
10259 }
10260 _ACEOF
10261 rm -f conftest.$ac_objext conftest$ac_exeext
10262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10263   (eval $ac_link) 2>&5
10264   ac_status=$?
10265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266   (exit $ac_status); } &&
10267          { ac_try='test -s conftest$ac_exeext'
10268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269   (eval $ac_try) 2>&5
10270   ac_status=$?
10271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272   (exit $ac_status); }; }; then
10273   ac_cv_func_opendir=yes
10274 else
10275   echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10277
10278 ac_cv_func_opendir=no
10279 fi
10280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10281 fi
10282 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
10283 echo "${ECHO_T}$ac_cv_func_opendir" >&6
10284 if test $ac_cv_func_opendir = yes; then
10285   :
10286 else
10287    EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
10288     W32READDIR=yes
10289 fi
10290
10291     ;;
10292   *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
10293     W32READDIR=yes
10294     ;;
10295   esac
10296   if test "x$enable_network" = "xyes"; then
10297     echo "$as_me:$LINENO: checking for socket" >&5
10298 echo $ECHO_N "checking for socket... $ECHO_C" >&6
10299 if test "${ac_cv_func_socket+set}" = set; then
10300   echo $ECHO_N "(cached) $ECHO_C" >&6
10301 else
10302   cat >conftest.$ac_ext <<_ACEOF
10303 #line $LINENO "configure"
10304 /* confdefs.h.  */
10305 _ACEOF
10306 cat confdefs.h >>conftest.$ac_ext
10307 cat >>conftest.$ac_ext <<_ACEOF
10308 /* end confdefs.h.  */
10309 /* System header to define __stub macros and hopefully few prototypes,
10310     which can conflict with char socket (); below.
10311     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10312     <limits.h> exists even on freestanding compilers.  */
10313 #ifdef __STDC__
10314 # include <limits.h>
10315 #else
10316 # include <assert.h>
10317 #endif
10318 /* Override any gcc2 internal prototype to avoid an error.  */
10319 #ifdef __cplusplus
10320 extern "C"
10321 {
10322 #endif
10323 /* We use char because int might match the return type of a gcc2
10324    builtin and then its argument prototype would still apply.  */
10325 char socket ();
10326 /* The GNU C library defines this for functions which it implements
10327     to always fail with ENOSYS.  Some functions are actually named
10328     something starting with __ and the normal name is an alias.  */
10329 #if defined (__stub_socket) || defined (__stub___socket)
10330 choke me
10331 #else
10332 char (*f) () = socket;
10333 #endif
10334 #ifdef __cplusplus
10335 }
10336 #endif
10337
10338 int
10339 main ()
10340 {
10341 return f != socket;
10342   ;
10343   return 0;
10344 }
10345 _ACEOF
10346 rm -f conftest.$ac_objext conftest$ac_exeext
10347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10348   (eval $ac_link) 2>&5
10349   ac_status=$?
10350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351   (exit $ac_status); } &&
10352          { ac_try='test -s conftest$ac_exeext'
10353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354   (eval $ac_try) 2>&5
10355   ac_status=$?
10356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357   (exit $ac_status); }; }; then
10358   ac_cv_func_socket=yes
10359 else
10360   echo "$as_me: failed program was:" >&5
10361 sed 's/^/| /' conftest.$ac_ext >&5
10362
10363 ac_cv_func_socket=no
10364 fi
10365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10366 fi
10367 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
10368 echo "${ECHO_T}$ac_cv_func_socket" >&6
10369 if test $ac_cv_func_socket = yes; then
10370   :
10371 else
10372   echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
10373 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
10374 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
10375 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
10376   echo $ECHO_N "(cached) $ECHO_C" >&6
10377 else
10378   ac_save_LIBS="$LIBS"
10379 LIBS="-lwsock32  $LIBS"
10380 cat >conftest.$ac_ext <<_ACEOF
10381 #line $LINENO "configure"
10382 /* confdefs.h.  */
10383 _ACEOF
10384 cat confdefs.h >>conftest.$ac_ext
10385 cat >>conftest.$ac_ext <<_ACEOF
10386 /* end confdefs.h.  */
10387 #include <windows.h>
10388 #include <winsock.h>
10389
10390 int
10391 main ()
10392 {
10393 WSAStartup(0,0);
10394   ;
10395   return 0;
10396 }
10397 _ACEOF
10398 rm -f conftest.$ac_objext conftest$ac_exeext
10399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10400   (eval $ac_link) 2>&5
10401   ac_status=$?
10402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403   (exit $ac_status); } &&
10404          { ac_try='test -s conftest$ac_exeext'
10405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10406   (eval $ac_try) 2>&5
10407   ac_status=$?
10408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409   (exit $ac_status); }; }; then
10410   eval "wapi_cv_lib_$ac_lib_var=yes"
10411 else
10412   echo "$as_me: failed program was:" >&5
10413 sed 's/^/| /' conftest.$ac_ext >&5
10414
10415 eval "wapi_cv_lib_$ac_lib_var=no"
10416 fi
10417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10418 LIBS="$ac_save_LIBS"
10419
10420 fi
10421 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
10422   echo "$as_me:$LINENO: result: yes" >&5
10423 echo "${ECHO_T}yes" >&6
10424    EXTRALIBS="$EXTRALIBS -lwsock32"
10425     EXTRADEFS="$EXTRADEFS -DWINSOCK"
10426 else
10427   echo "$as_me:$LINENO: result: no" >&5
10428 echo "${ECHO_T}no" >&6
10429 fi
10430
10431 fi
10432
10433   fi
10434 fi
10435
10436 # Checks on extra paths
10437
10438
10439 # Check whether --with-tcl-includes or --without-tcl-includes was given.
10440 if test "${with_tcl_includes+set}" = set; then
10441   withval="$with_tcl_includes"
10442    if test ! -d $withval; then
10443       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10444 echo "$as_me: WARNING: $withval is not found." >&2;}
10445     fi
10446     tcl_include_dir="-I$withval"
10447
10448 fi;
10449
10450 # Check whether --with-tcl-libs or --without-tcl-libs was given.
10451 if test "${with_tcl_libs+set}" = set; then
10452   withval="$with_tcl_libs"
10453    if test ! -d $withval; then
10454       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10455 echo "$as_me: WARNING: $withval is not found." >&2;}
10456     fi
10457     tcl_libdir="-L$withval"
10458 fi;
10459
10460 # Check whether --with-tk-includes or --without-tk-includes was given.
10461 if test "${with_tk_includes+set}" = set; then
10462   withval="$with_tk_includes"
10463    if test ! -d $withval; then
10464       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10465 echo "$as_me: WARNING: $withval is not found." >&2;}
10466     fi
10467     tk_includes="-I$withval"
10468 fi;
10469
10470 # Check whether --with-tk-libs or --without-tk-libs was given.
10471 if test "${with_tk_libs+set}" = set; then
10472   withval="$with_tk_libs"
10473    if test ! -d $withval; then
10474       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10475 echo "$as_me: WARNING: $withval is not found." >&2;}
10476     fi
10477     tk_libdir="-L$withval"
10478 fi;
10479
10480
10481 # Check whether --with-offix-includes or --without-offix-includes was given.
10482 if test "${with_offix_includes+set}" = set; then
10483   withval="$with_offix_includes"
10484    if test ! -d $withval; then
10485       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10486 echo "$as_me: WARNING: $withval is not found." >&2;}
10487     fi
10488     offix_include_dir="-I$withval"
10489 fi;
10490
10491 # Check whether --with-offix-libs or --without-offix-libs was given.
10492 if test "${with_offix_libs+set}" = set; then
10493   withval="$with_offix_libs"
10494    if test ! -d $withval; then
10495       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
10496 echo "$as_me: WARNING: $withval is not found." >&2;}
10497     fi
10498     offix_lib_dir="-L$withval"
10499 fi;
10500
10501
10502 #
10503 # audio section
10504 #
10505
10506 audio_targets='default oss alsa sun hpux irix mme sb_dsp w32 alib nas arts esd vorbis gogo portaudio jack'
10507
10508
10509 # Check whether --with-nas-library or --without-nas-library was given.
10510 if test "${with_nas_library+set}" = set; then
10511   withval="$with_nas_library"
10512
10513 fi;
10514
10515 # Check whether --with-nas-includes or --without-nas-includes was given.
10516 if test "${with_nas_includes+set}" = set; then
10517   withval="$with_nas_includes"
10518
10519 fi;
10520
10521
10522 # Check whether --enable-audio or --disable-audio was given.
10523 if test "${enable_audio+set}" = set; then
10524   enableval="$enable_audio"
10525    enable_audio=$enableval
10526     have_audio_opt=yes
10527 else
10528    enable_audio=yes
10529     have_audio_opt=no
10530 fi;
10531
10532 test "x$enable_audio" = xyes && enable_audio=default
10533
10534 if test "x$enable_audio" != xno; then
10535   for i in `echo $enable_audio | sed 's/,/ /g'`; do
10536     eval "au_enable_$i=yes"
10537   done
10538 fi
10539
10540 DEFAULT_PLAYMODE=
10541
10542 # Check whether --with-default-output or --without-default-output was given.
10543 if test "${with_default_output+set}" = set; then
10544   withval="$with_default_output"
10545    if test "$enable_audio" != no; then
10546     DEFAULT_PLAYMODE=$withval
10547     eval "au_enable_$DEFAULT_PLAYMODE=yes"
10548   else
10549     { echo "$as_me:$LINENO: WARNING: --with-default-output=$withval: audio is not enabled" >&5
10550 echo "$as_me: WARNING: --with-default-output=$withval: audio is not enabled" >&2;}
10551   fi
10552 fi;
10553
10554
10555 if test "x$au_enable_default" = xyes; then
10556   case "$target" in
10557   *-*-linux*|*-*-freebsd*)
10558     au_enable_oss=yes
10559     ;;
10560   *-*-bsdi2.0)
10561     au_enable_sb_dsp=yes
10562     ;;
10563   *-*-bsdi2.1|*-*-bsdi3.?|*-*-bsdi4.?)
10564     au_enable_oss=yes
10565     ;;
10566   *-*-hpux*)
10567     au_enable_hpux=yes
10568     ;;
10569   *-dec-*)
10570     au_enable_mme=yes
10571     ;;
10572   *irix*)
10573     au_enable_irix=yes
10574     ;;
10575   *-*-sunos4*)
10576     au_enable_sun=yes
10577     ;;
10578   *-*-solaris*)
10579     au_enable_sun=yes
10580     ;;
10581   *-*-netbsd*)
10582     au_enable_sun=yes
10583     ;;
10584   *-*-cygwin*)
10585     au_enable_w32=yes
10586     ;;
10587   *-*-mingw*)
10588     au_enable_w32=yes
10589     ;;
10590   *-*-darwin*)
10591     au_enable_darwin=yes
10592     ;;
10593   *)
10594     { echo "$as_me:$LINENO: WARNING: No --enable-audio=default audio for $target" >&5
10595 echo "$as_me: WARNING: No --enable-audio=default audio for $target" >&2;}
10596     ;;
10597   esac
10598 fi
10599
10600
10601 # Each audio mode's configurations
10602 echo "$as_me:$LINENO: checking enable_audio=oss" >&5
10603 echo $ECHO_N "checking enable_audio=oss... $ECHO_C" >&6
10604 if test "x$au_enable_oss" = xyes; then
10605   EXTRADEFS="$EXTRADEFS -DAU_OSS"
10606   SYSEXTRAS="$SYSEXTRAS oss_a.c"
10607   if test "x$ac_cv_header_sys_soundcard_h" = xyes; then
10608     echo "$as_me:$LINENO: result: yes - <sys/soundcard.h>" >&5
10609 echo "${ECHO_T}yes - <sys/soundcard.h>" >&6
10610   else
10611     case "$target" in
10612       *linux*|*freebsd*)
10613                 echo "$as_me:$LINENO: result: yes" >&5
10614 echo "${ECHO_T}yes" >&6
10615         ;;
10616       *)
10617         if test "x$ac_cv_header_soundcard_h" = xyes; then
10618           echo "$as_me:$LINENO: result: yes - <soundcard.h>" >&5
10619 echo "${ECHO_T}yes - <soundcard.h>" >&6
10620         else
10621           { echo "$as_me:$LINENO: WARNING: <sys/soundcard.h> is not found" >&5
10622 echo "$as_me: WARNING: <sys/soundcard.h> is not found" >&2;}
10623         fi
10624         ;;
10625     esac
10626   fi
10627
10628 echo "$as_me:$LINENO: checking for open in -lossaudio" >&5
10629 echo $ECHO_N "checking for open in -lossaudio... $ECHO_C" >&6
10630 if test "${ac_cv_lib_ossaudio_open+set}" = set; then
10631   echo $ECHO_N "(cached) $ECHO_C" >&6
10632 else
10633   ac_check_lib_save_LIBS=$LIBS
10634 LIBS="-lossaudio  $LIBS"
10635 cat >conftest.$ac_ext <<_ACEOF
10636 #line $LINENO "configure"
10637 /* confdefs.h.  */
10638 _ACEOF
10639 cat confdefs.h >>conftest.$ac_ext
10640 cat >>conftest.$ac_ext <<_ACEOF
10641 /* end confdefs.h.  */
10642
10643 /* Override any gcc2 internal prototype to avoid an error.  */
10644 #ifdef __cplusplus
10645 extern "C"
10646 #endif
10647 /* We use char because int might match the return type of a gcc2
10648    builtin and then its argument prototype would still apply.  */
10649 char open ();
10650 int
10651 main ()
10652 {
10653 open ();
10654   ;
10655   return 0;
10656 }
10657 _ACEOF
10658 rm -f conftest.$ac_objext conftest$ac_exeext
10659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10660   (eval $ac_link) 2>&5
10661   ac_status=$?
10662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663   (exit $ac_status); } &&
10664          { ac_try='test -s conftest$ac_exeext'
10665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666   (eval $ac_try) 2>&5
10667   ac_status=$?
10668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669   (exit $ac_status); }; }; then
10670   ac_cv_lib_ossaudio_open=yes
10671 else
10672   echo "$as_me: failed program was:" >&5
10673 sed 's/^/| /' conftest.$ac_ext >&5
10674
10675 ac_cv_lib_ossaudio_open=no
10676 fi
10677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10678 LIBS=$ac_check_lib_save_LIBS
10679 fi
10680 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_open" >&5
10681 echo "${ECHO_T}$ac_cv_lib_ossaudio_open" >&6
10682 if test $ac_cv_lib_ossaudio_open = yes; then
10683   cat >>confdefs.h <<_ACEOF
10684 #define HAVE_LIBOSSAUDIO 1
10685 _ACEOF
10686
10687   LIBS="-lossaudio $LIBS"
10688
10689 fi
10690
10691
10692     case "$target" in
10693     *openbsd*)
10694       if test ! -e "/dev/dsp"; then
10695         oss_device=/dev/audio
10696       fi
10697       ;;
10698   esac
10699 else
10700   echo "$as_me:$LINENO: result: no" >&5
10701 echo "${ECHO_T}no" >&6
10702 fi
10703
10704 echo "$as_me:$LINENO: checking enable_audio=sun" >&5
10705 echo $ECHO_N "checking enable_audio=sun... $ECHO_C" >&6
10706 if test "x$au_enable_sun" = xyes; then
10707   case "$target" in
10708     *-*-sunos4*)
10709       if test -f /usr/demo/SOUND/libaudio.a; then
10710         EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/libaudio.a"
10711         echo "$as_me:$LINENO: result: yes" >&5
10712 echo "${ECHO_T}yes" >&6
10713       else
10714         echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
10715 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
10716       fi
10717       ;;
10718     *-*-solaris*)
10719       if test -f /usr/demo/SOUND/lib/libaudio.a; then
10720         EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/lib/libaudio.a"
10721         echo "$as_me:$LINENO: result: yes" >&5
10722 echo "${ECHO_T}yes" >&6
10723       else
10724         echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
10725 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
10726       fi
10727       ;;
10728     *)   echo "$as_me:$LINENO: result: yes" >&5
10729 echo "${ECHO_T}yes" >&6
10730       ;;
10731   esac
10732   EXTRADEFS="$EXTRADEFS -DAU_SUN"
10733   SYSEXTRAS="$SYSEXTRAS sun_a.c"
10734 else
10735   echo "$as_me:$LINENO: result: no" >&5
10736 echo "${ECHO_T}no" >&6
10737 fi
10738
10739 echo "$as_me:$LINENO: checking enable_audio=hpux" >&5
10740 echo $ECHO_N "checking enable_audio=hpux... $ECHO_C" >&6
10741 if test "x$au_enable_hpux" = xyes; then
10742   case "$target" in
10743     *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
10744 echo "${ECHO_T}yes" >&6 ;;
10745     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10746 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
10747   esac
10748   EXTRADEFS="$EXTRADEFS -DAU_HPUX_AUDIO"
10749   SYSEXTRAS="$SYSEXTRAS hpux_d_a.c"
10750 else
10751   echo "$as_me:$LINENO: result: no" >&5
10752 echo "${ECHO_T}no" >&6
10753 fi
10754
10755 echo "$as_me:$LINENO: checking enable_audio=irix" >&5
10756 echo $ECHO_N "checking enable_audio=irix... $ECHO_C" >&6
10757 if test "x$au_enable_irix" = xyes; then
10758   case "$target" in
10759     *-sgi-irix5*|*-sgi-irix6.2)
10760       EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_OLDAL"
10761       echo "$as_me:$LINENO: result: yes" >&5
10762 echo "${ECHO_T}yes" >&6
10763       ;;
10764     *-sgi-irix6*)
10765       EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_NEWAL"
10766       echo "$as_me:$LINENO: result: yes" >&5
10767 echo "${ECHO_T}yes" >&6
10768       ;;
10769     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10770 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
10771   esac
10772   SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_al.c"
10773   EXTRALIBS="$EXTRASLIBS -laudio"
10774 else
10775   echo "$as_me:$LINENO: result: no" >&5
10776 echo "${ECHO_T}no" >&6
10777 fi
10778
10779 echo "$as_me:$LINENO: checking enable_audio=mme" >&5
10780 echo $ECHO_N "checking enable_audio=mme... $ECHO_C" >&6
10781 if test "x$au_enable_mme" = xyes; then
10782   case "$target" in
10783     *-dec-*) echo "$as_me:$LINENO: result: yes" >&5
10784 echo "${ECHO_T}yes" >&6 ;;
10785     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10786 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
10787   esac
10788   EXTRADEFS="$EXTRADEFS -DAU_DEC -DAU_AUDRIV"
10789   SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_mme.c"
10790   CPPFLAGS="$CPPFLAGS -I/usr/opt/MME210/include"
10791   EXTRALIBS="$EXTRALIBS /usr/opt/MME220/lib/libmme.a"
10792 else
10793   echo "$as_me:$LINENO: result: no" >&5
10794 echo "${ECHO_T}no" >&6
10795 fi
10796
10797 echo "$as_me:$LINENO: checking enable_audio=sb_dsp" >&5
10798 echo $ECHO_N "checking enable_audio=sb_dsp... $ECHO_C" >&6
10799 if test "x$au_enable_sb_dsp" = xyes; then
10800   case "$target" in
10801     *-*-bsdi2.0) echo "$as_me:$LINENO: result: yes" >&5
10802 echo "${ECHO_T}yes" >&6 ;;
10803     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10804 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
10805   esac
10806   EXTRADEFS="$EXTRADEFS -DAU_BSDI -DDEFAULT_RATE=22500"
10807   SYSEXTRAS="$SYSEXTRAS bsd20_a.c"
10808 else
10809   echo "$as_me:$LINENO: result: no" >&5
10810 echo "${ECHO_T}no" >&6
10811 fi
10812
10813 echo "$as_me:$LINENO: checking enable_audio=w32" >&5
10814 echo $ECHO_N "checking enable_audio=w32... $ECHO_C" >&6
10815 if test "x$au_enable_w32" = xyes; then
10816   case "$target" in
10817     *-*-cygwin*)
10818      echo "$as_me:$LINENO: result: yes" >&5
10819 echo "${ECHO_T}yes" >&6
10820      ;;
10821     *-*-mingw32)
10822      echo "$as_me:$LINENO: result: yes" >&5
10823 echo "${ECHO_T}yes" >&6
10824      ;;
10825     *)
10826      { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10827 echo "$as_me: WARNING: may not work on $target" >&2;}
10828      ;;
10829   esac
10830   SYSEXTRAS="$SYSEXTRAS w32_a.c"
10831   EXTRALIBS="$EXTRALIBS -lwinmm"
10832   EXTRADEFS="$EXTRADEFS -DAU_W32"
10833 else
10834   echo "$as_me:$LINENO: result: no" >&5
10835 echo "${ECHO_T}no" >&6
10836 fi
10837
10838 echo "$as_me:$LINENO: checking enable_audio=darwin" >&5
10839 echo $ECHO_N "checking enable_audio=darwin... $ECHO_C" >&6
10840 if test "x$au_enable_darwin" = xyes; then
10841   EXTRADEFS="$EXTRADEFS -DAU_DARWIN"
10842   SYSEXTRAS="$SYSEXTRAS darwin_a.c"
10843   EXTRALIBS="$EXTRALIBS -framework CoreAudio"
10844     case "$target" in
10845     *-*-darwin*)
10846      echo "$as_me:$LINENO: result: yes" >&5
10847 echo "${ECHO_T}yes" >&6;;
10848    *)
10849      { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
10850 echo "$as_me: WARNING: may not work on $target" >&2;}
10851      ;;
10852   esac
10853 else
10854   echo "$as_me:$LINENO: result: no" >&5
10855 echo "${ECHO_T}no" >&6
10856 fi
10857
10858
10859 echo "$as_me:$LINENO: checking enable_audio=alsa" >&5
10860 echo $ECHO_N "checking enable_audio=alsa... $ECHO_C" >&6
10861 if test "x$au_enable_alsa" = xyes; then
10862   echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
10863 echo "${ECHO_T}yes, configuring alsa" >&6
10864   KEEPCFLAGS=$CFLAGS
10865   KEEPLIBS=$LIBS
10866   KEEPLDFLAGS=$LDFLAGS
10867   alsa_save_CFLAGS="$CFLAGS"
10868 alsa_save_LDFLAGS="$LDFLAGS"
10869 alsa_save_LIBS="$LIBS"
10870 alsa_found=yes
10871
10872
10873 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
10874 if test "${with_alsa_prefix+set}" = set; then
10875   withval="$with_alsa_prefix"
10876   alsa_prefix="$withval"
10877 else
10878   alsa_prefix=""
10879 fi;
10880
10881
10882 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
10883 if test "${with_alsa_inc_prefix+set}" = set; then
10884   withval="$with_alsa_inc_prefix"
10885   alsa_inc_prefix="$withval"
10886 else
10887   alsa_inc_prefix=""
10888 fi;
10889
10890 # Check whether --enable-alsatest or --disable-alsatest was given.
10891 if test "${enable_alsatest+set}" = set; then
10892   enableval="$enable_alsatest"
10893   enable_alsatest=no
10894 else
10895   enable_alsatest=yes
10896 fi;
10897
10898 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
10899 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
10900 if test "$alsa_inc_prefix" != "" ; then
10901         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
10902         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
10903 fi
10904 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
10905 echo "${ECHO_T}$ALSA_CFLAGS" >&6
10906
10907 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
10908 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
10909 if test "$alsa_prefix" != "" ; then
10910         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
10911         LDFLAGS="$LDFLAGS $ALSA_LIBS"
10912 fi
10913
10914 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
10915 LIBS=`echo $LIBS | sed 's/-lm//'`
10916 LIBS=`echo $LIBS | sed 's/-ldl//'`
10917 LIBS=`echo $LIBS | sed 's/-lpthread//'`
10918 LIBS=`echo $LIBS | sed 's/  //'`
10919 LIBS="$ALSA_LIBS $LIBS"
10920 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
10921 echo "${ECHO_T}$ALSA_LIBS" >&6
10922
10923 min_alsa_version=0.1.1
10924 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
10925 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
10926 no_alsa=""
10927     alsa_min_major_version=`echo $min_alsa_version | \
10928            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10929     alsa_min_minor_version=`echo $min_alsa_version | \
10930            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10931     alsa_min_micro_version=`echo $min_alsa_version | \
10932            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10933
10934
10935
10936
10937 ac_ext=c
10938 ac_cpp='$CPP $CPPFLAGS'
10939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10942
10943 cat >conftest.$ac_ext <<_ACEOF
10944 #line $LINENO "configure"
10945 /* confdefs.h.  */
10946 _ACEOF
10947 cat confdefs.h >>conftest.$ac_ext
10948 cat >>conftest.$ac_ext <<_ACEOF
10949 /* end confdefs.h.  */
10950
10951 #include <alsa/asoundlib.h>
10952
10953 int
10954 main ()
10955 {
10956
10957 /* ensure backward compatibility */
10958 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
10959 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
10960 #endif
10961 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
10962 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
10963 #endif
10964 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
10965 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
10966 #endif
10967
10968 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
10969   exit(0);
10970 #  else
10971 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
10972 #       error not present
10973 #    endif
10974
10975 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
10976   exit(0);
10977 #   else
10978 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
10979 #          error not present
10980 #      endif
10981
10982 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
10983 #        error not present
10984 #      endif
10985 #    endif
10986 #  endif
10987 exit(0);
10988
10989   ;
10990   return 0;
10991 }
10992 _ACEOF
10993 rm -f conftest.$ac_objext
10994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10995   (eval $ac_compile) 2>&5
10996   ac_status=$?
10997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998   (exit $ac_status); } &&
10999          { ac_try='test -s conftest.$ac_objext'
11000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11001   (eval $ac_try) 2>&5
11002   ac_status=$?
11003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004   (exit $ac_status); }; }; then
11005   echo "$as_me:$LINENO: result: found." >&5
11006 echo "${ECHO_T}found." >&6
11007 else
11008   echo "$as_me: failed program was:" >&5
11009 sed 's/^/| /' conftest.$ac_ext >&5
11010
11011 cat >conftest.$ac_ext <<_ACEOF
11012 #line $LINENO "configure"
11013 /* confdefs.h.  */
11014 _ACEOF
11015 cat confdefs.h >>conftest.$ac_ext
11016 cat >>conftest.$ac_ext <<_ACEOF
11017 /* end confdefs.h.  */
11018
11019 #include <sys/asoundlib.h>
11020
11021 int
11022 main ()
11023 {
11024
11025 /* ensure backward compatibility */
11026 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
11027 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
11028 #endif
11029 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
11030 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
11031 #endif
11032 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
11033 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
11034 #endif
11035
11036 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
11037   exit(0);
11038 #  else
11039 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
11040 #       error not present
11041 #    endif
11042
11043 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
11044   exit(0);
11045 #   else
11046 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
11047 #          error not present
11048 #      endif
11049
11050 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
11051 #        error not present
11052 #      endif
11053 #    endif
11054 #  endif
11055 exit(0);
11056
11057   ;
11058   return 0;
11059 }
11060 _ACEOF
11061 rm -f conftest.$ac_objext
11062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11063   (eval $ac_compile) 2>&5
11064   ac_status=$?
11065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066   (exit $ac_status); } &&
11067          { ac_try='test -s conftest.$ac_objext'
11068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11069   (eval $ac_try) 2>&5
11070   ac_status=$?
11071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072   (exit $ac_status); }; }; then
11073   echo "$as_me:$LINENO: result: found." >&5
11074 echo "${ECHO_T}found." >&6
11075 else
11076   echo "$as_me: failed program was:" >&5
11077 sed 's/^/| /' conftest.$ac_ext >&5
11078
11079 echo "$as_me:$LINENO: result: not present." >&5
11080 echo "${ECHO_T}not present." >&6
11081    echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
11082 echo "${ECHO_T}libasound was not found anywhere." >&6
11083    alsa_found=no
11084 fi
11085 rm -f conftest.$ac_objext conftest.$ac_ext
11086    echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
11087 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
11088
11089 fi
11090 rm -f conftest.$ac_objext conftest.$ac_ext
11091 ac_ext=c
11092 ac_cpp='$CPP $CPPFLAGS'
11093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11096
11097
11098
11099 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
11100 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
11101 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
11102   echo $ECHO_N "(cached) $ECHO_C" >&6
11103 else
11104   ac_check_lib_save_LIBS=$LIBS
11105 LIBS="-lasound  $LIBS"
11106 cat >conftest.$ac_ext <<_ACEOF
11107 #line $LINENO "configure"
11108 /* confdefs.h.  */
11109 _ACEOF
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h.  */
11113
11114 /* Override any gcc2 internal prototype to avoid an error.  */
11115 #ifdef __cplusplus
11116 extern "C"
11117 #endif
11118 /* We use char because int might match the return type of a gcc2
11119    builtin and then its argument prototype would still apply.  */
11120 char snd_ctl_open ();
11121 int
11122 main ()
11123 {
11124 snd_ctl_open ();
11125   ;
11126   return 0;
11127 }
11128 _ACEOF
11129 rm -f conftest.$ac_objext conftest$ac_exeext
11130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11131   (eval $ac_link) 2>&5
11132   ac_status=$?
11133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134   (exit $ac_status); } &&
11135          { ac_try='test -s conftest$ac_exeext'
11136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11137   (eval $ac_try) 2>&5
11138   ac_status=$?
11139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140   (exit $ac_status); }; }; then
11141   ac_cv_lib_asound_snd_ctl_open=yes
11142 else
11143   echo "$as_me: failed program was:" >&5
11144 sed 's/^/| /' conftest.$ac_ext >&5
11145
11146 ac_cv_lib_asound_snd_ctl_open=no
11147 fi
11148 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11149 LIBS=$ac_check_lib_save_LIBS
11150 fi
11151 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
11152 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
11153 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
11154   cat >>confdefs.h <<_ACEOF
11155 #define HAVE_LIBASOUND 1
11156 _ACEOF
11157
11158   LIBS="-lasound $LIBS"
11159
11160 else
11161   echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
11162 echo "${ECHO_T}No linkable libasound was found." >&6
11163    alsa_found=no
11164
11165 fi
11166
11167
11168 if test "x$alsa_found" = "xyes" ; then
11169    :
11170    LIBS=`echo $LIBS | sed 's/-lasound//g'`
11171    LIBS=`echo $LIBS | sed 's/  //'`
11172    LIBS="-lasound $LIBS"
11173 else
11174    :
11175    CFLAGS="$alsa_save_CFLAGS"
11176    LDFLAGS="$alsa_save_LDFLAGS"
11177    LIBS="$alsa_save_LIBS"
11178    ALSA_CFLAGS=""
11179    ALSA_LIBS=""
11180 fi
11181
11182
11183
11184
11185   if test "x$alsa_found" = "xyes" ; then
11186         EXTRADEFS="$EXTRADEFS -DAU_ALSA"
11187     SYSEXTRAS="$SYSEXTRAS alsa_a.c"
11188     for f in $ALSA_CFLAGS; do
11189     case ".$f" in
11190         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
11191         *)              CFLAGS="$CPPFLAGS $f" ;;
11192     esac
11193 done
11194
11195     LIBS="$KEEPLIBS $ALSA_LIBS"
11196
11197 for ac_func in snd_seq_port_info_set_timestamping
11198 do
11199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11200 echo "$as_me:$LINENO: checking for $ac_func" >&5
11201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11202 if eval "test \"\${$as_ac_var+set}\" = set"; then
11203   echo $ECHO_N "(cached) $ECHO_C" >&6
11204 else
11205   cat >conftest.$ac_ext <<_ACEOF
11206 #line $LINENO "configure"
11207 /* confdefs.h.  */
11208 _ACEOF
11209 cat confdefs.h >>conftest.$ac_ext
11210 cat >>conftest.$ac_ext <<_ACEOF
11211 /* end confdefs.h.  */
11212 /* System header to define __stub macros and hopefully few prototypes,
11213     which can conflict with char $ac_func (); below.
11214     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11215     <limits.h> exists even on freestanding compilers.  */
11216 #ifdef __STDC__
11217 # include <limits.h>
11218 #else
11219 # include <assert.h>
11220 #endif
11221 /* Override any gcc2 internal prototype to avoid an error.  */
11222 #ifdef __cplusplus
11223 extern "C"
11224 {
11225 #endif
11226 /* We use char because int might match the return type of a gcc2
11227    builtin and then its argument prototype would still apply.  */
11228 char $ac_func ();
11229 /* The GNU C library defines this for functions which it implements
11230     to always fail with ENOSYS.  Some functions are actually named
11231     something starting with __ and the normal name is an alias.  */
11232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11233 choke me
11234 #else
11235 char (*f) () = $ac_func;
11236 #endif
11237 #ifdef __cplusplus
11238 }
11239 #endif
11240
11241 int
11242 main ()
11243 {
11244 return f != $ac_func;
11245   ;
11246   return 0;
11247 }
11248 _ACEOF
11249 rm -f conftest.$ac_objext conftest$ac_exeext
11250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11251   (eval $ac_link) 2>&5
11252   ac_status=$?
11253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254   (exit $ac_status); } &&
11255          { ac_try='test -s conftest$ac_exeext'
11256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11257   (eval $ac_try) 2>&5
11258   ac_status=$?
11259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260   (exit $ac_status); }; }; then
11261   eval "$as_ac_var=yes"
11262 else
11263   echo "$as_me: failed program was:" >&5
11264 sed 's/^/| /' conftest.$ac_ext >&5
11265
11266 eval "$as_ac_var=no"
11267 fi
11268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11269 fi
11270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11271 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11272 if test `eval echo '${'$as_ac_var'}'` = yes; then
11273   cat >>confdefs.h <<_ACEOF
11274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11275 _ACEOF
11276
11277 fi
11278 done
11279
11280   else
11281     { echo "$as_me:$LINENO: WARNING: Couldn't configure alsa." >&5
11282 echo "$as_me: WARNING: Couldn't configure alsa." >&2;}
11283     CFLAGS=$KEEPCFLAGS
11284     LIBS=$KEEPLIBS
11285     LDFLAGS=$KEEPLDFLAGS
11286   fi
11287 else
11288   echo "$as_me:$LINENO: result: no" >&5
11289 echo "${ECHO_T}no" >&6
11290 fi
11291
11292 echo "$as_me:$LINENO: checking enable_audio=alib" >&5
11293 echo $ECHO_N "checking enable_audio=alib... $ECHO_C" >&6
11294 if test "x$au_enable_alib" = xyes; then
11295   case "$target" in
11296     *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
11297 echo "${ECHO_T}yes" >&6 ;;
11298     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11299 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11300   esac
11301   SYSEXTRAS="$SYSEXTRAS hpux_a.c"
11302   EXTRADEFS="$EXTRADEFS -DAU_HPUX_ALIB"
11303   if test -d /opt/audio/include; then
11304     CPPFLAGS="$CPPFLAGS -I/opt/audio/include"
11305   fi
11306   if test -d /opt/audio/lib; then
11307     EXTRALIBS="$EXTRALIBS -L/opt/audio/lib"
11308   fi
11309   EXTRALIBS="$EXTRALIBS -lAlib"
11310 else
11311   echo "$as_me:$LINENO: result: no" >&5
11312 echo "${ECHO_T}no" >&6
11313 fi
11314
11315 echo "$as_me:$LINENO: checking enable_audio=nas" >&5
11316 echo $ECHO_N "checking enable_audio=nas... $ECHO_C" >&6
11317 if test "x$au_enable_nas" = xyes; then
11318   if test "x$with_x" != xyes; then
11319     { { echo "$as_me:$LINENO: error: nas: --with-x option must be specified" >&5
11320 echo "$as_me: error: nas: --with-x option must be specified" >&2;}
11321    { (exit 1); exit 1; }; }
11322   fi
11323   EXTRADEFS="$EXTRADEFS -DAU_NAS"
11324   SYSEXTRAS="$SYSEXTRAS nas_a.c"
11325
11326
11327   if test "x$with_nas_library" != x; then
11328     echo "$as_me:$LINENO: result: $with_nas_library" >&5
11329 echo "${ECHO_T}$with_nas_library" >&6;
11330     EXTRALIBS="$EXTRALIBS $with_nas_library"
11331   else
11332     echo "$as_me:$LINENO: result: " >&5
11333 echo "${ECHO_T}" >&6
11334     echo "$as_me:$LINENO: checking for library containing AuOpenServer" >&5
11335 echo $ECHO_N "checking for library containing AuOpenServer... $ECHO_C" >&6
11336 if test "${timidity_cv_search_AuOpenServer+set}" = set; then
11337   echo $ECHO_N "(cached) $ECHO_C" >&6
11338 else
11339   ac_func_search_save_LIBS="$LIBS"
11340 timidity_cv_search_AuOpenServer="no"
11341 for i in $x_libraries/libaudio.a \
11342          /usr/lib/libaudio.so \
11343          /usr/lib/libaudio.a ; do
11344   LIBS="$i  $ac_func_search_save_LIBS"
11345   cat >conftest.$ac_ext <<_ACEOF
11346 #line $LINENO "configure"
11347 /* confdefs.h.  */
11348 _ACEOF
11349 cat confdefs.h >>conftest.$ac_ext
11350 cat >>conftest.$ac_ext <<_ACEOF
11351 /* end confdefs.h.  */
11352
11353 /* Override any gcc2 internal prototype to avoid an error.  */
11354 #ifdef __cplusplus
11355 extern "C"
11356 #endif
11357 /* We use char because int might match the return type of a gcc2
11358    builtin and then its argument prototype would still apply.  */
11359 char AuOpenServer ();
11360 int
11361 main ()
11362 {
11363 AuOpenServer ();
11364   ;
11365   return 0;
11366 }
11367 _ACEOF
11368 rm -f conftest.$ac_objext conftest$ac_exeext
11369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11370   (eval $ac_link) 2>&5
11371   ac_status=$?
11372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373   (exit $ac_status); } &&
11374          { ac_try='test -s conftest$ac_exeext'
11375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11376   (eval $ac_try) 2>&5
11377   ac_status=$?
11378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379   (exit $ac_status); }; }; then
11380   timidity_cv_search_AuOpenServer="$i"; break
11381 else
11382   echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.$ac_ext >&5
11384
11385 fi
11386 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11387 done
11388 LIBS="$ac_func_search_save_LIBS"
11389 fi
11390 echo "$as_me:$LINENO: result: $timidity_cv_search_AuOpenServer" >&5
11391 echo "${ECHO_T}$timidity_cv_search_AuOpenServer" >&6
11392 if test "$timidity_cv_search_AuOpenServer" != "no"; then
11393    echo "$as_me:$LINENO: result: NAS: $timidity_cv_search_AuOpenServer" >&5
11394 echo "${ECHO_T}NAS: $timidity_cv_search_AuOpenServer" >&6
11395           EXTRALIBS="$EXTRALIBS $timidity_cv_search_AuOpenServer"
11396 else :
11397   { echo "$as_me:$LINENO: WARNING: NAS library is not found." >&5
11398 echo "$as_me: WARNING: NAS library is not found." >&2;}
11399 fi
11400   fi
11401   test "x$with_nas_includes" != x && CPPFLAGS="$CPPFLAGS -I$with_nas_includes"
11402   lib_xt_opt=-lXt
11403   if test "x$have_xext" = xyes; then
11404     lib_xext_opt=-lXext
11405   fi
11406   if test "x$have_xprelibs" = xyes; then
11407     lib_xprelibs_opt='-lSM -lICE'
11408   fi
11409 else
11410   echo "$as_me:$LINENO: result: no" >&5
11411 echo "${ECHO_T}no" >&6
11412 fi
11413
11414 echo "$as_me:$LINENO: checking enable_audio=arts" >&5
11415 echo $ECHO_N "checking enable_audio=arts... $ECHO_C" >&6
11416 if test "x$au_enable_arts" = xyes; then
11417   echo "$as_me:$LINENO: result: yes, configuring aRts" >&5
11418 echo "${ECHO_T}yes, configuring aRts" >&6
11419   KEEPCFLAGS=$CFLAGS
11420   KEEPLIBS=$LIBS
11421   KEEPLDFLAGS=$LDFLAGS
11422
11423 # Check whether --with-arts-prefix or --without-arts-prefix was given.
11424 if test "${with_arts_prefix+set}" = set; then
11425   withval="$with_arts_prefix"
11426   arts_prefix="$withval"
11427 else
11428   arts_prefix=""
11429 fi;
11430 # Check whether --enable-artstest or --disable-artstest was given.
11431 if test "${enable_artstest+set}" = set; then
11432   enableval="$enable_artstest"
11433
11434 else
11435   enable_artstest=yes
11436 fi;
11437
11438   if test x$arts_prefix != x ; then
11439      arts_args="$arts_args --prefix=$arts_prefix"
11440      if test x${ARTS_CONFIG+set} != xset ; then
11441         ARTS_CONFIG=$arts_prefix/bin/artsc-config
11442      fi
11443   fi
11444
11445   # Extract the first word of "artsc-config", so it can be a program name with args.
11446 set dummy artsc-config; ac_word=$2
11447 echo "$as_me:$LINENO: checking for $ac_word" >&5
11448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11449 if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
11450   echo $ECHO_N "(cached) $ECHO_C" >&6
11451 else
11452   case $ARTS_CONFIG in
11453   [\\/]* | ?:[\\/]*)
11454   ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
11455   ;;
11456   *)
11457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11458 for as_dir in $PATH
11459 do
11460   IFS=$as_save_IFS
11461   test -z "$as_dir" && as_dir=.
11462   for ac_exec_ext in '' $ac_executable_extensions; do
11463   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11464     ac_cv_path_ARTS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11466     break 2
11467   fi
11468 done
11469 done
11470
11471   test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
11472   ;;
11473 esac
11474 fi
11475 ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
11476
11477 if test -n "$ARTS_CONFIG"; then
11478   echo "$as_me:$LINENO: result: $ARTS_CONFIG" >&5
11479 echo "${ECHO_T}$ARTS_CONFIG" >&6
11480 else
11481   echo "$as_me:$LINENO: result: no" >&5
11482 echo "${ECHO_T}no" >&6
11483 fi
11484
11485   min_arts_version=0.9.5
11486   echo "$as_me:$LINENO: checking for ARTS - version >= $min_arts_version" >&5
11487 echo $ECHO_N "checking for ARTS - version >= $min_arts_version... $ECHO_C" >&6
11488   no_arts=""
11489   if test "$ARTS_CONFIG" = "no" ; then
11490     no_arts=yes
11491   else
11492     ARTS_CFLAGS=`$ARTS_CONFIG $artsconf_args --cflags`
11493     ARTS_LIBS=`$ARTS_CONFIG $artsconf_args --libs`
11494
11495     arts_major_version=`$ARTS_CONFIG $arts_args --version | \
11496            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11497     arts_minor_version=`$ARTS_CONFIG $arts_args --version | \
11498            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11499     arts_micro_version=`$ARTS_CONFIG $arts_config_args --version | \
11500            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11501     if test "x$enable_artstest" = "xyes" ; then
11502       ac_save_CFLAGS="$CFLAGS"
11503       ac_save_LIBS="$LIBS"
11504       CFLAGS="$CFLAGS $ARTS_CFLAGS"
11505       LIBS="$LIBS $ARTS_LIBS"
11506       rm -f conf.artstest
11507       if test "$cross_compiling" = yes; then
11508   echo $ac_n "cross compiling; assumed OK... $ac_c"
11509 else
11510   cat >conftest.$ac_ext <<_ACEOF
11511 #line $LINENO "configure"
11512 /* confdefs.h.  */
11513 _ACEOF
11514 cat confdefs.h >>conftest.$ac_ext
11515 cat >>conftest.$ac_ext <<_ACEOF
11516 /* end confdefs.h.  */
11517
11518 #include <stdio.h>
11519 #include <stdlib.h>
11520 #include <string.h>
11521 #include <artsc.h>
11522
11523 char*
11524 my_strdup (char *str)
11525 {
11526   char *new_str;
11527
11528   if (str)
11529     {
11530       new_str = malloc ((strlen (str) + 1) * sizeof(char));
11531       strcpy (new_str, str);
11532     }
11533   else
11534     new_str = NULL;
11535
11536   return new_str;
11537 }
11538
11539 int main ()
11540 {
11541   int major, minor, micro;
11542   char *tmp_version;
11543
11544   system ("touch conf.artstest");
11545
11546   /* HP/UX 9 (%@#!) writes to sscanf strings */
11547   tmp_version = my_strdup("$min_arts_version");
11548   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11549      printf("%s, bad version string\n", "$min_arts_version");
11550      exit(1);
11551    }
11552
11553    if (($arts_major_version > major) ||
11554       (($arts_major_version == major) && ($arts_minor_version > minor)) ||
11555       (($arts_major_version == major) && ($arts_minor_version == minor) && ($arts_micro_version >= micro)))
11556     {
11557       return 0;
11558     }
11559   else
11560     {
11561       printf("\n*** 'artsc-config --version' returned %d.%d.%d, but the minimum version\n", $arts_major_version, $arts_minor_version, $arts_micro_version);
11562       printf("*** of ARTS required is %d.%d.%d. If artsc-config is correct, then it is\n", major, minor, micro);
11563       printf("*** best to upgrade to the required version.\n");
11564       printf("*** If artsc-config was wrong, set the environment variable ARTS_CONFIG\n");
11565       printf("*** to point to the correct copy of artsc-config, and remove the file\n");
11566       printf("*** config.cache before re-running configure\n");
11567       return 1;
11568     }
11569 }
11570
11571
11572 _ACEOF
11573 rm -f conftest$ac_exeext
11574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11575   (eval $ac_link) 2>&5
11576   ac_status=$?
11577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11580   (eval $ac_try) 2>&5
11581   ac_status=$?
11582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583   (exit $ac_status); }; }; then
11584   :
11585 else
11586   echo "$as_me: program exited with status $ac_status" >&5
11587 echo "$as_me: failed program was:" >&5
11588 sed 's/^/| /' conftest.$ac_ext >&5
11589
11590 ( exit $ac_status )
11591 no_arts=yes
11592 fi
11593 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11594 fi
11595        CFLAGS="$ac_save_CFLAGS"
11596        LIBS="$ac_save_LIBS"
11597      fi
11598   fi
11599   if test "x$no_arts" = x ; then
11600      echo "$as_me:$LINENO: result: yes" >&5
11601 echo "${ECHO_T}yes" >&6
11602      :
11603   else
11604      echo "$as_me:$LINENO: result: no" >&5
11605 echo "${ECHO_T}no" >&6
11606      if test "$ARTS_CONFIG" = "no" ; then
11607        echo "*** The artsc-config script installed by ARTS could not be found"
11608        echo "*** If ARTS was installed in PREFIX, make sure PREFIX/bin is in"
11609        echo "*** your path, or set the ARTS_CONFIG environment variable to the"
11610        echo "*** full path to artsc-config."
11611      else
11612        if test -f conf.artstest ; then
11613         :
11614        else
11615           echo "*** Could not run ARTS test program, checking why..."
11616           CFLAGS="$CFLAGS $ARTS_CFLAGS"
11617           LIBS="$LIBS $ARTS_LIBS"
11618           cat >conftest.$ac_ext <<_ACEOF
11619 #line $LINENO "configure"
11620 /* confdefs.h.  */
11621 _ACEOF
11622 cat confdefs.h >>conftest.$ac_ext
11623 cat >>conftest.$ac_ext <<_ACEOF
11624 /* end confdefs.h.  */
11625
11626 #include <stdio.h>
11627 #include <artsc.h>
11628
11629 int
11630 main ()
11631 {
11632  return 0;
11633   ;
11634   return 0;
11635 }
11636 _ACEOF
11637 rm -f conftest.$ac_objext conftest$ac_exeext
11638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11639   (eval $ac_link) 2>&5
11640   ac_status=$?
11641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642   (exit $ac_status); } &&
11643          { ac_try='test -s conftest$ac_exeext'
11644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645   (eval $ac_try) 2>&5
11646   ac_status=$?
11647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648   (exit $ac_status); }; }; then
11649    echo "*** The test program compiled, but did not run. This usually means"
11650           echo "*** that the run-time linker is not finding ARTS or finding the wrong"
11651           echo "*** version of ARTS. If it is not finding ARTS, you'll need to set your"
11652           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11653           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
11654           echo "*** is required on your system"
11655           echo "***"
11656           echo "*** If you have an old version installed, it is best to remove it, although"
11657           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11658 else
11659   echo "$as_me: failed program was:" >&5
11660 sed 's/^/| /' conftest.$ac_ext >&5
11661
11662  echo "*** The test program failed to compile or link. See the file config.log for the"
11663           echo "*** exact error that occured. This usually means ARTS was incorrectly installed"
11664           echo "*** or that you have moved ARTS since it was installed. In the latter case, you"
11665           echo "*** may want to edit the arts-config script: $ARTS_CONFIG"
11666 fi
11667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11668           CFLAGS="$ac_save_CFLAGS"
11669           LIBS="$ac_save_LIBS"
11670        fi
11671      fi
11672      ARTS_CFLAGS=""
11673      ARTS_LIBS=""
11674      :
11675   fi
11676
11677
11678   rm -f conf.artstest
11679
11680   CFLAGS=$KEEPCFLAGS
11681   LIBS=$KEEPLIBS
11682   LDFLAGS=$KEEPLDFLAGS
11683   if test "x$no_arts" = x; then
11684         EXTRADEFS="$EXTRADEFS -DAU_ARTS"
11685     SYSEXTRAS="$SYSEXTRAS aRts_a.c"
11686     for f in $ARTS_CFLAGS; do
11687     case ".$f" in
11688         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
11689         *)              CFLAGS="$CPPFLAGS $f" ;;
11690     esac
11691 done
11692
11693     LIBS="$LIBS $ARTS_LIBS"
11694   else
11695     { echo "$as_me:$LINENO: WARNING: aRts: Couldn't configure" >&5
11696 echo "$as_me: WARNING: aRts: Couldn't configure" >&2;}
11697   fi
11698 else
11699   echo "$as_me:$LINENO: result: no" >&5
11700 echo "${ECHO_T}no" >&6
11701 fi
11702
11703 echo "$as_me:$LINENO: checking enable_audio=esd" >&5
11704 echo $ECHO_N "checking enable_audio=esd... $ECHO_C" >&6
11705 if test "x$au_enable_esd" = xyes; then
11706   echo "$as_me:$LINENO: result: yes, configuring esd" >&5
11707 echo "${ECHO_T}yes, configuring esd" >&6
11708   KEEPCFLAGS=$CFLAGS
11709   KEEPLIBS=$LIBS
11710   KEEPLDFLAGS=$LDFLAGS
11711
11712 # Check whether --with-esd-prefix or --without-esd-prefix was given.
11713 if test "${with_esd_prefix+set}" = set; then
11714   withval="$with_esd_prefix"
11715   esd_prefix="$withval"
11716 else
11717   esd_prefix=""
11718 fi;
11719
11720 # Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given.
11721 if test "${with_esd_exec_prefix+set}" = set; then
11722   withval="$with_esd_exec_prefix"
11723   esd_exec_prefix="$withval"
11724 else
11725   esd_exec_prefix=""
11726 fi;
11727 # Check whether --enable-esdtest or --disable-esdtest was given.
11728 if test "${enable_esdtest+set}" = set; then
11729   enableval="$enable_esdtest"
11730
11731 else
11732   enable_esdtest=yes
11733 fi;
11734
11735   if test x$esd_exec_prefix != x ; then
11736      esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
11737      if test x${ESD_CONFIG+set} != xset ; then
11738         ESD_CONFIG=$esd_exec_prefix/bin/esd-config
11739      fi
11740   fi
11741   if test x$esd_prefix != x ; then
11742      esd_args="$esd_args --prefix=$esd_prefix"
11743      if test x${ESD_CONFIG+set} != xset ; then
11744         ESD_CONFIG=$esd_prefix/bin/esd-config
11745      fi
11746   fi
11747
11748   # Extract the first word of "esd-config", so it can be a program name with args.
11749 set dummy esd-config; ac_word=$2
11750 echo "$as_me:$LINENO: checking for $ac_word" >&5
11751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11752 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
11753   echo $ECHO_N "(cached) $ECHO_C" >&6
11754 else
11755   case $ESD_CONFIG in
11756   [\\/]* | ?:[\\/]*)
11757   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
11758   ;;
11759   *)
11760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11761 for as_dir in $PATH
11762 do
11763   IFS=$as_save_IFS
11764   test -z "$as_dir" && as_dir=.
11765   for ac_exec_ext in '' $ac_executable_extensions; do
11766   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11767     ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11769     break 2
11770   fi
11771 done
11772 done
11773
11774   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
11775   ;;
11776 esac
11777 fi
11778 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
11779
11780 if test -n "$ESD_CONFIG"; then
11781   echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
11782 echo "${ECHO_T}$ESD_CONFIG" >&6
11783 else
11784   echo "$as_me:$LINENO: result: no" >&5
11785 echo "${ECHO_T}no" >&6
11786 fi
11787
11788   min_esd_version=0.2.7
11789   echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
11790 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6
11791   no_esd=""
11792   if test "$ESD_CONFIG" = "no" ; then
11793     no_esd=yes
11794   else
11795
11796
11797     ac_ext=c
11798 ac_cpp='$CPP $CPPFLAGS'
11799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11802
11803     ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
11804     ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
11805
11806     esd_major_version=`$ESD_CONFIG $esd_args --version | \
11807            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11808     esd_minor_version=`$ESD_CONFIG $esd_args --version | \
11809            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11810     esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
11811            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11812     if test "x$enable_esdtest" = "xyes" ; then
11813       ac_save_CFLAGS="$CFLAGS"
11814       ac_save_LIBS="$LIBS"
11815       CFLAGS="$CFLAGS $ESD_CFLAGS"
11816       LIBS="$LIBS $ESD_LIBS"
11817       rm -f conf.esdtest
11818       if test "$cross_compiling" = yes; then
11819   echo $ac_n "cross compiling; assumed OK... $ac_c"
11820 else
11821   cat >conftest.$ac_ext <<_ACEOF
11822 #line $LINENO "configure"
11823 /* confdefs.h.  */
11824 _ACEOF
11825 cat confdefs.h >>conftest.$ac_ext
11826 cat >>conftest.$ac_ext <<_ACEOF
11827 /* end confdefs.h.  */
11828
11829 #include <stdio.h>
11830 #include <stdlib.h>
11831 #include <string.h>
11832 #include <esd.h>
11833
11834 char*
11835 my_strdup (char *str)
11836 {
11837   char *new_str;
11838
11839   if (str)
11840     {
11841       new_str = malloc ((strlen (str) + 1) * sizeof(char));
11842       strcpy (new_str, str);
11843     }
11844   else
11845     new_str = NULL;
11846
11847   return new_str;
11848 }
11849
11850 int main ()
11851 {
11852   int major, minor, micro;
11853   char *tmp_version;
11854
11855   system ("touch conf.esdtest");
11856
11857   /* HP/UX 9 (%@#!) writes to sscanf strings */
11858   tmp_version = my_strdup("$min_esd_version");
11859   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11860      printf("%s, bad version string\n", "$min_esd_version");
11861      exit(1);
11862    }
11863
11864    if (($esd_major_version > major) ||
11865       (($esd_major_version == major) && ($esd_minor_version > minor)) ||
11866       (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
11867     {
11868       return 0;
11869     }
11870   else
11871     {
11872       printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
11873       printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
11874       printf("*** best to upgrade to the required version.\n");
11875       printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
11876       printf("*** to point to the correct copy of esd-config, and remove the file\n");
11877       printf("*** config.cache before re-running configure\n");
11878       return 1;
11879     }
11880 }
11881
11882
11883 _ACEOF
11884 rm -f conftest$ac_exeext
11885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11886   (eval $ac_link) 2>&5
11887   ac_status=$?
11888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11891   (eval $ac_try) 2>&5
11892   ac_status=$?
11893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894   (exit $ac_status); }; }; then
11895   :
11896 else
11897   echo "$as_me: program exited with status $ac_status" >&5
11898 echo "$as_me: failed program was:" >&5
11899 sed 's/^/| /' conftest.$ac_ext >&5
11900
11901 ( exit $ac_status )
11902 no_esd=yes
11903 fi
11904 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11905 fi
11906        CFLAGS="$ac_save_CFLAGS"
11907        LIBS="$ac_save_LIBS"
11908        ac_ext=c
11909 ac_cpp='$CPP $CPPFLAGS'
11910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11913
11914      fi
11915   fi
11916   if test "x$no_esd" = x ; then
11917      echo "$as_me:$LINENO: result: yes" >&5
11918 echo "${ECHO_T}yes" >&6
11919      :
11920   else
11921      echo "$as_me:$LINENO: result: no" >&5
11922 echo "${ECHO_T}no" >&6
11923      if test "$ESD_CONFIG" = "no" ; then
11924        echo "*** The esd-config script installed by ESD could not be found"
11925        echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
11926        echo "*** your path, or set the ESD_CONFIG environment variable to the"
11927        echo "*** full path to esd-config."
11928      else
11929        if test -f conf.esdtest ; then
11930         :
11931        else
11932           echo "*** Could not run ESD test program, checking why..."
11933           CFLAGS="$CFLAGS $ESD_CFLAGS"
11934           LIBS="$LIBS $ESD_LIBS"
11935
11936
11937           ac_ext=c
11938 ac_cpp='$CPP $CPPFLAGS'
11939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11942
11943           cat >conftest.$ac_ext <<_ACEOF
11944 #line $LINENO "configure"
11945 /* confdefs.h.  */
11946 _ACEOF
11947 cat confdefs.h >>conftest.$ac_ext
11948 cat >>conftest.$ac_ext <<_ACEOF
11949 /* end confdefs.h.  */
11950
11951 #include <stdio.h>
11952 #include <esd.h>
11953
11954 int
11955 main ()
11956 {
11957  return 0;
11958   ;
11959   return 0;
11960 }
11961 _ACEOF
11962 rm -f conftest.$ac_objext conftest$ac_exeext
11963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11964   (eval $ac_link) 2>&5
11965   ac_status=$?
11966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967   (exit $ac_status); } &&
11968          { ac_try='test -s conftest$ac_exeext'
11969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11970   (eval $ac_try) 2>&5
11971   ac_status=$?
11972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973   (exit $ac_status); }; }; then
11974    echo "*** The test program compiled, but did not run. This usually means"
11975           echo "*** that the run-time linker is not finding ESD or finding the wrong"
11976           echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
11977           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11978           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
11979           echo "*** is required on your system"
11980           echo "***"
11981           echo "*** If you have an old version installed, it is best to remove it, although"
11982           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11983 else
11984   echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11986
11987  echo "*** The test program failed to compile or link. See the file config.log for the"
11988           echo "*** exact error that occured. This usually means ESD was incorrectly installed"
11989           echo "*** or that you have moved ESD since it was installed. In the latter case, you"
11990           echo "*** may want to edit the esd-config script: $ESD_CONFIG"
11991 fi
11992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11993           CFLAGS="$ac_save_CFLAGS"
11994           LIBS="$ac_save_LIBS"
11995           ac_ext=c
11996 ac_cpp='$CPP $CPPFLAGS'
11997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12000
12001        fi
12002      fi
12003      ESD_CFLAGS=""
12004      ESD_LIBS=""
12005      :
12006   fi
12007
12008
12009   rm -f conf.esdtest
12010
12011   CFLAGS=$KEEPCFLAGS
12012   LIBS=$KEEPLIBS
12013   LDFLAGS=$KEEPLDFLAGS
12014   if test "x$no_esd" = x; then
12015         EXTRADEFS="$EXTRADEFS -DAU_ESD"
12016     SYSEXTRAS="$SYSEXTRAS esd_a.c"
12017     for f in $ESD_CFLAGS; do
12018     case ".$f" in
12019         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
12020         *)              CFLAGS="$CPPFLAGS $f" ;;
12021     esac
12022 done
12023
12024     LIBS="$LIBS $ESD_LIBS"
12025   else
12026     { echo "$as_me:$LINENO: WARNING: EsounD: Couldn't configure" >&5
12027 echo "$as_me: WARNING: EsounD: Couldn't configure" >&2;}
12028   fi
12029 else
12030   echo "$as_me:$LINENO: result: no" >&5
12031 echo "${ECHO_T}no" >&6
12032 fi
12033
12034 echo "$as_me:$LINENO: checking enable_audio=portaudio" >&5
12035 echo $ECHO_N "checking enable_audio=portaudio... $ECHO_C" >&6
12036 if test "x$au_enable_portaudio" = xyes; then
12037   echo "$as_me:$LINENO: result: yes" >&5
12038 echo "${ECHO_T}yes" >&6
12039   SYSEXTRAS="$SYSEXTRAS portaudio_a.c"
12040   EXTRALIBS="$EXTRALIBS -lportaudio"
12041   EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO"
12042 else
12043   echo "$as_me:$LINENO: result: no" >&5
12044 echo "${ECHO_T}no" >&6
12045 fi
12046
12047 echo "$as_me:$LINENO: checking enable_audio=jack" >&5
12048 echo $ECHO_N "checking enable_audio=jack... $ECHO_C" >&6
12049 if test "x$au_enable_jack" = xyes; then
12050   echo "$as_me:$LINENO: result: yes" >&5
12051 echo "${ECHO_T}yes" >&6
12052   SYSEXTRAS="$SYSEXTRAS jack_a.c"
12053   EXTRALIBS="$EXTRALIBS $(pkg-config --libs jack)"
12054   EXTRADEFS="$EXTRADEFS -DAU_JACK $(pkg-config --cflags jack)"
12055 else
12056   echo "$as_me:$LINENO: result: no" >&5
12057 echo "${ECHO_T}no" >&6
12058 fi
12059
12060 echo "$as_me:$LINENO: checking enable_audio=vorbis" >&5
12061 echo $ECHO_N "checking enable_audio=vorbis... $ECHO_C" >&6
12062 if test "x$au_enable_vorbis" = xyes; then
12063   echo "$as_me:$LINENO: result: yes, configuring vorbis" >&5
12064 echo "${ECHO_T}yes, configuring vorbis" >&6
12065
12066 # Check whether --with-ogg or --without-ogg was given.
12067 if test "${with_ogg+set}" = set; then
12068   withval="$with_ogg"
12069   ogg_prefix="$withval"
12070 else
12071   ogg_prefix=""
12072 fi;
12073
12074 # Check whether --with-ogg-libraries or --without-ogg-libraries was given.
12075 if test "${with_ogg_libraries+set}" = set; then
12076   withval="$with_ogg_libraries"
12077   ogg_libraries="$withval"
12078 else
12079   ogg_libraries=""
12080 fi;
12081
12082 # Check whether --with-ogg-includes or --without-ogg-includes was given.
12083 if test "${with_ogg_includes+set}" = set; then
12084   withval="$with_ogg_includes"
12085   ogg_includes="$withval"
12086 else
12087   ogg_includes=""
12088 fi;
12089 # Check whether --enable-oggtest or --disable-oggtest was given.
12090 if test "${enable_oggtest+set}" = set; then
12091   enableval="$enable_oggtest"
12092
12093 else
12094   enable_oggtest=yes
12095 fi;
12096
12097   if test "x$ogg_libraries" != "x" ; then
12098     OGG_LIBS="-L$ogg_libraries"
12099   elif test "x$ogg_prefix" != "x" ; then
12100     OGG_LIBS="-L$ogg_prefix/lib"
12101   elif test "x$prefix" != "xNONE" ; then
12102     OGG_LIBS="-L$prefix/lib"
12103   fi
12104
12105   OGG_LIBS="$OGG_LIBS -logg"
12106
12107   if test "x$ogg_includes" != "x" ; then
12108     OGG_CFLAGS="-I$ogg_includes"
12109   elif test "x$ogg_prefix" != "x" ; then
12110     OGG_CFLAGS="-I$ogg_prefix/include"
12111   elif test "x$prefix" != "xNONE"; then
12112     OGG_CFLAGS="-I$prefix/include"
12113   fi
12114
12115   echo "$as_me:$LINENO: checking for Ogg" >&5
12116 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6
12117   no_ogg=""
12118
12119
12120   if test "x$enable_oggtest" = "xyes" ; then
12121     ac_save_CFLAGS="$CFLAGS"
12122     ac_save_LIBS="$LIBS"
12123     CFLAGS="$CFLAGS $OGG_CFLAGS"
12124     LIBS="$LIBS $OGG_LIBS"
12125       rm -f conf.oggtest
12126       if test "$cross_compiling" = yes; then
12127   echo $ac_n "cross compiling; assumed OK... $ac_c"
12128 else
12129   cat >conftest.$ac_ext <<_ACEOF
12130 #line $LINENO "configure"
12131 /* confdefs.h.  */
12132 _ACEOF
12133 cat confdefs.h >>conftest.$ac_ext
12134 cat >>conftest.$ac_ext <<_ACEOF
12135 /* end confdefs.h.  */
12136
12137 #include <stdio.h>
12138 #include <stdlib.h>
12139 #include <string.h>
12140 #include <ogg/ogg.h>
12141
12142 int main ()
12143 {
12144   system("touch conf.oggtest");
12145   return 0;
12146 }
12147
12148
12149 _ACEOF
12150 rm -f conftest$ac_exeext
12151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12152   (eval $ac_link) 2>&5
12153   ac_status=$?
12154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12157   (eval $ac_try) 2>&5
12158   ac_status=$?
12159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160   (exit $ac_status); }; }; then
12161   :
12162 else
12163   echo "$as_me: program exited with status $ac_status" >&5
12164 echo "$as_me: failed program was:" >&5
12165 sed 's/^/| /' conftest.$ac_ext >&5
12166
12167 ( exit $ac_status )
12168 no_ogg=yes
12169 fi
12170 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12171 fi
12172        CFLAGS="$ac_save_CFLAGS"
12173        LIBS="$ac_save_LIBS"
12174   fi
12175
12176   if test "x$no_ogg" = "x" ; then
12177      echo "$as_me:$LINENO: result: yes" >&5
12178 echo "${ECHO_T}yes" >&6
12179
12180
12181 # Check whether --with-vorbis or --without-vorbis was given.
12182 if test "${with_vorbis+set}" = set; then
12183   withval="$with_vorbis"
12184   vorbis_prefix="$withval"
12185 else
12186   vorbis_prefix=""
12187 fi;
12188
12189 # Check whether --with-vorbis-libraries or --without-vorbis-libraries was given.
12190 if test "${with_vorbis_libraries+set}" = set; then
12191   withval="$with_vorbis_libraries"
12192   vorbis_libraries="$withval"
12193 else
12194   vorbis_libraries=""
12195 fi;
12196
12197 # Check whether --with-vorbis-includes or --without-vorbis-includes was given.
12198 if test "${with_vorbis_includes+set}" = set; then
12199   withval="$with_vorbis_includes"
12200   vorbis_includes="$withval"
12201 else
12202   vorbis_includes=""
12203 fi;
12204 # Check whether --enable-vorbistest or --disable-vorbistest was given.
12205 if test "${enable_vorbistest+set}" = set; then
12206   enableval="$enable_vorbistest"
12207
12208 else
12209   enable_vorbistest=yes
12210 fi;
12211
12212   if test "x$vorbis_libraries" != "x" ; then
12213     VORBIS_LIBS="-L$vorbis_libraries"
12214   elif test "x$vorbis_prefix" != "x" ; then
12215     VORBIS_LIBS="-L$vorbis_prefix/lib"
12216   elif test "x$prefix" != "xNONE"; then
12217     VORBIS_LIBS="-L$prefix/lib"
12218   fi
12219
12220   VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
12221   VORBISFILE_LIBS="-lvorbisfile"
12222   VORBISENC_LIBS="-lvorbisenc"
12223
12224   if test "x$vorbis_includes" != "x" ; then
12225     VORBIS_CFLAGS="-I$vorbis_includes"
12226   elif test "x$vorbis_prefix" != "x" ; then
12227     VORBIS_CFLAGS="-I$vorbis_prefix/include"
12228   elif test "x$prefix" != "xNONE"; then
12229     VORBIS_CFLAGS="-I$prefix/include"
12230   fi
12231
12232
12233   echo "$as_me:$LINENO: checking for Vorbis" >&5
12234 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6
12235   no_vorbis=""
12236
12237
12238   if test "x$enable_vorbistest" = "xyes" ; then
12239     ac_save_CFLAGS="$CFLAGS"
12240     ac_save_LIBS="$LIBS"
12241     CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
12242     LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
12243       rm -f conf.vorbistest
12244       if test "$cross_compiling" = yes; then
12245   echo $ac_n "cross compiling; assumed OK... $ac_c"
12246 else
12247   cat >conftest.$ac_ext <<_ACEOF
12248 #line $LINENO "configure"
12249 /* confdefs.h.  */
12250 _ACEOF
12251 cat confdefs.h >>conftest.$ac_ext
12252 cat >>conftest.$ac_ext <<_ACEOF
12253 /* end confdefs.h.  */
12254
12255 #include <stdio.h>
12256 #include <stdlib.h>
12257 #include <string.h>
12258 #include <vorbis/codec.h>
12259
12260 int main ()
12261 {
12262   system("touch conf.vorbistest");
12263   return 0;
12264 }
12265
12266
12267 _ACEOF
12268 rm -f conftest$ac_exeext
12269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12270   (eval $ac_link) 2>&5
12271   ac_status=$?
12272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12275   (eval $ac_try) 2>&5
12276   ac_status=$?
12277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278   (exit $ac_status); }; }; then
12279   :
12280 else
12281   echo "$as_me: program exited with status $ac_status" >&5
12282 echo "$as_me: failed program was:" >&5
12283 sed 's/^/| /' conftest.$ac_ext >&5
12284
12285 ( exit $ac_status )
12286 no_vorbis=yes
12287 fi
12288 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12289 fi
12290        CFLAGS="$ac_save_CFLAGS"
12291        LIBS="$ac_save_LIBS"
12292   fi
12293
12294   if test "x$no_vorbis" = "x" ; then
12295      echo "$as_me:$LINENO: result: yes" >&5
12296 echo "${ECHO_T}yes" >&6
12297
12298       have_vorbis=yes
12299       SYSEXTRAS="$SYSEXTRAS vorbis_a.c"
12300       EXTRADEFS="$EXTRADEFS -DAU_VORBIS $OGG_CFLAGS $VORBIS_CFLAGS"
12301       EXTRALIBS="$EXTRALIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
12302       if test "x$CYGNUS" = "xyes"; then
12303       EXTRADEFS="-DAU_VORBIS_DLL $EXTRALIBS"
12304           SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
12305       fi
12306       if test "x$MINGW" = "xyes"; then
12307       EXTRADEFS="-DAU_VORBIS_DLL $EXTRALIBS"
12308           SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
12309       fi
12310
12311   else
12312      echo "$as_me:$LINENO: result: no" >&5
12313 echo "${ECHO_T}no" >&6
12314      if test -f conf.vorbistest ; then
12315        :
12316      else
12317        echo "*** Could not run Vorbis test program, checking why..."
12318        CFLAGS="$CFLAGS $VORBIS_CFLAGS"
12319        LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
12320        cat >conftest.$ac_ext <<_ACEOF
12321 #line $LINENO "configure"
12322 /* confdefs.h.  */
12323 _ACEOF
12324 cat confdefs.h >>conftest.$ac_ext
12325 cat >>conftest.$ac_ext <<_ACEOF
12326 /* end confdefs.h.  */
12327
12328 #include <stdio.h>
12329 #include <vorbis/codec.h>
12330
12331 int
12332 main ()
12333 {
12334  return 0;
12335   ;
12336   return 0;
12337 }
12338 _ACEOF
12339 rm -f conftest.$ac_objext conftest$ac_exeext
12340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12341   (eval $ac_link) 2>&5
12342   ac_status=$?
12343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344   (exit $ac_status); } &&
12345          { ac_try='test -s conftest$ac_exeext'
12346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347   (eval $ac_try) 2>&5
12348   ac_status=$?
12349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350   (exit $ac_status); }; }; then
12351    echo "*** The test program compiled, but did not run. This usually means"
12352        echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
12353        echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
12354        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12355        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12356        echo "*** is required on your system"
12357        echo "***"
12358        echo "*** If you have an old version installed, it is best to remove it, although"
12359        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12360 else
12361   echo "$as_me: failed program was:" >&5
12362 sed 's/^/| /' conftest.$ac_ext >&5
12363
12364  echo "*** The test program failed to compile or link. See the file config.log for the"
12365        echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
12366        echo "*** or that you have moved Vorbis since it was installed."
12367 fi
12368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12369        CFLAGS="$ac_save_CFLAGS"
12370        LIBS="$ac_save_LIBS"
12371      fi
12372      VORBIS_CFLAGS=""
12373      VORBIS_LIBS=""
12374      VORBISFILE_LIBS=""
12375      VORBISENC_LIBS=""
12376
12377       { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis, but ogg is there (???)" >&5
12378 echo "$as_me: WARNING: Unable to configure vorbis, but ogg is there (???)" >&2;}
12379
12380   fi
12381
12382
12383
12384
12385   rm -f conf.vorbistest
12386
12387
12388   else
12389      echo "$as_me:$LINENO: result: no" >&5
12390 echo "${ECHO_T}no" >&6
12391      if test -f conf.oggtest ; then
12392        :
12393      else
12394        echo "*** Could not run Ogg test program, checking why..."
12395        CFLAGS="$CFLAGS $OGG_CFLAGS"
12396        LIBS="$LIBS $OGG_LIBS"
12397        cat >conftest.$ac_ext <<_ACEOF
12398 #line $LINENO "configure"
12399 /* confdefs.h.  */
12400 _ACEOF
12401 cat confdefs.h >>conftest.$ac_ext
12402 cat >>conftest.$ac_ext <<_ACEOF
12403 /* end confdefs.h.  */
12404
12405 #include <stdio.h>
12406 #include <ogg/ogg.h>
12407
12408 int
12409 main ()
12410 {
12411  return 0;
12412   ;
12413   return 0;
12414 }
12415 _ACEOF
12416 rm -f conftest.$ac_objext conftest$ac_exeext
12417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12418   (eval $ac_link) 2>&5
12419   ac_status=$?
12420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421   (exit $ac_status); } &&
12422          { ac_try='test -s conftest$ac_exeext'
12423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12424   (eval $ac_try) 2>&5
12425   ac_status=$?
12426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427   (exit $ac_status); }; }; then
12428    echo "*** The test program compiled, but did not run. This usually means"
12429        echo "*** that the run-time linker is not finding Ogg or finding the wrong"
12430        echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
12431        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12432        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12433        echo "*** is required on your system"
12434        echo "***"
12435        echo "*** If you have an old version installed, it is best to remove it, although"
12436        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12437 else
12438   echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12440
12441  echo "*** The test program failed to compile or link. See the file config.log for the"
12442        echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
12443        echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
12444        echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
12445 fi
12446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12447        CFLAGS="$ac_save_CFLAGS"
12448        LIBS="$ac_save_LIBS"
12449      fi
12450      OGG_CFLAGS=""
12451      OGG_LIBS=""
12452
12453     { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis!" >&5
12454 echo "$as_me: WARNING: Unable to configure vorbis!" >&2;}
12455     have_vorbis=no
12456
12457   fi
12458
12459
12460   rm -f conf.oggtest
12461
12462 else
12463   echo "$as_me:$LINENO: result: no" >&5
12464 echo "${ECHO_T}no" >&6
12465 fi
12466
12467 echo "$as_me:$LINENO: checking enable_audio=gogo" >&5
12468 echo $ECHO_N "checking enable_audio=gogo... $ECHO_C" >&6
12469 if test "x$au_enable_gogo" = xyes; then
12470   if test "x$CYGNUS" = "xyes"; then
12471     echo "$as_me:$LINENO: result: yes" >&5
12472 echo "${ECHO_T}yes" >&6
12473   else
12474     if test "x$MINGW" = "xyes"; then
12475     echo "$as_me:$LINENO: result: yes" >&5
12476 echo "${ECHO_T}yes" >&6
12477     else
12478       { echo "$as_me:$LINENO: WARNING: May be gogo is not supported.  You need hack the gogo_a.c" >&5
12479 echo "$as_me: WARNING: May be gogo is not supported.  You need hack the gogo_a.c" >&2;}
12480     fi
12481   fi
12482   have_gogo=yes
12483   SYSEXTRAS="$SYSEXTRAS gogo_a.c w32_gogo.c"
12484   EXTRADEFS="$EXTRADEFS -DAU_GOGO -DAU_GOGO_DLL"
12485   EXTRALIBS="$EXTRALIBS -lgogo"
12486 else
12487   echo "$as_me:$LINENO: result: no" >&5
12488 echo "${ECHO_T}no" >&6
12489 fi
12490
12491 if test "x$au_enable_none" = xyes; then
12492     EXTRADEFS="$EXTRADEFS -DAU_NONE -DAU_AUDRIV"
12493     SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_none.c"
12494 fi
12495 echo "$as_me:$LINENO: checking default output mode" >&5
12496 echo $ECHO_N "checking default output mode... $ECHO_C" >&6
12497 if test "x$DEFAULT_PLAYMODE" = x; then
12498   DEFAULT_PLAYMODE=`echo $enable_audio | sed 's/,.*//'`
12499 fi
12500 case ".$DEFAULT_PLAYMODE" in
12501   .default)  TIMIDITY_OUTPUT_ID=d ;;
12502   .oss)      TIMIDITY_OUTPUT_ID=d ;;
12503   .alsa)     TIMIDITY_OUTPUT_ID=s ;;
12504   .sun)      TIMIDITY_OUTPUT_ID=d ;;
12505   .hpux)     TIMIDITY_OUTPUT_ID=d ;;
12506   .irix)     TIMIDITY_OUTPUT_ID=d ;;
12507   .mme)      TIMIDITY_OUTPUT_ID=d ;;
12508   .sb_dsp)   TIMIDITY_OUTPUT_ID=d ;;
12509   .darwin)   TIMIDITY_OUTPUT_ID=d ;;
12510   .w32)      TIMIDITY_OUTPUT_ID=d ;;
12511   .alib)     TIMIDITY_OUTPUT_ID=A ;;
12512   .nas)      TIMIDITY_OUTPUT_ID=n ;;
12513   .arts)     TIMIDITY_OUTPUT_ID=R ;;
12514   .esd)      TIMIDITY_OUTPUT_ID=e ;;
12515   .portaudio)      TIMIDITY_OUTPUT_ID=p ;;
12516   .wav)      TIMIDITY_OUTPUT_ID=w ;;
12517   .au)       TIMIDITY_OUTPUT_ID=u ;;
12518   .aiff)     TIMIDITY_OUTPUT_ID=a ;;
12519   .list)     TIMIDITY_OUTPUT_ID=l ;;
12520   .vorbis)   TIMIDITY_OUTPUT_ID=v ;;
12521   .gogo)     TIMIDITY_OUTPUT_ID=g ;;
12522   .jack)     TIMIDITY_OUTPUT_ID=j ;;
12523   *)         TIMIDITY_OUTPUT_ID= ;;
12524 esac
12525 echo "$as_me:$LINENO: result: $DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&5
12526 echo "${ECHO_T}$DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&6
12527
12528 #
12529 # Interface Section
12530 #
12531
12532 interface_targets='dynamic ncurses slang motif tcltk emacs vt100 xaw xskin gtk alsaseq winsyn winsyng portmidisyng'
12533
12534 # Check whether --enable-interface or --disable-interface was given.
12535 if test "${enable_interface+set}" = set; then
12536   enableval="$enable_interface"
12537    for i in `echo $enableval | sed 's/,/ /g'`; do
12538       eval "enable_$i=yes"
12539     done
12540 fi;
12541
12542 #  Dynamic link configuration
12543 # Check whether --enable-dynamic or --disable-dynamic was given.
12544 if test "${enable_dynamic+set}" = set; then
12545   enableval="$enable_dynamic"
12546        if test "x$enable_dynamic" = xyes; then
12547       enable_dynamic=dynamic
12548     elif test "x$enable_dynamic" != xno; then
12549       for i in `echo $enableval | sed 's/,/ /g'`; do
12550         eval "enable_$i=dynamic"
12551       done
12552     fi
12553 fi;
12554
12555 join_targets=
12556 for i in $interface_targets; do
12557   eval "join_targets=$join_targets\$enable_$i"
12558 done
12559
12560 case ".$join_targets" in
12561 .*dynamic*) NEEDDLOPEN=yes;;
12562 *)          NEEDDLOPEN=no;;
12563 esac
12564
12565 if test "x$GCC" = xyes; then SHCFLAGS="$SHCFLAGS -fPIC"; fi
12566 case "x$enable_ump" in xyes|xdynamic) EXTRACFLAGS="$EXTRACFLAGS -DXP_UNIX $SHCFLAGS";; esac
12567
12568 if test "$NEEDDLOPEN" = "yes"; then
12569   have_dl=no
12570
12571   echo "$as_me:$LINENO: checking for LoadLibrary" >&5
12572 echo $ECHO_N "checking for LoadLibrary... $ECHO_C" >&6
12573 if test "${wapi_cv_func_LoadLibrary+set}" = set; then
12574   echo $ECHO_N "(cached) $ECHO_C" >&6
12575 else
12576   cat >conftest.$ac_ext <<_ACEOF
12577 #line $LINENO "configure"
12578 /* confdefs.h.  */
12579 _ACEOF
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h.  */
12583 #include <windows.h>
12584
12585
12586 int
12587 main ()
12588 {
12589 LoadLibrary(0);
12590   ;
12591   return 0;
12592 }
12593 _ACEOF
12594 rm -f conftest.$ac_objext conftest$ac_exeext
12595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12596   (eval $ac_link) 2>&5
12597   ac_status=$?
12598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599   (exit $ac_status); } &&
12600          { ac_try='test -s conftest$ac_exeext'
12601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602   (eval $ac_try) 2>&5
12603   ac_status=$?
12604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605   (exit $ac_status); }; }; then
12606   wapi_cv_func_LoadLibrary=yes
12607 else
12608   echo "$as_me: failed program was:" >&5
12609 sed 's/^/| /' conftest.$ac_ext >&5
12610
12611 wapi_cv_func_LoadLibrary=no
12612 fi
12613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12614 fi
12615
12616 if eval "test \"`echo '$wapi_cv_func_'LoadLibrary`\" = yes"; then
12617   echo "$as_me:$LINENO: result: yes" >&5
12618 echo "${ECHO_T}yes" >&6
12619   have_dl=w32
12620 else
12621   echo "$as_me:$LINENO: result: no" >&5
12622 echo "${ECHO_T}no" >&6
12623 fi
12624
12625   test $wapi_cv_func_LoadLibrary = yes && have_dl=w32
12626
12627   if test "$have_dl" = "no"; then
12628     echo "$as_me:$LINENO: checking for shl_load" >&5
12629 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12630 if test "${ac_cv_func_shl_load+set}" = set; then
12631   echo $ECHO_N "(cached) $ECHO_C" >&6
12632 else
12633   cat >conftest.$ac_ext <<_ACEOF
12634 #line $LINENO "configure"
12635 /* confdefs.h.  */
12636 _ACEOF
12637 cat confdefs.h >>conftest.$ac_ext
12638 cat >>conftest.$ac_ext <<_ACEOF
12639 /* end confdefs.h.  */
12640 /* System header to define __stub macros and hopefully few prototypes,
12641     which can conflict with char shl_load (); below.
12642     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12643     <limits.h> exists even on freestanding compilers.  */
12644 #ifdef __STDC__
12645 # include <limits.h>
12646 #else
12647 # include <assert.h>
12648 #endif
12649 /* Override any gcc2 internal prototype to avoid an error.  */
12650 #ifdef __cplusplus
12651 extern "C"
12652 {
12653 #endif
12654 /* We use char because int might match the return type of a gcc2
12655    builtin and then its argument prototype would still apply.  */
12656 char shl_load ();
12657 /* The GNU C library defines this for functions which it implements
12658     to always fail with ENOSYS.  Some functions are actually named
12659     something starting with __ and the normal name is an alias.  */
12660 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12661 choke me
12662 #else
12663 char (*f) () = shl_load;
12664 #endif
12665 #ifdef __cplusplus
12666 }
12667 #endif
12668
12669 int
12670 main ()
12671 {
12672 return f != shl_load;
12673   ;
12674   return 0;
12675 }
12676 _ACEOF
12677 rm -f conftest.$ac_objext conftest$ac_exeext
12678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12679   (eval $ac_link) 2>&5
12680   ac_status=$?
12681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682   (exit $ac_status); } &&
12683          { ac_try='test -s conftest$ac_exeext'
12684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12685   (eval $ac_try) 2>&5
12686   ac_status=$?
12687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688   (exit $ac_status); }; }; then
12689   ac_cv_func_shl_load=yes
12690 else
12691   echo "$as_me: failed program was:" >&5
12692 sed 's/^/| /' conftest.$ac_ext >&5
12693
12694 ac_cv_func_shl_load=no
12695 fi
12696 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12697 fi
12698 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12699 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12700 if test $ac_cv_func_shl_load = yes; then
12701   have_dl=hpux
12702 fi
12703
12704   fi
12705   if test "$have_dl" = "no"; then
12706             echo "$as_me:$LINENO: checking for NSLinkModule" >&5
12707 echo $ECHO_N "checking for NSLinkModule... $ECHO_C" >&6
12708 if test "${ac_cv_func_NSLinkModule+set}" = set; then
12709   echo $ECHO_N "(cached) $ECHO_C" >&6
12710 else
12711   cat >conftest.$ac_ext <<_ACEOF
12712 #line $LINENO "configure"
12713 /* confdefs.h.  */
12714 _ACEOF
12715 cat confdefs.h >>conftest.$ac_ext
12716 cat >>conftest.$ac_ext <<_ACEOF
12717 /* end confdefs.h.  */
12718 /* System header to define __stub macros and hopefully few prototypes,
12719     which can conflict with char NSLinkModule (); below.
12720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12721     <limits.h> exists even on freestanding compilers.  */
12722 #ifdef __STDC__
12723 # include <limits.h>
12724 #else
12725 # include <assert.h>
12726 #endif
12727 /* Override any gcc2 internal prototype to avoid an error.  */
12728 #ifdef __cplusplus
12729 extern "C"
12730 {
12731 #endif
12732 /* We use char because int might match the return type of a gcc2
12733    builtin and then its argument prototype would still apply.  */
12734 char NSLinkModule ();
12735 /* The GNU C library defines this for functions which it implements
12736     to always fail with ENOSYS.  Some functions are actually named
12737     something starting with __ and the normal name is an alias.  */
12738 #if defined (__stub_NSLinkModule) || defined (__stub___NSLinkModule)
12739 choke me
12740 #else
12741 char (*f) () = NSLinkModule;
12742 #endif
12743 #ifdef __cplusplus
12744 }
12745 #endif
12746
12747 int
12748 main ()
12749 {
12750 return f != NSLinkModule;
12751   ;
12752   return 0;
12753 }
12754 _ACEOF
12755 rm -f conftest.$ac_objext conftest$ac_exeext
12756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12757   (eval $ac_link) 2>&5
12758   ac_status=$?
12759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760   (exit $ac_status); } &&
12761          { ac_try='test -s conftest$ac_exeext'
12762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763   (eval $ac_try) 2>&5
12764   ac_status=$?
12765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766   (exit $ac_status); }; }; then
12767   ac_cv_func_NSLinkModule=yes
12768 else
12769   echo "$as_me: failed program was:" >&5
12770 sed 's/^/| /' conftest.$ac_ext >&5
12771
12772 ac_cv_func_NSLinkModule=no
12773 fi
12774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12775 fi
12776 echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5
12777 echo "${ECHO_T}$ac_cv_func_NSLinkModule" >&6
12778 if test $ac_cv_func_NSLinkModule = yes; then
12779   have_dl=dyld
12780 fi
12781
12782   fi
12783   if test "$have_dl" = "no" -a "x$ac_cv_lib_dl_dlopen" = xyes; then
12784     have_dl=dlopen
12785   fi
12786   if test "$have_dl" = "no"; then
12787     echo "$as_me:$LINENO: checking for dlopen" >&5
12788 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12789 if test "${ac_cv_func_dlopen+set}" = set; then
12790   echo $ECHO_N "(cached) $ECHO_C" >&6
12791 else
12792   cat >conftest.$ac_ext <<_ACEOF
12793 #line $LINENO "configure"
12794 /* confdefs.h.  */
12795 _ACEOF
12796 cat confdefs.h >>conftest.$ac_ext
12797 cat >>conftest.$ac_ext <<_ACEOF
12798 /* end confdefs.h.  */
12799 /* System header to define __stub macros and hopefully few prototypes,
12800     which can conflict with char dlopen (); below.
12801     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12802     <limits.h> exists even on freestanding compilers.  */
12803 #ifdef __STDC__
12804 # include <limits.h>
12805 #else
12806 # include <assert.h>
12807 #endif
12808 /* Override any gcc2 internal prototype to avoid an error.  */
12809 #ifdef __cplusplus
12810 extern "C"
12811 {
12812 #endif
12813 /* We use char because int might match the return type of a gcc2
12814    builtin and then its argument prototype would still apply.  */
12815 char dlopen ();
12816 /* The GNU C library defines this for functions which it implements
12817     to always fail with ENOSYS.  Some functions are actually named
12818     something starting with __ and the normal name is an alias.  */
12819 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12820 choke me
12821 #else
12822 char (*f) () = dlopen;
12823 #endif
12824 #ifdef __cplusplus
12825 }
12826 #endif
12827
12828 int
12829 main ()
12830 {
12831 return f != dlopen;
12832   ;
12833   return 0;
12834 }
12835 _ACEOF
12836 rm -f conftest.$ac_objext conftest$ac_exeext
12837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12838   (eval $ac_link) 2>&5
12839   ac_status=$?
12840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841   (exit $ac_status); } &&
12842          { ac_try='test -s conftest$ac_exeext'
12843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844   (eval $ac_try) 2>&5
12845   ac_status=$?
12846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847   (exit $ac_status); }; }; then
12848   ac_cv_func_dlopen=yes
12849 else
12850   echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.$ac_ext >&5
12852
12853 ac_cv_func_dlopen=no
12854 fi
12855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12856 fi
12857 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12858 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12859 if test $ac_cv_func_dlopen = yes; then
12860   have_dl=dlopen
12861 fi
12862
12863   fi
12864   if test "$have_dl" = "no"; then
12865     echo "$as_me:$LINENO: checking for dld_init" >&5
12866 echo $ECHO_N "checking for dld_init... $ECHO_C" >&6
12867 if test "${ac_cv_func_dld_init+set}" = set; then
12868   echo $ECHO_N "(cached) $ECHO_C" >&6
12869 else
12870   cat >conftest.$ac_ext <<_ACEOF
12871 #line $LINENO "configure"
12872 /* confdefs.h.  */
12873 _ACEOF
12874 cat confdefs.h >>conftest.$ac_ext
12875 cat >>conftest.$ac_ext <<_ACEOF
12876 /* end confdefs.h.  */
12877 /* System header to define __stub macros and hopefully few prototypes,
12878     which can conflict with char dld_init (); below.
12879     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12880     <limits.h> exists even on freestanding compilers.  */
12881 #ifdef __STDC__
12882 # include <limits.h>
12883 #else
12884 # include <assert.h>
12885 #endif
12886 /* Override any gcc2 internal prototype to avoid an error.  */
12887 #ifdef __cplusplus
12888 extern "C"
12889 {
12890 #endif
12891 /* We use char because int might match the return type of a gcc2
12892    builtin and then its argument prototype would still apply.  */
12893 char dld_init ();
12894 /* The GNU C library defines this for functions which it implements
12895     to always fail with ENOSYS.  Some functions are actually named
12896     something starting with __ and the normal name is an alias.  */
12897 #if defined (__stub_dld_init) || defined (__stub___dld_init)
12898 choke me
12899 #else
12900 char (*f) () = dld_init;
12901 #endif
12902 #ifdef __cplusplus
12903 }
12904 #endif
12905
12906 int
12907 main ()
12908 {
12909 return f != dld_init;
12910   ;
12911   return 0;
12912 }
12913 _ACEOF
12914 rm -f conftest.$ac_objext conftest$ac_exeext
12915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12916   (eval $ac_link) 2>&5
12917   ac_status=$?
12918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919   (exit $ac_status); } &&
12920          { ac_try='test -s conftest$ac_exeext'
12921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12922   (eval $ac_try) 2>&5
12923   ac_status=$?
12924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925   (exit $ac_status); }; }; then
12926   ac_cv_func_dld_init=yes
12927 else
12928   echo "$as_me: failed program was:" >&5
12929 sed 's/^/| /' conftest.$ac_ext >&5
12930
12931 ac_cv_func_dld_init=no
12932 fi
12933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12934 fi
12935 echo "$as_me:$LINENO: result: $ac_cv_func_dld_init" >&5
12936 echo "${ECHO_T}$ac_cv_func_dld_init" >&6
12937 if test $ac_cv_func_dld_init = yes; then
12938   have_dl=dld
12939 fi
12940
12941   fi
12942   if test "$have_dl" = "no"; then
12943     echo "$as_me:$LINENO: checking for dld_init in -ldld" >&5
12944 echo $ECHO_N "checking for dld_init in -ldld... $ECHO_C" >&6
12945 if test "${ac_cv_lib_dld_dld_init+set}" = set; then
12946   echo $ECHO_N "(cached) $ECHO_C" >&6
12947 else
12948   ac_check_lib_save_LIBS=$LIBS
12949 LIBS="-ldld  $LIBS"
12950 cat >conftest.$ac_ext <<_ACEOF
12951 #line $LINENO "configure"
12952 /* confdefs.h.  */
12953 _ACEOF
12954 cat confdefs.h >>conftest.$ac_ext
12955 cat >>conftest.$ac_ext <<_ACEOF
12956 /* end confdefs.h.  */
12957
12958 /* Override any gcc2 internal prototype to avoid an error.  */
12959 #ifdef __cplusplus
12960 extern "C"
12961 #endif
12962 /* We use char because int might match the return type of a gcc2
12963    builtin and then its argument prototype would still apply.  */
12964 char dld_init ();
12965 int
12966 main ()
12967 {
12968 dld_init ();
12969   ;
12970   return 0;
12971 }
12972 _ACEOF
12973 rm -f conftest.$ac_objext conftest$ac_exeext
12974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12975   (eval $ac_link) 2>&5
12976   ac_status=$?
12977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978   (exit $ac_status); } &&
12979          { ac_try='test -s conftest$ac_exeext'
12980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981   (eval $ac_try) 2>&5
12982   ac_status=$?
12983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984   (exit $ac_status); }; }; then
12985   ac_cv_lib_dld_dld_init=yes
12986 else
12987   echo "$as_me: failed program was:" >&5
12988 sed 's/^/| /' conftest.$ac_ext >&5
12989
12990 ac_cv_lib_dld_dld_init=no
12991 fi
12992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12993 LIBS=$ac_check_lib_save_LIBS
12994 fi
12995 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_init" >&5
12996 echo "${ECHO_T}$ac_cv_lib_dld_dld_init" >&6
12997 if test $ac_cv_lib_dld_dld_init = yes; then
12998   have_dl=dld;lib_dl_opt=-ldld
12999 fi
13000
13001   fi
13002
13003   echo "$as_me:$LINENO: checking dynamic link method" >&5
13004 echo $ECHO_N "checking dynamic link method... $ECHO_C" >&6
13005   case "$have_dl" in
13006     dlopen)
13007       echo "$as_me:$LINENO: result: use dl_dlopen.c" >&5
13008 echo "${ECHO_T}use dl_dlopen.c" >&6
13009       SYSEXTRAS="$SYSEXTRAS dl_dlopen.c"
13010       echo "$as_me:$LINENO: checking whether your dlsym() needs a leading underscore" >&5
13011 echo $ECHO_N "checking whether your dlsym() needs a leading underscore... $ECHO_C" >&6
13012 if test "${timidity_cv_func_dlsym_underscore+set}" = set; then
13013   echo $ECHO_N "(cached) $ECHO_C" >&6
13014 else
13015   case "$ac_cv_header_dlfcn_h" in
13016 yes) i_dlfcn=define;;
13017 *)   i_dlfcn=undef;;
13018 esac
13019 cat > dyna.c <<EOM
13020 fred () { }
13021 EOM
13022
13023 cat > fred.c <<EOM
13024 #include <stdio.h>
13025 #$i_dlfcn I_DLFCN
13026 #ifdef I_DLFCN
13027 #include <dlfcn.h>      /* the dynamic linker include file for Sunos/Solaris */
13028 #else
13029 #include <sys/types.h>
13030 #include <nlist.h>
13031 #include <link.h>
13032 #endif
13033
13034 extern int fred() ;
13035
13036 main()
13037 {
13038     void * handle ;
13039     void * symbol ;
13040 #ifndef RTLD_LAZY
13041     int mode = 1 ;
13042 #else
13043     int mode = RTLD_LAZY ;
13044 #endif
13045     handle = dlopen("./dyna.$so", mode) ;
13046     if (handle == NULL) {
13047         printf ("1\n") ;
13048         fflush (stdout) ;
13049         exit(0);
13050     }
13051     symbol = dlsym(handle, "fred") ;
13052     if (symbol == NULL) {
13053         /* try putting a leading underscore */
13054         symbol = dlsym(handle, "_fred") ;
13055         if (symbol == NULL) {
13056             printf ("2\n") ;
13057             fflush (stdout) ;
13058             exit(0);
13059         }
13060         printf ("3\n") ;
13061     }
13062     else
13063         printf ("4\n") ;
13064     fflush (stdout) ;
13065     exit(0);
13066 }
13067 EOM
13068 : Call the object file tmp-dyna.o in case dlext=o.
13069 if ${CC-cc} $CFLAGS $SHCFLAGS $CPPFLAGS -c dyna.c > /dev/null 2>&1 &&
13070         mv dyna.o tmp-dyna.o > /dev/null 2>&1 &&
13071         $SHLD $SHLDFLAGS -o dyna.$so tmp-dyna.o > /dev/null 2>&1 &&
13072         ${CC-cc} -o fred $CFLAGS $CPPFLAGS $LDFLAGS fred.c $LIBS $lib_dl_opt > /dev/null 2>&1; then
13073         xxx=`./fred`
13074         case $xxx in
13075         1)      { echo "$as_me:$LINENO: WARNING: Test program failed using dlopen.  Perhaps you should not use dynamic loading." >&5
13076 echo "$as_me: WARNING: Test program failed using dlopen.  Perhaps you should not use dynamic loading." >&2;}
13077                 ;;
13078         2)      { echo "$as_me:$LINENO: WARNING: Test program failed using dlsym.  Perhaps you should not use dynamic loading." >&5
13079 echo "$as_me: WARNING: Test program failed using dlsym.  Perhaps you should not use dynamic loading." >&2;}
13080                 ;;
13081         3)      timidity_cv_func_dlsym_underscore=yes
13082                 ;;
13083         4)      timidity_cv_func_dlsym_underscore=no
13084                 ;;
13085         esac
13086 else
13087         { echo "$as_me:$LINENO: WARNING: I can't compile and run the test program." >&5
13088 echo "$as_me: WARNING: I can't compile and run the test program." >&2;}
13089 fi
13090 rm -f dyna.c dyna.o dyna.$so tmp-dyna.o fred.c fred.o fred
13091
13092 fi
13093
13094 case "x$timidity_cv_func_dlsym_underscore" in
13095 xyes)
13096 cat >>confdefs.h <<\_ACEOF
13097 #define DLSYM_NEEDS_UNDERSCORE 1
13098 _ACEOF
13099
13100         echo "$as_me:$LINENO: result: yes" >&5
13101 echo "${ECHO_T}yes" >&6
13102         ;;
13103 xno)
13104         echo "$as_me:$LINENO: result: no" >&5
13105 echo "${ECHO_T}no" >&6
13106         ;;
13107 esac
13108
13109       ;;
13110     dld)
13111       echo "$as_me:$LINENO: result: use dl_dld.c" >&5
13112 echo "${ECHO_T}use dl_dld.c" >&6
13113       SYSEXTRAS="$SYSEXTRAS dl_dld.c"
13114       ;;
13115     hpux)
13116       echo "$as_me:$LINENO: result: use dl_hpux.c" >&5
13117 echo "${ECHO_T}use dl_hpux.c" >&6
13118       SYSEXTRAS="$SYSEXTRAS dl_hpux.c"
13119       LDFLAGS="$LDFLAGS -Wl,-E $LDFLAGS"
13120       ;;
13121     w32)
13122       echo "$as_me:$LINENO: result: use dl_w32.c" >&5
13123 echo "${ECHO_T}use dl_w32.c" >&6
13124       SYSEXTRAS="$SYSEXTRAS dl_w32.c"
13125       ;;
13126     dyld)
13127       echo "$as_me:$LINENO: result: use dl_dyld.c" >&5
13128 echo "${ECHO_T}use dl_dyld.c" >&6
13129       SYSEXTRAS="$SYSEXTRAS dl_dyld.c"
13130       ;;
13131     *)
13132       NEEDDLOPEN="no"
13133       { echo "$as_me:$LINENO: WARNING: no method to open a shared object" >&5
13134 echo "$as_me: WARNING: no method to open a shared object" >&2;}
13135       ;;
13136   esac
13137 fi
13138
13139 if test "$NEEDDLOPEN" = "yes"; then
13140   cat >> confdefs.h <<EOF
13141 #define IA_DYNAMIC 1
13142 EOF
13143
13144
13145 cat >>confdefs.h <<_ACEOF
13146 #define SHARED_LIB_EXT ".$so"
13147 _ACEOF
13148
13149       test "x$GCC" = xyes -a "x$timidity_cv_ccoption_rdynamic" = xyes  && timidity_LDFLAGS="-rdynamic"
13150 fi
13151
13152
13153
13154 if test "$NEEDDLOPEN" = "yes"; then
13155   NEEDDLOPEN_TRUE=
13156   NEEDDLOPEN_FALSE='#'
13157 else
13158   NEEDDLOPEN_TRUE='#'
13159   NEEDDLOPEN_FALSE=
13160 fi
13161
13162
13163
13164
13165
13166 if false; then
13167   ENABLE_NCURSES_TRUE=
13168   ENABLE_NCURSES_FALSE='#'
13169 else
13170   ENABLE_NCURSES_TRUE='#'
13171   ENABLE_NCURSES_FALSE=
13172 fi
13173
13174 # Check whether --enable-ncurses or --disable-ncurses was given.
13175 if test "${enable_ncurses+set}" = set; then
13176   enableval="$enable_ncurses"
13177   case "x$enable_ncurses" in xyes|xdynamic)
13178
13179
13180 for ac_header in ncurses.h ncurses/curses.h curses.h
13181 do
13182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13184   echo "$as_me:$LINENO: checking for $ac_header" >&5
13185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13187   echo $ECHO_N "(cached) $ECHO_C" >&6
13188 fi
13189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13191 else
13192   # Is the header compilable?
13193 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13195 cat >conftest.$ac_ext <<_ACEOF
13196 #line $LINENO "configure"
13197 /* confdefs.h.  */
13198 _ACEOF
13199 cat confdefs.h >>conftest.$ac_ext
13200 cat >>conftest.$ac_ext <<_ACEOF
13201 /* end confdefs.h.  */
13202 $ac_includes_default
13203 #include <$ac_header>
13204 _ACEOF
13205 rm -f conftest.$ac_objext
13206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13207   (eval $ac_compile) 2>&5
13208   ac_status=$?
13209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210   (exit $ac_status); } &&
13211          { ac_try='test -s conftest.$ac_objext'
13212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213   (eval $ac_try) 2>&5
13214   ac_status=$?
13215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216   (exit $ac_status); }; }; then
13217   ac_header_compiler=yes
13218 else
13219   echo "$as_me: failed program was:" >&5
13220 sed 's/^/| /' conftest.$ac_ext >&5
13221
13222 ac_header_compiler=no
13223 fi
13224 rm -f conftest.$ac_objext conftest.$ac_ext
13225 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13226 echo "${ECHO_T}$ac_header_compiler" >&6
13227
13228 # Is the header present?
13229 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13230 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13231 cat >conftest.$ac_ext <<_ACEOF
13232 #line $LINENO "configure"
13233 /* confdefs.h.  */
13234 _ACEOF
13235 cat confdefs.h >>conftest.$ac_ext
13236 cat >>conftest.$ac_ext <<_ACEOF
13237 /* end confdefs.h.  */
13238 #include <$ac_header>
13239 _ACEOF
13240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13241   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13242   ac_status=$?
13243   grep -v '^ *+' conftest.er1 >conftest.err
13244   rm -f conftest.er1
13245   cat conftest.err >&5
13246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247   (exit $ac_status); } >/dev/null; then
13248   if test -s conftest.err; then
13249     ac_cpp_err=$ac_c_preproc_warn_flag
13250   else
13251     ac_cpp_err=
13252   fi
13253 else
13254   ac_cpp_err=yes
13255 fi
13256 if test -z "$ac_cpp_err"; then
13257   ac_header_preproc=yes
13258 else
13259   echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13261
13262   ac_header_preproc=no
13263 fi
13264 rm -f conftest.err conftest.$ac_ext
13265 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13266 echo "${ECHO_T}$ac_header_preproc" >&6
13267
13268 # So?  What about this header?
13269 case $ac_header_compiler:$ac_header_preproc in
13270   yes:no )
13271     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13273     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13274 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13275     (
13276       cat <<\_ASBOX
13277 ## ------------------------------------ ##
13278 ## Report this to bug-autoconf@gnu.org. ##
13279 ## ------------------------------------ ##
13280 _ASBOX
13281     ) |
13282       sed "s/^/$as_me: WARNING:     /" >&2
13283     ;;
13284   no:yes )
13285     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13287     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13288 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13289     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13291     (
13292       cat <<\_ASBOX
13293 ## ------------------------------------ ##
13294 ## Report this to bug-autoconf@gnu.org. ##
13295 ## ------------------------------------ ##
13296 _ASBOX
13297     ) |
13298       sed "s/^/$as_me: WARNING:     /" >&2
13299     ;;
13300 esac
13301 echo "$as_me:$LINENO: checking for $ac_header" >&5
13302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13304   echo $ECHO_N "(cached) $ECHO_C" >&6
13305 else
13306   eval "$as_ac_Header=$ac_header_preproc"
13307 fi
13308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13310
13311 fi
13312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13313   cat >>confdefs.h <<_ACEOF
13314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13315 _ACEOF
13316
13317 fi
13318
13319 done
13320
13321
13322
13323   case "$ac_cv_header_curses_h$ac_cv_header_ncurses_curses_h$ac_cv_header_ncurses_h" in
13324     *yes*);;
13325     *)  for i in /usr/include /usr/local/include; do
13326           if test -f "$i/ncurses/curses.h" -a -f "$i/ncurses/unctrl.h"; then
13327             { echo "$as_me:$LINENO: WARNING: ncurses test is failure.  Please check config.h and common.makefile later" >&5
13328 echo "$as_me: WARNING: ncurses test is failure.  Please check config.h and common.makefile later" >&2;}
13329             CPPFLAGS="$CPPFLAGS -I$i/ncurses"
13330             break
13331           fi
13332         done
13333         ;;
13334     esac
13335
13336     echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
13337 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
13338 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
13339   echo $ECHO_N "(cached) $ECHO_C" >&6
13340 else
13341   ac_check_lib_save_LIBS=$LIBS
13342 LIBS="-lncurses  $LIBS"
13343 cat >conftest.$ac_ext <<_ACEOF
13344 #line $LINENO "configure"
13345 /* confdefs.h.  */
13346 _ACEOF
13347 cat confdefs.h >>conftest.$ac_ext
13348 cat >>conftest.$ac_ext <<_ACEOF
13349 /* end confdefs.h.  */
13350
13351 /* Override any gcc2 internal prototype to avoid an error.  */
13352 #ifdef __cplusplus
13353 extern "C"
13354 #endif
13355 /* We use char because int might match the return type of a gcc2
13356    builtin and then its argument prototype would still apply.  */
13357 char initscr ();
13358 int
13359 main ()
13360 {
13361 initscr ();
13362   ;
13363   return 0;
13364 }
13365 _ACEOF
13366 rm -f conftest.$ac_objext conftest$ac_exeext
13367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13368   (eval $ac_link) 2>&5
13369   ac_status=$?
13370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371   (exit $ac_status); } &&
13372          { ac_try='test -s conftest$ac_exeext'
13373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13374   (eval $ac_try) 2>&5
13375   ac_status=$?
13376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377   (exit $ac_status); }; }; then
13378   ac_cv_lib_ncurses_initscr=yes
13379 else
13380   echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.$ac_ext >&5
13382
13383 ac_cv_lib_ncurses_initscr=no
13384 fi
13385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13386 LIBS=$ac_check_lib_save_LIBS
13387 fi
13388 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
13389 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
13390 if test $ac_cv_lib_ncurses_initscr = yes; then
13391   lib_curses_opt=-lncurses
13392 else
13393         echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lcurses" >&5
13394 echo $ECHO_N "checking for PDC_set_ctrl_break in -lcurses... $ECHO_C" >&6
13395 if test "${ac_cv_lib_curses_PDC_set_ctrl_break+set}" = set; then
13396   echo $ECHO_N "(cached) $ECHO_C" >&6
13397 else
13398   ac_check_lib_save_LIBS=$LIBS
13399 LIBS="-lcurses $lib_user32_test $LIBS"
13400 cat >conftest.$ac_ext <<_ACEOF
13401 #line $LINENO "configure"
13402 /* confdefs.h.  */
13403 _ACEOF
13404 cat confdefs.h >>conftest.$ac_ext
13405 cat >>conftest.$ac_ext <<_ACEOF
13406 /* end confdefs.h.  */
13407
13408 /* Override any gcc2 internal prototype to avoid an error.  */
13409 #ifdef __cplusplus
13410 extern "C"
13411 #endif
13412 /* We use char because int might match the return type of a gcc2
13413    builtin and then its argument prototype would still apply.  */
13414 char PDC_set_ctrl_break ();
13415 int
13416 main ()
13417 {
13418 PDC_set_ctrl_break ();
13419   ;
13420   return 0;
13421 }
13422 _ACEOF
13423 rm -f conftest.$ac_objext conftest$ac_exeext
13424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13425   (eval $ac_link) 2>&5
13426   ac_status=$?
13427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428   (exit $ac_status); } &&
13429          { ac_try='test -s conftest$ac_exeext'
13430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13431   (eval $ac_try) 2>&5
13432   ac_status=$?
13433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434   (exit $ac_status); }; }; then
13435   ac_cv_lib_curses_PDC_set_ctrl_break=yes
13436 else
13437   echo "$as_me: failed program was:" >&5
13438 sed 's/^/| /' conftest.$ac_ext >&5
13439
13440 ac_cv_lib_curses_PDC_set_ctrl_break=no
13441 fi
13442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13443 LIBS=$ac_check_lib_save_LIBS
13444 fi
13445 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_PDC_set_ctrl_break" >&5
13446 echo "${ECHO_T}$ac_cv_lib_curses_PDC_set_ctrl_break" >&6
13447 if test $ac_cv_lib_curses_PDC_set_ctrl_break = yes; then
13448    lib_curses_opt=-lcurses
13449
13450 cat >>confdefs.h <<\_ACEOF
13451 #define USE_PDCURSES 1
13452 _ACEOF
13453
13454             lib_user32_opt="$lib_user32_test"
13455
13456 else
13457             echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lpdcurses" >&5
13458 echo $ECHO_N "checking for PDC_set_ctrl_break in -lpdcurses... $ECHO_C" >&6
13459 if test "${ac_cv_lib_pdcurses_PDC_set_ctrl_break+set}" = set; then
13460   echo $ECHO_N "(cached) $ECHO_C" >&6
13461 else
13462   ac_check_lib_save_LIBS=$LIBS
13463 LIBS="-lpdcurses  $LIBS"
13464 cat >conftest.$ac_ext <<_ACEOF
13465 #line $LINENO "configure"
13466 /* confdefs.h.  */
13467 _ACEOF
13468 cat confdefs.h >>conftest.$ac_ext
13469 cat >>conftest.$ac_ext <<_ACEOF
13470 /* end confdefs.h.  */
13471
13472 /* Override any gcc2 internal prototype to avoid an error.  */
13473 #ifdef __cplusplus
13474 extern "C"
13475 #endif
13476 /* We use char because int might match the return type of a gcc2
13477    builtin and then its argument prototype would still apply.  */
13478 char PDC_set_ctrl_break ();
13479 int
13480 main ()
13481 {
13482 PDC_set_ctrl_break ();
13483   ;
13484   return 0;
13485 }
13486 _ACEOF
13487 rm -f conftest.$ac_objext conftest$ac_exeext
13488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13489   (eval $ac_link) 2>&5
13490   ac_status=$?
13491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492   (exit $ac_status); } &&
13493          { ac_try='test -s conftest$ac_exeext'
13494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495   (eval $ac_try) 2>&5
13496   ac_status=$?
13497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498   (exit $ac_status); }; }; then
13499   ac_cv_lib_pdcurses_PDC_set_ctrl_break=yes
13500 else
13501   echo "$as_me: failed program was:" >&5
13502 sed 's/^/| /' conftest.$ac_ext >&5
13503
13504 ac_cv_lib_pdcurses_PDC_set_ctrl_break=no
13505 fi
13506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13507 LIBS=$ac_check_lib_save_LIBS
13508 fi
13509 echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&5
13510 echo "${ECHO_T}$ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&6
13511 if test $ac_cv_lib_pdcurses_PDC_set_ctrl_break = yes; then
13512    lib_curses_opt=-lpdcurses
13513
13514 cat >>confdefs.h <<\_ACEOF
13515 #define USE_PDCURSES 1
13516 _ACEOF
13517
13518               lib_user32_opt="$lib_user32_test"
13519
13520 else
13521               case "$target" in
13522                 *openbsd*)
13523                   echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
13524 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
13525 if test "${ac_cv_lib_curses_initscr+set}" = set; then
13526   echo $ECHO_N "(cached) $ECHO_C" >&6
13527 else
13528   ac_check_lib_save_LIBS=$LIBS
13529 LIBS="-lcurses  $LIBS"
13530 cat >conftest.$ac_ext <<_ACEOF
13531 #line $LINENO "configure"
13532 /* confdefs.h.  */
13533 _ACEOF
13534 cat confdefs.h >>conftest.$ac_ext
13535 cat >>conftest.$ac_ext <<_ACEOF
13536 /* end confdefs.h.  */
13537
13538 /* Override any gcc2 internal prototype to avoid an error.  */
13539 #ifdef __cplusplus
13540 extern "C"
13541 #endif
13542 /* We use char because int might match the return type of a gcc2
13543    builtin and then its argument prototype would still apply.  */
13544 char initscr ();
13545 int
13546 main ()
13547 {
13548 initscr ();
13549   ;
13550   return 0;
13551 }
13552 _ACEOF
13553 rm -f conftest.$ac_objext conftest$ac_exeext
13554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13555   (eval $ac_link) 2>&5
13556   ac_status=$?
13557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558   (exit $ac_status); } &&
13559          { ac_try='test -s conftest$ac_exeext'
13560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13561   (eval $ac_try) 2>&5
13562   ac_status=$?
13563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564   (exit $ac_status); }; }; then
13565   ac_cv_lib_curses_initscr=yes
13566 else
13567   echo "$as_me: failed program was:" >&5
13568 sed 's/^/| /' conftest.$ac_ext >&5
13569
13570 ac_cv_lib_curses_initscr=no
13571 fi
13572 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13573 LIBS=$ac_check_lib_save_LIBS
13574 fi
13575 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
13576 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
13577 if test $ac_cv_lib_curses_initscr = yes; then
13578   lib_curses_opt=-lcurses
13579 else
13580    { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
13581 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
13582                       enable_ncurses=no
13583 fi
13584
13585                   ;;
13586                 *)
13587                   { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
13588 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
13589                   enable_ncurses=no
13590                   ;;
13591               esac
13592
13593 fi
13594
13595
13596 fi
13597
13598
13599 fi
13600
13601    ;; esac
13602 fi;
13603 case "x$enable_ncurses" in
13604 xyes)
13605   cat >> confdefs.h <<EOF
13606 #define IA_NCURSES 1
13607 EOF
13608
13609
13610
13611 if true; then
13612   ENABLE_NCURSES_TRUE=
13613   ENABLE_NCURSES_FALSE='#'
13614 else
13615   ENABLE_NCURSES_TRUE='#'
13616   ENABLE_NCURSES_FALSE=
13617 fi
13618
13619    LIBS="$LIBS $lib_curses_opt"
13620     case "$target" in
13621        *-*-freebsd123*)
13622          EXTRALIBS="$EXTRALIBS -lmytinfo"
13623          ;;
13624      esac
13625     INTERFACE_SRCS="$INTERFACE_SRCS ncurs_c.c"
13626
13627   ;;
13628 xdynamic)
13629   dynamic_targets="$dynamic_targets interface_n.\$(so)"
13630    n_so_libs="$lib_curses_opt"
13631     case "$target" in
13632        *-*-freebsd123*)
13633          EXTRALIBS="$EXTRALIBS -lmytinfo"
13634          ;;
13635      esac
13636   ;;
13637 *)
13638
13639   ;;
13640 esac
13641
13642
13643
13644
13645
13646 if false; then
13647   ENABLE_SLANG_TRUE=
13648   ENABLE_SLANG_FALSE='#'
13649 else
13650   ENABLE_SLANG_TRUE='#'
13651   ENABLE_SLANG_FALSE=
13652 fi
13653
13654 # Check whether --enable-slang or --disable-slang was given.
13655 if test "${enable_slang+set}" = set; then
13656   enableval="$enable_slang"
13657   case "x$enable_slang" in xyes|xdynamic)  echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5
13658 echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6
13659 if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then
13660   echo $ECHO_N "(cached) $ECHO_C" >&6
13661 else
13662   ac_check_lib_save_LIBS=$LIBS
13663 LIBS="-lslang  $LIBS"
13664 cat >conftest.$ac_ext <<_ACEOF
13665 #line $LINENO "configure"
13666 /* confdefs.h.  */
13667 _ACEOF
13668 cat confdefs.h >>conftest.$ac_ext
13669 cat >>conftest.$ac_ext <<_ACEOF
13670 /* end confdefs.h.  */
13671
13672 /* Override any gcc2 internal prototype to avoid an error.  */
13673 #ifdef __cplusplus
13674 extern "C"
13675 #endif
13676 /* We use char because int might match the return type of a gcc2
13677    builtin and then its argument prototype would still apply.  */
13678 char SLang_init_tty ();
13679 int
13680 main ()
13681 {
13682 SLang_init_tty ();
13683   ;
13684   return 0;
13685 }
13686 _ACEOF
13687 rm -f conftest.$ac_objext conftest$ac_exeext
13688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13689   (eval $ac_link) 2>&5
13690   ac_status=$?
13691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692   (exit $ac_status); } &&
13693          { ac_try='test -s conftest$ac_exeext'
13694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13695   (eval $ac_try) 2>&5
13696   ac_status=$?
13697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698   (exit $ac_status); }; }; then
13699   ac_cv_lib_slang_SLang_init_tty=yes
13700 else
13701   echo "$as_me: failed program was:" >&5
13702 sed 's/^/| /' conftest.$ac_ext >&5
13703
13704 ac_cv_lib_slang_SLang_init_tty=no
13705 fi
13706 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13707 LIBS=$ac_check_lib_save_LIBS
13708 fi
13709 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5
13710 echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6
13711 if test $ac_cv_lib_slang_SLang_init_tty = yes; then
13712   :
13713 else
13714    enable_slang=no
13715       { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
13716 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
13717
13718 fi
13719
13720
13721
13722 for ac_header in slang/slang.h slang.h
13723 do
13724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13726   echo "$as_me:$LINENO: checking for $ac_header" >&5
13727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13729   echo $ECHO_N "(cached) $ECHO_C" >&6
13730 fi
13731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13733 else
13734   # Is the header compilable?
13735 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13736 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13737 cat >conftest.$ac_ext <<_ACEOF
13738 #line $LINENO "configure"
13739 /* confdefs.h.  */
13740 _ACEOF
13741 cat confdefs.h >>conftest.$ac_ext
13742 cat >>conftest.$ac_ext <<_ACEOF
13743 /* end confdefs.h.  */
13744 $ac_includes_default
13745 #include <$ac_header>
13746 _ACEOF
13747 rm -f conftest.$ac_objext
13748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13749   (eval $ac_compile) 2>&5
13750   ac_status=$?
13751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752   (exit $ac_status); } &&
13753          { ac_try='test -s conftest.$ac_objext'
13754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13755   (eval $ac_try) 2>&5
13756   ac_status=$?
13757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758   (exit $ac_status); }; }; then
13759   ac_header_compiler=yes
13760 else
13761   echo "$as_me: failed program was:" >&5
13762 sed 's/^/| /' conftest.$ac_ext >&5
13763
13764 ac_header_compiler=no
13765 fi
13766 rm -f conftest.$ac_objext conftest.$ac_ext
13767 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13768 echo "${ECHO_T}$ac_header_compiler" >&6
13769
13770 # Is the header present?
13771 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13772 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13773 cat >conftest.$ac_ext <<_ACEOF
13774 #line $LINENO "configure"
13775 /* confdefs.h.  */
13776 _ACEOF
13777 cat confdefs.h >>conftest.$ac_ext
13778 cat >>conftest.$ac_ext <<_ACEOF
13779 /* end confdefs.h.  */
13780 #include <$ac_header>
13781 _ACEOF
13782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13783   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13784   ac_status=$?
13785   grep -v '^ *+' conftest.er1 >conftest.err
13786   rm -f conftest.er1
13787   cat conftest.err >&5
13788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789   (exit $ac_status); } >/dev/null; then
13790   if test -s conftest.err; then
13791     ac_cpp_err=$ac_c_preproc_warn_flag
13792   else
13793     ac_cpp_err=
13794   fi
13795 else
13796   ac_cpp_err=yes
13797 fi
13798 if test -z "$ac_cpp_err"; then
13799   ac_header_preproc=yes
13800 else
13801   echo "$as_me: failed program was:" >&5
13802 sed 's/^/| /' conftest.$ac_ext >&5
13803
13804   ac_header_preproc=no
13805 fi
13806 rm -f conftest.err conftest.$ac_ext
13807 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13808 echo "${ECHO_T}$ac_header_preproc" >&6
13809
13810 # So?  What about this header?
13811 case $ac_header_compiler:$ac_header_preproc in
13812   yes:no )
13813     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13815     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13817     (
13818       cat <<\_ASBOX
13819 ## ------------------------------------ ##
13820 ## Report this to bug-autoconf@gnu.org. ##
13821 ## ------------------------------------ ##
13822 _ASBOX
13823     ) |
13824       sed "s/^/$as_me: WARNING:     /" >&2
13825     ;;
13826   no:yes )
13827     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13829     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13831     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13833     (
13834       cat <<\_ASBOX
13835 ## ------------------------------------ ##
13836 ## Report this to bug-autoconf@gnu.org. ##
13837 ## ------------------------------------ ##
13838 _ASBOX
13839     ) |
13840       sed "s/^/$as_me: WARNING:     /" >&2
13841     ;;
13842 esac
13843 echo "$as_me:$LINENO: checking for $ac_header" >&5
13844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13846   echo $ECHO_N "(cached) $ECHO_C" >&6
13847 else
13848   eval "$as_ac_Header=$ac_header_preproc"
13849 fi
13850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13852
13853 fi
13854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13855   cat >>confdefs.h <<_ACEOF
13856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13857 _ACEOF
13858
13859 fi
13860
13861 done
13862
13863    ;; esac
13864 fi;
13865 case "x$enable_slang" in
13866 xyes)
13867   cat >> confdefs.h <<EOF
13868 #define IA_SLANG 1
13869 EOF
13870
13871
13872
13873 if true; then
13874   ENABLE_SLANG_TRUE=
13875   ENABLE_SLANG_FALSE='#'
13876 else
13877   ENABLE_SLANG_TRUE='#'
13878   ENABLE_SLANG_FALSE=
13879 fi
13880
13881    LIBS="$LIBS -lslang"
13882     INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
13883
13884   ;;
13885 xdynamic)
13886   dynamic_targets="$dynamic_targets interface_s.\$(so)"
13887    s_so_libs="-lslang"
13888     echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
13889 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6
13890 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
13891   echo $ECHO_N "(cached) $ECHO_C" >&6
13892 else
13893   ac_check_lib_save_LIBS=$LIBS
13894 LIBS="-ltermcap  $LIBS"
13895 cat >conftest.$ac_ext <<_ACEOF
13896 #line $LINENO "configure"
13897 /* confdefs.h.  */
13898 _ACEOF
13899 cat confdefs.h >>conftest.$ac_ext
13900 cat >>conftest.$ac_ext <<_ACEOF
13901 /* end confdefs.h.  */
13902
13903 /* Override any gcc2 internal prototype to avoid an error.  */
13904 #ifdef __cplusplus
13905 extern "C"
13906 #endif
13907 /* We use char because int might match the return type of a gcc2
13908    builtin and then its argument prototype would still apply.  */
13909 char initscr ();
13910 int
13911 main ()
13912 {
13913 initscr ();
13914   ;
13915   return 0;
13916 }
13917 _ACEOF
13918 rm -f conftest.$ac_objext conftest$ac_exeext
13919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13920   (eval $ac_link) 2>&5
13921   ac_status=$?
13922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923   (exit $ac_status); } &&
13924          { ac_try='test -s conftest$ac_exeext'
13925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926   (eval $ac_try) 2>&5
13927   ac_status=$?
13928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929   (exit $ac_status); }; }; then
13930   ac_cv_lib_termcap_initscr=yes
13931 else
13932   echo "$as_me: failed program was:" >&5
13933 sed 's/^/| /' conftest.$ac_ext >&5
13934
13935 ac_cv_lib_termcap_initscr=no
13936 fi
13937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13938 LIBS=$ac_check_lib_save_LIBS
13939 fi
13940 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
13941 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6
13942 if test $ac_cv_lib_termcap_initscr = yes; then
13943   s_so_libs="$s_so_libs -ltermcap"
13944 fi
13945
13946
13947   ;;
13948 *)
13949
13950   ;;
13951 esac
13952
13953
13954
13955
13956
13957 if false; then
13958   ENABLE_MOTIF_TRUE=
13959   ENABLE_MOTIF_FALSE='#'
13960 else
13961   ENABLE_MOTIF_TRUE='#'
13962   ENABLE_MOTIF_FALSE=
13963 fi
13964
13965 # Check whether --enable-motif or --disable-motif was given.
13966 if test "${enable_motif+set}" = set; then
13967   enableval="$enable_motif"
13968   case "x$enable_motif" in xyes|xdynamic)  if test "x$with_x" != xyes; then
13969         { { echo "$as_me:$LINENO: error: motif: --with-x option must be specified" >&5
13970 echo "$as_me: error: motif: --with-x option must be specified" >&2;}
13971    { (exit 1); exit 1; }; }
13972     fi
13973     if test "x$have_xm" != xyes; then
13974       { echo "$as_me:$LINENO: WARNING: Motif library is not found." >&5
13975 echo "$as_me: WARNING: Motif library is not found." >&2;}
13976       enable_motif=no
13977     fi
13978    ;; esac
13979 fi;
13980 case "x$enable_motif" in
13981 xyes)
13982   cat >> confdefs.h <<EOF
13983 #define IA_MOTIF 1
13984 EOF
13985
13986
13987
13988 if true; then
13989   ENABLE_MOTIF_TRUE=
13990   ENABLE_MOTIF_FALSE='#'
13991 else
13992   ENABLE_MOTIF_TRUE='#'
13993   ENABLE_MOTIF_FALSE=
13994 fi
13995
13996    lib_xm_opt=-lXm
13997     lib_xt_opt=-lXt
13998     lib_xext_opt=-lXext
13999     if test "x$have_xprelibs" = xyes; then
14000         lib_xprelibs_opt='-lSM -lICE'
14001     fi
14002     INTERFACE_SRCS="$INTERFACE_SRCS motif_c.c motif_i.c motif_p.c"
14003
14004   ;;
14005 xdynamic)
14006   dynamic_targets="$dynamic_targets interface_m.\$(so)"
14007    if test x$have_xprelibs = xyes; then
14008       m_so_libs="-lXext -lSM -lICE"
14009     fi
14010     m_so_libs="$ldflags_x_opt -lXm -lXt $m_so_libs -lX11"
14011
14012   ;;
14013 *)
14014
14015   ;;
14016 esac
14017
14018
14019
14020
14021
14022 if false; then
14023   ENABLE_TCLTK_TRUE=
14024   ENABLE_TCLTK_FALSE='#'
14025 else
14026   ENABLE_TCLTK_TRUE='#'
14027   ENABLE_TCLTK_FALSE=
14028 fi
14029
14030 # Check whether --enable-tcltk or --disable-tcltk was given.
14031 if test "${enable_tcltk+set}" = set; then
14032   enableval="$enable_tcltk"
14033   case "x$enable_tcltk" in xyes|xdynamic)  if test "x$with_x" != xyes; then
14034         { { echo "$as_me:$LINENO: error: tcltk: --with-x option must be specified" >&5
14035 echo "$as_me: error: tcltk: --with-x option must be specified" >&2;}
14036    { (exit 1); exit 1; }; }
14037     fi
14038
14039         KEEPCPPFLAGS=$CPPFLAGS
14040     KEEPLDFLAGS=$LDFLAGS
14041     KEEPLIBS=$LIBS
14042
14043     CPPFLAGS="$tcl_include_dir $tk_includes $CPPFLAGS"
14044     LDFLAGS="$tcl_libdir $tk_libdir $LDFLAGS"
14045     LIBS="$LIBS $lib_dl_opt"
14046
14047     tcl_lib=
14048     tk_lib=
14049     for l in tcl tcl8.0jp tcl7.6jp tcl80jp tcl76jp tcl8.0 tcl7.6 tcl80 tcl76 tcl8.3 tcl8.4; do
14050       case "x$tcl_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tcl_Init" | $as_tr_sh`
14051 echo "$as_me:$LINENO: checking for Tcl_Init in -l$l" >&5
14052 echo $ECHO_N "checking for Tcl_Init in -l$l... $ECHO_C" >&6
14053 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
14054   echo $ECHO_N "(cached) $ECHO_C" >&6
14055 else
14056   ac_check_lib_save_LIBS=$LIBS
14057 LIBS="-l$l  $LIBS"
14058 cat >conftest.$ac_ext <<_ACEOF
14059 #line $LINENO "configure"
14060 /* confdefs.h.  */
14061 _ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h.  */
14065
14066 /* Override any gcc2 internal prototype to avoid an error.  */
14067 #ifdef __cplusplus
14068 extern "C"
14069 #endif
14070 /* We use char because int might match the return type of a gcc2
14071    builtin and then its argument prototype would still apply.  */
14072 char Tcl_Init ();
14073 int
14074 main ()
14075 {
14076 Tcl_Init ();
14077   ;
14078   return 0;
14079 }
14080 _ACEOF
14081 rm -f conftest.$ac_objext conftest$ac_exeext
14082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14083   (eval $ac_link) 2>&5
14084   ac_status=$?
14085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086   (exit $ac_status); } &&
14087          { ac_try='test -s conftest$ac_exeext'
14088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14089   (eval $ac_try) 2>&5
14090   ac_status=$?
14091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092   (exit $ac_status); }; }; then
14093   eval "$as_ac_Lib=yes"
14094 else
14095   echo "$as_me: failed program was:" >&5
14096 sed 's/^/| /' conftest.$ac_ext >&5
14097
14098 eval "$as_ac_Lib=no"
14099 fi
14100 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14101 LIBS=$ac_check_lib_save_LIBS
14102 fi
14103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
14104 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
14105 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
14106   tcl_lib=-l$l
14107 fi
14108 ;; esac
14109     done
14110     LIBS="$LIBS $tcl_lib"
14111     for l in tk tk8.0jp tk4.2jp tk80jp tk42jp tk8.0 tk4.2 tk80 tk42 tk8.3 tk8.4; do
14112       case "x$tk_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tk_Init" | $as_tr_sh`
14113 echo "$as_me:$LINENO: checking for Tk_Init in -l$l" >&5
14114 echo $ECHO_N "checking for Tk_Init in -l$l... $ECHO_C" >&6
14115 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
14116   echo $ECHO_N "(cached) $ECHO_C" >&6
14117 else
14118   ac_check_lib_save_LIBS=$LIBS
14119 LIBS="-l$l  $LIBS"
14120 cat >conftest.$ac_ext <<_ACEOF
14121 #line $LINENO "configure"
14122 /* confdefs.h.  */
14123 _ACEOF
14124 cat confdefs.h >>conftest.$ac_ext
14125 cat >>conftest.$ac_ext <<_ACEOF
14126 /* end confdefs.h.  */
14127
14128 /* Override any gcc2 internal prototype to avoid an error.  */
14129 #ifdef __cplusplus
14130 extern "C"
14131 #endif
14132 /* We use char because int might match the return type of a gcc2
14133    builtin and then its argument prototype would still apply.  */
14134 char Tk_Init ();
14135 int
14136 main ()
14137 {
14138 Tk_Init ();
14139   ;
14140   return 0;
14141 }
14142 _ACEOF
14143 rm -f conftest.$ac_objext conftest$ac_exeext
14144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14145   (eval $ac_link) 2>&5
14146   ac_status=$?
14147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148   (exit $ac_status); } &&
14149          { ac_try='test -s conftest$ac_exeext'
14150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14151   (eval $ac_try) 2>&5
14152   ac_status=$?
14153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154   (exit $ac_status); }; }; then
14155   eval "$as_ac_Lib=yes"
14156 else
14157   echo "$as_me: failed program was:" >&5
14158 sed 's/^/| /' conftest.$ac_ext >&5
14159
14160 eval "$as_ac_Lib=no"
14161 fi
14162 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14163 LIBS=$ac_check_lib_save_LIBS
14164 fi
14165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
14166 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
14167 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
14168   tk_lib=-l$l
14169 fi
14170 ;; esac
14171     done
14172
14173     LIBS=$KEEPLIBS
14174     if test "x$tcl_lib" = x -o "x$tk_lib" = x; then
14175       CPPFLAGS=$KEEPCPPFLAGS
14176       LDFLAGS=$KEEPLDFLAGS
14177       enable_tcltk=no
14178       { echo "$as_me:$LINENO: WARNING: tcl/tk is not enable" >&5
14179 echo "$as_me: WARNING: tcl/tk is not enable" >&2;}
14180     else
14181       tcltk_dep='tclIndex'
14182     fi
14183    ;; esac
14184 fi;
14185 case "x$enable_tcltk" in
14186 xyes)
14187   cat >> confdefs.h <<EOF
14188 #define IA_TCLTK 1
14189 EOF
14190
14191
14192
14193 if true; then
14194   ENABLE_TCLTK_TRUE=
14195   ENABLE_TCLTK_FALSE='#'
14196 else
14197   ENABLE_TCLTK_TRUE='#'
14198   ENABLE_TCLTK_FALSE=
14199 fi
14200
14201    LIBS=`echo $LIBS | sed "s/-lX11/$tk_lib $tcl_lib -lX11/"`
14202     case "$target" in
14203       *-*-bsdi*)
14204         EXTRALIBS="$EXTRALIBS -lipc"
14205         ;;
14206     esac
14207     INTERFACE_SRCS="$INTERFACE_SRCS tk_c.c"
14208
14209   ;;
14210 xdynamic)
14211   dynamic_targets="$dynamic_targets interface_k.\$(so)"
14212    k_so_libs="$tcl_libdir $tk_libdir $tcl_lib $tk_lib $lib_dl_opt"
14213     case "$target" in
14214       *-*-bsdi*)
14215         k_so_libs="$k_so_libs -lipc"
14216         ;;
14217     esac
14218     k_so_libs="$k_so_libs -lX11 -lm"
14219
14220   ;;
14221 *)
14222
14223   ;;
14224 esac
14225
14226
14227
14228
14229 if test "x$enable_tcltk" = "xdynamic"; then
14230   ENABLE_DYNAMIC_TCLTK_TRUE=
14231   ENABLE_DYNAMIC_TCLTK_FALSE='#'
14232 else
14233   ENABLE_DYNAMIC_TCLTK_TRUE='#'
14234   ENABLE_DYNAMIC_TCLTK_FALSE=
14235 fi
14236
14237
14238
14239
14240 if false; then
14241   ENABLE_EMACS_TRUE=
14242   ENABLE_EMACS_FALSE='#'
14243 else
14244   ENABLE_EMACS_TRUE='#'
14245   ENABLE_EMACS_FALSE=
14246 fi
14247
14248 # Check whether --enable-emacs or --disable-emacs was given.
14249 if test "${enable_emacs+set}" = set; then
14250   enableval="$enable_emacs"
14251   case "x$enable_emacs" in xyes|xdynamic)  ;; esac
14252 fi;
14253 case "x$enable_emacs" in
14254 xyes)
14255   cat >> confdefs.h <<EOF
14256 #define IA_EMACS 1
14257 EOF
14258
14259
14260
14261 if true; then
14262   ENABLE_EMACS_TRUE=
14263   ENABLE_EMACS_FALSE='#'
14264 else
14265   ENABLE_EMACS_TRUE='#'
14266   ENABLE_EMACS_FALSE=
14267 fi
14268
14269    ELFILES="$ELFILES timidity.el"
14270     INTERFACE_SRCS="$INTERFACE_SRCS emacs_c.c"
14271
14272   ;;
14273 xdynamic)
14274   dynamic_targets="$dynamic_targets interface_e.\$(so)"
14275    ELFILES="$ELFILES timidity.el"
14276   ;;
14277 *)
14278
14279   ;;
14280 esac
14281
14282
14283
14284
14285
14286 if false; then
14287   ENABLE_VT100_TRUE=
14288   ENABLE_VT100_FALSE='#'
14289 else
14290   ENABLE_VT100_TRUE='#'
14291   ENABLE_VT100_FALSE=
14292 fi
14293
14294 # Check whether --enable-vt100 or --disable-vt100 was given.
14295 if test "${enable_vt100+set}" = set; then
14296   enableval="$enable_vt100"
14297   case "x$enable_vt100" in xyes|xdynamic)  ;; esac
14298 fi;
14299 case "x$enable_vt100" in
14300 xyes)
14301   cat >> confdefs.h <<EOF
14302 #define IA_VT100 1
14303 EOF
14304
14305
14306
14307 if true; then
14308   ENABLE_VT100_TRUE=
14309   ENABLE_VT100_FALSE='#'
14310 else
14311   ENABLE_VT100_TRUE='#'
14312   ENABLE_VT100_FALSE=
14313 fi
14314
14315    INTERFACE_SRCS="$INTERFACE_SRCS vt100_c.c vt100.c"
14316   ;;
14317 xdynamic)
14318   dynamic_targets="$dynamic_targets interface_T.\$(so)"
14319
14320   ;;
14321 *)
14322
14323   ;;
14324 esac
14325
14326
14327
14328
14329
14330 if false; then
14331   ENABLE_XAW_TRUE=
14332   ENABLE_XAW_FALSE='#'
14333 else
14334   ENABLE_XAW_TRUE='#'
14335   ENABLE_XAW_FALSE=
14336 fi
14337
14338 # Check whether --enable-xaw or --disable-xaw was given.
14339 if test "${enable_xaw+set}" = set; then
14340   enableval="$enable_xaw"
14341   case "x$enable_xaw" in xyes|xdynamic)  if test "x$with_x" != xyes; then
14342         { { echo "$as_me:$LINENO: error: xaw: --with-x option must be specified" >&5
14343 echo "$as_me: error: xaw: --with-x option must be specified" >&2;}
14344    { (exit 1); exit 1; }; }
14345     fi
14346     if test "x$have_xaw" != "xyes" -a "x$have_xaw" != "x3d"; then
14347       { echo "$as_me:$LINENO: WARNING: X Athena Widget library is not found." >&5
14348 echo "$as_me: WARNING: X Athena Widget library is not found." >&2;}
14349       enable_xaw=no
14350     fi  ;; esac
14351 fi;
14352 case "x$enable_xaw" in
14353 xyes)
14354   cat >> confdefs.h <<EOF
14355 #define IA_XAW 1
14356 EOF
14357
14358
14359
14360 if true; then
14361   ENABLE_XAW_TRUE=
14362   ENABLE_XAW_FALSE='#'
14363 else
14364   ENABLE_XAW_TRUE='#'
14365   ENABLE_XAW_FALSE=
14366 fi
14367
14368        if test "x$have_xext" = xyes; then
14369       lib_xext_opt=-lXext
14370     fi
14371     if test "x$have_xprelibs" = xyes; then
14372       lib_xprelibs_opt='-lSM -lICE'
14373     fi
14374     lib_xmu_opt=-lXmu
14375     lib_xt_opt=-lXt
14376     if test "x$have_xaw" = x3d; then
14377
14378 cat >>confdefs.h <<\_ACEOF
14379 #define XAW3D 1
14380 _ACEOF
14381
14382       lib_xaw_opt=-lXaw3d
14383     else
14384       lib_xaw_opt=-lXaw
14385     fi
14386     INTERFACE_SRCS="$INTERFACE_SRCS xaw_c.c xaw_i.c"
14387
14388   ;;
14389 xdynamic)
14390   dynamic_targets="$dynamic_targets interface_a.\$(so)"
14391    if test "x$have_xext" = xyes; then
14392       a_so_libs="-lXext -lX11"
14393     else
14394       a_so_libs="-lX11"
14395     fi
14396     case "$target" in
14397       *darwin*)
14398         a_so_libs="$a_so_libs -lcc_dynamic"
14399         ;;
14400     esac
14401     if test "x$have_xprelibs" = xyes; then
14402       a_so_libs="-lSM -lICE $a_so_libs"
14403     fi
14404     if test "x$have_xaw" = xyes; then
14405       a_so_libs="-lXaw -lXmu -lXt $a_so_libs"
14406     elif test "x$have_xaw" = x3d; then
14407
14408 cat >>confdefs.h <<\_ACEOF
14409 #define XAW3D 1
14410 _ACEOF
14411
14412       a_so_libs="-lXaw3d -lXmu -lXt $a_so_libs"
14413     fi
14414     a_so_libs="$ldflags_x_opt $a_so_libs"
14415
14416   ;;
14417 *)
14418
14419   ;;
14420 esac
14421
14422
14423
14424
14425 if test "x$enable_xaw" = "xdynamic"; then
14426   ENABLE_DYNAMIC_XAW_TRUE=
14427   ENABLE_DYNAMIC_XAW_FALSE='#'
14428 else
14429   ENABLE_DYNAMIC_XAW_TRUE='#'
14430   ENABLE_DYNAMIC_XAW_FALSE=
14431 fi
14432
14433
14434
14435
14436 if false; then
14437   ENABLE_XSKIN_TRUE=
14438   ENABLE_XSKIN_FALSE='#'
14439 else
14440   ENABLE_XSKIN_TRUE='#'
14441   ENABLE_XSKIN_FALSE=
14442 fi
14443
14444 # Check whether --enable-xskin or --disable-xskin was given.
14445 if test "${enable_xskin+set}" = set; then
14446   enableval="$enable_xskin"
14447   case "x$enable_xskin" in xyes|xdynamic)  if test "x$with_x" != xyes; then
14448         { { echo "$as_me:$LINENO: error: xskin: --with-x option must be specified" >&5
14449 echo "$as_me: error: xskin: --with-x option must be specified" >&2;}
14450    { (exit 1); exit 1; }; }
14451     fi
14452    ;; esac
14453 fi;
14454 case "x$enable_xskin" in
14455 xyes)
14456   cat >> confdefs.h <<EOF
14457 #define IA_XSKIN 1
14458 EOF
14459
14460
14461
14462 if true; then
14463   ENABLE_XSKIN_TRUE=
14464   ENABLE_XSKIN_FALSE='#'
14465 else
14466   ENABLE_XSKIN_TRUE='#'
14467   ENABLE_XSKIN_FALSE=
14468 fi
14469
14470    INTERFACE_SRCS="$INTERFACE_SRCS xskin_c.c xskin_i.c xskin_loadBMP.c xskin_spectrum.c"
14471   ;;
14472 xdynamic)
14473   dynamic_targets="$dynamic_targets interface_i.\$(so)"
14474    i_so_libs="$ldflags_x_opt -lX11"
14475   ;;
14476 *)
14477
14478   ;;
14479 esac
14480
14481
14482
14483
14484
14485 if false; then
14486   ENABLE_GTK_TRUE=
14487   ENABLE_GTK_FALSE='#'
14488 else
14489   ENABLE_GTK_TRUE='#'
14490   ENABLE_GTK_FALSE=
14491 fi
14492
14493 # Check whether --enable-gtk or --disable-gtk was given.
14494 if test "${enable_gtk+set}" = set; then
14495   enableval="$enable_gtk"
14496   case "x$enable_gtk" in xyes|xdynamic)
14497 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
14498 if test "${with_gtk_prefix+set}" = set; then
14499   withval="$with_gtk_prefix"
14500   gtk_config_prefix="$withval"
14501 else
14502   gtk_config_prefix=""
14503 fi;
14504
14505 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
14506 if test "${with_gtk_exec_prefix+set}" = set; then
14507   withval="$with_gtk_exec_prefix"
14508   gtk_config_exec_prefix="$withval"
14509 else
14510   gtk_config_exec_prefix=""
14511 fi;
14512 # Check whether --enable-gtktest or --disable-gtktest was given.
14513 if test "${enable_gtktest+set}" = set; then
14514   enableval="$enable_gtktest"
14515
14516 else
14517   enable_gtktest=yes
14518 fi;
14519
14520   for module in .
14521   do
14522       case "$module" in
14523          gthread)
14524              gtk_config_args="$gtk_config_args gthread"
14525          ;;
14526       esac
14527   done
14528
14529   if test x$gtk_config_exec_prefix != x ; then
14530      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
14531      if test x${GTK_CONFIG+set} != xset ; then
14532         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
14533      fi
14534   fi
14535   if test x$gtk_config_prefix != x ; then
14536      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
14537      if test x${GTK_CONFIG+set} != xset ; then
14538         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
14539      fi
14540   fi
14541
14542   # Extract the first word of "gtk-config", so it can be a program name with args.
14543 set dummy gtk-config; ac_word=$2
14544 echo "$as_me:$LINENO: checking for $ac_word" >&5
14545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14546 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
14547   echo $ECHO_N "(cached) $ECHO_C" >&6
14548 else
14549   case $GTK_CONFIG in
14550   [\\/]* | ?:[\\/]*)
14551   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
14552   ;;
14553   *)
14554   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14555 for as_dir in $PATH
14556 do
14557   IFS=$as_save_IFS
14558   test -z "$as_dir" && as_dir=.
14559   for ac_exec_ext in '' $ac_executable_extensions; do
14560   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14561     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14563     break 2
14564   fi
14565 done
14566 done
14567
14568   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
14569   ;;
14570 esac
14571 fi
14572 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
14573
14574 if test -n "$GTK_CONFIG"; then
14575   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
14576 echo "${ECHO_T}$GTK_CONFIG" >&6
14577 else
14578   echo "$as_me:$LINENO: result: no" >&5
14579 echo "${ECHO_T}no" >&6
14580 fi
14581
14582   min_gtk_version=1.1.3
14583   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
14584 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
14585   no_gtk=""
14586   if test "$GTK_CONFIG" = "no" ; then
14587     no_gtk=yes
14588   else
14589     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
14590     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
14591     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
14592            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14593     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
14594            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14595     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
14596            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14597     if test "x$enable_gtktest" = "xyes" ; then
14598       ac_save_CFLAGS="$CFLAGS"
14599       ac_save_LIBS="$LIBS"
14600       CFLAGS="$CFLAGS $GTK_CFLAGS"
14601       LIBS="$GTK_LIBS $LIBS"
14602       rm -f conf.gtktest
14603       if test "$cross_compiling" = yes; then
14604   echo $ac_n "cross compiling; assumed OK... $ac_c"
14605 else
14606   cat >conftest.$ac_ext <<_ACEOF
14607 #line $LINENO "configure"
14608 /* confdefs.h.  */
14609 _ACEOF
14610 cat confdefs.h >>conftest.$ac_ext
14611 cat >>conftest.$ac_ext <<_ACEOF
14612 /* end confdefs.h.  */
14613
14614 #include <gtk/gtk.h>
14615 #include <stdio.h>
14616 #include <stdlib.h>
14617
14618 int
14619 main ()
14620 {
14621   int major, minor, micro;
14622   char *tmp_version;
14623
14624   system ("touch conf.gtktest");
14625
14626   /* HP/UX 9 (%@#!) writes to sscanf strings */
14627   tmp_version = g_strdup("$min_gtk_version");
14628   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14629      printf("%s, bad version string\n", "$min_gtk_version");
14630      exit(1);
14631    }
14632
14633   if ((gtk_major_version != $gtk_config_major_version) ||
14634       (gtk_minor_version != $gtk_config_minor_version) ||
14635       (gtk_micro_version != $gtk_config_micro_version))
14636     {
14637       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
14638              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
14639              gtk_major_version, gtk_minor_version, gtk_micro_version);
14640       printf ("*** was found! If gtk-config was correct, then it is best\n");
14641       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
14642       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
14643       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
14644       printf("*** required on your system.\n");
14645       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
14646       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
14647       printf("*** before re-running configure\n");
14648     }
14649 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
14650   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
14651            (gtk_minor_version != GTK_MINOR_VERSION) ||
14652            (gtk_micro_version != GTK_MICRO_VERSION))
14653     {
14654       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
14655              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
14656       printf("*** library (version %d.%d.%d)\n",
14657              gtk_major_version, gtk_minor_version, gtk_micro_version);
14658     }
14659 #endif /* defined (GTK_MAJOR_VERSION) ... */
14660   else
14661     {
14662       if ((gtk_major_version > major) ||
14663         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
14664         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
14665       {
14666         return 0;
14667        }
14668      else
14669       {
14670         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
14671                gtk_major_version, gtk_minor_version, gtk_micro_version);
14672         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
14673                major, minor, micro);
14674         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
14675         printf("***\n");
14676         printf("*** If you have already installed a sufficiently new version, this error\n");
14677         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
14678         printf("*** being found. The easiest way to fix this is to remove the old version\n");
14679         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
14680         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
14681         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
14682         printf("*** so that the correct libraries are found at run-time))\n");
14683       }
14684     }
14685   return 1;
14686 }
14687
14688 _ACEOF
14689 rm -f conftest$ac_exeext
14690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14691   (eval $ac_link) 2>&5
14692   ac_status=$?
14693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14696   (eval $ac_try) 2>&5
14697   ac_status=$?
14698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699   (exit $ac_status); }; }; then
14700   :
14701 else
14702   echo "$as_me: program exited with status $ac_status" >&5
14703 echo "$as_me: failed program was:" >&5
14704 sed 's/^/| /' conftest.$ac_ext >&5
14705
14706 ( exit $ac_status )
14707 no_gtk=yes
14708 fi
14709 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14710 fi
14711        CFLAGS="$ac_save_CFLAGS"
14712        LIBS="$ac_save_LIBS"
14713      fi
14714   fi
14715   if test "x$no_gtk" = x ; then
14716      echo "$as_me:$LINENO: result: yes" >&5
14717 echo "${ECHO_T}yes" >&6
14718      :
14719   else
14720      echo "$as_me:$LINENO: result: no" >&5
14721 echo "${ECHO_T}no" >&6
14722      if test "$GTK_CONFIG" = "no" ; then
14723        echo "*** The gtk-config script installed by GTK could not be found"
14724        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
14725        echo "*** your path, or set the GTK_CONFIG environment variable to the"
14726        echo "*** full path to gtk-config."
14727      else
14728        if test -f conf.gtktest ; then
14729         :
14730        else
14731           echo "*** Could not run GTK test program, checking why..."
14732           CFLAGS="$CFLAGS $GTK_CFLAGS"
14733           LIBS="$LIBS $GTK_LIBS"
14734           cat >conftest.$ac_ext <<_ACEOF
14735 #line $LINENO "configure"
14736 /* confdefs.h.  */
14737 _ACEOF
14738 cat confdefs.h >>conftest.$ac_ext
14739 cat >>conftest.$ac_ext <<_ACEOF
14740 /* end confdefs.h.  */
14741
14742 #include <gtk/gtk.h>
14743 #include <stdio.h>
14744
14745 int
14746 main ()
14747 {
14748  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
14749   ;
14750   return 0;
14751 }
14752 _ACEOF
14753 rm -f conftest.$ac_objext conftest$ac_exeext
14754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14755   (eval $ac_link) 2>&5
14756   ac_status=$?
14757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758   (exit $ac_status); } &&
14759          { ac_try='test -s conftest$ac_exeext'
14760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14761   (eval $ac_try) 2>&5
14762   ac_status=$?
14763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764   (exit $ac_status); }; }; then
14765    echo "*** The test program compiled, but did not run. This usually means"
14766           echo "*** that the run-time linker is not finding GTK or finding the wrong"
14767           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
14768           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14769           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14770           echo "*** is required on your system"
14771           echo "***"
14772           echo "*** If you have an old version installed, it is best to remove it, although"
14773           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14774           echo "***"
14775           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
14776           echo "*** came with the system with the command"
14777           echo "***"
14778           echo "***    rpm --erase --nodeps gtk gtk-devel"
14779 else
14780   echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.$ac_ext >&5
14782
14783  echo "*** The test program failed to compile or link. See the file config.log for the"
14784           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
14785           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
14786           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
14787 fi
14788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14789           CFLAGS="$ac_save_CFLAGS"
14790           LIBS="$ac_save_LIBS"
14791        fi
14792      fi
14793      GTK_CFLAGS=""
14794      GTK_LIBS=""
14795      enable_gtk=no
14796   fi
14797
14798
14799   rm -f conf.gtktest
14800   ;; esac
14801 fi;
14802 case "x$enable_gtk" in
14803 xyes)
14804   cat >> confdefs.h <<EOF
14805 #define IA_GTK 1
14806 EOF
14807
14808
14809
14810 if true; then
14811   ENABLE_GTK_TRUE=
14812   ENABLE_GTK_FALSE='#'
14813 else
14814   ENABLE_GTK_TRUE='#'
14815   ENABLE_GTK_FALSE=
14816 fi
14817
14818    LIBS="$LIBS $GTK_LIBS"
14819     for f in $GTK_CFLAGS; do
14820     case ".$f" in
14821         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14822         *)              CFLAGS="$CPPFLAGS $f" ;;
14823     esac
14824 done
14825
14826     INTERFACE_SRCS="$INTERFACE_SRCS gtk_c.c gtk_i.c gtk_p.c"
14827
14828   ;;
14829 xdynamic)
14830   dynamic_targets="$dynamic_targets interface_g.\$(so)"
14831    if test "x$GCC" = xyes; then
14832                 for i in $GTK_LIBS; do
14833             case "x$i" in
14834                 x-rdynamic) ;;
14835                 *) g_so_libs="$g_so_libs $i" ;;
14836             esac
14837         done
14838     else
14839         g_so_libs="$GTK_LIBS"
14840     fi
14841     for f in $GTK_CFLAGS; do
14842     case ".$f" in
14843         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14844         *)              CFLAGS="$CPPFLAGS $f" ;;
14845     esac
14846 done
14847
14848   ;;
14849 *)
14850
14851   ;;
14852 esac
14853
14854
14855
14856
14857
14858 if false; then
14859   ENABLE_SERVER_TRUE=
14860   ENABLE_SERVER_FALSE='#'
14861 else
14862   ENABLE_SERVER_TRUE='#'
14863   ENABLE_SERVER_FALSE=
14864 fi
14865
14866 # Check whether --enable-server or --disable-server was given.
14867 if test "${enable_server+set}" = set; then
14868   enableval="$enable_server"
14869   case "x$enable_server" in xyes|xdynamic)  ;; esac
14870 fi;
14871 case "x$enable_server" in
14872 xyes)
14873   cat >> confdefs.h <<EOF
14874 #define IA_SERVER 1
14875 EOF
14876
14877
14878
14879 if true; then
14880   ENABLE_SERVER_TRUE=
14881   ENABLE_SERVER_FALSE='#'
14882 else
14883   ENABLE_SERVER_TRUE='#'
14884   ENABLE_SERVER_FALSE=
14885 fi
14886
14887    INTERFACE_SRCS="$INTERFACE_SRCS server_c.c"
14888
14889 for ac_header in sys/soundcard.h
14890 do
14891 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14893   echo "$as_me:$LINENO: checking for $ac_header" >&5
14894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14896   echo $ECHO_N "(cached) $ECHO_C" >&6
14897 fi
14898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14900 else
14901   # Is the header compilable?
14902 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14903 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14904 cat >conftest.$ac_ext <<_ACEOF
14905 #line $LINENO "configure"
14906 /* confdefs.h.  */
14907 _ACEOF
14908 cat confdefs.h >>conftest.$ac_ext
14909 cat >>conftest.$ac_ext <<_ACEOF
14910 /* end confdefs.h.  */
14911 $ac_includes_default
14912 #include <$ac_header>
14913 _ACEOF
14914 rm -f conftest.$ac_objext
14915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14916   (eval $ac_compile) 2>&5
14917   ac_status=$?
14918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919   (exit $ac_status); } &&
14920          { ac_try='test -s conftest.$ac_objext'
14921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14922   (eval $ac_try) 2>&5
14923   ac_status=$?
14924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925   (exit $ac_status); }; }; then
14926   ac_header_compiler=yes
14927 else
14928   echo "$as_me: failed program was:" >&5
14929 sed 's/^/| /' conftest.$ac_ext >&5
14930
14931 ac_header_compiler=no
14932 fi
14933 rm -f conftest.$ac_objext conftest.$ac_ext
14934 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14935 echo "${ECHO_T}$ac_header_compiler" >&6
14936
14937 # Is the header present?
14938 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14940 cat >conftest.$ac_ext <<_ACEOF
14941 #line $LINENO "configure"
14942 /* confdefs.h.  */
14943 _ACEOF
14944 cat confdefs.h >>conftest.$ac_ext
14945 cat >>conftest.$ac_ext <<_ACEOF
14946 /* end confdefs.h.  */
14947 #include <$ac_header>
14948 _ACEOF
14949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14950   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14951   ac_status=$?
14952   grep -v '^ *+' conftest.er1 >conftest.err
14953   rm -f conftest.er1
14954   cat conftest.err >&5
14955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956   (exit $ac_status); } >/dev/null; then
14957   if test -s conftest.err; then
14958     ac_cpp_err=$ac_c_preproc_warn_flag
14959   else
14960     ac_cpp_err=
14961   fi
14962 else
14963   ac_cpp_err=yes
14964 fi
14965 if test -z "$ac_cpp_err"; then
14966   ac_header_preproc=yes
14967 else
14968   echo "$as_me: failed program was:" >&5
14969 sed 's/^/| /' conftest.$ac_ext >&5
14970
14971   ac_header_preproc=no
14972 fi
14973 rm -f conftest.err conftest.$ac_ext
14974 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14975 echo "${ECHO_T}$ac_header_preproc" >&6
14976
14977 # So?  What about this header?
14978 case $ac_header_compiler:$ac_header_preproc in
14979   yes:no )
14980     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14981 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14982     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14984     (
14985       cat <<\_ASBOX
14986 ## ------------------------------------ ##
14987 ## Report this to bug-autoconf@gnu.org. ##
14988 ## ------------------------------------ ##
14989 _ASBOX
14990     ) |
14991       sed "s/^/$as_me: WARNING:     /" >&2
14992     ;;
14993   no:yes )
14994     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14996     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14997 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14998     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15000     (
15001       cat <<\_ASBOX
15002 ## ------------------------------------ ##
15003 ## Report this to bug-autoconf@gnu.org. ##
15004 ## ------------------------------------ ##
15005 _ASBOX
15006     ) |
15007       sed "s/^/$as_me: WARNING:     /" >&2
15008     ;;
15009 esac
15010 echo "$as_me:$LINENO: checking for $ac_header" >&5
15011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15013   echo $ECHO_N "(cached) $ECHO_C" >&6
15014 else
15015   eval "$as_ac_Header=$ac_header_preproc"
15016 fi
15017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15019
15020 fi
15021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15022   cat >>confdefs.h <<_ACEOF
15023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15024 _ACEOF
15025
15026 fi
15027
15028 done
15029
15030
15031   ;;
15032 xdynamic)
15033   dynamic_targets="$dynamic_targets interface_r.\$(so)"
15034
15035   ;;
15036 *)
15037
15038   ;;
15039 esac
15040
15041
15042
15043
15044
15045 if false; then
15046   ENABLE_ALSASEQ_TRUE=
15047   ENABLE_ALSASEQ_FALSE='#'
15048 else
15049   ENABLE_ALSASEQ_TRUE='#'
15050   ENABLE_ALSASEQ_FALSE=
15051 fi
15052
15053 # Check whether --enable-alsaseq or --disable-alsaseq was given.
15054 if test "${enable_alsaseq+set}" = set; then
15055   enableval="$enable_alsaseq"
15056   case "x$enable_alsaseq" in xyes|xdynamic)  ;; esac
15057 fi;
15058 case "x$enable_alsaseq" in
15059 xyes)
15060   cat >> confdefs.h <<EOF
15061 #define IA_ALSASEQ 1
15062 EOF
15063
15064
15065
15066 if true; then
15067   ENABLE_ALSASEQ_TRUE=
15068   ENABLE_ALSASEQ_FALSE='#'
15069 else
15070   ENABLE_ALSASEQ_TRUE='#'
15071   ENABLE_ALSASEQ_FALSE=
15072 fi
15073
15074    INTERFACE_SRCS="$INTERFACE_SRCS alsaseq_c.c"
15075
15076 for ac_header in sys/asoundlib.h
15077 do
15078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15080   echo "$as_me:$LINENO: checking for $ac_header" >&5
15081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15083   echo $ECHO_N "(cached) $ECHO_C" >&6
15084 fi
15085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15087 else
15088   # Is the header compilable?
15089 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15090 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15091 cat >conftest.$ac_ext <<_ACEOF
15092 #line $LINENO "configure"
15093 /* confdefs.h.  */
15094 _ACEOF
15095 cat confdefs.h >>conftest.$ac_ext
15096 cat >>conftest.$ac_ext <<_ACEOF
15097 /* end confdefs.h.  */
15098 $ac_includes_default
15099 #include <$ac_header>
15100 _ACEOF
15101 rm -f conftest.$ac_objext
15102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15103   (eval $ac_compile) 2>&5
15104   ac_status=$?
15105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106   (exit $ac_status); } &&
15107          { ac_try='test -s conftest.$ac_objext'
15108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15109   (eval $ac_try) 2>&5
15110   ac_status=$?
15111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112   (exit $ac_status); }; }; then
15113   ac_header_compiler=yes
15114 else
15115   echo "$as_me: failed program was:" >&5
15116 sed 's/^/| /' conftest.$ac_ext >&5
15117
15118 ac_header_compiler=no
15119 fi
15120 rm -f conftest.$ac_objext conftest.$ac_ext
15121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15122 echo "${ECHO_T}$ac_header_compiler" >&6
15123
15124 # Is the header present?
15125 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15127 cat >conftest.$ac_ext <<_ACEOF
15128 #line $LINENO "configure"
15129 /* confdefs.h.  */
15130 _ACEOF
15131 cat confdefs.h >>conftest.$ac_ext
15132 cat >>conftest.$ac_ext <<_ACEOF
15133 /* end confdefs.h.  */
15134 #include <$ac_header>
15135 _ACEOF
15136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15137   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15138   ac_status=$?
15139   grep -v '^ *+' conftest.er1 >conftest.err
15140   rm -f conftest.er1
15141   cat conftest.err >&5
15142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143   (exit $ac_status); } >/dev/null; then
15144   if test -s conftest.err; then
15145     ac_cpp_err=$ac_c_preproc_warn_flag
15146   else
15147     ac_cpp_err=
15148   fi
15149 else
15150   ac_cpp_err=yes
15151 fi
15152 if test -z "$ac_cpp_err"; then
15153   ac_header_preproc=yes
15154 else
15155   echo "$as_me: failed program was:" >&5
15156 sed 's/^/| /' conftest.$ac_ext >&5
15157
15158   ac_header_preproc=no
15159 fi
15160 rm -f conftest.err conftest.$ac_ext
15161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15162 echo "${ECHO_T}$ac_header_preproc" >&6
15163
15164 # So?  What about this header?
15165 case $ac_header_compiler:$ac_header_preproc in
15166   yes:no )
15167     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15169     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15171     (
15172       cat <<\_ASBOX
15173 ## ------------------------------------ ##
15174 ## Report this to bug-autoconf@gnu.org. ##
15175 ## ------------------------------------ ##
15176 _ASBOX
15177     ) |
15178       sed "s/^/$as_me: WARNING:     /" >&2
15179     ;;
15180   no:yes )
15181     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15183     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15184 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15185     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15187     (
15188       cat <<\_ASBOX
15189 ## ------------------------------------ ##
15190 ## Report this to bug-autoconf@gnu.org. ##
15191 ## ------------------------------------ ##
15192 _ASBOX
15193     ) |
15194       sed "s/^/$as_me: WARNING:     /" >&2
15195     ;;
15196 esac
15197 echo "$as_me:$LINENO: checking for $ac_header" >&5
15198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15200   echo $ECHO_N "(cached) $ECHO_C" >&6
15201 else
15202   eval "$as_ac_Header=$ac_header_preproc"
15203 fi
15204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15206
15207 fi
15208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15209   cat >>confdefs.h <<_ACEOF
15210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15211 _ACEOF
15212
15213 fi
15214
15215 done
15216
15217
15218   ;;
15219 xdynamic)
15220   dynamic_targets="$dynamic_targets interface_A.\$(so)"
15221
15222   ;;
15223 *)
15224
15225   ;;
15226 esac
15227
15228
15229
15230
15231
15232 if false; then
15233   ENABLE_WINSYN_TRUE=
15234   ENABLE_WINSYN_FALSE='#'
15235 else
15236   ENABLE_WINSYN_TRUE='#'
15237   ENABLE_WINSYN_FALSE=
15238 fi
15239
15240 # Check whether --enable-winsyn or --disable-winsyn was given.
15241 if test "${enable_winsyn+set}" = set; then
15242   enableval="$enable_winsyn"
15243   case "x$enable_winsyn" in xyes|xdynamic)  ;; esac
15244 fi;
15245 case "x$enable_winsyn" in
15246 xyes)
15247   cat >> confdefs.h <<EOF
15248 #define IA_WINSYN 1
15249 EOF
15250
15251
15252
15253 if true; then
15254   ENABLE_WINSYN_TRUE=
15255   ENABLE_WINSYN_FALSE='#'
15256 else
15257   ENABLE_WINSYN_TRUE='#'
15258   ENABLE_WINSYN_FALSE=
15259 fi
15260
15261    INTERFACE_SRCS="$INTERFACE_SRCS winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
15262   ;;
15263 xdynamic)
15264   dynamic_targets="$dynamic_targets interface_W.\$(so)"
15265
15266   ;;
15267 *)
15268
15269   ;;
15270 esac
15271
15272
15273
15274
15275
15276 if false; then
15277   ENABLE_PORTMIDISYN_TRUE=
15278   ENABLE_PORTMIDISYN_FALSE='#'
15279 else
15280   ENABLE_PORTMIDISYN_TRUE='#'
15281   ENABLE_PORTMIDISYN_FALSE=
15282 fi
15283
15284 # Check whether --enable-portmidisyn or --disable-portmidisyn was given.
15285 if test "${enable_portmidisyn+set}" = set; then
15286   enableval="$enable_portmidisyn"
15287   case "x$enable_portmidisyn" in xyes|xdynamic)  ;; esac
15288 fi;
15289 case "x$enable_portmidisyn" in
15290 xyes)
15291   cat >> confdefs.h <<EOF
15292 #define IA_PORTMIDISYN 1
15293 EOF
15294
15295
15296
15297 if true; then
15298   ENABLE_PORTMIDISYN_TRUE=
15299   ENABLE_PORTMIDISYN_FALSE='#'
15300 else
15301   ENABLE_PORTMIDISYN_TRUE='#'
15302   ENABLE_PORTMIDISYN_FALSE=
15303 fi
15304
15305    INTERFACE_SRCS="$INTERFACE_SRCS portmidisyn_c.c rtsyn_common.c rtsyn_portmidi.c"
15306   ;;
15307 xdynamic)
15308   dynamic_targets="$dynamic_targets interface_P.\$(so)"
15309
15310   ;;
15311 *)
15312
15313   ;;
15314 esac
15315
15316
15317
15318
15319
15320 if false; then
15321   ENABLE_W32G_SYN_TRUE=
15322   ENABLE_W32G_SYN_FALSE='#'
15323 else
15324   ENABLE_W32G_SYN_TRUE='#'
15325   ENABLE_W32G_SYN_FALSE=
15326 fi
15327
15328 # Check whether --enable-winsyng or --disable-winsyng was given.
15329 if test "${enable_winsyng+set}" = set; then
15330   enableval="$enable_winsyng"
15331   case "x$enable_winsyng" in xyes|xdynamic)  ;; esac
15332 fi;
15333 case "x$enable_winsyng" in
15334 xyes)
15335   cat >> confdefs.h <<EOF
15336 #define IA_W32G_SYN 1
15337 EOF
15338
15339
15340
15341 if true; then
15342   ENABLE_W32G_SYN_TRUE=
15343   ENABLE_W32G_SYN_FALSE='#'
15344 else
15345   ENABLE_W32G_SYN_TRUE='#'
15346   ENABLE_W32G_SYN_FALSE=
15347 fi
15348
15349    lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
15350     lib_user32_opt='-luser32'
15351     LDFLAGS="-mwindows $LDFLAGS"
15352     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"
15353
15354   ;;
15355 xdynamic)
15356   dynamic_targets="$dynamic_targets interface_W.\$(so)"
15357
15358   ;;
15359 *)
15360
15361   ;;
15362 esac
15363
15364
15365
15366
15367
15368
15369 if false; then
15370   ENABLE_W32GUI_TRUE=
15371   ENABLE_W32GUI_FALSE='#'
15372 else
15373   ENABLE_W32GUI_TRUE='#'
15374   ENABLE_W32GUI_FALSE=
15375 fi
15376
15377 # Check whether --enable-w32gui or --disable-w32gui was given.
15378 if test "${enable_w32gui+set}" = set; then
15379   enableval="$enable_w32gui"
15380   case "x$enable_w32gui" in xyes|xdynamic)  ;; esac
15381 fi;
15382 case "x$enable_w32gui" in
15383 xyes)
15384   cat >> confdefs.h <<EOF
15385 #define IA_W32GUI 1
15386 EOF
15387
15388
15389
15390 if true; then
15391   ENABLE_W32GUI_TRUE=
15392   ENABLE_W32GUI_FALSE='#'
15393 else
15394   ENABLE_W32GUI_TRUE='#'
15395   ENABLE_W32GUI_FALSE=
15396 fi
15397
15398    lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
15399     lib_user32_opt='-luser32'
15400     LDFLAGS="-mwindows $LDFLAGS"
15401     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"
15402
15403   ;;
15404 xdynamic)
15405   dynamic_targets="$dynamic_targets interface_w.\$(so)"
15406
15407   ;;
15408 *)
15409
15410   ;;
15411 esac
15412
15413
15414
15415
15416
15417 if false; then
15418   ENABLE_PLUGIN_TRUE=
15419   ENABLE_PLUGIN_FALSE='#'
15420 else
15421   ENABLE_PLUGIN_TRUE='#'
15422   ENABLE_PLUGIN_FALSE=
15423 fi
15424
15425 # Check whether --enable-ump or --disable-ump was given.
15426 if test "${enable_ump+set}" = set; then
15427   enableval="$enable_ump"
15428   case "x$enable_ump" in xyes|xdynamic)  if test ! -d ump; then
15429         { { echo "$as_me:$LINENO: error: UMP Package is not exists.  Can't configure it." >&5
15430 echo "$as_me: error: UMP Package is not exists.  Can't configure it." >&2;}
15431    { (exit 1); exit 1; }; }
15432     fi
15433     if test "${ac_cv_header_X11_xpm_h+set}" = set; then
15434   echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
15435 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
15436 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
15437   echo $ECHO_N "(cached) $ECHO_C" >&6
15438 fi
15439 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
15440 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
15441 else
15442   # Is the header compilable?
15443 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
15444 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
15445 cat >conftest.$ac_ext <<_ACEOF
15446 #line $LINENO "configure"
15447 /* confdefs.h.  */
15448 _ACEOF
15449 cat confdefs.h >>conftest.$ac_ext
15450 cat >>conftest.$ac_ext <<_ACEOF
15451 /* end confdefs.h.  */
15452 $ac_includes_default
15453 #include <X11/xpm.h>
15454 _ACEOF
15455 rm -f conftest.$ac_objext
15456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15457   (eval $ac_compile) 2>&5
15458   ac_status=$?
15459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460   (exit $ac_status); } &&
15461          { ac_try='test -s conftest.$ac_objext'
15462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15463   (eval $ac_try) 2>&5
15464   ac_status=$?
15465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466   (exit $ac_status); }; }; then
15467   ac_header_compiler=yes
15468 else
15469   echo "$as_me: failed program was:" >&5
15470 sed 's/^/| /' conftest.$ac_ext >&5
15471
15472 ac_header_compiler=no
15473 fi
15474 rm -f conftest.$ac_objext conftest.$ac_ext
15475 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15476 echo "${ECHO_T}$ac_header_compiler" >&6
15477
15478 # Is the header present?
15479 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
15480 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
15481 cat >conftest.$ac_ext <<_ACEOF
15482 #line $LINENO "configure"
15483 /* confdefs.h.  */
15484 _ACEOF
15485 cat confdefs.h >>conftest.$ac_ext
15486 cat >>conftest.$ac_ext <<_ACEOF
15487 /* end confdefs.h.  */
15488 #include <X11/xpm.h>
15489 _ACEOF
15490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15491   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15492   ac_status=$?
15493   grep -v '^ *+' conftest.er1 >conftest.err
15494   rm -f conftest.er1
15495   cat conftest.err >&5
15496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497   (exit $ac_status); } >/dev/null; then
15498   if test -s conftest.err; then
15499     ac_cpp_err=$ac_c_preproc_warn_flag
15500   else
15501     ac_cpp_err=
15502   fi
15503 else
15504   ac_cpp_err=yes
15505 fi
15506 if test -z "$ac_cpp_err"; then
15507   ac_header_preproc=yes
15508 else
15509   echo "$as_me: failed program was:" >&5
15510 sed 's/^/| /' conftest.$ac_ext >&5
15511
15512   ac_header_preproc=no
15513 fi
15514 rm -f conftest.err conftest.$ac_ext
15515 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15516 echo "${ECHO_T}$ac_header_preproc" >&6
15517
15518 # So?  What about this header?
15519 case $ac_header_compiler:$ac_header_preproc in
15520   yes:no )
15521     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15522 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15523     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
15524 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
15525     (
15526       cat <<\_ASBOX
15527 ## ------------------------------------ ##
15528 ## Report this to bug-autoconf@gnu.org. ##
15529 ## ------------------------------------ ##
15530 _ASBOX
15531     ) |
15532       sed "s/^/$as_me: WARNING:     /" >&2
15533     ;;
15534   no:yes )
15535     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
15536 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
15537     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
15538 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
15539     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
15540 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
15541     (
15542       cat <<\_ASBOX
15543 ## ------------------------------------ ##
15544 ## Report this to bug-autoconf@gnu.org. ##
15545 ## ------------------------------------ ##
15546 _ASBOX
15547     ) |
15548       sed "s/^/$as_me: WARNING:     /" >&2
15549     ;;
15550 esac
15551 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
15552 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
15553 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
15554   echo $ECHO_N "(cached) $ECHO_C" >&6
15555 else
15556   ac_cv_header_X11_xpm_h=$ac_header_preproc
15557 fi
15558 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
15559 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
15560
15561 fi
15562 if test $ac_cv_header_X11_xpm_h = yes; then
15563   :
15564 else
15565   { { echo "$as_me:$LINENO: error: UMP Package needs xpm.h, but could not find it." >&5
15566 echo "$as_me: error: UMP Package needs xpm.h, but could not find it." >&2;}
15567    { (exit 1); exit 1; }; }
15568 fi
15569
15570
15571     echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
15572 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
15573 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
15574   echo $ECHO_N "(cached) $ECHO_C" >&6
15575 else
15576   ac_check_lib_save_LIBS=$LIBS
15577 LIBS="-lXpm  $LIBS"
15578 cat >conftest.$ac_ext <<_ACEOF
15579 #line $LINENO "configure"
15580 /* confdefs.h.  */
15581 _ACEOF
15582 cat confdefs.h >>conftest.$ac_ext
15583 cat >>conftest.$ac_ext <<_ACEOF
15584 /* end confdefs.h.  */
15585
15586 /* Override any gcc2 internal prototype to avoid an error.  */
15587 #ifdef __cplusplus
15588 extern "C"
15589 #endif
15590 /* We use char because int might match the return type of a gcc2
15591    builtin and then its argument prototype would still apply.  */
15592 char XpmCreatePixmapFromData ();
15593 int
15594 main ()
15595 {
15596 XpmCreatePixmapFromData ();
15597   ;
15598   return 0;
15599 }
15600 _ACEOF
15601 rm -f conftest.$ac_objext conftest$ac_exeext
15602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15603   (eval $ac_link) 2>&5
15604   ac_status=$?
15605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606   (exit $ac_status); } &&
15607          { ac_try='test -s conftest$ac_exeext'
15608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15609   (eval $ac_try) 2>&5
15610   ac_status=$?
15611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612   (exit $ac_status); }; }; then
15613   ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
15614 else
15615   echo "$as_me: failed program was:" >&5
15616 sed 's/^/| /' conftest.$ac_ext >&5
15617
15618 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
15619 fi
15620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15621 LIBS=$ac_check_lib_save_LIBS
15622 fi
15623 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
15624 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
15625 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
15626   :
15627 else
15628   { { echo "$as_me:$LINENO: error: UMP Package needs libXpm.a, but could not find it." >&5
15629 echo "$as_me: error: UMP Package needs libXpm.a, but could not find it." >&2;}
15630    { (exit 1); exit 1; }; }
15631 fi
15632
15633     if test "x$have_xext" = xyes; then
15634       lib_xext_opt=-lXext
15635     fi
15636     if test "x$have_xprelibs" = xyes; then
15637       lib_xprelibs_opt='-lSM -lICE'
15638     fi
15639     lib_xmu_opt=-lXmu
15640     lib_xt_opt=-lXt
15641    ;; esac
15642 fi;
15643 case "x$enable_ump" in
15644 xyes)
15645   cat >> confdefs.h <<EOF
15646 #define IA_PLUGIN 1
15647 EOF
15648
15649
15650
15651 if true; then
15652   ENABLE_PLUGIN_TRUE=
15653   ENABLE_PLUGIN_FALSE='#'
15654 else
15655   ENABLE_PLUGIN_TRUE='#'
15656   ENABLE_PLUGIN_FALSE=
15657 fi
15658
15659
15660   ;;
15661 xdynamic)
15662   dynamic_targets="$dynamic_targets interface_p.\$(so)"
15663
15664   ;;
15665 *)
15666
15667   ;;
15668 esac
15669
15670
15671
15672
15673 # Check whether --enable-offix or --disable-offix was given.
15674 if test "${enable_offix+set}" = set; then
15675   enableval="$enable_offix"
15676    if test "$enableval" = "yes"; then
15677       KEEPCPPFLAGS=$CPPFLAGS
15678       KEEPLIBS=$LIBS
15679       KEEPLDFLAGS=$LDFLAGS
15680       CPPFLAGS="$CPPFLAGS $offix_include_dir"
15681       LDFLAGS="$LDFLAGS $offix_lib_dir"
15682       LIBS="$LIBS $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11"
15683       echo "$as_me:$LINENO: checking for DndInitialize in -lDnd" >&5
15684 echo $ECHO_N "checking for DndInitialize in -lDnd... $ECHO_C" >&6
15685 if test "${ac_cv_lib_Dnd_DndInitialize+set}" = set; then
15686   echo $ECHO_N "(cached) $ECHO_C" >&6
15687 else
15688   ac_check_lib_save_LIBS=$LIBS
15689 LIBS="-lDnd  $LIBS"
15690 cat >conftest.$ac_ext <<_ACEOF
15691 #line $LINENO "configure"
15692 /* confdefs.h.  */
15693 _ACEOF
15694 cat confdefs.h >>conftest.$ac_ext
15695 cat >>conftest.$ac_ext <<_ACEOF
15696 /* end confdefs.h.  */
15697
15698 /* Override any gcc2 internal prototype to avoid an error.  */
15699 #ifdef __cplusplus
15700 extern "C"
15701 #endif
15702 /* We use char because int might match the return type of a gcc2
15703    builtin and then its argument prototype would still apply.  */
15704 char DndInitialize ();
15705 int
15706 main ()
15707 {
15708 DndInitialize ();
15709   ;
15710   return 0;
15711 }
15712 _ACEOF
15713 rm -f conftest.$ac_objext conftest$ac_exeext
15714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15715   (eval $ac_link) 2>&5
15716   ac_status=$?
15717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718   (exit $ac_status); } &&
15719          { ac_try='test -s conftest$ac_exeext'
15720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15721   (eval $ac_try) 2>&5
15722   ac_status=$?
15723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724   (exit $ac_status); }; }; then
15725   ac_cv_lib_Dnd_DndInitialize=yes
15726 else
15727   echo "$as_me: failed program was:" >&5
15728 sed 's/^/| /' conftest.$ac_ext >&5
15729
15730 ac_cv_lib_Dnd_DndInitialize=no
15731 fi
15732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15733 LIBS=$ac_check_lib_save_LIBS
15734 fi
15735 echo "$as_me:$LINENO: result: $ac_cv_lib_Dnd_DndInitialize" >&5
15736 echo "${ECHO_T}$ac_cv_lib_Dnd_DndInitialize" >&6
15737 if test $ac_cv_lib_Dnd_DndInitialize = yes; then
15738
15739         LIBS=$KEEPLIBS
15740         lib_offix_opt="-lDnd"
15741
15742 cat >>confdefs.h <<\_ACEOF
15743 #define OFFIX 1
15744 _ACEOF
15745
15746
15747 else
15748    LDFLAGS=$KEEPLDFLAGS
15749         CPPFLAGS=$KEEPCPPFLAGS
15750         LIBS=$KEEPLIBS
15751
15752 fi
15753
15754     fi
15755
15756 fi;
15757
15758 # Check whether --enable-network or --disable-network was given.
15759 if test "${enable_network+set}" = set; then
15760   enableval="$enable_network"
15761    if test "$enableval" = "yes"; then
15762
15763 cat >>confdefs.h <<\_ACEOF
15764 #define SUPPORT_SOCKET 1
15765 _ACEOF
15766
15767     fi
15768 fi;
15769
15770
15771 if test "x$enable_network" = "xyes"; then
15772   ENABLE_NETWORK_TRUE=
15773   ENABLE_NETWORK_FALSE='#'
15774 else
15775   ENABLE_NETWORK_TRUE='#'
15776   ENABLE_NETWORK_FALSE=
15777 fi
15778
15779
15780 # Check whether --enable-spectrogram or --disable-spectrogram was given.
15781 if test "${enable_spectrogram+set}" = set; then
15782   enableval="$enable_spectrogram"
15783    if test "$enableval" = "yes"; then
15784       if test "x$with_x" != xyes; then
15785         { { echo "$as_me:$LINENO: error: spectrogram: --with-x option must be specified" >&5
15786 echo "$as_me: error: spectrogram: --with-x option must be specified" >&2;}
15787    { (exit 1); exit 1; }; }
15788       fi
15789
15790 cat >>confdefs.h <<\_ACEOF
15791 #define SUPPORT_SOUNDSPEC 1
15792 _ACEOF
15793
15794     fi
15795 fi;
15796
15797
15798 if test "x$enable_spectrogram" = "xyes"; then
15799   ENABLE_SOUND_SPEC_TRUE=
15800   ENABLE_SOUND_SPEC_FALSE='#'
15801 else
15802   ENABLE_SOUND_SPEC_TRUE='#'
15803   ENABLE_SOUND_SPEC_FALSE=
15804 fi
15805
15806
15807 # Check whether --enable-spline or --disable-spline was given.
15808 if test "${enable_spline+set}" = set; then
15809   enableval="$enable_spline"
15810    case "x$enableval" in
15811       xlinear)
15812
15813 cat >>confdefs.h <<\_ACEOF
15814 #define LINEAR_INTERPOLATION 1
15815 _ACEOF
15816
15817         ;;
15818       xcubic)
15819
15820 cat >>confdefs.h <<\_ACEOF
15821 #define CSPLINE_INTERPOLATION 1
15822 _ACEOF
15823
15824         ;;
15825       xlagrange)
15826
15827 cat >>confdefs.h <<\_ACEOF
15828 #define LAGRANGE_INTERPOLATION 1
15829 _ACEOF
15830
15831         ;;
15832       xnewton)
15833
15834 cat >>confdefs.h <<\_ACEOF
15835 #define NEWTON_INTERPOLATION 1
15836 _ACEOF
15837
15838         ;;
15839       xgauss)
15840
15841 cat >>confdefs.h <<\_ACEOF
15842 #define GAUSS_INTERPOLATION 1
15843 _ACEOF
15844
15845         ;;
15846       xno)
15847
15848 cat >>confdefs.h <<\_ACEOF
15849 #define NO_INTERPOLATION 1
15850 _ACEOF
15851
15852         ;;
15853       *)
15854         { { echo "$as_me:$LINENO: error: Invalid method of --enable-spline" >&5
15855 echo "$as_me: error: Invalid method of --enable-spline" >&2;}
15856    { (exit 1); exit 1; }; }
15857         ;;
15858     esac
15859 fi;
15860
15861 # Check whether --enable-wrd or --disable-wrd was given.
15862 if test "${enable_wrd+set}" = set; then
15863   enableval="$enable_wrd"
15864    if test "$enableval" = "yes"; then
15865       if test "x$with_x" != xyes; then
15866         { { echo "$as_me:$LINENO: error: wrd: --with-x option must be specified" >&5
15867 echo "$as_me: error: wrd: --with-x option must be specified" >&2;}
15868    { (exit 1); exit 1; }; }
15869       fi
15870
15871 cat >>confdefs.h <<\_ACEOF
15872 #define WRDT_X 1
15873 _ACEOF
15874
15875       enable_sherry_wrd=yes
15876       echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
15877 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
15878 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
15879   echo $ECHO_N "(cached) $ECHO_C" >&6
15880 else
15881   ac_check_lib_save_LIBS=$LIBS
15882 LIBS="-lz  $LIBS"
15883 cat >conftest.$ac_ext <<_ACEOF
15884 #line $LINENO "configure"
15885 /* confdefs.h.  */
15886 _ACEOF
15887 cat confdefs.h >>conftest.$ac_ext
15888 cat >>conftest.$ac_ext <<_ACEOF
15889 /* end confdefs.h.  */
15890
15891 /* Override any gcc2 internal prototype to avoid an error.  */
15892 #ifdef __cplusplus
15893 extern "C"
15894 #endif
15895 /* We use char because int might match the return type of a gcc2
15896    builtin and then its argument prototype would still apply.  */
15897 char zlibVersion ();
15898 int
15899 main ()
15900 {
15901 zlibVersion ();
15902   ;
15903   return 0;
15904 }
15905 _ACEOF
15906 rm -f conftest.$ac_objext conftest$ac_exeext
15907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15908   (eval $ac_link) 2>&5
15909   ac_status=$?
15910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911   (exit $ac_status); } &&
15912          { ac_try='test -s conftest$ac_exeext'
15913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15914   (eval $ac_try) 2>&5
15915   ac_status=$?
15916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917   (exit $ac_status); }; }; then
15918   ac_cv_lib_z_zlibVersion=yes
15919 else
15920   echo "$as_me: failed program was:" >&5
15921 sed 's/^/| /' conftest.$ac_ext >&5
15922
15923 ac_cv_lib_z_zlibVersion=no
15924 fi
15925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15926 LIBS=$ac_check_lib_save_LIBS
15927 fi
15928 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
15929 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
15930 if test $ac_cv_lib_z_zlibVersion = yes; then
15931   :
15932 else
15933   enable_sherry_wrd=no
15934 fi
15935
15936       if test "${ac_cv_header_png_h+set}" = set; then
15937   echo "$as_me:$LINENO: checking for png.h" >&5
15938 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
15939 if test "${ac_cv_header_png_h+set}" = set; then
15940   echo $ECHO_N "(cached) $ECHO_C" >&6
15941 fi
15942 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
15943 echo "${ECHO_T}$ac_cv_header_png_h" >&6
15944 else
15945   # Is the header compilable?
15946 echo "$as_me:$LINENO: checking png.h usability" >&5
15947 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
15948 cat >conftest.$ac_ext <<_ACEOF
15949 #line $LINENO "configure"
15950 /* confdefs.h.  */
15951 _ACEOF
15952 cat confdefs.h >>conftest.$ac_ext
15953 cat >>conftest.$ac_ext <<_ACEOF
15954 /* end confdefs.h.  */
15955 $ac_includes_default
15956 #include <png.h>
15957 _ACEOF
15958 rm -f conftest.$ac_objext
15959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15960   (eval $ac_compile) 2>&5
15961   ac_status=$?
15962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963   (exit $ac_status); } &&
15964          { ac_try='test -s conftest.$ac_objext'
15965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15966   (eval $ac_try) 2>&5
15967   ac_status=$?
15968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969   (exit $ac_status); }; }; then
15970   ac_header_compiler=yes
15971 else
15972   echo "$as_me: failed program was:" >&5
15973 sed 's/^/| /' conftest.$ac_ext >&5
15974
15975 ac_header_compiler=no
15976 fi
15977 rm -f conftest.$ac_objext conftest.$ac_ext
15978 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15979 echo "${ECHO_T}$ac_header_compiler" >&6
15980
15981 # Is the header present?
15982 echo "$as_me:$LINENO: checking png.h presence" >&5
15983 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
15984 cat >conftest.$ac_ext <<_ACEOF
15985 #line $LINENO "configure"
15986 /* confdefs.h.  */
15987 _ACEOF
15988 cat confdefs.h >>conftest.$ac_ext
15989 cat >>conftest.$ac_ext <<_ACEOF
15990 /* end confdefs.h.  */
15991 #include <png.h>
15992 _ACEOF
15993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15994   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15995   ac_status=$?
15996   grep -v '^ *+' conftest.er1 >conftest.err
15997   rm -f conftest.er1
15998   cat conftest.err >&5
15999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000   (exit $ac_status); } >/dev/null; then
16001   if test -s conftest.err; then
16002     ac_cpp_err=$ac_c_preproc_warn_flag
16003   else
16004     ac_cpp_err=
16005   fi
16006 else
16007   ac_cpp_err=yes
16008 fi
16009 if test -z "$ac_cpp_err"; then
16010   ac_header_preproc=yes
16011 else
16012   echo "$as_me: failed program was:" >&5
16013 sed 's/^/| /' conftest.$ac_ext >&5
16014
16015   ac_header_preproc=no
16016 fi
16017 rm -f conftest.err conftest.$ac_ext
16018 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16019 echo "${ECHO_T}$ac_header_preproc" >&6
16020
16021 # So?  What about this header?
16022 case $ac_header_compiler:$ac_header_preproc in
16023   yes:no )
16024     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
16025 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16026     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
16027 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
16028     (
16029       cat <<\_ASBOX
16030 ## ------------------------------------ ##
16031 ## Report this to bug-autoconf@gnu.org. ##
16032 ## ------------------------------------ ##
16033 _ASBOX
16034     ) |
16035       sed "s/^/$as_me: WARNING:     /" >&2
16036     ;;
16037   no:yes )
16038     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
16039 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
16040     { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
16041 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
16042     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
16043 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
16044     (
16045       cat <<\_ASBOX
16046 ## ------------------------------------ ##
16047 ## Report this to bug-autoconf@gnu.org. ##
16048 ## ------------------------------------ ##
16049 _ASBOX
16050     ) |
16051       sed "s/^/$as_me: WARNING:     /" >&2
16052     ;;
16053 esac
16054 echo "$as_me:$LINENO: checking for png.h" >&5
16055 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
16056 if test "${ac_cv_header_png_h+set}" = set; then
16057   echo $ECHO_N "(cached) $ECHO_C" >&6
16058 else
16059   ac_cv_header_png_h=$ac_header_preproc
16060 fi
16061 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
16062 echo "${ECHO_T}$ac_cv_header_png_h" >&6
16063
16064 fi
16065 if test $ac_cv_header_png_h = yes; then
16066   :
16067 else
16068   enable_sherry_wrd=no
16069 fi
16070
16071
16072       echo "$as_me:$LINENO: checking for png_init_io in -lpng" >&5
16073 echo $ECHO_N "checking for png_init_io in -lpng... $ECHO_C" >&6
16074 if test "${ac_cv_lib_png_png_init_io+set}" = set; then
16075   echo $ECHO_N "(cached) $ECHO_C" >&6
16076 else
16077   ac_check_lib_save_LIBS=$LIBS
16078 LIBS="-lpng -lz $LIBS"
16079 cat >conftest.$ac_ext <<_ACEOF
16080 #line $LINENO "configure"
16081 /* confdefs.h.  */
16082 _ACEOF
16083 cat confdefs.h >>conftest.$ac_ext
16084 cat >>conftest.$ac_ext <<_ACEOF
16085 /* end confdefs.h.  */
16086
16087 /* Override any gcc2 internal prototype to avoid an error.  */
16088 #ifdef __cplusplus
16089 extern "C"
16090 #endif
16091 /* We use char because int might match the return type of a gcc2
16092    builtin and then its argument prototype would still apply.  */
16093 char png_init_io ();
16094 int
16095 main ()
16096 {
16097 png_init_io ();
16098   ;
16099   return 0;
16100 }
16101 _ACEOF
16102 rm -f conftest.$ac_objext conftest$ac_exeext
16103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16104   (eval $ac_link) 2>&5
16105   ac_status=$?
16106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107   (exit $ac_status); } &&
16108          { ac_try='test -s conftest$ac_exeext'
16109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16110   (eval $ac_try) 2>&5
16111   ac_status=$?
16112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113   (exit $ac_status); }; }; then
16114   ac_cv_lib_png_png_init_io=yes
16115 else
16116   echo "$as_me: failed program was:" >&5
16117 sed 's/^/| /' conftest.$ac_ext >&5
16118
16119 ac_cv_lib_png_png_init_io=no
16120 fi
16121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16122 LIBS=$ac_check_lib_save_LIBS
16123 fi
16124 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_init_io" >&5
16125 echo "${ECHO_T}$ac_cv_lib_png_png_init_io" >&6
16126 if test $ac_cv_lib_png_png_init_io = yes; then
16127   :
16128 else
16129   enable_sherry_wrd=no
16130 fi
16131
16132       if test "$enable_sherry_wrd" = yes; then
16133
16134 cat >>confdefs.h <<\_ACEOF
16135 #define ENABLE_SHERRY 1
16136 _ACEOF
16137
16138         lib_zip_opt=-lz
16139         lib_png_opt=-lpng
16140       else
16141          { echo "$as_me:$LINENO: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&5
16142 echo "$as_me: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&2;}
16143       fi
16144       if test "x$have_xext" = xyes; then
16145         lib_xext_opt=-lXext
16146       fi
16147     fi
16148 fi;
16149
16150
16151
16152 #
16153 # Finish up
16154 #
16155
16156
16157
16158 if test "x$enable_wrd" = "xyes"; then
16159   ENABLE_WRD_TRUE=
16160   ENABLE_WRD_FALSE='#'
16161 else
16162   ENABLE_WRD_TRUE='#'
16163   ENABLE_WRD_FALSE=
16164 fi
16165
16166
16167
16168
16169 if test "x$CYGNUS" = xyes; then
16170   CYGNUS_TRUE=
16171   CYGNUS_FALSE='#'
16172 else
16173   CYGNUS_TRUE='#'
16174   CYGNUS_FALSE=
16175 fi
16176
16177
16178
16179 if test "x$MINGW" = xyes; then
16180   MINGW_TRUE=
16181   MINGW_FALSE='#'
16182 else
16183   MINGW_TRUE='#'
16184   MINGW_FALSE=
16185 fi
16186
16187
16188
16189 if test "x$W32READDIR" = "xyes"; then
16190   W32READDIR_TRUE=
16191   W32READDIR_FALSE='#'
16192 else
16193   W32READDIR_TRUE='#'
16194   W32READDIR_FALSE=
16195 fi
16196
16197
16198 rm -f wordtmp >/dev/null 2>&1
16199 val=''
16200 for f in $LDFLAGS; do
16201   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
16202   :
16203 else
16204   echo $f >>wordtmp; val="$val $f"
16205 fi
16206
16207 done
16208 LDFLAGS="$val"
16209 rm -f wordtmp >/dev/null 2>&1
16210
16211 rm -f wordtmp >/dev/null 2>&1
16212 val=''
16213 for f in $SHLDFLAGS; do
16214   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
16215   :
16216 else
16217   echo $f >>wordtmp; val="$val $f"
16218 fi
16219
16220 done
16221 SHLDFLAGS="$val"
16222 rm -f wordtmp >/dev/null 2>&1
16223
16224 rm -f wordtmp >/dev/null 2>&1
16225 val=''
16226 for f in $EXTRACFLAGS $CFLAGS; do
16227   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
16228   :
16229 else
16230   echo $f >>wordtmp; val="$val $f"
16231 fi
16232
16233 done
16234 CFLAGS="$val"
16235 rm -f wordtmp >/dev/null 2>&1
16236
16237 rm -f wordtmp >/dev/null 2>&1
16238 val=''
16239 for f in $CPPFLAGS $EXTRADEFS; do
16240   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
16241   :
16242 else
16243   echo $f >>wordtmp; val="$val $f"
16244 fi
16245
16246 done
16247 CPPFLAGS="$val"
16248 rm -f wordtmp >/dev/null 2>&1
16249
16250
16251 if test "x$oss_device" != x; then
16252
16253 cat >>confdefs.h <<_ACEOF
16254 #define OSS_DEVICE "$oss_device"
16255 _ACEOF
16256
16257 fi
16258
16259 if test "x$TIMIDITY_OUTPUT_ID" != x; then
16260
16261 cat >>confdefs.h <<_ACEOF
16262 #define TIMIDITY_OUTPUT_ID "$TIMIDITY_OUTPUT_ID"
16263 _ACEOF
16264
16265 fi
16266
16267 if test "x$with_x" = xyes; then
16268     LIBS=`echo $LIBS | sed "s/-lX11/$lib_offix_opt $lib_xm_opt $lib_xaw_opt $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11/"`
16269 fi
16270 LIBS="$LIBS $lib_dl_opt $lib_png_opt $lib_zip_opt $lib_user32_opt $lib_w32gui_opt $EXTRALIBS"
16271 SHLD="$SHLD $SHLDFLAGS"
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291                                                                                                                                                                 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"
16292
16293 cat >confcache <<\_ACEOF
16294 # This file is a shell script that caches the results of configure
16295 # tests run on this system so they can be shared between configure
16296 # scripts and configure runs, see configure's option --config-cache.
16297 # It is not useful on other systems.  If it contains results you don't
16298 # want to keep, you may remove or edit it.
16299 #
16300 # config.status only pays attention to the cache file if you give it
16301 # the --recheck option to rerun configure.
16302 #
16303 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16304 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16305 # following values.
16306
16307 _ACEOF
16308
16309 # The following way of writing the cache mishandles newlines in values,
16310 # but we know of no workaround that is simple, portable, and efficient.
16311 # So, don't put newlines in cache variables' values.
16312 # Ultrix sh set writes to stderr and can't be redirected directly,
16313 # and sets the high bit in the cache file unless we assign to the vars.
16314 {
16315   (set) 2>&1 |
16316     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16317     *ac_space=\ *)
16318       # `set' does not quote correctly, so add quotes (double-quote
16319       # substitution turns \\\\ into \\, and sed turns \\ into \).
16320       sed -n \
16321         "s/'/'\\\\''/g;
16322           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16323       ;;
16324     *)
16325       # `set' quotes correctly as required by POSIX, so do not add quotes.
16326       sed -n \
16327         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16328       ;;
16329     esac;
16330 } |
16331   sed '
16332      t clear
16333      : clear
16334      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16335      t end
16336      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16337      : end' >>confcache
16338 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16339   if test -w $cache_file; then
16340     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16341     cat confcache >$cache_file
16342   else
16343     echo "not updating unwritable cache $cache_file"
16344   fi
16345 fi
16346 rm -f confcache
16347
16348 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16349 # Let make expand exec_prefix.
16350 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16351
16352 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16353 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16354 # trailing colons and then remove the whole line if VPATH becomes empty
16355 # (actually we leave an empty line to preserve line numbers).
16356 if test "x$srcdir" = x.; then
16357   ac_vpsub='/^[         ]*VPATH[        ]*=/{
16358 s/:*\$(srcdir):*/:/;
16359 s/:*\${srcdir}:*/:/;
16360 s/:*@srcdir@:*/:/;
16361 s/^\([^=]*=[    ]*\):*/\1/;
16362 s/:*$//;
16363 s/^[^=]*=[      ]*$//;
16364 }'
16365 fi
16366
16367 DEFS=-DHAVE_CONFIG_H
16368
16369 ac_libobjs=
16370 ac_ltlibobjs=
16371 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16372   # 1. Remove the extension, and $U if already installed.
16373   ac_i=`echo "$ac_i" |
16374          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16375   # 2. Add them.
16376   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16377   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16378 done
16379 LIBOBJS=$ac_libobjs
16380
16381 LTLIBOBJS=$ac_ltlibobjs
16382
16383
16384 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16385   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16386 Usually this means the macro was only invoked conditionally." >&5
16387 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16388 Usually this means the macro was only invoked conditionally." >&2;}
16389    { (exit 1); exit 1; }; }
16390 fi
16391 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16392   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16393 Usually this means the macro was only invoked conditionally." >&5
16394 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16395 Usually this means the macro was only invoked conditionally." >&2;}
16396    { (exit 1); exit 1; }; }
16397 fi
16398 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16399   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16400 Usually this means the macro was only invoked conditionally." >&5
16401 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16402 Usually this means the macro was only invoked conditionally." >&2;}
16403    { (exit 1); exit 1; }; }
16404 fi
16405 if test -z "${NEEDGETOPT_TRUE}" && test -z "${NEEDGETOPT_FALSE}"; then
16406   { { echo "$as_me:$LINENO: error: conditional \"NEEDGETOPT\" was never defined.
16407 Usually this means the macro was only invoked conditionally." >&5
16408 echo "$as_me: error: conditional \"NEEDGETOPT\" was never defined.
16409 Usually this means the macro was only invoked conditionally." >&2;}
16410    { (exit 1); exit 1; }; }
16411 fi
16412 if test -z "${NEEDDLOPEN_TRUE}" && test -z "${NEEDDLOPEN_FALSE}"; then
16413   { { echo "$as_me:$LINENO: error: conditional \"NEEDDLOPEN\" was never defined.
16414 Usually this means the macro was only invoked conditionally." >&5
16415 echo "$as_me: error: conditional \"NEEDDLOPEN\" was never defined.
16416 Usually this means the macro was only invoked conditionally." >&2;}
16417    { (exit 1); exit 1; }; }
16418 fi
16419 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
16420   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
16421 Usually this means the macro was only invoked conditionally." >&5
16422 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
16423 Usually this means the macro was only invoked conditionally." >&2;}
16424    { (exit 1); exit 1; }; }
16425 fi
16426 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
16427   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
16428 Usually this means the macro was only invoked conditionally." >&5
16429 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
16430 Usually this means the macro was only invoked conditionally." >&2;}
16431    { (exit 1); exit 1; }; }
16432 fi
16433 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
16434   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
16435 Usually this means the macro was only invoked conditionally." >&5
16436 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
16437 Usually this means the macro was only invoked conditionally." >&2;}
16438    { (exit 1); exit 1; }; }
16439 fi
16440 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
16441   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
16442 Usually this means the macro was only invoked conditionally." >&5
16443 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
16444 Usually this means the macro was only invoked conditionally." >&2;}
16445    { (exit 1); exit 1; }; }
16446 fi
16447 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
16448   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
16449 Usually this means the macro was only invoked conditionally." >&5
16450 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
16451 Usually this means the macro was only invoked conditionally." >&2;}
16452    { (exit 1); exit 1; }; }
16453 fi
16454 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
16455   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
16456 Usually this means the macro was only invoked conditionally." >&5
16457 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
16458 Usually this means the macro was only invoked conditionally." >&2;}
16459    { (exit 1); exit 1; }; }
16460 fi
16461 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
16462   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
16463 Usually this means the macro was only invoked conditionally." >&5
16464 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
16465 Usually this means the macro was only invoked conditionally." >&2;}
16466    { (exit 1); exit 1; }; }
16467 fi
16468 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
16469   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
16470 Usually this means the macro was only invoked conditionally." >&5
16471 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
16472 Usually this means the macro was only invoked conditionally." >&2;}
16473    { (exit 1); exit 1; }; }
16474 fi
16475 if test -z "${ENABLE_DYNAMIC_TCLTK_TRUE}" && test -z "${ENABLE_DYNAMIC_TCLTK_FALSE}"; then
16476   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
16477 Usually this means the macro was only invoked conditionally." >&5
16478 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
16479 Usually this means the macro was only invoked conditionally." >&2;}
16480    { (exit 1); exit 1; }; }
16481 fi
16482 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
16483   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
16484 Usually this means the macro was only invoked conditionally." >&5
16485 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
16486 Usually this means the macro was only invoked conditionally." >&2;}
16487    { (exit 1); exit 1; }; }
16488 fi
16489 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
16490   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
16491 Usually this means the macro was only invoked conditionally." >&5
16492 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
16493 Usually this means the macro was only invoked conditionally." >&2;}
16494    { (exit 1); exit 1; }; }
16495 fi
16496 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
16497   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
16498 Usually this means the macro was only invoked conditionally." >&5
16499 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
16500 Usually this means the macro was only invoked conditionally." >&2;}
16501    { (exit 1); exit 1; }; }
16502 fi
16503 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
16504   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
16505 Usually this means the macro was only invoked conditionally." >&5
16506 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
16507 Usually this means the macro was only invoked conditionally." >&2;}
16508    { (exit 1); exit 1; }; }
16509 fi
16510 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
16511   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
16512 Usually this means the macro was only invoked conditionally." >&5
16513 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
16514 Usually this means the macro was only invoked conditionally." >&2;}
16515    { (exit 1); exit 1; }; }
16516 fi
16517 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
16518   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
16519 Usually this means the macro was only invoked conditionally." >&5
16520 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
16521 Usually this means the macro was only invoked conditionally." >&2;}
16522    { (exit 1); exit 1; }; }
16523 fi
16524 if test -z "${ENABLE_DYNAMIC_XAW_TRUE}" && test -z "${ENABLE_DYNAMIC_XAW_FALSE}"; then
16525   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
16526 Usually this means the macro was only invoked conditionally." >&5
16527 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
16528 Usually this means the macro was only invoked conditionally." >&2;}
16529    { (exit 1); exit 1; }; }
16530 fi
16531 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
16532   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
16533 Usually this means the macro was only invoked conditionally." >&5
16534 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
16535 Usually this means the macro was only invoked conditionally." >&2;}
16536    { (exit 1); exit 1; }; }
16537 fi
16538 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
16539   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
16540 Usually this means the macro was only invoked conditionally." >&5
16541 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
16542 Usually this means the macro was only invoked conditionally." >&2;}
16543    { (exit 1); exit 1; }; }
16544 fi
16545 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
16546   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
16547 Usually this means the macro was only invoked conditionally." >&5
16548 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
16549 Usually this means the macro was only invoked conditionally." >&2;}
16550    { (exit 1); exit 1; }; }
16551 fi
16552 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
16553   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
16554 Usually this means the macro was only invoked conditionally." >&5
16555 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
16556 Usually this means the macro was only invoked conditionally." >&2;}
16557    { (exit 1); exit 1; }; }
16558 fi
16559 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
16560   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
16561 Usually this means the macro was only invoked conditionally." >&5
16562 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
16563 Usually this means the macro was only invoked conditionally." >&2;}
16564    { (exit 1); exit 1; }; }
16565 fi
16566 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
16567   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
16568 Usually this means the macro was only invoked conditionally." >&5
16569 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
16570 Usually this means the macro was only invoked conditionally." >&2;}
16571    { (exit 1); exit 1; }; }
16572 fi
16573 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
16574   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
16575 Usually this means the macro was only invoked conditionally." >&5
16576 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
16577 Usually this means the macro was only invoked conditionally." >&2;}
16578    { (exit 1); exit 1; }; }
16579 fi
16580 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
16581   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
16582 Usually this means the macro was only invoked conditionally." >&5
16583 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
16584 Usually this means the macro was only invoked conditionally." >&2;}
16585    { (exit 1); exit 1; }; }
16586 fi
16587 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
16588   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
16589 Usually this means the macro was only invoked conditionally." >&5
16590 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
16591 Usually this means the macro was only invoked conditionally." >&2;}
16592    { (exit 1); exit 1; }; }
16593 fi
16594 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
16595   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
16596 Usually this means the macro was only invoked conditionally." >&5
16597 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
16598 Usually this means the macro was only invoked conditionally." >&2;}
16599    { (exit 1); exit 1; }; }
16600 fi
16601 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
16602   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
16603 Usually this means the macro was only invoked conditionally." >&5
16604 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
16605 Usually this means the macro was only invoked conditionally." >&2;}
16606    { (exit 1); exit 1; }; }
16607 fi
16608 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
16609   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
16610 Usually this means the macro was only invoked conditionally." >&5
16611 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
16612 Usually this means the macro was only invoked conditionally." >&2;}
16613    { (exit 1); exit 1; }; }
16614 fi
16615 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
16616   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
16617 Usually this means the macro was only invoked conditionally." >&5
16618 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
16619 Usually this means the macro was only invoked conditionally." >&2;}
16620    { (exit 1); exit 1; }; }
16621 fi
16622 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
16623   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
16624 Usually this means the macro was only invoked conditionally." >&5
16625 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
16626 Usually this means the macro was only invoked conditionally." >&2;}
16627    { (exit 1); exit 1; }; }
16628 fi
16629 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
16630   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
16631 Usually this means the macro was only invoked conditionally." >&5
16632 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
16633 Usually this means the macro was only invoked conditionally." >&2;}
16634    { (exit 1); exit 1; }; }
16635 fi
16636 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
16637   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
16638 Usually this means the macro was only invoked conditionally." >&5
16639 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
16640 Usually this means the macro was only invoked conditionally." >&2;}
16641    { (exit 1); exit 1; }; }
16642 fi
16643 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
16644   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
16645 Usually this means the macro was only invoked conditionally." >&5
16646 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
16647 Usually this means the macro was only invoked conditionally." >&2;}
16648    { (exit 1); exit 1; }; }
16649 fi
16650 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
16651   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
16652 Usually this means the macro was only invoked conditionally." >&5
16653 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
16654 Usually this means the macro was only invoked conditionally." >&2;}
16655    { (exit 1); exit 1; }; }
16656 fi
16657 if test -z "${ENABLE_NETWORK_TRUE}" && test -z "${ENABLE_NETWORK_FALSE}"; then
16658   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NETWORK\" was never defined.
16659 Usually this means the macro was only invoked conditionally." >&5
16660 echo "$as_me: error: conditional \"ENABLE_NETWORK\" was never defined.
16661 Usually this means the macro was only invoked conditionally." >&2;}
16662    { (exit 1); exit 1; }; }
16663 fi
16664 if test -z "${ENABLE_SOUND_SPEC_TRUE}" && test -z "${ENABLE_SOUND_SPEC_FALSE}"; then
16665   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
16666 Usually this means the macro was only invoked conditionally." >&5
16667 echo "$as_me: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
16668 Usually this means the macro was only invoked conditionally." >&2;}
16669    { (exit 1); exit 1; }; }
16670 fi
16671 if test -z "${ENABLE_WRD_TRUE}" && test -z "${ENABLE_WRD_FALSE}"; then
16672   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WRD\" was never defined.
16673 Usually this means the macro was only invoked conditionally." >&5
16674 echo "$as_me: error: conditional \"ENABLE_WRD\" was never defined.
16675 Usually this means the macro was only invoked conditionally." >&2;}
16676    { (exit 1); exit 1; }; }
16677 fi
16678 if test -z "${CYGNUS_TRUE}" && test -z "${CYGNUS_FALSE}"; then
16679   { { echo "$as_me:$LINENO: error: conditional \"CYGNUS\" was never defined.
16680 Usually this means the macro was only invoked conditionally." >&5
16681 echo "$as_me: error: conditional \"CYGNUS\" was never defined.
16682 Usually this means the macro was only invoked conditionally." >&2;}
16683    { (exit 1); exit 1; }; }
16684 fi
16685 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
16686   { { echo "$as_me:$LINENO: error: conditional \"MINGW\" was never defined.
16687 Usually this means the macro was only invoked conditionally." >&5
16688 echo "$as_me: error: conditional \"MINGW\" was never defined.
16689 Usually this means the macro was only invoked conditionally." >&2;}
16690    { (exit 1); exit 1; }; }
16691 fi
16692 if test -z "${W32READDIR_TRUE}" && test -z "${W32READDIR_FALSE}"; then
16693   { { echo "$as_me:$LINENO: error: conditional \"W32READDIR\" was never defined.
16694 Usually this means the macro was only invoked conditionally." >&5
16695 echo "$as_me: error: conditional \"W32READDIR\" was never defined.
16696 Usually this means the macro was only invoked conditionally." >&2;}
16697    { (exit 1); exit 1; }; }
16698 fi
16699
16700 : ${CONFIG_STATUS=./config.status}
16701 ac_clean_files_save=$ac_clean_files
16702 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16703 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16704 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16705 cat >$CONFIG_STATUS <<_ACEOF
16706 #! $SHELL
16707 # Generated by $as_me.
16708 # Run this file to recreate the current configuration.
16709 # Compiler output produced by configure, useful for debugging
16710 # configure, is in config.log if it exists.
16711
16712 debug=false
16713 ac_cs_recheck=false
16714 ac_cs_silent=false
16715 SHELL=\${CONFIG_SHELL-$SHELL}
16716 _ACEOF
16717
16718 cat >>$CONFIG_STATUS <<\_ACEOF
16719 ## --------------------- ##
16720 ## M4sh Initialization.  ##
16721 ## --------------------- ##
16722
16723 # Be Bourne compatible
16724 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16725   emulate sh
16726   NULLCMD=:
16727   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16728   # is contrary to our usage.  Disable this feature.
16729   alias -g '${1+"$@"}'='"$@"'
16730 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16731   set -o posix
16732 fi
16733
16734 # Support unset when possible.
16735 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16736   as_unset=unset
16737 else
16738   as_unset=false
16739 fi
16740
16741
16742 # Work around bugs in pre-3.0 UWIN ksh.
16743 $as_unset ENV MAIL MAILPATH
16744 PS1='$ '
16745 PS2='> '
16746 PS4='+ '
16747
16748 # NLS nuisances.
16749 for as_var in \
16750   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16751   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16752   LC_TELEPHONE LC_TIME
16753 do
16754   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
16755     eval $as_var=C; export $as_var
16756   else
16757     $as_unset $as_var
16758   fi
16759 done
16760
16761 # Required to use basename.
16762 if expr a : '\(a\)' >/dev/null 2>&1; then
16763   as_expr=expr
16764 else
16765   as_expr=false
16766 fi
16767
16768 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16769   as_basename=basename
16770 else
16771   as_basename=false
16772 fi
16773
16774
16775 # Name of the executable.
16776 as_me=`$as_basename "$0" ||
16777 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16778          X"$0" : 'X\(//\)$' \| \
16779          X"$0" : 'X\(/\)$' \| \
16780          .     : '\(.\)' 2>/dev/null ||
16781 echo X/"$0" |
16782     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16783           /^X\/\(\/\/\)$/{ s//\1/; q; }
16784           /^X\/\(\/\).*/{ s//\1/; q; }
16785           s/.*/./; q'`
16786
16787
16788 # PATH needs CR, and LINENO needs CR and PATH.
16789 # Avoid depending upon Character Ranges.
16790 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16791 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16792 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16793 as_cr_digits='0123456789'
16794 as_cr_alnum=$as_cr_Letters$as_cr_digits
16795
16796 # The user is always right.
16797 if test "${PATH_SEPARATOR+set}" != set; then
16798   echo "#! /bin/sh" >conf$$.sh
16799   echo  "exit 0"   >>conf$$.sh
16800   chmod +x conf$$.sh
16801   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16802     PATH_SEPARATOR=';'
16803   else
16804     PATH_SEPARATOR=:
16805   fi
16806   rm -f conf$$.sh
16807 fi
16808
16809
16810   as_lineno_1=$LINENO
16811   as_lineno_2=$LINENO
16812   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16813   test "x$as_lineno_1" != "x$as_lineno_2" &&
16814   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16815   # Find who we are.  Look in the path if we contain no path at all
16816   # relative or not.
16817   case $0 in
16818     *[\\/]* ) as_myself=$0 ;;
16819     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16820 for as_dir in $PATH
16821 do
16822   IFS=$as_save_IFS
16823   test -z "$as_dir" && as_dir=.
16824   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16825 done
16826
16827        ;;
16828   esac
16829   # We did not find ourselves, most probably we were run as `sh COMMAND'
16830   # in which case we are not to be found in the path.
16831   if test "x$as_myself" = x; then
16832     as_myself=$0
16833   fi
16834   if test ! -f "$as_myself"; then
16835     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16836 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16837    { (exit 1); exit 1; }; }
16838   fi
16839   case $CONFIG_SHELL in
16840   '')
16841     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16842 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16843 do
16844   IFS=$as_save_IFS
16845   test -z "$as_dir" && as_dir=.
16846   for as_base in sh bash ksh sh5; do
16847          case $as_dir in
16848          /*)
16849            if ("$as_dir/$as_base" -c '
16850   as_lineno_1=$LINENO
16851   as_lineno_2=$LINENO
16852   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16853   test "x$as_lineno_1" != "x$as_lineno_2" &&
16854   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16855              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16856              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16857              CONFIG_SHELL=$as_dir/$as_base
16858              export CONFIG_SHELL
16859              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16860            fi;;
16861          esac
16862        done
16863 done
16864 ;;
16865   esac
16866
16867   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16868   # uniformly replaced by the line number.  The first 'sed' inserts a
16869   # line-number line before each line; the second 'sed' does the real
16870   # work.  The second script uses 'N' to pair each line-number line
16871   # with the numbered line, and appends trailing '-' during
16872   # substitution so that $LINENO is not a special case at line end.
16873   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16874   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16875   sed '=' <$as_myself |
16876     sed '
16877       N
16878       s,$,-,
16879       : loop
16880       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16881       t loop
16882       s,-$,,
16883       s,^['$as_cr_digits']*\n,,
16884     ' >$as_me.lineno &&
16885   chmod +x $as_me.lineno ||
16886     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16887 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16888    { (exit 1); exit 1; }; }
16889
16890   # Don't try to exec as it changes $[0], causing all sort of problems
16891   # (the dirname of $[0] is not the place where we might find the
16892   # original and so on.  Autoconf is especially sensible to this).
16893   . ./$as_me.lineno
16894   # Exit status is that of the last command.
16895   exit
16896 }
16897
16898
16899 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16900   *c*,-n*) ECHO_N= ECHO_C='
16901 ' ECHO_T='      ' ;;
16902   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16903   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16904 esac
16905
16906 if expr a : '\(a\)' >/dev/null 2>&1; then
16907   as_expr=expr
16908 else
16909   as_expr=false
16910 fi
16911
16912 rm -f conf$$ conf$$.exe conf$$.file
16913 echo >conf$$.file
16914 if ln -s conf$$.file conf$$ 2>/dev/null; then
16915   # We could just check for DJGPP; but this test a) works b) is more generic
16916   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16917   if test -f conf$$.exe; then
16918     # Don't use ln at all; we don't have any links
16919     as_ln_s='cp -p'
16920   else
16921     as_ln_s='ln -s'
16922   fi
16923 elif ln conf$$.file conf$$ 2>/dev/null; then
16924   as_ln_s=ln
16925 else
16926   as_ln_s='cp -p'
16927 fi
16928 rm -f conf$$ conf$$.exe conf$$.file
16929
16930 if mkdir -p . 2>/dev/null; then
16931   as_mkdir_p=:
16932 else
16933   as_mkdir_p=false
16934 fi
16935
16936 as_executable_p="test -f"
16937
16938 # Sed expression to map a string onto a valid CPP name.
16939 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16940
16941 # Sed expression to map a string onto a valid variable name.
16942 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16943
16944
16945 # IFS
16946 # We need space, tab and new line, in precisely that order.
16947 as_nl='
16948 '
16949 IFS="   $as_nl"
16950
16951 # CDPATH.
16952 $as_unset CDPATH
16953
16954 exec 6>&1
16955
16956 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16957 # report actual input values of CONFIG_FILES etc. instead of their
16958 # values after options handling.  Logging --version etc. is OK.
16959 exec 5>>config.log
16960 {
16961   echo
16962   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16963 ## Running $as_me. ##
16964 _ASBOX
16965 } >&5
16966 cat >&5 <<_CSEOF
16967
16968 This file was extended by TiMidity++ $as_me 2.12.0-pre1b, which was
16969 generated by GNU Autoconf 2.57.  Invocation command line was
16970
16971   CONFIG_FILES    = $CONFIG_FILES
16972   CONFIG_HEADERS  = $CONFIG_HEADERS
16973   CONFIG_LINKS    = $CONFIG_LINKS
16974   CONFIG_COMMANDS = $CONFIG_COMMANDS
16975   $ $0 $@
16976
16977 _CSEOF
16978 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16979 echo >&5
16980 _ACEOF
16981
16982 # Files that config.status was made for.
16983 if test -n "$ac_config_files"; then
16984   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16985 fi
16986
16987 if test -n "$ac_config_headers"; then
16988   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16989 fi
16990
16991 if test -n "$ac_config_links"; then
16992   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16993 fi
16994
16995 if test -n "$ac_config_commands"; then
16996   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16997 fi
16998
16999 cat >>$CONFIG_STATUS <<\_ACEOF
17000
17001 ac_cs_usage="\
17002 \`$as_me' instantiates files from templates according to the
17003 current configuration.
17004
17005 Usage: $0 [OPTIONS] [FILE]...
17006
17007   -h, --help       print this help, then exit
17008   -V, --version    print version number, then exit
17009   -q, --quiet      do not print progress messages
17010   -d, --debug      don't remove temporary files
17011       --recheck    update $as_me by reconfiguring in the same conditions
17012   --file=FILE[:TEMPLATE]
17013                    instantiate the configuration file FILE
17014   --header=FILE[:TEMPLATE]
17015                    instantiate the configuration header FILE
17016
17017 Configuration files:
17018 $config_files
17019
17020 Configuration headers:
17021 $config_headers
17022
17023 Configuration commands:
17024 $config_commands
17025
17026 Report bugs to <bug-autoconf@gnu.org>."
17027 _ACEOF
17028
17029 cat >>$CONFIG_STATUS <<_ACEOF
17030 ac_cs_version="\\
17031 TiMidity++ config.status 2.12.0-pre1b
17032 configured by $0, generated by GNU Autoconf 2.57,
17033   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17034
17035 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17036 Free Software Foundation, Inc.
17037 This config.status script is free software; the Free Software Foundation
17038 gives unlimited permission to copy, distribute and modify it."
17039 srcdir=$srcdir
17040 INSTALL="$INSTALL"
17041 _ACEOF
17042
17043 cat >>$CONFIG_STATUS <<\_ACEOF
17044 # If no file are specified by the user, then we need to provide default
17045 # value.  By we need to know if files were specified by the user.
17046 ac_need_defaults=:
17047 while test $# != 0
17048 do
17049   case $1 in
17050   --*=*)
17051     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17052     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17053     ac_shift=:
17054     ;;
17055   -*)
17056     ac_option=$1
17057     ac_optarg=$2
17058     ac_shift=shift
17059     ;;
17060   *) # This is not an option, so the user has probably given explicit
17061      # arguments.
17062      ac_option=$1
17063      ac_need_defaults=false;;
17064   esac
17065
17066   case $ac_option in
17067   # Handling of the options.
17068 _ACEOF
17069 cat >>$CONFIG_STATUS <<\_ACEOF
17070   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17071     ac_cs_recheck=: ;;
17072   --version | --vers* | -V )
17073     echo "$ac_cs_version"; exit 0 ;;
17074   --he | --h)
17075     # Conflict between --help and --header
17076     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17077 Try \`$0 --help' for more information." >&5
17078 echo "$as_me: error: ambiguous option: $1
17079 Try \`$0 --help' for more information." >&2;}
17080    { (exit 1); exit 1; }; };;
17081   --help | --hel | -h )
17082     echo "$ac_cs_usage"; exit 0 ;;
17083   --debug | --d* | -d )
17084     debug=: ;;
17085   --file | --fil | --fi | --f )
17086     $ac_shift
17087     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17088     ac_need_defaults=false;;
17089   --header | --heade | --head | --hea )
17090     $ac_shift
17091     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17092     ac_need_defaults=false;;
17093   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17094   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17095     ac_cs_silent=: ;;
17096
17097   # This is an error.
17098   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17099 Try \`$0 --help' for more information." >&5
17100 echo "$as_me: error: unrecognized option: $1
17101 Try \`$0 --help' for more information." >&2;}
17102    { (exit 1); exit 1; }; } ;;
17103
17104   *) ac_config_targets="$ac_config_targets $1" ;;
17105
17106   esac
17107   shift
17108 done
17109
17110 ac_configure_extra_args=
17111
17112 if $ac_cs_silent; then
17113   exec 6>/dev/null
17114   ac_configure_extra_args="$ac_configure_extra_args --silent"
17115 fi
17116
17117 _ACEOF
17118 cat >>$CONFIG_STATUS <<_ACEOF
17119 if \$ac_cs_recheck; then
17120   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17121   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17122 fi
17123
17124 _ACEOF
17125
17126 cat >>$CONFIG_STATUS <<_ACEOF
17127 #
17128 # INIT-COMMANDS section.
17129 #
17130
17131 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17132
17133 _ACEOF
17134
17135
17136
17137 cat >>$CONFIG_STATUS <<\_ACEOF
17138 for ac_config_target in $ac_config_targets
17139 do
17140   case "$ac_config_target" in
17141   # Handling of arguments.
17142   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17143   "autoconf/Makefile" ) CONFIG_FILES="$CONFIG_FILES autoconf/Makefile" ;;
17144   "common.makefile" ) CONFIG_FILES="$CONFIG_FILES common.makefile" ;;
17145   "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
17146   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17147   "doc/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
17148   "doc/ja_JP.ujis/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/ja_JP.ujis/Makefile" ;;
17149   "interface/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
17150   "interface/motif_bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/motif_bitmaps/Makefile" ;;
17151   "interface/bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/bitmaps/Makefile" ;;
17152   "interface/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/pixmaps/Makefile" ;;
17153   "libarc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libarc/Makefile" ;;
17154   "libunimod/Makefile" ) CONFIG_FILES="$CONFIG_FILES libunimod/Makefile" ;;
17155   "timidity/Makefile" ) CONFIG_FILES="$CONFIG_FILES timidity/Makefile" ;;
17156   "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
17157   "script/Makefile" ) CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
17158   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17159   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17160   "interface.h" ) CONFIG_HEADERS="$CONFIG_HEADERS interface.h" ;;
17161   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17162 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17163    { (exit 1); exit 1; }; };;
17164   esac
17165 done
17166
17167 # If the user did not use the arguments to specify the items to instantiate,
17168 # then the envvar interface is used.  Set only those that are not.
17169 # We use the long form for the default assignment because of an extremely
17170 # bizarre bug on SunOS 4.1.3.
17171 if $ac_need_defaults; then
17172   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17173   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17174   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17175 fi
17176
17177 # Have a temporary directory for convenience.  Make it in the build tree
17178 # simply because there is no reason to put it here, and in addition,
17179 # creating and moving files from /tmp can sometimes cause problems.
17180 # Create a temporary directory, and hook for its removal unless debugging.
17181 $debug ||
17182 {
17183   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17184   trap '{ (exit 1); exit 1; }' 1 2 13 15
17185 }
17186
17187 # Create a (secure) tmp directory for tmp files.
17188
17189 {
17190   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17191   test -n "$tmp" && test -d "$tmp"
17192 }  ||
17193 {
17194   tmp=./confstat$$-$RANDOM
17195   (umask 077 && mkdir $tmp)
17196 } ||
17197 {
17198    echo "$me: cannot create a temporary directory in ." >&2
17199    { (exit 1); exit 1; }
17200 }
17201
17202 _ACEOF
17203
17204 cat >>$CONFIG_STATUS <<_ACEOF
17205
17206 #
17207 # CONFIG_FILES section.
17208 #
17209
17210 # No need to generate the scripts if there are no CONFIG_FILES.
17211 # This happens for instance when ./config.status config.h
17212 if test -n "\$CONFIG_FILES"; then
17213   # Protect against being on the right side of a sed subst in config.status.
17214   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17215    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17216 s,@SHELL@,$SHELL,;t t
17217 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17218 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17219 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17220 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17221 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17222 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17223 s,@exec_prefix@,$exec_prefix,;t t
17224 s,@prefix@,$prefix,;t t
17225 s,@program_transform_name@,$program_transform_name,;t t
17226 s,@bindir@,$bindir,;t t
17227 s,@sbindir@,$sbindir,;t t
17228 s,@libexecdir@,$libexecdir,;t t
17229 s,@datadir@,$datadir,;t t
17230 s,@sysconfdir@,$sysconfdir,;t t
17231 s,@sharedstatedir@,$sharedstatedir,;t t
17232 s,@localstatedir@,$localstatedir,;t t
17233 s,@libdir@,$libdir,;t t
17234 s,@includedir@,$includedir,;t t
17235 s,@oldincludedir@,$oldincludedir,;t t
17236 s,@infodir@,$infodir,;t t
17237 s,@mandir@,$mandir,;t t
17238 s,@build_alias@,$build_alias,;t t
17239 s,@host_alias@,$host_alias,;t t
17240 s,@target_alias@,$target_alias,;t t
17241 s,@DEFS@,$DEFS,;t t
17242 s,@ECHO_C@,$ECHO_C,;t t
17243 s,@ECHO_N@,$ECHO_N,;t t
17244 s,@ECHO_T@,$ECHO_T,;t t
17245 s,@LIBS@,$LIBS,;t t
17246 s,@build@,$build,;t t
17247 s,@build_cpu@,$build_cpu,;t t
17248 s,@build_vendor@,$build_vendor,;t t
17249 s,@build_os@,$build_os,;t t
17250 s,@host@,$host,;t t
17251 s,@host_cpu@,$host_cpu,;t t
17252 s,@host_vendor@,$host_vendor,;t t
17253 s,@host_os@,$host_os,;t t
17254 s,@target@,$target,;t t
17255 s,@target_cpu@,$target_cpu,;t t
17256 s,@target_vendor@,$target_vendor,;t t
17257 s,@target_os@,$target_os,;t t
17258 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17259 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17260 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17261 s,@CYGPATH_W@,$CYGPATH_W,;t t
17262 s,@PACKAGE@,$PACKAGE,;t t
17263 s,@VERSION@,$VERSION,;t t
17264 s,@ACLOCAL@,$ACLOCAL,;t t
17265 s,@AUTOCONF@,$AUTOCONF,;t t
17266 s,@AUTOMAKE@,$AUTOMAKE,;t t
17267 s,@AUTOHEADER@,$AUTOHEADER,;t t
17268 s,@MAKEINFO@,$MAKEINFO,;t t
17269 s,@AMTAR@,$AMTAR,;t t
17270 s,@install_sh@,$install_sh,;t t
17271 s,@STRIP@,$STRIP,;t t
17272 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17273 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17274 s,@AWK@,$AWK,;t t
17275 s,@SET_MAKE@,$SET_MAKE,;t t
17276 s,@am__leading_dot@,$am__leading_dot,;t t
17277 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17278 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17279 s,@MAINT@,$MAINT,;t t
17280 s,@EMACS@,$EMACS,;t t
17281 s,@lispdir@,$lispdir,;t t
17282 s,@CC@,$CC,;t t
17283 s,@CFLAGS@,$CFLAGS,;t t
17284 s,@LDFLAGS@,$LDFLAGS,;t t
17285 s,@CPPFLAGS@,$CPPFLAGS,;t t
17286 s,@ac_ct_CC@,$ac_ct_CC,;t t
17287 s,@EXEEXT@,$EXEEXT,;t t
17288 s,@OBJEXT@,$OBJEXT,;t t
17289 s,@DEPDIR@,$DEPDIR,;t t
17290 s,@am__include@,$am__include,;t t
17291 s,@am__quote@,$am__quote,;t t
17292 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17293 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17294 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17295 s,@CCDEPMODE@,$CCDEPMODE,;t t
17296 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17297 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17298 s,@CPP@,$CPP,;t t
17299 s,@EGREP@,$EGREP,;t t
17300 s,@RANLIB@,$RANLIB,;t t
17301 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17302 s,@LN_S@,$LN_S,;t t
17303 s,@X_CFLAGS@,$X_CFLAGS,;t t
17304 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17305 s,@X_LIBS@,$X_LIBS,;t t
17306 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17307 s,@LIBOBJS@,$LIBOBJS,;t t
17308 s,@NEEDGETOPT_TRUE@,$NEEDGETOPT_TRUE,;t t
17309 s,@NEEDGETOPT_FALSE@,$NEEDGETOPT_FALSE,;t t
17310 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
17311 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
17312 s,@ARTS_CONFIG@,$ARTS_CONFIG,;t t
17313 s,@ARTS_CFLAGS@,$ARTS_CFLAGS,;t t
17314 s,@ARTS_LIBS@,$ARTS_LIBS,;t t
17315 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
17316 s,@ESD_CFLAGS@,$ESD_CFLAGS,;t t
17317 s,@ESD_LIBS@,$ESD_LIBS,;t t
17318 s,@VORBIS_CFLAGS@,$VORBIS_CFLAGS,;t t
17319 s,@VORBIS_LIBS@,$VORBIS_LIBS,;t t
17320 s,@VORBISFILE_LIBS@,$VORBISFILE_LIBS,;t t
17321 s,@VORBISENC_LIBS@,$VORBISENC_LIBS,;t t
17322 s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t
17323 s,@OGG_LIBS@,$OGG_LIBS,;t t
17324 s,@NEEDDLOPEN_TRUE@,$NEEDDLOPEN_TRUE,;t t
17325 s,@NEEDDLOPEN_FALSE@,$NEEDDLOPEN_FALSE,;t t
17326 s,@ENABLE_NCURSES_TRUE@,$ENABLE_NCURSES_TRUE,;t t
17327 s,@ENABLE_NCURSES_FALSE@,$ENABLE_NCURSES_FALSE,;t t
17328 s,@n_so_libs@,$n_so_libs,;t t
17329 s,@ENABLE_SLANG_TRUE@,$ENABLE_SLANG_TRUE,;t t
17330 s,@ENABLE_SLANG_FALSE@,$ENABLE_SLANG_FALSE,;t t
17331 s,@s_so_libs@,$s_so_libs,;t t
17332 s,@ENABLE_MOTIF_TRUE@,$ENABLE_MOTIF_TRUE,;t t
17333 s,@ENABLE_MOTIF_FALSE@,$ENABLE_MOTIF_FALSE,;t t
17334 s,@m_so_libs@,$m_so_libs,;t t
17335 s,@ENABLE_TCLTK_TRUE@,$ENABLE_TCLTK_TRUE,;t t
17336 s,@ENABLE_TCLTK_FALSE@,$ENABLE_TCLTK_FALSE,;t t
17337 s,@k_so_libs@,$k_so_libs,;t t
17338 s,@ENABLE_DYNAMIC_TCLTK_TRUE@,$ENABLE_DYNAMIC_TCLTK_TRUE,;t t
17339 s,@ENABLE_DYNAMIC_TCLTK_FALSE@,$ENABLE_DYNAMIC_TCLTK_FALSE,;t t
17340 s,@ENABLE_EMACS_TRUE@,$ENABLE_EMACS_TRUE,;t t
17341 s,@ENABLE_EMACS_FALSE@,$ENABLE_EMACS_FALSE,;t t
17342 s,@e_so_libs@,$e_so_libs,;t t
17343 s,@ENABLE_VT100_TRUE@,$ENABLE_VT100_TRUE,;t t
17344 s,@ENABLE_VT100_FALSE@,$ENABLE_VT100_FALSE,;t t
17345 s,@T_so_libs@,$T_so_libs,;t t
17346 s,@ENABLE_XAW_TRUE@,$ENABLE_XAW_TRUE,;t t
17347 s,@ENABLE_XAW_FALSE@,$ENABLE_XAW_FALSE,;t t
17348 s,@a_so_libs@,$a_so_libs,;t t
17349 s,@ENABLE_DYNAMIC_XAW_TRUE@,$ENABLE_DYNAMIC_XAW_TRUE,;t t
17350 s,@ENABLE_DYNAMIC_XAW_FALSE@,$ENABLE_DYNAMIC_XAW_FALSE,;t t
17351 s,@ENABLE_XSKIN_TRUE@,$ENABLE_XSKIN_TRUE,;t t
17352 s,@ENABLE_XSKIN_FALSE@,$ENABLE_XSKIN_FALSE,;t t
17353 s,@i_so_libs@,$i_so_libs,;t t
17354 s,@ENABLE_GTK_TRUE@,$ENABLE_GTK_TRUE,;t t
17355 s,@ENABLE_GTK_FALSE@,$ENABLE_GTK_FALSE,;t t
17356 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
17357 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17358 s,@GTK_LIBS@,$GTK_LIBS,;t t
17359 s,@g_so_libs@,$g_so_libs,;t t
17360 s,@ENABLE_SERVER_TRUE@,$ENABLE_SERVER_TRUE,;t t
17361 s,@ENABLE_SERVER_FALSE@,$ENABLE_SERVER_FALSE,;t t
17362 s,@r_so_libs@,$r_so_libs,;t t
17363 s,@ENABLE_ALSASEQ_TRUE@,$ENABLE_ALSASEQ_TRUE,;t t
17364 s,@ENABLE_ALSASEQ_FALSE@,$ENABLE_ALSASEQ_FALSE,;t t
17365 s,@A_so_libs@,$A_so_libs,;t t
17366 s,@ENABLE_WINSYN_TRUE@,$ENABLE_WINSYN_TRUE,;t t
17367 s,@ENABLE_WINSYN_FALSE@,$ENABLE_WINSYN_FALSE,;t t
17368 s,@W_so_libs@,$W_so_libs,;t t
17369 s,@ENABLE_PORTMIDISYN_TRUE@,$ENABLE_PORTMIDISYN_TRUE,;t t
17370 s,@ENABLE_PORTMIDISYN_FALSE@,$ENABLE_PORTMIDISYN_FALSE,;t t
17371 s,@P_so_libs@,$P_so_libs,;t t
17372 s,@ENABLE_W32G_SYN_TRUE@,$ENABLE_W32G_SYN_TRUE,;t t
17373 s,@ENABLE_W32G_SYN_FALSE@,$ENABLE_W32G_SYN_FALSE,;t t
17374 s,@ENABLE_W32GUI_TRUE@,$ENABLE_W32GUI_TRUE,;t t
17375 s,@ENABLE_W32GUI_FALSE@,$ENABLE_W32GUI_FALSE,;t t
17376 s,@w_so_libs@,$w_so_libs,;t t
17377 s,@ENABLE_PLUGIN_TRUE@,$ENABLE_PLUGIN_TRUE,;t t
17378 s,@ENABLE_PLUGIN_FALSE@,$ENABLE_PLUGIN_FALSE,;t t
17379 s,@p_so_libs@,$p_so_libs,;t t
17380 s,@ENABLE_NETWORK_TRUE@,$ENABLE_NETWORK_TRUE,;t t
17381 s,@ENABLE_NETWORK_FALSE@,$ENABLE_NETWORK_FALSE,;t t
17382 s,@ENABLE_SOUND_SPEC_TRUE@,$ENABLE_SOUND_SPEC_TRUE,;t t
17383 s,@ENABLE_SOUND_SPEC_FALSE@,$ENABLE_SOUND_SPEC_FALSE,;t t
17384 s,@ENABLE_WRD_TRUE@,$ENABLE_WRD_TRUE,;t t
17385 s,@ENABLE_WRD_FALSE@,$ENABLE_WRD_FALSE,;t t
17386 s,@CYGNUS_TRUE@,$CYGNUS_TRUE,;t t
17387 s,@CYGNUS_FALSE@,$CYGNUS_FALSE,;t t
17388 s,@MINGW_TRUE@,$MINGW_TRUE,;t t
17389 s,@MINGW_FALSE@,$MINGW_FALSE,;t t
17390 s,@W32READDIR_TRUE@,$W32READDIR_TRUE,;t t
17391 s,@W32READDIR_FALSE@,$W32READDIR_FALSE,;t t
17392 s,@timidity_LDFLAGS@,$timidity_LDFLAGS,;t t
17393 s,@SYSEXTRAS@,$SYSEXTRAS,;t t
17394 s,@EXTRALIBS@,$EXTRALIBS,;t t
17395 s,@NETSRCS@,$NETSRCS,;t t
17396 s,@ELFILES@,$ELFILES,;t t
17397 s,@SHLD@,$SHLD,;t t
17398 s,@SHCFLAGS@,$SHCFLAGS,;t t
17399 s,@dynamic_targets@,$dynamic_targets,;t t
17400 s,@so@,$so,;t t
17401 s,@WISH@,$WISH,;t t
17402 s,@tcltk_dep@,$tcltk_dep,;t t
17403 s,@INTERFACE_SRCS@,$INTERFACE_SRCS,;t t
17404 s,@pkgdatadir@,$pkgdatadir,;t t
17405 s,@pkglibdir@,$pkglibdir,;t t
17406 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17407 CEOF
17408
17409 _ACEOF
17410
17411   cat >>$CONFIG_STATUS <<\_ACEOF
17412   # Split the substitutions into bite-sized pieces for seds with
17413   # small command number limits, like on Digital OSF/1 and HP-UX.
17414   ac_max_sed_lines=48
17415   ac_sed_frag=1 # Number of current file.
17416   ac_beg=1 # First line for current file.
17417   ac_end=$ac_max_sed_lines # Line after last line for current file.
17418   ac_more_lines=:
17419   ac_sed_cmds=
17420   while $ac_more_lines; do
17421     if test $ac_beg -gt 1; then
17422       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17423     else
17424       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17425     fi
17426     if test ! -s $tmp/subs.frag; then
17427       ac_more_lines=false
17428     else
17429       # The purpose of the label and of the branching condition is to
17430       # speed up the sed processing (if there are no `@' at all, there
17431       # is no need to browse any of the substitutions).
17432       # These are the two extra sed commands mentioned above.
17433       (echo ':t
17434   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17435       if test -z "$ac_sed_cmds"; then
17436         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17437       else
17438         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17439       fi
17440       ac_sed_frag=`expr $ac_sed_frag + 1`
17441       ac_beg=$ac_end
17442       ac_end=`expr $ac_end + $ac_max_sed_lines`
17443     fi
17444   done
17445   if test -z "$ac_sed_cmds"; then
17446     ac_sed_cmds=cat
17447   fi
17448 fi # test -n "$CONFIG_FILES"
17449
17450 _ACEOF
17451 cat >>$CONFIG_STATUS <<\_ACEOF
17452 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17453   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17454   case $ac_file in
17455   - | *:- | *:-:* ) # input from stdin
17456         cat >$tmp/stdin
17457         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17458         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17459   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17460         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17461   * )   ac_file_in=$ac_file.in ;;
17462   esac
17463
17464   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17465   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17466 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17467          X"$ac_file" : 'X\(//\)[^/]' \| \
17468          X"$ac_file" : 'X\(//\)$' \| \
17469          X"$ac_file" : 'X\(/\)' \| \
17470          .     : '\(.\)' 2>/dev/null ||
17471 echo X"$ac_file" |
17472     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17473           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17474           /^X\(\/\/\)$/{ s//\1/; q; }
17475           /^X\(\/\).*/{ s//\1/; q; }
17476           s/.*/./; q'`
17477   { if $as_mkdir_p; then
17478     mkdir -p "$ac_dir"
17479   else
17480     as_dir="$ac_dir"
17481     as_dirs=
17482     while test ! -d "$as_dir"; do
17483       as_dirs="$as_dir $as_dirs"
17484       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17485 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17486          X"$as_dir" : 'X\(//\)[^/]' \| \
17487          X"$as_dir" : 'X\(//\)$' \| \
17488          X"$as_dir" : 'X\(/\)' \| \
17489          .     : '\(.\)' 2>/dev/null ||
17490 echo X"$as_dir" |
17491     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17492           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17493           /^X\(\/\/\)$/{ s//\1/; q; }
17494           /^X\(\/\).*/{ s//\1/; q; }
17495           s/.*/./; q'`
17496     done
17497     test ! -n "$as_dirs" || mkdir $as_dirs
17498   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17499 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17500    { (exit 1); exit 1; }; }; }
17501
17502   ac_builddir=.
17503
17504 if test "$ac_dir" != .; then
17505   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17506   # A "../" for each directory in $ac_dir_suffix.
17507   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17508 else
17509   ac_dir_suffix= ac_top_builddir=
17510 fi
17511
17512 case $srcdir in
17513   .)  # No --srcdir option.  We are building in place.
17514     ac_srcdir=.
17515     if test -z "$ac_top_builddir"; then
17516        ac_top_srcdir=.
17517     else
17518        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17519     fi ;;
17520   [\\/]* | ?:[\\/]* )  # Absolute path.
17521     ac_srcdir=$srcdir$ac_dir_suffix;
17522     ac_top_srcdir=$srcdir ;;
17523   *) # Relative path.
17524     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17525     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17526 esac
17527 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17528 # absolute.
17529 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17530 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17531 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17532 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17533
17534
17535   case $INSTALL in
17536   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17537   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17538   esac
17539
17540   if test x"$ac_file" != x-; then
17541     { echo "$as_me:$LINENO: creating $ac_file" >&5
17542 echo "$as_me: creating $ac_file" >&6;}
17543     rm -f "$ac_file"
17544   fi
17545   # Let's still pretend it is `configure' which instantiates (i.e., don't
17546   # use $as_me), people would be surprised to read:
17547   #    /* config.h.  Generated by config.status.  */
17548   if test x"$ac_file" = x-; then
17549     configure_input=
17550   else
17551     configure_input="$ac_file.  "
17552   fi
17553   configure_input=$configure_input"Generated from `echo $ac_file_in |
17554                                      sed 's,.*/,,'` by configure."
17555
17556   # First look for the input files in the build tree, otherwise in the
17557   # src tree.
17558   ac_file_inputs=`IFS=:
17559     for f in $ac_file_in; do
17560       case $f in
17561       -) echo $tmp/stdin ;;
17562       [\\/$]*)
17563          # Absolute (can't be DOS-style, as IFS=:)
17564          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17565 echo "$as_me: error: cannot find input file: $f" >&2;}
17566    { (exit 1); exit 1; }; }
17567          echo $f;;
17568       *) # Relative
17569          if test -f "$f"; then
17570            # Build tree
17571            echo $f
17572          elif test -f "$srcdir/$f"; then
17573            # Source tree
17574            echo $srcdir/$f
17575          else
17576            # /dev/null tree
17577            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17578 echo "$as_me: error: cannot find input file: $f" >&2;}
17579    { (exit 1); exit 1; }; }
17580          fi;;
17581       esac
17582     done` || { (exit 1); exit 1; }
17583 _ACEOF
17584 cat >>$CONFIG_STATUS <<_ACEOF
17585   sed "$ac_vpsub
17586 $extrasub
17587 _ACEOF
17588 cat >>$CONFIG_STATUS <<\_ACEOF
17589 :t
17590 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17591 s,@configure_input@,$configure_input,;t t
17592 s,@srcdir@,$ac_srcdir,;t t
17593 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17594 s,@top_srcdir@,$ac_top_srcdir,;t t
17595 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17596 s,@builddir@,$ac_builddir,;t t
17597 s,@abs_builddir@,$ac_abs_builddir,;t t
17598 s,@top_builddir@,$ac_top_builddir,;t t
17599 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17600 s,@INSTALL@,$ac_INSTALL,;t t
17601 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17602   rm -f $tmp/stdin
17603   if test x"$ac_file" != x-; then
17604     mv $tmp/out $ac_file
17605   else
17606     cat $tmp/out
17607     rm -f $tmp/out
17608   fi
17609
17610 done
17611 _ACEOF
17612 cat >>$CONFIG_STATUS <<\_ACEOF
17613
17614 #
17615 # CONFIG_HEADER section.
17616 #
17617
17618 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17619 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17620 #
17621 # ac_d sets the value in "#define NAME VALUE" lines.
17622 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
17623 ac_dB='[        ].*$,\1#\2'
17624 ac_dC=' '
17625 ac_dD=',;t'
17626 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17627 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17628 ac_uB='$,\1#\2define\3'
17629 ac_uC=' '
17630 ac_uD=',;t'
17631
17632 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17633   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17634   case $ac_file in
17635   - | *:- | *:-:* ) # input from stdin
17636         cat >$tmp/stdin
17637         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17638         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17639   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17640         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17641   * )   ac_file_in=$ac_file.in ;;
17642   esac
17643
17644   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17645 echo "$as_me: creating $ac_file" >&6;}
17646
17647   # First look for the input files in the build tree, otherwise in the
17648   # src tree.
17649   ac_file_inputs=`IFS=:
17650     for f in $ac_file_in; do
17651       case $f in
17652       -) echo $tmp/stdin ;;
17653       [\\/$]*)
17654          # Absolute (can't be DOS-style, as IFS=:)
17655          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17656 echo "$as_me: error: cannot find input file: $f" >&2;}
17657    { (exit 1); exit 1; }; }
17658          echo $f;;
17659       *) # Relative
17660          if test -f "$f"; then
17661            # Build tree
17662            echo $f
17663          elif test -f "$srcdir/$f"; then
17664            # Source tree
17665            echo $srcdir/$f
17666          else
17667            # /dev/null tree
17668            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17669 echo "$as_me: error: cannot find input file: $f" >&2;}
17670    { (exit 1); exit 1; }; }
17671          fi;;
17672       esac
17673     done` || { (exit 1); exit 1; }
17674   # Remove the trailing spaces.
17675   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
17676
17677 _ACEOF
17678
17679 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17680 # `conftest.undefs', that substitutes the proper values into
17681 # config.h.in to produce config.h.  The first handles `#define'
17682 # templates, and the second `#undef' templates.
17683 # And first: Protect against being on the right side of a sed subst in
17684 # config.status.  Protect against being in an unquoted here document
17685 # in config.status.
17686 rm -f conftest.defines conftest.undefs
17687 # Using a here document instead of a string reduces the quoting nightmare.
17688 # Putting comments in sed scripts is not portable.
17689 #
17690 # `end' is used to avoid that the second main sed command (meant for
17691 # 0-ary CPP macros) applies to n-ary macro definitions.
17692 # See the Autoconf documentation for `clear'.
17693 cat >confdef2sed.sed <<\_ACEOF
17694 s/[\\&,]/\\&/g
17695 s,[\\$`],\\&,g
17696 t clear
17697 : clear
17698 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17699 t end
17700 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17701 : end
17702 _ACEOF
17703 # If some macros were called several times there might be several times
17704 # the same #defines, which is useless.  Nevertheless, we may not want to
17705 # sort them, since we want the *last* AC-DEFINE to be honored.
17706 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17707 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17708 rm -f confdef2sed.sed
17709
17710 # This sed command replaces #undef with comments.  This is necessary, for
17711 # example, in the case of _POSIX_SOURCE, which is predefined and required
17712 # on some systems where configure will not decide to define it.
17713 cat >>conftest.undefs <<\_ACEOF
17714 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17715 _ACEOF
17716
17717 # Break up conftest.defines because some shells have a limit on the size
17718 # of here documents, and old seds have small limits too (100 cmds).
17719 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17720 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17721 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17722 echo '  :' >>$CONFIG_STATUS
17723 rm -f conftest.tail
17724 while grep . conftest.defines >/dev/null
17725 do
17726   # Write a limited-size here document to $tmp/defines.sed.
17727   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17728   # Speed up: don't consider the non `#define' lines.
17729   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
17730   # Work around the forget-to-reset-the-flag bug.
17731   echo 't clr' >>$CONFIG_STATUS
17732   echo ': clr' >>$CONFIG_STATUS
17733   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17734   echo 'CEOF
17735   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17736   rm -f $tmp/in
17737   mv $tmp/out $tmp/in
17738 ' >>$CONFIG_STATUS
17739   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17740   rm -f conftest.defines
17741   mv conftest.tail conftest.defines
17742 done
17743 rm -f conftest.defines
17744 echo '  fi # grep' >>$CONFIG_STATUS
17745 echo >>$CONFIG_STATUS
17746
17747 # Break up conftest.undefs because some shells have a limit on the size
17748 # of here documents, and old seds have small limits too (100 cmds).
17749 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17750 rm -f conftest.tail
17751 while grep . conftest.undefs >/dev/null
17752 do
17753   # Write a limited-size here document to $tmp/undefs.sed.
17754   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17755   # Speed up: don't consider the non `#undef'
17756   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17757   # Work around the forget-to-reset-the-flag bug.
17758   echo 't clr' >>$CONFIG_STATUS
17759   echo ': clr' >>$CONFIG_STATUS
17760   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17761   echo 'CEOF
17762   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17763   rm -f $tmp/in
17764   mv $tmp/out $tmp/in
17765 ' >>$CONFIG_STATUS
17766   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17767   rm -f conftest.undefs
17768   mv conftest.tail conftest.undefs
17769 done
17770 rm -f conftest.undefs
17771
17772 cat >>$CONFIG_STATUS <<\_ACEOF
17773   # Let's still pretend it is `configure' which instantiates (i.e., don't
17774   # use $as_me), people would be surprised to read:
17775   #    /* config.h.  Generated by config.status.  */
17776   if test x"$ac_file" = x-; then
17777     echo "/* Generated by configure.  */" >$tmp/config.h
17778   else
17779     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17780   fi
17781   cat $tmp/in >>$tmp/config.h
17782   rm -f $tmp/in
17783   if test x"$ac_file" != x-; then
17784     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17785       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17786 echo "$as_me: $ac_file is unchanged" >&6;}
17787     else
17788       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17789 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17790          X"$ac_file" : 'X\(//\)[^/]' \| \
17791          X"$ac_file" : 'X\(//\)$' \| \
17792          X"$ac_file" : 'X\(/\)' \| \
17793          .     : '\(.\)' 2>/dev/null ||
17794 echo X"$ac_file" |
17795     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17796           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17797           /^X\(\/\/\)$/{ s//\1/; q; }
17798           /^X\(\/\).*/{ s//\1/; q; }
17799           s/.*/./; q'`
17800       { if $as_mkdir_p; then
17801     mkdir -p "$ac_dir"
17802   else
17803     as_dir="$ac_dir"
17804     as_dirs=
17805     while test ! -d "$as_dir"; do
17806       as_dirs="$as_dir $as_dirs"
17807       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17808 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17809          X"$as_dir" : 'X\(//\)[^/]' \| \
17810          X"$as_dir" : 'X\(//\)$' \| \
17811          X"$as_dir" : 'X\(/\)' \| \
17812          .     : '\(.\)' 2>/dev/null ||
17813 echo X"$as_dir" |
17814     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17815           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17816           /^X\(\/\/\)$/{ s//\1/; q; }
17817           /^X\(\/\).*/{ s//\1/; q; }
17818           s/.*/./; q'`
17819     done
17820     test ! -n "$as_dirs" || mkdir $as_dirs
17821   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17822 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17823    { (exit 1); exit 1; }; }; }
17824
17825       rm -f $ac_file
17826       mv $tmp/config.h $ac_file
17827     fi
17828   else
17829     cat $tmp/config.h
17830     rm -f $tmp/config.h
17831   fi
17832 # Compute $ac_file's index in $config_headers.
17833 _am_stamp_count=1
17834 for _am_header in $config_headers :; do
17835   case $_am_header in
17836     $ac_file | $ac_file:* )
17837       break ;;
17838     * )
17839       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17840   esac
17841 done
17842 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17843 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17844          X$ac_file : 'X\(//\)[^/]' \| \
17845          X$ac_file : 'X\(//\)$' \| \
17846          X$ac_file : 'X\(/\)' \| \
17847          .     : '\(.\)' 2>/dev/null ||
17848 echo X$ac_file |
17849     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17850           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17851           /^X\(\/\/\)$/{ s//\1/; q; }
17852           /^X\(\/\).*/{ s//\1/; q; }
17853           s/.*/./; q'`/stamp-h$_am_stamp_count
17854 done
17855 _ACEOF
17856 cat >>$CONFIG_STATUS <<\_ACEOF
17857
17858 #
17859 # CONFIG_COMMANDS section.
17860 #
17861 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17862   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17863   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17864   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17865 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17866          X"$ac_dest" : 'X\(//\)[^/]' \| \
17867          X"$ac_dest" : 'X\(//\)$' \| \
17868          X"$ac_dest" : 'X\(/\)' \| \
17869          .     : '\(.\)' 2>/dev/null ||
17870 echo X"$ac_dest" |
17871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17872           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17873           /^X\(\/\/\)$/{ s//\1/; q; }
17874           /^X\(\/\).*/{ s//\1/; q; }
17875           s/.*/./; q'`
17876   ac_builddir=.
17877
17878 if test "$ac_dir" != .; then
17879   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17880   # A "../" for each directory in $ac_dir_suffix.
17881   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17882 else
17883   ac_dir_suffix= ac_top_builddir=
17884 fi
17885
17886 case $srcdir in
17887   .)  # No --srcdir option.  We are building in place.
17888     ac_srcdir=.
17889     if test -z "$ac_top_builddir"; then
17890        ac_top_srcdir=.
17891     else
17892        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17893     fi ;;
17894   [\\/]* | ?:[\\/]* )  # Absolute path.
17895     ac_srcdir=$srcdir$ac_dir_suffix;
17896     ac_top_srcdir=$srcdir ;;
17897   *) # Relative path.
17898     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17899     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17900 esac
17901 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17902 # absolute.
17903 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17904 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17905 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17906 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17907
17908
17909   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17910 echo "$as_me: executing $ac_dest commands" >&6;}
17911   case $ac_dest in
17912     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17913   # Strip MF so we end up with the name of the file.
17914   mf=`echo "$mf" | sed -e 's/:.*$//'`
17915   # Check whether this is an Automake generated Makefile or not.
17916   # We used to match only the files named `Makefile.in', but
17917   # some people rename them; so instead we look at the file content.
17918   # Grep'ing the first line is not enough: some people post-process
17919   # each Makefile.in and add a new line on top of each file to say so.
17920   # So let's grep whole file.
17921   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17922     dirpart=`(dirname "$mf") 2>/dev/null ||
17923 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17924          X"$mf" : 'X\(//\)[^/]' \| \
17925          X"$mf" : 'X\(//\)$' \| \
17926          X"$mf" : 'X\(/\)' \| \
17927          .     : '\(.\)' 2>/dev/null ||
17928 echo X"$mf" |
17929     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17930           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17931           /^X\(\/\/\)$/{ s//\1/; q; }
17932           /^X\(\/\).*/{ s//\1/; q; }
17933           s/.*/./; q'`
17934   else
17935     continue
17936   fi
17937   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
17938   # Extract the definition of DEP_FILES from the Makefile without
17939   # running `make'.
17940   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
17941   test -z "$DEPDIR" && continue
17942   # When using ansi2knr, U may be empty or an underscore; expand it
17943   U=`sed -n -e '/^U = / s///p' < "$mf"`
17944   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
17945   # We invoke sed twice because it is the simplest approach to
17946   # changing $(DEPDIR) to its actual value in the expansion.
17947   for file in `sed -n -e '
17948     /^DEP_FILES = .*\\\\$/ {
17949       s/^DEP_FILES = //
17950       :loop
17951         s/\\\\$//
17952         p
17953         n
17954         /\\\\$/ b loop
17955       p
17956     }
17957     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
17958        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17959     # Make sure the directory exists.
17960     test -f "$dirpart/$file" && continue
17961     fdir=`(dirname "$file") 2>/dev/null ||
17962 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17963          X"$file" : 'X\(//\)[^/]' \| \
17964          X"$file" : 'X\(//\)$' \| \
17965          X"$file" : 'X\(/\)' \| \
17966          .     : '\(.\)' 2>/dev/null ||
17967 echo X"$file" |
17968     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17969           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17970           /^X\(\/\/\)$/{ s//\1/; q; }
17971           /^X\(\/\).*/{ s//\1/; q; }
17972           s/.*/./; q'`
17973     { if $as_mkdir_p; then
17974     mkdir -p $dirpart/$fdir
17975   else
17976     as_dir=$dirpart/$fdir
17977     as_dirs=
17978     while test ! -d "$as_dir"; do
17979       as_dirs="$as_dir $as_dirs"
17980       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17981 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17982          X"$as_dir" : 'X\(//\)[^/]' \| \
17983          X"$as_dir" : 'X\(//\)$' \| \
17984          X"$as_dir" : 'X\(/\)' \| \
17985          .     : '\(.\)' 2>/dev/null ||
17986 echo X"$as_dir" |
17987     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17988           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17989           /^X\(\/\/\)$/{ s//\1/; q; }
17990           /^X\(\/\).*/{ s//\1/; q; }
17991           s/.*/./; q'`
17992     done
17993     test ! -n "$as_dirs" || mkdir $as_dirs
17994   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17995 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17996    { (exit 1); exit 1; }; }; }
17997
17998     # echo "creating $dirpart/$file"
17999     echo '# dummy' > "$dirpart/$file"
18000   done
18001 done
18002  ;;
18003   esac
18004 done
18005 _ACEOF
18006
18007 cat >>$CONFIG_STATUS <<\_ACEOF
18008
18009 { (exit 0); exit 0; }
18010 _ACEOF
18011 chmod +x $CONFIG_STATUS
18012 ac_clean_files=$ac_clean_files_save
18013
18014
18015 # configure is writing to config.log, and then calls config.status.
18016 # config.status does its own redirection, appending to config.log.
18017 # Unfortunately, on DOS this fails, as config.log is still kept open
18018 # by configure, so config.status won't be able to write to it; its
18019 # output is simply discarded.  So we exec the FD to /dev/null,
18020 # effectively closing config.log, so it can be properly (re)opened and
18021 # appended to by config.status.  When coming back to configure, we
18022 # need to make the FD available again.
18023 if test "$no_create" != yes; then
18024   ac_cs_success=:
18025   ac_config_status_args=
18026   test "$silent" = yes &&
18027     ac_config_status_args="$ac_config_status_args --quiet"
18028   exec 5>/dev/null
18029   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18030   exec 5>>config.log
18031   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18032   # would make configure fail if this is the last instruction.
18033   $ac_cs_success || { (exit 1); exit 1; }
18034 fi
18035