OSDN Git Service

--enable-spline was not working
[timidity41/timidity41.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for TiMidity++ current.
4 #
5 # Report bugs to <root@mput.dip.jp>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete.  It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='TiMidity++'
271 PACKAGE_TARNAME='TiMidity++'
272 PACKAGE_VERSION='current'
273 PACKAGE_STRING='TiMidity++ current'
274 PACKAGE_BUGREPORT='root@mput.dip.jp'
275
276 ac_unique_file="timidity/timidity.c"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 #  include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 #  include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 #  include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
313
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT EMACS lispdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP RANLIB ac_ct_RANLIB LN_S X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS NEEDGETOPT_TRUE NEEDGETOPT_FALSE ALSA_CFLAGS ALSA_LIBS ARTS_CONFIG ARTS_CFLAGS ARTS_LIBS ESD_CONFIG ESD_CFLAGS ESD_LIBS AO_CFLAGS AO_LIBS VORBIS_CFLAGS VORBIS_LIBS VORBISFILE_LIBS VORBISENC_LIBS OGG_CFLAGS OGG_LIBS LIBFLAC_CFLAGS LIBFLAC_LIBS LIBOGGFLAC_CFLAGS LIBOGGFLAC_LIBS NEEDDLOPEN_TRUE NEEDDLOPEN_FALSE ENABLE_NCURSES_TRUE ENABLE_NCURSES_FALSE n_so_libs ENABLE_SLANG_TRUE ENABLE_SLANG_FALSE s_so_libs ENABLE_MOTIF_TRUE ENABLE_MOTIF_FALSE m_so_libs ENABLE_TCLTK_TRUE ENABLE_TCLTK_FALSE k_so_libs ENABLE_DYNAMIC_TCLTK_TRUE ENABLE_DYNAMIC_TCLTK_FALSE ENABLE_EMACS_TRUE ENABLE_EMACS_FALSE e_so_libs ENABLE_VT100_TRUE ENABLE_VT100_FALSE T_so_libs ENABLE_XAW_TRUE ENABLE_XAW_FALSE a_so_libs ENABLE_DYNAMIC_XAW_TRUE ENABLE_DYNAMIC_XAW_FALSE ENABLE_XSKIN_TRUE ENABLE_XSKIN_FALSE i_so_libs ENABLE_GTK_TRUE ENABLE_GTK_FALSE GTK_CONFIG GTK_CFLAGS GTK_LIBS g_so_libs ENABLE_SERVER_TRUE ENABLE_SERVER_FALSE r_so_libs ENABLE_ALSASEQ_TRUE ENABLE_ALSASEQ_FALSE A_so_libs ENABLE_WINSYN_TRUE ENABLE_WINSYN_FALSE W_so_libs ENABLE_PORTMIDISYN_TRUE ENABLE_PORTMIDISYN_FALSE P_so_libs ENABLE_W32G_SYN_TRUE ENABLE_W32G_SYN_FALSE ENABLE_W32GUI_TRUE ENABLE_W32GUI_FALSE w_so_libs ENABLE_PLUGIN_TRUE ENABLE_PLUGIN_FALSE p_so_libs ENABLE_NETWORK_TRUE ENABLE_NETWORK_FALSE ENABLE_SOUND_SPEC_TRUE ENABLE_SOUND_SPEC_FALSE ENABLE_WRD_TRUE ENABLE_WRD_FALSE CYGNUS_TRUE CYGNUS_FALSE MINGW_TRUE MINGW_FALSE W32READDIR_TRUE W32READDIR_FALSE timidity_LDFLAGS SYSEXTRAS EXTRALIBS NETSRCS ELFILES SHLD SHCFLAGS dynamic_targets so WISH tcltk_dep INTERFACE_SRCS pkgdatadir pkglibdir LTLIBOBJS'
315 ac_subst_files=''
316
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
336
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
354
355 ac_prev=
356 for ac_option
357 do
358   # If the previous option needs an argument, assign it.
359   if test -n "$ac_prev"; then
360     eval "$ac_prev=\$ac_option"
361     ac_prev=
362     continue
363   fi
364
365   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367   # Accept the important Cygnus configure options, so we can diagnose typos.
368
369   case $ac_option in
370
371   -bindir | --bindir | --bindi | --bind | --bin | --bi)
372     ac_prev=bindir ;;
373   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374     bindir=$ac_optarg ;;
375
376   -build | --build | --buil | --bui | --bu)
377     ac_prev=build_alias ;;
378   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379     build_alias=$ac_optarg ;;
380
381   -cache-file | --cache-file | --cache-fil | --cache-fi \
382   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383     ac_prev=cache_file ;;
384   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386     cache_file=$ac_optarg ;;
387
388   --config-cache | -C)
389     cache_file=config.cache ;;
390
391   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392     ac_prev=datadir ;;
393   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394   | --da=*)
395     datadir=$ac_optarg ;;
396
397   -disable-* | --disable-*)
398     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399     # Reject names that are not valid shell variable names.
400     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402    { (exit 1); exit 1; }; }
403     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404     eval "enable_$ac_feature=no" ;;
405
406   -enable-* | --enable-*)
407     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408     # Reject names that are not valid shell variable names.
409     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411    { (exit 1); exit 1; }; }
412     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413     case $ac_option in
414       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415       *) ac_optarg=yes ;;
416     esac
417     eval "enable_$ac_feature='$ac_optarg'" ;;
418
419   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421   | --exec | --exe | --ex)
422     ac_prev=exec_prefix ;;
423   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425   | --exec=* | --exe=* | --ex=*)
426     exec_prefix=$ac_optarg ;;
427
428   -gas | --gas | --ga | --g)
429     # Obsolete; use --with-gas.
430     with_gas=yes ;;
431
432   -help | --help | --hel | --he | -h)
433     ac_init_help=long ;;
434   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435     ac_init_help=recursive ;;
436   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437     ac_init_help=short ;;
438
439   -host | --host | --hos | --ho)
440     ac_prev=host_alias ;;
441   -host=* | --host=* | --hos=* | --ho=*)
442     host_alias=$ac_optarg ;;
443
444   -includedir | --includedir | --includedi | --included | --include \
445   | --includ | --inclu | --incl | --inc)
446     ac_prev=includedir ;;
447   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448   | --includ=* | --inclu=* | --incl=* | --inc=*)
449     includedir=$ac_optarg ;;
450
451   -infodir | --infodir | --infodi | --infod | --info | --inf)
452     ac_prev=infodir ;;
453   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454     infodir=$ac_optarg ;;
455
456   -libdir | --libdir | --libdi | --libd)
457     ac_prev=libdir ;;
458   -libdir=* | --libdir=* | --libdi=* | --libd=*)
459     libdir=$ac_optarg ;;
460
461   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462   | --libexe | --libex | --libe)
463     ac_prev=libexecdir ;;
464   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465   | --libexe=* | --libex=* | --libe=*)
466     libexecdir=$ac_optarg ;;
467
468   -localstatedir | --localstatedir | --localstatedi | --localstated \
469   | --localstate | --localstat | --localsta | --localst \
470   | --locals | --local | --loca | --loc | --lo)
471     ac_prev=localstatedir ;;
472   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475     localstatedir=$ac_optarg ;;
476
477   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478     ac_prev=mandir ;;
479   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480     mandir=$ac_optarg ;;
481
482   -nfp | --nfp | --nf)
483     # Obsolete; use --without-fp.
484     with_fp=no ;;
485
486   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487   | --no-cr | --no-c | -n)
488     no_create=yes ;;
489
490   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492     no_recursion=yes ;;
493
494   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496   | --oldin | --oldi | --old | --ol | --o)
497     ac_prev=oldincludedir ;;
498   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501     oldincludedir=$ac_optarg ;;
502
503   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504     ac_prev=prefix ;;
505   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506     prefix=$ac_optarg ;;
507
508   -program-prefix | --program-prefix | --program-prefi | --program-pref \
509   | --program-pre | --program-pr | --program-p)
510     ac_prev=program_prefix ;;
511   -program-prefix=* | --program-prefix=* | --program-prefi=* \
512   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513     program_prefix=$ac_optarg ;;
514
515   -program-suffix | --program-suffix | --program-suffi | --program-suff \
516   | --program-suf | --program-su | --program-s)
517     ac_prev=program_suffix ;;
518   -program-suffix=* | --program-suffix=* | --program-suffi=* \
519   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520     program_suffix=$ac_optarg ;;
521
522   -program-transform-name | --program-transform-name \
523   | --program-transform-nam | --program-transform-na \
524   | --program-transform-n | --program-transform- \
525   | --program-transform | --program-transfor \
526   | --program-transfo | --program-transf \
527   | --program-trans | --program-tran \
528   | --progr-tra | --program-tr | --program-t)
529     ac_prev=program_transform_name ;;
530   -program-transform-name=* | --program-transform-name=* \
531   | --program-transform-nam=* | --program-transform-na=* \
532   | --program-transform-n=* | --program-transform-=* \
533   | --program-transform=* | --program-transfor=* \
534   | --program-transfo=* | --program-transf=* \
535   | --program-trans=* | --program-tran=* \
536   | --progr-tra=* | --program-tr=* | --program-t=*)
537     program_transform_name=$ac_optarg ;;
538
539   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540   | -silent | --silent | --silen | --sile | --sil)
541     silent=yes ;;
542
543   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544     ac_prev=sbindir ;;
545   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546   | --sbi=* | --sb=*)
547     sbindir=$ac_optarg ;;
548
549   -sharedstatedir | --sharedstatedir | --sharedstatedi \
550   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551   | --sharedst | --shareds | --shared | --share | --shar \
552   | --sha | --sh)
553     ac_prev=sharedstatedir ;;
554   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557   | --sha=* | --sh=*)
558     sharedstatedir=$ac_optarg ;;
559
560   -site | --site | --sit)
561     ac_prev=site ;;
562   -site=* | --site=* | --sit=*)
563     site=$ac_optarg ;;
564
565   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566     ac_prev=srcdir ;;
567   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568     srcdir=$ac_optarg ;;
569
570   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571   | --syscon | --sysco | --sysc | --sys | --sy)
572     ac_prev=sysconfdir ;;
573   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575     sysconfdir=$ac_optarg ;;
576
577   -target | --target | --targe | --targ | --tar | --ta | --t)
578     ac_prev=target_alias ;;
579   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580     target_alias=$ac_optarg ;;
581
582   -v | -verbose | --verbose | --verbos | --verbo | --verb)
583     verbose=yes ;;
584
585   -version | --version | --versio | --versi | --vers | -V)
586     ac_init_version=: ;;
587
588   -with-* | --with-*)
589     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590     # Reject names that are not valid shell variable names.
591     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592       { echo "$as_me: error: invalid package name: $ac_package" >&2
593    { (exit 1); exit 1; }; }
594     ac_package=`echo $ac_package| sed 's/-/_/g'`
595     case $ac_option in
596       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597       *) ac_optarg=yes ;;
598     esac
599     eval "with_$ac_package='$ac_optarg'" ;;
600
601   -without-* | --without-*)
602     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603     # Reject names that are not valid shell variable names.
604     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605       { echo "$as_me: error: invalid package name: $ac_package" >&2
606    { (exit 1); exit 1; }; }
607     ac_package=`echo $ac_package | sed 's/-/_/g'`
608     eval "with_$ac_package=no" ;;
609
610   --x)
611     # Obsolete; use --with-x.
612     with_x=yes ;;
613
614   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615   | --x-incl | --x-inc | --x-in | --x-i)
616     ac_prev=x_includes ;;
617   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619     x_includes=$ac_optarg ;;
620
621   -x-libraries | --x-libraries | --x-librarie | --x-librari \
622   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623     ac_prev=x_libraries ;;
624   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626     x_libraries=$ac_optarg ;;
627
628   -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630    { (exit 1); exit 1; }; }
631     ;;
632
633   *=*)
634     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635     # Reject names that are not valid shell variable names.
636     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638    { (exit 1); exit 1; }; }
639     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640     eval "$ac_envvar='$ac_optarg'"
641     export $ac_envvar ;;
642
643   *)
644     # FIXME: should be removed in autoconf 3.0.
645     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649     ;;
650
651   esac
652 done
653
654 if test -n "$ac_prev"; then
655   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656   { echo "$as_me: error: missing argument to $ac_option" >&2
657    { (exit 1); exit 1; }; }
658 fi
659
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
662 do
663   eval ac_val=$`echo $ac_var`
664   case $ac_val in
665     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667    { (exit 1); exit 1; }; };;
668   esac
669 done
670
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673               localstatedir libdir includedir oldincludedir infodir mandir
674 do
675   eval ac_val=$`echo $ac_var`
676   case $ac_val in
677     [\\/$]* | ?:[\\/]* ) ;;
678     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679    { (exit 1); exit 1; }; };;
680   esac
681 done
682
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
689
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692   if test "x$build_alias" = x; then
693     cross_compiling=maybe
694     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695     If a cross compiler is detected then cross compile mode will be used." >&2
696   elif test "x$build_alias" != "x$host_alias"; then
697     cross_compiling=yes
698   fi
699 fi
700
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704 test "$silent" = yes && exec 6>/dev/null
705
706
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709   ac_srcdir_defaulted=yes
710   # Try the directory containing this script, then its parent.
711   ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713          X"$0" : 'X\(//\)[^/]' \| \
714          X"$0" : 'X\(//\)$' \| \
715          X"$0" : 'X\(/\)' \| \
716          .     : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720           /^X\(\/\/\)$/{ s//\1/; q; }
721           /^X\(\/\).*/{ s//\1/; q; }
722           s/.*/./; q'`
723   srcdir=$ac_confdir
724   if test ! -r $srcdir/$ac_unique_file; then
725     srcdir=..
726   fi
727 else
728   ac_srcdir_defaulted=no
729 fi
730 if test ! -r $srcdir/$ac_unique_file; then
731   if test "$ac_srcdir_defaulted" = yes; then
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733    { (exit 1); exit 1; }; }
734   else
735     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736    { (exit 1); exit 1; }; }
737   fi
738 fi
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741    { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
775
776 #
777 # Report the --help message.
778 #
779 if test "$ac_init_help" = "long"; then
780   # Omit some internal or obsolete options to make the list less imposing.
781   # This message is too long to be a string in the A/UX 3.1 sh.
782   cat <<_ACEOF
783 \`configure' configures TiMidity++ current to adapt to many kinds of systems.
784
785 Usage: $0 [OPTION]... [VAR=VALUE]...
786
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE.  See below for descriptions of some of the useful variables.
789
790 Defaults for the options are specified in brackets.
791
792 Configuration:
793   -h, --help              display this help and exit
794       --help=short        display options specific to this package
795       --help=recursive    display the short help of all the included packages
796   -V, --version           display version information and exit
797   -q, --quiet, --silent   do not print \`checking...' messages
798       --cache-file=FILE   cache test results in FILE [disabled]
799   -C, --config-cache      alias for \`--cache-file=config.cache'
800   -n, --no-create         do not create output files
801       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
802
803 _ACEOF
804
805   cat <<_ACEOF
806 Installation directories:
807   --prefix=PREFIX         install architecture-independent files in PREFIX
808                           [$ac_default_prefix]
809   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
810                           [PREFIX]
811
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
816
817 For better control, use the options below.
818
819 Fine tuning of the installation directories:
820   --bindir=DIR           user executables [EPREFIX/bin]
821   --sbindir=DIR          system admin executables [EPREFIX/sbin]
822   --libexecdir=DIR       program executables [EPREFIX/libexec]
823   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
824   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
825   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
826   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
827   --libdir=DIR           object code libraries [EPREFIX/lib]
828   --includedir=DIR       C header files [PREFIX/include]
829   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
830   --infodir=DIR          info documentation [PREFIX/info]
831   --mandir=DIR           man documentation [PREFIX/man]
832 _ACEOF
833
834   cat <<\_ACEOF
835
836 Program names:
837   --program-prefix=PREFIX            prepend PREFIX to installed program names
838   --program-suffix=SUFFIX            append SUFFIX to installed program names
839   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
840
841 X features:
842   --x-includes=DIR    X include files are in DIR
843   --x-libraries=DIR   X library files are in DIR
844
845 System types:
846   --build=BUILD     configure for building on BUILD [guessed]
847   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
848   --target=TARGET   configure for building compilers for TARGET [HOST]
849 _ACEOF
850 fi
851
852 if test -n "$ac_init_help"; then
853   case $ac_init_help in
854      short | recursive ) echo "Configuration of TiMidity++ current:";;
855    esac
856   cat <<\_ACEOF
857
858 Optional Features:
859   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
860   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
861   --enable-maintainer-mode enable make rules and dependencies not useful
862                           (and sometimes confusing) to the casual installer
863   --enable-debug          Build a debugging version.
864   --disable-dependency-tracking Speeds up one-time builds
865   --enable-dependency-tracking  Do not reject slow dependency extractors
866   --enable-audio=mode_list Enable audio (Specify comma separated mode list):
867                               default:   Automatically select audio device.
868                               oss:       OSS /dev/dsp
869                               sun:       SunOS /dev/audio
870                               hpux:      HPUX /dev/audio
871                               irix:      IRIX audio library
872                               mme:       OSF/1 MME
873                               sb_dsp:    BSD/OS 2.0 /dev/sb_dsp
874                               w32:       Windows MMS
875                               darwin:    Darwin CoreAudio
876                               alsa:      ALSA pcm device
877                               alib:      HPUX network audio (Alib)
878                               nas:       NAS - Network Audio System
879                               arts:      aRts
880                               esd:       EsounD - Enlightened Sound Daemon
881                               portaudio: PortAudio
882                               jack:      JACK
883                               ao:        Libao
884                               vorbis:    Ogg Vorbis
885                               flac:      FLAC / OggFLAC
886                               speex:     Ogg Speex
887                               gogo:      MP3 GOGO (Only Windows is supported)
888   --disable-alsatest      Do not try to compile and run a test Alsa program
889   --disable-artstest       Do not try to compile and run a test ARTS program
890   --disable-esdtest       Do not try to compile and run a test ESD program
891   --disable-aotest       Do not try to compile and run a test ao program
892   --disable-oggtest       Do not try to compile and run a test Ogg program
893   --disable-vorbistest       Do not try to compile and run a test Vorbis program
894   --disable-libFLACtest       Do not try to compile and run a test libFLAC program
895   --disable-libOggFLACtest       Do not try to compile and run a test libOggFLAC program
896   --enable-interface=interface_list
897                           Comma separated interface list
898   --enable-dynamic        Enable dynamic link interface   (default is no)
899   --enable-dynamic=dynamic_list
900                           Comma separated dynamic interface list
901   --enable-ncurses        Enable ncurses interface        (default is no)
902   --enable-slang          Enable slang interface          (default is no)
903   --enable-motif          Enable motif interface          (default is no)
904   --enable-tcltk          Enable tcltk interface          (default is no)
905   --enable-emacs          Enable emacs interface          (default is no)
906   --enable-vt100          Enable VT100 interface          (default is no)
907   --enable-xaw            Enable athena interface         (default is no)
908   --enable-xskin          Enable X skin interface         (default is no)
909   --enable-gtk            Enable GTK+ interface           (default is no)
910   --disable-gtktest       Do not try to compile and run a test GTK program
911   --enable-server         Enable server interface         (default is no)
912   --enable-alsaseq        Enable ALSA sequencer server interface
913                                                           (default is no)
914   --enable-winsyn        Enable Windows Synthesizer interface
915                                                           (default is no)
916   --enable-portmidisyn        Enable PortMIDI Synthesizer interface
917                                                           (default is no)
918   --enable-winsyng        Enable Windows GUI Synthesizer interface
919                                                           (default is no)
920   --enable-w32gui         Enable Windows GUI interface    (default is no)
921   --enable-ump            UMP configuration               (default is no)
922   --enable-offix          Enable offix support            (default is no)
923   --enable-network        Enable network support          (default is no)
924   --enable-spectrogram    Enable Sound Spectrogram Viewer (default is no)
925   --enable-spline=method  Specify spline method.
926                                   one of no,linear,cubic,lagrange,newton,gauss
927                                                           (default is linear)
928   --enable-wrd            Enable WRD interface for X      (default is no)
929
930 Optional Packages:
931   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
932   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
933   --with-includes=DIR     Specify include directories (colon separated)
934   --with-libraries=DIR    Specify library directories (colon separated)
935   --with-default-path=DIR Where timidity.cfg is  (PREFIX/share/timidity)
936   --with-module-dir=DIR   Where to install interfaces (PREFIX/lib/timidity)
937   --with-lispdir          Override the default lisp directory
938   --with-elf              create ELF shared object instead of AOUT
939   --with-x                use the X Window System
940   --with-tcl-includes=DIR Tcl include file path
941   --with-tcl-libs=DIR     Tcl library file path
942   --with-tk-includes=DIR  Tk include file path
943   --with-tk-libs=DIR      Tk library file path
944   --with-offix-includes=DIR Offix include file path
945   --with-offix-libs=DIR   Offix include file path
946   --with-nas-library=library NAS absolute library path(Don't use -laudio)
947   --with-nas-includes=DIR NAS include files are in dir
948   --with-default-output=<mode>  Specify default output mode (optional):
949                                 (default|alsa|alib|arts|nas|
950                                 esd|wav|au|aiff|list|vorbis|flac|speex|
951                                 gogo|portaudio|jack|ao)
952   --with-alsa-prefix=PFX  Prefix where Alsa library is installed(optional)
953   --with-alsa-inc-prefix=PFX  Prefix where include libraries are (optional)
954   --with-arts-prefix=PFX   Prefix where ARTS is installed (optional)
955   --with-esd-prefix=PFX   Prefix where ESD is installed (optional)
956   --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
957   --with-ao=PFX   Prefix where libao is installed (optional)
958   --with-ao-libraries=DIR   Directory where libao library is installed (optional)
959   --with-ao-includes=DIR   Directory where libao header files are installed (optional)
960   --with-ogg=PFX   Prefix where libogg is installed (optional)
961   --with-ogg-libraries=DIR   Directory where libogg library is installed (optional)
962   --with-ogg-includes=DIR   Directory where libogg header files are installed (optional)
963   --with-vorbis=PFX   Prefix where libvorbis is installed (optional)
964   --with-vorbis-libraries=DIR   Directory where libvorbis library is installed (optional)
965   --with-vorbis-includes=DIR   Directory where libvorbis header files are installed (optional)
966   --with-libFLAC=PFX   Prefix where libFLAC is installed (optional)
967   --with-libFLAC-libraries=DIR   Directory where libFLAC library is installed (optional)
968   --with-libFLAC-includes=DIR   Directory where libFLAC header files are installed (optional)
969   --with-libOggFLAC=PFX   Prefix where libOggFLAC is installed (optional)
970   --with-libOggFLAC-libraries=DIR   Directory where libOggFLAC library is installed (optional)
971   --with-libOggFLAC-includes=DIR   Directory where libOggFLAC header files are installed (optional)
972   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
973   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
974
975 Some influential environment variables:
976   CC          C compiler command
977   CFLAGS      C compiler flags
978   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
979               nonstandard directory <lib dir>
980   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
981               headers in a nonstandard directory <include dir>
982   CPP         C preprocessor
983
984 Use these variables to override the choices made by `configure' or to help
985 it to find libraries and programs with nonstandard names/locations.
986
987 Report bugs to <root@mput.dip.jp>.
988 _ACEOF
989 fi
990
991 if test "$ac_init_help" = "recursive"; then
992   # If there are subdirs, report their specific --help.
993   ac_popdir=`pwd`
994   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
995     test -d $ac_dir || continue
996     ac_builddir=.
997
998 if test "$ac_dir" != .; then
999   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1000   # A "../" for each directory in $ac_dir_suffix.
1001   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1002 else
1003   ac_dir_suffix= ac_top_builddir=
1004 fi
1005
1006 case $srcdir in
1007   .)  # No --srcdir option.  We are building in place.
1008     ac_srcdir=.
1009     if test -z "$ac_top_builddir"; then
1010        ac_top_srcdir=.
1011     else
1012        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1013     fi ;;
1014   [\\/]* | ?:[\\/]* )  # Absolute path.
1015     ac_srcdir=$srcdir$ac_dir_suffix;
1016     ac_top_srcdir=$srcdir ;;
1017   *) # Relative path.
1018     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1019     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1020 esac
1021
1022 # Do not use `cd foo && pwd` to compute absolute paths, because
1023 # the directories may not exist.
1024 case `pwd` in
1025 .) ac_abs_builddir="$ac_dir";;
1026 *)
1027   case "$ac_dir" in
1028   .) ac_abs_builddir=`pwd`;;
1029   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1030   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1031   esac;;
1032 esac
1033 case $ac_abs_builddir in
1034 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1035 *)
1036   case ${ac_top_builddir}. in
1037   .) ac_abs_top_builddir=$ac_abs_builddir;;
1038   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1039   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1040   esac;;
1041 esac
1042 case $ac_abs_builddir in
1043 .) ac_abs_srcdir=$ac_srcdir;;
1044 *)
1045   case $ac_srcdir in
1046   .) ac_abs_srcdir=$ac_abs_builddir;;
1047   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1048   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1049   esac;;
1050 esac
1051 case $ac_abs_builddir in
1052 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1053 *)
1054   case $ac_top_srcdir in
1055   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1056   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1057   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1058   esac;;
1059 esac
1060
1061     cd $ac_dir
1062     # Check for guested configure; otherwise get Cygnus style configure.
1063     if test -f $ac_srcdir/configure.gnu; then
1064       echo
1065       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1066     elif test -f $ac_srcdir/configure; then
1067       echo
1068       $SHELL $ac_srcdir/configure  --help=recursive
1069     elif test -f $ac_srcdir/configure.ac ||
1070            test -f $ac_srcdir/configure.in; then
1071       echo
1072       $ac_configure --help
1073     else
1074       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1075     fi
1076     cd $ac_popdir
1077   done
1078 fi
1079
1080 test -n "$ac_init_help" && exit 0
1081 if $ac_init_version; then
1082   cat <<\_ACEOF
1083 TiMidity++ configure current
1084 generated by GNU Autoconf 2.59
1085
1086 Copyright (C) 2003 Free Software Foundation, Inc.
1087 This configure script is free software; the Free Software Foundation
1088 gives unlimited permission to copy, distribute and modify it.
1089 _ACEOF
1090   exit 0
1091 fi
1092 exec 5>config.log
1093 cat >&5 <<_ACEOF
1094 This file contains any messages produced by compilers while
1095 running configure, to aid debugging if configure makes a mistake.
1096
1097 It was created by TiMidity++ $as_me current, which was
1098 generated by GNU Autoconf 2.59.  Invocation command line was
1099
1100   $ $0 $@
1101
1102 _ACEOF
1103 {
1104 cat <<_ASUNAME
1105 ## --------- ##
1106 ## Platform. ##
1107 ## --------- ##
1108
1109 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1110 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1111 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1112 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1113 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1114
1115 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1116 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1117
1118 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1119 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1120 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1121 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1122 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1123 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1124 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1125
1126 _ASUNAME
1127
1128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1129 for as_dir in $PATH
1130 do
1131   IFS=$as_save_IFS
1132   test -z "$as_dir" && as_dir=.
1133   echo "PATH: $as_dir"
1134 done
1135
1136 } >&5
1137
1138 cat >&5 <<_ACEOF
1139
1140
1141 ## ----------- ##
1142 ## Core tests. ##
1143 ## ----------- ##
1144
1145 _ACEOF
1146
1147
1148 # Keep a trace of the command line.
1149 # Strip out --no-create and --no-recursion so they do not pile up.
1150 # Strip out --silent because we don't want to record it for future runs.
1151 # Also quote any args containing shell meta-characters.
1152 # Make two passes to allow for proper duplicate-argument suppression.
1153 ac_configure_args=
1154 ac_configure_args0=
1155 ac_configure_args1=
1156 ac_sep=
1157 ac_must_keep_next=false
1158 for ac_pass in 1 2
1159 do
1160   for ac_arg
1161   do
1162     case $ac_arg in
1163     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1164     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165     | -silent | --silent | --silen | --sile | --sil)
1166       continue ;;
1167     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1168       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1169     esac
1170     case $ac_pass in
1171     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1172     2)
1173       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1174       if test $ac_must_keep_next = true; then
1175         ac_must_keep_next=false # Got value, back to normal.
1176       else
1177         case $ac_arg in
1178           *=* | --config-cache | -C | -disable-* | --disable-* \
1179           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1180           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1181           | -with-* | --with-* | -without-* | --without-* | --x)
1182             case "$ac_configure_args0 " in
1183               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1184             esac
1185             ;;
1186           -* ) ac_must_keep_next=true ;;
1187         esac
1188       fi
1189       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1190       # Get rid of the leading space.
1191       ac_sep=" "
1192       ;;
1193     esac
1194   done
1195 done
1196 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1197 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1198
1199 # When interrupted or exit'd, cleanup temporary files, and complete
1200 # config.log.  We remove comments because anyway the quotes in there
1201 # would cause problems or look ugly.
1202 # WARNING: Be sure not to use single quotes in there, as some shells,
1203 # such as our DU 5.0 friend, will then `close' the trap.
1204 trap 'exit_status=$?
1205   # Save into config.log some information that might help in debugging.
1206   {
1207     echo
1208
1209     cat <<\_ASBOX
1210 ## ---------------- ##
1211 ## Cache variables. ##
1212 ## ---------------- ##
1213 _ASBOX
1214     echo
1215     # The following way of writing the cache mishandles newlines in values,
1216 {
1217   (set) 2>&1 |
1218     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1219     *ac_space=\ *)
1220       sed -n \
1221         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1222           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1223       ;;
1224     *)
1225       sed -n \
1226         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1227       ;;
1228     esac;
1229 }
1230     echo
1231
1232     cat <<\_ASBOX
1233 ## ----------------- ##
1234 ## Output variables. ##
1235 ## ----------------- ##
1236 _ASBOX
1237     echo
1238     for ac_var in $ac_subst_vars
1239     do
1240       eval ac_val=$`echo $ac_var`
1241       echo "$ac_var='"'"'$ac_val'"'"'"
1242     done | sort
1243     echo
1244
1245     if test -n "$ac_subst_files"; then
1246       cat <<\_ASBOX
1247 ## ------------- ##
1248 ## Output files. ##
1249 ## ------------- ##
1250 _ASBOX
1251       echo
1252       for ac_var in $ac_subst_files
1253       do
1254         eval ac_val=$`echo $ac_var`
1255         echo "$ac_var='"'"'$ac_val'"'"'"
1256       done | sort
1257       echo
1258     fi
1259
1260     if test -s confdefs.h; then
1261       cat <<\_ASBOX
1262 ## ----------- ##
1263 ## confdefs.h. ##
1264 ## ----------- ##
1265 _ASBOX
1266       echo
1267       sed "/^$/d" confdefs.h | sort
1268       echo
1269     fi
1270     test "$ac_signal" != 0 &&
1271       echo "$as_me: caught signal $ac_signal"
1272     echo "$as_me: exit $exit_status"
1273   } >&5
1274   rm -f core *.core &&
1275   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1276     exit $exit_status
1277      ' 0
1278 for ac_signal in 1 2 13 15; do
1279   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1280 done
1281 ac_signal=0
1282
1283 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1284 rm -rf conftest* confdefs.h
1285 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1286 echo >confdefs.h
1287
1288 # Predefined preprocessor variables.
1289
1290 cat >>confdefs.h <<_ACEOF
1291 #define PACKAGE_NAME "$PACKAGE_NAME"
1292 _ACEOF
1293
1294
1295 cat >>confdefs.h <<_ACEOF
1296 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1297 _ACEOF
1298
1299
1300 cat >>confdefs.h <<_ACEOF
1301 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1302 _ACEOF
1303
1304
1305 cat >>confdefs.h <<_ACEOF
1306 #define PACKAGE_STRING "$PACKAGE_STRING"
1307 _ACEOF
1308
1309
1310 cat >>confdefs.h <<_ACEOF
1311 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1312 _ACEOF
1313
1314
1315 # Let the site file select an alternate cache file if it wants to.
1316 # Prefer explicitly selected file to automatically selected ones.
1317 if test -z "$CONFIG_SITE"; then
1318   if test "x$prefix" != xNONE; then
1319     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1320   else
1321     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1322   fi
1323 fi
1324 for ac_site_file in $CONFIG_SITE; do
1325   if test -r "$ac_site_file"; then
1326     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1327 echo "$as_me: loading site script $ac_site_file" >&6;}
1328     sed 's/^/| /' "$ac_site_file" >&5
1329     . "$ac_site_file"
1330   fi
1331 done
1332
1333 if test -r "$cache_file"; then
1334   # Some versions of bash will fail to source /dev/null (special
1335   # files actually), so we avoid doing that.
1336   if test -f "$cache_file"; then
1337     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1338 echo "$as_me: loading cache $cache_file" >&6;}
1339     case $cache_file in
1340       [\\/]* | ?:[\\/]* ) . $cache_file;;
1341       *)                      . ./$cache_file;;
1342     esac
1343   fi
1344 else
1345   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1346 echo "$as_me: creating cache $cache_file" >&6;}
1347   >$cache_file
1348 fi
1349
1350 # Check that the precious variables saved in the cache have kept the same
1351 # value.
1352 ac_cache_corrupted=false
1353 for ac_var in `(set) 2>&1 |
1354                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1355   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1356   eval ac_new_set=\$ac_env_${ac_var}_set
1357   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1358   eval ac_new_val="\$ac_env_${ac_var}_value"
1359   case $ac_old_set,$ac_new_set in
1360     set,)
1361       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1362 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1363       ac_cache_corrupted=: ;;
1364     ,set)
1365       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1366 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1367       ac_cache_corrupted=: ;;
1368     ,);;
1369     *)
1370       if test "x$ac_old_val" != "x$ac_new_val"; then
1371         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1372 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1373         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1374 echo "$as_me:   former value:  $ac_old_val" >&2;}
1375         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1376 echo "$as_me:   current value: $ac_new_val" >&2;}
1377         ac_cache_corrupted=:
1378       fi;;
1379   esac
1380   # Pass precious variables to config.status.
1381   if test "$ac_new_set" = set; then
1382     case $ac_new_val in
1383     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1384       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1385     *) ac_arg=$ac_var=$ac_new_val ;;
1386     esac
1387     case " $ac_configure_args " in
1388       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1389       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1390     esac
1391   fi
1392 done
1393 if $ac_cache_corrupted; then
1394   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1395 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1396   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1397 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1398    { (exit 1); exit 1; }; }
1399 fi
1400
1401 ac_ext=c
1402 ac_cpp='$CPP $CPPFLAGS'
1403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433 ac_aux_dir=
1434 for ac_dir in autoconf $srcdir/autoconf; do
1435   if test -f $ac_dir/install-sh; then
1436     ac_aux_dir=$ac_dir
1437     ac_install_sh="$ac_aux_dir/install-sh -c"
1438     break
1439   elif test -f $ac_dir/install.sh; then
1440     ac_aux_dir=$ac_dir
1441     ac_install_sh="$ac_aux_dir/install.sh -c"
1442     break
1443   elif test -f $ac_dir/shtool; then
1444     ac_aux_dir=$ac_dir
1445     ac_install_sh="$ac_aux_dir/shtool install -c"
1446     break
1447   fi
1448 done
1449 if test -z "$ac_aux_dir"; then
1450   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1451 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1452    { (exit 1); exit 1; }; }
1453 fi
1454 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1455 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1456 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1457
1458 # Make sure we can run config.sub.
1459 $ac_config_sub sun4 >/dev/null 2>&1 ||
1460   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1461 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1462    { (exit 1); exit 1; }; }
1463
1464 echo "$as_me:$LINENO: checking build system type" >&5
1465 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1466 if test "${ac_cv_build+set}" = set; then
1467   echo $ECHO_N "(cached) $ECHO_C" >&6
1468 else
1469   ac_cv_build_alias=$build_alias
1470 test -z "$ac_cv_build_alias" &&
1471   ac_cv_build_alias=`$ac_config_guess`
1472 test -z "$ac_cv_build_alias" &&
1473   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1474 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1475    { (exit 1); exit 1; }; }
1476 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1477   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1478 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1479    { (exit 1); exit 1; }; }
1480
1481 fi
1482 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1483 echo "${ECHO_T}$ac_cv_build" >&6
1484 build=$ac_cv_build
1485 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1486 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1487 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1488
1489
1490 echo "$as_me:$LINENO: checking host system type" >&5
1491 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1492 if test "${ac_cv_host+set}" = set; then
1493   echo $ECHO_N "(cached) $ECHO_C" >&6
1494 else
1495   ac_cv_host_alias=$host_alias
1496 test -z "$ac_cv_host_alias" &&
1497   ac_cv_host_alias=$ac_cv_build_alias
1498 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1499   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1500 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1501    { (exit 1); exit 1; }; }
1502
1503 fi
1504 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1505 echo "${ECHO_T}$ac_cv_host" >&6
1506 host=$ac_cv_host
1507 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1508 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1509 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1510
1511
1512 echo "$as_me:$LINENO: checking target system type" >&5
1513 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1514 if test "${ac_cv_target+set}" = set; then
1515   echo $ECHO_N "(cached) $ECHO_C" >&6
1516 else
1517   ac_cv_target_alias=$target_alias
1518 test "x$ac_cv_target_alias" = "x" &&
1519   ac_cv_target_alias=$ac_cv_host_alias
1520 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1521   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1522 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1523    { (exit 1); exit 1; }; }
1524
1525 fi
1526 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1527 echo "${ECHO_T}$ac_cv_target" >&6
1528 target=$ac_cv_target
1529 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1530 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1531 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1532
1533
1534 # The aliases save the names the user supplied, while $host etc.
1535 # will get canonicalized.
1536 test -n "$target_alias" &&
1537   test "$program_prefix$program_suffix$program_transform_name" = \
1538     NONENONEs,x,x, &&
1539   program_prefix=${target_alias}-
1540 am__api_version="1.7"
1541 # Find a good install program.  We prefer a C program (faster),
1542 # so one script is as good as another.  But avoid the broken or
1543 # incompatible versions:
1544 # SysV /etc/install, /usr/sbin/install
1545 # SunOS /usr/etc/install
1546 # IRIX /sbin/install
1547 # AIX /bin/install
1548 # AmigaOS /C/install, which installs bootblocks on floppy discs
1549 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1550 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1551 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1552 # OS/2's system install, which has a completely different semantic
1553 # ./install, which can be erroneously created by make from ./install.sh.
1554 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1555 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1556 if test -z "$INSTALL"; then
1557 if test "${ac_cv_path_install+set}" = set; then
1558   echo $ECHO_N "(cached) $ECHO_C" >&6
1559 else
1560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1561 for as_dir in $PATH
1562 do
1563   IFS=$as_save_IFS
1564   test -z "$as_dir" && as_dir=.
1565   # Account for people who put trailing slashes in PATH elements.
1566 case $as_dir/ in
1567   ./ | .// | /cC/* | \
1568   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1569   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1570   /usr/ucb/* ) ;;
1571   *)
1572     # OSF1 and SCO ODT 3.0 have their own names for install.
1573     # Don't use installbsd from OSF since it installs stuff as root
1574     # by default.
1575     for ac_prog in ginstall scoinst install; do
1576       for ac_exec_ext in '' $ac_executable_extensions; do
1577         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1578           if test $ac_prog = install &&
1579             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1580             # AIX install.  It has an incompatible calling convention.
1581             :
1582           elif test $ac_prog = install &&
1583             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1584             # program-specific install script used by HP pwplus--don't use.
1585             :
1586           else
1587             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1588             break 3
1589           fi
1590         fi
1591       done
1592     done
1593     ;;
1594 esac
1595 done
1596
1597
1598 fi
1599   if test "${ac_cv_path_install+set}" = set; then
1600     INSTALL=$ac_cv_path_install
1601   else
1602     # As a last resort, use the slow shell script.  We don't cache a
1603     # path for INSTALL within a source directory, because that will
1604     # break other packages using the cache if that directory is
1605     # removed, or if the path is relative.
1606     INSTALL=$ac_install_sh
1607   fi
1608 fi
1609 echo "$as_me:$LINENO: result: $INSTALL" >&5
1610 echo "${ECHO_T}$INSTALL" >&6
1611
1612 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1613 # It thinks the first close brace ends the variable substitution.
1614 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1615
1616 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1617
1618 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1619
1620 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1621 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1622 # Just in case
1623 sleep 1
1624 echo timestamp > conftest.file
1625 # Do `set' in a subshell so we don't clobber the current shell's
1626 # arguments.  Must try -L first in case configure is actually a
1627 # symlink; some systems play weird games with the mod time of symlinks
1628 # (eg FreeBSD returns the mod time of the symlink's containing
1629 # directory).
1630 if (
1631    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1632    if test "$*" = "X"; then
1633       # -L didn't work.
1634       set X `ls -t $srcdir/configure conftest.file`
1635    fi
1636    rm -f conftest.file
1637    if test "$*" != "X $srcdir/configure conftest.file" \
1638       && test "$*" != "X conftest.file $srcdir/configure"; then
1639
1640       # If neither matched, then we have a broken ls.  This can happen
1641       # if, for instance, CONFIG_SHELL is bash and it inherits a
1642       # broken ls alias from the environment.  This has actually
1643       # happened.  Such a system could not be considered "sane".
1644       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1645 alias in your environment" >&5
1646 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1647 alias in your environment" >&2;}
1648    { (exit 1); exit 1; }; }
1649    fi
1650
1651    test "$2" = conftest.file
1652    )
1653 then
1654    # Ok.
1655    :
1656 else
1657    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1658 Check your system clock" >&5
1659 echo "$as_me: error: newly created file is older than distributed files!
1660 Check your system clock" >&2;}
1661    { (exit 1); exit 1; }; }
1662 fi
1663 echo "$as_me:$LINENO: result: yes" >&5
1664 echo "${ECHO_T}yes" >&6
1665 test "$program_prefix" != NONE &&
1666   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1667 # Use a double $ so make ignores it.
1668 test "$program_suffix" != NONE &&
1669   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1670 # Double any \ or $.  echo might interpret backslashes.
1671 # By default was `s,x,x', remove it if useless.
1672 cat <<\_ACEOF >conftest.sed
1673 s/[\\$]/&&/g;s/;s,x,x,$//
1674 _ACEOF
1675 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1676 rm conftest.sed
1677
1678
1679 # expand $ac_aux_dir to an absolute path
1680 am_aux_dir=`cd $ac_aux_dir && pwd`
1681
1682 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1683 # Use eval to expand $SHELL
1684 if eval "$MISSING --run true"; then
1685   am_missing_run="$MISSING --run "
1686 else
1687   am_missing_run=
1688   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1689 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1690 fi
1691
1692 for ac_prog in gawk mawk nawk awk
1693 do
1694   # Extract the first word of "$ac_prog", so it can be a program name with args.
1695 set dummy $ac_prog; ac_word=$2
1696 echo "$as_me:$LINENO: checking for $ac_word" >&5
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698 if test "${ac_cv_prog_AWK+set}" = set; then
1699   echo $ECHO_N "(cached) $ECHO_C" >&6
1700 else
1701   if test -n "$AWK"; then
1702   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1703 else
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 for as_dir in $PATH
1706 do
1707   IFS=$as_save_IFS
1708   test -z "$as_dir" && as_dir=.
1709   for ac_exec_ext in '' $ac_executable_extensions; do
1710   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711     ac_cv_prog_AWK="$ac_prog"
1712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713     break 2
1714   fi
1715 done
1716 done
1717
1718 fi
1719 fi
1720 AWK=$ac_cv_prog_AWK
1721 if test -n "$AWK"; then
1722   echo "$as_me:$LINENO: result: $AWK" >&5
1723 echo "${ECHO_T}$AWK" >&6
1724 else
1725   echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1727 fi
1728
1729   test -n "$AWK" && break
1730 done
1731
1732 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1733 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1734 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1735 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1736   echo $ECHO_N "(cached) $ECHO_C" >&6
1737 else
1738   cat >conftest.make <<\_ACEOF
1739 all:
1740         @echo 'ac_maketemp="$(MAKE)"'
1741 _ACEOF
1742 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1743 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1744 if test -n "$ac_maketemp"; then
1745   eval ac_cv_prog_make_${ac_make}_set=yes
1746 else
1747   eval ac_cv_prog_make_${ac_make}_set=no
1748 fi
1749 rm -f conftest.make
1750 fi
1751 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1752   echo "$as_me:$LINENO: result: yes" >&5
1753 echo "${ECHO_T}yes" >&6
1754   SET_MAKE=
1755 else
1756   echo "$as_me:$LINENO: result: no" >&5
1757 echo "${ECHO_T}no" >&6
1758   SET_MAKE="MAKE=${MAKE-make}"
1759 fi
1760
1761 rm -rf .tst 2>/dev/null
1762 mkdir .tst 2>/dev/null
1763 if test -d .tst; then
1764   am__leading_dot=.
1765 else
1766   am__leading_dot=_
1767 fi
1768 rmdir .tst 2>/dev/null
1769
1770  # test to see if srcdir already configured
1771 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1772    test -f $srcdir/config.status; then
1773   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1774 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1775    { (exit 1); exit 1; }; }
1776 fi
1777
1778 # test whether we have cygpath
1779 if test -z "$CYGPATH_W"; then
1780   if (cygpath --version) >/dev/null 2>/dev/null; then
1781     CYGPATH_W='cygpath -w'
1782   else
1783     CYGPATH_W=echo
1784   fi
1785 fi
1786
1787
1788 # Define the identity of the package.
1789  PACKAGE='TiMidity++'
1790  VERSION='current'
1791
1792
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE "$PACKAGE"
1795 _ACEOF
1796
1797
1798 cat >>confdefs.h <<_ACEOF
1799 #define VERSION "$VERSION"
1800 _ACEOF
1801
1802 # Some tools Automake needs.
1803
1804 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1805
1806
1807 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1808
1809
1810 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1811
1812
1813 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1814
1815
1816 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1817
1818
1819 AMTAR=${AMTAR-"${am_missing_run}tar"}
1820
1821 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1822
1823 # Installed binaries are usually stripped using `strip' when the user
1824 # run `make install-strip'.  However `strip' might not be the right
1825 # tool to use in cross-compilation environments, therefore Automake
1826 # will honor the `STRIP' environment variable to overrule this program.
1827 if test "$cross_compiling" != no; then
1828   if test -n "$ac_tool_prefix"; then
1829   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1830 set dummy ${ac_tool_prefix}strip; ac_word=$2
1831 echo "$as_me:$LINENO: checking for $ac_word" >&5
1832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1833 if test "${ac_cv_prog_STRIP+set}" = set; then
1834   echo $ECHO_N "(cached) $ECHO_C" >&6
1835 else
1836   if test -n "$STRIP"; then
1837   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1838 else
1839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 for as_dir in $PATH
1841 do
1842   IFS=$as_save_IFS
1843   test -z "$as_dir" && as_dir=.
1844   for ac_exec_ext in '' $ac_executable_extensions; do
1845   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1846     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1848     break 2
1849   fi
1850 done
1851 done
1852
1853 fi
1854 fi
1855 STRIP=$ac_cv_prog_STRIP
1856 if test -n "$STRIP"; then
1857   echo "$as_me:$LINENO: result: $STRIP" >&5
1858 echo "${ECHO_T}$STRIP" >&6
1859 else
1860   echo "$as_me:$LINENO: result: no" >&5
1861 echo "${ECHO_T}no" >&6
1862 fi
1863
1864 fi
1865 if test -z "$ac_cv_prog_STRIP"; then
1866   ac_ct_STRIP=$STRIP
1867   # Extract the first word of "strip", so it can be a program name with args.
1868 set dummy strip; ac_word=$2
1869 echo "$as_me:$LINENO: checking for $ac_word" >&5
1870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1872   echo $ECHO_N "(cached) $ECHO_C" >&6
1873 else
1874   if test -n "$ac_ct_STRIP"; then
1875   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1876 else
1877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 for as_dir in $PATH
1879 do
1880   IFS=$as_save_IFS
1881   test -z "$as_dir" && as_dir=.
1882   for ac_exec_ext in '' $ac_executable_extensions; do
1883   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884     ac_cv_prog_ac_ct_STRIP="strip"
1885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1886     break 2
1887   fi
1888 done
1889 done
1890
1891   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1892 fi
1893 fi
1894 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1895 if test -n "$ac_ct_STRIP"; then
1896   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1897 echo "${ECHO_T}$ac_ct_STRIP" >&6
1898 else
1899   echo "$as_me:$LINENO: result: no" >&5
1900 echo "${ECHO_T}no" >&6
1901 fi
1902
1903   STRIP=$ac_ct_STRIP
1904 else
1905   STRIP="$ac_cv_prog_STRIP"
1906 fi
1907
1908 fi
1909 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1910
1911 # We need awk for the "check" target.  The system "awk" is bad on
1912 # some platforms.
1913
1914
1915
1916
1917                     ac_config_headers="$ac_config_headers config.h interface.h"
1918
1919 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1920 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1921     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1922 if test "${enable_maintainer_mode+set}" = set; then
1923   enableval="$enable_maintainer_mode"
1924   USE_MAINTAINER_MODE=$enableval
1925 else
1926   USE_MAINTAINER_MODE=no
1927 fi;
1928   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1929 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1930
1931
1932 if test $USE_MAINTAINER_MODE = yes; then
1933   MAINTAINER_MODE_TRUE=
1934   MAINTAINER_MODE_FALSE='#'
1935 else
1936   MAINTAINER_MODE_TRUE='#'
1937   MAINTAINER_MODE_FALSE=
1938 fi
1939
1940   MAINT=$MAINTAINER_MODE_TRUE
1941
1942
1943
1944 SHELL=${CONFIG_SHELL-"/bin/sh"}
1945 WISH=${WISH-"wish"}
1946
1947 echo "$as_me:$LINENO: checking whether grep returns status" >&5
1948 echo $ECHO_N "checking whether grep returns status... $ECHO_C" >&6
1949 echo "grimblepritz" >grimble
1950 if grep blurfldyick grimble >/dev/null 2>&1 ; then
1951         contains="./contains"
1952 elif grep grimblepritz grimble >/dev/null 2>&1 ; then
1953         contains=grep
1954 else
1955         contains="./contains"
1956 fi
1957 rm -f grimble
1958 case "$contains" in
1959 grep)   echo "$as_me:$LINENO: result: yes" >&5
1960 echo "${ECHO_T}yes" >&6
1961         ;;
1962 ./contains)
1963         echo "$as_me:$LINENO: result: AGH!  Grep doesn't return a status.  Attempting remedial action." >&5
1964 echo "${ECHO_T}AGH!  Grep doesn't return a status.  Attempting remedial action." >&6
1965         cat >./contains <<'EOSS'
1966 grep "$1" "$2" >.greptmp && cat .greptmp && test -s .greptmp
1967 EOSS
1968         chmod +x "./contains"
1969         ;;
1970 esac
1971
1972
1973 # Check for compiler options -- such as debug flags.
1974
1975 echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
1976 echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6
1977 # Check whether --enable-debug or --disable-debug was given.
1978 if test "${enable_debug+set}" = set; then
1979   enableval="$enable_debug"
1980   timidity_cv_debug="yes"
1981 else
1982   timidity_cv_debug="no"
1983 fi;
1984 if test "x$timidity_cv_debug" = "xyes"; then
1985
1986 cat >>confdefs.h <<\_ACEOF
1987 #define DEBUG 1
1988 _ACEOF
1989
1990   CFLAGS=${CFLAGS-"-g"}
1991 fi
1992 if test "x$timidity_cv_debug" = "xno"; then
1993
1994 cat >>confdefs.h <<\_ACEOF
1995 #define NDEBUG 1
1996 _ACEOF
1997
1998 fi
1999 echo "$as_me:$LINENO: result: $timidity_cv_debug" >&5
2000 echo "${ECHO_T}$timidity_cv_debug" >&6
2001
2002 CFLAGS=${CFLAGS-"-O2"}
2003
2004 if test "x$with_x" = x; then
2005   with_x=yes
2006 else
2007   x_config_flag=yes
2008 fi
2009
2010 # Checking gcc environment
2011 for i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do
2012   LDFLAGS="$LDFLAGS -L${i}"
2013 done
2014 for i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do
2015   CPPFLAGS="$CPPFLAGS -I${i}"
2016 done
2017
2018 # add $prefix if specified.
2019 if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then
2020   LDFLAGS="-L$prefix/lib $LDFLAGS"
2021   SHLDFLAGS="-L$prefix/lib $SHLDFLAGS"
2022   CPPFLAGS="-I$prefix/include $CPPFLAGS"
2023 fi
2024
2025
2026 # Check whether --with-includes or --without-includes was given.
2027 if test "${with_includes+set}" = set; then
2028   withval="$with_includes"
2029    j=' '
2030     for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2031       j="${j}-I${i} "
2032     done
2033     CPPFLAGS="$j$CPPFLAGS"
2034
2035 fi;
2036
2037
2038 # Check whether --with-libraries or --without-libraries was given.
2039 if test "${with_libraries+set}" = set; then
2040   withval="$with_libraries"
2041    j=' '
2042     for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2043       j="${j}-L${i} "
2044     done
2045     LDFLAGS="$j$LDFLAGS"
2046
2047 fi;
2048
2049
2050
2051 # Check whether --with-default-path or --without-default-path was given.
2052 if test "${with_default_path+set}" = set; then
2053   withval="$with_default_path"
2054   pkgdatadir=$withval
2055 else
2056
2057    if test "x$prefix" != "xNONE"; then
2058       pkgdatadir='${prefix}/share/timidity'
2059    else
2060       pkgdatadir='/usr/local/share/timidity'
2061    fi
2062
2063 fi;
2064 tmpdefpath="`eval \"echo ${pkgdatadir}\"`"
2065
2066 cat >>confdefs.h <<_ACEOF
2067 #define DEFAULT_PATH "$tmpdefpath"
2068 _ACEOF
2069
2070
2071 cat >>confdefs.h <<\_ACEOF
2072 #define PKGDATADIR DEFAULT_PATH
2073 _ACEOF
2074
2075
2076
2077 # Check whether --with-module-dir or --without-module-dir was given.
2078 if test "${with_module_dir+set}" = set; then
2079   withval="$with_module_dir"
2080   pkglibdir=$withval
2081 else
2082
2083    if test "x$prefix" != "xNONE"; then
2084       pkglibdir='${prefix}/lib/timidity'
2085    else
2086       pkglibdir='/usr/local/lib/timidity'
2087    fi
2088
2089 fi;
2090 tmplibdir="`eval \"echo ${pkglibdir}\"`"
2091
2092 cat >>confdefs.h <<_ACEOF
2093 #define PKGLIBDIR "$tmplibdir"
2094 _ACEOF
2095
2096
2097
2098 # Checks for programs.
2099
2100 # Check whether --with-lispdir or --without-lispdir was given.
2101 if test "${with_lispdir+set}" = set; then
2102   withval="$with_lispdir"
2103    lispdir="$withval"
2104    echo "$as_me:$LINENO: checking where .elc files should go" >&5
2105 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2106    echo "$as_me:$LINENO: result: $lispdir" >&5
2107 echo "${ECHO_T}$lispdir" >&6
2108 else
2109
2110  # If set to t, that means we are running in a shell under Emacs.
2111  # If you have an Emacs named "t", then use the full path.
2112  test x"$EMACS" = xt && EMACS=
2113  for ac_prog in emacs xemacs
2114 do
2115   # Extract the first word of "$ac_prog", so it can be a program name with args.
2116 set dummy $ac_prog; ac_word=$2
2117 echo "$as_me:$LINENO: checking for $ac_word" >&5
2118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2119 if test "${ac_cv_prog_EMACS+set}" = set; then
2120   echo $ECHO_N "(cached) $ECHO_C" >&6
2121 else
2122   if test -n "$EMACS"; then
2123   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2124 else
2125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126 for as_dir in $PATH
2127 do
2128   IFS=$as_save_IFS
2129   test -z "$as_dir" && as_dir=.
2130   for ac_exec_ext in '' $ac_executable_extensions; do
2131   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2132     ac_cv_prog_EMACS="$ac_prog"
2133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2134     break 2
2135   fi
2136 done
2137 done
2138
2139 fi
2140 fi
2141 EMACS=$ac_cv_prog_EMACS
2142 if test -n "$EMACS"; then
2143   echo "$as_me:$LINENO: result: $EMACS" >&5
2144 echo "${ECHO_T}$EMACS" >&6
2145 else
2146   echo "$as_me:$LINENO: result: no" >&5
2147 echo "${ECHO_T}no" >&6
2148 fi
2149
2150   test -n "$EMACS" && break
2151 done
2152 test -n "$EMACS" || EMACS="no"
2153
2154  if test $EMACS != "no"; then
2155    if test x${lispdir+set} != xset; then
2156      echo "$as_me:$LINENO: checking where .elc files should go" >&5
2157 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2158 if test "${am_cv_lispdir+set}" = set; then
2159   echo $ECHO_N "(cached) $ECHO_C" >&6
2160 else
2161   # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
2162   # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
2163   #  which is non-obvious for non-emacs users.
2164   # Redirecting /dev/null should help a bit; pity we can't detect "broken"
2165   #  emacsen earlier and avoid running this altogether.
2166   { (echo "$as_me:$LINENO: \$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) \"\\n\")) (setq load-path (cdr load-path)))' </dev/null >conftest.out") >&5
2167   ($EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out) 2>&5
2168   ac_status=$?
2169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170   (exit $ac_status); }
2171         am_cv_lispdir=`sed -n \
2172        -e 's,/$,,' \
2173        -e '/.*\/lib\/x\?emacs\/site-lisp$/{s,.*/lib/\(x\?emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
2174        -e '/.*\/share\/x\?emacs\/site-lisp$/{s,.*/share/\(x\?emacs/site-lisp\),${datadir}/\1,;p;q;}' \
2175        conftest.out`
2176        rm conftest.out
2177        if test -z "$am_cv_lispdir"; then
2178          am_cv_lispdir='${datadir}/emacs/site-lisp'
2179        fi
2180
2181 fi
2182 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2183 echo "${ECHO_T}$am_cv_lispdir" >&6
2184      lispdir="$am_cv_lispdir"
2185    fi
2186  fi
2187
2188 fi;
2189
2190
2191 ac_ext=c
2192 ac_cpp='$CPP $CPPFLAGS'
2193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2196 if test -n "$ac_tool_prefix"; then
2197   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2198 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2199 echo "$as_me:$LINENO: checking for $ac_word" >&5
2200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2201 if test "${ac_cv_prog_CC+set}" = set; then
2202   echo $ECHO_N "(cached) $ECHO_C" >&6
2203 else
2204   if test -n "$CC"; then
2205   ac_cv_prog_CC="$CC" # Let the user override the test.
2206 else
2207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208 for as_dir in $PATH
2209 do
2210   IFS=$as_save_IFS
2211   test -z "$as_dir" && as_dir=.
2212   for ac_exec_ext in '' $ac_executable_extensions; do
2213   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2214     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2216     break 2
2217   fi
2218 done
2219 done
2220
2221 fi
2222 fi
2223 CC=$ac_cv_prog_CC
2224 if test -n "$CC"; then
2225   echo "$as_me:$LINENO: result: $CC" >&5
2226 echo "${ECHO_T}$CC" >&6
2227 else
2228   echo "$as_me:$LINENO: result: no" >&5
2229 echo "${ECHO_T}no" >&6
2230 fi
2231
2232 fi
2233 if test -z "$ac_cv_prog_CC"; then
2234   ac_ct_CC=$CC
2235   # Extract the first word of "gcc", so it can be a program name with args.
2236 set dummy gcc; ac_word=$2
2237 echo "$as_me:$LINENO: checking for $ac_word" >&5
2238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2239 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2240   echo $ECHO_N "(cached) $ECHO_C" >&6
2241 else
2242   if test -n "$ac_ct_CC"; then
2243   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2244 else
2245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246 for as_dir in $PATH
2247 do
2248   IFS=$as_save_IFS
2249   test -z "$as_dir" && as_dir=.
2250   for ac_exec_ext in '' $ac_executable_extensions; do
2251   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2252     ac_cv_prog_ac_ct_CC="gcc"
2253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2254     break 2
2255   fi
2256 done
2257 done
2258
2259 fi
2260 fi
2261 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2262 if test -n "$ac_ct_CC"; then
2263   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2264 echo "${ECHO_T}$ac_ct_CC" >&6
2265 else
2266   echo "$as_me:$LINENO: result: no" >&5
2267 echo "${ECHO_T}no" >&6
2268 fi
2269
2270   CC=$ac_ct_CC
2271 else
2272   CC="$ac_cv_prog_CC"
2273 fi
2274
2275 if test -z "$CC"; then
2276   if test -n "$ac_tool_prefix"; then
2277   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2278 set dummy ${ac_tool_prefix}cc; ac_word=$2
2279 echo "$as_me:$LINENO: checking for $ac_word" >&5
2280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2281 if test "${ac_cv_prog_CC+set}" = set; then
2282   echo $ECHO_N "(cached) $ECHO_C" >&6
2283 else
2284   if test -n "$CC"; then
2285   ac_cv_prog_CC="$CC" # Let the user override the test.
2286 else
2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288 for as_dir in $PATH
2289 do
2290   IFS=$as_save_IFS
2291   test -z "$as_dir" && as_dir=.
2292   for ac_exec_ext in '' $ac_executable_extensions; do
2293   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2294     ac_cv_prog_CC="${ac_tool_prefix}cc"
2295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2296     break 2
2297   fi
2298 done
2299 done
2300
2301 fi
2302 fi
2303 CC=$ac_cv_prog_CC
2304 if test -n "$CC"; then
2305   echo "$as_me:$LINENO: result: $CC" >&5
2306 echo "${ECHO_T}$CC" >&6
2307 else
2308   echo "$as_me:$LINENO: result: no" >&5
2309 echo "${ECHO_T}no" >&6
2310 fi
2311
2312 fi
2313 if test -z "$ac_cv_prog_CC"; then
2314   ac_ct_CC=$CC
2315   # Extract the first word of "cc", so it can be a program name with args.
2316 set dummy cc; ac_word=$2
2317 echo "$as_me:$LINENO: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2319 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2320   echo $ECHO_N "(cached) $ECHO_C" >&6
2321 else
2322   if test -n "$ac_ct_CC"; then
2323   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2324 else
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 for as_dir in $PATH
2327 do
2328   IFS=$as_save_IFS
2329   test -z "$as_dir" && as_dir=.
2330   for ac_exec_ext in '' $ac_executable_extensions; do
2331   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2332     ac_cv_prog_ac_ct_CC="cc"
2333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334     break 2
2335   fi
2336 done
2337 done
2338
2339 fi
2340 fi
2341 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2342 if test -n "$ac_ct_CC"; then
2343   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2344 echo "${ECHO_T}$ac_ct_CC" >&6
2345 else
2346   echo "$as_me:$LINENO: result: no" >&5
2347 echo "${ECHO_T}no" >&6
2348 fi
2349
2350   CC=$ac_ct_CC
2351 else
2352   CC="$ac_cv_prog_CC"
2353 fi
2354
2355 fi
2356 if test -z "$CC"; then
2357   # Extract the first word of "cc", so it can be a program name with args.
2358 set dummy cc; ac_word=$2
2359 echo "$as_me:$LINENO: checking for $ac_word" >&5
2360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2361 if test "${ac_cv_prog_CC+set}" = set; then
2362   echo $ECHO_N "(cached) $ECHO_C" >&6
2363 else
2364   if test -n "$CC"; then
2365   ac_cv_prog_CC="$CC" # Let the user override the test.
2366 else
2367   ac_prog_rejected=no
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 for as_dir in $PATH
2370 do
2371   IFS=$as_save_IFS
2372   test -z "$as_dir" && as_dir=.
2373   for ac_exec_ext in '' $ac_executable_extensions; do
2374   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2375     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2376        ac_prog_rejected=yes
2377        continue
2378      fi
2379     ac_cv_prog_CC="cc"
2380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381     break 2
2382   fi
2383 done
2384 done
2385
2386 if test $ac_prog_rejected = yes; then
2387   # We found a bogon in the path, so make sure we never use it.
2388   set dummy $ac_cv_prog_CC
2389   shift
2390   if test $# != 0; then
2391     # We chose a different compiler from the bogus one.
2392     # However, it has the same basename, so the bogon will be chosen
2393     # first if we set CC to just the basename; use the full file name.
2394     shift
2395     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2396   fi
2397 fi
2398 fi
2399 fi
2400 CC=$ac_cv_prog_CC
2401 if test -n "$CC"; then
2402   echo "$as_me:$LINENO: result: $CC" >&5
2403 echo "${ECHO_T}$CC" >&6
2404 else
2405   echo "$as_me:$LINENO: result: no" >&5
2406 echo "${ECHO_T}no" >&6
2407 fi
2408
2409 fi
2410 if test -z "$CC"; then
2411   if test -n "$ac_tool_prefix"; then
2412   for ac_prog in cl
2413   do
2414     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2415 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2416 echo "$as_me:$LINENO: checking for $ac_word" >&5
2417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2418 if test "${ac_cv_prog_CC+set}" = set; then
2419   echo $ECHO_N "(cached) $ECHO_C" >&6
2420 else
2421   if test -n "$CC"; then
2422   ac_cv_prog_CC="$CC" # Let the user override the test.
2423 else
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 for as_dir in $PATH
2426 do
2427   IFS=$as_save_IFS
2428   test -z "$as_dir" && as_dir=.
2429   for ac_exec_ext in '' $ac_executable_extensions; do
2430   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2431     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2432     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2433     break 2
2434   fi
2435 done
2436 done
2437
2438 fi
2439 fi
2440 CC=$ac_cv_prog_CC
2441 if test -n "$CC"; then
2442   echo "$as_me:$LINENO: result: $CC" >&5
2443 echo "${ECHO_T}$CC" >&6
2444 else
2445   echo "$as_me:$LINENO: result: no" >&5
2446 echo "${ECHO_T}no" >&6
2447 fi
2448
2449     test -n "$CC" && break
2450   done
2451 fi
2452 if test -z "$CC"; then
2453   ac_ct_CC=$CC
2454   for ac_prog in cl
2455 do
2456   # Extract the first word of "$ac_prog", so it can be a program name with args.
2457 set dummy $ac_prog; ac_word=$2
2458 echo "$as_me:$LINENO: checking for $ac_word" >&5
2459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2460 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2461   echo $ECHO_N "(cached) $ECHO_C" >&6
2462 else
2463   if test -n "$ac_ct_CC"; then
2464   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2465 else
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 for as_dir in $PATH
2468 do
2469   IFS=$as_save_IFS
2470   test -z "$as_dir" && as_dir=.
2471   for ac_exec_ext in '' $ac_executable_extensions; do
2472   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2473     ac_cv_prog_ac_ct_CC="$ac_prog"
2474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2475     break 2
2476   fi
2477 done
2478 done
2479
2480 fi
2481 fi
2482 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2483 if test -n "$ac_ct_CC"; then
2484   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2485 echo "${ECHO_T}$ac_ct_CC" >&6
2486 else
2487   echo "$as_me:$LINENO: result: no" >&5
2488 echo "${ECHO_T}no" >&6
2489 fi
2490
2491   test -n "$ac_ct_CC" && break
2492 done
2493
2494   CC=$ac_ct_CC
2495 fi
2496
2497 fi
2498
2499
2500 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2501 See \`config.log' for more details." >&5
2502 echo "$as_me: error: no acceptable C compiler found in \$PATH
2503 See \`config.log' for more details." >&2;}
2504    { (exit 1); exit 1; }; }
2505
2506 # Provide some information about the compiler.
2507 echo "$as_me:$LINENO:" \
2508      "checking for C compiler version" >&5
2509 ac_compiler=`set X $ac_compile; echo $2`
2510 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2511   (eval $ac_compiler --version </dev/null >&5) 2>&5
2512   ac_status=$?
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); }
2515 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2516   (eval $ac_compiler -v </dev/null >&5) 2>&5
2517   ac_status=$?
2518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519   (exit $ac_status); }
2520 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2521   (eval $ac_compiler -V </dev/null >&5) 2>&5
2522   ac_status=$?
2523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524   (exit $ac_status); }
2525
2526 cat >conftest.$ac_ext <<_ACEOF
2527 /* confdefs.h.  */
2528 _ACEOF
2529 cat confdefs.h >>conftest.$ac_ext
2530 cat >>conftest.$ac_ext <<_ACEOF
2531 /* end confdefs.h.  */
2532
2533 int
2534 main ()
2535 {
2536
2537   ;
2538   return 0;
2539 }
2540 _ACEOF
2541 ac_clean_files_save=$ac_clean_files
2542 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2543 # Try to create an executable without -o first, disregard a.out.
2544 # It will help us diagnose broken compilers, and finding out an intuition
2545 # of exeext.
2546 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2547 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2548 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2549 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2550   (eval $ac_link_default) 2>&5
2551   ac_status=$?
2552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553   (exit $ac_status); }; then
2554   # Find the output, starting from the most likely.  This scheme is
2555 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2556 # resort.
2557
2558 # Be careful to initialize this variable, since it used to be cached.
2559 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2560 ac_cv_exeext=
2561 # b.out is created by i960 compilers.
2562 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2563 do
2564   test -f "$ac_file" || continue
2565   case $ac_file in
2566     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2567         ;;
2568     conftest.$ac_ext )
2569         # This is the source file.
2570         ;;
2571     [ab].out )
2572         # We found the default executable, but exeext='' is most
2573         # certainly right.
2574         break;;
2575     *.* )
2576         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2577         # FIXME: I believe we export ac_cv_exeext for Libtool,
2578         # but it would be cool to find out if it's true.  Does anybody
2579         # maintain Libtool? --akim.
2580         export ac_cv_exeext
2581         break;;
2582     * )
2583         break;;
2584   esac
2585 done
2586 else
2587   echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.$ac_ext >&5
2589
2590 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2591 See \`config.log' for more details." >&5
2592 echo "$as_me: error: C compiler cannot create executables
2593 See \`config.log' for more details." >&2;}
2594    { (exit 77); exit 77; }; }
2595 fi
2596
2597 ac_exeext=$ac_cv_exeext
2598 echo "$as_me:$LINENO: result: $ac_file" >&5
2599 echo "${ECHO_T}$ac_file" >&6
2600
2601 # Check the compiler produces executables we can run.  If not, either
2602 # the compiler is broken, or we cross compile.
2603 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2604 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2605 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2606 # If not cross compiling, check that we can run a simple program.
2607 if test "$cross_compiling" != yes; then
2608   if { ac_try='./$ac_file'
2609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610   (eval $ac_try) 2>&5
2611   ac_status=$?
2612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613   (exit $ac_status); }; }; then
2614     cross_compiling=no
2615   else
2616     if test "$cross_compiling" = maybe; then
2617         cross_compiling=yes
2618     else
2619         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2620 If you meant to cross compile, use \`--host'.
2621 See \`config.log' for more details." >&5
2622 echo "$as_me: error: cannot run C compiled programs.
2623 If you meant to cross compile, use \`--host'.
2624 See \`config.log' for more details." >&2;}
2625    { (exit 1); exit 1; }; }
2626     fi
2627   fi
2628 fi
2629 echo "$as_me:$LINENO: result: yes" >&5
2630 echo "${ECHO_T}yes" >&6
2631
2632 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2633 ac_clean_files=$ac_clean_files_save
2634 # Check the compiler produces executables we can run.  If not, either
2635 # the compiler is broken, or we cross compile.
2636 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2637 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2638 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2639 echo "${ECHO_T}$cross_compiling" >&6
2640
2641 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2642 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2644   (eval $ac_link) 2>&5
2645   ac_status=$?
2646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647   (exit $ac_status); }; then
2648   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2649 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2650 # work properly (i.e., refer to `conftest.exe'), while it won't with
2651 # `rm'.
2652 for ac_file in conftest.exe conftest conftest.*; do
2653   test -f "$ac_file" || continue
2654   case $ac_file in
2655     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2656     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2657           export ac_cv_exeext
2658           break;;
2659     * ) break;;
2660   esac
2661 done
2662 else
2663   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2664 See \`config.log' for more details." >&5
2665 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2666 See \`config.log' for more details." >&2;}
2667    { (exit 1); exit 1; }; }
2668 fi
2669
2670 rm -f conftest$ac_cv_exeext
2671 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2672 echo "${ECHO_T}$ac_cv_exeext" >&6
2673
2674 rm -f conftest.$ac_ext
2675 EXEEXT=$ac_cv_exeext
2676 ac_exeext=$EXEEXT
2677 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2678 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2679 if test "${ac_cv_objext+set}" = set; then
2680   echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682   cat >conftest.$ac_ext <<_ACEOF
2683 /* confdefs.h.  */
2684 _ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h.  */
2688
2689 int
2690 main ()
2691 {
2692
2693   ;
2694   return 0;
2695 }
2696 _ACEOF
2697 rm -f conftest.o conftest.obj
2698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2699   (eval $ac_compile) 2>&5
2700   ac_status=$?
2701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702   (exit $ac_status); }; then
2703   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2704   case $ac_file in
2705     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2706     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2707        break;;
2708   esac
2709 done
2710 else
2711   echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2713
2714 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2715 See \`config.log' for more details." >&5
2716 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2717 See \`config.log' for more details." >&2;}
2718    { (exit 1); exit 1; }; }
2719 fi
2720
2721 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2722 fi
2723 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2724 echo "${ECHO_T}$ac_cv_objext" >&6
2725 OBJEXT=$ac_cv_objext
2726 ac_objext=$OBJEXT
2727 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2728 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2729 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2730   echo $ECHO_N "(cached) $ECHO_C" >&6
2731 else
2732   cat >conftest.$ac_ext <<_ACEOF
2733 /* confdefs.h.  */
2734 _ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h.  */
2738
2739 int
2740 main ()
2741 {
2742 #ifndef __GNUC__
2743        choke me
2744 #endif
2745
2746   ;
2747   return 0;
2748 }
2749 _ACEOF
2750 rm -f conftest.$ac_objext
2751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2752   (eval $ac_compile) 2>conftest.er1
2753   ac_status=$?
2754   grep -v '^ *+' conftest.er1 >conftest.err
2755   rm -f conftest.er1
2756   cat conftest.err >&5
2757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758   (exit $ac_status); } &&
2759          { ac_try='test -z "$ac_c_werror_flag"
2760                          || test ! -s conftest.err'
2761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762   (eval $ac_try) 2>&5
2763   ac_status=$?
2764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765   (exit $ac_status); }; } &&
2766          { ac_try='test -s conftest.$ac_objext'
2767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768   (eval $ac_try) 2>&5
2769   ac_status=$?
2770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); }; }; then
2772   ac_compiler_gnu=yes
2773 else
2774   echo "$as_me: failed program was:" >&5
2775 sed 's/^/| /' conftest.$ac_ext >&5
2776
2777 ac_compiler_gnu=no
2778 fi
2779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2780 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2781
2782 fi
2783 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2784 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2785 GCC=`test $ac_compiler_gnu = yes && echo yes`
2786 ac_test_CFLAGS=${CFLAGS+set}
2787 ac_save_CFLAGS=$CFLAGS
2788 CFLAGS="-g"
2789 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2790 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2791 if test "${ac_cv_prog_cc_g+set}" = set; then
2792   echo $ECHO_N "(cached) $ECHO_C" >&6
2793 else
2794   cat >conftest.$ac_ext <<_ACEOF
2795 /* confdefs.h.  */
2796 _ACEOF
2797 cat confdefs.h >>conftest.$ac_ext
2798 cat >>conftest.$ac_ext <<_ACEOF
2799 /* end confdefs.h.  */
2800
2801 int
2802 main ()
2803 {
2804
2805   ;
2806   return 0;
2807 }
2808 _ACEOF
2809 rm -f conftest.$ac_objext
2810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2811   (eval $ac_compile) 2>conftest.er1
2812   ac_status=$?
2813   grep -v '^ *+' conftest.er1 >conftest.err
2814   rm -f conftest.er1
2815   cat conftest.err >&5
2816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817   (exit $ac_status); } &&
2818          { ac_try='test -z "$ac_c_werror_flag"
2819                          || test ! -s conftest.err'
2820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2821   (eval $ac_try) 2>&5
2822   ac_status=$?
2823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824   (exit $ac_status); }; } &&
2825          { ac_try='test -s conftest.$ac_objext'
2826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2827   (eval $ac_try) 2>&5
2828   ac_status=$?
2829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830   (exit $ac_status); }; }; then
2831   ac_cv_prog_cc_g=yes
2832 else
2833   echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2835
2836 ac_cv_prog_cc_g=no
2837 fi
2838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2839 fi
2840 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2841 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2842 if test "$ac_test_CFLAGS" = set; then
2843   CFLAGS=$ac_save_CFLAGS
2844 elif test $ac_cv_prog_cc_g = yes; then
2845   if test "$GCC" = yes; then
2846     CFLAGS="-g -O2"
2847   else
2848     CFLAGS="-g"
2849   fi
2850 else
2851   if test "$GCC" = yes; then
2852     CFLAGS="-O2"
2853   else
2854     CFLAGS=
2855   fi
2856 fi
2857 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2858 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2859 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2860   echo $ECHO_N "(cached) $ECHO_C" >&6
2861 else
2862   ac_cv_prog_cc_stdc=no
2863 ac_save_CC=$CC
2864 cat >conftest.$ac_ext <<_ACEOF
2865 /* confdefs.h.  */
2866 _ACEOF
2867 cat confdefs.h >>conftest.$ac_ext
2868 cat >>conftest.$ac_ext <<_ACEOF
2869 /* end confdefs.h.  */
2870 #include <stdarg.h>
2871 #include <stdio.h>
2872 #include <sys/types.h>
2873 #include <sys/stat.h>
2874 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2875 struct buf { int x; };
2876 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2877 static char *e (p, i)
2878      char **p;
2879      int i;
2880 {
2881   return p[i];
2882 }
2883 static char *f (char * (*g) (char **, int), char **p, ...)
2884 {
2885   char *s;
2886   va_list v;
2887   va_start (v,p);
2888   s = g (p, va_arg (v,int));
2889   va_end (v);
2890   return s;
2891 }
2892
2893 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2894    function prototypes and stuff, but not '\xHH' hex character constants.
2895    These don't provoke an error unfortunately, instead are silently treated
2896    as 'x'.  The following induces an error, until -std1 is added to get
2897    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2898    array size at least.  It's necessary to write '\x00'==0 to get something
2899    that's true only with -std1.  */
2900 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2901
2902 int test (int i, double x);
2903 struct s1 {int (*f) (int a);};
2904 struct s2 {int (*f) (double a);};
2905 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2906 int argc;
2907 char **argv;
2908 int
2909 main ()
2910 {
2911 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2912   ;
2913   return 0;
2914 }
2915 _ACEOF
2916 # Don't try gcc -ansi; that turns off useful extensions and
2917 # breaks some systems' header files.
2918 # AIX                   -qlanglvl=ansi
2919 # Ultrix and OSF/1      -std1
2920 # HP-UX 10.20 and later -Ae
2921 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2922 # SVR4                  -Xc -D__EXTENSIONS__
2923 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2924 do
2925   CC="$ac_save_CC $ac_arg"
2926   rm -f conftest.$ac_objext
2927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2928   (eval $ac_compile) 2>conftest.er1
2929   ac_status=$?
2930   grep -v '^ *+' conftest.er1 >conftest.err
2931   rm -f conftest.er1
2932   cat conftest.err >&5
2933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934   (exit $ac_status); } &&
2935          { ac_try='test -z "$ac_c_werror_flag"
2936                          || test ! -s conftest.err'
2937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938   (eval $ac_try) 2>&5
2939   ac_status=$?
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); }; } &&
2942          { ac_try='test -s conftest.$ac_objext'
2943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944   (eval $ac_try) 2>&5
2945   ac_status=$?
2946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947   (exit $ac_status); }; }; then
2948   ac_cv_prog_cc_stdc=$ac_arg
2949 break
2950 else
2951   echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.$ac_ext >&5
2953
2954 fi
2955 rm -f conftest.err conftest.$ac_objext
2956 done
2957 rm -f conftest.$ac_ext conftest.$ac_objext
2958 CC=$ac_save_CC
2959
2960 fi
2961
2962 case "x$ac_cv_prog_cc_stdc" in
2963   x|xno)
2964     echo "$as_me:$LINENO: result: none needed" >&5
2965 echo "${ECHO_T}none needed" >&6 ;;
2966   *)
2967     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2968 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2969     CC="$CC $ac_cv_prog_cc_stdc" ;;
2970 esac
2971
2972 # Some people use a C++ compiler to compile C.  Since we use `exit',
2973 # in C++ we need to declare it.  In case someone uses the same compiler
2974 # for both compiling C and C++ we need to have the C++ compiler decide
2975 # the declaration of exit, since it's the most demanding environment.
2976 cat >conftest.$ac_ext <<_ACEOF
2977 #ifndef __cplusplus
2978   choke me
2979 #endif
2980 _ACEOF
2981 rm -f conftest.$ac_objext
2982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2983   (eval $ac_compile) 2>conftest.er1
2984   ac_status=$?
2985   grep -v '^ *+' conftest.er1 >conftest.err
2986   rm -f conftest.er1
2987   cat conftest.err >&5
2988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989   (exit $ac_status); } &&
2990          { ac_try='test -z "$ac_c_werror_flag"
2991                          || test ! -s conftest.err'
2992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993   (eval $ac_try) 2>&5
2994   ac_status=$?
2995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996   (exit $ac_status); }; } &&
2997          { ac_try='test -s conftest.$ac_objext'
2998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2999   (eval $ac_try) 2>&5
3000   ac_status=$?
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); }; }; then
3003   for ac_declaration in \
3004    '' \
3005    'extern "C" void std::exit (int) throw (); using std::exit;' \
3006    'extern "C" void std::exit (int); using std::exit;' \
3007    'extern "C" void exit (int) throw ();' \
3008    'extern "C" void exit (int);' \
3009    'void exit (int);'
3010 do
3011   cat >conftest.$ac_ext <<_ACEOF
3012 /* confdefs.h.  */
3013 _ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h.  */
3017 $ac_declaration
3018 #include <stdlib.h>
3019 int
3020 main ()
3021 {
3022 exit (42);
3023   ;
3024   return 0;
3025 }
3026 _ACEOF
3027 rm -f conftest.$ac_objext
3028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3029   (eval $ac_compile) 2>conftest.er1
3030   ac_status=$?
3031   grep -v '^ *+' conftest.er1 >conftest.err
3032   rm -f conftest.er1
3033   cat conftest.err >&5
3034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035   (exit $ac_status); } &&
3036          { ac_try='test -z "$ac_c_werror_flag"
3037                          || test ! -s conftest.err'
3038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039   (eval $ac_try) 2>&5
3040   ac_status=$?
3041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042   (exit $ac_status); }; } &&
3043          { ac_try='test -s conftest.$ac_objext'
3044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3045   (eval $ac_try) 2>&5
3046   ac_status=$?
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); }; }; then
3049   :
3050 else
3051   echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3053
3054 continue
3055 fi
3056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3057   cat >conftest.$ac_ext <<_ACEOF
3058 /* confdefs.h.  */
3059 _ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h.  */
3063 $ac_declaration
3064 int
3065 main ()
3066 {
3067 exit (42);
3068   ;
3069   return 0;
3070 }
3071 _ACEOF
3072 rm -f conftest.$ac_objext
3073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3074   (eval $ac_compile) 2>conftest.er1
3075   ac_status=$?
3076   grep -v '^ *+' conftest.er1 >conftest.err
3077   rm -f conftest.er1
3078   cat conftest.err >&5
3079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080   (exit $ac_status); } &&
3081          { ac_try='test -z "$ac_c_werror_flag"
3082                          || test ! -s conftest.err'
3083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084   (eval $ac_try) 2>&5
3085   ac_status=$?
3086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087   (exit $ac_status); }; } &&
3088          { ac_try='test -s conftest.$ac_objext'
3089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3090   (eval $ac_try) 2>&5
3091   ac_status=$?
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); }; }; then
3094   break
3095 else
3096   echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3098
3099 fi
3100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3101 done
3102 rm -f conftest*
3103 if test -n "$ac_declaration"; then
3104   echo '#ifdef __cplusplus' >>confdefs.h
3105   echo $ac_declaration      >>confdefs.h
3106   echo '#endif'             >>confdefs.h
3107 fi
3108
3109 else
3110   echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3112
3113 fi
3114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3115 ac_ext=c
3116 ac_cpp='$CPP $CPPFLAGS'
3117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3120 DEPDIR="${am__leading_dot}deps"
3121
3122           ac_config_commands="$ac_config_commands depfiles"
3123
3124
3125 am_make=${MAKE-make}
3126 cat > confinc << 'END'
3127 am__doit:
3128         @echo done
3129 .PHONY: am__doit
3130 END
3131 # If we don't find an include directive, just comment out the code.
3132 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3133 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3134 am__include="#"
3135 am__quote=
3136 _am_result=none
3137 # First try GNU make style include.
3138 echo "include confinc" > confmf
3139 # We grep out `Entering directory' and `Leaving directory'
3140 # messages which can occur if `w' ends up in MAKEFLAGS.
3141 # In particular we don't look at `^make:' because GNU make might
3142 # be invoked under some other name (usually "gmake"), in which
3143 # case it prints its new name instead of `make'.
3144 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3145    am__include=include
3146    am__quote=
3147    _am_result=GNU
3148 fi
3149 # Now try BSD make style include.
3150 if test "$am__include" = "#"; then
3151    echo '.include "confinc"' > confmf
3152    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3153       am__include=.include
3154       am__quote="\""
3155       _am_result=BSD
3156    fi
3157 fi
3158
3159
3160 echo "$as_me:$LINENO: result: $_am_result" >&5
3161 echo "${ECHO_T}$_am_result" >&6
3162 rm -f confinc confmf
3163
3164 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3165 if test "${enable_dependency_tracking+set}" = set; then
3166   enableval="$enable_dependency_tracking"
3167
3168 fi;
3169 if test "x$enable_dependency_tracking" != xno; then
3170   am_depcomp="$ac_aux_dir/depcomp"
3171   AMDEPBACKSLASH='\'
3172 fi
3173
3174
3175 if test "x$enable_dependency_tracking" != xno; then
3176   AMDEP_TRUE=
3177   AMDEP_FALSE='#'
3178 else
3179   AMDEP_TRUE='#'
3180   AMDEP_FALSE=
3181 fi
3182
3183
3184
3185
3186 depcc="$CC"   am_compiler_list=
3187
3188 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3189 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3190 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3191   echo $ECHO_N "(cached) $ECHO_C" >&6
3192 else
3193   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3194   # We make a subdir and do the tests there.  Otherwise we can end up
3195   # making bogus files that we don't know about and never remove.  For
3196   # instance it was reported that on HP-UX the gcc test will end up
3197   # making a dummy file named `D' -- because `-MD' means `put the output
3198   # in D'.
3199   mkdir conftest.dir
3200   # Copy depcomp to subdir because otherwise we won't find it if we're
3201   # using a relative directory.
3202   cp "$am_depcomp" conftest.dir
3203   cd conftest.dir
3204   # We will build objects and dependencies in a subdirectory because
3205   # it helps to detect inapplicable dependency modes.  For instance
3206   # both Tru64's cc and ICC support -MD to output dependencies as a
3207   # side effect of compilation, but ICC will put the dependencies in
3208   # the current directory while Tru64 will put them in the object
3209   # directory.
3210   mkdir sub
3211
3212   am_cv_CC_dependencies_compiler_type=none
3213   if test "$am_compiler_list" = ""; then
3214      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3215   fi
3216   for depmode in $am_compiler_list; do
3217     # Setup a source with many dependencies, because some compilers
3218     # like to wrap large dependency lists on column 80 (with \), and
3219     # we should not choose a depcomp mode which is confused by this.
3220     #
3221     # We need to recreate these files for each test, as the compiler may
3222     # overwrite some of them when testing with obscure command lines.
3223     # This happens at least with the AIX C compiler.
3224     : > sub/conftest.c
3225     for i in 1 2 3 4 5 6; do
3226       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3227       : > sub/conftst$i.h
3228     done
3229     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3230
3231     case $depmode in
3232     nosideeffect)
3233       # after this tag, mechanisms are not by side-effect, so they'll
3234       # only be used when explicitly requested
3235       if test "x$enable_dependency_tracking" = xyes; then
3236         continue
3237       else
3238         break
3239       fi
3240       ;;
3241     none) break ;;
3242     esac
3243     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3244     # mode.  It turns out that the SunPro C++ compiler does not properly
3245     # handle `-M -o', and we need to detect this.
3246     if depmode=$depmode \
3247        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3248        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3249        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3250          >/dev/null 2>conftest.err &&
3251        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3252        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3253        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3254       # icc doesn't choke on unknown options, it will just issue warnings
3255       # (even with -Werror).  So we grep stderr for any message
3256       # that says an option was ignored.
3257       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3258         am_cv_CC_dependencies_compiler_type=$depmode
3259         break
3260       fi
3261     fi
3262   done
3263
3264   cd ..
3265   rm -rf conftest.dir
3266 else
3267   am_cv_CC_dependencies_compiler_type=none
3268 fi
3269
3270 fi
3271 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3272 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3273 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3274
3275
3276
3277 if
3278   test "x$enable_dependency_tracking" != xno \
3279   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3280   am__fastdepCC_TRUE=
3281   am__fastdepCC_FALSE='#'
3282 else
3283   am__fastdepCC_TRUE='#'
3284   am__fastdepCC_FALSE=
3285 fi
3286
3287
3288
3289 ac_ext=c
3290 ac_cpp='$CPP $CPPFLAGS'
3291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3295 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3296 # On Suns, sometimes $CPP names a directory.
3297 if test -n "$CPP" && test -d "$CPP"; then
3298   CPP=
3299 fi
3300 if test -z "$CPP"; then
3301   if test "${ac_cv_prog_CPP+set}" = set; then
3302   echo $ECHO_N "(cached) $ECHO_C" >&6
3303 else
3304       # Double quotes because CPP needs to be expanded
3305     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3306     do
3307       ac_preproc_ok=false
3308 for ac_c_preproc_warn_flag in '' yes
3309 do
3310   # Use a header file that comes with gcc, so configuring glibc
3311   # with a fresh cross-compiler works.
3312   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3313   # <limits.h> exists even on freestanding compilers.
3314   # On the NeXT, cc -E runs the code through the compiler's parser,
3315   # not just through cpp. "Syntax error" is here to catch this case.
3316   cat >conftest.$ac_ext <<_ACEOF
3317 /* confdefs.h.  */
3318 _ACEOF
3319 cat confdefs.h >>conftest.$ac_ext
3320 cat >>conftest.$ac_ext <<_ACEOF
3321 /* end confdefs.h.  */
3322 #ifdef __STDC__
3323 # include <limits.h>
3324 #else
3325 # include <assert.h>
3326 #endif
3327                      Syntax error
3328 _ACEOF
3329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3330   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3331   ac_status=$?
3332   grep -v '^ *+' conftest.er1 >conftest.err
3333   rm -f conftest.er1
3334   cat conftest.err >&5
3335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336   (exit $ac_status); } >/dev/null; then
3337   if test -s conftest.err; then
3338     ac_cpp_err=$ac_c_preproc_warn_flag
3339     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3340   else
3341     ac_cpp_err=
3342   fi
3343 else
3344   ac_cpp_err=yes
3345 fi
3346 if test -z "$ac_cpp_err"; then
3347   :
3348 else
3349   echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3351
3352   # Broken: fails on valid input.
3353 continue
3354 fi
3355 rm -f conftest.err conftest.$ac_ext
3356
3357   # OK, works on sane cases.  Now check whether non-existent headers
3358   # can be detected and how.
3359   cat >conftest.$ac_ext <<_ACEOF
3360 /* confdefs.h.  */
3361 _ACEOF
3362 cat confdefs.h >>conftest.$ac_ext
3363 cat >>conftest.$ac_ext <<_ACEOF
3364 /* end confdefs.h.  */
3365 #include <ac_nonexistent.h>
3366 _ACEOF
3367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3368   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3369   ac_status=$?
3370   grep -v '^ *+' conftest.er1 >conftest.err
3371   rm -f conftest.er1
3372   cat conftest.err >&5
3373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374   (exit $ac_status); } >/dev/null; then
3375   if test -s conftest.err; then
3376     ac_cpp_err=$ac_c_preproc_warn_flag
3377     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3378   else
3379     ac_cpp_err=
3380   fi
3381 else
3382   ac_cpp_err=yes
3383 fi
3384 if test -z "$ac_cpp_err"; then
3385   # Broken: success on invalid input.
3386 continue
3387 else
3388   echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3390
3391   # Passes both tests.
3392 ac_preproc_ok=:
3393 break
3394 fi
3395 rm -f conftest.err conftest.$ac_ext
3396
3397 done
3398 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3399 rm -f conftest.err conftest.$ac_ext
3400 if $ac_preproc_ok; then
3401   break
3402 fi
3403
3404     done
3405     ac_cv_prog_CPP=$CPP
3406
3407 fi
3408   CPP=$ac_cv_prog_CPP
3409 else
3410   ac_cv_prog_CPP=$CPP
3411 fi
3412 echo "$as_me:$LINENO: result: $CPP" >&5
3413 echo "${ECHO_T}$CPP" >&6
3414 ac_preproc_ok=false
3415 for ac_c_preproc_warn_flag in '' yes
3416 do
3417   # Use a header file that comes with gcc, so configuring glibc
3418   # with a fresh cross-compiler works.
3419   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3420   # <limits.h> exists even on freestanding compilers.
3421   # On the NeXT, cc -E runs the code through the compiler's parser,
3422   # not just through cpp. "Syntax error" is here to catch this case.
3423   cat >conftest.$ac_ext <<_ACEOF
3424 /* confdefs.h.  */
3425 _ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h.  */
3429 #ifdef __STDC__
3430 # include <limits.h>
3431 #else
3432 # include <assert.h>
3433 #endif
3434                      Syntax error
3435 _ACEOF
3436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3437   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3438   ac_status=$?
3439   grep -v '^ *+' conftest.er1 >conftest.err
3440   rm -f conftest.er1
3441   cat conftest.err >&5
3442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443   (exit $ac_status); } >/dev/null; then
3444   if test -s conftest.err; then
3445     ac_cpp_err=$ac_c_preproc_warn_flag
3446     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3447   else
3448     ac_cpp_err=
3449   fi
3450 else
3451   ac_cpp_err=yes
3452 fi
3453 if test -z "$ac_cpp_err"; then
3454   :
3455 else
3456   echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3458
3459   # Broken: fails on valid input.
3460 continue
3461 fi
3462 rm -f conftest.err conftest.$ac_ext
3463
3464   # OK, works on sane cases.  Now check whether non-existent headers
3465   # can be detected and how.
3466   cat >conftest.$ac_ext <<_ACEOF
3467 /* confdefs.h.  */
3468 _ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h.  */
3472 #include <ac_nonexistent.h>
3473 _ACEOF
3474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3475   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3476   ac_status=$?
3477   grep -v '^ *+' conftest.er1 >conftest.err
3478   rm -f conftest.er1
3479   cat conftest.err >&5
3480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481   (exit $ac_status); } >/dev/null; then
3482   if test -s conftest.err; then
3483     ac_cpp_err=$ac_c_preproc_warn_flag
3484     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3485   else
3486     ac_cpp_err=
3487   fi
3488 else
3489   ac_cpp_err=yes
3490 fi
3491 if test -z "$ac_cpp_err"; then
3492   # Broken: success on invalid input.
3493 continue
3494 else
3495   echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3497
3498   # Passes both tests.
3499 ac_preproc_ok=:
3500 break
3501 fi
3502 rm -f conftest.err conftest.$ac_ext
3503
3504 done
3505 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3506 rm -f conftest.err conftest.$ac_ext
3507 if $ac_preproc_ok; then
3508   :
3509 else
3510   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3511 See \`config.log' for more details." >&5
3512 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3513 See \`config.log' for more details." >&2;}
3514    { (exit 1); exit 1; }; }
3515 fi
3516
3517 ac_ext=c
3518 ac_cpp='$CPP $CPPFLAGS'
3519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3522
3523
3524 echo "$as_me:$LINENO: checking for egrep" >&5
3525 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3526 if test "${ac_cv_prog_egrep+set}" = set; then
3527   echo $ECHO_N "(cached) $ECHO_C" >&6
3528 else
3529   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3530     then ac_cv_prog_egrep='grep -E'
3531     else ac_cv_prog_egrep='egrep'
3532     fi
3533 fi
3534 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3535 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3536  EGREP=$ac_cv_prog_egrep
3537
3538
3539 if test $ac_cv_c_compiler_gnu = yes; then
3540     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3541 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3542 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3543   echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545     ac_pattern="Autoconf.*'x'"
3546   cat >conftest.$ac_ext <<_ACEOF
3547 /* confdefs.h.  */
3548 _ACEOF
3549 cat confdefs.h >>conftest.$ac_ext
3550 cat >>conftest.$ac_ext <<_ACEOF
3551 /* end confdefs.h.  */
3552 #include <sgtty.h>
3553 Autoconf TIOCGETP
3554 _ACEOF
3555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3556   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3557   ac_cv_prog_gcc_traditional=yes
3558 else
3559   ac_cv_prog_gcc_traditional=no
3560 fi
3561 rm -f conftest*
3562
3563
3564   if test $ac_cv_prog_gcc_traditional = no; then
3565     cat >conftest.$ac_ext <<_ACEOF
3566 /* confdefs.h.  */
3567 _ACEOF
3568 cat confdefs.h >>conftest.$ac_ext
3569 cat >>conftest.$ac_ext <<_ACEOF
3570 /* end confdefs.h.  */
3571 #include <termio.h>
3572 Autoconf TCGETA
3573 _ACEOF
3574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3575   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3576   ac_cv_prog_gcc_traditional=yes
3577 fi
3578 rm -f conftest*
3579
3580   fi
3581 fi
3582 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3583 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3584   if test $ac_cv_prog_gcc_traditional = yes; then
3585     CC="$CC -traditional"
3586   fi
3587 fi
3588
3589 # Find a good install program.  We prefer a C program (faster),
3590 # so one script is as good as another.  But avoid the broken or
3591 # incompatible versions:
3592 # SysV /etc/install, /usr/sbin/install
3593 # SunOS /usr/etc/install
3594 # IRIX /sbin/install
3595 # AIX /bin/install
3596 # AmigaOS /C/install, which installs bootblocks on floppy discs
3597 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3598 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3599 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3600 # OS/2's system install, which has a completely different semantic
3601 # ./install, which can be erroneously created by make from ./install.sh.
3602 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3603 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3604 if test -z "$INSTALL"; then
3605 if test "${ac_cv_path_install+set}" = set; then
3606   echo $ECHO_N "(cached) $ECHO_C" >&6
3607 else
3608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 for as_dir in $PATH
3610 do
3611   IFS=$as_save_IFS
3612   test -z "$as_dir" && as_dir=.
3613   # Account for people who put trailing slashes in PATH elements.
3614 case $as_dir/ in
3615   ./ | .// | /cC/* | \
3616   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3617   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3618   /usr/ucb/* ) ;;
3619   *)
3620     # OSF1 and SCO ODT 3.0 have their own names for install.
3621     # Don't use installbsd from OSF since it installs stuff as root
3622     # by default.
3623     for ac_prog in ginstall scoinst install; do
3624       for ac_exec_ext in '' $ac_executable_extensions; do
3625         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3626           if test $ac_prog = install &&
3627             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3628             # AIX install.  It has an incompatible calling convention.
3629             :
3630           elif test $ac_prog = install &&
3631             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3632             # program-specific install script used by HP pwplus--don't use.
3633             :
3634           else
3635             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3636             break 3
3637           fi
3638         fi
3639       done
3640     done
3641     ;;
3642 esac
3643 done
3644
3645
3646 fi
3647   if test "${ac_cv_path_install+set}" = set; then
3648     INSTALL=$ac_cv_path_install
3649   else
3650     # As a last resort, use the slow shell script.  We don't cache a
3651     # path for INSTALL within a source directory, because that will
3652     # break other packages using the cache if that directory is
3653     # removed, or if the path is relative.
3654     INSTALL=$ac_install_sh
3655   fi
3656 fi
3657 echo "$as_me:$LINENO: result: $INSTALL" >&5
3658 echo "${ECHO_T}$INSTALL" >&6
3659
3660 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3661 # It thinks the first close brace ends the variable substitution.
3662 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3663
3664 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3665
3666 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3667
3668 for ac_prog in gawk mawk nawk awk
3669 do
3670   # Extract the first word of "$ac_prog", so it can be a program name with args.
3671 set dummy $ac_prog; ac_word=$2
3672 echo "$as_me:$LINENO: checking for $ac_word" >&5
3673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3674 if test "${ac_cv_prog_AWK+set}" = set; then
3675   echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677   if test -n "$AWK"; then
3678   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3679 else
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in $PATH
3682 do
3683   IFS=$as_save_IFS
3684   test -z "$as_dir" && as_dir=.
3685   for ac_exec_ext in '' $ac_executable_extensions; do
3686   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3687     ac_cv_prog_AWK="$ac_prog"
3688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3689     break 2
3690   fi
3691 done
3692 done
3693
3694 fi
3695 fi
3696 AWK=$ac_cv_prog_AWK
3697 if test -n "$AWK"; then
3698   echo "$as_me:$LINENO: result: $AWK" >&5
3699 echo "${ECHO_T}$AWK" >&6
3700 else
3701   echo "$as_me:$LINENO: result: no" >&5
3702 echo "${ECHO_T}no" >&6
3703 fi
3704
3705   test -n "$AWK" && break
3706 done
3707
3708 if test -n "$ac_tool_prefix"; then
3709   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3710 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3711 echo "$as_me:$LINENO: checking for $ac_word" >&5
3712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3713 if test "${ac_cv_prog_RANLIB+set}" = set; then
3714   echo $ECHO_N "(cached) $ECHO_C" >&6
3715 else
3716   if test -n "$RANLIB"; then
3717   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3718 else
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 for as_dir in $PATH
3721 do
3722   IFS=$as_save_IFS
3723   test -z "$as_dir" && as_dir=.
3724   for ac_exec_ext in '' $ac_executable_extensions; do
3725   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3726     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3728     break 2
3729   fi
3730 done
3731 done
3732
3733 fi
3734 fi
3735 RANLIB=$ac_cv_prog_RANLIB
3736 if test -n "$RANLIB"; then
3737   echo "$as_me:$LINENO: result: $RANLIB" >&5
3738 echo "${ECHO_T}$RANLIB" >&6
3739 else
3740   echo "$as_me:$LINENO: result: no" >&5
3741 echo "${ECHO_T}no" >&6
3742 fi
3743
3744 fi
3745 if test -z "$ac_cv_prog_RANLIB"; then
3746   ac_ct_RANLIB=$RANLIB
3747   # Extract the first word of "ranlib", so it can be a program name with args.
3748 set dummy ranlib; ac_word=$2
3749 echo "$as_me:$LINENO: checking for $ac_word" >&5
3750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3751 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3752   echo $ECHO_N "(cached) $ECHO_C" >&6
3753 else
3754   if test -n "$ac_ct_RANLIB"; then
3755   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3756 else
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758 for as_dir in $PATH
3759 do
3760   IFS=$as_save_IFS
3761   test -z "$as_dir" && as_dir=.
3762   for ac_exec_ext in '' $ac_executable_extensions; do
3763   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3764     ac_cv_prog_ac_ct_RANLIB="ranlib"
3765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3766     break 2
3767   fi
3768 done
3769 done
3770
3771   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3772 fi
3773 fi
3774 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3775 if test -n "$ac_ct_RANLIB"; then
3776   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3777 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3778 else
3779   echo "$as_me:$LINENO: result: no" >&5
3780 echo "${ECHO_T}no" >&6
3781 fi
3782
3783   RANLIB=$ac_ct_RANLIB
3784 else
3785   RANLIB="$ac_cv_prog_RANLIB"
3786 fi
3787
3788 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3789 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3790 LN_S=$as_ln_s
3791 if test "$LN_S" = "ln -s"; then
3792   echo "$as_me:$LINENO: result: yes" >&5
3793 echo "${ECHO_T}yes" >&6
3794 else
3795   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3796 echo "${ECHO_T}no, using $LN_S" >&6
3797 fi
3798
3799 echo "$as_me:$LINENO: checking whether -rdynamic option is recognized" >&5
3800 echo $ECHO_N "checking whether -rdynamic option is recognized... $ECHO_C" >&6
3801 ac_ccoption=`echo rdynamic | sed 'y%./+-%__p_%'`
3802 if eval "test \"\${timidity_cv_ccoption_$ac_ccoption+set}\" = set"; then
3803   echo $ECHO_N "(cached) $ECHO_C" >&6
3804 else
3805   cat > conftest.$ac_ext <<EOF
3806 int main() {return 0;}
3807 EOF
3808 if ${CC-cc} $LDFLAGS $CFLAGS -o conftest${ac_exeext} -rdynamic conftest.$ac_ext > conftest.out 2>&1; then
3809     if test -s conftest.out; then
3810         eval "timidity_cv_ccoption_$ac_ccoption=no"
3811     else
3812         eval "timidity_cv_ccoption_$ac_ccoption=yes"
3813     fi
3814 else
3815     eval "timidity_cv_ccoption_$ac_ccoption=no"
3816 fi
3817
3818 fi
3819
3820 if eval "test \"`echo '$timidity_cv_ccoption_'$ac_ccoption`\" = yes"; then
3821   echo "$as_me:$LINENO: result: yes" >&5
3822 echo "${ECHO_T}yes" >&6
3823
3824 else
3825   echo "$as_me:$LINENO: result: no" >&5
3826 echo "${ECHO_T}no" >&6
3827
3828 fi
3829
3830
3831 # Checks for target dependencies
3832
3833
3834 # Check whether --with-elf or --without-elf was given.
3835 if test "${with_elf+set}" = set; then
3836   withval="$with_elf"
3837    ELFFORMAT=$withval
3838 else
3839    ELFFORMAT="yes"
3840 fi;
3841
3842 # AC_ARG_WITH(simd,
3843 #  [  --with-simd             create SIMD friendly binary (default is no) ],
3844 #  [ SIMD=$withval ], [ SIMD="no" ])
3845
3846 case "$target" in
3847   *-*-hpux*)
3848     EXTRADEFS="-DHPUX"
3849     test -n "$SHLD" || SHLD="ld -b"
3850     so="sl"
3851     ;;
3852   *-sgi-irix*)
3853         case ".$CC" in .cc*) EXTRACFLAGS="-signed";; esac
3854     test -n "$SHLD" || SHLD="cc -shared -all"
3855     so="so"
3856     ;;
3857   *-*-netbsd*)
3858     test -n "$SHLD" || SHLD="$CC -shared -nostartfiles"
3859     so="so"
3860     ;;
3861
3862   *-*-freebsd2*)
3863         test -n "$SHLD" || SHLD="ld -Bshareable"
3864     so="so"
3865     ;;
3866   *-*-freebsd*)
3867     if test "$ELFFORMAT" = yes; then
3868         test -n "$SHLD" || SHLD="ld -Bshareable"
3869     else
3870         SHCFLAGS=-aou
3871         SHLDFLAGS="-L/usr/X11R6/lib/aout $SHLDFLAGS"
3872         test -n "$SHLD" || SHLD="env OBJFORMAT=aout ld -shared"
3873     fi
3874         so="so"
3875     ;;
3876
3877 #  *-*-freebsd*)
3878 #    EXTRALIBS="$EXTRALIBS -lxpg4"
3879 #    test -n "$SHLD" || SHLD="ld -Bshareable"
3880 #    so="so"
3881 #  ;;
3882
3883   *-*-cygwin*)
3884     EXTRADEFS="-D__W32__"
3885     # ??
3886     case "x${CC} " in
3887       "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3888       "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3889       "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3890       *) test -n "$SHLD" || SHLD="unknown" ;;
3891     esac
3892     so="dll"
3893     CYGNUS=yes
3894     lib_user32_test=-luser32
3895     ;;
3896   *-*-mingw*)
3897     EXTRADEFS="-D__W32__"
3898     # ??
3899     case "x${CC} " in
3900       "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
3901       "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
3902       "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3903       *) test -n "$SHLD" || SHLD="unknown" ;;
3904     esac
3905     so="dll"
3906     MINGW=yes
3907     lib_user32_test=-luser32
3908     ;;
3909   *-dec-*)
3910     EXTRADEFS="-DDEC"
3911     test -n "$SHLD" || SHLD="ld -Bdynamic -G"
3912     so="so"
3913     ;;
3914   *-*-solaris*)
3915     EXTRADEFS="-DSOLARIS"
3916     test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3917     so="so"
3918     ;;
3919   *-*-nextstep*)
3920     test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3921     so="so"
3922     ;;
3923   *-*-darwin*)
3924     if test "x$SIMD" = "xyes"; then
3925
3926 cat >>confdefs.h <<\_ACEOF
3927 #define USE_ALTIVEC 1
3928 _ACEOF
3929
3930        # EXTRACFLAGS="$EXTRACFLAGS -faltivec -mabi=altivec -maltivec" # for GCC3.
3931        EXTRACFLAGS="$EXTRACFLAGS -faltivec"
3932     else
3933
3934 cat >>confdefs.h <<\_ACEOF
3935 #define USE_ALTIVEC 0
3936 _ACEOF
3937
3938     fi
3939     CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
3940     LDOPTS="-dynamic -undefined suppress -flat_namespace $LDOPTS"
3941     test -n "$SHLD" || SHLD="$CC -dynamic -bundle -undefined suppress -flat_namespace $LDFLAGS"
3942     so="bundle"
3943     ;;
3944   *)
3945     test -n "$SHLD" || \
3946       if test "x$GCC" = xyes; then
3947         SHLD="$CC -shared"
3948       else
3949         SHLD="ld -Bdynamic -G"
3950       fi
3951     so="so"
3952     ;;
3953 esac
3954
3955
3956 # Checks for libraries.
3957
3958 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
3959 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
3960 if test "${ac_cv_lib_m_sqrt+set}" = set; then
3961   echo $ECHO_N "(cached) $ECHO_C" >&6
3962 else
3963   ac_check_lib_save_LIBS=$LIBS
3964 LIBS="-lm  $LIBS"
3965 cat >conftest.$ac_ext <<_ACEOF
3966 /* confdefs.h.  */
3967 _ACEOF
3968 cat confdefs.h >>conftest.$ac_ext
3969 cat >>conftest.$ac_ext <<_ACEOF
3970 /* end confdefs.h.  */
3971
3972 /* Override any gcc2 internal prototype to avoid an error.  */
3973 #ifdef __cplusplus
3974 extern "C"
3975 #endif
3976 /* We use char because int might match the return type of a gcc2
3977    builtin and then its argument prototype would still apply.  */
3978 char sqrt ();
3979 int
3980 main ()
3981 {
3982 sqrt ();
3983   ;
3984   return 0;
3985 }
3986 _ACEOF
3987 rm -f conftest.$ac_objext conftest$ac_exeext
3988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3989   (eval $ac_link) 2>conftest.er1
3990   ac_status=$?
3991   grep -v '^ *+' conftest.er1 >conftest.err
3992   rm -f conftest.er1
3993   cat conftest.err >&5
3994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995   (exit $ac_status); } &&
3996          { ac_try='test -z "$ac_c_werror_flag"
3997                          || test ! -s conftest.err'
3998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999   (eval $ac_try) 2>&5
4000   ac_status=$?
4001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002   (exit $ac_status); }; } &&
4003          { ac_try='test -s conftest$ac_exeext'
4004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005   (eval $ac_try) 2>&5
4006   ac_status=$?
4007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008   (exit $ac_status); }; }; then
4009   ac_cv_lib_m_sqrt=yes
4010 else
4011   echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.$ac_ext >&5
4013
4014 ac_cv_lib_m_sqrt=no
4015 fi
4016 rm -f conftest.err conftest.$ac_objext \
4017       conftest$ac_exeext conftest.$ac_ext
4018 LIBS=$ac_check_lib_save_LIBS
4019 fi
4020 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4021 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4022 if test $ac_cv_lib_m_sqrt = yes; then
4023   cat >>confdefs.h <<_ACEOF
4024 #define HAVE_LIBM 1
4025 _ACEOF
4026
4027   LIBS="-lm $LIBS"
4028
4029 fi
4030
4031
4032 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4033 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4034 if test "${ac_cv_lib_socket_socket+set}" = set; then
4035   echo $ECHO_N "(cached) $ECHO_C" >&6
4036 else
4037   ac_check_lib_save_LIBS=$LIBS
4038 LIBS="-lsocket  $LIBS"
4039 cat >conftest.$ac_ext <<_ACEOF
4040 /* confdefs.h.  */
4041 _ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h.  */
4045
4046 /* Override any gcc2 internal prototype to avoid an error.  */
4047 #ifdef __cplusplus
4048 extern "C"
4049 #endif
4050 /* We use char because int might match the return type of a gcc2
4051    builtin and then its argument prototype would still apply.  */
4052 char socket ();
4053 int
4054 main ()
4055 {
4056 socket ();
4057   ;
4058   return 0;
4059 }
4060 _ACEOF
4061 rm -f conftest.$ac_objext conftest$ac_exeext
4062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4063   (eval $ac_link) 2>conftest.er1
4064   ac_status=$?
4065   grep -v '^ *+' conftest.er1 >conftest.err
4066   rm -f conftest.er1
4067   cat conftest.err >&5
4068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069   (exit $ac_status); } &&
4070          { ac_try='test -z "$ac_c_werror_flag"
4071                          || test ! -s conftest.err'
4072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073   (eval $ac_try) 2>&5
4074   ac_status=$?
4075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076   (exit $ac_status); }; } &&
4077          { ac_try='test -s conftest$ac_exeext'
4078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079   (eval $ac_try) 2>&5
4080   ac_status=$?
4081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082   (exit $ac_status); }; }; then
4083   ac_cv_lib_socket_socket=yes
4084 else
4085   echo "$as_me: failed program was:" >&5
4086 sed 's/^/| /' conftest.$ac_ext >&5
4087
4088 ac_cv_lib_socket_socket=no
4089 fi
4090 rm -f conftest.err conftest.$ac_objext \
4091       conftest$ac_exeext conftest.$ac_ext
4092 LIBS=$ac_check_lib_save_LIBS
4093 fi
4094 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4095 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4096 if test $ac_cv_lib_socket_socket = yes; then
4097   cat >>confdefs.h <<_ACEOF
4098 #define HAVE_LIBSOCKET 1
4099 _ACEOF
4100
4101   LIBS="-lsocket $LIBS"
4102
4103 fi
4104
4105 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4106 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4107 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4108   echo $ECHO_N "(cached) $ECHO_C" >&6
4109 else
4110   ac_check_lib_save_LIBS=$LIBS
4111 LIBS="-ldl  $LIBS"
4112 cat >conftest.$ac_ext <<_ACEOF
4113 /* confdefs.h.  */
4114 _ACEOF
4115 cat confdefs.h >>conftest.$ac_ext
4116 cat >>conftest.$ac_ext <<_ACEOF
4117 /* end confdefs.h.  */
4118
4119 /* Override any gcc2 internal prototype to avoid an error.  */
4120 #ifdef __cplusplus
4121 extern "C"
4122 #endif
4123 /* We use char because int might match the return type of a gcc2
4124    builtin and then its argument prototype would still apply.  */
4125 char dlopen ();
4126 int
4127 main ()
4128 {
4129 dlopen ();
4130   ;
4131   return 0;
4132 }
4133 _ACEOF
4134 rm -f conftest.$ac_objext conftest$ac_exeext
4135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4136   (eval $ac_link) 2>conftest.er1
4137   ac_status=$?
4138   grep -v '^ *+' conftest.er1 >conftest.err
4139   rm -f conftest.er1
4140   cat conftest.err >&5
4141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142   (exit $ac_status); } &&
4143          { ac_try='test -z "$ac_c_werror_flag"
4144                          || test ! -s conftest.err'
4145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4146   (eval $ac_try) 2>&5
4147   ac_status=$?
4148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149   (exit $ac_status); }; } &&
4150          { ac_try='test -s conftest$ac_exeext'
4151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4152   (eval $ac_try) 2>&5
4153   ac_status=$?
4154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155   (exit $ac_status); }; }; then
4156   ac_cv_lib_dl_dlopen=yes
4157 else
4158   echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4160
4161 ac_cv_lib_dl_dlopen=no
4162 fi
4163 rm -f conftest.err conftest.$ac_objext \
4164       conftest$ac_exeext conftest.$ac_ext
4165 LIBS=$ac_check_lib_save_LIBS
4166 fi
4167 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4168 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4169 if test $ac_cv_lib_dl_dlopen = yes; then
4170   lib_dl_opt=-ldl
4171 fi
4172
4173 echo "$as_me:$LINENO: checking for NSLinkModule in -lobjc" >&5
4174 echo $ECHO_N "checking for NSLinkModule in -lobjc... $ECHO_C" >&6
4175 if test "${ac_cv_lib_objc_NSLinkModule+set}" = set; then
4176   echo $ECHO_N "(cached) $ECHO_C" >&6
4177 else
4178   ac_check_lib_save_LIBS=$LIBS
4179 LIBS="-lobjc  $LIBS"
4180 cat >conftest.$ac_ext <<_ACEOF
4181 /* confdefs.h.  */
4182 _ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h.  */
4186
4187 /* Override any gcc2 internal prototype to avoid an error.  */
4188 #ifdef __cplusplus
4189 extern "C"
4190 #endif
4191 /* We use char because int might match the return type of a gcc2
4192    builtin and then its argument prototype would still apply.  */
4193 char NSLinkModule ();
4194 int
4195 main ()
4196 {
4197 NSLinkModule ();
4198   ;
4199   return 0;
4200 }
4201 _ACEOF
4202 rm -f conftest.$ac_objext conftest$ac_exeext
4203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4204   (eval $ac_link) 2>conftest.er1
4205   ac_status=$?
4206   grep -v '^ *+' conftest.er1 >conftest.err
4207   rm -f conftest.er1
4208   cat conftest.err >&5
4209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210   (exit $ac_status); } &&
4211          { ac_try='test -z "$ac_c_werror_flag"
4212                          || test ! -s conftest.err'
4213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214   (eval $ac_try) 2>&5
4215   ac_status=$?
4216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217   (exit $ac_status); }; } &&
4218          { ac_try='test -s conftest$ac_exeext'
4219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220   (eval $ac_try) 2>&5
4221   ac_status=$?
4222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223   (exit $ac_status); }; }; then
4224   ac_cv_lib_objc_NSLinkModule=yes
4225 else
4226   echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.$ac_ext >&5
4228
4229 ac_cv_lib_objc_NSLinkModule=no
4230 fi
4231 rm -f conftest.err conftest.$ac_objext \
4232       conftest$ac_exeext conftest.$ac_ext
4233 LIBS=$ac_check_lib_save_LIBS
4234 fi
4235 echo "$as_me:$LINENO: result: $ac_cv_lib_objc_NSLinkModule" >&5
4236 echo "${ECHO_T}$ac_cv_lib_objc_NSLinkModule" >&6
4237 if test $ac_cv_lib_objc_NSLinkModule = yes; then
4238   lib_dl_opt=-lobjc
4239 fi
4240  # Mac OS X need this.
4241
4242 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
4243 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
4244 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
4245   echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247   ac_check_lib_save_LIBS=$LIBS
4248 LIBS="-lxpg4  $LIBS"
4249 cat >conftest.$ac_ext <<_ACEOF
4250 /* confdefs.h.  */
4251 _ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h.  */
4255
4256 /* Override any gcc2 internal prototype to avoid an error.  */
4257 #ifdef __cplusplus
4258 extern "C"
4259 #endif
4260 /* We use char because int might match the return type of a gcc2
4261    builtin and then its argument prototype would still apply.  */
4262 char setlocale ();
4263 int
4264 main ()
4265 {
4266 setlocale ();
4267   ;
4268   return 0;
4269 }
4270 _ACEOF
4271 rm -f conftest.$ac_objext conftest$ac_exeext
4272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4273   (eval $ac_link) 2>conftest.er1
4274   ac_status=$?
4275   grep -v '^ *+' conftest.er1 >conftest.err
4276   rm -f conftest.er1
4277   cat conftest.err >&5
4278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279   (exit $ac_status); } &&
4280          { ac_try='test -z "$ac_c_werror_flag"
4281                          || test ! -s conftest.err'
4282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283   (eval $ac_try) 2>&5
4284   ac_status=$?
4285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286   (exit $ac_status); }; } &&
4287          { ac_try='test -s conftest$ac_exeext'
4288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4289   (eval $ac_try) 2>&5
4290   ac_status=$?
4291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292   (exit $ac_status); }; }; then
4293   ac_cv_lib_xpg4_setlocale=yes
4294 else
4295   echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4297
4298 ac_cv_lib_xpg4_setlocale=no
4299 fi
4300 rm -f conftest.err conftest.$ac_objext \
4301       conftest$ac_exeext conftest.$ac_ext
4302 LIBS=$ac_check_lib_save_LIBS
4303 fi
4304 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
4305 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
4306 if test $ac_cv_lib_xpg4_setlocale = yes; then
4307   cat >>confdefs.h <<_ACEOF
4308 #define HAVE_LIBXPG4 1
4309 _ACEOF
4310
4311   LIBS="-lxpg4 $LIBS"
4312
4313 fi
4314  # Mac OS X (and maybe NetBSD) need this.
4315
4316 for ac_func in gethostbyname
4317 do
4318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4319 echo "$as_me:$LINENO: checking for $ac_func" >&5
4320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4321 if eval "test \"\${$as_ac_var+set}\" = set"; then
4322   echo $ECHO_N "(cached) $ECHO_C" >&6
4323 else
4324   cat >conftest.$ac_ext <<_ACEOF
4325 /* confdefs.h.  */
4326 _ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h.  */
4330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4331    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4332 #define $ac_func innocuous_$ac_func
4333
4334 /* System header to define __stub macros and hopefully few prototypes,
4335     which can conflict with char $ac_func (); below.
4336     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4337     <limits.h> exists even on freestanding compilers.  */
4338
4339 #ifdef __STDC__
4340 # include <limits.h>
4341 #else
4342 # include <assert.h>
4343 #endif
4344
4345 #undef $ac_func
4346
4347 /* Override any gcc2 internal prototype to avoid an error.  */
4348 #ifdef __cplusplus
4349 extern "C"
4350 {
4351 #endif
4352 /* We use char because int might match the return type of a gcc2
4353    builtin and then its argument prototype would still apply.  */
4354 char $ac_func ();
4355 /* The GNU C library defines this for functions which it implements
4356     to always fail with ENOSYS.  Some functions are actually named
4357     something starting with __ and the normal name is an alias.  */
4358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4359 choke me
4360 #else
4361 char (*f) () = $ac_func;
4362 #endif
4363 #ifdef __cplusplus
4364 }
4365 #endif
4366
4367 int
4368 main ()
4369 {
4370 return f != $ac_func;
4371   ;
4372   return 0;
4373 }
4374 _ACEOF
4375 rm -f conftest.$ac_objext conftest$ac_exeext
4376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4377   (eval $ac_link) 2>conftest.er1
4378   ac_status=$?
4379   grep -v '^ *+' conftest.er1 >conftest.err
4380   rm -f conftest.er1
4381   cat conftest.err >&5
4382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383   (exit $ac_status); } &&
4384          { ac_try='test -z "$ac_c_werror_flag"
4385                          || test ! -s conftest.err'
4386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4387   (eval $ac_try) 2>&5
4388   ac_status=$?
4389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390   (exit $ac_status); }; } &&
4391          { ac_try='test -s conftest$ac_exeext'
4392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393   (eval $ac_try) 2>&5
4394   ac_status=$?
4395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396   (exit $ac_status); }; }; then
4397   eval "$as_ac_var=yes"
4398 else
4399   echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4401
4402 eval "$as_ac_var=no"
4403 fi
4404 rm -f conftest.err conftest.$ac_objext \
4405       conftest$ac_exeext conftest.$ac_ext
4406 fi
4407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4409 if test `eval echo '${'$as_ac_var'}'` = yes; then
4410   cat >>confdefs.h <<_ACEOF
4411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4412 _ACEOF
4413
4414 else
4415
4416 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4417 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4418 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4419   echo $ECHO_N "(cached) $ECHO_C" >&6
4420 else
4421   ac_check_lib_save_LIBS=$LIBS
4422 LIBS="-lnsl  $LIBS"
4423 cat >conftest.$ac_ext <<_ACEOF
4424 /* confdefs.h.  */
4425 _ACEOF
4426 cat confdefs.h >>conftest.$ac_ext
4427 cat >>conftest.$ac_ext <<_ACEOF
4428 /* end confdefs.h.  */
4429
4430 /* Override any gcc2 internal prototype to avoid an error.  */
4431 #ifdef __cplusplus
4432 extern "C"
4433 #endif
4434 /* We use char because int might match the return type of a gcc2
4435    builtin and then its argument prototype would still apply.  */
4436 char gethostbyname ();
4437 int
4438 main ()
4439 {
4440 gethostbyname ();
4441   ;
4442   return 0;
4443 }
4444 _ACEOF
4445 rm -f conftest.$ac_objext conftest$ac_exeext
4446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4447   (eval $ac_link) 2>conftest.er1
4448   ac_status=$?
4449   grep -v '^ *+' conftest.er1 >conftest.err
4450   rm -f conftest.er1
4451   cat conftest.err >&5
4452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453   (exit $ac_status); } &&
4454          { ac_try='test -z "$ac_c_werror_flag"
4455                          || test ! -s conftest.err'
4456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457   (eval $ac_try) 2>&5
4458   ac_status=$?
4459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460   (exit $ac_status); }; } &&
4461          { ac_try='test -s conftest$ac_exeext'
4462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4463   (eval $ac_try) 2>&5
4464   ac_status=$?
4465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466   (exit $ac_status); }; }; then
4467   ac_cv_lib_nsl_gethostbyname=yes
4468 else
4469   echo "$as_me: failed program was:" >&5
4470 sed 's/^/| /' conftest.$ac_ext >&5
4471
4472 ac_cv_lib_nsl_gethostbyname=no
4473 fi
4474 rm -f conftest.err conftest.$ac_objext \
4475       conftest$ac_exeext conftest.$ac_ext
4476 LIBS=$ac_check_lib_save_LIBS
4477 fi
4478 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4479 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4480 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4481   cat >>confdefs.h <<_ACEOF
4482 #define HAVE_LIBNSL 1
4483 _ACEOF
4484
4485   LIBS="-lnsl $LIBS"
4486
4487 fi
4488
4489 fi
4490 done
4491
4492 echo "$as_me:$LINENO: checking for X" >&5
4493 echo $ECHO_N "checking for X... $ECHO_C" >&6
4494
4495
4496 # Check whether --with-x or --without-x was given.
4497 if test "${with_x+set}" = set; then
4498   withval="$with_x"
4499
4500 fi;
4501 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4502 if test "x$with_x" = xno; then
4503   # The user explicitly disabled X.
4504   have_x=disabled
4505 else
4506   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4507     # Both variables are already set.
4508     have_x=yes
4509   else
4510     if test "${ac_cv_have_x+set}" = set; then
4511   echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513   # One or both of the vars are not set, and there is no cached value.
4514 ac_x_includes=no ac_x_libraries=no
4515 rm -fr conftest.dir
4516 if mkdir conftest.dir; then
4517   cd conftest.dir
4518   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4519   cat >Imakefile <<'_ACEOF'
4520 acfindx:
4521         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4522 _ACEOF
4523   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4524     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4525     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4526     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4527     for ac_extension in a so sl; do
4528       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4529          test -f $ac_im_libdir/libX11.$ac_extension; then
4530         ac_im_usrlibdir=$ac_im_libdir; break
4531       fi
4532     done
4533     # Screen out bogus values from the imake configuration.  They are
4534     # bogus both because they are the default anyway, and because
4535     # using them would break gcc on systems where it needs fixed includes.
4536     case $ac_im_incroot in
4537         /usr/include) ;;
4538         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4539     esac
4540     case $ac_im_usrlibdir in
4541         /usr/lib | /lib) ;;
4542         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4543     esac
4544   fi
4545   cd ..
4546   rm -fr conftest.dir
4547 fi
4548
4549 # Standard set of common directories for X headers.
4550 # Check X11 before X11Rn because it is often a symlink to the current release.
4551 ac_x_header_dirs='
4552 /usr/X11/include
4553 /usr/X11R6/include
4554 /usr/X11R5/include
4555 /usr/X11R4/include
4556
4557 /usr/include/X11
4558 /usr/include/X11R6
4559 /usr/include/X11R5
4560 /usr/include/X11R4
4561
4562 /usr/local/X11/include
4563 /usr/local/X11R6/include
4564 /usr/local/X11R5/include
4565 /usr/local/X11R4/include
4566
4567 /usr/local/include/X11
4568 /usr/local/include/X11R6
4569 /usr/local/include/X11R5
4570 /usr/local/include/X11R4
4571
4572 /usr/X386/include
4573 /usr/x386/include
4574 /usr/XFree86/include/X11
4575
4576 /usr/include
4577 /usr/local/include
4578 /usr/unsupported/include
4579 /usr/athena/include
4580 /usr/local/x11r5/include
4581 /usr/lpp/Xamples/include
4582
4583 /usr/openwin/include
4584 /usr/openwin/share/include'
4585
4586 if test "$ac_x_includes" = no; then
4587   # Guess where to find include files, by looking for Intrinsic.h.
4588   # First, try using that file with no special directory specified.
4589   cat >conftest.$ac_ext <<_ACEOF
4590 /* confdefs.h.  */
4591 _ACEOF
4592 cat confdefs.h >>conftest.$ac_ext
4593 cat >>conftest.$ac_ext <<_ACEOF
4594 /* end confdefs.h.  */
4595 #include <X11/Intrinsic.h>
4596 _ACEOF
4597 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4598   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4599   ac_status=$?
4600   grep -v '^ *+' conftest.er1 >conftest.err
4601   rm -f conftest.er1
4602   cat conftest.err >&5
4603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604   (exit $ac_status); } >/dev/null; then
4605   if test -s conftest.err; then
4606     ac_cpp_err=$ac_c_preproc_warn_flag
4607     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4608   else
4609     ac_cpp_err=
4610   fi
4611 else
4612   ac_cpp_err=yes
4613 fi
4614 if test -z "$ac_cpp_err"; then
4615   # We can compile using X headers with no special include directory.
4616 ac_x_includes=
4617 else
4618   echo "$as_me: failed program was:" >&5
4619 sed 's/^/| /' conftest.$ac_ext >&5
4620
4621   for ac_dir in $ac_x_header_dirs; do
4622   if test -r "$ac_dir/X11/Intrinsic.h"; then
4623     ac_x_includes=$ac_dir
4624     break
4625   fi
4626 done
4627 fi
4628 rm -f conftest.err conftest.$ac_ext
4629 fi # $ac_x_includes = no
4630
4631 if test "$ac_x_libraries" = no; then
4632   # Check for the libraries.
4633   # See if we find them without any special options.
4634   # Don't add to $LIBS permanently.
4635   ac_save_LIBS=$LIBS
4636   LIBS="-lXt $LIBS"
4637   cat >conftest.$ac_ext <<_ACEOF
4638 /* confdefs.h.  */
4639 _ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h.  */
4643 #include <X11/Intrinsic.h>
4644 int
4645 main ()
4646 {
4647 XtMalloc (0)
4648   ;
4649   return 0;
4650 }
4651 _ACEOF
4652 rm -f conftest.$ac_objext conftest$ac_exeext
4653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4654   (eval $ac_link) 2>conftest.er1
4655   ac_status=$?
4656   grep -v '^ *+' conftest.er1 >conftest.err
4657   rm -f conftest.er1
4658   cat conftest.err >&5
4659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660   (exit $ac_status); } &&
4661          { ac_try='test -z "$ac_c_werror_flag"
4662                          || test ! -s conftest.err'
4663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4664   (eval $ac_try) 2>&5
4665   ac_status=$?
4666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667   (exit $ac_status); }; } &&
4668          { ac_try='test -s conftest$ac_exeext'
4669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670   (eval $ac_try) 2>&5
4671   ac_status=$?
4672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673   (exit $ac_status); }; }; then
4674   LIBS=$ac_save_LIBS
4675 # We can link X programs with no special library path.
4676 ac_x_libraries=
4677 else
4678   echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.$ac_ext >&5
4680
4681 LIBS=$ac_save_LIBS
4682 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4683 do
4684   # Don't even attempt the hair of trying to link an X program!
4685   for ac_extension in a so sl; do
4686     if test -r $ac_dir/libXt.$ac_extension; then
4687       ac_x_libraries=$ac_dir
4688       break 2
4689     fi
4690   done
4691 done
4692 fi
4693 rm -f conftest.err conftest.$ac_objext \
4694       conftest$ac_exeext conftest.$ac_ext
4695 fi # $ac_x_libraries = no
4696
4697 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4698   # Didn't find X anywhere.  Cache the known absence of X.
4699   ac_cv_have_x="have_x=no"
4700 else
4701   # Record where we found X for the cache.
4702   ac_cv_have_x="have_x=yes \
4703                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4704 fi
4705 fi
4706
4707   fi
4708   eval "$ac_cv_have_x"
4709 fi # $with_x != no
4710
4711 if test "$have_x" != yes; then
4712   echo "$as_me:$LINENO: result: $have_x" >&5
4713 echo "${ECHO_T}$have_x" >&6
4714   no_x=yes
4715 else
4716   # If each of the values was on the command line, it overrides each guess.
4717   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4718   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4719   # Update the cache value to reflect the command line values.
4720   ac_cv_have_x="have_x=yes \
4721                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4722   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4723 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4724 fi
4725
4726 if test "$no_x" = yes; then
4727   # Not all programs may use this symbol, but it does not hurt to define it.
4728
4729 cat >>confdefs.h <<\_ACEOF
4730 #define X_DISPLAY_MISSING 1
4731 _ACEOF
4732
4733   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4734 else
4735   if test -n "$x_includes"; then
4736     X_CFLAGS="$X_CFLAGS -I$x_includes"
4737   fi
4738
4739   # It would also be nice to do this for all -L options, not just this one.
4740   if test -n "$x_libraries"; then
4741     X_LIBS="$X_LIBS -L$x_libraries"
4742     # For Solaris; some versions of Sun CC require a space after -R and
4743     # others require no space.  Words are not sufficient . . . .
4744     case `(uname -sr) 2>/dev/null` in
4745     "SunOS 5"*)
4746       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4747 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4748       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4749       cat >conftest.$ac_ext <<_ACEOF
4750 /* confdefs.h.  */
4751 _ACEOF
4752 cat confdefs.h >>conftest.$ac_ext
4753 cat >>conftest.$ac_ext <<_ACEOF
4754 /* end confdefs.h.  */
4755
4756 int
4757 main ()
4758 {
4759
4760   ;
4761   return 0;
4762 }
4763 _ACEOF
4764 rm -f conftest.$ac_objext conftest$ac_exeext
4765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4766   (eval $ac_link) 2>conftest.er1
4767   ac_status=$?
4768   grep -v '^ *+' conftest.er1 >conftest.err
4769   rm -f conftest.er1
4770   cat conftest.err >&5
4771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772   (exit $ac_status); } &&
4773          { ac_try='test -z "$ac_c_werror_flag"
4774                          || test ! -s conftest.err'
4775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776   (eval $ac_try) 2>&5
4777   ac_status=$?
4778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779   (exit $ac_status); }; } &&
4780          { ac_try='test -s conftest$ac_exeext'
4781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782   (eval $ac_try) 2>&5
4783   ac_status=$?
4784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785   (exit $ac_status); }; }; then
4786   ac_R_nospace=yes
4787 else
4788   echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4790
4791 ac_R_nospace=no
4792 fi
4793 rm -f conftest.err conftest.$ac_objext \
4794       conftest$ac_exeext conftest.$ac_ext
4795       if test $ac_R_nospace = yes; then
4796         echo "$as_me:$LINENO: result: no" >&5
4797 echo "${ECHO_T}no" >&6
4798         X_LIBS="$X_LIBS -R$x_libraries"
4799       else
4800         LIBS="$ac_xsave_LIBS -R $x_libraries"
4801         cat >conftest.$ac_ext <<_ACEOF
4802 /* confdefs.h.  */
4803 _ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h.  */
4807
4808 int
4809 main ()
4810 {
4811
4812   ;
4813   return 0;
4814 }
4815 _ACEOF
4816 rm -f conftest.$ac_objext conftest$ac_exeext
4817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4818   (eval $ac_link) 2>conftest.er1
4819   ac_status=$?
4820   grep -v '^ *+' conftest.er1 >conftest.err
4821   rm -f conftest.er1
4822   cat conftest.err >&5
4823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824   (exit $ac_status); } &&
4825          { ac_try='test -z "$ac_c_werror_flag"
4826                          || test ! -s conftest.err'
4827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828   (eval $ac_try) 2>&5
4829   ac_status=$?
4830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831   (exit $ac_status); }; } &&
4832          { ac_try='test -s conftest$ac_exeext'
4833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834   (eval $ac_try) 2>&5
4835   ac_status=$?
4836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837   (exit $ac_status); }; }; then
4838   ac_R_space=yes
4839 else
4840   echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.$ac_ext >&5
4842
4843 ac_R_space=no
4844 fi
4845 rm -f conftest.err conftest.$ac_objext \
4846       conftest$ac_exeext conftest.$ac_ext
4847         if test $ac_R_space = yes; then
4848           echo "$as_me:$LINENO: result: yes" >&5
4849 echo "${ECHO_T}yes" >&6
4850           X_LIBS="$X_LIBS -R $x_libraries"
4851         else
4852           echo "$as_me:$LINENO: result: neither works" >&5
4853 echo "${ECHO_T}neither works" >&6
4854         fi
4855       fi
4856       LIBS=$ac_xsave_LIBS
4857     esac
4858   fi
4859
4860   # Check for system-dependent libraries X programs must link with.
4861   # Do this before checking for the system-independent R6 libraries
4862   # (-lICE), since we may need -lsocket or whatever for X linking.
4863
4864   if test "$ISC" = yes; then
4865     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4866   else
4867     # Martyn Johnson says this is needed for Ultrix, if the X
4868     # libraries were built with DECnet support.  And Karl Berry says
4869     # the Alpha needs dnet_stub (dnet does not exist).
4870     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4871     cat >conftest.$ac_ext <<_ACEOF
4872 /* confdefs.h.  */
4873 _ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h.  */
4877
4878 /* Override any gcc2 internal prototype to avoid an error.  */
4879 #ifdef __cplusplus
4880 extern "C"
4881 #endif
4882 /* We use char because int might match the return type of a gcc2
4883    builtin and then its argument prototype would still apply.  */
4884 char XOpenDisplay ();
4885 int
4886 main ()
4887 {
4888 XOpenDisplay ();
4889   ;
4890   return 0;
4891 }
4892 _ACEOF
4893 rm -f conftest.$ac_objext conftest$ac_exeext
4894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4895   (eval $ac_link) 2>conftest.er1
4896   ac_status=$?
4897   grep -v '^ *+' conftest.er1 >conftest.err
4898   rm -f conftest.er1
4899   cat conftest.err >&5
4900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901   (exit $ac_status); } &&
4902          { ac_try='test -z "$ac_c_werror_flag"
4903                          || test ! -s conftest.err'
4904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4905   (eval $ac_try) 2>&5
4906   ac_status=$?
4907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908   (exit $ac_status); }; } &&
4909          { ac_try='test -s conftest$ac_exeext'
4910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911   (eval $ac_try) 2>&5
4912   ac_status=$?
4913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914   (exit $ac_status); }; }; then
4915   :
4916 else
4917   echo "$as_me: failed program was:" >&5
4918 sed 's/^/| /' conftest.$ac_ext >&5
4919
4920 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4921 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4922 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4923   echo $ECHO_N "(cached) $ECHO_C" >&6
4924 else
4925   ac_check_lib_save_LIBS=$LIBS
4926 LIBS="-ldnet  $LIBS"
4927 cat >conftest.$ac_ext <<_ACEOF
4928 /* confdefs.h.  */
4929 _ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h.  */
4933
4934 /* Override any gcc2 internal prototype to avoid an error.  */
4935 #ifdef __cplusplus
4936 extern "C"
4937 #endif
4938 /* We use char because int might match the return type of a gcc2
4939    builtin and then its argument prototype would still apply.  */
4940 char dnet_ntoa ();
4941 int
4942 main ()
4943 {
4944 dnet_ntoa ();
4945   ;
4946   return 0;
4947 }
4948 _ACEOF
4949 rm -f conftest.$ac_objext conftest$ac_exeext
4950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4951   (eval $ac_link) 2>conftest.er1
4952   ac_status=$?
4953   grep -v '^ *+' conftest.er1 >conftest.err
4954   rm -f conftest.er1
4955   cat conftest.err >&5
4956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957   (exit $ac_status); } &&
4958          { ac_try='test -z "$ac_c_werror_flag"
4959                          || test ! -s conftest.err'
4960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961   (eval $ac_try) 2>&5
4962   ac_status=$?
4963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964   (exit $ac_status); }; } &&
4965          { ac_try='test -s conftest$ac_exeext'
4966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967   (eval $ac_try) 2>&5
4968   ac_status=$?
4969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970   (exit $ac_status); }; }; then
4971   ac_cv_lib_dnet_dnet_ntoa=yes
4972 else
4973   echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4975
4976 ac_cv_lib_dnet_dnet_ntoa=no
4977 fi
4978 rm -f conftest.err conftest.$ac_objext \
4979       conftest$ac_exeext conftest.$ac_ext
4980 LIBS=$ac_check_lib_save_LIBS
4981 fi
4982 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4983 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4984 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4985   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4986 fi
4987
4988     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4989       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4990 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4991 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4992   echo $ECHO_N "(cached) $ECHO_C" >&6
4993 else
4994   ac_check_lib_save_LIBS=$LIBS
4995 LIBS="-ldnet_stub  $LIBS"
4996 cat >conftest.$ac_ext <<_ACEOF
4997 /* confdefs.h.  */
4998 _ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h.  */
5002
5003 /* Override any gcc2 internal prototype to avoid an error.  */
5004 #ifdef __cplusplus
5005 extern "C"
5006 #endif
5007 /* We use char because int might match the return type of a gcc2
5008    builtin and then its argument prototype would still apply.  */
5009 char dnet_ntoa ();
5010 int
5011 main ()
5012 {
5013 dnet_ntoa ();
5014   ;
5015   return 0;
5016 }
5017 _ACEOF
5018 rm -f conftest.$ac_objext conftest$ac_exeext
5019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5020   (eval $ac_link) 2>conftest.er1
5021   ac_status=$?
5022   grep -v '^ *+' conftest.er1 >conftest.err
5023   rm -f conftest.er1
5024   cat conftest.err >&5
5025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026   (exit $ac_status); } &&
5027          { ac_try='test -z "$ac_c_werror_flag"
5028                          || test ! -s conftest.err'
5029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5030   (eval $ac_try) 2>&5
5031   ac_status=$?
5032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033   (exit $ac_status); }; } &&
5034          { ac_try='test -s conftest$ac_exeext'
5035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5036   (eval $ac_try) 2>&5
5037   ac_status=$?
5038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039   (exit $ac_status); }; }; then
5040   ac_cv_lib_dnet_stub_dnet_ntoa=yes
5041 else
5042   echo "$as_me: failed program was:" >&5
5043 sed 's/^/| /' conftest.$ac_ext >&5
5044
5045 ac_cv_lib_dnet_stub_dnet_ntoa=no
5046 fi
5047 rm -f conftest.err conftest.$ac_objext \
5048       conftest$ac_exeext conftest.$ac_ext
5049 LIBS=$ac_check_lib_save_LIBS
5050 fi
5051 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5052 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5053 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5054   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5055 fi
5056
5057     fi
5058 fi
5059 rm -f conftest.err conftest.$ac_objext \
5060       conftest$ac_exeext conftest.$ac_ext
5061     LIBS="$ac_xsave_LIBS"
5062
5063     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5064     # to get the SysV transport functions.
5065     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5066     # needs -lnsl.
5067     # The nsl library prevents programs from opening the X display
5068     # on Irix 5.2, according to T.E. Dickey.
5069     # The functions gethostbyname, getservbyname, and inet_addr are
5070     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5071     echo "$as_me:$LINENO: checking for gethostbyname" >&5
5072 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5073 if test "${ac_cv_func_gethostbyname+set}" = set; then
5074   echo $ECHO_N "(cached) $ECHO_C" >&6
5075 else
5076   cat >conftest.$ac_ext <<_ACEOF
5077 /* confdefs.h.  */
5078 _ACEOF
5079 cat confdefs.h >>conftest.$ac_ext
5080 cat >>conftest.$ac_ext <<_ACEOF
5081 /* end confdefs.h.  */
5082 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5083    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5084 #define gethostbyname innocuous_gethostbyname
5085
5086 /* System header to define __stub macros and hopefully few prototypes,
5087     which can conflict with char gethostbyname (); below.
5088     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5089     <limits.h> exists even on freestanding compilers.  */
5090
5091 #ifdef __STDC__
5092 # include <limits.h>
5093 #else
5094 # include <assert.h>
5095 #endif
5096
5097 #undef gethostbyname
5098
5099 /* Override any gcc2 internal prototype to avoid an error.  */
5100 #ifdef __cplusplus
5101 extern "C"
5102 {
5103 #endif
5104 /* We use char because int might match the return type of a gcc2
5105    builtin and then its argument prototype would still apply.  */
5106 char gethostbyname ();
5107 /* The GNU C library defines this for functions which it implements
5108     to always fail with ENOSYS.  Some functions are actually named
5109     something starting with __ and the normal name is an alias.  */
5110 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5111 choke me
5112 #else
5113 char (*f) () = gethostbyname;
5114 #endif
5115 #ifdef __cplusplus
5116 }
5117 #endif
5118
5119 int
5120 main ()
5121 {
5122 return f != gethostbyname;
5123   ;
5124   return 0;
5125 }
5126 _ACEOF
5127 rm -f conftest.$ac_objext conftest$ac_exeext
5128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5129   (eval $ac_link) 2>conftest.er1
5130   ac_status=$?
5131   grep -v '^ *+' conftest.er1 >conftest.err
5132   rm -f conftest.er1
5133   cat conftest.err >&5
5134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135   (exit $ac_status); } &&
5136          { ac_try='test -z "$ac_c_werror_flag"
5137                          || test ! -s conftest.err'
5138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139   (eval $ac_try) 2>&5
5140   ac_status=$?
5141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142   (exit $ac_status); }; } &&
5143          { ac_try='test -s conftest$ac_exeext'
5144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5145   (eval $ac_try) 2>&5
5146   ac_status=$?
5147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148   (exit $ac_status); }; }; then
5149   ac_cv_func_gethostbyname=yes
5150 else
5151   echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5153
5154 ac_cv_func_gethostbyname=no
5155 fi
5156 rm -f conftest.err conftest.$ac_objext \
5157       conftest$ac_exeext conftest.$ac_ext
5158 fi
5159 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5160 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5161
5162     if test $ac_cv_func_gethostbyname = no; then
5163       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5164 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5165 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5166   echo $ECHO_N "(cached) $ECHO_C" >&6
5167 else
5168   ac_check_lib_save_LIBS=$LIBS
5169 LIBS="-lnsl  $LIBS"
5170 cat >conftest.$ac_ext <<_ACEOF
5171 /* confdefs.h.  */
5172 _ACEOF
5173 cat confdefs.h >>conftest.$ac_ext
5174 cat >>conftest.$ac_ext <<_ACEOF
5175 /* end confdefs.h.  */
5176
5177 /* Override any gcc2 internal prototype to avoid an error.  */
5178 #ifdef __cplusplus
5179 extern "C"
5180 #endif
5181 /* We use char because int might match the return type of a gcc2
5182    builtin and then its argument prototype would still apply.  */
5183 char gethostbyname ();
5184 int
5185 main ()
5186 {
5187 gethostbyname ();
5188   ;
5189   return 0;
5190 }
5191 _ACEOF
5192 rm -f conftest.$ac_objext conftest$ac_exeext
5193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5194   (eval $ac_link) 2>conftest.er1
5195   ac_status=$?
5196   grep -v '^ *+' conftest.er1 >conftest.err
5197   rm -f conftest.er1
5198   cat conftest.err >&5
5199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200   (exit $ac_status); } &&
5201          { ac_try='test -z "$ac_c_werror_flag"
5202                          || test ! -s conftest.err'
5203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5204   (eval $ac_try) 2>&5
5205   ac_status=$?
5206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207   (exit $ac_status); }; } &&
5208          { ac_try='test -s conftest$ac_exeext'
5209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5210   (eval $ac_try) 2>&5
5211   ac_status=$?
5212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213   (exit $ac_status); }; }; then
5214   ac_cv_lib_nsl_gethostbyname=yes
5215 else
5216   echo "$as_me: failed program was:" >&5
5217 sed 's/^/| /' conftest.$ac_ext >&5
5218
5219 ac_cv_lib_nsl_gethostbyname=no
5220 fi
5221 rm -f conftest.err conftest.$ac_objext \
5222       conftest$ac_exeext conftest.$ac_ext
5223 LIBS=$ac_check_lib_save_LIBS
5224 fi
5225 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5226 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5227 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5228   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5229 fi
5230
5231       if test $ac_cv_lib_nsl_gethostbyname = no; then
5232         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5233 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5234 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5235   echo $ECHO_N "(cached) $ECHO_C" >&6
5236 else
5237   ac_check_lib_save_LIBS=$LIBS
5238 LIBS="-lbsd  $LIBS"
5239 cat >conftest.$ac_ext <<_ACEOF
5240 /* confdefs.h.  */
5241 _ACEOF
5242 cat confdefs.h >>conftest.$ac_ext
5243 cat >>conftest.$ac_ext <<_ACEOF
5244 /* end confdefs.h.  */
5245
5246 /* Override any gcc2 internal prototype to avoid an error.  */
5247 #ifdef __cplusplus
5248 extern "C"
5249 #endif
5250 /* We use char because int might match the return type of a gcc2
5251    builtin and then its argument prototype would still apply.  */
5252 char gethostbyname ();
5253 int
5254 main ()
5255 {
5256 gethostbyname ();
5257   ;
5258   return 0;
5259 }
5260 _ACEOF
5261 rm -f conftest.$ac_objext conftest$ac_exeext
5262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5263   (eval $ac_link) 2>conftest.er1
5264   ac_status=$?
5265   grep -v '^ *+' conftest.er1 >conftest.err
5266   rm -f conftest.er1
5267   cat conftest.err >&5
5268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269   (exit $ac_status); } &&
5270          { ac_try='test -z "$ac_c_werror_flag"
5271                          || test ! -s conftest.err'
5272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273   (eval $ac_try) 2>&5
5274   ac_status=$?
5275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276   (exit $ac_status); }; } &&
5277          { ac_try='test -s conftest$ac_exeext'
5278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279   (eval $ac_try) 2>&5
5280   ac_status=$?
5281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282   (exit $ac_status); }; }; then
5283   ac_cv_lib_bsd_gethostbyname=yes
5284 else
5285   echo "$as_me: failed program was:" >&5
5286 sed 's/^/| /' conftest.$ac_ext >&5
5287
5288 ac_cv_lib_bsd_gethostbyname=no
5289 fi
5290 rm -f conftest.err conftest.$ac_objext \
5291       conftest$ac_exeext conftest.$ac_ext
5292 LIBS=$ac_check_lib_save_LIBS
5293 fi
5294 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5295 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5296 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5297   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5298 fi
5299
5300       fi
5301     fi
5302
5303     # lieder@skyler.mavd.honeywell.com says without -lsocket,
5304     # socket/setsockopt and other routines are undefined under SCO ODT
5305     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
5306     # on later versions), says Simon Leinen: it contains gethostby*
5307     # variants that don't use the name server (or something).  -lsocket
5308     # must be given before -lnsl if both are needed.  We assume that
5309     # if connect needs -lnsl, so does gethostbyname.
5310     echo "$as_me:$LINENO: checking for connect" >&5
5311 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5312 if test "${ac_cv_func_connect+set}" = set; then
5313   echo $ECHO_N "(cached) $ECHO_C" >&6
5314 else
5315   cat >conftest.$ac_ext <<_ACEOF
5316 /* confdefs.h.  */
5317 _ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h.  */
5321 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5322    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5323 #define connect innocuous_connect
5324
5325 /* System header to define __stub macros and hopefully few prototypes,
5326     which can conflict with char connect (); below.
5327     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5328     <limits.h> exists even on freestanding compilers.  */
5329
5330 #ifdef __STDC__
5331 # include <limits.h>
5332 #else
5333 # include <assert.h>
5334 #endif
5335
5336 #undef connect
5337
5338 /* Override any gcc2 internal prototype to avoid an error.  */
5339 #ifdef __cplusplus
5340 extern "C"
5341 {
5342 #endif
5343 /* We use char because int might match the return type of a gcc2
5344    builtin and then its argument prototype would still apply.  */
5345 char connect ();
5346 /* The GNU C library defines this for functions which it implements
5347     to always fail with ENOSYS.  Some functions are actually named
5348     something starting with __ and the normal name is an alias.  */
5349 #if defined (__stub_connect) || defined (__stub___connect)
5350 choke me
5351 #else
5352 char (*f) () = connect;
5353 #endif
5354 #ifdef __cplusplus
5355 }
5356 #endif
5357
5358 int
5359 main ()
5360 {
5361 return f != connect;
5362   ;
5363   return 0;
5364 }
5365 _ACEOF
5366 rm -f conftest.$ac_objext conftest$ac_exeext
5367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5368   (eval $ac_link) 2>conftest.er1
5369   ac_status=$?
5370   grep -v '^ *+' conftest.er1 >conftest.err
5371   rm -f conftest.er1
5372   cat conftest.err >&5
5373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374   (exit $ac_status); } &&
5375          { ac_try='test -z "$ac_c_werror_flag"
5376                          || test ! -s conftest.err'
5377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5378   (eval $ac_try) 2>&5
5379   ac_status=$?
5380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381   (exit $ac_status); }; } &&
5382          { ac_try='test -s conftest$ac_exeext'
5383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5384   (eval $ac_try) 2>&5
5385   ac_status=$?
5386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387   (exit $ac_status); }; }; then
5388   ac_cv_func_connect=yes
5389 else
5390   echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5392
5393 ac_cv_func_connect=no
5394 fi
5395 rm -f conftest.err conftest.$ac_objext \
5396       conftest$ac_exeext conftest.$ac_ext
5397 fi
5398 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5399 echo "${ECHO_T}$ac_cv_func_connect" >&6
5400
5401     if test $ac_cv_func_connect = no; then
5402       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5403 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5404 if test "${ac_cv_lib_socket_connect+set}" = set; then
5405   echo $ECHO_N "(cached) $ECHO_C" >&6
5406 else
5407   ac_check_lib_save_LIBS=$LIBS
5408 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5409 cat >conftest.$ac_ext <<_ACEOF
5410 /* confdefs.h.  */
5411 _ACEOF
5412 cat confdefs.h >>conftest.$ac_ext
5413 cat >>conftest.$ac_ext <<_ACEOF
5414 /* end confdefs.h.  */
5415
5416 /* Override any gcc2 internal prototype to avoid an error.  */
5417 #ifdef __cplusplus
5418 extern "C"
5419 #endif
5420 /* We use char because int might match the return type of a gcc2
5421    builtin and then its argument prototype would still apply.  */
5422 char connect ();
5423 int
5424 main ()
5425 {
5426 connect ();
5427   ;
5428   return 0;
5429 }
5430 _ACEOF
5431 rm -f conftest.$ac_objext conftest$ac_exeext
5432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5433   (eval $ac_link) 2>conftest.er1
5434   ac_status=$?
5435   grep -v '^ *+' conftest.er1 >conftest.err
5436   rm -f conftest.er1
5437   cat conftest.err >&5
5438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439   (exit $ac_status); } &&
5440          { ac_try='test -z "$ac_c_werror_flag"
5441                          || test ! -s conftest.err'
5442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443   (eval $ac_try) 2>&5
5444   ac_status=$?
5445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446   (exit $ac_status); }; } &&
5447          { ac_try='test -s conftest$ac_exeext'
5448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449   (eval $ac_try) 2>&5
5450   ac_status=$?
5451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452   (exit $ac_status); }; }; then
5453   ac_cv_lib_socket_connect=yes
5454 else
5455   echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5457
5458 ac_cv_lib_socket_connect=no
5459 fi
5460 rm -f conftest.err conftest.$ac_objext \
5461       conftest$ac_exeext conftest.$ac_ext
5462 LIBS=$ac_check_lib_save_LIBS
5463 fi
5464 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5465 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5466 if test $ac_cv_lib_socket_connect = yes; then
5467   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5468 fi
5469
5470     fi
5471
5472     # Guillermo Gomez says -lposix is necessary on A/UX.
5473     echo "$as_me:$LINENO: checking for remove" >&5
5474 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5475 if test "${ac_cv_func_remove+set}" = set; then
5476   echo $ECHO_N "(cached) $ECHO_C" >&6
5477 else
5478   cat >conftest.$ac_ext <<_ACEOF
5479 /* confdefs.h.  */
5480 _ACEOF
5481 cat confdefs.h >>conftest.$ac_ext
5482 cat >>conftest.$ac_ext <<_ACEOF
5483 /* end confdefs.h.  */
5484 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5485    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5486 #define remove innocuous_remove
5487
5488 /* System header to define __stub macros and hopefully few prototypes,
5489     which can conflict with char remove (); below.
5490     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5491     <limits.h> exists even on freestanding compilers.  */
5492
5493 #ifdef __STDC__
5494 # include <limits.h>
5495 #else
5496 # include <assert.h>
5497 #endif
5498
5499 #undef remove
5500
5501 /* Override any gcc2 internal prototype to avoid an error.  */
5502 #ifdef __cplusplus
5503 extern "C"
5504 {
5505 #endif
5506 /* We use char because int might match the return type of a gcc2
5507    builtin and then its argument prototype would still apply.  */
5508 char remove ();
5509 /* The GNU C library defines this for functions which it implements
5510     to always fail with ENOSYS.  Some functions are actually named
5511     something starting with __ and the normal name is an alias.  */
5512 #if defined (__stub_remove) || defined (__stub___remove)
5513 choke me
5514 #else
5515 char (*f) () = remove;
5516 #endif
5517 #ifdef __cplusplus
5518 }
5519 #endif
5520
5521 int
5522 main ()
5523 {
5524 return f != remove;
5525   ;
5526   return 0;
5527 }
5528 _ACEOF
5529 rm -f conftest.$ac_objext conftest$ac_exeext
5530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5531   (eval $ac_link) 2>conftest.er1
5532   ac_status=$?
5533   grep -v '^ *+' conftest.er1 >conftest.err
5534   rm -f conftest.er1
5535   cat conftest.err >&5
5536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537   (exit $ac_status); } &&
5538          { ac_try='test -z "$ac_c_werror_flag"
5539                          || test ! -s conftest.err'
5540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541   (eval $ac_try) 2>&5
5542   ac_status=$?
5543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544   (exit $ac_status); }; } &&
5545          { ac_try='test -s conftest$ac_exeext'
5546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547   (eval $ac_try) 2>&5
5548   ac_status=$?
5549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550   (exit $ac_status); }; }; then
5551   ac_cv_func_remove=yes
5552 else
5553   echo "$as_me: failed program was:" >&5
5554 sed 's/^/| /' conftest.$ac_ext >&5
5555
5556 ac_cv_func_remove=no
5557 fi
5558 rm -f conftest.err conftest.$ac_objext \
5559       conftest$ac_exeext conftest.$ac_ext
5560 fi
5561 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5562 echo "${ECHO_T}$ac_cv_func_remove" >&6
5563
5564     if test $ac_cv_func_remove = no; then
5565       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5566 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5567 if test "${ac_cv_lib_posix_remove+set}" = set; then
5568   echo $ECHO_N "(cached) $ECHO_C" >&6
5569 else
5570   ac_check_lib_save_LIBS=$LIBS
5571 LIBS="-lposix  $LIBS"
5572 cat >conftest.$ac_ext <<_ACEOF
5573 /* confdefs.h.  */
5574 _ACEOF
5575 cat confdefs.h >>conftest.$ac_ext
5576 cat >>conftest.$ac_ext <<_ACEOF
5577 /* end confdefs.h.  */
5578
5579 /* Override any gcc2 internal prototype to avoid an error.  */
5580 #ifdef __cplusplus
5581 extern "C"
5582 #endif
5583 /* We use char because int might match the return type of a gcc2
5584    builtin and then its argument prototype would still apply.  */
5585 char remove ();
5586 int
5587 main ()
5588 {
5589 remove ();
5590   ;
5591   return 0;
5592 }
5593 _ACEOF
5594 rm -f conftest.$ac_objext conftest$ac_exeext
5595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5596   (eval $ac_link) 2>conftest.er1
5597   ac_status=$?
5598   grep -v '^ *+' conftest.er1 >conftest.err
5599   rm -f conftest.er1
5600   cat conftest.err >&5
5601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602   (exit $ac_status); } &&
5603          { ac_try='test -z "$ac_c_werror_flag"
5604                          || test ! -s conftest.err'
5605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606   (eval $ac_try) 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   ac_cv_lib_posix_remove=yes
5617 else
5618   echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5620
5621 ac_cv_lib_posix_remove=no
5622 fi
5623 rm -f conftest.err conftest.$ac_objext \
5624       conftest$ac_exeext conftest.$ac_ext
5625 LIBS=$ac_check_lib_save_LIBS
5626 fi
5627 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5628 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5629 if test $ac_cv_lib_posix_remove = yes; then
5630   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5631 fi
5632
5633     fi
5634
5635     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5636     echo "$as_me:$LINENO: checking for shmat" >&5
5637 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5638 if test "${ac_cv_func_shmat+set}" = set; then
5639   echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641   cat >conftest.$ac_ext <<_ACEOF
5642 /* confdefs.h.  */
5643 _ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h.  */
5647 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5648    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5649 #define shmat innocuous_shmat
5650
5651 /* System header to define __stub macros and hopefully few prototypes,
5652     which can conflict with char shmat (); below.
5653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5654     <limits.h> exists even on freestanding compilers.  */
5655
5656 #ifdef __STDC__
5657 # include <limits.h>
5658 #else
5659 # include <assert.h>
5660 #endif
5661
5662 #undef shmat
5663
5664 /* Override any gcc2 internal prototype to avoid an error.  */
5665 #ifdef __cplusplus
5666 extern "C"
5667 {
5668 #endif
5669 /* We use char because int might match the return type of a gcc2
5670    builtin and then its argument prototype would still apply.  */
5671 char shmat ();
5672 /* The GNU C library defines this for functions which it implements
5673     to always fail with ENOSYS.  Some functions are actually named
5674     something starting with __ and the normal name is an alias.  */
5675 #if defined (__stub_shmat) || defined (__stub___shmat)
5676 choke me
5677 #else
5678 char (*f) () = shmat;
5679 #endif
5680 #ifdef __cplusplus
5681 }
5682 #endif
5683
5684 int
5685 main ()
5686 {
5687 return f != shmat;
5688   ;
5689   return 0;
5690 }
5691 _ACEOF
5692 rm -f conftest.$ac_objext conftest$ac_exeext
5693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5694   (eval $ac_link) 2>conftest.er1
5695   ac_status=$?
5696   grep -v '^ *+' conftest.er1 >conftest.err
5697   rm -f conftest.er1
5698   cat conftest.err >&5
5699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700   (exit $ac_status); } &&
5701          { ac_try='test -z "$ac_c_werror_flag"
5702                          || test ! -s conftest.err'
5703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704   (eval $ac_try) 2>&5
5705   ac_status=$?
5706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707   (exit $ac_status); }; } &&
5708          { ac_try='test -s conftest$ac_exeext'
5709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5710   (eval $ac_try) 2>&5
5711   ac_status=$?
5712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713   (exit $ac_status); }; }; then
5714   ac_cv_func_shmat=yes
5715 else
5716   echo "$as_me: failed program was:" >&5
5717 sed 's/^/| /' conftest.$ac_ext >&5
5718
5719 ac_cv_func_shmat=no
5720 fi
5721 rm -f conftest.err conftest.$ac_objext \
5722       conftest$ac_exeext conftest.$ac_ext
5723 fi
5724 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5725 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5726
5727     if test $ac_cv_func_shmat = no; then
5728       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5729 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5730 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5731   echo $ECHO_N "(cached) $ECHO_C" >&6
5732 else
5733   ac_check_lib_save_LIBS=$LIBS
5734 LIBS="-lipc  $LIBS"
5735 cat >conftest.$ac_ext <<_ACEOF
5736 /* confdefs.h.  */
5737 _ACEOF
5738 cat confdefs.h >>conftest.$ac_ext
5739 cat >>conftest.$ac_ext <<_ACEOF
5740 /* end confdefs.h.  */
5741
5742 /* Override any gcc2 internal prototype to avoid an error.  */
5743 #ifdef __cplusplus
5744 extern "C"
5745 #endif
5746 /* We use char because int might match the return type of a gcc2
5747    builtin and then its argument prototype would still apply.  */
5748 char shmat ();
5749 int
5750 main ()
5751 {
5752 shmat ();
5753   ;
5754   return 0;
5755 }
5756 _ACEOF
5757 rm -f conftest.$ac_objext conftest$ac_exeext
5758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5759   (eval $ac_link) 2>conftest.er1
5760   ac_status=$?
5761   grep -v '^ *+' conftest.er1 >conftest.err
5762   rm -f conftest.er1
5763   cat conftest.err >&5
5764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765   (exit $ac_status); } &&
5766          { ac_try='test -z "$ac_c_werror_flag"
5767                          || test ! -s conftest.err'
5768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769   (eval $ac_try) 2>&5
5770   ac_status=$?
5771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772   (exit $ac_status); }; } &&
5773          { ac_try='test -s conftest$ac_exeext'
5774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775   (eval $ac_try) 2>&5
5776   ac_status=$?
5777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778   (exit $ac_status); }; }; then
5779   ac_cv_lib_ipc_shmat=yes
5780 else
5781   echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.$ac_ext >&5
5783
5784 ac_cv_lib_ipc_shmat=no
5785 fi
5786 rm -f conftest.err conftest.$ac_objext \
5787       conftest$ac_exeext conftest.$ac_ext
5788 LIBS=$ac_check_lib_save_LIBS
5789 fi
5790 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5791 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5792 if test $ac_cv_lib_ipc_shmat = yes; then
5793   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5794 fi
5795
5796     fi
5797   fi
5798
5799   # Check for libraries that X11R6 Xt/Xaw programs need.
5800   ac_save_LDFLAGS=$LDFLAGS
5801   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5802   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5803   # check for ICE first), but we must link in the order -lSM -lICE or
5804   # we get undefined symbols.  So assume we have SM if we have ICE.
5805   # These have to be linked with before -lX11, unlike the other
5806   # libraries we check for below, so use a different variable.
5807   # John Interrante, Karl Berry
5808   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5809 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5810 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5811   echo $ECHO_N "(cached) $ECHO_C" >&6
5812 else
5813   ac_check_lib_save_LIBS=$LIBS
5814 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5815 cat >conftest.$ac_ext <<_ACEOF
5816 /* confdefs.h.  */
5817 _ACEOF
5818 cat confdefs.h >>conftest.$ac_ext
5819 cat >>conftest.$ac_ext <<_ACEOF
5820 /* end confdefs.h.  */
5821
5822 /* Override any gcc2 internal prototype to avoid an error.  */
5823 #ifdef __cplusplus
5824 extern "C"
5825 #endif
5826 /* We use char because int might match the return type of a gcc2
5827    builtin and then its argument prototype would still apply.  */
5828 char IceConnectionNumber ();
5829 int
5830 main ()
5831 {
5832 IceConnectionNumber ();
5833   ;
5834   return 0;
5835 }
5836 _ACEOF
5837 rm -f conftest.$ac_objext conftest$ac_exeext
5838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5839   (eval $ac_link) 2>conftest.er1
5840   ac_status=$?
5841   grep -v '^ *+' conftest.er1 >conftest.err
5842   rm -f conftest.er1
5843   cat conftest.err >&5
5844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845   (exit $ac_status); } &&
5846          { ac_try='test -z "$ac_c_werror_flag"
5847                          || test ! -s conftest.err'
5848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5849   (eval $ac_try) 2>&5
5850   ac_status=$?
5851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852   (exit $ac_status); }; } &&
5853          { ac_try='test -s conftest$ac_exeext'
5854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5855   (eval $ac_try) 2>&5
5856   ac_status=$?
5857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858   (exit $ac_status); }; }; then
5859   ac_cv_lib_ICE_IceConnectionNumber=yes
5860 else
5861   echo "$as_me: failed program was:" >&5
5862 sed 's/^/| /' conftest.$ac_ext >&5
5863
5864 ac_cv_lib_ICE_IceConnectionNumber=no
5865 fi
5866 rm -f conftest.err conftest.$ac_objext \
5867       conftest$ac_exeext conftest.$ac_ext
5868 LIBS=$ac_check_lib_save_LIBS
5869 fi
5870 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5871 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5872 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5873   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5874 fi
5875
5876   LDFLAGS=$ac_save_LDFLAGS
5877
5878 fi
5879
5880
5881 # Checks for X
5882 if test "x$with_x" = xyes; then
5883   if test "x$have_x" = xno; then
5884     if test "x$x_config_flag" = xyes; then
5885       { { echo "$as_me:$LINENO: error: Could not configure X" >&5
5886 echo "$as_me: error: Could not configure X" >&2;}
5887    { (exit 1); exit 1; }; }
5888     else
5889       { echo "$as_me:$LINENO: WARNING: Could not configure X" >&5
5890 echo "$as_me: WARNING: Could not configure X" >&2;}
5891     fi
5892   fi
5893 fi
5894 if test "x$with_x" = xyes -a "x$have_x" = xyes; then
5895   if test "x$x_libraries" != x; then
5896     ldflags_x_opt="-L$x_libraries"
5897     LDFLAGS="$LDFLAGS $ldflags_x_opt"
5898     SHLDFLAGS="$SHLDFLAGS $ldflags_x_opt"
5899   else
5900     ldflags_x_opt=
5901   fi
5902   if test "x$x_includes" != x; then
5903     CPPFLAGS="$CPPFLAGS -I$x_includes"
5904   fi
5905
5906
5907 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
5908 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
5909 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
5910   echo $ECHO_N "(cached) $ECHO_C" >&6
5911 else
5912   ac_check_lib_save_LIBS=$LIBS
5913 LIBS="-lX11  $LIBS"
5914 cat >conftest.$ac_ext <<_ACEOF
5915 /* confdefs.h.  */
5916 _ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h.  */
5920
5921 /* Override any gcc2 internal prototype to avoid an error.  */
5922 #ifdef __cplusplus
5923 extern "C"
5924 #endif
5925 /* We use char because int might match the return type of a gcc2
5926    builtin and then its argument prototype would still apply.  */
5927 char XOpenDisplay ();
5928 int
5929 main ()
5930 {
5931 XOpenDisplay ();
5932   ;
5933   return 0;
5934 }
5935 _ACEOF
5936 rm -f conftest.$ac_objext conftest$ac_exeext
5937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5938   (eval $ac_link) 2>conftest.er1
5939   ac_status=$?
5940   grep -v '^ *+' conftest.er1 >conftest.err
5941   rm -f conftest.er1
5942   cat conftest.err >&5
5943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944   (exit $ac_status); } &&
5945          { ac_try='test -z "$ac_c_werror_flag"
5946                          || test ! -s conftest.err'
5947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948   (eval $ac_try) 2>&5
5949   ac_status=$?
5950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951   (exit $ac_status); }; } &&
5952          { ac_try='test -s conftest$ac_exeext'
5953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5954   (eval $ac_try) 2>&5
5955   ac_status=$?
5956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957   (exit $ac_status); }; }; then
5958   ac_cv_lib_X11_XOpenDisplay=yes
5959 else
5960   echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5962
5963 ac_cv_lib_X11_XOpenDisplay=no
5964 fi
5965 rm -f conftest.err conftest.$ac_objext \
5966       conftest$ac_exeext conftest.$ac_ext
5967 LIBS=$ac_check_lib_save_LIBS
5968 fi
5969 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
5970 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
5971 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
5972   cat >>confdefs.h <<_ACEOF
5973 #define HAVE_LIBX11 1
5974 _ACEOF
5975
5976   LIBS="-lX11 $LIBS"
5977
5978 fi
5979
5980   echo "$as_me:$LINENO: checking X11 version 6" >&5
5981 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
5982   if test "${timidity_cv_x11_version_6+set}" = set; then
5983   echo $ECHO_N "(cached) $ECHO_C" >&6
5984 else
5985   cat >conftest.$ac_ext <<_ACEOF
5986 /* confdefs.h.  */
5987 _ACEOF
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h.  */
5991 #include <X11/Xlib.h>
5992 int
5993 main ()
5994 {
5995
5996 #if XlibSpecificationRelease < 6
5997 fail;
5998 #endif
5999
6000   ;
6001   return 0;
6002 }
6003 _ACEOF
6004 rm -f conftest.$ac_objext conftest$ac_exeext
6005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6006   (eval $ac_link) 2>conftest.er1
6007   ac_status=$?
6008   grep -v '^ *+' conftest.er1 >conftest.err
6009   rm -f conftest.er1
6010   cat conftest.err >&5
6011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012   (exit $ac_status); } &&
6013          { ac_try='test -z "$ac_c_werror_flag"
6014                          || test ! -s conftest.err'
6015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016   (eval $ac_try) 2>&5
6017   ac_status=$?
6018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019   (exit $ac_status); }; } &&
6020          { ac_try='test -s conftest$ac_exeext'
6021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022   (eval $ac_try) 2>&5
6023   ac_status=$?
6024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025   (exit $ac_status); }; }; then
6026   timidity_cv_x11_version_6=yes
6027 else
6028   echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.$ac_ext >&5
6030
6031 timidity_cv_x11_version_6=no
6032 fi
6033 rm -f conftest.err conftest.$ac_objext \
6034       conftest$ac_exeext conftest.$ac_ext
6035 fi
6036
6037   if test "$timidity_cv_x11_version_6" = "yes"; then
6038     echo "$as_me:$LINENO: result: 6 or newer" >&5
6039 echo "${ECHO_T}6 or newer" >&6
6040       else
6041     echo "$as_me:$LINENO: result: before 6" >&5
6042 echo "${ECHO_T}before 6" >&6
6043   fi
6044
6045     KEEPLIBS=$LIBS
6046   echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
6047 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
6048 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
6049   echo $ECHO_N "(cached) $ECHO_C" >&6
6050 else
6051   ac_check_lib_save_LIBS=$LIBS
6052 LIBS="-lXext  $LIBS"
6053 cat >conftest.$ac_ext <<_ACEOF
6054 /* confdefs.h.  */
6055 _ACEOF
6056 cat confdefs.h >>conftest.$ac_ext
6057 cat >>conftest.$ac_ext <<_ACEOF
6058 /* end confdefs.h.  */
6059
6060 /* Override any gcc2 internal prototype to avoid an error.  */
6061 #ifdef __cplusplus
6062 extern "C"
6063 #endif
6064 /* We use char because int might match the return type of a gcc2
6065    builtin and then its argument prototype would still apply.  */
6066 char XShapeCombineMask ();
6067 int
6068 main ()
6069 {
6070 XShapeCombineMask ();
6071   ;
6072   return 0;
6073 }
6074 _ACEOF
6075 rm -f conftest.$ac_objext conftest$ac_exeext
6076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6077   (eval $ac_link) 2>conftest.er1
6078   ac_status=$?
6079   grep -v '^ *+' conftest.er1 >conftest.err
6080   rm -f conftest.er1
6081   cat conftest.err >&5
6082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083   (exit $ac_status); } &&
6084          { ac_try='test -z "$ac_c_werror_flag"
6085                          || test ! -s conftest.err'
6086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087   (eval $ac_try) 2>&5
6088   ac_status=$?
6089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090   (exit $ac_status); }; } &&
6091          { ac_try='test -s conftest$ac_exeext'
6092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093   (eval $ac_try) 2>&5
6094   ac_status=$?
6095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096   (exit $ac_status); }; }; then
6097   ac_cv_lib_Xext_XShapeCombineMask=yes
6098 else
6099   echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6101
6102 ac_cv_lib_Xext_XShapeCombineMask=no
6103 fi
6104 rm -f conftest.err conftest.$ac_objext \
6105       conftest$ac_exeext conftest.$ac_ext
6106 LIBS=$ac_check_lib_save_LIBS
6107 fi
6108 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
6109 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
6110 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
6111   have_xext=yes; LIBS="-lXext $LIBS"
6112 else
6113   have_xext=no
6114 fi
6115
6116
6117 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6118 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6119 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6120   echo $ECHO_N "(cached) $ECHO_C" >&6
6121 else
6122   ac_check_lib_save_LIBS=$LIBS
6123 LIBS="-lICE  $LIBS"
6124 cat >conftest.$ac_ext <<_ACEOF
6125 /* confdefs.h.  */
6126 _ACEOF
6127 cat confdefs.h >>conftest.$ac_ext
6128 cat >>conftest.$ac_ext <<_ACEOF
6129 /* end confdefs.h.  */
6130
6131 /* Override any gcc2 internal prototype to avoid an error.  */
6132 #ifdef __cplusplus
6133 extern "C"
6134 #endif
6135 /* We use char because int might match the return type of a gcc2
6136    builtin and then its argument prototype would still apply.  */
6137 char IceConnectionNumber ();
6138 int
6139 main ()
6140 {
6141 IceConnectionNumber ();
6142   ;
6143   return 0;
6144 }
6145 _ACEOF
6146 rm -f conftest.$ac_objext conftest$ac_exeext
6147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6148   (eval $ac_link) 2>conftest.er1
6149   ac_status=$?
6150   grep -v '^ *+' conftest.er1 >conftest.err
6151   rm -f conftest.er1
6152   cat conftest.err >&5
6153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154   (exit $ac_status); } &&
6155          { ac_try='test -z "$ac_c_werror_flag"
6156                          || test ! -s conftest.err'
6157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158   (eval $ac_try) 2>&5
6159   ac_status=$?
6160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161   (exit $ac_status); }; } &&
6162          { ac_try='test -s conftest$ac_exeext'
6163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6164   (eval $ac_try) 2>&5
6165   ac_status=$?
6166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167   (exit $ac_status); }; }; then
6168   ac_cv_lib_ICE_IceConnectionNumber=yes
6169 else
6170   echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6172
6173 ac_cv_lib_ICE_IceConnectionNumber=no
6174 fi
6175 rm -f conftest.err conftest.$ac_objext \
6176       conftest$ac_exeext conftest.$ac_ext
6177 LIBS=$ac_check_lib_save_LIBS
6178 fi
6179 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6180 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6181 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6182   cat >>confdefs.h <<_ACEOF
6183 #define HAVE_LIBICE 1
6184 _ACEOF
6185
6186   LIBS="-lICE $LIBS"
6187
6188 fi
6189
6190   echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
6191 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
6192 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
6193   echo $ECHO_N "(cached) $ECHO_C" >&6
6194 else
6195   ac_check_lib_save_LIBS=$LIBS
6196 LIBS="-lSM  $LIBS"
6197 cat >conftest.$ac_ext <<_ACEOF
6198 /* confdefs.h.  */
6199 _ACEOF
6200 cat confdefs.h >>conftest.$ac_ext
6201 cat >>conftest.$ac_ext <<_ACEOF
6202 /* end confdefs.h.  */
6203
6204 /* Override any gcc2 internal prototype to avoid an error.  */
6205 #ifdef __cplusplus
6206 extern "C"
6207 #endif
6208 /* We use char because int might match the return type of a gcc2
6209    builtin and then its argument prototype would still apply.  */
6210 char SmcOpenConnection ();
6211 int
6212 main ()
6213 {
6214 SmcOpenConnection ();
6215   ;
6216   return 0;
6217 }
6218 _ACEOF
6219 rm -f conftest.$ac_objext conftest$ac_exeext
6220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6221   (eval $ac_link) 2>conftest.er1
6222   ac_status=$?
6223   grep -v '^ *+' conftest.er1 >conftest.err
6224   rm -f conftest.er1
6225   cat conftest.err >&5
6226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227   (exit $ac_status); } &&
6228          { ac_try='test -z "$ac_c_werror_flag"
6229                          || test ! -s conftest.err'
6230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6231   (eval $ac_try) 2>&5
6232   ac_status=$?
6233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234   (exit $ac_status); }; } &&
6235          { ac_try='test -s conftest$ac_exeext'
6236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237   (eval $ac_try) 2>&5
6238   ac_status=$?
6239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240   (exit $ac_status); }; }; then
6241   ac_cv_lib_SM_SmcOpenConnection=yes
6242 else
6243   echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6245
6246 ac_cv_lib_SM_SmcOpenConnection=no
6247 fi
6248 rm -f conftest.err conftest.$ac_objext \
6249       conftest$ac_exeext conftest.$ac_ext
6250 LIBS=$ac_check_lib_save_LIBS
6251 fi
6252 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
6253 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
6254 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
6255   have_xprelibs=yes; LIBS="-lSM $LIBS"
6256 else
6257   have_xprelibs=no
6258 fi
6259
6260   echo "$as_me:$LINENO: checking for XtVaAppInitialize in -lXt" >&5
6261 echo $ECHO_N "checking for XtVaAppInitialize in -lXt... $ECHO_C" >&6
6262 if test "${ac_cv_lib_Xt_XtVaAppInitialize+set}" = set; then
6263   echo $ECHO_N "(cached) $ECHO_C" >&6
6264 else
6265   ac_check_lib_save_LIBS=$LIBS
6266 LIBS="-lXt  $LIBS"
6267 cat >conftest.$ac_ext <<_ACEOF
6268 /* confdefs.h.  */
6269 _ACEOF
6270 cat confdefs.h >>conftest.$ac_ext
6271 cat >>conftest.$ac_ext <<_ACEOF
6272 /* end confdefs.h.  */
6273
6274 /* Override any gcc2 internal prototype to avoid an error.  */
6275 #ifdef __cplusplus
6276 extern "C"
6277 #endif
6278 /* We use char because int might match the return type of a gcc2
6279    builtin and then its argument prototype would still apply.  */
6280 char XtVaAppInitialize ();
6281 int
6282 main ()
6283 {
6284 XtVaAppInitialize ();
6285   ;
6286   return 0;
6287 }
6288 _ACEOF
6289 rm -f conftest.$ac_objext conftest$ac_exeext
6290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6291   (eval $ac_link) 2>conftest.er1
6292   ac_status=$?
6293   grep -v '^ *+' conftest.er1 >conftest.err
6294   rm -f conftest.er1
6295   cat conftest.err >&5
6296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297   (exit $ac_status); } &&
6298          { ac_try='test -z "$ac_c_werror_flag"
6299                          || test ! -s conftest.err'
6300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6301   (eval $ac_try) 2>&5
6302   ac_status=$?
6303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304   (exit $ac_status); }; } &&
6305          { ac_try='test -s conftest$ac_exeext'
6306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6307   (eval $ac_try) 2>&5
6308   ac_status=$?
6309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310   (exit $ac_status); }; }; then
6311   ac_cv_lib_Xt_XtVaAppInitialize=yes
6312 else
6313   echo "$as_me: failed program was:" >&5
6314 sed 's/^/| /' conftest.$ac_ext >&5
6315
6316 ac_cv_lib_Xt_XtVaAppInitialize=no
6317 fi
6318 rm -f conftest.err conftest.$ac_objext \
6319       conftest$ac_exeext conftest.$ac_ext
6320 LIBS=$ac_check_lib_save_LIBS
6321 fi
6322 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtVaAppInitialize" >&5
6323 echo "${ECHO_T}$ac_cv_lib_Xt_XtVaAppInitialize" >&6
6324 if test $ac_cv_lib_Xt_XtVaAppInitialize = yes; then
6325   have_xt=yes; LIBS="-lXt $LIBS"
6326 else
6327   have_xt=no
6328 fi
6329
6330   echo "$as_me:$LINENO: checking for XmuInternAtom in -lXmu" >&5
6331 echo $ECHO_N "checking for XmuInternAtom in -lXmu... $ECHO_C" >&6
6332 if test "${ac_cv_lib_Xmu_XmuInternAtom+set}" = set; then
6333   echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335   ac_check_lib_save_LIBS=$LIBS
6336 LIBS="-lXmu  $LIBS"
6337 cat >conftest.$ac_ext <<_ACEOF
6338 /* confdefs.h.  */
6339 _ACEOF
6340 cat confdefs.h >>conftest.$ac_ext
6341 cat >>conftest.$ac_ext <<_ACEOF
6342 /* end confdefs.h.  */
6343
6344 /* Override any gcc2 internal prototype to avoid an error.  */
6345 #ifdef __cplusplus
6346 extern "C"
6347 #endif
6348 /* We use char because int might match the return type of a gcc2
6349    builtin and then its argument prototype would still apply.  */
6350 char XmuInternAtom ();
6351 int
6352 main ()
6353 {
6354 XmuInternAtom ();
6355   ;
6356   return 0;
6357 }
6358 _ACEOF
6359 rm -f conftest.$ac_objext conftest$ac_exeext
6360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6361   (eval $ac_link) 2>conftest.er1
6362   ac_status=$?
6363   grep -v '^ *+' conftest.er1 >conftest.err
6364   rm -f conftest.er1
6365   cat conftest.err >&5
6366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367   (exit $ac_status); } &&
6368          { ac_try='test -z "$ac_c_werror_flag"
6369                          || test ! -s conftest.err'
6370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371   (eval $ac_try) 2>&5
6372   ac_status=$?
6373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374   (exit $ac_status); }; } &&
6375          { ac_try='test -s conftest$ac_exeext'
6376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377   (eval $ac_try) 2>&5
6378   ac_status=$?
6379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380   (exit $ac_status); }; }; then
6381   ac_cv_lib_Xmu_XmuInternAtom=yes
6382 else
6383   echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6385
6386 ac_cv_lib_Xmu_XmuInternAtom=no
6387 fi
6388 rm -f conftest.err conftest.$ac_objext \
6389       conftest$ac_exeext conftest.$ac_ext
6390 LIBS=$ac_check_lib_save_LIBS
6391 fi
6392 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuInternAtom" >&5
6393 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuInternAtom" >&6
6394 if test $ac_cv_lib_Xmu_XmuInternAtom = yes; then
6395   LIBS="-lXmu $LIBS"
6396 fi
6397
6398
6399 for ac_func in XmuRegisterExternalAgent
6400 do
6401 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6402 echo "$as_me:$LINENO: checking for $ac_func" >&5
6403 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6404 if eval "test \"\${$as_ac_var+set}\" = set"; then
6405   echo $ECHO_N "(cached) $ECHO_C" >&6
6406 else
6407   cat >conftest.$ac_ext <<_ACEOF
6408 /* confdefs.h.  */
6409 _ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h.  */
6413 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6414    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6415 #define $ac_func innocuous_$ac_func
6416
6417 /* System header to define __stub macros and hopefully few prototypes,
6418     which can conflict with char $ac_func (); below.
6419     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6420     <limits.h> exists even on freestanding compilers.  */
6421
6422 #ifdef __STDC__
6423 # include <limits.h>
6424 #else
6425 # include <assert.h>
6426 #endif
6427
6428 #undef $ac_func
6429
6430 /* Override any gcc2 internal prototype to avoid an error.  */
6431 #ifdef __cplusplus
6432 extern "C"
6433 {
6434 #endif
6435 /* We use char because int might match the return type of a gcc2
6436    builtin and then its argument prototype would still apply.  */
6437 char $ac_func ();
6438 /* The GNU C library defines this for functions which it implements
6439     to always fail with ENOSYS.  Some functions are actually named
6440     something starting with __ and the normal name is an alias.  */
6441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6442 choke me
6443 #else
6444 char (*f) () = $ac_func;
6445 #endif
6446 #ifdef __cplusplus
6447 }
6448 #endif
6449
6450 int
6451 main ()
6452 {
6453 return f != $ac_func;
6454   ;
6455   return 0;
6456 }
6457 _ACEOF
6458 rm -f conftest.$ac_objext conftest$ac_exeext
6459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6460   (eval $ac_link) 2>conftest.er1
6461   ac_status=$?
6462   grep -v '^ *+' conftest.er1 >conftest.err
6463   rm -f conftest.er1
6464   cat conftest.err >&5
6465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466   (exit $ac_status); } &&
6467          { ac_try='test -z "$ac_c_werror_flag"
6468                          || test ! -s conftest.err'
6469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6470   (eval $ac_try) 2>&5
6471   ac_status=$?
6472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473   (exit $ac_status); }; } &&
6474          { ac_try='test -s conftest$ac_exeext'
6475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6476   (eval $ac_try) 2>&5
6477   ac_status=$?
6478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479   (exit $ac_status); }; }; then
6480   eval "$as_ac_var=yes"
6481 else
6482   echo "$as_me: failed program was:" >&5
6483 sed 's/^/| /' conftest.$ac_ext >&5
6484
6485 eval "$as_ac_var=no"
6486 fi
6487 rm -f conftest.err conftest.$ac_objext \
6488       conftest$ac_exeext conftest.$ac_ext
6489 fi
6490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6491 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6492 if test `eval echo '${'$as_ac_var'}'` = yes; then
6493   cat >>confdefs.h <<_ACEOF
6494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6495 _ACEOF
6496
6497 fi
6498 done
6499
6500   echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw3d" >&5
6501 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw3d... $ECHO_C" >&6
6502 if test "${ac_cv_lib_Xaw3d_XawInitializeWidgetSet+set}" = set; then
6503   echo $ECHO_N "(cached) $ECHO_C" >&6
6504 else
6505   ac_check_lib_save_LIBS=$LIBS
6506 LIBS="-lXaw3d  $LIBS"
6507 cat >conftest.$ac_ext <<_ACEOF
6508 /* confdefs.h.  */
6509 _ACEOF
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h.  */
6513
6514 /* Override any gcc2 internal prototype to avoid an error.  */
6515 #ifdef __cplusplus
6516 extern "C"
6517 #endif
6518 /* We use char because int might match the return type of a gcc2
6519    builtin and then its argument prototype would still apply.  */
6520 char XawInitializeWidgetSet ();
6521 int
6522 main ()
6523 {
6524 XawInitializeWidgetSet ();
6525   ;
6526   return 0;
6527 }
6528 _ACEOF
6529 rm -f conftest.$ac_objext conftest$ac_exeext
6530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6531   (eval $ac_link) 2>conftest.er1
6532   ac_status=$?
6533   grep -v '^ *+' conftest.er1 >conftest.err
6534   rm -f conftest.er1
6535   cat conftest.err >&5
6536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537   (exit $ac_status); } &&
6538          { ac_try='test -z "$ac_c_werror_flag"
6539                          || test ! -s conftest.err'
6540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541   (eval $ac_try) 2>&5
6542   ac_status=$?
6543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544   (exit $ac_status); }; } &&
6545          { ac_try='test -s conftest$ac_exeext'
6546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547   (eval $ac_try) 2>&5
6548   ac_status=$?
6549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550   (exit $ac_status); }; }; then
6551   ac_cv_lib_Xaw3d_XawInitializeWidgetSet=yes
6552 else
6553   echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6555
6556 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=no
6557 fi
6558 rm -f conftest.err conftest.$ac_objext \
6559       conftest$ac_exeext conftest.$ac_ext
6560 LIBS=$ac_check_lib_save_LIBS
6561 fi
6562 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&5
6563 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&6
6564 if test $ac_cv_lib_Xaw3d_XawInitializeWidgetSet = yes; then
6565   have_xaw=3d
6566 else
6567    echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw" >&5
6568 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw... $ECHO_C" >&6
6569 if test "${ac_cv_lib_Xaw_XawInitializeWidgetSet+set}" = set; then
6570   echo $ECHO_N "(cached) $ECHO_C" >&6
6571 else
6572   ac_check_lib_save_LIBS=$LIBS
6573 LIBS="-lXaw  $LIBS"
6574 cat >conftest.$ac_ext <<_ACEOF
6575 /* confdefs.h.  */
6576 _ACEOF
6577 cat confdefs.h >>conftest.$ac_ext
6578 cat >>conftest.$ac_ext <<_ACEOF
6579 /* end confdefs.h.  */
6580
6581 /* Override any gcc2 internal prototype to avoid an error.  */
6582 #ifdef __cplusplus
6583 extern "C"
6584 #endif
6585 /* We use char because int might match the return type of a gcc2
6586    builtin and then its argument prototype would still apply.  */
6587 char XawInitializeWidgetSet ();
6588 int
6589 main ()
6590 {
6591 XawInitializeWidgetSet ();
6592   ;
6593   return 0;
6594 }
6595 _ACEOF
6596 rm -f conftest.$ac_objext conftest$ac_exeext
6597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6598   (eval $ac_link) 2>conftest.er1
6599   ac_status=$?
6600   grep -v '^ *+' conftest.er1 >conftest.err
6601   rm -f conftest.er1
6602   cat conftest.err >&5
6603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604   (exit $ac_status); } &&
6605          { ac_try='test -z "$ac_c_werror_flag"
6606                          || test ! -s conftest.err'
6607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608   (eval $ac_try) 2>&5
6609   ac_status=$?
6610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611   (exit $ac_status); }; } &&
6612          { ac_try='test -s conftest$ac_exeext'
6613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614   (eval $ac_try) 2>&5
6615   ac_status=$?
6616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617   (exit $ac_status); }; }; then
6618   ac_cv_lib_Xaw_XawInitializeWidgetSet=yes
6619 else
6620   echo "$as_me: failed program was:" >&5
6621 sed 's/^/| /' conftest.$ac_ext >&5
6622
6623 ac_cv_lib_Xaw_XawInitializeWidgetSet=no
6624 fi
6625 rm -f conftest.err conftest.$ac_objext \
6626       conftest$ac_exeext conftest.$ac_ext
6627 LIBS=$ac_check_lib_save_LIBS
6628 fi
6629 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_XawInitializeWidgetSet" >&5
6630 echo "${ECHO_T}$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6
6631 if test $ac_cv_lib_Xaw_XawInitializeWidgetSet = yes; then
6632   have_xaw=yes
6633 else
6634   have_xaw=no
6635 fi
6636
6637 fi
6638
6639   echo "$as_me:$LINENO: checking for XmCreateForm in -lXm" >&5
6640 echo $ECHO_N "checking for XmCreateForm in -lXm... $ECHO_C" >&6
6641 if test "${ac_cv_lib_Xm_XmCreateForm+set}" = set; then
6642   echo $ECHO_N "(cached) $ECHO_C" >&6
6643 else
6644   ac_check_lib_save_LIBS=$LIBS
6645 LIBS="-lXm  $LIBS"
6646 cat >conftest.$ac_ext <<_ACEOF
6647 /* confdefs.h.  */
6648 _ACEOF
6649 cat confdefs.h >>conftest.$ac_ext
6650 cat >>conftest.$ac_ext <<_ACEOF
6651 /* end confdefs.h.  */
6652
6653 /* Override any gcc2 internal prototype to avoid an error.  */
6654 #ifdef __cplusplus
6655 extern "C"
6656 #endif
6657 /* We use char because int might match the return type of a gcc2
6658    builtin and then its argument prototype would still apply.  */
6659 char XmCreateForm ();
6660 int
6661 main ()
6662 {
6663 XmCreateForm ();
6664   ;
6665   return 0;
6666 }
6667 _ACEOF
6668 rm -f conftest.$ac_objext conftest$ac_exeext
6669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6670   (eval $ac_link) 2>conftest.er1
6671   ac_status=$?
6672   grep -v '^ *+' conftest.er1 >conftest.err
6673   rm -f conftest.er1
6674   cat conftest.err >&5
6675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676   (exit $ac_status); } &&
6677          { ac_try='test -z "$ac_c_werror_flag"
6678                          || test ! -s conftest.err'
6679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6680   (eval $ac_try) 2>&5
6681   ac_status=$?
6682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683   (exit $ac_status); }; } &&
6684          { ac_try='test -s conftest$ac_exeext'
6685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6686   (eval $ac_try) 2>&5
6687   ac_status=$?
6688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689   (exit $ac_status); }; }; then
6690   ac_cv_lib_Xm_XmCreateForm=yes
6691 else
6692   echo "$as_me: failed program was:" >&5
6693 sed 's/^/| /' conftest.$ac_ext >&5
6694
6695 ac_cv_lib_Xm_XmCreateForm=no
6696 fi
6697 rm -f conftest.err conftest.$ac_objext \
6698       conftest$ac_exeext conftest.$ac_ext
6699 LIBS=$ac_check_lib_save_LIBS
6700 fi
6701 echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmCreateForm" >&5
6702 echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateForm" >&6
6703 if test $ac_cv_lib_Xm_XmCreateForm = yes; then
6704   have_xm=yes
6705 else
6706   have_xm=no
6707 fi
6708
6709
6710 for ac_func in XShmCreatePixmap
6711 do
6712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6713 echo "$as_me:$LINENO: checking for $ac_func" >&5
6714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6715 if eval "test \"\${$as_ac_var+set}\" = set"; then
6716   echo $ECHO_N "(cached) $ECHO_C" >&6
6717 else
6718   cat >conftest.$ac_ext <<_ACEOF
6719 /* confdefs.h.  */
6720 _ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h.  */
6724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6725    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6726 #define $ac_func innocuous_$ac_func
6727
6728 /* System header to define __stub macros and hopefully few prototypes,
6729     which can conflict with char $ac_func (); below.
6730     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6731     <limits.h> exists even on freestanding compilers.  */
6732
6733 #ifdef __STDC__
6734 # include <limits.h>
6735 #else
6736 # include <assert.h>
6737 #endif
6738
6739 #undef $ac_func
6740
6741 /* Override any gcc2 internal prototype to avoid an error.  */
6742 #ifdef __cplusplus
6743 extern "C"
6744 {
6745 #endif
6746 /* We use char because int might match the return type of a gcc2
6747    builtin and then its argument prototype would still apply.  */
6748 char $ac_func ();
6749 /* The GNU C library defines this for functions which it implements
6750     to always fail with ENOSYS.  Some functions are actually named
6751     something starting with __ and the normal name is an alias.  */
6752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6753 choke me
6754 #else
6755 char (*f) () = $ac_func;
6756 #endif
6757 #ifdef __cplusplus
6758 }
6759 #endif
6760
6761 int
6762 main ()
6763 {
6764 return f != $ac_func;
6765   ;
6766   return 0;
6767 }
6768 _ACEOF
6769 rm -f conftest.$ac_objext conftest$ac_exeext
6770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6771   (eval $ac_link) 2>conftest.er1
6772   ac_status=$?
6773   grep -v '^ *+' conftest.er1 >conftest.err
6774   rm -f conftest.er1
6775   cat conftest.err >&5
6776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777   (exit $ac_status); } &&
6778          { ac_try='test -z "$ac_c_werror_flag"
6779                          || test ! -s conftest.err'
6780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781   (eval $ac_try) 2>&5
6782   ac_status=$?
6783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784   (exit $ac_status); }; } &&
6785          { ac_try='test -s conftest$ac_exeext'
6786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6787   (eval $ac_try) 2>&5
6788   ac_status=$?
6789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790   (exit $ac_status); }; }; then
6791   eval "$as_ac_var=yes"
6792 else
6793   echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.$ac_ext >&5
6795
6796 eval "$as_ac_var=no"
6797 fi
6798 rm -f conftest.err conftest.$ac_objext \
6799       conftest$ac_exeext conftest.$ac_ext
6800 fi
6801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6802 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6803 if test `eval echo '${'$as_ac_var'}'` = yes; then
6804   cat >>confdefs.h <<_ACEOF
6805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6806 _ACEOF
6807
6808 fi
6809 done
6810
6811   LIBS=$KEEPLIBS
6812 fi
6813
6814 # Checks for header files.
6815 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6816 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6817 if test "${ac_cv_header_stdc+set}" = set; then
6818   echo $ECHO_N "(cached) $ECHO_C" >&6
6819 else
6820   cat >conftest.$ac_ext <<_ACEOF
6821 /* confdefs.h.  */
6822 _ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h.  */
6826 #include <stdlib.h>
6827 #include <stdarg.h>
6828 #include <string.h>
6829 #include <float.h>
6830
6831 int
6832 main ()
6833 {
6834
6835   ;
6836   return 0;
6837 }
6838 _ACEOF
6839 rm -f conftest.$ac_objext
6840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6841   (eval $ac_compile) 2>conftest.er1
6842   ac_status=$?
6843   grep -v '^ *+' conftest.er1 >conftest.err
6844   rm -f conftest.er1
6845   cat conftest.err >&5
6846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847   (exit $ac_status); } &&
6848          { ac_try='test -z "$ac_c_werror_flag"
6849                          || test ! -s conftest.err'
6850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6851   (eval $ac_try) 2>&5
6852   ac_status=$?
6853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854   (exit $ac_status); }; } &&
6855          { ac_try='test -s conftest.$ac_objext'
6856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6857   (eval $ac_try) 2>&5
6858   ac_status=$?
6859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860   (exit $ac_status); }; }; then
6861   ac_cv_header_stdc=yes
6862 else
6863   echo "$as_me: failed program was:" >&5
6864 sed 's/^/| /' conftest.$ac_ext >&5
6865
6866 ac_cv_header_stdc=no
6867 fi
6868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6869
6870 if test $ac_cv_header_stdc = yes; then
6871   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6872   cat >conftest.$ac_ext <<_ACEOF
6873 /* confdefs.h.  */
6874 _ACEOF
6875 cat confdefs.h >>conftest.$ac_ext
6876 cat >>conftest.$ac_ext <<_ACEOF
6877 /* end confdefs.h.  */
6878 #include <string.h>
6879
6880 _ACEOF
6881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6882   $EGREP "memchr" >/dev/null 2>&1; then
6883   :
6884 else
6885   ac_cv_header_stdc=no
6886 fi
6887 rm -f conftest*
6888
6889 fi
6890
6891 if test $ac_cv_header_stdc = yes; then
6892   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6893   cat >conftest.$ac_ext <<_ACEOF
6894 /* confdefs.h.  */
6895 _ACEOF
6896 cat confdefs.h >>conftest.$ac_ext
6897 cat >>conftest.$ac_ext <<_ACEOF
6898 /* end confdefs.h.  */
6899 #include <stdlib.h>
6900
6901 _ACEOF
6902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6903   $EGREP "free" >/dev/null 2>&1; then
6904   :
6905 else
6906   ac_cv_header_stdc=no
6907 fi
6908 rm -f conftest*
6909
6910 fi
6911
6912 if test $ac_cv_header_stdc = yes; then
6913   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6914   if test "$cross_compiling" = yes; then
6915   :
6916 else
6917   cat >conftest.$ac_ext <<_ACEOF
6918 /* confdefs.h.  */
6919 _ACEOF
6920 cat confdefs.h >>conftest.$ac_ext
6921 cat >>conftest.$ac_ext <<_ACEOF
6922 /* end confdefs.h.  */
6923 #include <ctype.h>
6924 #if ((' ' & 0x0FF) == 0x020)
6925 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6926 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6927 #else
6928 # define ISLOWER(c) \
6929                    (('a' <= (c) && (c) <= 'i') \
6930                      || ('j' <= (c) && (c) <= 'r') \
6931                      || ('s' <= (c) && (c) <= 'z'))
6932 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6933 #endif
6934
6935 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6936 int
6937 main ()
6938 {
6939   int i;
6940   for (i = 0; i < 256; i++)
6941     if (XOR (islower (i), ISLOWER (i))
6942         || toupper (i) != TOUPPER (i))
6943       exit(2);
6944   exit (0);
6945 }
6946 _ACEOF
6947 rm -f conftest$ac_exeext
6948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6949   (eval $ac_link) 2>&5
6950   ac_status=$?
6951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6954   (eval $ac_try) 2>&5
6955   ac_status=$?
6956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957   (exit $ac_status); }; }; then
6958   :
6959 else
6960   echo "$as_me: program exited with status $ac_status" >&5
6961 echo "$as_me: failed program was:" >&5
6962 sed 's/^/| /' conftest.$ac_ext >&5
6963
6964 ( exit $ac_status )
6965 ac_cv_header_stdc=no
6966 fi
6967 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6968 fi
6969 fi
6970 fi
6971 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6972 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6973 if test $ac_cv_header_stdc = yes; then
6974
6975 cat >>confdefs.h <<\_ACEOF
6976 #define STDC_HEADERS 1
6977 _ACEOF
6978
6979 fi
6980
6981 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6992                   inttypes.h stdint.h unistd.h
6993 do
6994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6995 echo "$as_me:$LINENO: checking for $ac_header" >&5
6996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6998   echo $ECHO_N "(cached) $ECHO_C" >&6
6999 else
7000   cat >conftest.$ac_ext <<_ACEOF
7001 /* confdefs.h.  */
7002 _ACEOF
7003 cat confdefs.h >>conftest.$ac_ext
7004 cat >>conftest.$ac_ext <<_ACEOF
7005 /* end confdefs.h.  */
7006 $ac_includes_default
7007
7008 #include <$ac_header>
7009 _ACEOF
7010 rm -f conftest.$ac_objext
7011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7012   (eval $ac_compile) 2>conftest.er1
7013   ac_status=$?
7014   grep -v '^ *+' conftest.er1 >conftest.err
7015   rm -f conftest.er1
7016   cat conftest.err >&5
7017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018   (exit $ac_status); } &&
7019          { ac_try='test -z "$ac_c_werror_flag"
7020                          || test ! -s conftest.err'
7021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022   (eval $ac_try) 2>&5
7023   ac_status=$?
7024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025   (exit $ac_status); }; } &&
7026          { ac_try='test -s conftest.$ac_objext'
7027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028   (eval $ac_try) 2>&5
7029   ac_status=$?
7030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031   (exit $ac_status); }; }; then
7032   eval "$as_ac_Header=yes"
7033 else
7034   echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.$ac_ext >&5
7036
7037 eval "$as_ac_Header=no"
7038 fi
7039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7040 fi
7041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7044   cat >>confdefs.h <<_ACEOF
7045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7046 _ACEOF
7047
7048 fi
7049
7050 done
7051
7052
7053 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7054 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
7055 if test "${ac_cv_header_stdbool_h+set}" = set; then
7056   echo $ECHO_N "(cached) $ECHO_C" >&6
7057 else
7058   cat >conftest.$ac_ext <<_ACEOF
7059 /* confdefs.h.  */
7060 _ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h.  */
7064
7065 #include <stdbool.h>
7066 #ifndef bool
7067 # error bool is not defined
7068 #endif
7069 #ifndef false
7070 # error false is not defined
7071 #endif
7072 #if false
7073 # error false is not 0
7074 #endif
7075 #ifndef true
7076 # error true is not defined
7077 #endif
7078 #if true != 1
7079 # error true is not 1
7080 #endif
7081 #ifndef __bool_true_false_are_defined
7082 # error __bool_true_false_are_defined is not defined
7083 #endif
7084
7085         struct s { _Bool s: 1; _Bool t; } s;
7086
7087         char a[true == 1 ? 1 : -1];
7088         char b[false == 0 ? 1 : -1];
7089         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7090         char d[(bool) -0.5 == true ? 1 : -1];
7091         bool e = &s;
7092         char f[(_Bool) -0.0 == false ? 1 : -1];
7093         char g[true];
7094         char h[sizeof (_Bool)];
7095         char i[sizeof s.t];
7096
7097 int
7098 main ()
7099 {
7100  return !a + !b + !c + !d + !e + !f + !g + !h + !i;
7101   ;
7102   return 0;
7103 }
7104 _ACEOF
7105 rm -f conftest.$ac_objext
7106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7107   (eval $ac_compile) 2>conftest.er1
7108   ac_status=$?
7109   grep -v '^ *+' conftest.er1 >conftest.err
7110   rm -f conftest.er1
7111   cat conftest.err >&5
7112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113   (exit $ac_status); } &&
7114          { ac_try='test -z "$ac_c_werror_flag"
7115                          || test ! -s conftest.err'
7116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117   (eval $ac_try) 2>&5
7118   ac_status=$?
7119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120   (exit $ac_status); }; } &&
7121          { ac_try='test -s conftest.$ac_objext'
7122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123   (eval $ac_try) 2>&5
7124   ac_status=$?
7125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126   (exit $ac_status); }; }; then
7127   ac_cv_header_stdbool_h=yes
7128 else
7129   echo "$as_me: failed program was:" >&5
7130 sed 's/^/| /' conftest.$ac_ext >&5
7131
7132 ac_cv_header_stdbool_h=no
7133 fi
7134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7135 fi
7136 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7137 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
7138 echo "$as_me:$LINENO: checking for _Bool" >&5
7139 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
7140 if test "${ac_cv_type__Bool+set}" = set; then
7141   echo $ECHO_N "(cached) $ECHO_C" >&6
7142 else
7143   cat >conftest.$ac_ext <<_ACEOF
7144 /* confdefs.h.  */
7145 _ACEOF
7146 cat confdefs.h >>conftest.$ac_ext
7147 cat >>conftest.$ac_ext <<_ACEOF
7148 /* end confdefs.h.  */
7149 $ac_includes_default
7150 int
7151 main ()
7152 {
7153 if ((_Bool *) 0)
7154   return 0;
7155 if (sizeof (_Bool))
7156   return 0;
7157   ;
7158   return 0;
7159 }
7160 _ACEOF
7161 rm -f conftest.$ac_objext
7162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7163   (eval $ac_compile) 2>conftest.er1
7164   ac_status=$?
7165   grep -v '^ *+' conftest.er1 >conftest.err
7166   rm -f conftest.er1
7167   cat conftest.err >&5
7168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169   (exit $ac_status); } &&
7170          { ac_try='test -z "$ac_c_werror_flag"
7171                          || test ! -s conftest.err'
7172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7173   (eval $ac_try) 2>&5
7174   ac_status=$?
7175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176   (exit $ac_status); }; } &&
7177          { ac_try='test -s conftest.$ac_objext'
7178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7179   (eval $ac_try) 2>&5
7180   ac_status=$?
7181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182   (exit $ac_status); }; }; then
7183   ac_cv_type__Bool=yes
7184 else
7185   echo "$as_me: failed program was:" >&5
7186 sed 's/^/| /' conftest.$ac_ext >&5
7187
7188 ac_cv_type__Bool=no
7189 fi
7190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7191 fi
7192 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7193 echo "${ECHO_T}$ac_cv_type__Bool" >&6
7194 if test $ac_cv_type__Bool = yes; then
7195
7196 cat >>confdefs.h <<_ACEOF
7197 #define HAVE__BOOL 1
7198 _ACEOF
7199
7200
7201 fi
7202
7203 if test $ac_cv_header_stdbool_h = yes; then
7204
7205 cat >>confdefs.h <<\_ACEOF
7206 #define HAVE_STDBOOL_H 1
7207 _ACEOF
7208
7209 fi
7210
7211 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7212 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7213 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7214   echo $ECHO_N "(cached) $ECHO_C" >&6
7215 else
7216   cat >conftest.$ac_ext <<_ACEOF
7217 /* confdefs.h.  */
7218 _ACEOF
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h.  */
7222 #include <sys/types.h>
7223 #include <sys/wait.h>
7224 #ifndef WEXITSTATUS
7225 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7226 #endif
7227 #ifndef WIFEXITED
7228 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7229 #endif
7230
7231 int
7232 main ()
7233 {
7234   int s;
7235   wait (&s);
7236   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7237   ;
7238   return 0;
7239 }
7240 _ACEOF
7241 rm -f conftest.$ac_objext
7242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7243   (eval $ac_compile) 2>conftest.er1
7244   ac_status=$?
7245   grep -v '^ *+' conftest.er1 >conftest.err
7246   rm -f conftest.er1
7247   cat conftest.err >&5
7248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249   (exit $ac_status); } &&
7250          { ac_try='test -z "$ac_c_werror_flag"
7251                          || test ! -s conftest.err'
7252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7253   (eval $ac_try) 2>&5
7254   ac_status=$?
7255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256   (exit $ac_status); }; } &&
7257          { ac_try='test -s conftest.$ac_objext'
7258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7259   (eval $ac_try) 2>&5
7260   ac_status=$?
7261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262   (exit $ac_status); }; }; then
7263   ac_cv_header_sys_wait_h=yes
7264 else
7265   echo "$as_me: failed program was:" >&5
7266 sed 's/^/| /' conftest.$ac_ext >&5
7267
7268 ac_cv_header_sys_wait_h=no
7269 fi
7270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7271 fi
7272 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7273 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7274 if test $ac_cv_header_sys_wait_h = yes; then
7275
7276 cat >>confdefs.h <<\_ACEOF
7277 #define HAVE_SYS_WAIT_H 1
7278 _ACEOF
7279
7280 fi
7281
7282 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7283 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7284 if test "${ac_cv_header_time+set}" = set; then
7285   echo $ECHO_N "(cached) $ECHO_C" >&6
7286 else
7287   cat >conftest.$ac_ext <<_ACEOF
7288 /* confdefs.h.  */
7289 _ACEOF
7290 cat confdefs.h >>conftest.$ac_ext
7291 cat >>conftest.$ac_ext <<_ACEOF
7292 /* end confdefs.h.  */
7293 #include <sys/types.h>
7294 #include <sys/time.h>
7295 #include <time.h>
7296
7297 int
7298 main ()
7299 {
7300 if ((struct tm *) 0)
7301 return 0;
7302   ;
7303   return 0;
7304 }
7305 _ACEOF
7306 rm -f conftest.$ac_objext
7307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7308   (eval $ac_compile) 2>conftest.er1
7309   ac_status=$?
7310   grep -v '^ *+' conftest.er1 >conftest.err
7311   rm -f conftest.er1
7312   cat conftest.err >&5
7313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314   (exit $ac_status); } &&
7315          { ac_try='test -z "$ac_c_werror_flag"
7316                          || test ! -s conftest.err'
7317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318   (eval $ac_try) 2>&5
7319   ac_status=$?
7320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321   (exit $ac_status); }; } &&
7322          { ac_try='test -s conftest.$ac_objext'
7323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7324   (eval $ac_try) 2>&5
7325   ac_status=$?
7326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327   (exit $ac_status); }; }; then
7328   ac_cv_header_time=yes
7329 else
7330   echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.$ac_ext >&5
7332
7333 ac_cv_header_time=no
7334 fi
7335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7336 fi
7337 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7338 echo "${ECHO_T}$ac_cv_header_time" >&6
7339 if test $ac_cv_header_time = yes; then
7340
7341 cat >>confdefs.h <<\_ACEOF
7342 #define TIME_WITH_SYS_TIME 1
7343 _ACEOF
7344
7345 fi
7346
7347
7348
7349
7350
7351
7352 ac_header_dirent=no
7353 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7354   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7355 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7356 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7358   echo $ECHO_N "(cached) $ECHO_C" >&6
7359 else
7360   cat >conftest.$ac_ext <<_ACEOF
7361 /* confdefs.h.  */
7362 _ACEOF
7363 cat confdefs.h >>conftest.$ac_ext
7364 cat >>conftest.$ac_ext <<_ACEOF
7365 /* end confdefs.h.  */
7366 #include <sys/types.h>
7367 #include <$ac_hdr>
7368
7369 int
7370 main ()
7371 {
7372 if ((DIR *) 0)
7373 return 0;
7374   ;
7375   return 0;
7376 }
7377 _ACEOF
7378 rm -f conftest.$ac_objext
7379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7380   (eval $ac_compile) 2>conftest.er1
7381   ac_status=$?
7382   grep -v '^ *+' conftest.er1 >conftest.err
7383   rm -f conftest.er1
7384   cat conftest.err >&5
7385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386   (exit $ac_status); } &&
7387          { ac_try='test -z "$ac_c_werror_flag"
7388                          || test ! -s conftest.err'
7389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7390   (eval $ac_try) 2>&5
7391   ac_status=$?
7392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393   (exit $ac_status); }; } &&
7394          { ac_try='test -s conftest.$ac_objext'
7395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7396   (eval $ac_try) 2>&5
7397   ac_status=$?
7398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399   (exit $ac_status); }; }; then
7400   eval "$as_ac_Header=yes"
7401 else
7402   echo "$as_me: failed program was:" >&5
7403 sed 's/^/| /' conftest.$ac_ext >&5
7404
7405 eval "$as_ac_Header=no"
7406 fi
7407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7408 fi
7409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7412   cat >>confdefs.h <<_ACEOF
7413 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7414 _ACEOF
7415
7416 ac_header_dirent=$ac_hdr; break
7417 fi
7418
7419 done
7420 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7421 if test $ac_header_dirent = dirent.h; then
7422   echo "$as_me:$LINENO: checking for library containing opendir" >&5
7423 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7424 if test "${ac_cv_search_opendir+set}" = set; then
7425   echo $ECHO_N "(cached) $ECHO_C" >&6
7426 else
7427   ac_func_search_save_LIBS=$LIBS
7428 ac_cv_search_opendir=no
7429 cat >conftest.$ac_ext <<_ACEOF
7430 /* confdefs.h.  */
7431 _ACEOF
7432 cat confdefs.h >>conftest.$ac_ext
7433 cat >>conftest.$ac_ext <<_ACEOF
7434 /* end confdefs.h.  */
7435
7436 /* Override any gcc2 internal prototype to avoid an error.  */
7437 #ifdef __cplusplus
7438 extern "C"
7439 #endif
7440 /* We use char because int might match the return type of a gcc2
7441    builtin and then its argument prototype would still apply.  */
7442 char opendir ();
7443 int
7444 main ()
7445 {
7446 opendir ();
7447   ;
7448   return 0;
7449 }
7450 _ACEOF
7451 rm -f conftest.$ac_objext conftest$ac_exeext
7452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7453   (eval $ac_link) 2>conftest.er1
7454   ac_status=$?
7455   grep -v '^ *+' conftest.er1 >conftest.err
7456   rm -f conftest.er1
7457   cat conftest.err >&5
7458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459   (exit $ac_status); } &&
7460          { ac_try='test -z "$ac_c_werror_flag"
7461                          || test ! -s conftest.err'
7462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7463   (eval $ac_try) 2>&5
7464   ac_status=$?
7465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466   (exit $ac_status); }; } &&
7467          { ac_try='test -s conftest$ac_exeext'
7468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7469   (eval $ac_try) 2>&5
7470   ac_status=$?
7471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472   (exit $ac_status); }; }; then
7473   ac_cv_search_opendir="none required"
7474 else
7475   echo "$as_me: failed program was:" >&5
7476 sed 's/^/| /' conftest.$ac_ext >&5
7477
7478 fi
7479 rm -f conftest.err conftest.$ac_objext \
7480       conftest$ac_exeext conftest.$ac_ext
7481 if test "$ac_cv_search_opendir" = no; then
7482   for ac_lib in dir; do
7483     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7484     cat >conftest.$ac_ext <<_ACEOF
7485 /* confdefs.h.  */
7486 _ACEOF
7487 cat confdefs.h >>conftest.$ac_ext
7488 cat >>conftest.$ac_ext <<_ACEOF
7489 /* end confdefs.h.  */
7490
7491 /* Override any gcc2 internal prototype to avoid an error.  */
7492 #ifdef __cplusplus
7493 extern "C"
7494 #endif
7495 /* We use char because int might match the return type of a gcc2
7496    builtin and then its argument prototype would still apply.  */
7497 char opendir ();
7498 int
7499 main ()
7500 {
7501 opendir ();
7502   ;
7503   return 0;
7504 }
7505 _ACEOF
7506 rm -f conftest.$ac_objext conftest$ac_exeext
7507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7508   (eval $ac_link) 2>conftest.er1
7509   ac_status=$?
7510   grep -v '^ *+' conftest.er1 >conftest.err
7511   rm -f conftest.er1
7512   cat conftest.err >&5
7513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514   (exit $ac_status); } &&
7515          { ac_try='test -z "$ac_c_werror_flag"
7516                          || test ! -s conftest.err'
7517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7518   (eval $ac_try) 2>&5
7519   ac_status=$?
7520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521   (exit $ac_status); }; } &&
7522          { ac_try='test -s conftest$ac_exeext'
7523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7524   (eval $ac_try) 2>&5
7525   ac_status=$?
7526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527   (exit $ac_status); }; }; then
7528   ac_cv_search_opendir="-l$ac_lib"
7529 break
7530 else
7531   echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7533
7534 fi
7535 rm -f conftest.err conftest.$ac_objext \
7536       conftest$ac_exeext conftest.$ac_ext
7537   done
7538 fi
7539 LIBS=$ac_func_search_save_LIBS
7540 fi
7541 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7542 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7543 if test "$ac_cv_search_opendir" != no; then
7544   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7545
7546 fi
7547
7548 else
7549   echo "$as_me:$LINENO: checking for library containing opendir" >&5
7550 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7551 if test "${ac_cv_search_opendir+set}" = set; then
7552   echo $ECHO_N "(cached) $ECHO_C" >&6
7553 else
7554   ac_func_search_save_LIBS=$LIBS
7555 ac_cv_search_opendir=no
7556 cat >conftest.$ac_ext <<_ACEOF
7557 /* confdefs.h.  */
7558 _ACEOF
7559 cat confdefs.h >>conftest.$ac_ext
7560 cat >>conftest.$ac_ext <<_ACEOF
7561 /* end confdefs.h.  */
7562
7563 /* Override any gcc2 internal prototype to avoid an error.  */
7564 #ifdef __cplusplus
7565 extern "C"
7566 #endif
7567 /* We use char because int might match the return type of a gcc2
7568    builtin and then its argument prototype would still apply.  */
7569 char opendir ();
7570 int
7571 main ()
7572 {
7573 opendir ();
7574   ;
7575   return 0;
7576 }
7577 _ACEOF
7578 rm -f conftest.$ac_objext conftest$ac_exeext
7579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7580   (eval $ac_link) 2>conftest.er1
7581   ac_status=$?
7582   grep -v '^ *+' conftest.er1 >conftest.err
7583   rm -f conftest.er1
7584   cat conftest.err >&5
7585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586   (exit $ac_status); } &&
7587          { ac_try='test -z "$ac_c_werror_flag"
7588                          || test ! -s conftest.err'
7589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590   (eval $ac_try) 2>&5
7591   ac_status=$?
7592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593   (exit $ac_status); }; } &&
7594          { ac_try='test -s conftest$ac_exeext'
7595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596   (eval $ac_try) 2>&5
7597   ac_status=$?
7598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599   (exit $ac_status); }; }; then
7600   ac_cv_search_opendir="none required"
7601 else
7602   echo "$as_me: failed program was:" >&5
7603 sed 's/^/| /' conftest.$ac_ext >&5
7604
7605 fi
7606 rm -f conftest.err conftest.$ac_objext \
7607       conftest$ac_exeext conftest.$ac_ext
7608 if test "$ac_cv_search_opendir" = no; then
7609   for ac_lib in x; do
7610     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7611     cat >conftest.$ac_ext <<_ACEOF
7612 /* confdefs.h.  */
7613 _ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h.  */
7617
7618 /* Override any gcc2 internal prototype to avoid an error.  */
7619 #ifdef __cplusplus
7620 extern "C"
7621 #endif
7622 /* We use char because int might match the return type of a gcc2
7623    builtin and then its argument prototype would still apply.  */
7624 char opendir ();
7625 int
7626 main ()
7627 {
7628 opendir ();
7629   ;
7630   return 0;
7631 }
7632 _ACEOF
7633 rm -f conftest.$ac_objext conftest$ac_exeext
7634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7635   (eval $ac_link) 2>conftest.er1
7636   ac_status=$?
7637   grep -v '^ *+' conftest.er1 >conftest.err
7638   rm -f conftest.er1
7639   cat conftest.err >&5
7640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641   (exit $ac_status); } &&
7642          { ac_try='test -z "$ac_c_werror_flag"
7643                          || test ! -s conftest.err'
7644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7645   (eval $ac_try) 2>&5
7646   ac_status=$?
7647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648   (exit $ac_status); }; } &&
7649          { ac_try='test -s conftest$ac_exeext'
7650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7651   (eval $ac_try) 2>&5
7652   ac_status=$?
7653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654   (exit $ac_status); }; }; then
7655   ac_cv_search_opendir="-l$ac_lib"
7656 break
7657 else
7658   echo "$as_me: failed program was:" >&5
7659 sed 's/^/| /' conftest.$ac_ext >&5
7660
7661 fi
7662 rm -f conftest.err conftest.$ac_objext \
7663       conftest$ac_exeext conftest.$ac_ext
7664   done
7665 fi
7666 LIBS=$ac_func_search_save_LIBS
7667 fi
7668 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7669 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7670 if test "$ac_cv_search_opendir" != no; then
7671   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7672
7673 fi
7674
7675 fi
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715 for ac_header in \
7716   arpa/inet.h \
7717   errno.h \
7718   getopt.h \
7719   glob.h \
7720   dlfcn.h \
7721   fcntl.h \
7722   inttypes.h \
7723   limits.h \
7724   machine/endian.h \
7725   malloc.h \
7726   memory.h \
7727   netdb.h \
7728   netinet/in.h \
7729   nlist.h \
7730   stddef.h \
7731   stdlib.h \
7732   stdint.h \
7733   string.h \
7734   strings.h \
7735   stropts.h \
7736   soundcard.h \
7737   alsa/asoundlib.h \
7738   sys/asoundlib.h \
7739   sys/audioio.h \
7740   sys/awe_voice.h\
7741   sys/ioctl.h \
7742   sys/ipc.h \
7743   sys/param.h \
7744   sys/shm.h \
7745   sys/socket.h \
7746   sys/soundcard.h \
7747   sys/param.h \
7748   sys/time.h \
7749   sys/types.h \
7750   sys/sysctl.h \
7751   termios.h \
7752   unistd.h \
7753   X11/Xlib.h
7754 do
7755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7757   echo "$as_me:$LINENO: checking for $ac_header" >&5
7758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7760   echo $ECHO_N "(cached) $ECHO_C" >&6
7761 fi
7762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7764 else
7765   # Is the header compilable?
7766 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7768 cat >conftest.$ac_ext <<_ACEOF
7769 /* confdefs.h.  */
7770 _ACEOF
7771 cat confdefs.h >>conftest.$ac_ext
7772 cat >>conftest.$ac_ext <<_ACEOF
7773 /* end confdefs.h.  */
7774 $ac_includes_default
7775 #include <$ac_header>
7776 _ACEOF
7777 rm -f conftest.$ac_objext
7778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7779   (eval $ac_compile) 2>conftest.er1
7780   ac_status=$?
7781   grep -v '^ *+' conftest.er1 >conftest.err
7782   rm -f conftest.er1
7783   cat conftest.err >&5
7784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785   (exit $ac_status); } &&
7786          { ac_try='test -z "$ac_c_werror_flag"
7787                          || test ! -s conftest.err'
7788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7789   (eval $ac_try) 2>&5
7790   ac_status=$?
7791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792   (exit $ac_status); }; } &&
7793          { ac_try='test -s conftest.$ac_objext'
7794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795   (eval $ac_try) 2>&5
7796   ac_status=$?
7797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798   (exit $ac_status); }; }; then
7799   ac_header_compiler=yes
7800 else
7801   echo "$as_me: failed program was:" >&5
7802 sed 's/^/| /' conftest.$ac_ext >&5
7803
7804 ac_header_compiler=no
7805 fi
7806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7807 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7808 echo "${ECHO_T}$ac_header_compiler" >&6
7809
7810 # Is the header present?
7811 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7813 cat >conftest.$ac_ext <<_ACEOF
7814 /* confdefs.h.  */
7815 _ACEOF
7816 cat confdefs.h >>conftest.$ac_ext
7817 cat >>conftest.$ac_ext <<_ACEOF
7818 /* end confdefs.h.  */
7819 #include <$ac_header>
7820 _ACEOF
7821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7822   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7823   ac_status=$?
7824   grep -v '^ *+' conftest.er1 >conftest.err
7825   rm -f conftest.er1
7826   cat conftest.err >&5
7827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828   (exit $ac_status); } >/dev/null; then
7829   if test -s conftest.err; then
7830     ac_cpp_err=$ac_c_preproc_warn_flag
7831     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7832   else
7833     ac_cpp_err=
7834   fi
7835 else
7836   ac_cpp_err=yes
7837 fi
7838 if test -z "$ac_cpp_err"; then
7839   ac_header_preproc=yes
7840 else
7841   echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7843
7844   ac_header_preproc=no
7845 fi
7846 rm -f conftest.err conftest.$ac_ext
7847 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7848 echo "${ECHO_T}$ac_header_preproc" >&6
7849
7850 # So?  What about this header?
7851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7852   yes:no: )
7853     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7854 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7855     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7856 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7857     ac_header_preproc=yes
7858     ;;
7859   no:yes:* )
7860     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7861 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7862     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7863 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7864     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7865 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7866     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7867 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7868     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7870     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7871 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7872     (
7873       cat <<\_ASBOX
7874 ## ------------------------------- ##
7875 ## Report this to root@mput.dip.jp ##
7876 ## ------------------------------- ##
7877 _ASBOX
7878     ) |
7879       sed "s/^/$as_me: WARNING:     /" >&2
7880     ;;
7881 esac
7882 echo "$as_me:$LINENO: checking for $ac_header" >&5
7883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7885   echo $ECHO_N "(cached) $ECHO_C" >&6
7886 else
7887   eval "$as_ac_Header=\$ac_header_preproc"
7888 fi
7889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7891
7892 fi
7893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7894   cat >>confdefs.h <<_ACEOF
7895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7896 _ACEOF
7897
7898 fi
7899
7900 done
7901
7902
7903
7904 for ac_header in \
7905   X11/extensions/XShm.h X11/Xmu/ExtAgent.h
7906 do
7907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7908 echo "$as_me:$LINENO: checking for $ac_header" >&5
7909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7911   echo $ECHO_N "(cached) $ECHO_C" >&6
7912 else
7913   cat >conftest.$ac_ext <<_ACEOF
7914 /* confdefs.h.  */
7915 _ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h.  */
7919
7920 #ifdef HAVE_X11_XLIB_H
7921 #include <X11/Xlib.h>
7922 #endif
7923
7924
7925 #include <$ac_header>
7926 _ACEOF
7927 rm -f conftest.$ac_objext
7928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7929   (eval $ac_compile) 2>conftest.er1
7930   ac_status=$?
7931   grep -v '^ *+' conftest.er1 >conftest.err
7932   rm -f conftest.er1
7933   cat conftest.err >&5
7934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935   (exit $ac_status); } &&
7936          { ac_try='test -z "$ac_c_werror_flag"
7937                          || test ! -s conftest.err'
7938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7939   (eval $ac_try) 2>&5
7940   ac_status=$?
7941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942   (exit $ac_status); }; } &&
7943          { ac_try='test -s conftest.$ac_objext'
7944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945   (eval $ac_try) 2>&5
7946   ac_status=$?
7947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948   (exit $ac_status); }; }; then
7949   eval "$as_ac_Header=yes"
7950 else
7951   echo "$as_me: failed program was:" >&5
7952 sed 's/^/| /' conftest.$ac_ext >&5
7953
7954 eval "$as_ac_Header=no"
7955 fi
7956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7957 fi
7958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7959 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7961   cat >>confdefs.h <<_ACEOF
7962 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7963 _ACEOF
7964
7965 fi
7966
7967 done
7968
7969 if test "${ac_cv_header_string_h+set}" = set; then
7970   echo "$as_me:$LINENO: checking for string.h" >&5
7971 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
7972 if test "${ac_cv_header_string_h+set}" = set; then
7973   echo $ECHO_N "(cached) $ECHO_C" >&6
7974 fi
7975 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
7976 echo "${ECHO_T}$ac_cv_header_string_h" >&6
7977 else
7978   # Is the header compilable?
7979 echo "$as_me:$LINENO: checking string.h usability" >&5
7980 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
7981 cat >conftest.$ac_ext <<_ACEOF
7982 /* confdefs.h.  */
7983 _ACEOF
7984 cat confdefs.h >>conftest.$ac_ext
7985 cat >>conftest.$ac_ext <<_ACEOF
7986 /* end confdefs.h.  */
7987 $ac_includes_default
7988 #include <string.h>
7989 _ACEOF
7990 rm -f conftest.$ac_objext
7991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7992   (eval $ac_compile) 2>conftest.er1
7993   ac_status=$?
7994   grep -v '^ *+' conftest.er1 >conftest.err
7995   rm -f conftest.er1
7996   cat conftest.err >&5
7997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998   (exit $ac_status); } &&
7999          { ac_try='test -z "$ac_c_werror_flag"
8000                          || test ! -s conftest.err'
8001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8002   (eval $ac_try) 2>&5
8003   ac_status=$?
8004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005   (exit $ac_status); }; } &&
8006          { ac_try='test -s conftest.$ac_objext'
8007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8008   (eval $ac_try) 2>&5
8009   ac_status=$?
8010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011   (exit $ac_status); }; }; then
8012   ac_header_compiler=yes
8013 else
8014   echo "$as_me: failed program was:" >&5
8015 sed 's/^/| /' conftest.$ac_ext >&5
8016
8017 ac_header_compiler=no
8018 fi
8019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8020 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8021 echo "${ECHO_T}$ac_header_compiler" >&6
8022
8023 # Is the header present?
8024 echo "$as_me:$LINENO: checking string.h presence" >&5
8025 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
8026 cat >conftest.$ac_ext <<_ACEOF
8027 /* confdefs.h.  */
8028 _ACEOF
8029 cat confdefs.h >>conftest.$ac_ext
8030 cat >>conftest.$ac_ext <<_ACEOF
8031 /* end confdefs.h.  */
8032 #include <string.h>
8033 _ACEOF
8034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8035   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8036   ac_status=$?
8037   grep -v '^ *+' conftest.er1 >conftest.err
8038   rm -f conftest.er1
8039   cat conftest.err >&5
8040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041   (exit $ac_status); } >/dev/null; then
8042   if test -s conftest.err; then
8043     ac_cpp_err=$ac_c_preproc_warn_flag
8044     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8045   else
8046     ac_cpp_err=
8047   fi
8048 else
8049   ac_cpp_err=yes
8050 fi
8051 if test -z "$ac_cpp_err"; then
8052   ac_header_preproc=yes
8053 else
8054   echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8056
8057   ac_header_preproc=no
8058 fi
8059 rm -f conftest.err conftest.$ac_ext
8060 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8061 echo "${ECHO_T}$ac_header_preproc" >&6
8062
8063 # So?  What about this header?
8064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8065   yes:no: )
8066     { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
8067 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8068     { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
8069 echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
8070     ac_header_preproc=yes
8071     ;;
8072   no:yes:* )
8073     { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
8074 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
8075     { echo "$as_me:$LINENO: WARNING: string.h:     check for missing prerequisite headers?" >&5
8076 echo "$as_me: WARNING: string.h:     check for missing prerequisite headers?" >&2;}
8077     { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
8078 echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
8079     { echo "$as_me:$LINENO: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&5
8080 echo "$as_me: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8081     { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
8082 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
8083     { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
8084 echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
8085     (
8086       cat <<\_ASBOX
8087 ## ------------------------------- ##
8088 ## Report this to root@mput.dip.jp ##
8089 ## ------------------------------- ##
8090 _ASBOX
8091     ) |
8092       sed "s/^/$as_me: WARNING:     /" >&2
8093     ;;
8094 esac
8095 echo "$as_me:$LINENO: checking for string.h" >&5
8096 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
8097 if test "${ac_cv_header_string_h+set}" = set; then
8098   echo $ECHO_N "(cached) $ECHO_C" >&6
8099 else
8100   ac_cv_header_string_h=$ac_header_preproc
8101 fi
8102 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
8103 echo "${ECHO_T}$ac_cv_header_string_h" >&6
8104
8105 fi
8106 if test $ac_cv_header_string_h = yes; then
8107   :
8108 else
8109
8110 cat >>confdefs.h <<\_ACEOF
8111 #define NO_STRING_H 1
8112 _ACEOF
8113
8114 fi
8115
8116
8117
8118 # Checks for typedefs, structures, and compiler characteristics.
8119 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8120 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8121 if test "${ac_cv_c_bigendian+set}" = set; then
8122   echo $ECHO_N "(cached) $ECHO_C" >&6
8123 else
8124   # See if sys/param.h defines the BYTE_ORDER macro.
8125 cat >conftest.$ac_ext <<_ACEOF
8126 /* confdefs.h.  */
8127 _ACEOF
8128 cat confdefs.h >>conftest.$ac_ext
8129 cat >>conftest.$ac_ext <<_ACEOF
8130 /* end confdefs.h.  */
8131 #include <sys/types.h>
8132 #include <sys/param.h>
8133
8134 int
8135 main ()
8136 {
8137 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8138  bogus endian macros
8139 #endif
8140
8141   ;
8142   return 0;
8143 }
8144 _ACEOF
8145 rm -f conftest.$ac_objext
8146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8147   (eval $ac_compile) 2>conftest.er1
8148   ac_status=$?
8149   grep -v '^ *+' conftest.er1 >conftest.err
8150   rm -f conftest.er1
8151   cat conftest.err >&5
8152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153   (exit $ac_status); } &&
8154          { ac_try='test -z "$ac_c_werror_flag"
8155                          || test ! -s conftest.err'
8156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8157   (eval $ac_try) 2>&5
8158   ac_status=$?
8159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160   (exit $ac_status); }; } &&
8161          { ac_try='test -s conftest.$ac_objext'
8162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8163   (eval $ac_try) 2>&5
8164   ac_status=$?
8165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166   (exit $ac_status); }; }; then
8167   # It does; now see whether it defined to BIG_ENDIAN or not.
8168 cat >conftest.$ac_ext <<_ACEOF
8169 /* confdefs.h.  */
8170 _ACEOF
8171 cat confdefs.h >>conftest.$ac_ext
8172 cat >>conftest.$ac_ext <<_ACEOF
8173 /* end confdefs.h.  */
8174 #include <sys/types.h>
8175 #include <sys/param.h>
8176
8177 int
8178 main ()
8179 {
8180 #if BYTE_ORDER != BIG_ENDIAN
8181  not big endian
8182 #endif
8183
8184   ;
8185   return 0;
8186 }
8187 _ACEOF
8188 rm -f conftest.$ac_objext
8189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8190   (eval $ac_compile) 2>conftest.er1
8191   ac_status=$?
8192   grep -v '^ *+' conftest.er1 >conftest.err
8193   rm -f conftest.er1
8194   cat conftest.err >&5
8195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196   (exit $ac_status); } &&
8197          { ac_try='test -z "$ac_c_werror_flag"
8198                          || test ! -s conftest.err'
8199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200   (eval $ac_try) 2>&5
8201   ac_status=$?
8202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203   (exit $ac_status); }; } &&
8204          { ac_try='test -s conftest.$ac_objext'
8205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206   (eval $ac_try) 2>&5
8207   ac_status=$?
8208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209   (exit $ac_status); }; }; then
8210   ac_cv_c_bigendian=yes
8211 else
8212   echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8214
8215 ac_cv_c_bigendian=no
8216 fi
8217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8218 else
8219   echo "$as_me: failed program was:" >&5
8220 sed 's/^/| /' conftest.$ac_ext >&5
8221
8222 # It does not; compile a test program.
8223 if test "$cross_compiling" = yes; then
8224   # try to guess the endianness by grepping values into an object file
8225   ac_cv_c_bigendian=unknown
8226   cat >conftest.$ac_ext <<_ACEOF
8227 /* confdefs.h.  */
8228 _ACEOF
8229 cat confdefs.h >>conftest.$ac_ext
8230 cat >>conftest.$ac_ext <<_ACEOF
8231 /* end confdefs.h.  */
8232 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8233 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8234 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8235 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8236 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8237 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8238 int
8239 main ()
8240 {
8241  _ascii (); _ebcdic ();
8242   ;
8243   return 0;
8244 }
8245 _ACEOF
8246 rm -f conftest.$ac_objext
8247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8248   (eval $ac_compile) 2>conftest.er1
8249   ac_status=$?
8250   grep -v '^ *+' conftest.er1 >conftest.err
8251   rm -f conftest.er1
8252   cat conftest.err >&5
8253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254   (exit $ac_status); } &&
8255          { ac_try='test -z "$ac_c_werror_flag"
8256                          || test ! -s conftest.err'
8257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258   (eval $ac_try) 2>&5
8259   ac_status=$?
8260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261   (exit $ac_status); }; } &&
8262          { ac_try='test -s conftest.$ac_objext'
8263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8264   (eval $ac_try) 2>&5
8265   ac_status=$?
8266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267   (exit $ac_status); }; }; then
8268   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8269   ac_cv_c_bigendian=yes
8270 fi
8271 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8272   if test "$ac_cv_c_bigendian" = unknown; then
8273     ac_cv_c_bigendian=no
8274   else
8275     # finding both strings is unlikely to happen, but who knows?
8276     ac_cv_c_bigendian=unknown
8277   fi
8278 fi
8279 else
8280   echo "$as_me: failed program was:" >&5
8281 sed 's/^/| /' conftest.$ac_ext >&5
8282
8283 fi
8284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8285 else
8286   cat >conftest.$ac_ext <<_ACEOF
8287 /* confdefs.h.  */
8288 _ACEOF
8289 cat confdefs.h >>conftest.$ac_ext
8290 cat >>conftest.$ac_ext <<_ACEOF
8291 /* end confdefs.h.  */
8292 int
8293 main ()
8294 {
8295   /* Are we little or big endian?  From Harbison&Steele.  */
8296   union
8297   {
8298     long l;
8299     char c[sizeof (long)];
8300   } u;
8301   u.l = 1;
8302   exit (u.c[sizeof (long) - 1] == 1);
8303 }
8304 _ACEOF
8305 rm -f conftest$ac_exeext
8306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8307   (eval $ac_link) 2>&5
8308   ac_status=$?
8309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8312   (eval $ac_try) 2>&5
8313   ac_status=$?
8314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315   (exit $ac_status); }; }; then
8316   ac_cv_c_bigendian=no
8317 else
8318   echo "$as_me: program exited with status $ac_status" >&5
8319 echo "$as_me: failed program was:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8321
8322 ( exit $ac_status )
8323 ac_cv_c_bigendian=yes
8324 fi
8325 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8326 fi
8327 fi
8328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8329 fi
8330 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8331 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8332 case $ac_cv_c_bigendian in
8333   yes)
8334
8335 cat >>confdefs.h <<\_ACEOF
8336 #define WORDS_BIGENDIAN 1
8337 _ACEOF
8338  ;;
8339   no)
8340      ;;
8341   *)
8342     { { echo "$as_me:$LINENO: error: unknown endianness
8343 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8344 echo "$as_me: error: unknown endianness
8345 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8346    { (exit 1); exit 1; }; } ;;
8347 esac
8348
8349
8350 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
8351 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
8352 if test "${ac_cv_c_char_unsigned+set}" = set; then
8353   echo $ECHO_N "(cached) $ECHO_C" >&6
8354 else
8355   cat >conftest.$ac_ext <<_ACEOF
8356 /* confdefs.h.  */
8357 _ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h.  */
8361 $ac_includes_default
8362 int
8363 main ()
8364 {
8365 static int test_array [1 - 2 * !(((char) -1) < 0)];
8366 test_array [0] = 0
8367
8368   ;
8369   return 0;
8370 }
8371 _ACEOF
8372 rm -f conftest.$ac_objext
8373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8374   (eval $ac_compile) 2>conftest.er1
8375   ac_status=$?
8376   grep -v '^ *+' conftest.er1 >conftest.err
8377   rm -f conftest.er1
8378   cat conftest.err >&5
8379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380   (exit $ac_status); } &&
8381          { ac_try='test -z "$ac_c_werror_flag"
8382                          || test ! -s conftest.err'
8383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384   (eval $ac_try) 2>&5
8385   ac_status=$?
8386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387   (exit $ac_status); }; } &&
8388          { ac_try='test -s conftest.$ac_objext'
8389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390   (eval $ac_try) 2>&5
8391   ac_status=$?
8392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393   (exit $ac_status); }; }; then
8394   ac_cv_c_char_unsigned=no
8395 else
8396   echo "$as_me: failed program was:" >&5
8397 sed 's/^/| /' conftest.$ac_ext >&5
8398
8399 ac_cv_c_char_unsigned=yes
8400 fi
8401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8402 fi
8403 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
8404 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
8405 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
8406   cat >>confdefs.h <<\_ACEOF
8407 #define __CHAR_UNSIGNED__ 1
8408 _ACEOF
8409
8410 fi
8411
8412 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8413 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8414 if test "${ac_cv_c_const+set}" = set; then
8415   echo $ECHO_N "(cached) $ECHO_C" >&6
8416 else
8417   cat >conftest.$ac_ext <<_ACEOF
8418 /* confdefs.h.  */
8419 _ACEOF
8420 cat confdefs.h >>conftest.$ac_ext
8421 cat >>conftest.$ac_ext <<_ACEOF
8422 /* end confdefs.h.  */
8423
8424 int
8425 main ()
8426 {
8427 /* FIXME: Include the comments suggested by Paul. */
8428 #ifndef __cplusplus
8429   /* Ultrix mips cc rejects this.  */
8430   typedef int charset[2];
8431   const charset x;
8432   /* SunOS 4.1.1 cc rejects this.  */
8433   char const *const *ccp;
8434   char **p;
8435   /* NEC SVR4.0.2 mips cc rejects this.  */
8436   struct point {int x, y;};
8437   static struct point const zero = {0,0};
8438   /* AIX XL C 1.02.0.0 rejects this.
8439      It does not let you subtract one const X* pointer from another in
8440      an arm of an if-expression whose if-part is not a constant
8441      expression */
8442   const char *g = "string";
8443   ccp = &g + (g ? g-g : 0);
8444   /* HPUX 7.0 cc rejects these. */
8445   ++ccp;
8446   p = (char**) ccp;
8447   ccp = (char const *const *) p;
8448   { /* SCO 3.2v4 cc rejects this.  */
8449     char *t;
8450     char const *s = 0 ? (char *) 0 : (char const *) 0;
8451
8452     *t++ = 0;
8453   }
8454   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8455     int x[] = {25, 17};
8456     const int *foo = &x[0];
8457     ++foo;
8458   }
8459   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8460     typedef const int *iptr;
8461     iptr p = 0;
8462     ++p;
8463   }
8464   { /* AIX XL C 1.02.0.0 rejects this saying
8465        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8466     struct s { int j; const int *ap[3]; };
8467     struct s *b; b->j = 5;
8468   }
8469   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8470     const int foo = 10;
8471   }
8472 #endif
8473
8474   ;
8475   return 0;
8476 }
8477 _ACEOF
8478 rm -f conftest.$ac_objext
8479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8480   (eval $ac_compile) 2>conftest.er1
8481   ac_status=$?
8482   grep -v '^ *+' conftest.er1 >conftest.err
8483   rm -f conftest.er1
8484   cat conftest.err >&5
8485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486   (exit $ac_status); } &&
8487          { ac_try='test -z "$ac_c_werror_flag"
8488                          || test ! -s conftest.err'
8489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8490   (eval $ac_try) 2>&5
8491   ac_status=$?
8492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493   (exit $ac_status); }; } &&
8494          { ac_try='test -s conftest.$ac_objext'
8495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496   (eval $ac_try) 2>&5
8497   ac_status=$?
8498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499   (exit $ac_status); }; }; then
8500   ac_cv_c_const=yes
8501 else
8502   echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.$ac_ext >&5
8504
8505 ac_cv_c_const=no
8506 fi
8507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8508 fi
8509 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8510 echo "${ECHO_T}$ac_cv_c_const" >&6
8511 if test $ac_cv_c_const = no; then
8512
8513 cat >>confdefs.h <<\_ACEOF
8514 #define const
8515 _ACEOF
8516
8517 fi
8518
8519 echo "$as_me:$LINENO: checking for inline" >&5
8520 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8521 if test "${ac_cv_c_inline+set}" = set; then
8522   echo $ECHO_N "(cached) $ECHO_C" >&6
8523 else
8524   ac_cv_c_inline=no
8525 for ac_kw in inline __inline__ __inline; do
8526   cat >conftest.$ac_ext <<_ACEOF
8527 /* confdefs.h.  */
8528 _ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h.  */
8532 #ifndef __cplusplus
8533 typedef int foo_t;
8534 static $ac_kw foo_t static_foo () {return 0; }
8535 $ac_kw foo_t foo () {return 0; }
8536 #endif
8537
8538 _ACEOF
8539 rm -f conftest.$ac_objext
8540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8541   (eval $ac_compile) 2>conftest.er1
8542   ac_status=$?
8543   grep -v '^ *+' conftest.er1 >conftest.err
8544   rm -f conftest.er1
8545   cat conftest.err >&5
8546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547   (exit $ac_status); } &&
8548          { ac_try='test -z "$ac_c_werror_flag"
8549                          || test ! -s conftest.err'
8550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8551   (eval $ac_try) 2>&5
8552   ac_status=$?
8553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554   (exit $ac_status); }; } &&
8555          { ac_try='test -s conftest.$ac_objext'
8556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8557   (eval $ac_try) 2>&5
8558   ac_status=$?
8559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560   (exit $ac_status); }; }; then
8561   ac_cv_c_inline=$ac_kw; break
8562 else
8563   echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8565
8566 fi
8567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8568 done
8569
8570 fi
8571 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8572 echo "${ECHO_T}$ac_cv_c_inline" >&6
8573
8574
8575 case $ac_cv_c_inline in
8576   inline | yes) ;;
8577   *)
8578     case $ac_cv_c_inline in
8579       no) ac_val=;;
8580       *) ac_val=$ac_cv_c_inline;;
8581     esac
8582     cat >>confdefs.h <<_ACEOF
8583 #ifndef __cplusplus
8584 #define inline $ac_val
8585 #endif
8586 _ACEOF
8587     ;;
8588 esac
8589
8590 echo "$as_me:$LINENO: checking for working volatile" >&5
8591 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8592 if test "${ac_cv_c_volatile+set}" = set; then
8593   echo $ECHO_N "(cached) $ECHO_C" >&6
8594 else
8595   cat >conftest.$ac_ext <<_ACEOF
8596 /* confdefs.h.  */
8597 _ACEOF
8598 cat confdefs.h >>conftest.$ac_ext
8599 cat >>conftest.$ac_ext <<_ACEOF
8600 /* end confdefs.h.  */
8601
8602 int
8603 main ()
8604 {
8605
8606 volatile int x;
8607 int * volatile y;
8608   ;
8609   return 0;
8610 }
8611 _ACEOF
8612 rm -f conftest.$ac_objext
8613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8614   (eval $ac_compile) 2>conftest.er1
8615   ac_status=$?
8616   grep -v '^ *+' conftest.er1 >conftest.err
8617   rm -f conftest.er1
8618   cat conftest.err >&5
8619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); } &&
8621          { ac_try='test -z "$ac_c_werror_flag"
8622                          || test ! -s conftest.err'
8623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8624   (eval $ac_try) 2>&5
8625   ac_status=$?
8626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627   (exit $ac_status); }; } &&
8628          { ac_try='test -s conftest.$ac_objext'
8629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8630   (eval $ac_try) 2>&5
8631   ac_status=$?
8632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633   (exit $ac_status); }; }; then
8634   ac_cv_c_volatile=yes
8635 else
8636   echo "$as_me: failed program was:" >&5
8637 sed 's/^/| /' conftest.$ac_ext >&5
8638
8639 ac_cv_c_volatile=no
8640 fi
8641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8642 fi
8643 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8644 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8645 if test $ac_cv_c_volatile = no; then
8646
8647 cat >>confdefs.h <<\_ACEOF
8648 #define volatile
8649 _ACEOF
8650
8651 fi
8652
8653 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
8654 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
8655 if test "${ac_cv_c_stringize+set}" = set; then
8656   echo $ECHO_N "(cached) $ECHO_C" >&6
8657 else
8658   cat >conftest.$ac_ext <<_ACEOF
8659 /* confdefs.h.  */
8660 _ACEOF
8661 cat confdefs.h >>conftest.$ac_ext
8662 cat >>conftest.$ac_ext <<_ACEOF
8663 /* end confdefs.h.  */
8664 #define x(y) #y
8665
8666 char *s = x(teststring);
8667 _ACEOF
8668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8669   $EGREP "#teststring" >/dev/null 2>&1; then
8670   ac_cv_c_stringize=no
8671 else
8672   ac_cv_c_stringize=yes
8673 fi
8674 rm -f conftest*
8675
8676 fi
8677 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
8678 echo "${ECHO_T}$ac_cv_c_stringize" >&6
8679 if test $ac_cv_c_stringize = yes; then
8680
8681 cat >>confdefs.h <<\_ACEOF
8682 #define HAVE_STRINGIZE 1
8683 _ACEOF
8684
8685 fi
8686
8687 echo "$as_me:$LINENO: checking for function prototypes" >&5
8688 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8689 if test "$ac_cv_prog_cc_stdc" != no; then
8690   echo "$as_me:$LINENO: result: yes" >&5
8691 echo "${ECHO_T}yes" >&6
8692
8693 cat >>confdefs.h <<\_ACEOF
8694 #define PROTOTYPES 1
8695 _ACEOF
8696
8697
8698 cat >>confdefs.h <<\_ACEOF
8699 #define __PROTOTYPES 1
8700 _ACEOF
8701
8702 else
8703   echo "$as_me:$LINENO: result: no" >&5
8704 echo "${ECHO_T}no" >&6
8705 fi
8706
8707 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8708 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8709 if test "${ac_cv_struct_tm+set}" = set; then
8710   echo $ECHO_N "(cached) $ECHO_C" >&6
8711 else
8712   cat >conftest.$ac_ext <<_ACEOF
8713 /* confdefs.h.  */
8714 _ACEOF
8715 cat confdefs.h >>conftest.$ac_ext
8716 cat >>conftest.$ac_ext <<_ACEOF
8717 /* end confdefs.h.  */
8718 #include <sys/types.h>
8719 #include <time.h>
8720
8721 int
8722 main ()
8723 {
8724 struct tm *tp; tp->tm_sec;
8725   ;
8726   return 0;
8727 }
8728 _ACEOF
8729 rm -f conftest.$ac_objext
8730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8731   (eval $ac_compile) 2>conftest.er1
8732   ac_status=$?
8733   grep -v '^ *+' conftest.er1 >conftest.err
8734   rm -f conftest.er1
8735   cat conftest.err >&5
8736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737   (exit $ac_status); } &&
8738          { ac_try='test -z "$ac_c_werror_flag"
8739                          || test ! -s conftest.err'
8740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8741   (eval $ac_try) 2>&5
8742   ac_status=$?
8743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744   (exit $ac_status); }; } &&
8745          { ac_try='test -s conftest.$ac_objext'
8746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8747   (eval $ac_try) 2>&5
8748   ac_status=$?
8749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750   (exit $ac_status); }; }; then
8751   ac_cv_struct_tm=time.h
8752 else
8753   echo "$as_me: failed program was:" >&5
8754 sed 's/^/| /' conftest.$ac_ext >&5
8755
8756 ac_cv_struct_tm=sys/time.h
8757 fi
8758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8759 fi
8760 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8761 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8762 if test $ac_cv_struct_tm = sys/time.h; then
8763
8764 cat >>confdefs.h <<\_ACEOF
8765 #define TM_IN_SYS_TIME 1
8766 _ACEOF
8767
8768 fi
8769
8770 echo "$as_me:$LINENO: checking for size_t" >&5
8771 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8772 if test "${ac_cv_type_size_t+set}" = set; then
8773   echo $ECHO_N "(cached) $ECHO_C" >&6
8774 else
8775   cat >conftest.$ac_ext <<_ACEOF
8776 /* confdefs.h.  */
8777 _ACEOF
8778 cat confdefs.h >>conftest.$ac_ext
8779 cat >>conftest.$ac_ext <<_ACEOF
8780 /* end confdefs.h.  */
8781 $ac_includes_default
8782 int
8783 main ()
8784 {
8785 if ((size_t *) 0)
8786   return 0;
8787 if (sizeof (size_t))
8788   return 0;
8789   ;
8790   return 0;
8791 }
8792 _ACEOF
8793 rm -f conftest.$ac_objext
8794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8795   (eval $ac_compile) 2>conftest.er1
8796   ac_status=$?
8797   grep -v '^ *+' conftest.er1 >conftest.err
8798   rm -f conftest.er1
8799   cat conftest.err >&5
8800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801   (exit $ac_status); } &&
8802          { ac_try='test -z "$ac_c_werror_flag"
8803                          || test ! -s conftest.err'
8804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8805   (eval $ac_try) 2>&5
8806   ac_status=$?
8807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808   (exit $ac_status); }; } &&
8809          { ac_try='test -s conftest.$ac_objext'
8810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8811   (eval $ac_try) 2>&5
8812   ac_status=$?
8813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814   (exit $ac_status); }; }; then
8815   ac_cv_type_size_t=yes
8816 else
8817   echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.$ac_ext >&5
8819
8820 ac_cv_type_size_t=no
8821 fi
8822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8823 fi
8824 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8825 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8826 if test $ac_cv_type_size_t = yes; then
8827   :
8828 else
8829
8830 cat >>confdefs.h <<_ACEOF
8831 #define size_t unsigned
8832 _ACEOF
8833
8834 fi
8835
8836 echo "$as_me:$LINENO: checking for off_t" >&5
8837 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8838 if test "${ac_cv_type_off_t+set}" = set; then
8839   echo $ECHO_N "(cached) $ECHO_C" >&6
8840 else
8841   cat >conftest.$ac_ext <<_ACEOF
8842 /* confdefs.h.  */
8843 _ACEOF
8844 cat confdefs.h >>conftest.$ac_ext
8845 cat >>conftest.$ac_ext <<_ACEOF
8846 /* end confdefs.h.  */
8847 $ac_includes_default
8848 int
8849 main ()
8850 {
8851 if ((off_t *) 0)
8852   return 0;
8853 if (sizeof (off_t))
8854   return 0;
8855   ;
8856   return 0;
8857 }
8858 _ACEOF
8859 rm -f conftest.$ac_objext
8860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8861   (eval $ac_compile) 2>conftest.er1
8862   ac_status=$?
8863   grep -v '^ *+' conftest.er1 >conftest.err
8864   rm -f conftest.er1
8865   cat conftest.err >&5
8866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867   (exit $ac_status); } &&
8868          { ac_try='test -z "$ac_c_werror_flag"
8869                          || test ! -s conftest.err'
8870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871   (eval $ac_try) 2>&5
8872   ac_status=$?
8873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874   (exit $ac_status); }; } &&
8875          { ac_try='test -s conftest.$ac_objext'
8876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8877   (eval $ac_try) 2>&5
8878   ac_status=$?
8879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880   (exit $ac_status); }; }; then
8881   ac_cv_type_off_t=yes
8882 else
8883   echo "$as_me: failed program was:" >&5
8884 sed 's/^/| /' conftest.$ac_ext >&5
8885
8886 ac_cv_type_off_t=no
8887 fi
8888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8889 fi
8890 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8891 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8892 if test $ac_cv_type_off_t = yes; then
8893   :
8894 else
8895
8896 cat >>confdefs.h <<_ACEOF
8897 #define off_t long
8898 _ACEOF
8899
8900 fi
8901
8902 echo "$as_me:$LINENO: checking for pid_t" >&5
8903 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8904 if test "${ac_cv_type_pid_t+set}" = set; then
8905   echo $ECHO_N "(cached) $ECHO_C" >&6
8906 else
8907   cat >conftest.$ac_ext <<_ACEOF
8908 /* confdefs.h.  */
8909 _ACEOF
8910 cat confdefs.h >>conftest.$ac_ext
8911 cat >>conftest.$ac_ext <<_ACEOF
8912 /* end confdefs.h.  */
8913 $ac_includes_default
8914 int
8915 main ()
8916 {
8917 if ((pid_t *) 0)
8918   return 0;
8919 if (sizeof (pid_t))
8920   return 0;
8921   ;
8922   return 0;
8923 }
8924 _ACEOF
8925 rm -f conftest.$ac_objext
8926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8927   (eval $ac_compile) 2>conftest.er1
8928   ac_status=$?
8929   grep -v '^ *+' conftest.er1 >conftest.err
8930   rm -f conftest.er1
8931   cat conftest.err >&5
8932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933   (exit $ac_status); } &&
8934          { ac_try='test -z "$ac_c_werror_flag"
8935                          || test ! -s conftest.err'
8936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8937   (eval $ac_try) 2>&5
8938   ac_status=$?
8939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940   (exit $ac_status); }; } &&
8941          { ac_try='test -s conftest.$ac_objext'
8942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8943   (eval $ac_try) 2>&5
8944   ac_status=$?
8945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946   (exit $ac_status); }; }; then
8947   ac_cv_type_pid_t=yes
8948 else
8949   echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.$ac_ext >&5
8951
8952 ac_cv_type_pid_t=no
8953 fi
8954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8955 fi
8956 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8957 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8958 if test $ac_cv_type_pid_t = yes; then
8959   :
8960 else
8961
8962 cat >>confdefs.h <<_ACEOF
8963 #define pid_t int
8964 _ACEOF
8965
8966 fi
8967
8968
8969 echo "$as_me:$LINENO: checking volatile declaration" >&5
8970 echo $ECHO_N "checking volatile declaration... $ECHO_C" >&6
8971 if test "${timidity_cv_type_volatile+set}" = set; then
8972   echo $ECHO_N "(cached) $ECHO_C" >&6
8973 else
8974   cat >conftest.$ac_ext <<_ACEOF
8975 /* confdefs.h.  */
8976 _ACEOF
8977 cat confdefs.h >>conftest.$ac_ext
8978 cat >>conftest.$ac_ext <<_ACEOF
8979 /* end confdefs.h.  */
8980
8981 int
8982 main ()
8983 {
8984 volatile int x
8985   ;
8986   return 0;
8987 }
8988 _ACEOF
8989 rm -f conftest.$ac_objext
8990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8991   (eval $ac_compile) 2>conftest.er1
8992   ac_status=$?
8993   grep -v '^ *+' conftest.er1 >conftest.err
8994   rm -f conftest.er1
8995   cat conftest.err >&5
8996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997   (exit $ac_status); } &&
8998          { ac_try='test -z "$ac_c_werror_flag"
8999                          || test ! -s conftest.err'
9000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9001   (eval $ac_try) 2>&5
9002   ac_status=$?
9003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004   (exit $ac_status); }; } &&
9005          { ac_try='test -s conftest.$ac_objext'
9006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9007   (eval $ac_try) 2>&5
9008   ac_status=$?
9009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010   (exit $ac_status); }; }; then
9011   timidity_cv_type_volatile=yes
9012 else
9013   echo "$as_me: failed program was:" >&5
9014 sed 's/^/| /' conftest.$ac_ext >&5
9015
9016 timidity_cv_type_volatile=no
9017 fi
9018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9019 fi
9020 echo "$as_me:$LINENO: result: $timidity_cv_type_volatile" >&5
9021 echo "${ECHO_T}$timidity_cv_type_volatile" >&6
9022 if test $timidity_cv_type_volatile = no; then
9023
9024 cat >>confdefs.h <<\_ACEOF
9025 #define NO_VOLATILE 1
9026 _ACEOF
9027
9028 fi
9029
9030 echo "$as_me:$LINENO: checking union semun declaration" >&5
9031 echo $ECHO_N "checking union semun declaration... $ECHO_C" >&6
9032 if test "${timidity_cv_type_union_semun+set}" = set; then
9033   echo $ECHO_N "(cached) $ECHO_C" >&6
9034 else
9035   cat >conftest.$ac_ext <<_ACEOF
9036 /* confdefs.h.  */
9037 _ACEOF
9038 cat confdefs.h >>conftest.$ac_ext
9039 cat >>conftest.$ac_ext <<_ACEOF
9040 /* end confdefs.h.  */
9041
9042 #include <sys/types.h>
9043 #include <sys/ipc.h>
9044 #include <sys/sem.h>
9045
9046 int
9047 main ()
9048 {
9049 union semun x
9050   ;
9051   return 0;
9052 }
9053 _ACEOF
9054 rm -f conftest.$ac_objext
9055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9056   (eval $ac_compile) 2>conftest.er1
9057   ac_status=$?
9058   grep -v '^ *+' conftest.er1 >conftest.err
9059   rm -f conftest.er1
9060   cat conftest.err >&5
9061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062   (exit $ac_status); } &&
9063          { ac_try='test -z "$ac_c_werror_flag"
9064                          || test ! -s conftest.err'
9065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066   (eval $ac_try) 2>&5
9067   ac_status=$?
9068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069   (exit $ac_status); }; } &&
9070          { ac_try='test -s conftest.$ac_objext'
9071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9072   (eval $ac_try) 2>&5
9073   ac_status=$?
9074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075   (exit $ac_status); }; }; then
9076   timidity_cv_type_union_semun=yes
9077 else
9078   echo "$as_me: failed program was:" >&5
9079 sed 's/^/| /' conftest.$ac_ext >&5
9080
9081 timidity_cv_type_union_semun=no
9082 fi
9083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9084 fi
9085 echo "$as_me:$LINENO: result: $timidity_cv_type_union_semun" >&5
9086 echo "${ECHO_T}$timidity_cv_type_union_semun" >&6
9087 if test $timidity_cv_type_union_semun = yes; then
9088
9089 cat >>confdefs.h <<\_ACEOF
9090 #define HAVE_UNION_SEMUN 1
9091 _ACEOF
9092
9093 fi
9094
9095 if test "x$CYGNUS" = xyes; then
9096   echo "$as_me:$LINENO: checking Cygwin new mmsystem" >&5
9097 echo $ECHO_N "checking Cygwin new mmsystem... $ECHO_C" >&6
9098 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
9099   echo $ECHO_N "(cached) $ECHO_C" >&6
9100 else
9101   cat >conftest.$ac_ext <<_ACEOF
9102 /* confdefs.h.  */
9103 _ACEOF
9104 cat confdefs.h >>conftest.$ac_ext
9105 cat >>conftest.$ac_ext <<_ACEOF
9106 /* end confdefs.h.  */
9107
9108 #include <windows.h>
9109 #include <mmsystem.h>
9110
9111 int
9112 main ()
9113 {
9114 return WOM_OPEN != 0x3BB
9115   ;
9116   return 0;
9117 }
9118 _ACEOF
9119 rm -f conftest.$ac_objext
9120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9121   (eval $ac_compile) 2>conftest.er1
9122   ac_status=$?
9123   grep -v '^ *+' conftest.er1 >conftest.err
9124   rm -f conftest.er1
9125   cat conftest.err >&5
9126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127   (exit $ac_status); } &&
9128          { ac_try='test -z "$ac_c_werror_flag"
9129                          || test ! -s conftest.err'
9130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9131   (eval $ac_try) 2>&5
9132   ac_status=$?
9133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134   (exit $ac_status); }; } &&
9135          { ac_try='test -s conftest.$ac_objext'
9136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9137   (eval $ac_try) 2>&5
9138   ac_status=$?
9139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140   (exit $ac_status); }; }; then
9141   timidity_cv_header_new_mmsystem=yes
9142 else
9143   echo "$as_me: failed program was:" >&5
9144 sed 's/^/| /' conftest.$ac_ext >&5
9145
9146 timidity_cv_header_new_mmsystem=no
9147 fi
9148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9149 fi
9150 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
9151 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
9152   if test $timidity_cv_header_new_mmsystem = yes; then
9153
9154 cat >>confdefs.h <<\_ACEOF
9155 #define HAVE_NEW_MMSYSTEM 1
9156 _ACEOF
9157
9158   fi
9159 fi
9160
9161 if test "x$MINGW" = xyes; then
9162   echo "$as_me:$LINENO: checking Mingw new mmsystem" >&5
9163 echo $ECHO_N "checking Mingw new mmsystem... $ECHO_C" >&6
9164 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
9165   echo $ECHO_N "(cached) $ECHO_C" >&6
9166 else
9167   cat >conftest.$ac_ext <<_ACEOF
9168 /* confdefs.h.  */
9169 _ACEOF
9170 cat confdefs.h >>conftest.$ac_ext
9171 cat >>conftest.$ac_ext <<_ACEOF
9172 /* end confdefs.h.  */
9173
9174 #include <windows.h>
9175 #include <mmsystem.h>
9176
9177 int
9178 main ()
9179 {
9180 return WOM_OPEN != 0x3BB
9181   ;
9182   return 0;
9183 }
9184 _ACEOF
9185 rm -f conftest.$ac_objext
9186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9187   (eval $ac_compile) 2>conftest.er1
9188   ac_status=$?
9189   grep -v '^ *+' conftest.er1 >conftest.err
9190   rm -f conftest.er1
9191   cat conftest.err >&5
9192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193   (exit $ac_status); } &&
9194          { ac_try='test -z "$ac_c_werror_flag"
9195                          || test ! -s conftest.err'
9196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197   (eval $ac_try) 2>&5
9198   ac_status=$?
9199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200   (exit $ac_status); }; } &&
9201          { ac_try='test -s conftest.$ac_objext'
9202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9203   (eval $ac_try) 2>&5
9204   ac_status=$?
9205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206   (exit $ac_status); }; }; then
9207   timidity_cv_header_new_mmsystem=yes
9208 else
9209   echo "$as_me: failed program was:" >&5
9210 sed 's/^/| /' conftest.$ac_ext >&5
9211
9212 timidity_cv_header_new_mmsystem=no
9213 fi
9214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9215 fi
9216 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
9217 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
9218   if test $timidity_cv_header_new_mmsystem = yes; then
9219
9220 cat >>confdefs.h <<\_ACEOF
9221 #define HAVE_NEW_MMSYSTEM 1
9222 _ACEOF
9223
9224   fi
9225 fi
9226
9227 # Checks for library functions.
9228 echo "$as_me:$LINENO: checking for error_at_line" >&5
9229 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
9230 if test "${ac_cv_lib_error_at_line+set}" = set; then
9231   echo $ECHO_N "(cached) $ECHO_C" >&6
9232 else
9233   cat >conftest.$ac_ext <<_ACEOF
9234 /* confdefs.h.  */
9235 _ACEOF
9236 cat confdefs.h >>conftest.$ac_ext
9237 cat >>conftest.$ac_ext <<_ACEOF
9238 /* end confdefs.h.  */
9239 $ac_includes_default
9240 int
9241 main ()
9242 {
9243 error_at_line (0, 0, "", 0, "");
9244   ;
9245   return 0;
9246 }
9247 _ACEOF
9248 rm -f conftest.$ac_objext conftest$ac_exeext
9249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9250   (eval $ac_link) 2>conftest.er1
9251   ac_status=$?
9252   grep -v '^ *+' conftest.er1 >conftest.err
9253   rm -f conftest.er1
9254   cat conftest.err >&5
9255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256   (exit $ac_status); } &&
9257          { ac_try='test -z "$ac_c_werror_flag"
9258                          || test ! -s conftest.err'
9259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9260   (eval $ac_try) 2>&5
9261   ac_status=$?
9262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263   (exit $ac_status); }; } &&
9264          { ac_try='test -s conftest$ac_exeext'
9265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9266   (eval $ac_try) 2>&5
9267   ac_status=$?
9268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269   (exit $ac_status); }; }; then
9270   ac_cv_lib_error_at_line=yes
9271 else
9272   echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.$ac_ext >&5
9274
9275 ac_cv_lib_error_at_line=no
9276 fi
9277 rm -f conftest.err conftest.$ac_objext \
9278       conftest$ac_exeext conftest.$ac_ext
9279 fi
9280 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
9281 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
9282 if test $ac_cv_lib_error_at_line = no; then
9283   case $LIBOBJS in
9284     "error.$ac_objext"   | \
9285   *" error.$ac_objext"   | \
9286     "error.$ac_objext "* | \
9287   *" error.$ac_objext "* ) ;;
9288   *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
9289 esac
9290
9291 fi
9292
9293
9294
9295 for ac_header in unistd.h vfork.h
9296 do
9297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9299   echo "$as_me:$LINENO: checking for $ac_header" >&5
9300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9302   echo $ECHO_N "(cached) $ECHO_C" >&6
9303 fi
9304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9306 else
9307   # Is the header compilable?
9308 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9310 cat >conftest.$ac_ext <<_ACEOF
9311 /* confdefs.h.  */
9312 _ACEOF
9313 cat confdefs.h >>conftest.$ac_ext
9314 cat >>conftest.$ac_ext <<_ACEOF
9315 /* end confdefs.h.  */
9316 $ac_includes_default
9317 #include <$ac_header>
9318 _ACEOF
9319 rm -f conftest.$ac_objext
9320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9321   (eval $ac_compile) 2>conftest.er1
9322   ac_status=$?
9323   grep -v '^ *+' conftest.er1 >conftest.err
9324   rm -f conftest.er1
9325   cat conftest.err >&5
9326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327   (exit $ac_status); } &&
9328          { ac_try='test -z "$ac_c_werror_flag"
9329                          || test ! -s conftest.err'
9330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9331   (eval $ac_try) 2>&5
9332   ac_status=$?
9333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334   (exit $ac_status); }; } &&
9335          { ac_try='test -s conftest.$ac_objext'
9336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9337   (eval $ac_try) 2>&5
9338   ac_status=$?
9339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340   (exit $ac_status); }; }; then
9341   ac_header_compiler=yes
9342 else
9343   echo "$as_me: failed program was:" >&5
9344 sed 's/^/| /' conftest.$ac_ext >&5
9345
9346 ac_header_compiler=no
9347 fi
9348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9349 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9350 echo "${ECHO_T}$ac_header_compiler" >&6
9351
9352 # Is the header present?
9353 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9354 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9355 cat >conftest.$ac_ext <<_ACEOF
9356 /* confdefs.h.  */
9357 _ACEOF
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h.  */
9361 #include <$ac_header>
9362 _ACEOF
9363 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9364   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9365   ac_status=$?
9366   grep -v '^ *+' conftest.er1 >conftest.err
9367   rm -f conftest.er1
9368   cat conftest.err >&5
9369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370   (exit $ac_status); } >/dev/null; then
9371   if test -s conftest.err; then
9372     ac_cpp_err=$ac_c_preproc_warn_flag
9373     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9374   else
9375     ac_cpp_err=
9376   fi
9377 else
9378   ac_cpp_err=yes
9379 fi
9380 if test -z "$ac_cpp_err"; then
9381   ac_header_preproc=yes
9382 else
9383   echo "$as_me: failed program was:" >&5
9384 sed 's/^/| /' conftest.$ac_ext >&5
9385
9386   ac_header_preproc=no
9387 fi
9388 rm -f conftest.err conftest.$ac_ext
9389 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9390 echo "${ECHO_T}$ac_header_preproc" >&6
9391
9392 # So?  What about this header?
9393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9394   yes:no: )
9395     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9396 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9397     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9398 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9399     ac_header_preproc=yes
9400     ;;
9401   no:yes:* )
9402     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9403 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9404     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9405 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9406     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9407 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9408     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9409 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9410     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9412     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9413 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9414     (
9415       cat <<\_ASBOX
9416 ## ------------------------------- ##
9417 ## Report this to root@mput.dip.jp ##
9418 ## ------------------------------- ##
9419 _ASBOX
9420     ) |
9421       sed "s/^/$as_me: WARNING:     /" >&2
9422     ;;
9423 esac
9424 echo "$as_me:$LINENO: checking for $ac_header" >&5
9425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9427   echo $ECHO_N "(cached) $ECHO_C" >&6
9428 else
9429   eval "$as_ac_Header=\$ac_header_preproc"
9430 fi
9431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9433
9434 fi
9435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9436   cat >>confdefs.h <<_ACEOF
9437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9438 _ACEOF
9439
9440 fi
9441
9442 done
9443
9444
9445
9446 for ac_func in fork vfork
9447 do
9448 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9449 echo "$as_me:$LINENO: checking for $ac_func" >&5
9450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9451 if eval "test \"\${$as_ac_var+set}\" = set"; then
9452   echo $ECHO_N "(cached) $ECHO_C" >&6
9453 else
9454   cat >conftest.$ac_ext <<_ACEOF
9455 /* confdefs.h.  */
9456 _ACEOF
9457 cat confdefs.h >>conftest.$ac_ext
9458 cat >>conftest.$ac_ext <<_ACEOF
9459 /* end confdefs.h.  */
9460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9461    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9462 #define $ac_func innocuous_$ac_func
9463
9464 /* System header to define __stub macros and hopefully few prototypes,
9465     which can conflict with char $ac_func (); below.
9466     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9467     <limits.h> exists even on freestanding compilers.  */
9468
9469 #ifdef __STDC__
9470 # include <limits.h>
9471 #else
9472 # include <assert.h>
9473 #endif
9474
9475 #undef $ac_func
9476
9477 /* Override any gcc2 internal prototype to avoid an error.  */
9478 #ifdef __cplusplus
9479 extern "C"
9480 {
9481 #endif
9482 /* We use char because int might match the return type of a gcc2
9483    builtin and then its argument prototype would still apply.  */
9484 char $ac_func ();
9485 /* The GNU C library defines this for functions which it implements
9486     to always fail with ENOSYS.  Some functions are actually named
9487     something starting with __ and the normal name is an alias.  */
9488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9489 choke me
9490 #else
9491 char (*f) () = $ac_func;
9492 #endif
9493 #ifdef __cplusplus
9494 }
9495 #endif
9496
9497 int
9498 main ()
9499 {
9500 return f != $ac_func;
9501   ;
9502   return 0;
9503 }
9504 _ACEOF
9505 rm -f conftest.$ac_objext conftest$ac_exeext
9506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9507   (eval $ac_link) 2>conftest.er1
9508   ac_status=$?
9509   grep -v '^ *+' conftest.er1 >conftest.err
9510   rm -f conftest.er1
9511   cat conftest.err >&5
9512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513   (exit $ac_status); } &&
9514          { ac_try='test -z "$ac_c_werror_flag"
9515                          || test ! -s conftest.err'
9516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9517   (eval $ac_try) 2>&5
9518   ac_status=$?
9519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520   (exit $ac_status); }; } &&
9521          { ac_try='test -s conftest$ac_exeext'
9522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9523   (eval $ac_try) 2>&5
9524   ac_status=$?
9525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526   (exit $ac_status); }; }; then
9527   eval "$as_ac_var=yes"
9528 else
9529   echo "$as_me: failed program was:" >&5
9530 sed 's/^/| /' conftest.$ac_ext >&5
9531
9532 eval "$as_ac_var=no"
9533 fi
9534 rm -f conftest.err conftest.$ac_objext \
9535       conftest$ac_exeext conftest.$ac_ext
9536 fi
9537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9538 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9539 if test `eval echo '${'$as_ac_var'}'` = yes; then
9540   cat >>confdefs.h <<_ACEOF
9541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9542 _ACEOF
9543
9544 fi
9545 done
9546
9547 if test "x$ac_cv_func_fork" = xyes; then
9548   echo "$as_me:$LINENO: checking for working fork" >&5
9549 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9550 if test "${ac_cv_func_fork_works+set}" = set; then
9551   echo $ECHO_N "(cached) $ECHO_C" >&6
9552 else
9553   if test "$cross_compiling" = yes; then
9554   ac_cv_func_fork_works=cross
9555 else
9556   cat >conftest.$ac_ext <<_ACEOF
9557 /* By Ruediger Kuhlmann. */
9558       #include <sys/types.h>
9559       #if HAVE_UNISTD_H
9560       # include <unistd.h>
9561       #endif
9562       /* Some systems only have a dummy stub for fork() */
9563       int main ()
9564       {
9565         if (fork() < 0)
9566           exit (1);
9567         exit (0);
9568       }
9569 _ACEOF
9570 rm -f conftest$ac_exeext
9571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9572   (eval $ac_link) 2>&5
9573   ac_status=$?
9574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9577   (eval $ac_try) 2>&5
9578   ac_status=$?
9579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580   (exit $ac_status); }; }; then
9581   ac_cv_func_fork_works=yes
9582 else
9583   echo "$as_me: program exited with status $ac_status" >&5
9584 echo "$as_me: failed program was:" >&5
9585 sed 's/^/| /' conftest.$ac_ext >&5
9586
9587 ( exit $ac_status )
9588 ac_cv_func_fork_works=no
9589 fi
9590 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9591 fi
9592 fi
9593 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9594 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9595
9596 else
9597   ac_cv_func_fork_works=$ac_cv_func_fork
9598 fi
9599 if test "x$ac_cv_func_fork_works" = xcross; then
9600   case $host in
9601     *-*-amigaos* | *-*-msdosdjgpp*)
9602       # Override, as these systems have only a dummy fork() stub
9603       ac_cv_func_fork_works=no
9604       ;;
9605     *)
9606       ac_cv_func_fork_works=yes
9607       ;;
9608   esac
9609   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9610 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9611 fi
9612 ac_cv_func_vfork_works=$ac_cv_func_vfork
9613 if test "x$ac_cv_func_vfork" = xyes; then
9614   echo "$as_me:$LINENO: checking for working vfork" >&5
9615 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
9616 if test "${ac_cv_func_vfork_works+set}" = set; then
9617   echo $ECHO_N "(cached) $ECHO_C" >&6
9618 else
9619   if test "$cross_compiling" = yes; then
9620   ac_cv_func_vfork_works=cross
9621 else
9622   cat >conftest.$ac_ext <<_ACEOF
9623 /* confdefs.h.  */
9624 _ACEOF
9625 cat confdefs.h >>conftest.$ac_ext
9626 cat >>conftest.$ac_ext <<_ACEOF
9627 /* end confdefs.h.  */
9628 /* Thanks to Paul Eggert for this test.  */
9629 #include <stdio.h>
9630 #include <stdlib.h>
9631 #include <sys/types.h>
9632 #include <sys/stat.h>
9633 #include <sys/wait.h>
9634 #if HAVE_UNISTD_H
9635 # include <unistd.h>
9636 #endif
9637 #if HAVE_VFORK_H
9638 # include <vfork.h>
9639 #endif
9640 /* On some sparc systems, changes by the child to local and incoming
9641    argument registers are propagated back to the parent.  The compiler
9642    is told about this with #include <vfork.h>, but some compilers
9643    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
9644    static variable whose address is put into a register that is
9645    clobbered by the vfork.  */
9646 static void
9647 #ifdef __cplusplus
9648 sparc_address_test (int arg)
9649 # else
9650 sparc_address_test (arg) int arg;
9651 #endif
9652 {
9653   static pid_t child;
9654   if (!child) {
9655     child = vfork ();
9656     if (child < 0) {
9657       perror ("vfork");
9658       _exit(2);
9659     }
9660     if (!child) {
9661       arg = getpid();
9662       write(-1, "", 0);
9663       _exit (arg);
9664     }
9665   }
9666 }
9667
9668 int
9669 main ()
9670 {
9671   pid_t parent = getpid ();
9672   pid_t child;
9673
9674   sparc_address_test (0);
9675
9676   child = vfork ();
9677
9678   if (child == 0) {
9679     /* Here is another test for sparc vfork register problems.  This
9680        test uses lots of local variables, at least as many local
9681        variables as main has allocated so far including compiler
9682        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
9683        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
9684        reuse the register of parent for one of the local variables,
9685        since it will think that parent can't possibly be used any more
9686        in this routine.  Assigning to the local variable will thus
9687        munge parent in the parent process.  */
9688     pid_t
9689       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9690       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9691     /* Convince the compiler that p..p7 are live; otherwise, it might
9692        use the same hardware register for all 8 local variables.  */
9693     if (p != p1 || p != p2 || p != p3 || p != p4
9694         || p != p5 || p != p6 || p != p7)
9695       _exit(1);
9696
9697     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9698        from child file descriptors.  If the child closes a descriptor
9699        before it execs or exits, this munges the parent's descriptor
9700        as well.  Test for this by closing stdout in the child.  */
9701     _exit(close(fileno(stdout)) != 0);
9702   } else {
9703     int status;
9704     struct stat st;
9705
9706     while (wait(&status) != child)
9707       ;
9708     exit(
9709          /* Was there some problem with vforking?  */
9710          child < 0
9711
9712          /* Did the child fail?  (This shouldn't happen.)  */
9713          || status
9714
9715          /* Did the vfork/compiler bug occur?  */
9716          || parent != getpid()
9717
9718          /* Did the file descriptor bug occur?  */
9719          || fstat(fileno(stdout), &st) != 0
9720          );
9721   }
9722 }
9723 _ACEOF
9724 rm -f conftest$ac_exeext
9725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9726   (eval $ac_link) 2>&5
9727   ac_status=$?
9728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731   (eval $ac_try) 2>&5
9732   ac_status=$?
9733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734   (exit $ac_status); }; }; then
9735   ac_cv_func_vfork_works=yes
9736 else
9737   echo "$as_me: program exited with status $ac_status" >&5
9738 echo "$as_me: failed program was:" >&5
9739 sed 's/^/| /' conftest.$ac_ext >&5
9740
9741 ( exit $ac_status )
9742 ac_cv_func_vfork_works=no
9743 fi
9744 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9745 fi
9746 fi
9747 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9748 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
9749
9750 fi;
9751 if test "x$ac_cv_func_fork_works" = xcross; then
9752   ac_cv_func_vfork_works=$ac_cv_func_vfork
9753   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9754 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9755 fi
9756
9757 if test "x$ac_cv_func_vfork_works" = xyes; then
9758
9759 cat >>confdefs.h <<\_ACEOF
9760 #define HAVE_WORKING_VFORK 1
9761 _ACEOF
9762
9763 else
9764
9765 cat >>confdefs.h <<\_ACEOF
9766 #define vfork fork
9767 _ACEOF
9768
9769 fi
9770 if test "x$ac_cv_func_fork_works" = xyes; then
9771
9772 cat >>confdefs.h <<\_ACEOF
9773 #define HAVE_WORKING_FORK 1
9774 _ACEOF
9775
9776 fi
9777
9778 echo "$as_me:$LINENO: checking for working memcmp" >&5
9779 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9780 if test "${ac_cv_func_memcmp_working+set}" = set; then
9781   echo $ECHO_N "(cached) $ECHO_C" >&6
9782 else
9783   if test "$cross_compiling" = yes; then
9784   ac_cv_func_memcmp_working=no
9785 else
9786   cat >conftest.$ac_ext <<_ACEOF
9787 /* confdefs.h.  */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h.  */
9792 $ac_includes_default
9793 int
9794 main ()
9795 {
9796
9797   /* Some versions of memcmp are not 8-bit clean.  */
9798   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9799   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9800     exit (1);
9801
9802   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9803      or more and with at least one buffer not starting on a 4-byte boundary.
9804      William Lewis provided this test program.   */
9805   {
9806     char foo[21];
9807     char bar[21];
9808     int i;
9809     for (i = 0; i < 4; i++)
9810       {
9811         char *a = foo + i;
9812         char *b = bar + i;
9813         strcpy (a, "--------01111111");
9814         strcpy (b, "--------10000000");
9815         if (memcmp (a, b, 16) >= 0)
9816           exit (1);
9817       }
9818     exit (0);
9819   }
9820
9821   ;
9822   return 0;
9823 }
9824 _ACEOF
9825 rm -f conftest$ac_exeext
9826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9827   (eval $ac_link) 2>&5
9828   ac_status=$?
9829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9832   (eval $ac_try) 2>&5
9833   ac_status=$?
9834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835   (exit $ac_status); }; }; then
9836   ac_cv_func_memcmp_working=yes
9837 else
9838   echo "$as_me: program exited with status $ac_status" >&5
9839 echo "$as_me: failed program was:" >&5
9840 sed 's/^/| /' conftest.$ac_ext >&5
9841
9842 ( exit $ac_status )
9843 ac_cv_func_memcmp_working=no
9844 fi
9845 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9846 fi
9847 fi
9848 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9849 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9850 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
9851     "memcmp.$ac_objext"   | \
9852   *" memcmp.$ac_objext"   | \
9853     "memcmp.$ac_objext "* | \
9854   *" memcmp.$ac_objext "* ) ;;
9855   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
9856 esac
9857
9858
9859
9860
9861 for ac_header in stdlib.h unistd.h
9862 do
9863 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9865   echo "$as_me:$LINENO: checking for $ac_header" >&5
9866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9868   echo $ECHO_N "(cached) $ECHO_C" >&6
9869 fi
9870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9872 else
9873   # Is the header compilable?
9874 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9875 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9876 cat >conftest.$ac_ext <<_ACEOF
9877 /* confdefs.h.  */
9878 _ACEOF
9879 cat confdefs.h >>conftest.$ac_ext
9880 cat >>conftest.$ac_ext <<_ACEOF
9881 /* end confdefs.h.  */
9882 $ac_includes_default
9883 #include <$ac_header>
9884 _ACEOF
9885 rm -f conftest.$ac_objext
9886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9887   (eval $ac_compile) 2>conftest.er1
9888   ac_status=$?
9889   grep -v '^ *+' conftest.er1 >conftest.err
9890   rm -f conftest.er1
9891   cat conftest.err >&5
9892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893   (exit $ac_status); } &&
9894          { ac_try='test -z "$ac_c_werror_flag"
9895                          || test ! -s conftest.err'
9896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9897   (eval $ac_try) 2>&5
9898   ac_status=$?
9899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900   (exit $ac_status); }; } &&
9901          { ac_try='test -s conftest.$ac_objext'
9902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9903   (eval $ac_try) 2>&5
9904   ac_status=$?
9905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906   (exit $ac_status); }; }; then
9907   ac_header_compiler=yes
9908 else
9909   echo "$as_me: failed program was:" >&5
9910 sed 's/^/| /' conftest.$ac_ext >&5
9911
9912 ac_header_compiler=no
9913 fi
9914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9915 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9916 echo "${ECHO_T}$ac_header_compiler" >&6
9917
9918 # Is the header present?
9919 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9921 cat >conftest.$ac_ext <<_ACEOF
9922 /* confdefs.h.  */
9923 _ACEOF
9924 cat confdefs.h >>conftest.$ac_ext
9925 cat >>conftest.$ac_ext <<_ACEOF
9926 /* end confdefs.h.  */
9927 #include <$ac_header>
9928 _ACEOF
9929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9930   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9931   ac_status=$?
9932   grep -v '^ *+' conftest.er1 >conftest.err
9933   rm -f conftest.er1
9934   cat conftest.err >&5
9935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936   (exit $ac_status); } >/dev/null; then
9937   if test -s conftest.err; then
9938     ac_cpp_err=$ac_c_preproc_warn_flag
9939     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9940   else
9941     ac_cpp_err=
9942   fi
9943 else
9944   ac_cpp_err=yes
9945 fi
9946 if test -z "$ac_cpp_err"; then
9947   ac_header_preproc=yes
9948 else
9949   echo "$as_me: failed program was:" >&5
9950 sed 's/^/| /' conftest.$ac_ext >&5
9951
9952   ac_header_preproc=no
9953 fi
9954 rm -f conftest.err conftest.$ac_ext
9955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9956 echo "${ECHO_T}$ac_header_preproc" >&6
9957
9958 # So?  What about this header?
9959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9960   yes:no: )
9961     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9963     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9964 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9965     ac_header_preproc=yes
9966     ;;
9967   no:yes:* )
9968     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9969 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9970     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9971 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9972     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9973 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9974     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9975 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9976     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9978     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9979 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9980     (
9981       cat <<\_ASBOX
9982 ## ------------------------------- ##
9983 ## Report this to root@mput.dip.jp ##
9984 ## ------------------------------- ##
9985 _ASBOX
9986     ) |
9987       sed "s/^/$as_me: WARNING:     /" >&2
9988     ;;
9989 esac
9990 echo "$as_me:$LINENO: checking for $ac_header" >&5
9991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9993   echo $ECHO_N "(cached) $ECHO_C" >&6
9994 else
9995   eval "$as_ac_Header=\$ac_header_preproc"
9996 fi
9997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9999
10000 fi
10001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10002   cat >>confdefs.h <<_ACEOF
10003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10004 _ACEOF
10005
10006 fi
10007
10008 done
10009
10010
10011 for ac_func in getpagesize
10012 do
10013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10014 echo "$as_me:$LINENO: checking for $ac_func" >&5
10015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10016 if eval "test \"\${$as_ac_var+set}\" = set"; then
10017   echo $ECHO_N "(cached) $ECHO_C" >&6
10018 else
10019   cat >conftest.$ac_ext <<_ACEOF
10020 /* confdefs.h.  */
10021 _ACEOF
10022 cat confdefs.h >>conftest.$ac_ext
10023 cat >>conftest.$ac_ext <<_ACEOF
10024 /* end confdefs.h.  */
10025 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10026    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10027 #define $ac_func innocuous_$ac_func
10028
10029 /* System header to define __stub macros and hopefully few prototypes,
10030     which can conflict with char $ac_func (); below.
10031     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10032     <limits.h> exists even on freestanding compilers.  */
10033
10034 #ifdef __STDC__
10035 # include <limits.h>
10036 #else
10037 # include <assert.h>
10038 #endif
10039
10040 #undef $ac_func
10041
10042 /* Override any gcc2 internal prototype to avoid an error.  */
10043 #ifdef __cplusplus
10044 extern "C"
10045 {
10046 #endif
10047 /* We use char because int might match the return type of a gcc2
10048    builtin and then its argument prototype would still apply.  */
10049 char $ac_func ();
10050 /* The GNU C library defines this for functions which it implements
10051     to always fail with ENOSYS.  Some functions are actually named
10052     something starting with __ and the normal name is an alias.  */
10053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10054 choke me
10055 #else
10056 char (*f) () = $ac_func;
10057 #endif
10058 #ifdef __cplusplus
10059 }
10060 #endif
10061
10062 int
10063 main ()
10064 {
10065 return f != $ac_func;
10066   ;
10067   return 0;
10068 }
10069 _ACEOF
10070 rm -f conftest.$ac_objext conftest$ac_exeext
10071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10072   (eval $ac_link) 2>conftest.er1
10073   ac_status=$?
10074   grep -v '^ *+' conftest.er1 >conftest.err
10075   rm -f conftest.er1
10076   cat conftest.err >&5
10077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078   (exit $ac_status); } &&
10079          { ac_try='test -z "$ac_c_werror_flag"
10080                          || test ! -s conftest.err'
10081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10082   (eval $ac_try) 2>&5
10083   ac_status=$?
10084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085   (exit $ac_status); }; } &&
10086          { ac_try='test -s conftest$ac_exeext'
10087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10088   (eval $ac_try) 2>&5
10089   ac_status=$?
10090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091   (exit $ac_status); }; }; then
10092   eval "$as_ac_var=yes"
10093 else
10094   echo "$as_me: failed program was:" >&5
10095 sed 's/^/| /' conftest.$ac_ext >&5
10096
10097 eval "$as_ac_var=no"
10098 fi
10099 rm -f conftest.err conftest.$ac_objext \
10100       conftest$ac_exeext conftest.$ac_ext
10101 fi
10102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10103 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10104 if test `eval echo '${'$as_ac_var'}'` = yes; then
10105   cat >>confdefs.h <<_ACEOF
10106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10107 _ACEOF
10108
10109 fi
10110 done
10111
10112 echo "$as_me:$LINENO: checking for working mmap" >&5
10113 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10114 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10115   echo $ECHO_N "(cached) $ECHO_C" >&6
10116 else
10117   if test "$cross_compiling" = yes; then
10118   ac_cv_func_mmap_fixed_mapped=no
10119 else
10120   cat >conftest.$ac_ext <<_ACEOF
10121 /* confdefs.h.  */
10122 _ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h.  */
10126 $ac_includes_default
10127 /* malloc might have been renamed as rpl_malloc. */
10128 #undef malloc
10129
10130 /* Thanks to Mike Haertel and Jim Avera for this test.
10131    Here is a matrix of mmap possibilities:
10132         mmap private not fixed
10133         mmap private fixed at somewhere currently unmapped
10134         mmap private fixed at somewhere already mapped
10135         mmap shared not fixed
10136         mmap shared fixed at somewhere currently unmapped
10137         mmap shared fixed at somewhere already mapped
10138    For private mappings, we should verify that changes cannot be read()
10139    back from the file, nor mmap's back from the file at a different
10140    address.  (There have been systems where private was not correctly
10141    implemented like the infamous i386 svr4.0, and systems where the
10142    VM page cache was not coherent with the file system buffer cache
10143    like early versions of FreeBSD and possibly contemporary NetBSD.)
10144    For shared mappings, we should conversely verify that changes get
10145    propagated back to all the places they're supposed to be.
10146
10147    Grep wants private fixed already mapped.
10148    The main things grep needs to know about mmap are:
10149    * does it exist and is it safe to write into the mmap'd area
10150    * how to use it (BSD variants)  */
10151
10152 #include <fcntl.h>
10153 #include <sys/mman.h>
10154
10155 #if !STDC_HEADERS && !HAVE_STDLIB_H
10156 char *malloc ();
10157 #endif
10158
10159 /* This mess was copied from the GNU getpagesize.h.  */
10160 #if !HAVE_GETPAGESIZE
10161 /* Assume that all systems that can run configure have sys/param.h.  */
10162 # if !HAVE_SYS_PARAM_H
10163 #  define HAVE_SYS_PARAM_H 1
10164 # endif
10165
10166 # ifdef _SC_PAGESIZE
10167 #  define getpagesize() sysconf(_SC_PAGESIZE)
10168 # else /* no _SC_PAGESIZE */
10169 #  if HAVE_SYS_PARAM_H
10170 #   include <sys/param.h>
10171 #   ifdef EXEC_PAGESIZE
10172 #    define getpagesize() EXEC_PAGESIZE
10173 #   else /* no EXEC_PAGESIZE */
10174 #    ifdef NBPG
10175 #     define getpagesize() NBPG * CLSIZE
10176 #     ifndef CLSIZE
10177 #      define CLSIZE 1
10178 #     endif /* no CLSIZE */
10179 #    else /* no NBPG */
10180 #     ifdef NBPC
10181 #      define getpagesize() NBPC
10182 #     else /* no NBPC */
10183 #      ifdef PAGESIZE
10184 #       define getpagesize() PAGESIZE
10185 #      endif /* PAGESIZE */
10186 #     endif /* no NBPC */
10187 #    endif /* no NBPG */
10188 #   endif /* no EXEC_PAGESIZE */
10189 #  else /* no HAVE_SYS_PARAM_H */
10190 #   define getpagesize() 8192   /* punt totally */
10191 #  endif /* no HAVE_SYS_PARAM_H */
10192 # endif /* no _SC_PAGESIZE */
10193
10194 #endif /* no HAVE_GETPAGESIZE */
10195
10196 int
10197 main ()
10198 {
10199   char *data, *data2, *data3;
10200   int i, pagesize;
10201   int fd;
10202
10203   pagesize = getpagesize ();
10204
10205   /* First, make a file with some known garbage in it. */
10206   data = (char *) malloc (pagesize);
10207   if (!data)
10208     exit (1);
10209   for (i = 0; i < pagesize; ++i)
10210     *(data + i) = rand ();
10211   umask (0);
10212   fd = creat ("conftest.mmap", 0600);
10213   if (fd < 0)
10214     exit (1);
10215   if (write (fd, data, pagesize) != pagesize)
10216     exit (1);
10217   close (fd);
10218
10219   /* Next, try to mmap the file at a fixed address which already has
10220      something else allocated at it.  If we can, also make sure that
10221      we see the same garbage.  */
10222   fd = open ("conftest.mmap", O_RDWR);
10223   if (fd < 0)
10224     exit (1);
10225   data2 = (char *) malloc (2 * pagesize);
10226   if (!data2)
10227     exit (1);
10228   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
10229   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10230                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
10231     exit (1);
10232   for (i = 0; i < pagesize; ++i)
10233     if (*(data + i) != *(data2 + i))
10234       exit (1);
10235
10236   /* Finally, make sure that changes to the mapped area do not
10237      percolate back to the file as seen by read().  (This is a bug on
10238      some variants of i386 svr4.0.)  */
10239   for (i = 0; i < pagesize; ++i)
10240     *(data2 + i) = *(data2 + i) + 1;
10241   data3 = (char *) malloc (pagesize);
10242   if (!data3)
10243     exit (1);
10244   if (read (fd, data3, pagesize) != pagesize)
10245     exit (1);
10246   for (i = 0; i < pagesize; ++i)
10247     if (*(data + i) != *(data3 + i))
10248       exit (1);
10249   close (fd);
10250   exit (0);
10251 }
10252 _ACEOF
10253 rm -f conftest$ac_exeext
10254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10255   (eval $ac_link) 2>&5
10256   ac_status=$?
10257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10260   (eval $ac_try) 2>&5
10261   ac_status=$?
10262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263   (exit $ac_status); }; }; then
10264   ac_cv_func_mmap_fixed_mapped=yes
10265 else
10266   echo "$as_me: program exited with status $ac_status" >&5
10267 echo "$as_me: failed program was:" >&5
10268 sed 's/^/| /' conftest.$ac_ext >&5
10269
10270 ( exit $ac_status )
10271 ac_cv_func_mmap_fixed_mapped=no
10272 fi
10273 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10274 fi
10275 fi
10276 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10277 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
10278 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10279
10280 cat >>confdefs.h <<\_ACEOF
10281 #define HAVE_MMAP 1
10282 _ACEOF
10283
10284 fi
10285 rm -f conftest.mmap
10286
10287 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
10288 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
10289 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
10290   echo $ECHO_N "(cached) $ECHO_C" >&6
10291 else
10292   ac_cv_func_setvbuf_reversed=no
10293    cat >conftest.$ac_ext <<_ACEOF
10294 /* confdefs.h.  */
10295 _ACEOF
10296 cat confdefs.h >>conftest.$ac_ext
10297 cat >>conftest.$ac_ext <<_ACEOF
10298 /* end confdefs.h.  */
10299 #include <stdio.h>
10300 #         if PROTOTYPES
10301            int (setvbuf) (FILE *, int, char *, size_t);
10302 #         endif
10303 int
10304 main ()
10305 {
10306 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
10307   ;
10308   return 0;
10309 }
10310 _ACEOF
10311 rm -f conftest.$ac_objext conftest$ac_exeext
10312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10313   (eval $ac_link) 2>conftest.er1
10314   ac_status=$?
10315   grep -v '^ *+' conftest.er1 >conftest.err
10316   rm -f conftest.er1
10317   cat conftest.err >&5
10318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319   (exit $ac_status); } &&
10320          { ac_try='test -z "$ac_c_werror_flag"
10321                          || test ! -s conftest.err'
10322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10323   (eval $ac_try) 2>&5
10324   ac_status=$?
10325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326   (exit $ac_status); }; } &&
10327          { ac_try='test -s conftest$ac_exeext'
10328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10329   (eval $ac_try) 2>&5
10330   ac_status=$?
10331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332   (exit $ac_status); }; }; then
10333   cat >conftest.$ac_ext <<_ACEOF
10334 /* confdefs.h.  */
10335 _ACEOF
10336 cat confdefs.h >>conftest.$ac_ext
10337 cat >>conftest.$ac_ext <<_ACEOF
10338 /* end confdefs.h.  */
10339 #include <stdio.h>
10340 #            if PROTOTYPES
10341               int (setvbuf) (FILE *, int, char *, size_t);
10342 #            endif
10343 int
10344 main ()
10345 {
10346 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
10347   ;
10348   return 0;
10349 }
10350 _ACEOF
10351 rm -f conftest.$ac_objext conftest$ac_exeext
10352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10353   (eval $ac_link) 2>conftest.er1
10354   ac_status=$?
10355   grep -v '^ *+' conftest.er1 >conftest.err
10356   rm -f conftest.er1
10357   cat conftest.err >&5
10358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359   (exit $ac_status); } &&
10360          { ac_try='test -z "$ac_c_werror_flag"
10361                          || test ! -s conftest.err'
10362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10363   (eval $ac_try) 2>&5
10364   ac_status=$?
10365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366   (exit $ac_status); }; } &&
10367          { ac_try='test -s conftest$ac_exeext'
10368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10369   (eval $ac_try) 2>&5
10370   ac_status=$?
10371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372   (exit $ac_status); }; }; then
10373   # It compiles and links either way, so it must not be declared
10374          # with a prototype and most likely this is a K&R C compiler.
10375          # Try running it.
10376          if test "$cross_compiling" = yes; then
10377   : # Assume setvbuf is not reversed when cross-compiling.
10378 else
10379   cat >conftest.$ac_ext <<_ACEOF
10380 /* confdefs.h.  */
10381 _ACEOF
10382 cat confdefs.h >>conftest.$ac_ext
10383 cat >>conftest.$ac_ext <<_ACEOF
10384 /* end confdefs.h.  */
10385 #include <stdio.h>
10386 int
10387 main ()
10388 {
10389 /* This call has the arguments reversed.
10390                    A reversed system may check and see that the address of buf
10391                    is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
10392                 char buf;
10393                 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
10394                   exit (1);
10395                 putchar ('\r');
10396                 exit (0); /* Non-reversed systems SEGV here.  */
10397   ;
10398   return 0;
10399 }
10400 _ACEOF
10401 rm -f conftest$ac_exeext
10402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10403   (eval $ac_link) 2>&5
10404   ac_status=$?
10405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10408   (eval $ac_try) 2>&5
10409   ac_status=$?
10410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411   (exit $ac_status); }; }; then
10412   ac_cv_func_setvbuf_reversed=yes
10413 else
10414   echo "$as_me: program exited with status $ac_status" >&5
10415 echo "$as_me: failed program was:" >&5
10416 sed 's/^/| /' conftest.$ac_ext >&5
10417
10418 ( exit $ac_status )
10419 rm -f core *.core
10420 fi
10421 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10422 fi
10423         ac_cv_func_setvbuf_reversed=yes
10424 else
10425   echo "$as_me: failed program was:" >&5
10426 sed 's/^/| /' conftest.$ac_ext >&5
10427
10428 fi
10429 rm -f conftest.err conftest.$ac_objext \
10430       conftest$ac_exeext conftest.$ac_ext
10431 else
10432   echo "$as_me: failed program was:" >&5
10433 sed 's/^/| /' conftest.$ac_ext >&5
10434
10435 fi
10436 rm -f conftest.err conftest.$ac_objext \
10437       conftest$ac_exeext conftest.$ac_ext
10438 fi
10439 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
10440 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
10441 if test $ac_cv_func_setvbuf_reversed = yes; then
10442
10443 cat >>confdefs.h <<\_ACEOF
10444 #define SETVBUF_REVERSED 1
10445 _ACEOF
10446
10447 fi
10448
10449 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10450 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10451 if test "${ac_cv_type_signal+set}" = set; then
10452   echo $ECHO_N "(cached) $ECHO_C" >&6
10453 else
10454   cat >conftest.$ac_ext <<_ACEOF
10455 /* confdefs.h.  */
10456 _ACEOF
10457 cat confdefs.h >>conftest.$ac_ext
10458 cat >>conftest.$ac_ext <<_ACEOF
10459 /* end confdefs.h.  */
10460 #include <sys/types.h>
10461 #include <signal.h>
10462 #ifdef signal
10463 # undef signal
10464 #endif
10465 #ifdef __cplusplus
10466 extern "C" void (*signal (int, void (*)(int)))(int);
10467 #else
10468 void (*signal ()) ();
10469 #endif
10470
10471 int
10472 main ()
10473 {
10474 int i;
10475   ;
10476   return 0;
10477 }
10478 _ACEOF
10479 rm -f conftest.$ac_objext
10480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10481   (eval $ac_compile) 2>conftest.er1
10482   ac_status=$?
10483   grep -v '^ *+' conftest.er1 >conftest.err
10484   rm -f conftest.er1
10485   cat conftest.err >&5
10486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487   (exit $ac_status); } &&
10488          { ac_try='test -z "$ac_c_werror_flag"
10489                          || test ! -s conftest.err'
10490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10491   (eval $ac_try) 2>&5
10492   ac_status=$?
10493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494   (exit $ac_status); }; } &&
10495          { ac_try='test -s conftest.$ac_objext'
10496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10497   (eval $ac_try) 2>&5
10498   ac_status=$?
10499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500   (exit $ac_status); }; }; then
10501   ac_cv_type_signal=void
10502 else
10503   echo "$as_me: failed program was:" >&5
10504 sed 's/^/| /' conftest.$ac_ext >&5
10505
10506 ac_cv_type_signal=int
10507 fi
10508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10509 fi
10510 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10511 echo "${ECHO_T}$ac_cv_type_signal" >&6
10512
10513 cat >>confdefs.h <<_ACEOF
10514 #define RETSIGTYPE $ac_cv_type_signal
10515 _ACEOF
10516
10517
10518
10519 for ac_func in vprintf
10520 do
10521 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10522 echo "$as_me:$LINENO: checking for $ac_func" >&5
10523 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10524 if eval "test \"\${$as_ac_var+set}\" = set"; then
10525   echo $ECHO_N "(cached) $ECHO_C" >&6
10526 else
10527   cat >conftest.$ac_ext <<_ACEOF
10528 /* confdefs.h.  */
10529 _ACEOF
10530 cat confdefs.h >>conftest.$ac_ext
10531 cat >>conftest.$ac_ext <<_ACEOF
10532 /* end confdefs.h.  */
10533 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10534    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10535 #define $ac_func innocuous_$ac_func
10536
10537 /* System header to define __stub macros and hopefully few prototypes,
10538     which can conflict with char $ac_func (); below.
10539     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10540     <limits.h> exists even on freestanding compilers.  */
10541
10542 #ifdef __STDC__
10543 # include <limits.h>
10544 #else
10545 # include <assert.h>
10546 #endif
10547
10548 #undef $ac_func
10549
10550 /* Override any gcc2 internal prototype to avoid an error.  */
10551 #ifdef __cplusplus
10552 extern "C"
10553 {
10554 #endif
10555 /* We use char because int might match the return type of a gcc2
10556    builtin and then its argument prototype would still apply.  */
10557 char $ac_func ();
10558 /* The GNU C library defines this for functions which it implements
10559     to always fail with ENOSYS.  Some functions are actually named
10560     something starting with __ and the normal name is an alias.  */
10561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10562 choke me
10563 #else
10564 char (*f) () = $ac_func;
10565 #endif
10566 #ifdef __cplusplus
10567 }
10568 #endif
10569
10570 int
10571 main ()
10572 {
10573 return f != $ac_func;
10574   ;
10575   return 0;
10576 }
10577 _ACEOF
10578 rm -f conftest.$ac_objext conftest$ac_exeext
10579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10580   (eval $ac_link) 2>conftest.er1
10581   ac_status=$?
10582   grep -v '^ *+' conftest.er1 >conftest.err
10583   rm -f conftest.er1
10584   cat conftest.err >&5
10585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586   (exit $ac_status); } &&
10587          { ac_try='test -z "$ac_c_werror_flag"
10588                          || test ! -s conftest.err'
10589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10590   (eval $ac_try) 2>&5
10591   ac_status=$?
10592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593   (exit $ac_status); }; } &&
10594          { ac_try='test -s conftest$ac_exeext'
10595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10596   (eval $ac_try) 2>&5
10597   ac_status=$?
10598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599   (exit $ac_status); }; }; then
10600   eval "$as_ac_var=yes"
10601 else
10602   echo "$as_me: failed program was:" >&5
10603 sed 's/^/| /' conftest.$ac_ext >&5
10604
10605 eval "$as_ac_var=no"
10606 fi
10607 rm -f conftest.err conftest.$ac_objext \
10608       conftest$ac_exeext conftest.$ac_ext
10609 fi
10610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10611 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10612 if test `eval echo '${'$as_ac_var'}'` = yes; then
10613   cat >>confdefs.h <<_ACEOF
10614 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10615 _ACEOF
10616
10617 echo "$as_me:$LINENO: checking for _doprnt" >&5
10618 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10619 if test "${ac_cv_func__doprnt+set}" = set; then
10620   echo $ECHO_N "(cached) $ECHO_C" >&6
10621 else
10622   cat >conftest.$ac_ext <<_ACEOF
10623 /* confdefs.h.  */
10624 _ACEOF
10625 cat confdefs.h >>conftest.$ac_ext
10626 cat >>conftest.$ac_ext <<_ACEOF
10627 /* end confdefs.h.  */
10628 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10629    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10630 #define _doprnt innocuous__doprnt
10631
10632 /* System header to define __stub macros and hopefully few prototypes,
10633     which can conflict with char _doprnt (); below.
10634     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10635     <limits.h> exists even on freestanding compilers.  */
10636
10637 #ifdef __STDC__
10638 # include <limits.h>
10639 #else
10640 # include <assert.h>
10641 #endif
10642
10643 #undef _doprnt
10644
10645 /* Override any gcc2 internal prototype to avoid an error.  */
10646 #ifdef __cplusplus
10647 extern "C"
10648 {
10649 #endif
10650 /* We use char because int might match the return type of a gcc2
10651    builtin and then its argument prototype would still apply.  */
10652 char _doprnt ();
10653 /* The GNU C library defines this for functions which it implements
10654     to always fail with ENOSYS.  Some functions are actually named
10655     something starting with __ and the normal name is an alias.  */
10656 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10657 choke me
10658 #else
10659 char (*f) () = _doprnt;
10660 #endif
10661 #ifdef __cplusplus
10662 }
10663 #endif
10664
10665 int
10666 main ()
10667 {
10668 return f != _doprnt;
10669   ;
10670   return 0;
10671 }
10672 _ACEOF
10673 rm -f conftest.$ac_objext conftest$ac_exeext
10674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10675   (eval $ac_link) 2>conftest.er1
10676   ac_status=$?
10677   grep -v '^ *+' conftest.er1 >conftest.err
10678   rm -f conftest.er1
10679   cat conftest.err >&5
10680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681   (exit $ac_status); } &&
10682          { ac_try='test -z "$ac_c_werror_flag"
10683                          || test ! -s conftest.err'
10684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10685   (eval $ac_try) 2>&5
10686   ac_status=$?
10687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688   (exit $ac_status); }; } &&
10689          { ac_try='test -s conftest$ac_exeext'
10690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10691   (eval $ac_try) 2>&5
10692   ac_status=$?
10693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694   (exit $ac_status); }; }; then
10695   ac_cv_func__doprnt=yes
10696 else
10697   echo "$as_me: failed program was:" >&5
10698 sed 's/^/| /' conftest.$ac_ext >&5
10699
10700 ac_cv_func__doprnt=no
10701 fi
10702 rm -f conftest.err conftest.$ac_objext \
10703       conftest$ac_exeext conftest.$ac_ext
10704 fi
10705 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10706 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10707 if test $ac_cv_func__doprnt = yes; then
10708
10709 cat >>confdefs.h <<\_ACEOF
10710 #define HAVE_DOPRNT 1
10711 _ACEOF
10712
10713 fi
10714
10715 fi
10716 done
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752 for ac_func in \
10753   alarm \
10754   dup2 \
10755   floor \
10756   getcwd \
10757   getopt \
10758   gethostbyname \
10759   gettimeofday \
10760   getwd \
10761   isatty \
10762   memchr \
10763   memmove \
10764   memset \
10765   modf \
10766   munmap \
10767   popen \
10768   pow \
10769   select \
10770   signal \
10771   socket \
10772   sleep \
10773   vsnprintf \
10774   snprintf \
10775   sqrt \
10776   strchr \
10777   strdup \
10778   strstr \
10779   strerror \
10780   strcasecmp \
10781   strncasecmp \
10782   strrchr \
10783   strstr \
10784   strtol \
10785   usleep
10786 do
10787 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10788 echo "$as_me:$LINENO: checking for $ac_func" >&5
10789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10790 if eval "test \"\${$as_ac_var+set}\" = set"; then
10791   echo $ECHO_N "(cached) $ECHO_C" >&6
10792 else
10793   cat >conftest.$ac_ext <<_ACEOF
10794 /* confdefs.h.  */
10795 _ACEOF
10796 cat confdefs.h >>conftest.$ac_ext
10797 cat >>conftest.$ac_ext <<_ACEOF
10798 /* end confdefs.h.  */
10799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10800    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10801 #define $ac_func innocuous_$ac_func
10802
10803 /* System header to define __stub macros and hopefully few prototypes,
10804     which can conflict with char $ac_func (); below.
10805     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10806     <limits.h> exists even on freestanding compilers.  */
10807
10808 #ifdef __STDC__
10809 # include <limits.h>
10810 #else
10811 # include <assert.h>
10812 #endif
10813
10814 #undef $ac_func
10815
10816 /* Override any gcc2 internal prototype to avoid an error.  */
10817 #ifdef __cplusplus
10818 extern "C"
10819 {
10820 #endif
10821 /* We use char because int might match the return type of a gcc2
10822    builtin and then its argument prototype would still apply.  */
10823 char $ac_func ();
10824 /* The GNU C library defines this for functions which it implements
10825     to always fail with ENOSYS.  Some functions are actually named
10826     something starting with __ and the normal name is an alias.  */
10827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10828 choke me
10829 #else
10830 char (*f) () = $ac_func;
10831 #endif
10832 #ifdef __cplusplus
10833 }
10834 #endif
10835
10836 int
10837 main ()
10838 {
10839 return f != $ac_func;
10840   ;
10841   return 0;
10842 }
10843 _ACEOF
10844 rm -f conftest.$ac_objext conftest$ac_exeext
10845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10846   (eval $ac_link) 2>conftest.er1
10847   ac_status=$?
10848   grep -v '^ *+' conftest.er1 >conftest.err
10849   rm -f conftest.er1
10850   cat conftest.err >&5
10851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852   (exit $ac_status); } &&
10853          { ac_try='test -z "$ac_c_werror_flag"
10854                          || test ! -s conftest.err'
10855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10856   (eval $ac_try) 2>&5
10857   ac_status=$?
10858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859   (exit $ac_status); }; } &&
10860          { ac_try='test -s conftest$ac_exeext'
10861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10862   (eval $ac_try) 2>&5
10863   ac_status=$?
10864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865   (exit $ac_status); }; }; then
10866   eval "$as_ac_var=yes"
10867 else
10868   echo "$as_me: failed program was:" >&5
10869 sed 's/^/| /' conftest.$ac_ext >&5
10870
10871 eval "$as_ac_var=no"
10872 fi
10873 rm -f conftest.err conftest.$ac_objext \
10874       conftest$ac_exeext conftest.$ac_ext
10875 fi
10876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10877 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10878 if test `eval echo '${'$as_ac_var'}'` = yes; then
10879   cat >>confdefs.h <<_ACEOF
10880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10881 _ACEOF
10882
10883 fi
10884 done
10885
10886 echo "$as_me:$LINENO: checking for getopt_long" >&5
10887 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
10888 if test "${ac_cv_func_getopt_long+set}" = set; then
10889   echo $ECHO_N "(cached) $ECHO_C" >&6
10890 else
10891   cat >conftest.$ac_ext <<_ACEOF
10892 /* confdefs.h.  */
10893 _ACEOF
10894 cat confdefs.h >>conftest.$ac_ext
10895 cat >>conftest.$ac_ext <<_ACEOF
10896 /* end confdefs.h.  */
10897 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
10898    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10899 #define getopt_long innocuous_getopt_long
10900
10901 /* System header to define __stub macros and hopefully few prototypes,
10902     which can conflict with char getopt_long (); below.
10903     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10904     <limits.h> exists even on freestanding compilers.  */
10905
10906 #ifdef __STDC__
10907 # include <limits.h>
10908 #else
10909 # include <assert.h>
10910 #endif
10911
10912 #undef getopt_long
10913
10914 /* Override any gcc2 internal prototype to avoid an error.  */
10915 #ifdef __cplusplus
10916 extern "C"
10917 {
10918 #endif
10919 /* We use char because int might match the return type of a gcc2
10920    builtin and then its argument prototype would still apply.  */
10921 char getopt_long ();
10922 /* The GNU C library defines this for functions which it implements
10923     to always fail with ENOSYS.  Some functions are actually named
10924     something starting with __ and the normal name is an alias.  */
10925 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
10926 choke me
10927 #else
10928 char (*f) () = getopt_long;
10929 #endif
10930 #ifdef __cplusplus
10931 }
10932 #endif
10933
10934 int
10935 main ()
10936 {
10937 return f != getopt_long;
10938   ;
10939   return 0;
10940 }
10941 _ACEOF
10942 rm -f conftest.$ac_objext conftest$ac_exeext
10943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10944   (eval $ac_link) 2>conftest.er1
10945   ac_status=$?
10946   grep -v '^ *+' conftest.er1 >conftest.err
10947   rm -f conftest.er1
10948   cat conftest.err >&5
10949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950   (exit $ac_status); } &&
10951          { ac_try='test -z "$ac_c_werror_flag"
10952                          || test ! -s conftest.err'
10953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954   (eval $ac_try) 2>&5
10955   ac_status=$?
10956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957   (exit $ac_status); }; } &&
10958          { ac_try='test -s conftest$ac_exeext'
10959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10960   (eval $ac_try) 2>&5
10961   ac_status=$?
10962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963   (exit $ac_status); }; }; then
10964   ac_cv_func_getopt_long=yes
10965 else
10966   echo "$as_me: failed program was:" >&5
10967 sed 's/^/| /' conftest.$ac_ext >&5
10968
10969 ac_cv_func_getopt_long=no
10970 fi
10971 rm -f conftest.err conftest.$ac_objext \
10972       conftest$ac_exeext conftest.$ac_ext
10973 fi
10974 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
10975 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
10976 if test $ac_cv_func_getopt_long = yes; then
10977
10978 cat >>confdefs.h <<\_ACEOF
10979 #define HAVE_GETOPT_LONG 1
10980 _ACEOF
10981
10982          tm_cv_needgetopt="no"
10983 else
10984   tm_cv_needgetopt="yes"
10985 fi
10986
10987
10988
10989 if test "x$tm_cv_needgetopt" = "xyes"; then
10990   NEEDGETOPT_TRUE=
10991   NEEDGETOPT_FALSE='#'
10992 else
10993   NEEDGETOPT_TRUE='#'
10994   NEEDGETOPT_FALSE=
10995 fi
10996
10997
10998 # Checks on cygnus
10999 if test "x$CYGNUS" = xyes; then
11000   case "$ac_cv_header_dirent_dirent_h$ac_cv_header_dirent_sys_ndir_h$ac_cv_header_dirent_sys_dir_h$ac_cv_header_dirent_ndir_h" in
11001   *yes*)
11002     echo "$as_me:$LINENO: checking for opendir" >&5
11003 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
11004 if test "${ac_cv_func_opendir+set}" = set; then
11005   echo $ECHO_N "(cached) $ECHO_C" >&6
11006 else
11007   cat >conftest.$ac_ext <<_ACEOF
11008 /* confdefs.h.  */
11009 _ACEOF
11010 cat confdefs.h >>conftest.$ac_ext
11011 cat >>conftest.$ac_ext <<_ACEOF
11012 /* end confdefs.h.  */
11013 /* Define opendir to an innocuous variant, in case <limits.h> declares opendir.
11014    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11015 #define opendir innocuous_opendir
11016
11017 /* System header to define __stub macros and hopefully few prototypes,
11018     which can conflict with char opendir (); below.
11019     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11020     <limits.h> exists even on freestanding compilers.  */
11021
11022 #ifdef __STDC__
11023 # include <limits.h>
11024 #else
11025 # include <assert.h>
11026 #endif
11027
11028 #undef opendir
11029
11030 /* Override any gcc2 internal prototype to avoid an error.  */
11031 #ifdef __cplusplus
11032 extern "C"
11033 {
11034 #endif
11035 /* We use char because int might match the return type of a gcc2
11036    builtin and then its argument prototype would still apply.  */
11037 char opendir ();
11038 /* The GNU C library defines this for functions which it implements
11039     to always fail with ENOSYS.  Some functions are actually named
11040     something starting with __ and the normal name is an alias.  */
11041 #if defined (__stub_opendir) || defined (__stub___opendir)
11042 choke me
11043 #else
11044 char (*f) () = opendir;
11045 #endif
11046 #ifdef __cplusplus
11047 }
11048 #endif
11049
11050 int
11051 main ()
11052 {
11053 return f != opendir;
11054   ;
11055   return 0;
11056 }
11057 _ACEOF
11058 rm -f conftest.$ac_objext conftest$ac_exeext
11059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11060   (eval $ac_link) 2>conftest.er1
11061   ac_status=$?
11062   grep -v '^ *+' conftest.er1 >conftest.err
11063   rm -f conftest.er1
11064   cat conftest.err >&5
11065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066   (exit $ac_status); } &&
11067          { ac_try='test -z "$ac_c_werror_flag"
11068                          || test ! -s conftest.err'
11069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11070   (eval $ac_try) 2>&5
11071   ac_status=$?
11072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073   (exit $ac_status); }; } &&
11074          { ac_try='test -s conftest$ac_exeext'
11075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11076   (eval $ac_try) 2>&5
11077   ac_status=$?
11078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079   (exit $ac_status); }; }; then
11080   ac_cv_func_opendir=yes
11081 else
11082   echo "$as_me: failed program was:" >&5
11083 sed 's/^/| /' conftest.$ac_ext >&5
11084
11085 ac_cv_func_opendir=no
11086 fi
11087 rm -f conftest.err conftest.$ac_objext \
11088       conftest$ac_exeext conftest.$ac_ext
11089 fi
11090 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
11091 echo "${ECHO_T}$ac_cv_func_opendir" >&6
11092 if test $ac_cv_func_opendir = yes; then
11093   :
11094 else
11095    EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11096     W32READDIR=yes
11097 fi
11098
11099     ;;
11100   *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11101     W32READDIR=yes
11102     ;;
11103   esac
11104   if test "x$enable_network" = "xyes"; then
11105     echo "$as_me:$LINENO: checking for socket" >&5
11106 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11107 if test "${ac_cv_func_socket+set}" = set; then
11108   echo $ECHO_N "(cached) $ECHO_C" >&6
11109 else
11110   cat >conftest.$ac_ext <<_ACEOF
11111 /* confdefs.h.  */
11112 _ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h.  */
11116 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
11117    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11118 #define socket innocuous_socket
11119
11120 /* System header to define __stub macros and hopefully few prototypes,
11121     which can conflict with char socket (); below.
11122     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11123     <limits.h> exists even on freestanding compilers.  */
11124
11125 #ifdef __STDC__
11126 # include <limits.h>
11127 #else
11128 # include <assert.h>
11129 #endif
11130
11131 #undef socket
11132
11133 /* Override any gcc2 internal prototype to avoid an error.  */
11134 #ifdef __cplusplus
11135 extern "C"
11136 {
11137 #endif
11138 /* We use char because int might match the return type of a gcc2
11139    builtin and then its argument prototype would still apply.  */
11140 char socket ();
11141 /* The GNU C library defines this for functions which it implements
11142     to always fail with ENOSYS.  Some functions are actually named
11143     something starting with __ and the normal name is an alias.  */
11144 #if defined (__stub_socket) || defined (__stub___socket)
11145 choke me
11146 #else
11147 char (*f) () = socket;
11148 #endif
11149 #ifdef __cplusplus
11150 }
11151 #endif
11152
11153 int
11154 main ()
11155 {
11156 return f != socket;
11157   ;
11158   return 0;
11159 }
11160 _ACEOF
11161 rm -f conftest.$ac_objext conftest$ac_exeext
11162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11163   (eval $ac_link) 2>conftest.er1
11164   ac_status=$?
11165   grep -v '^ *+' conftest.er1 >conftest.err
11166   rm -f conftest.er1
11167   cat conftest.err >&5
11168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169   (exit $ac_status); } &&
11170          { ac_try='test -z "$ac_c_werror_flag"
11171                          || test ! -s conftest.err'
11172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11173   (eval $ac_try) 2>&5
11174   ac_status=$?
11175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176   (exit $ac_status); }; } &&
11177          { ac_try='test -s conftest$ac_exeext'
11178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11179   (eval $ac_try) 2>&5
11180   ac_status=$?
11181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182   (exit $ac_status); }; }; then
11183   ac_cv_func_socket=yes
11184 else
11185   echo "$as_me: failed program was:" >&5
11186 sed 's/^/| /' conftest.$ac_ext >&5
11187
11188 ac_cv_func_socket=no
11189 fi
11190 rm -f conftest.err conftest.$ac_objext \
11191       conftest$ac_exeext conftest.$ac_ext
11192 fi
11193 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
11194 echo "${ECHO_T}$ac_cv_func_socket" >&6
11195 if test $ac_cv_func_socket = yes; then
11196   :
11197 else
11198   echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
11199 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
11200 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
11201 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
11202   echo $ECHO_N "(cached) $ECHO_C" >&6
11203 else
11204   ac_save_LIBS="$LIBS"
11205 LIBS="-lwsock32  $LIBS"
11206 cat >conftest.$ac_ext <<_ACEOF
11207 /* confdefs.h.  */
11208 _ACEOF
11209 cat confdefs.h >>conftest.$ac_ext
11210 cat >>conftest.$ac_ext <<_ACEOF
11211 /* end confdefs.h.  */
11212 #include <windows.h>
11213 #include <winsock.h>
11214
11215 int
11216 main ()
11217 {
11218 WSAStartup(0,0);
11219   ;
11220   return 0;
11221 }
11222 _ACEOF
11223 rm -f conftest.$ac_objext conftest$ac_exeext
11224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11225   (eval $ac_link) 2>conftest.er1
11226   ac_status=$?
11227   grep -v '^ *+' conftest.er1 >conftest.err
11228   rm -f conftest.er1
11229   cat conftest.err >&5
11230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231   (exit $ac_status); } &&
11232          { ac_try='test -z "$ac_c_werror_flag"
11233                          || test ! -s conftest.err'
11234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235   (eval $ac_try) 2>&5
11236   ac_status=$?
11237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238   (exit $ac_status); }; } &&
11239          { ac_try='test -s conftest$ac_exeext'
11240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11241   (eval $ac_try) 2>&5
11242   ac_status=$?
11243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244   (exit $ac_status); }; }; then
11245   eval "wapi_cv_lib_$ac_lib_var=yes"
11246 else
11247   echo "$as_me: failed program was:" >&5
11248 sed 's/^/| /' conftest.$ac_ext >&5
11249
11250 eval "wapi_cv_lib_$ac_lib_var=no"
11251 fi
11252 rm -f conftest.err conftest.$ac_objext \
11253       conftest$ac_exeext conftest.$ac_ext
11254 LIBS="$ac_save_LIBS"
11255
11256 fi
11257 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
11258   echo "$as_me:$LINENO: result: yes" >&5
11259 echo "${ECHO_T}yes" >&6
11260    EXTRALIBS="$EXTRALIBS -lwsock32"
11261     EXTRADEFS="$EXTRADEFS -DWINSOCK"
11262 else
11263   echo "$as_me:$LINENO: result: no" >&5
11264 echo "${ECHO_T}no" >&6
11265 fi
11266
11267 fi
11268
11269   fi
11270 fi
11271
11272 # Checks on Mingw
11273 if test "x$CYGWIN" = xyes; then
11274   case "$ac_cv_header_dirent_dirent_h$ac_cv_header_dirent_sys_ndir_h$ac_cv_header_dirent_sys_dir_h$ac_cv_header_dirent_ndir_h" in
11275   *yes*)
11276     echo "$as_me:$LINENO: checking for opendir" >&5
11277 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
11278 if test "${ac_cv_func_opendir+set}" = set; then
11279   echo $ECHO_N "(cached) $ECHO_C" >&6
11280 else
11281   cat >conftest.$ac_ext <<_ACEOF
11282 /* confdefs.h.  */
11283 _ACEOF
11284 cat confdefs.h >>conftest.$ac_ext
11285 cat >>conftest.$ac_ext <<_ACEOF
11286 /* end confdefs.h.  */
11287 /* Define opendir to an innocuous variant, in case <limits.h> declares opendir.
11288    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11289 #define opendir innocuous_opendir
11290
11291 /* System header to define __stub macros and hopefully few prototypes,
11292     which can conflict with char opendir (); below.
11293     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11294     <limits.h> exists even on freestanding compilers.  */
11295
11296 #ifdef __STDC__
11297 # include <limits.h>
11298 #else
11299 # include <assert.h>
11300 #endif
11301
11302 #undef opendir
11303
11304 /* Override any gcc2 internal prototype to avoid an error.  */
11305 #ifdef __cplusplus
11306 extern "C"
11307 {
11308 #endif
11309 /* We use char because int might match the return type of a gcc2
11310    builtin and then its argument prototype would still apply.  */
11311 char opendir ();
11312 /* The GNU C library defines this for functions which it implements
11313     to always fail with ENOSYS.  Some functions are actually named
11314     something starting with __ and the normal name is an alias.  */
11315 #if defined (__stub_opendir) || defined (__stub___opendir)
11316 choke me
11317 #else
11318 char (*f) () = opendir;
11319 #endif
11320 #ifdef __cplusplus
11321 }
11322 #endif
11323
11324 int
11325 main ()
11326 {
11327 return f != opendir;
11328   ;
11329   return 0;
11330 }
11331 _ACEOF
11332 rm -f conftest.$ac_objext conftest$ac_exeext
11333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11334   (eval $ac_link) 2>conftest.er1
11335   ac_status=$?
11336   grep -v '^ *+' conftest.er1 >conftest.err
11337   rm -f conftest.er1
11338   cat conftest.err >&5
11339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340   (exit $ac_status); } &&
11341          { ac_try='test -z "$ac_c_werror_flag"
11342                          || test ! -s conftest.err'
11343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11344   (eval $ac_try) 2>&5
11345   ac_status=$?
11346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347   (exit $ac_status); }; } &&
11348          { ac_try='test -s conftest$ac_exeext'
11349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11350   (eval $ac_try) 2>&5
11351   ac_status=$?
11352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353   (exit $ac_status); }; }; then
11354   ac_cv_func_opendir=yes
11355 else
11356   echo "$as_me: failed program was:" >&5
11357 sed 's/^/| /' conftest.$ac_ext >&5
11358
11359 ac_cv_func_opendir=no
11360 fi
11361 rm -f conftest.err conftest.$ac_objext \
11362       conftest$ac_exeext conftest.$ac_ext
11363 fi
11364 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
11365 echo "${ECHO_T}$ac_cv_func_opendir" >&6
11366 if test $ac_cv_func_opendir = yes; then
11367   :
11368 else
11369    EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11370     W32READDIR=yes
11371 fi
11372
11373     ;;
11374   *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11375     W32READDIR=yes
11376     ;;
11377   esac
11378   if test "x$enable_network" = "xyes"; then
11379     echo "$as_me:$LINENO: checking for socket" >&5
11380 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11381 if test "${ac_cv_func_socket+set}" = set; then
11382   echo $ECHO_N "(cached) $ECHO_C" >&6
11383 else
11384   cat >conftest.$ac_ext <<_ACEOF
11385 /* confdefs.h.  */
11386 _ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h.  */
11390 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
11391    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11392 #define socket innocuous_socket
11393
11394 /* System header to define __stub macros and hopefully few prototypes,
11395     which can conflict with char socket (); below.
11396     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11397     <limits.h> exists even on freestanding compilers.  */
11398
11399 #ifdef __STDC__
11400 # include <limits.h>
11401 #else
11402 # include <assert.h>
11403 #endif
11404
11405 #undef socket
11406
11407 /* Override any gcc2 internal prototype to avoid an error.  */
11408 #ifdef __cplusplus
11409 extern "C"
11410 {
11411 #endif
11412 /* We use char because int might match the return type of a gcc2
11413    builtin and then its argument prototype would still apply.  */
11414 char socket ();
11415 /* The GNU C library defines this for functions which it implements
11416     to always fail with ENOSYS.  Some functions are actually named
11417     something starting with __ and the normal name is an alias.  */
11418 #if defined (__stub_socket) || defined (__stub___socket)
11419 choke me
11420 #else
11421 char (*f) () = socket;
11422 #endif
11423 #ifdef __cplusplus
11424 }
11425 #endif
11426
11427 int
11428 main ()
11429 {
11430 return f != socket;
11431   ;
11432   return 0;
11433 }
11434 _ACEOF
11435 rm -f conftest.$ac_objext conftest$ac_exeext
11436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11437   (eval $ac_link) 2>conftest.er1
11438   ac_status=$?
11439   grep -v '^ *+' conftest.er1 >conftest.err
11440   rm -f conftest.er1
11441   cat conftest.err >&5
11442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443   (exit $ac_status); } &&
11444          { ac_try='test -z "$ac_c_werror_flag"
11445                          || test ! -s conftest.err'
11446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11447   (eval $ac_try) 2>&5
11448   ac_status=$?
11449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450   (exit $ac_status); }; } &&
11451          { ac_try='test -s conftest$ac_exeext'
11452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11453   (eval $ac_try) 2>&5
11454   ac_status=$?
11455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456   (exit $ac_status); }; }; then
11457   ac_cv_func_socket=yes
11458 else
11459   echo "$as_me: failed program was:" >&5
11460 sed 's/^/| /' conftest.$ac_ext >&5
11461
11462 ac_cv_func_socket=no
11463 fi
11464 rm -f conftest.err conftest.$ac_objext \
11465       conftest$ac_exeext conftest.$ac_ext
11466 fi
11467 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
11468 echo "${ECHO_T}$ac_cv_func_socket" >&6
11469 if test $ac_cv_func_socket = yes; then
11470   :
11471 else
11472   echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
11473 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
11474 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
11475 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
11476   echo $ECHO_N "(cached) $ECHO_C" >&6
11477 else
11478   ac_save_LIBS="$LIBS"
11479 LIBS="-lwsock32  $LIBS"
11480 cat >conftest.$ac_ext <<_ACEOF
11481 /* confdefs.h.  */
11482 _ACEOF
11483 cat confdefs.h >>conftest.$ac_ext
11484 cat >>conftest.$ac_ext <<_ACEOF
11485 /* end confdefs.h.  */
11486 #include <windows.h>
11487 #include <winsock.h>
11488
11489 int
11490 main ()
11491 {
11492 WSAStartup(0,0);
11493   ;
11494   return 0;
11495 }
11496 _ACEOF
11497 rm -f conftest.$ac_objext conftest$ac_exeext
11498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11499   (eval $ac_link) 2>conftest.er1
11500   ac_status=$?
11501   grep -v '^ *+' conftest.er1 >conftest.err
11502   rm -f conftest.er1
11503   cat conftest.err >&5
11504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505   (exit $ac_status); } &&
11506          { ac_try='test -z "$ac_c_werror_flag"
11507                          || test ! -s conftest.err'
11508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11509   (eval $ac_try) 2>&5
11510   ac_status=$?
11511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512   (exit $ac_status); }; } &&
11513          { ac_try='test -s conftest$ac_exeext'
11514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11515   (eval $ac_try) 2>&5
11516   ac_status=$?
11517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518   (exit $ac_status); }; }; then
11519   eval "wapi_cv_lib_$ac_lib_var=yes"
11520 else
11521   echo "$as_me: failed program was:" >&5
11522 sed 's/^/| /' conftest.$ac_ext >&5
11523
11524 eval "wapi_cv_lib_$ac_lib_var=no"
11525 fi
11526 rm -f conftest.err conftest.$ac_objext \
11527       conftest$ac_exeext conftest.$ac_ext
11528 LIBS="$ac_save_LIBS"
11529
11530 fi
11531 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
11532   echo "$as_me:$LINENO: result: yes" >&5
11533 echo "${ECHO_T}yes" >&6
11534    EXTRALIBS="$EXTRALIBS -lwsock32"
11535     EXTRADEFS="$EXTRADEFS -DWINSOCK"
11536 else
11537   echo "$as_me:$LINENO: result: no" >&5
11538 echo "${ECHO_T}no" >&6
11539 fi
11540
11541 fi
11542
11543   fi
11544 fi
11545
11546 # Checks on extra paths
11547
11548
11549 # Check whether --with-tcl-includes or --without-tcl-includes was given.
11550 if test "${with_tcl_includes+set}" = set; then
11551   withval="$with_tcl_includes"
11552    if test ! -d $withval; then
11553       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11554 echo "$as_me: WARNING: $withval is not found." >&2;}
11555     fi
11556     tcl_include_dir="-I$withval"
11557
11558 fi;
11559
11560 # Check whether --with-tcl-libs or --without-tcl-libs was given.
11561 if test "${with_tcl_libs+set}" = set; then
11562   withval="$with_tcl_libs"
11563    if test ! -d $withval; then
11564       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11565 echo "$as_me: WARNING: $withval is not found." >&2;}
11566     fi
11567     tcl_libdir="-L$withval"
11568 fi;
11569
11570 # Check whether --with-tk-includes or --without-tk-includes was given.
11571 if test "${with_tk_includes+set}" = set; then
11572   withval="$with_tk_includes"
11573    if test ! -d $withval; then
11574       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11575 echo "$as_me: WARNING: $withval is not found." >&2;}
11576     fi
11577     tk_includes="-I$withval"
11578 fi;
11579
11580 # Check whether --with-tk-libs or --without-tk-libs was given.
11581 if test "${with_tk_libs+set}" = set; then
11582   withval="$with_tk_libs"
11583    if test ! -d $withval; then
11584       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11585 echo "$as_me: WARNING: $withval is not found." >&2;}
11586     fi
11587     tk_libdir="-L$withval"
11588 fi;
11589
11590
11591 # Check whether --with-offix-includes or --without-offix-includes was given.
11592 if test "${with_offix_includes+set}" = set; then
11593   withval="$with_offix_includes"
11594    if test ! -d $withval; then
11595       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11596 echo "$as_me: WARNING: $withval is not found." >&2;}
11597     fi
11598     offix_include_dir="-I$withval"
11599 fi;
11600
11601 # Check whether --with-offix-libs or --without-offix-libs was given.
11602 if test "${with_offix_libs+set}" = set; then
11603   withval="$with_offix_libs"
11604    if test ! -d $withval; then
11605       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11606 echo "$as_me: WARNING: $withval is not found." >&2;}
11607     fi
11608     offix_lib_dir="-L$withval"
11609 fi;
11610
11611
11612 #
11613 # audio section
11614 #
11615
11616 audio_targets='default oss alsa sun hpux irix mme sb_dsp w32 alib nas arts esd vorbis flac gogo portaudio jack ao'
11617
11618
11619 # Check whether --with-nas-library or --without-nas-library was given.
11620 if test "${with_nas_library+set}" = set; then
11621   withval="$with_nas_library"
11622
11623 fi;
11624
11625 # Check whether --with-nas-includes or --without-nas-includes was given.
11626 if test "${with_nas_includes+set}" = set; then
11627   withval="$with_nas_includes"
11628
11629 fi;
11630
11631
11632 # Check whether --enable-audio or --disable-audio was given.
11633 if test "${enable_audio+set}" = set; then
11634   enableval="$enable_audio"
11635    enable_audio=$enableval
11636     have_audio_opt=yes
11637 else
11638    enable_audio=yes
11639     have_audio_opt=no
11640 fi;
11641
11642 test "x$enable_audio" = xyes && enable_audio=default
11643
11644 if test "x$enable_audio" != xno; then
11645   for i in `echo $enable_audio | sed 's/,/ /g'`; do
11646     eval "au_enable_$i=yes"
11647   done
11648 fi
11649
11650 DEFAULT_PLAYMODE=
11651
11652 # Check whether --with-default-output or --without-default-output was given.
11653 if test "${with_default_output+set}" = set; then
11654   withval="$with_default_output"
11655    if test "$enable_audio" != no; then
11656     DEFAULT_PLAYMODE=$withval
11657     eval "au_enable_$DEFAULT_PLAYMODE=yes"
11658   else
11659     { echo "$as_me:$LINENO: WARNING: --with-default-output=$withval: audio is not enabled" >&5
11660 echo "$as_me: WARNING: --with-default-output=$withval: audio is not enabled" >&2;}
11661   fi
11662 fi;
11663
11664
11665 if test "x$au_enable_default" = xyes; then
11666   case "$target" in
11667   *-*-linux*|*-*-freebsd*)
11668     au_enable_oss=yes
11669     ;;
11670   *-*-bsdi2.0)
11671     au_enable_sb_dsp=yes
11672     ;;
11673   *-*-bsdi2.1|*-*-bsdi3.?|*-*-bsdi4.?)
11674     au_enable_oss=yes
11675     ;;
11676   *-*-hpux*)
11677     au_enable_hpux=yes
11678     ;;
11679   *-dec-*)
11680     au_enable_mme=yes
11681     ;;
11682   *irix*)
11683     au_enable_irix=yes
11684     ;;
11685   *-*-sunos4*)
11686     au_enable_sun=yes
11687     ;;
11688   *-*-solaris*)
11689     au_enable_sun=yes
11690     ;;
11691   *-*-netbsd*)
11692     au_enable_sun=yes
11693     ;;
11694   *-*-cygwin*)
11695     au_enable_w32=yes
11696     ;;
11697   *-*-mingw*)
11698     au_enable_w32=yes
11699     ;;
11700   *-*-darwin*)
11701     au_enable_darwin=yes
11702     ;;
11703   *)
11704     { echo "$as_me:$LINENO: WARNING: No --enable-audio=default audio for $target" >&5
11705 echo "$as_me: WARNING: No --enable-audio=default audio for $target" >&2;}
11706     ;;
11707   esac
11708 fi
11709
11710
11711 # Each audio mode's configurations
11712 echo "$as_me:$LINENO: checking enable_audio=oss" >&5
11713 echo $ECHO_N "checking enable_audio=oss... $ECHO_C" >&6
11714 if test "x$au_enable_oss" = xyes; then
11715   EXTRADEFS="$EXTRADEFS -DAU_OSS"
11716   SYSEXTRAS="$SYSEXTRAS oss_a.c"
11717   if test "x$ac_cv_header_sys_soundcard_h" = xyes; then
11718     echo "$as_me:$LINENO: result: yes - <sys/soundcard.h>" >&5
11719 echo "${ECHO_T}yes - <sys/soundcard.h>" >&6
11720   else
11721     case "$target" in
11722       *linux*|*freebsd*)
11723                 echo "$as_me:$LINENO: result: yes" >&5
11724 echo "${ECHO_T}yes" >&6
11725         ;;
11726       *)
11727         if test "x$ac_cv_header_soundcard_h" = xyes; then
11728           echo "$as_me:$LINENO: result: yes - <soundcard.h>" >&5
11729 echo "${ECHO_T}yes - <soundcard.h>" >&6
11730         else
11731           { echo "$as_me:$LINENO: WARNING: <sys/soundcard.h> is not found" >&5
11732 echo "$as_me: WARNING: <sys/soundcard.h> is not found" >&2;}
11733         fi
11734         ;;
11735     esac
11736   fi
11737
11738 echo "$as_me:$LINENO: checking for open in -lossaudio" >&5
11739 echo $ECHO_N "checking for open in -lossaudio... $ECHO_C" >&6
11740 if test "${ac_cv_lib_ossaudio_open+set}" = set; then
11741   echo $ECHO_N "(cached) $ECHO_C" >&6
11742 else
11743   ac_check_lib_save_LIBS=$LIBS
11744 LIBS="-lossaudio  $LIBS"
11745 cat >conftest.$ac_ext <<_ACEOF
11746 /* confdefs.h.  */
11747 _ACEOF
11748 cat confdefs.h >>conftest.$ac_ext
11749 cat >>conftest.$ac_ext <<_ACEOF
11750 /* end confdefs.h.  */
11751
11752 /* Override any gcc2 internal prototype to avoid an error.  */
11753 #ifdef __cplusplus
11754 extern "C"
11755 #endif
11756 /* We use char because int might match the return type of a gcc2
11757    builtin and then its argument prototype would still apply.  */
11758 char open ();
11759 int
11760 main ()
11761 {
11762 open ();
11763   ;
11764   return 0;
11765 }
11766 _ACEOF
11767 rm -f conftest.$ac_objext conftest$ac_exeext
11768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11769   (eval $ac_link) 2>conftest.er1
11770   ac_status=$?
11771   grep -v '^ *+' conftest.er1 >conftest.err
11772   rm -f conftest.er1
11773   cat conftest.err >&5
11774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775   (exit $ac_status); } &&
11776          { ac_try='test -z "$ac_c_werror_flag"
11777                          || test ! -s conftest.err'
11778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779   (eval $ac_try) 2>&5
11780   ac_status=$?
11781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782   (exit $ac_status); }; } &&
11783          { ac_try='test -s conftest$ac_exeext'
11784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785   (eval $ac_try) 2>&5
11786   ac_status=$?
11787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788   (exit $ac_status); }; }; then
11789   ac_cv_lib_ossaudio_open=yes
11790 else
11791   echo "$as_me: failed program was:" >&5
11792 sed 's/^/| /' conftest.$ac_ext >&5
11793
11794 ac_cv_lib_ossaudio_open=no
11795 fi
11796 rm -f conftest.err conftest.$ac_objext \
11797       conftest$ac_exeext conftest.$ac_ext
11798 LIBS=$ac_check_lib_save_LIBS
11799 fi
11800 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_open" >&5
11801 echo "${ECHO_T}$ac_cv_lib_ossaudio_open" >&6
11802 if test $ac_cv_lib_ossaudio_open = yes; then
11803   cat >>confdefs.h <<_ACEOF
11804 #define HAVE_LIBOSSAUDIO 1
11805 _ACEOF
11806
11807   LIBS="-lossaudio $LIBS"
11808
11809 fi
11810
11811
11812     case "$target" in
11813     *openbsd*)
11814       if test ! -e "/dev/dsp"; then
11815         oss_device=/dev/audio
11816       fi
11817       ;;
11818   esac
11819 else
11820   echo "$as_me:$LINENO: result: no" >&5
11821 echo "${ECHO_T}no" >&6
11822 fi
11823
11824 echo "$as_me:$LINENO: checking enable_audio=sun" >&5
11825 echo $ECHO_N "checking enable_audio=sun... $ECHO_C" >&6
11826 if test "x$au_enable_sun" = xyes; then
11827   case "$target" in
11828     *-*-sunos4*)
11829       if test -f /usr/demo/SOUND/libaudio.a; then
11830         EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/libaudio.a"
11831         echo "$as_me:$LINENO: result: yes" >&5
11832 echo "${ECHO_T}yes" >&6
11833       else
11834         echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11835 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11836       fi
11837       ;;
11838     *-*-solaris*)
11839       if test -f /usr/demo/SOUND/lib/libaudio.a; then
11840         EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/lib/libaudio.a"
11841         echo "$as_me:$LINENO: result: yes" >&5
11842 echo "${ECHO_T}yes" >&6
11843       else
11844         echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11845 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11846       fi
11847       ;;
11848     *)   echo "$as_me:$LINENO: result: yes" >&5
11849 echo "${ECHO_T}yes" >&6
11850       ;;
11851   esac
11852   EXTRADEFS="$EXTRADEFS -DAU_SUN"
11853   SYSEXTRAS="$SYSEXTRAS sun_a.c"
11854 else
11855   echo "$as_me:$LINENO: result: no" >&5
11856 echo "${ECHO_T}no" >&6
11857 fi
11858
11859 echo "$as_me:$LINENO: checking enable_audio=hpux" >&5
11860 echo $ECHO_N "checking enable_audio=hpux... $ECHO_C" >&6
11861 if test "x$au_enable_hpux" = xyes; then
11862   case "$target" in
11863     *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
11864 echo "${ECHO_T}yes" >&6 ;;
11865     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11866 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11867   esac
11868   EXTRADEFS="$EXTRADEFS -DAU_HPUX_AUDIO"
11869   SYSEXTRAS="$SYSEXTRAS hpux_d_a.c"
11870 else
11871   echo "$as_me:$LINENO: result: no" >&5
11872 echo "${ECHO_T}no" >&6
11873 fi
11874
11875 echo "$as_me:$LINENO: checking enable_audio=irix" >&5
11876 echo $ECHO_N "checking enable_audio=irix... $ECHO_C" >&6
11877 if test "x$au_enable_irix" = xyes; then
11878   case "$target" in
11879     *-sgi-irix5*|*-sgi-irix6.2)
11880       EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_OLDAL"
11881       echo "$as_me:$LINENO: result: yes" >&5
11882 echo "${ECHO_T}yes" >&6
11883       ;;
11884     *-sgi-irix6*)
11885       EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_NEWAL"
11886       echo "$as_me:$LINENO: result: yes" >&5
11887 echo "${ECHO_T}yes" >&6
11888       ;;
11889     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11890 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11891   esac
11892   SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_al.c"
11893   EXTRALIBS="$EXTRASLIBS -laudio"
11894 else
11895   echo "$as_me:$LINENO: result: no" >&5
11896 echo "${ECHO_T}no" >&6
11897 fi
11898
11899 echo "$as_me:$LINENO: checking enable_audio=mme" >&5
11900 echo $ECHO_N "checking enable_audio=mme... $ECHO_C" >&6
11901 if test "x$au_enable_mme" = xyes; then
11902   case "$target" in
11903     *-dec-*) echo "$as_me:$LINENO: result: yes" >&5
11904 echo "${ECHO_T}yes" >&6 ;;
11905     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11906 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11907   esac
11908   EXTRADEFS="$EXTRADEFS -DAU_DEC -DAU_AUDRIV"
11909   SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_mme.c"
11910   CPPFLAGS="$CPPFLAGS -I/usr/opt/MME210/include"
11911   EXTRALIBS="$EXTRALIBS /usr/opt/MME220/lib/libmme.a"
11912 else
11913   echo "$as_me:$LINENO: result: no" >&5
11914 echo "${ECHO_T}no" >&6
11915 fi
11916
11917 echo "$as_me:$LINENO: checking enable_audio=sb_dsp" >&5
11918 echo $ECHO_N "checking enable_audio=sb_dsp... $ECHO_C" >&6
11919 if test "x$au_enable_sb_dsp" = xyes; then
11920   case "$target" in
11921     *-*-bsdi2.0) echo "$as_me:$LINENO: result: yes" >&5
11922 echo "${ECHO_T}yes" >&6 ;;
11923     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11924 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11925   esac
11926   EXTRADEFS="$EXTRADEFS -DAU_BSDI -DDEFAULT_RATE=22500"
11927   SYSEXTRAS="$SYSEXTRAS bsd20_a.c"
11928 else
11929   echo "$as_me:$LINENO: result: no" >&5
11930 echo "${ECHO_T}no" >&6
11931 fi
11932
11933 echo "$as_me:$LINENO: checking enable_audio=w32" >&5
11934 echo $ECHO_N "checking enable_audio=w32... $ECHO_C" >&6
11935 if test "x$au_enable_w32" = xyes; then
11936   case "$target" in
11937     *-*-cygwin*)
11938      echo "$as_me:$LINENO: result: yes" >&5
11939 echo "${ECHO_T}yes" >&6
11940      ;;
11941     *-*-mingw32)
11942      echo "$as_me:$LINENO: result: yes" >&5
11943 echo "${ECHO_T}yes" >&6
11944      ;;
11945     *)
11946      { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11947 echo "$as_me: WARNING: may not work on $target" >&2;}
11948      ;;
11949   esac
11950   SYSEXTRAS="$SYSEXTRAS w32_a.c"
11951   EXTRALIBS="$EXTRALIBS -lwinmm"
11952   EXTRADEFS="$EXTRADEFS -DAU_W32"
11953 else
11954   echo "$as_me:$LINENO: result: no" >&5
11955 echo "${ECHO_T}no" >&6
11956 fi
11957
11958 echo "$as_me:$LINENO: checking enable_audio=darwin" >&5
11959 echo $ECHO_N "checking enable_audio=darwin... $ECHO_C" >&6
11960 if test "x$au_enable_darwin" = xyes; then
11961   EXTRADEFS="$EXTRADEFS -DAU_DARWIN"
11962   SYSEXTRAS="$SYSEXTRAS darwin_a.c"
11963   EXTRALIBS="$EXTRALIBS -framework CoreAudio"
11964     case "$target" in
11965     *-*-darwin*)
11966      echo "$as_me:$LINENO: result: yes" >&5
11967 echo "${ECHO_T}yes" >&6;;
11968    *)
11969      { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11970 echo "$as_me: WARNING: may not work on $target" >&2;}
11971      ;;
11972   esac
11973 else
11974   echo "$as_me:$LINENO: result: no" >&5
11975 echo "${ECHO_T}no" >&6
11976 fi
11977
11978
11979 echo "$as_me:$LINENO: checking enable_audio=alsa" >&5
11980 echo $ECHO_N "checking enable_audio=alsa... $ECHO_C" >&6
11981 if test "x$au_enable_alsa" = xyes; then
11982   echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
11983 echo "${ECHO_T}yes, configuring alsa" >&6
11984   KEEPCFLAGS=$CFLAGS
11985   KEEPLIBS=$LIBS
11986   KEEPLDFLAGS=$LDFLAGS
11987   alsa_save_CFLAGS="$CFLAGS"
11988 alsa_save_LDFLAGS="$LDFLAGS"
11989 alsa_save_LIBS="$LIBS"
11990 alsa_found=yes
11991
11992
11993 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
11994 if test "${with_alsa_prefix+set}" = set; then
11995   withval="$with_alsa_prefix"
11996   alsa_prefix="$withval"
11997 else
11998   alsa_prefix=""
11999 fi;
12000
12001
12002 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
12003 if test "${with_alsa_inc_prefix+set}" = set; then
12004   withval="$with_alsa_inc_prefix"
12005   alsa_inc_prefix="$withval"
12006 else
12007   alsa_inc_prefix=""
12008 fi;
12009
12010 # Check whether --enable-alsatest or --disable-alsatest was given.
12011 if test "${enable_alsatest+set}" = set; then
12012   enableval="$enable_alsatest"
12013   enable_alsatest=no
12014 else
12015   enable_alsatest=yes
12016 fi;
12017
12018 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
12019 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
12020 if test "$alsa_inc_prefix" != "" ; then
12021         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
12022         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
12023 fi
12024 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
12025 echo "${ECHO_T}$ALSA_CFLAGS" >&6
12026
12027 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
12028 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
12029 if test "$alsa_prefix" != "" ; then
12030         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
12031         LDFLAGS="$LDFLAGS $ALSA_LIBS"
12032 fi
12033
12034 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
12035 LIBS=`echo $LIBS | sed 's/-lm//'`
12036 LIBS=`echo $LIBS | sed 's/-ldl//'`
12037 LIBS=`echo $LIBS | sed 's/-lpthread//'`
12038 LIBS=`echo $LIBS | sed 's/  //'`
12039 LIBS="$ALSA_LIBS $LIBS"
12040 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
12041 echo "${ECHO_T}$ALSA_LIBS" >&6
12042
12043 min_alsa_version=0.1.1
12044 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
12045 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
12046 no_alsa=""
12047     alsa_min_major_version=`echo $min_alsa_version | \
12048            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12049     alsa_min_minor_version=`echo $min_alsa_version | \
12050            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12051     alsa_min_micro_version=`echo $min_alsa_version | \
12052            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12053
12054
12055
12056
12057 ac_ext=c
12058 ac_cpp='$CPP $CPPFLAGS'
12059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12062
12063 cat >conftest.$ac_ext <<_ACEOF
12064 /* confdefs.h.  */
12065 _ACEOF
12066 cat confdefs.h >>conftest.$ac_ext
12067 cat >>conftest.$ac_ext <<_ACEOF
12068 /* end confdefs.h.  */
12069
12070 #include <alsa/asoundlib.h>
12071
12072 int
12073 main ()
12074 {
12075
12076 /* ensure backward compatibility */
12077 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
12078 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
12079 #endif
12080 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
12081 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12082 #endif
12083 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12084 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12085 #endif
12086
12087 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
12088   exit(0);
12089 #  else
12090 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
12091 #       error not present
12092 #    endif
12093
12094 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
12095   exit(0);
12096 #   else
12097 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
12098 #          error not present
12099 #      endif
12100
12101 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12102 #        error not present
12103 #      endif
12104 #    endif
12105 #  endif
12106 exit(0);
12107
12108   ;
12109   return 0;
12110 }
12111 _ACEOF
12112 rm -f conftest.$ac_objext
12113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12114   (eval $ac_compile) 2>conftest.er1
12115   ac_status=$?
12116   grep -v '^ *+' conftest.er1 >conftest.err
12117   rm -f conftest.er1
12118   cat conftest.err >&5
12119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120   (exit $ac_status); } &&
12121          { ac_try='test -z "$ac_c_werror_flag"
12122                          || test ! -s conftest.err'
12123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124   (eval $ac_try) 2>&5
12125   ac_status=$?
12126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127   (exit $ac_status); }; } &&
12128          { ac_try='test -s conftest.$ac_objext'
12129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130   (eval $ac_try) 2>&5
12131   ac_status=$?
12132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133   (exit $ac_status); }; }; then
12134   echo "$as_me:$LINENO: result: found." >&5
12135 echo "${ECHO_T}found." >&6
12136 else
12137   echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.$ac_ext >&5
12139
12140 cat >conftest.$ac_ext <<_ACEOF
12141 /* confdefs.h.  */
12142 _ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h.  */
12146
12147 #include <sys/asoundlib.h>
12148
12149 int
12150 main ()
12151 {
12152
12153 /* ensure backward compatibility */
12154 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
12155 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
12156 #endif
12157 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
12158 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12159 #endif
12160 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12161 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12162 #endif
12163
12164 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
12165   exit(0);
12166 #  else
12167 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
12168 #       error not present
12169 #    endif
12170
12171 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
12172   exit(0);
12173 #   else
12174 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
12175 #          error not present
12176 #      endif
12177
12178 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12179 #        error not present
12180 #      endif
12181 #    endif
12182 #  endif
12183 exit(0);
12184
12185   ;
12186   return 0;
12187 }
12188 _ACEOF
12189 rm -f conftest.$ac_objext
12190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12191   (eval $ac_compile) 2>conftest.er1
12192   ac_status=$?
12193   grep -v '^ *+' conftest.er1 >conftest.err
12194   rm -f conftest.er1
12195   cat conftest.err >&5
12196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197   (exit $ac_status); } &&
12198          { ac_try='test -z "$ac_c_werror_flag"
12199                          || test ! -s conftest.err'
12200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12201   (eval $ac_try) 2>&5
12202   ac_status=$?
12203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204   (exit $ac_status); }; } &&
12205          { ac_try='test -s conftest.$ac_objext'
12206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12207   (eval $ac_try) 2>&5
12208   ac_status=$?
12209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210   (exit $ac_status); }; }; then
12211   echo "$as_me:$LINENO: result: found." >&5
12212 echo "${ECHO_T}found." >&6
12213 else
12214   echo "$as_me: failed program was:" >&5
12215 sed 's/^/| /' conftest.$ac_ext >&5
12216
12217 echo "$as_me:$LINENO: result: not present." >&5
12218 echo "${ECHO_T}not present." >&6
12219    echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
12220 echo "${ECHO_T}libasound was not found anywhere." >&6
12221    alsa_found=no
12222 fi
12223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12224    echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
12225 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
12226
12227 fi
12228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12229 ac_ext=c
12230 ac_cpp='$CPP $CPPFLAGS'
12231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12234
12235
12236
12237 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
12238 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
12239 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
12240   echo $ECHO_N "(cached) $ECHO_C" >&6
12241 else
12242   ac_check_lib_save_LIBS=$LIBS
12243 LIBS="-lasound  $LIBS"
12244 cat >conftest.$ac_ext <<_ACEOF
12245 /* confdefs.h.  */
12246 _ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h.  */
12250
12251 /* Override any gcc2 internal prototype to avoid an error.  */
12252 #ifdef __cplusplus
12253 extern "C"
12254 #endif
12255 /* We use char because int might match the return type of a gcc2
12256    builtin and then its argument prototype would still apply.  */
12257 char snd_ctl_open ();
12258 int
12259 main ()
12260 {
12261 snd_ctl_open ();
12262   ;
12263   return 0;
12264 }
12265 _ACEOF
12266 rm -f conftest.$ac_objext conftest$ac_exeext
12267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12268   (eval $ac_link) 2>conftest.er1
12269   ac_status=$?
12270   grep -v '^ *+' conftest.er1 >conftest.err
12271   rm -f conftest.er1
12272   cat conftest.err >&5
12273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274   (exit $ac_status); } &&
12275          { ac_try='test -z "$ac_c_werror_flag"
12276                          || test ! -s conftest.err'
12277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278   (eval $ac_try) 2>&5
12279   ac_status=$?
12280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281   (exit $ac_status); }; } &&
12282          { ac_try='test -s conftest$ac_exeext'
12283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12284   (eval $ac_try) 2>&5
12285   ac_status=$?
12286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287   (exit $ac_status); }; }; then
12288   ac_cv_lib_asound_snd_ctl_open=yes
12289 else
12290   echo "$as_me: failed program was:" >&5
12291 sed 's/^/| /' conftest.$ac_ext >&5
12292
12293 ac_cv_lib_asound_snd_ctl_open=no
12294 fi
12295 rm -f conftest.err conftest.$ac_objext \
12296       conftest$ac_exeext conftest.$ac_ext
12297 LIBS=$ac_check_lib_save_LIBS
12298 fi
12299 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
12300 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
12301 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
12302   cat >>confdefs.h <<_ACEOF
12303 #define HAVE_LIBASOUND 1
12304 _ACEOF
12305
12306   LIBS="-lasound $LIBS"
12307
12308 else
12309   echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
12310 echo "${ECHO_T}No linkable libasound was found." >&6
12311    alsa_found=no
12312
12313 fi
12314
12315
12316 if test "x$alsa_found" = "xyes" ; then
12317    :
12318    LIBS=`echo $LIBS | sed 's/-lasound//g'`
12319    LIBS=`echo $LIBS | sed 's/  //'`
12320    LIBS="-lasound $LIBS"
12321 else
12322    :
12323    CFLAGS="$alsa_save_CFLAGS"
12324    LDFLAGS="$alsa_save_LDFLAGS"
12325    LIBS="$alsa_save_LIBS"
12326    ALSA_CFLAGS=""
12327    ALSA_LIBS=""
12328 fi
12329
12330
12331
12332
12333   if test "x$alsa_found" = "xyes" ; then
12334         EXTRADEFS="$EXTRADEFS -DAU_ALSA"
12335     SYSEXTRAS="$SYSEXTRAS alsa_a.c"
12336     for f in $ALSA_CFLAGS; do
12337     case ".$f" in
12338         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
12339         *)              CFLAGS="$CPPFLAGS $f" ;;
12340     esac
12341 done
12342
12343     LIBS="$LIBS $ALSA_LIBS"
12344
12345 for ac_func in snd_seq_port_info_set_timestamping
12346 do
12347 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12348 echo "$as_me:$LINENO: checking for $ac_func" >&5
12349 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12350 if eval "test \"\${$as_ac_var+set}\" = set"; then
12351   echo $ECHO_N "(cached) $ECHO_C" >&6
12352 else
12353   cat >conftest.$ac_ext <<_ACEOF
12354 /* confdefs.h.  */
12355 _ACEOF
12356 cat confdefs.h >>conftest.$ac_ext
12357 cat >>conftest.$ac_ext <<_ACEOF
12358 /* end confdefs.h.  */
12359 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12360    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12361 #define $ac_func innocuous_$ac_func
12362
12363 /* System header to define __stub macros and hopefully few prototypes,
12364     which can conflict with char $ac_func (); below.
12365     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12366     <limits.h> exists even on freestanding compilers.  */
12367
12368 #ifdef __STDC__
12369 # include <limits.h>
12370 #else
12371 # include <assert.h>
12372 #endif
12373
12374 #undef $ac_func
12375
12376 /* Override any gcc2 internal prototype to avoid an error.  */
12377 #ifdef __cplusplus
12378 extern "C"
12379 {
12380 #endif
12381 /* We use char because int might match the return type of a gcc2
12382    builtin and then its argument prototype would still apply.  */
12383 char $ac_func ();
12384 /* The GNU C library defines this for functions which it implements
12385     to always fail with ENOSYS.  Some functions are actually named
12386     something starting with __ and the normal name is an alias.  */
12387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12388 choke me
12389 #else
12390 char (*f) () = $ac_func;
12391 #endif
12392 #ifdef __cplusplus
12393 }
12394 #endif
12395
12396 int
12397 main ()
12398 {
12399 return f != $ac_func;
12400   ;
12401   return 0;
12402 }
12403 _ACEOF
12404 rm -f conftest.$ac_objext conftest$ac_exeext
12405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12406   (eval $ac_link) 2>conftest.er1
12407   ac_status=$?
12408   grep -v '^ *+' conftest.er1 >conftest.err
12409   rm -f conftest.er1
12410   cat conftest.err >&5
12411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412   (exit $ac_status); } &&
12413          { ac_try='test -z "$ac_c_werror_flag"
12414                          || test ! -s conftest.err'
12415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12416   (eval $ac_try) 2>&5
12417   ac_status=$?
12418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419   (exit $ac_status); }; } &&
12420          { ac_try='test -s conftest$ac_exeext'
12421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422   (eval $ac_try) 2>&5
12423   ac_status=$?
12424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425   (exit $ac_status); }; }; then
12426   eval "$as_ac_var=yes"
12427 else
12428   echo "$as_me: failed program was:" >&5
12429 sed 's/^/| /' conftest.$ac_ext >&5
12430
12431 eval "$as_ac_var=no"
12432 fi
12433 rm -f conftest.err conftest.$ac_objext \
12434       conftest$ac_exeext conftest.$ac_ext
12435 fi
12436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12437 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12438 if test `eval echo '${'$as_ac_var'}'` = yes; then
12439   cat >>confdefs.h <<_ACEOF
12440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12441 _ACEOF
12442
12443 fi
12444 done
12445
12446   else
12447     { echo "$as_me:$LINENO: WARNING: Couldn't configure alsa." >&5
12448 echo "$as_me: WARNING: Couldn't configure alsa." >&2;}
12449     CFLAGS=$KEEPCFLAGS
12450     LIBS=$KEEPLIBS
12451     LDFLAGS=$KEEPLDFLAGS
12452   fi
12453 else
12454   echo "$as_me:$LINENO: result: no" >&5
12455 echo "${ECHO_T}no" >&6
12456 fi
12457
12458 echo "$as_me:$LINENO: checking enable_audio=alib" >&5
12459 echo $ECHO_N "checking enable_audio=alib... $ECHO_C" >&6
12460 if test "x$au_enable_alib" = xyes; then
12461   case "$target" in
12462     *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
12463 echo "${ECHO_T}yes" >&6 ;;
12464     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12465 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12466   esac
12467   SYSEXTRAS="$SYSEXTRAS hpux_a.c"
12468   EXTRADEFS="$EXTRADEFS -DAU_HPUX_ALIB"
12469   if test -d /opt/audio/include; then
12470     CPPFLAGS="$CPPFLAGS -I/opt/audio/include"
12471   fi
12472   if test -d /opt/audio/lib; then
12473     EXTRALIBS="$EXTRALIBS -L/opt/audio/lib"
12474   fi
12475   EXTRALIBS="$EXTRALIBS -lAlib"
12476 else
12477   echo "$as_me:$LINENO: result: no" >&5
12478 echo "${ECHO_T}no" >&6
12479 fi
12480
12481 echo "$as_me:$LINENO: checking enable_audio=nas" >&5
12482 echo $ECHO_N "checking enable_audio=nas... $ECHO_C" >&6
12483 if test "x$au_enable_nas" = xyes; then
12484   if test "x$with_x" != xyes; then
12485     { { echo "$as_me:$LINENO: error: nas: --with-x option must be specified" >&5
12486 echo "$as_me: error: nas: --with-x option must be specified" >&2;}
12487    { (exit 1); exit 1; }; }
12488   fi
12489   EXTRADEFS="$EXTRADEFS -DAU_NAS"
12490   SYSEXTRAS="$SYSEXTRAS nas_a.c"
12491
12492
12493   if test "x$with_nas_library" != x; then
12494     echo "$as_me:$LINENO: result: $with_nas_library" >&5
12495 echo "${ECHO_T}$with_nas_library" >&6;
12496     EXTRALIBS="$EXTRALIBS $with_nas_library"
12497   else
12498     echo "$as_me:$LINENO: result: " >&5
12499 echo "${ECHO_T}" >&6
12500     echo "$as_me:$LINENO: checking for library containing AuOpenServer" >&5
12501 echo $ECHO_N "checking for library containing AuOpenServer... $ECHO_C" >&6
12502 if test "${timidity_cv_search_AuOpenServer+set}" = set; then
12503   echo $ECHO_N "(cached) $ECHO_C" >&6
12504 else
12505   ac_func_search_save_LIBS="$LIBS"
12506 timidity_cv_search_AuOpenServer="no"
12507 for i in $x_libraries/libaudio.a \
12508          /usr/lib/libaudio.so \
12509          /usr/lib/libaudio.a ; do
12510   LIBS="$i  $ac_func_search_save_LIBS"
12511   cat >conftest.$ac_ext <<_ACEOF
12512 /* confdefs.h.  */
12513 _ACEOF
12514 cat confdefs.h >>conftest.$ac_ext
12515 cat >>conftest.$ac_ext <<_ACEOF
12516 /* end confdefs.h.  */
12517
12518 /* Override any gcc2 internal prototype to avoid an error.  */
12519 #ifdef __cplusplus
12520 extern "C"
12521 #endif
12522 /* We use char because int might match the return type of a gcc2
12523    builtin and then its argument prototype would still apply.  */
12524 char AuOpenServer ();
12525 int
12526 main ()
12527 {
12528 AuOpenServer ();
12529   ;
12530   return 0;
12531 }
12532 _ACEOF
12533 rm -f conftest.$ac_objext conftest$ac_exeext
12534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12535   (eval $ac_link) 2>conftest.er1
12536   ac_status=$?
12537   grep -v '^ *+' conftest.er1 >conftest.err
12538   rm -f conftest.er1
12539   cat conftest.err >&5
12540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541   (exit $ac_status); } &&
12542          { ac_try='test -z "$ac_c_werror_flag"
12543                          || test ! -s conftest.err'
12544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12545   (eval $ac_try) 2>&5
12546   ac_status=$?
12547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548   (exit $ac_status); }; } &&
12549          { ac_try='test -s conftest$ac_exeext'
12550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12551   (eval $ac_try) 2>&5
12552   ac_status=$?
12553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554   (exit $ac_status); }; }; then
12555   timidity_cv_search_AuOpenServer="$i"; break
12556 else
12557   echo "$as_me: failed program was:" >&5
12558 sed 's/^/| /' conftest.$ac_ext >&5
12559
12560 fi
12561 rm -f conftest.err conftest.$ac_objext \
12562       conftest$ac_exeext conftest.$ac_ext
12563 done
12564 LIBS="$ac_func_search_save_LIBS"
12565 fi
12566 echo "$as_me:$LINENO: result: $timidity_cv_search_AuOpenServer" >&5
12567 echo "${ECHO_T}$timidity_cv_search_AuOpenServer" >&6
12568 if test "$timidity_cv_search_AuOpenServer" != "no"; then
12569    echo "$as_me:$LINENO: result: NAS: $timidity_cv_search_AuOpenServer" >&5
12570 echo "${ECHO_T}NAS: $timidity_cv_search_AuOpenServer" >&6
12571           EXTRALIBS="$EXTRALIBS $timidity_cv_search_AuOpenServer"
12572 else :
12573   { echo "$as_me:$LINENO: WARNING: NAS library is not found." >&5
12574 echo "$as_me: WARNING: NAS library is not found." >&2;}
12575 fi
12576   fi
12577   test "x$with_nas_includes" != x && CPPFLAGS="$CPPFLAGS -I$with_nas_includes"
12578   lib_xt_opt=-lXt
12579   if test "x$have_xext" = xyes; then
12580     lib_xext_opt=-lXext
12581   fi
12582   if test "x$have_xprelibs" = xyes; then
12583     lib_xprelibs_opt='-lSM -lICE'
12584   fi
12585 else
12586   echo "$as_me:$LINENO: result: no" >&5
12587 echo "${ECHO_T}no" >&6
12588 fi
12589
12590 echo "$as_me:$LINENO: checking enable_audio=arts" >&5
12591 echo $ECHO_N "checking enable_audio=arts... $ECHO_C" >&6
12592 if test "x$au_enable_arts" = xyes; then
12593   echo "$as_me:$LINENO: result: yes, configuring aRts" >&5
12594 echo "${ECHO_T}yes, configuring aRts" >&6
12595   KEEPCFLAGS=$CFLAGS
12596   KEEPLIBS=$LIBS
12597   KEEPLDFLAGS=$LDFLAGS
12598
12599 # Check whether --with-arts-prefix or --without-arts-prefix was given.
12600 if test "${with_arts_prefix+set}" = set; then
12601   withval="$with_arts_prefix"
12602   arts_prefix="$withval"
12603 else
12604   arts_prefix=""
12605 fi;
12606 # Check whether --enable-artstest or --disable-artstest was given.
12607 if test "${enable_artstest+set}" = set; then
12608   enableval="$enable_artstest"
12609
12610 else
12611   enable_artstest=yes
12612 fi;
12613
12614   if test x$arts_prefix != x ; then
12615      arts_args="$arts_args --prefix=$arts_prefix"
12616      if test x${ARTS_CONFIG+set} != xset ; then
12617         ARTS_CONFIG=$arts_prefix/bin/artsc-config
12618      fi
12619   fi
12620
12621   # Extract the first word of "artsc-config", so it can be a program name with args.
12622 set dummy artsc-config; ac_word=$2
12623 echo "$as_me:$LINENO: checking for $ac_word" >&5
12624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12625 if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
12626   echo $ECHO_N "(cached) $ECHO_C" >&6
12627 else
12628   case $ARTS_CONFIG in
12629   [\\/]* | ?:[\\/]*)
12630   ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
12631   ;;
12632   *)
12633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12634 for as_dir in $PATH
12635 do
12636   IFS=$as_save_IFS
12637   test -z "$as_dir" && as_dir=.
12638   for ac_exec_ext in '' $ac_executable_extensions; do
12639   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12640     ac_cv_path_ARTS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12642     break 2
12643   fi
12644 done
12645 done
12646
12647   test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
12648   ;;
12649 esac
12650 fi
12651 ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
12652
12653 if test -n "$ARTS_CONFIG"; then
12654   echo "$as_me:$LINENO: result: $ARTS_CONFIG" >&5
12655 echo "${ECHO_T}$ARTS_CONFIG" >&6
12656 else
12657   echo "$as_me:$LINENO: result: no" >&5
12658 echo "${ECHO_T}no" >&6
12659 fi
12660
12661   min_arts_version=0.9.5
12662   echo "$as_me:$LINENO: checking for ARTS - version >= $min_arts_version" >&5
12663 echo $ECHO_N "checking for ARTS - version >= $min_arts_version... $ECHO_C" >&6
12664   no_arts=""
12665   if test "$ARTS_CONFIG" = "no" ; then
12666     no_arts=yes
12667   else
12668     ARTS_CFLAGS=`$ARTS_CONFIG $artsconf_args --cflags`
12669     ARTS_LIBS=`$ARTS_CONFIG $artsconf_args --libs`
12670
12671     arts_major_version=`$ARTS_CONFIG $arts_args --version | \
12672            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12673     arts_minor_version=`$ARTS_CONFIG $arts_args --version | \
12674            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12675     arts_micro_version=`$ARTS_CONFIG $arts_config_args --version | \
12676            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12677     if test "x$enable_artstest" = "xyes" ; then
12678       ac_save_CFLAGS="$CFLAGS"
12679       ac_save_LIBS="$LIBS"
12680       CFLAGS="$CFLAGS $ARTS_CFLAGS"
12681       LIBS="$LIBS $ARTS_LIBS"
12682       rm -f conf.artstest
12683       if test "$cross_compiling" = yes; then
12684   echo $ac_n "cross compiling; assumed OK... $ac_c"
12685 else
12686   cat >conftest.$ac_ext <<_ACEOF
12687 /* confdefs.h.  */
12688 _ACEOF
12689 cat confdefs.h >>conftest.$ac_ext
12690 cat >>conftest.$ac_ext <<_ACEOF
12691 /* end confdefs.h.  */
12692
12693 #include <stdio.h>
12694 #include <stdlib.h>
12695 #include <string.h>
12696 #include <artsc.h>
12697
12698 char*
12699 my_strdup (char *str)
12700 {
12701   char *new_str;
12702
12703   if (str)
12704     {
12705       new_str = malloc ((strlen (str) + 1) * sizeof(char));
12706       strcpy (new_str, str);
12707     }
12708   else
12709     new_str = NULL;
12710
12711   return new_str;
12712 }
12713
12714 int main ()
12715 {
12716   int major, minor, micro;
12717   char *tmp_version;
12718
12719   system ("touch conf.artstest");
12720
12721   /* HP/UX 9 (%@#!) writes to sscanf strings */
12722   tmp_version = my_strdup("$min_arts_version");
12723   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12724      printf("%s, bad version string\n", "$min_arts_version");
12725      exit(1);
12726    }
12727
12728    if (($arts_major_version > major) ||
12729       (($arts_major_version == major) && ($arts_minor_version > minor)) ||
12730       (($arts_major_version == major) && ($arts_minor_version == minor) && ($arts_micro_version >= micro)))
12731     {
12732       return 0;
12733     }
12734   else
12735     {
12736       printf("\n*** 'artsc-config --version' returned %d.%d.%d, but the minimum version\n", $arts_major_version, $arts_minor_version, $arts_micro_version);
12737       printf("*** of ARTS required is %d.%d.%d. If artsc-config is correct, then it is\n", major, minor, micro);
12738       printf("*** best to upgrade to the required version.\n");
12739       printf("*** If artsc-config was wrong, set the environment variable ARTS_CONFIG\n");
12740       printf("*** to point to the correct copy of artsc-config, and remove the file\n");
12741       printf("*** config.cache before re-running configure\n");
12742       return 1;
12743     }
12744 }
12745
12746
12747 _ACEOF
12748 rm -f conftest$ac_exeext
12749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12750   (eval $ac_link) 2>&5
12751   ac_status=$?
12752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12755   (eval $ac_try) 2>&5
12756   ac_status=$?
12757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758   (exit $ac_status); }; }; then
12759   :
12760 else
12761   echo "$as_me: program exited with status $ac_status" >&5
12762 echo "$as_me: failed program was:" >&5
12763 sed 's/^/| /' conftest.$ac_ext >&5
12764
12765 ( exit $ac_status )
12766 no_arts=yes
12767 fi
12768 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12769 fi
12770        CFLAGS="$ac_save_CFLAGS"
12771        LIBS="$ac_save_LIBS"
12772      fi
12773   fi
12774   if test "x$no_arts" = x ; then
12775      echo "$as_me:$LINENO: result: yes" >&5
12776 echo "${ECHO_T}yes" >&6
12777      :
12778   else
12779      echo "$as_me:$LINENO: result: no" >&5
12780 echo "${ECHO_T}no" >&6
12781      if test "$ARTS_CONFIG" = "no" ; then
12782        echo "*** The artsc-config script installed by ARTS could not be found"
12783        echo "*** If ARTS was installed in PREFIX, make sure PREFIX/bin is in"
12784        echo "*** your path, or set the ARTS_CONFIG environment variable to the"
12785        echo "*** full path to artsc-config."
12786      else
12787        if test -f conf.artstest ; then
12788         :
12789        else
12790           echo "*** Could not run ARTS test program, checking why..."
12791           CFLAGS="$CFLAGS $ARTS_CFLAGS"
12792           LIBS="$LIBS $ARTS_LIBS"
12793           cat >conftest.$ac_ext <<_ACEOF
12794 /* confdefs.h.  */
12795 _ACEOF
12796 cat confdefs.h >>conftest.$ac_ext
12797 cat >>conftest.$ac_ext <<_ACEOF
12798 /* end confdefs.h.  */
12799
12800 #include <stdio.h>
12801 #include <artsc.h>
12802
12803 int
12804 main ()
12805 {
12806  return 0;
12807   ;
12808   return 0;
12809 }
12810 _ACEOF
12811 rm -f conftest.$ac_objext conftest$ac_exeext
12812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12813   (eval $ac_link) 2>conftest.er1
12814   ac_status=$?
12815   grep -v '^ *+' conftest.er1 >conftest.err
12816   rm -f conftest.er1
12817   cat conftest.err >&5
12818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819   (exit $ac_status); } &&
12820          { ac_try='test -z "$ac_c_werror_flag"
12821                          || test ! -s conftest.err'
12822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12823   (eval $ac_try) 2>&5
12824   ac_status=$?
12825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826   (exit $ac_status); }; } &&
12827          { ac_try='test -s conftest$ac_exeext'
12828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12829   (eval $ac_try) 2>&5
12830   ac_status=$?
12831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832   (exit $ac_status); }; }; then
12833    echo "*** The test program compiled, but did not run. This usually means"
12834           echo "*** that the run-time linker is not finding ARTS or finding the wrong"
12835           echo "*** version of ARTS. If it is not finding ARTS, you'll need to set your"
12836           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12837           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12838           echo "*** is required on your system"
12839           echo "***"
12840           echo "*** If you have an old version installed, it is best to remove it, although"
12841           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12842 else
12843   echo "$as_me: failed program was:" >&5
12844 sed 's/^/| /' conftest.$ac_ext >&5
12845
12846  echo "*** The test program failed to compile or link. See the file config.log for the"
12847           echo "*** exact error that occured. This usually means ARTS was incorrectly installed"
12848           echo "*** or that you have moved ARTS since it was installed. In the latter case, you"
12849           echo "*** may want to edit the arts-config script: $ARTS_CONFIG"
12850 fi
12851 rm -f conftest.err conftest.$ac_objext \
12852       conftest$ac_exeext conftest.$ac_ext
12853           CFLAGS="$ac_save_CFLAGS"
12854           LIBS="$ac_save_LIBS"
12855        fi
12856      fi
12857      ARTS_CFLAGS=""
12858      ARTS_LIBS=""
12859      :
12860   fi
12861
12862
12863   rm -f conf.artstest
12864
12865   CFLAGS=$KEEPCFLAGS
12866   LIBS=$KEEPLIBS
12867   LDFLAGS=$KEEPLDFLAGS
12868   if test "x$no_arts" = x; then
12869         EXTRADEFS="$EXTRADEFS -DAU_ARTS"
12870     SYSEXTRAS="$SYSEXTRAS aRts_a.c"
12871     for f in $ARTS_CFLAGS; do
12872     case ".$f" in
12873         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
12874         *)              CFLAGS="$CPPFLAGS $f" ;;
12875     esac
12876 done
12877
12878     LIBS="$LIBS $ARTS_LIBS"
12879   else
12880     { echo "$as_me:$LINENO: WARNING: aRts: Couldn't configure" >&5
12881 echo "$as_me: WARNING: aRts: Couldn't configure" >&2;}
12882   fi
12883 else
12884   echo "$as_me:$LINENO: result: no" >&5
12885 echo "${ECHO_T}no" >&6
12886 fi
12887
12888 echo "$as_me:$LINENO: checking enable_audio=esd" >&5
12889 echo $ECHO_N "checking enable_audio=esd... $ECHO_C" >&6
12890 if test "x$au_enable_esd" = xyes; then
12891   echo "$as_me:$LINENO: result: yes, configuring esd" >&5
12892 echo "${ECHO_T}yes, configuring esd" >&6
12893   KEEPCFLAGS=$CFLAGS
12894   KEEPLIBS=$LIBS
12895   KEEPLDFLAGS=$LDFLAGS
12896
12897 # Check whether --with-esd-prefix or --without-esd-prefix was given.
12898 if test "${with_esd_prefix+set}" = set; then
12899   withval="$with_esd_prefix"
12900   esd_prefix="$withval"
12901 else
12902   esd_prefix=""
12903 fi;
12904
12905 # Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given.
12906 if test "${with_esd_exec_prefix+set}" = set; then
12907   withval="$with_esd_exec_prefix"
12908   esd_exec_prefix="$withval"
12909 else
12910   esd_exec_prefix=""
12911 fi;
12912 # Check whether --enable-esdtest or --disable-esdtest was given.
12913 if test "${enable_esdtest+set}" = set; then
12914   enableval="$enable_esdtest"
12915
12916 else
12917   enable_esdtest=yes
12918 fi;
12919
12920   if test x$esd_exec_prefix != x ; then
12921      esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
12922      if test x${ESD_CONFIG+set} != xset ; then
12923         ESD_CONFIG=$esd_exec_prefix/bin/esd-config
12924      fi
12925   fi
12926   if test x$esd_prefix != x ; then
12927      esd_args="$esd_args --prefix=$esd_prefix"
12928      if test x${ESD_CONFIG+set} != xset ; then
12929         ESD_CONFIG=$esd_prefix/bin/esd-config
12930      fi
12931   fi
12932
12933   # Extract the first word of "esd-config", so it can be a program name with args.
12934 set dummy esd-config; ac_word=$2
12935 echo "$as_me:$LINENO: checking for $ac_word" >&5
12936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12937 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
12938   echo $ECHO_N "(cached) $ECHO_C" >&6
12939 else
12940   case $ESD_CONFIG in
12941   [\\/]* | ?:[\\/]*)
12942   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
12943   ;;
12944   *)
12945   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12946 for as_dir in $PATH
12947 do
12948   IFS=$as_save_IFS
12949   test -z "$as_dir" && as_dir=.
12950   for ac_exec_ext in '' $ac_executable_extensions; do
12951   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12952     ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12954     break 2
12955   fi
12956 done
12957 done
12958
12959   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
12960   ;;
12961 esac
12962 fi
12963 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
12964
12965 if test -n "$ESD_CONFIG"; then
12966   echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
12967 echo "${ECHO_T}$ESD_CONFIG" >&6
12968 else
12969   echo "$as_me:$LINENO: result: no" >&5
12970 echo "${ECHO_T}no" >&6
12971 fi
12972
12973   min_esd_version=0.2.7
12974   echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
12975 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6
12976   no_esd=""
12977   if test "$ESD_CONFIG" = "no" ; then
12978     no_esd=yes
12979   else
12980
12981
12982     ac_ext=c
12983 ac_cpp='$CPP $CPPFLAGS'
12984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12987
12988     ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
12989     ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
12990
12991     esd_major_version=`$ESD_CONFIG $esd_args --version | \
12992            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12993     esd_minor_version=`$ESD_CONFIG $esd_args --version | \
12994            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12995     esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
12996            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12997     if test "x$enable_esdtest" = "xyes" ; then
12998       ac_save_CFLAGS="$CFLAGS"
12999       ac_save_LIBS="$LIBS"
13000       CFLAGS="$CFLAGS $ESD_CFLAGS"
13001       LIBS="$LIBS $ESD_LIBS"
13002       rm -f conf.esdtest
13003       if test "$cross_compiling" = yes; then
13004   echo $ac_n "cross compiling; assumed OK... $ac_c"
13005 else
13006   cat >conftest.$ac_ext <<_ACEOF
13007 /* confdefs.h.  */
13008 _ACEOF
13009 cat confdefs.h >>conftest.$ac_ext
13010 cat >>conftest.$ac_ext <<_ACEOF
13011 /* end confdefs.h.  */
13012
13013 #include <stdio.h>
13014 #include <stdlib.h>
13015 #include <string.h>
13016 #include <esd.h>
13017
13018 char*
13019 my_strdup (char *str)
13020 {
13021   char *new_str;
13022
13023   if (str)
13024     {
13025       new_str = malloc ((strlen (str) + 1) * sizeof(char));
13026       strcpy (new_str, str);
13027     }
13028   else
13029     new_str = NULL;
13030
13031   return new_str;
13032 }
13033
13034 int main ()
13035 {
13036   int major, minor, micro;
13037   char *tmp_version;
13038
13039   system ("touch conf.esdtest");
13040
13041   /* HP/UX 9 (%@#!) writes to sscanf strings */
13042   tmp_version = my_strdup("$min_esd_version");
13043   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13044      printf("%s, bad version string\n", "$min_esd_version");
13045      exit(1);
13046    }
13047
13048    if (($esd_major_version > major) ||
13049       (($esd_major_version == major) && ($esd_minor_version > minor)) ||
13050       (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
13051     {
13052       return 0;
13053     }
13054   else
13055     {
13056       printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
13057       printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
13058       printf("*** best to upgrade to the required version.\n");
13059       printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
13060       printf("*** to point to the correct copy of esd-config, and remove the file\n");
13061       printf("*** config.cache before re-running configure\n");
13062       return 1;
13063     }
13064 }
13065
13066
13067 _ACEOF
13068 rm -f conftest$ac_exeext
13069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13070   (eval $ac_link) 2>&5
13071   ac_status=$?
13072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13075   (eval $ac_try) 2>&5
13076   ac_status=$?
13077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078   (exit $ac_status); }; }; then
13079   :
13080 else
13081   echo "$as_me: program exited with status $ac_status" >&5
13082 echo "$as_me: failed program was:" >&5
13083 sed 's/^/| /' conftest.$ac_ext >&5
13084
13085 ( exit $ac_status )
13086 no_esd=yes
13087 fi
13088 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13089 fi
13090        CFLAGS="$ac_save_CFLAGS"
13091        LIBS="$ac_save_LIBS"
13092        ac_ext=c
13093 ac_cpp='$CPP $CPPFLAGS'
13094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13097
13098      fi
13099   fi
13100   if test "x$no_esd" = x ; then
13101      echo "$as_me:$LINENO: result: yes" >&5
13102 echo "${ECHO_T}yes" >&6
13103      :
13104   else
13105      echo "$as_me:$LINENO: result: no" >&5
13106 echo "${ECHO_T}no" >&6
13107      if test "$ESD_CONFIG" = "no" ; then
13108        echo "*** The esd-config script installed by ESD could not be found"
13109        echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
13110        echo "*** your path, or set the ESD_CONFIG environment variable to the"
13111        echo "*** full path to esd-config."
13112      else
13113        if test -f conf.esdtest ; then
13114         :
13115        else
13116           echo "*** Could not run ESD test program, checking why..."
13117           CFLAGS="$CFLAGS $ESD_CFLAGS"
13118           LIBS="$LIBS $ESD_LIBS"
13119
13120
13121           ac_ext=c
13122 ac_cpp='$CPP $CPPFLAGS'
13123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13126
13127           cat >conftest.$ac_ext <<_ACEOF
13128 /* confdefs.h.  */
13129 _ACEOF
13130 cat confdefs.h >>conftest.$ac_ext
13131 cat >>conftest.$ac_ext <<_ACEOF
13132 /* end confdefs.h.  */
13133
13134 #include <stdio.h>
13135 #include <esd.h>
13136
13137 int
13138 main ()
13139 {
13140  return 0;
13141   ;
13142   return 0;
13143 }
13144 _ACEOF
13145 rm -f conftest.$ac_objext conftest$ac_exeext
13146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13147   (eval $ac_link) 2>conftest.er1
13148   ac_status=$?
13149   grep -v '^ *+' conftest.er1 >conftest.err
13150   rm -f conftest.er1
13151   cat conftest.err >&5
13152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153   (exit $ac_status); } &&
13154          { ac_try='test -z "$ac_c_werror_flag"
13155                          || test ! -s conftest.err'
13156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13157   (eval $ac_try) 2>&5
13158   ac_status=$?
13159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160   (exit $ac_status); }; } &&
13161          { ac_try='test -s conftest$ac_exeext'
13162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13163   (eval $ac_try) 2>&5
13164   ac_status=$?
13165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166   (exit $ac_status); }; }; then
13167    echo "*** The test program compiled, but did not run. This usually means"
13168           echo "*** that the run-time linker is not finding ESD or finding the wrong"
13169           echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
13170           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13171           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13172           echo "*** is required on your system"
13173           echo "***"
13174           echo "*** If you have an old version installed, it is best to remove it, although"
13175           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13176 else
13177   echo "$as_me: failed program was:" >&5
13178 sed 's/^/| /' conftest.$ac_ext >&5
13179
13180  echo "*** The test program failed to compile or link. See the file config.log for the"
13181           echo "*** exact error that occured. This usually means ESD was incorrectly installed"
13182           echo "*** or that you have moved ESD since it was installed. In the latter case, you"
13183           echo "*** may want to edit the esd-config script: $ESD_CONFIG"
13184 fi
13185 rm -f conftest.err conftest.$ac_objext \
13186       conftest$ac_exeext conftest.$ac_ext
13187           CFLAGS="$ac_save_CFLAGS"
13188           LIBS="$ac_save_LIBS"
13189           ac_ext=c
13190 ac_cpp='$CPP $CPPFLAGS'
13191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13194
13195        fi
13196      fi
13197      ESD_CFLAGS=""
13198      ESD_LIBS=""
13199      :
13200   fi
13201
13202
13203   rm -f conf.esdtest
13204
13205   CFLAGS=$KEEPCFLAGS
13206   LIBS=$KEEPLIBS
13207   LDFLAGS=$KEEPLDFLAGS
13208   if test "x$no_esd" = x; then
13209         EXTRADEFS="$EXTRADEFS -DAU_ESD"
13210     SYSEXTRAS="$SYSEXTRAS esd_a.c"
13211     for f in $ESD_CFLAGS; do
13212     case ".$f" in
13213         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
13214         *)              CFLAGS="$CPPFLAGS $f" ;;
13215     esac
13216 done
13217
13218     LIBS="$LIBS $ESD_LIBS"
13219   else
13220     { echo "$as_me:$LINENO: WARNING: EsounD: Couldn't configure" >&5
13221 echo "$as_me: WARNING: EsounD: Couldn't configure" >&2;}
13222   fi
13223 else
13224   echo "$as_me:$LINENO: result: no" >&5
13225 echo "${ECHO_T}no" >&6
13226 fi
13227
13228 echo "$as_me:$LINENO: checking enable_audio=portaudio" >&5
13229 echo $ECHO_N "checking enable_audio=portaudio... $ECHO_C" >&6
13230 if test "x$au_enable_portaudio" = xyes; then
13231   echo "$as_me:$LINENO: result: yes" >&5
13232 echo "${ECHO_T}yes" >&6
13233   SYSEXTRAS="$SYSEXTRAS portaudio_a.c"
13234   EXTRALIBS="$EXTRALIBS -lportaudio"
13235   EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO"
13236 else
13237   echo "$as_me:$LINENO: result: no" >&5
13238 echo "${ECHO_T}no" >&6
13239 fi
13240
13241 echo "$as_me:$LINENO: checking enable_audio=jack" >&5
13242 echo $ECHO_N "checking enable_audio=jack... $ECHO_C" >&6
13243 if test "x$au_enable_jack" = xyes; then
13244   echo "$as_me:$LINENO: result: yes" >&5
13245 echo "${ECHO_T}yes" >&6
13246   SYSEXTRAS="$SYSEXTRAS jack_a.c"
13247   EXTRALIBS="$EXTRALIBS $(pkg-config --libs jack)"
13248   EXTRADEFS="$EXTRADEFS -DAU_JACK $(pkg-config --cflags jack)"
13249 else
13250   echo "$as_me:$LINENO: result: no" >&5
13251 echo "${ECHO_T}no" >&6
13252 fi
13253
13254 echo "$as_me:$LINENO: checking enable_audio=ao" >&5
13255 echo $ECHO_N "checking enable_audio=ao... $ECHO_C" >&6
13256 if test "x$au_enable_ao" = xyes; then
13257   echo "$as_me:$LINENO: result: yes, configuring ao" >&5
13258 echo "${ECHO_T}yes, configuring ao" >&6
13259
13260 # Check whether --with-ao or --without-ao was given.
13261 if test "${with_ao+set}" = set; then
13262   withval="$with_ao"
13263   ao_prefix="$withval"
13264 else
13265   ao_prefix=""
13266 fi;
13267
13268 # Check whether --with-ao-libraries or --without-ao-libraries was given.
13269 if test "${with_ao_libraries+set}" = set; then
13270   withval="$with_ao_libraries"
13271   ao_libraries="$withval"
13272 else
13273   ao_libraries=""
13274 fi;
13275
13276 # Check whether --with-ao-includes or --without-ao-includes was given.
13277 if test "${with_ao_includes+set}" = set; then
13278   withval="$with_ao_includes"
13279   ao_includes="$withval"
13280 else
13281   ao_includes=""
13282 fi;
13283 # Check whether --enable-aotest or --disable-aotest was given.
13284 if test "${enable_aotest+set}" = set; then
13285   enableval="$enable_aotest"
13286
13287 else
13288   enable_aotest=yes
13289 fi;
13290
13291
13292   if test "x$ao_libraries" != "x" ; then
13293     AO_LIBS="-L$ao_libraries"
13294   elif test "x$ao_prefix" != "x"; then
13295     AO_LIBS="-L$ao_prefix/lib"
13296   elif test "x$prefix" != "xNONE"; then
13297     AO_LIBS="-L$prefix/lib"
13298   fi
13299
13300   if test "x$ao_includes" != "x" ; then
13301     AO_CFLAGS="-I$ao_includes"
13302   elif test "x$ao_prefix" != "x"; then
13303     AO_CFLAGS="-I$ao_prefix/include"
13304   elif test "x$prefix" != "xNONE"; then
13305     AO_CFLAGS="-I$prefix/include"
13306   fi
13307
13308   # see where dl* and friends live
13309
13310 for ac_func in dlopen
13311 do
13312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13313 echo "$as_me:$LINENO: checking for $ac_func" >&5
13314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13315 if eval "test \"\${$as_ac_var+set}\" = set"; then
13316   echo $ECHO_N "(cached) $ECHO_C" >&6
13317 else
13318   cat >conftest.$ac_ext <<_ACEOF
13319 /* confdefs.h.  */
13320 _ACEOF
13321 cat confdefs.h >>conftest.$ac_ext
13322 cat >>conftest.$ac_ext <<_ACEOF
13323 /* end confdefs.h.  */
13324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13325    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13326 #define $ac_func innocuous_$ac_func
13327
13328 /* System header to define __stub macros and hopefully few prototypes,
13329     which can conflict with char $ac_func (); below.
13330     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13331     <limits.h> exists even on freestanding compilers.  */
13332
13333 #ifdef __STDC__
13334 # include <limits.h>
13335 #else
13336 # include <assert.h>
13337 #endif
13338
13339 #undef $ac_func
13340
13341 /* Override any gcc2 internal prototype to avoid an error.  */
13342 #ifdef __cplusplus
13343 extern "C"
13344 {
13345 #endif
13346 /* We use char because int might match the return type of a gcc2
13347    builtin and then its argument prototype would still apply.  */
13348 char $ac_func ();
13349 /* The GNU C library defines this for functions which it implements
13350     to always fail with ENOSYS.  Some functions are actually named
13351     something starting with __ and the normal name is an alias.  */
13352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13353 choke me
13354 #else
13355 char (*f) () = $ac_func;
13356 #endif
13357 #ifdef __cplusplus
13358 }
13359 #endif
13360
13361 int
13362 main ()
13363 {
13364 return f != $ac_func;
13365   ;
13366   return 0;
13367 }
13368 _ACEOF
13369 rm -f conftest.$ac_objext conftest$ac_exeext
13370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13371   (eval $ac_link) 2>conftest.er1
13372   ac_status=$?
13373   grep -v '^ *+' conftest.er1 >conftest.err
13374   rm -f conftest.er1
13375   cat conftest.err >&5
13376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377   (exit $ac_status); } &&
13378          { ac_try='test -z "$ac_c_werror_flag"
13379                          || test ! -s conftest.err'
13380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13381   (eval $ac_try) 2>&5
13382   ac_status=$?
13383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384   (exit $ac_status); }; } &&
13385          { ac_try='test -s conftest$ac_exeext'
13386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13387   (eval $ac_try) 2>&5
13388   ac_status=$?
13389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390   (exit $ac_status); }; }; then
13391   eval "$as_ac_var=yes"
13392 else
13393   echo "$as_me: failed program was:" >&5
13394 sed 's/^/| /' conftest.$ac_ext >&5
13395
13396 eval "$as_ac_var=no"
13397 fi
13398 rm -f conftest.err conftest.$ac_objext \
13399       conftest$ac_exeext conftest.$ac_ext
13400 fi
13401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13402 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13403 if test `eval echo '${'$as_ac_var'}'` = yes; then
13404   cat >>confdefs.h <<_ACEOF
13405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13406 _ACEOF
13407  AO_DL_LIBS=""
13408 else
13409
13410     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13411 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13412 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13413   echo $ECHO_N "(cached) $ECHO_C" >&6
13414 else
13415   ac_check_lib_save_LIBS=$LIBS
13416 LIBS="-ldl  $LIBS"
13417 cat >conftest.$ac_ext <<_ACEOF
13418 /* confdefs.h.  */
13419 _ACEOF
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h.  */
13423
13424 /* Override any gcc2 internal prototype to avoid an error.  */
13425 #ifdef __cplusplus
13426 extern "C"
13427 #endif
13428 /* We use char because int might match the return type of a gcc2
13429    builtin and then its argument prototype would still apply.  */
13430 char dlopen ();
13431 int
13432 main ()
13433 {
13434 dlopen ();
13435   ;
13436   return 0;
13437 }
13438 _ACEOF
13439 rm -f conftest.$ac_objext conftest$ac_exeext
13440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13441   (eval $ac_link) 2>conftest.er1
13442   ac_status=$?
13443   grep -v '^ *+' conftest.er1 >conftest.err
13444   rm -f conftest.er1
13445   cat conftest.err >&5
13446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447   (exit $ac_status); } &&
13448          { ac_try='test -z "$ac_c_werror_flag"
13449                          || test ! -s conftest.err'
13450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13451   (eval $ac_try) 2>&5
13452   ac_status=$?
13453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454   (exit $ac_status); }; } &&
13455          { ac_try='test -s conftest$ac_exeext'
13456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13457   (eval $ac_try) 2>&5
13458   ac_status=$?
13459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460   (exit $ac_status); }; }; then
13461   ac_cv_lib_dl_dlopen=yes
13462 else
13463   echo "$as_me: failed program was:" >&5
13464 sed 's/^/| /' conftest.$ac_ext >&5
13465
13466 ac_cv_lib_dl_dlopen=no
13467 fi
13468 rm -f conftest.err conftest.$ac_objext \
13469       conftest$ac_exeext conftest.$ac_ext
13470 LIBS=$ac_check_lib_save_LIBS
13471 fi
13472 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13473 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13474 if test $ac_cv_lib_dl_dlopen = yes; then
13475   AO_DL_LIBS="-ldl"
13476 else
13477
13478       { echo "$as_me:$LINENO: WARNING: could not find dlopen() needed by libao sound drivers
13479       your system may not be supported." >&5
13480 echo "$as_me: WARNING: could not find dlopen() needed by libao sound drivers
13481       your system may not be supported." >&2;}
13482
13483 fi
13484
13485
13486 fi
13487 done
13488
13489
13490   AO_LIBS="$AO_LIBS -lao $AO_DL_LIBS"
13491
13492   echo "$as_me:$LINENO: checking for ao" >&5
13493 echo $ECHO_N "checking for ao... $ECHO_C" >&6
13494   no_ao=""
13495
13496
13497   if test "x$enable_aotest" = "xyes" ; then
13498     ac_save_CFLAGS="$CFLAGS"
13499     ac_save_LIBS="$LIBS"
13500     CFLAGS="$CFLAGS $AO_CFLAGS"
13501     LIBS="$LIBS $AO_LIBS"
13502       rm -f conf.aotest
13503       if test "$cross_compiling" = yes; then
13504   echo $ac_n "cross compiling; assumed OK... $ac_c"
13505 else
13506   cat >conftest.$ac_ext <<_ACEOF
13507 /* confdefs.h.  */
13508 _ACEOF
13509 cat confdefs.h >>conftest.$ac_ext
13510 cat >>conftest.$ac_ext <<_ACEOF
13511 /* end confdefs.h.  */
13512
13513 #include <stdio.h>
13514 #include <stdlib.h>
13515 #include <string.h>
13516 #include <ao/ao.h>
13517
13518 int main ()
13519 {
13520   system("touch conf.aotest");
13521   return 0;
13522 }
13523
13524
13525 _ACEOF
13526 rm -f conftest$ac_exeext
13527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13528   (eval $ac_link) 2>&5
13529   ac_status=$?
13530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13533   (eval $ac_try) 2>&5
13534   ac_status=$?
13535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536   (exit $ac_status); }; }; then
13537   :
13538 else
13539   echo "$as_me: program exited with status $ac_status" >&5
13540 echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13542
13543 ( exit $ac_status )
13544 no_ao=yes
13545 fi
13546 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13547 fi
13548        CFLAGS="$ac_save_CFLAGS"
13549        LIBS="$ac_save_LIBS"
13550   fi
13551
13552   if test "x$no_ao" = "x" ; then
13553      echo "$as_me:$LINENO: result: yes" >&5
13554 echo "${ECHO_T}yes" >&6
13555      :
13556   else
13557      echo "$as_me:$LINENO: result: no" >&5
13558 echo "${ECHO_T}no" >&6
13559      if test -f conf.aotest ; then
13560        :
13561      else
13562        echo "*** Could not run ao test program, checking why..."
13563        CFLAGS="$CFLAGS $AO_CFLAGS"
13564        LIBS="$LIBS $AO_LIBS"
13565        cat >conftest.$ac_ext <<_ACEOF
13566 /* confdefs.h.  */
13567 _ACEOF
13568 cat confdefs.h >>conftest.$ac_ext
13569 cat >>conftest.$ac_ext <<_ACEOF
13570 /* end confdefs.h.  */
13571
13572 #include <stdio.h>
13573 #include <ao/ao.h>
13574
13575 int
13576 main ()
13577 {
13578  return 0;
13579   ;
13580   return 0;
13581 }
13582 _ACEOF
13583 rm -f conftest.$ac_objext conftest$ac_exeext
13584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13585   (eval $ac_link) 2>conftest.er1
13586   ac_status=$?
13587   grep -v '^ *+' conftest.er1 >conftest.err
13588   rm -f conftest.er1
13589   cat conftest.err >&5
13590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591   (exit $ac_status); } &&
13592          { ac_try='test -z "$ac_c_werror_flag"
13593                          || test ! -s conftest.err'
13594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13595   (eval $ac_try) 2>&5
13596   ac_status=$?
13597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598   (exit $ac_status); }; } &&
13599          { ac_try='test -s conftest$ac_exeext'
13600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13601   (eval $ac_try) 2>&5
13602   ac_status=$?
13603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604   (exit $ac_status); }; }; then
13605    echo "*** The test program compiled, but did not run. This usually means"
13606        echo "*** that the run-time linker is not finding ao or finding the wrong"
13607        echo "*** version of ao. If it is not finding ao, you'll need to set your"
13608        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13609        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13610        echo "*** is required on your system"
13611        echo "***"
13612        echo "*** If you have an old version installed, it is best to remove it, although"
13613        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13614 else
13615   echo "$as_me: failed program was:" >&5
13616 sed 's/^/| /' conftest.$ac_ext >&5
13617
13618  echo "*** The test program failed to compile or link. See the file config.log for the"
13619        echo "*** exact error that occured. This usually means ao was incorrectly installed"
13620        echo "*** or that you have moved ao since it was installed."
13621 fi
13622 rm -f conftest.err conftest.$ac_objext \
13623       conftest$ac_exeext conftest.$ac_ext
13624        CFLAGS="$ac_save_CFLAGS"
13625        LIBS="$ac_save_LIBS"
13626      fi
13627      AO_CFLAGS=""
13628      AO_LIBS=""
13629      :
13630   fi
13631
13632
13633   rm -f conf.aotest
13634
13635   if test "x$no_ao" = "x" ; then
13636     echo "$as_me:$LINENO: result: yes" >&5
13637 echo "${ECHO_T}yes" >&6
13638     EXTRADEFS="$EXTRADEFS -DAU_AO"
13639     SYSEXTRAS="$SYSEXTRAS ao_a.c"
13640     for f in $AO_CFLAGS; do
13641     case ".$f" in
13642         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
13643         *)              CFLAGS="$CPPFLAGS $f" ;;
13644     esac
13645 done
13646
13647     LIBS="$LIBS $AO_LIBS"
13648   else
13649     { echo "$as_me:$LINENO: WARNING: Couldn't configure libao." >&5
13650 echo "$as_me: WARNING: Couldn't configure libao." >&2;}
13651   fi
13652 else
13653   echo "$as_me:$LINENO: result: no" >&5
13654 echo "${ECHO_T}no" >&6
13655 fi
13656
13657 echo "$as_me:$LINENO: checking enable_audio=vorbis" >&5
13658 echo $ECHO_N "checking enable_audio=vorbis... $ECHO_C" >&6
13659 if test "x$au_enable_vorbis" = xyes; then
13660   echo "$as_me:$LINENO: result: yes, configuring vorbis" >&5
13661 echo "${ECHO_T}yes, configuring vorbis" >&6
13662
13663 # Check whether --with-ogg or --without-ogg was given.
13664 if test "${with_ogg+set}" = set; then
13665   withval="$with_ogg"
13666   ogg_prefix="$withval"
13667 else
13668   ogg_prefix=""
13669 fi;
13670
13671 # Check whether --with-ogg-libraries or --without-ogg-libraries was given.
13672 if test "${with_ogg_libraries+set}" = set; then
13673   withval="$with_ogg_libraries"
13674   ogg_libraries="$withval"
13675 else
13676   ogg_libraries=""
13677 fi;
13678
13679 # Check whether --with-ogg-includes or --without-ogg-includes was given.
13680 if test "${with_ogg_includes+set}" = set; then
13681   withval="$with_ogg_includes"
13682   ogg_includes="$withval"
13683 else
13684   ogg_includes=""
13685 fi;
13686 # Check whether --enable-oggtest or --disable-oggtest was given.
13687 if test "${enable_oggtest+set}" = set; then
13688   enableval="$enable_oggtest"
13689
13690 else
13691   enable_oggtest=yes
13692 fi;
13693
13694   if test "x$ogg_libraries" != "x" ; then
13695     OGG_LIBS="-L$ogg_libraries"
13696   elif test "x$ogg_prefix" != "x" ; then
13697     OGG_LIBS="-L$ogg_prefix/lib"
13698   elif test "x$prefix" != "xNONE" ; then
13699     OGG_LIBS="-L$prefix/lib"
13700   fi
13701
13702   OGG_LIBS="$OGG_LIBS -logg"
13703
13704   if test "x$ogg_includes" != "x" ; then
13705     OGG_CFLAGS="-I$ogg_includes"
13706   elif test "x$ogg_prefix" != "x" ; then
13707     OGG_CFLAGS="-I$ogg_prefix/include"
13708   elif test "x$prefix" != "xNONE"; then
13709     OGG_CFLAGS="-I$prefix/include"
13710   fi
13711
13712   echo "$as_me:$LINENO: checking for Ogg" >&5
13713 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6
13714   no_ogg=""
13715
13716
13717   if test "x$enable_oggtest" = "xyes" ; then
13718     ac_save_CFLAGS="$CFLAGS"
13719     ac_save_LIBS="$LIBS"
13720     CFLAGS="$CFLAGS $OGG_CFLAGS"
13721     LIBS="$LIBS $OGG_LIBS"
13722       rm -f conf.oggtest
13723       if test "$cross_compiling" = yes; then
13724   echo $ac_n "cross compiling; assumed OK... $ac_c"
13725 else
13726   cat >conftest.$ac_ext <<_ACEOF
13727 /* confdefs.h.  */
13728 _ACEOF
13729 cat confdefs.h >>conftest.$ac_ext
13730 cat >>conftest.$ac_ext <<_ACEOF
13731 /* end confdefs.h.  */
13732
13733 #include <stdio.h>
13734 #include <stdlib.h>
13735 #include <string.h>
13736 #include <ogg/ogg.h>
13737
13738 int main ()
13739 {
13740   system("touch conf.oggtest");
13741   return 0;
13742 }
13743
13744
13745 _ACEOF
13746 rm -f conftest$ac_exeext
13747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13748   (eval $ac_link) 2>&5
13749   ac_status=$?
13750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13753   (eval $ac_try) 2>&5
13754   ac_status=$?
13755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756   (exit $ac_status); }; }; then
13757   :
13758 else
13759   echo "$as_me: program exited with status $ac_status" >&5
13760 echo "$as_me: failed program was:" >&5
13761 sed 's/^/| /' conftest.$ac_ext >&5
13762
13763 ( exit $ac_status )
13764 no_ogg=yes
13765 fi
13766 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13767 fi
13768        CFLAGS="$ac_save_CFLAGS"
13769        LIBS="$ac_save_LIBS"
13770   fi
13771
13772   if test "x$no_ogg" = "x" ; then
13773      echo "$as_me:$LINENO: result: yes" >&5
13774 echo "${ECHO_T}yes" >&6
13775
13776
13777 # Check whether --with-vorbis or --without-vorbis was given.
13778 if test "${with_vorbis+set}" = set; then
13779   withval="$with_vorbis"
13780   vorbis_prefix="$withval"
13781 else
13782   vorbis_prefix=""
13783 fi;
13784
13785 # Check whether --with-vorbis-libraries or --without-vorbis-libraries was given.
13786 if test "${with_vorbis_libraries+set}" = set; then
13787   withval="$with_vorbis_libraries"
13788   vorbis_libraries="$withval"
13789 else
13790   vorbis_libraries=""
13791 fi;
13792
13793 # Check whether --with-vorbis-includes or --without-vorbis-includes was given.
13794 if test "${with_vorbis_includes+set}" = set; then
13795   withval="$with_vorbis_includes"
13796   vorbis_includes="$withval"
13797 else
13798   vorbis_includes=""
13799 fi;
13800 # Check whether --enable-vorbistest or --disable-vorbistest was given.
13801 if test "${enable_vorbistest+set}" = set; then
13802   enableval="$enable_vorbistest"
13803
13804 else
13805   enable_vorbistest=yes
13806 fi;
13807
13808   if test "x$vorbis_libraries" != "x" ; then
13809     VORBIS_LIBS="-L$vorbis_libraries"
13810   elif test "x$vorbis_prefix" != "x" ; then
13811     VORBIS_LIBS="-L$vorbis_prefix/lib"
13812   elif test "x$prefix" != "xNONE"; then
13813     VORBIS_LIBS="-L$prefix/lib"
13814   fi
13815
13816   VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
13817   VORBISFILE_LIBS="-lvorbisfile"
13818   VORBISENC_LIBS="-lvorbisenc"
13819
13820   if test "x$vorbis_includes" != "x" ; then
13821     VORBIS_CFLAGS="-I$vorbis_includes"
13822   elif test "x$vorbis_prefix" != "x" ; then
13823     VORBIS_CFLAGS="-I$vorbis_prefix/include"
13824   elif test "x$prefix" != "xNONE"; then
13825     VORBIS_CFLAGS="-I$prefix/include"
13826   fi
13827
13828
13829   echo "$as_me:$LINENO: checking for Vorbis" >&5
13830 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6
13831   no_vorbis=""
13832
13833
13834   if test "x$enable_vorbistest" = "xyes" ; then
13835     ac_save_CFLAGS="$CFLAGS"
13836     ac_save_LIBS="$LIBS"
13837     CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
13838     LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
13839       rm -f conf.vorbistest
13840       if test "$cross_compiling" = yes; then
13841   echo $ac_n "cross compiling; assumed OK... $ac_c"
13842 else
13843   cat >conftest.$ac_ext <<_ACEOF
13844 /* confdefs.h.  */
13845 _ACEOF
13846 cat confdefs.h >>conftest.$ac_ext
13847 cat >>conftest.$ac_ext <<_ACEOF
13848 /* end confdefs.h.  */
13849
13850 #include <stdio.h>
13851 #include <stdlib.h>
13852 #include <string.h>
13853 #include <vorbis/codec.h>
13854
13855 int main ()
13856 {
13857   system("touch conf.vorbistest");
13858   return 0;
13859 }
13860
13861
13862 _ACEOF
13863 rm -f conftest$ac_exeext
13864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13865   (eval $ac_link) 2>&5
13866   ac_status=$?
13867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870   (eval $ac_try) 2>&5
13871   ac_status=$?
13872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873   (exit $ac_status); }; }; then
13874   :
13875 else
13876   echo "$as_me: program exited with status $ac_status" >&5
13877 echo "$as_me: failed program was:" >&5
13878 sed 's/^/| /' conftest.$ac_ext >&5
13879
13880 ( exit $ac_status )
13881 no_vorbis=yes
13882 fi
13883 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13884 fi
13885        CFLAGS="$ac_save_CFLAGS"
13886        LIBS="$ac_save_LIBS"
13887   fi
13888
13889   if test "x$no_vorbis" = "x" ; then
13890      echo "$as_me:$LINENO: result: yes" >&5
13891 echo "${ECHO_T}yes" >&6
13892
13893       have_vorbis=yes
13894       SYSEXTRAS="$SYSEXTRAS vorbis_a.c"
13895       EXTRADEFS="$EXTRADEFS -DAU_VORBIS $OGG_CFLAGS $VORBIS_CFLAGS"
13896       EXTRALIBS="$EXTRALIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
13897       if test "x$CYGNUS" = "xyes"; then
13898       EXTRADEFS="-DAU_VORBIS_DLL $EXTRALIBS"
13899           SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
13900       fi
13901       if test "x$MINGW" = "xyes"; then
13902       EXTRADEFS="-DAU_VORBIS_DLL $EXTRALIBS"
13903           SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
13904       fi
13905
13906   else
13907      echo "$as_me:$LINENO: result: no" >&5
13908 echo "${ECHO_T}no" >&6
13909      if test -f conf.vorbistest ; then
13910        :
13911      else
13912        echo "*** Could not run Vorbis test program, checking why..."
13913        CFLAGS="$CFLAGS $VORBIS_CFLAGS"
13914        LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
13915        cat >conftest.$ac_ext <<_ACEOF
13916 /* confdefs.h.  */
13917 _ACEOF
13918 cat confdefs.h >>conftest.$ac_ext
13919 cat >>conftest.$ac_ext <<_ACEOF
13920 /* end confdefs.h.  */
13921
13922 #include <stdio.h>
13923 #include <vorbis/codec.h>
13924
13925 int
13926 main ()
13927 {
13928  return 0;
13929   ;
13930   return 0;
13931 }
13932 _ACEOF
13933 rm -f conftest.$ac_objext conftest$ac_exeext
13934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13935   (eval $ac_link) 2>conftest.er1
13936   ac_status=$?
13937   grep -v '^ *+' conftest.er1 >conftest.err
13938   rm -f conftest.er1
13939   cat conftest.err >&5
13940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941   (exit $ac_status); } &&
13942          { ac_try='test -z "$ac_c_werror_flag"
13943                          || test ! -s conftest.err'
13944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13945   (eval $ac_try) 2>&5
13946   ac_status=$?
13947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948   (exit $ac_status); }; } &&
13949          { ac_try='test -s conftest$ac_exeext'
13950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13951   (eval $ac_try) 2>&5
13952   ac_status=$?
13953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954   (exit $ac_status); }; }; then
13955    echo "*** The test program compiled, but did not run. This usually means"
13956        echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
13957        echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
13958        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13959        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13960        echo "*** is required on your system"
13961        echo "***"
13962        echo "*** If you have an old version installed, it is best to remove it, although"
13963        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13964 else
13965   echo "$as_me: failed program was:" >&5
13966 sed 's/^/| /' conftest.$ac_ext >&5
13967
13968  echo "*** The test program failed to compile or link. See the file config.log for the"
13969        echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
13970        echo "*** or that you have moved Vorbis since it was installed."
13971 fi
13972 rm -f conftest.err conftest.$ac_objext \
13973       conftest$ac_exeext conftest.$ac_ext
13974        CFLAGS="$ac_save_CFLAGS"
13975        LIBS="$ac_save_LIBS"
13976      fi
13977      VORBIS_CFLAGS=""
13978      VORBIS_LIBS=""
13979      VORBISFILE_LIBS=""
13980      VORBISENC_LIBS=""
13981
13982       { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis, but ogg is there (???)" >&5
13983 echo "$as_me: WARNING: Unable to configure vorbis, but ogg is there (???)" >&2;}
13984
13985   fi
13986
13987
13988
13989
13990   rm -f conf.vorbistest
13991
13992
13993   else
13994      echo "$as_me:$LINENO: result: no" >&5
13995 echo "${ECHO_T}no" >&6
13996      if test -f conf.oggtest ; then
13997        :
13998      else
13999        echo "*** Could not run Ogg test program, checking why..."
14000        CFLAGS="$CFLAGS $OGG_CFLAGS"
14001        LIBS="$LIBS $OGG_LIBS"
14002        cat >conftest.$ac_ext <<_ACEOF
14003 /* confdefs.h.  */
14004 _ACEOF
14005 cat confdefs.h >>conftest.$ac_ext
14006 cat >>conftest.$ac_ext <<_ACEOF
14007 /* end confdefs.h.  */
14008
14009 #include <stdio.h>
14010 #include <ogg/ogg.h>
14011
14012 int
14013 main ()
14014 {
14015  return 0;
14016   ;
14017   return 0;
14018 }
14019 _ACEOF
14020 rm -f conftest.$ac_objext conftest$ac_exeext
14021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14022   (eval $ac_link) 2>conftest.er1
14023   ac_status=$?
14024   grep -v '^ *+' conftest.er1 >conftest.err
14025   rm -f conftest.er1
14026   cat conftest.err >&5
14027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028   (exit $ac_status); } &&
14029          { ac_try='test -z "$ac_c_werror_flag"
14030                          || test ! -s conftest.err'
14031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14032   (eval $ac_try) 2>&5
14033   ac_status=$?
14034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035   (exit $ac_status); }; } &&
14036          { ac_try='test -s conftest$ac_exeext'
14037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14038   (eval $ac_try) 2>&5
14039   ac_status=$?
14040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041   (exit $ac_status); }; }; then
14042    echo "*** The test program compiled, but did not run. This usually means"
14043        echo "*** that the run-time linker is not finding Ogg or finding the wrong"
14044        echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
14045        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14046        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14047        echo "*** is required on your system"
14048        echo "***"
14049        echo "*** If you have an old version installed, it is best to remove it, although"
14050        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14051 else
14052   echo "$as_me: failed program was:" >&5
14053 sed 's/^/| /' conftest.$ac_ext >&5
14054
14055  echo "*** The test program failed to compile or link. See the file config.log for the"
14056        echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
14057        echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
14058        echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
14059 fi
14060 rm -f conftest.err conftest.$ac_objext \
14061       conftest$ac_exeext conftest.$ac_ext
14062        CFLAGS="$ac_save_CFLAGS"
14063        LIBS="$ac_save_LIBS"
14064      fi
14065      OGG_CFLAGS=""
14066      OGG_LIBS=""
14067
14068     { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis!" >&5
14069 echo "$as_me: WARNING: Unable to configure vorbis!" >&2;}
14070     have_vorbis=no
14071
14072   fi
14073
14074
14075   rm -f conf.oggtest
14076
14077 else
14078   echo "$as_me:$LINENO: result: no" >&5
14079 echo "${ECHO_T}no" >&6
14080 fi
14081
14082 echo "$as_me:$LINENO: checking enable_audio=flac" >&5
14083 echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6
14084 if test "x$au_enable_flac" = xyes; then
14085   echo "$as_me:$LINENO: result: yes, configuring flac" >&5
14086 echo "${ECHO_T}yes, configuring flac" >&6
14087   SYSEXTRAS="$SYSEXTRAS flac_a.c"
14088
14089 # Check whether --with-libFLAC or --without-libFLAC was given.
14090 if test "${with_libFLAC+set}" = set; then
14091   withval="$with_libFLAC"
14092   libFLAC_prefix="$withval"
14093 else
14094   libFLAC_prefix=""
14095 fi;
14096
14097 # Check whether --with-libFLAC-libraries or --without-libFLAC-libraries was given.
14098 if test "${with_libFLAC_libraries+set}" = set; then
14099   withval="$with_libFLAC_libraries"
14100   libFLAC_libraries="$withval"
14101 else
14102   libFLAC_libraries=""
14103 fi;
14104
14105 # Check whether --with-libFLAC-includes or --without-libFLAC-includes was given.
14106 if test "${with_libFLAC_includes+set}" = set; then
14107   withval="$with_libFLAC_includes"
14108   libFLAC_includes="$withval"
14109 else
14110   libFLAC_includes=""
14111 fi;
14112 # Check whether --enable-libFLACtest or --disable-libFLACtest was given.
14113 if test "${enable_libFLACtest+set}" = set; then
14114   enableval="$enable_libFLACtest"
14115
14116 else
14117   enable_libFLACtest=yes
14118 fi;
14119
14120   if test "x$libFLAC_libraries" != "x" ; then
14121     LIBFLAC_LIBS="-L$libFLAC_libraries"
14122   elif test "x$libFLAC_prefix" != "x" ; then
14123     LIBFLAC_LIBS="-L$libFLAC_prefix/lib"
14124   elif test "x$prefix" != "xNONE" ; then
14125     LIBFLAC_LIBS="-L$prefix/lib"
14126   fi
14127
14128   LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm"
14129
14130   if test "x$libFLAC_includes" != "x" ; then
14131     LIBFLAC_CFLAGS="-I$libFLAC_includes"
14132   elif test "x$libFLAC_prefix" != "x" ; then
14133     LIBFLAC_CFLAGS="-I$libFLAC_prefix/include"
14134   elif test "$prefix" != "xNONE"; then
14135     LIBFLAC_CFLAGS="-I$prefix/include"
14136   fi
14137
14138   echo "$as_me:$LINENO: checking for libFLAC" >&5
14139 echo $ECHO_N "checking for libFLAC... $ECHO_C" >&6
14140   no_libFLAC=""
14141
14142
14143   if test "x$enable_libFLACtest" = "xyes" ; then
14144     ac_save_CFLAGS="$CFLAGS"
14145     ac_save_CXXFLAGS="$CXXFLAGS"
14146     ac_save_LIBS="$LIBS"
14147     CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14148     CXXFLAGS="$CXXFLAGS $LIBFLAC_CFLAGS"
14149     LIBS="$LIBS $LIBFLAC_LIBS"
14150       rm -f conf.libFLACtest
14151       if test "$cross_compiling" = yes; then
14152   echo $ac_n "cross compiling; assumed OK... $ac_c"
14153 else
14154   cat >conftest.$ac_ext <<_ACEOF
14155 /* confdefs.h.  */
14156 _ACEOF
14157 cat confdefs.h >>conftest.$ac_ext
14158 cat >>conftest.$ac_ext <<_ACEOF
14159 /* end confdefs.h.  */
14160
14161 #include <stdio.h>
14162 #include <stdlib.h>
14163 #include <string.h>
14164 #include <FLAC/format.h>
14165
14166 int main ()
14167 {
14168   system("touch conf.libFLACtest");
14169   return 0;
14170 }
14171
14172
14173 _ACEOF
14174 rm -f conftest$ac_exeext
14175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14176   (eval $ac_link) 2>&5
14177   ac_status=$?
14178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181   (eval $ac_try) 2>&5
14182   ac_status=$?
14183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184   (exit $ac_status); }; }; then
14185   :
14186 else
14187   echo "$as_me: program exited with status $ac_status" >&5
14188 echo "$as_me: failed program was:" >&5
14189 sed 's/^/| /' conftest.$ac_ext >&5
14190
14191 ( exit $ac_status )
14192 no_libFLAC=yes
14193 fi
14194 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14195 fi
14196        CFLAGS="$ac_save_CFLAGS"
14197        LIBS="$ac_save_LIBS"
14198   fi
14199
14200   if test "x$no_libFLAC" = "x" ; then
14201      echo "$as_me:$LINENO: result: yes" >&5
14202 echo "${ECHO_T}yes" >&6
14203
14204     EXTRADEFS="$EXTRADEFS -DAU_FLAC"
14205     for f in $LIBFLAC_CFLAGS; do
14206     case ".$f" in
14207         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14208         *)              CFLAGS="$CPPFLAGS $f" ;;
14209     esac
14210 done
14211
14212     LIBS="$LIBS $LIBFLAC_LIBS"
14213
14214   else
14215      echo "$as_me:$LINENO: result: no" >&5
14216 echo "${ECHO_T}no" >&6
14217      if test -f conf.libFLACtest ; then
14218        :
14219      else
14220        echo "*** Could not run libFLAC test program, checking why..."
14221        CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14222        LIBS="$LIBS $LIBFLAC_LIBS"
14223        cat >conftest.$ac_ext <<_ACEOF
14224 /* confdefs.h.  */
14225 _ACEOF
14226 cat confdefs.h >>conftest.$ac_ext
14227 cat >>conftest.$ac_ext <<_ACEOF
14228 /* end confdefs.h.  */
14229
14230 #include <stdio.h>
14231 #include <FLAC/format.h>
14232
14233 int
14234 main ()
14235 {
14236  return 0;
14237   ;
14238   return 0;
14239 }
14240 _ACEOF
14241 rm -f conftest.$ac_objext conftest$ac_exeext
14242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14243   (eval $ac_link) 2>conftest.er1
14244   ac_status=$?
14245   grep -v '^ *+' conftest.er1 >conftest.err
14246   rm -f conftest.er1
14247   cat conftest.err >&5
14248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249   (exit $ac_status); } &&
14250          { ac_try='test -z "$ac_c_werror_flag"
14251                          || test ! -s conftest.err'
14252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14253   (eval $ac_try) 2>&5
14254   ac_status=$?
14255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256   (exit $ac_status); }; } &&
14257          { ac_try='test -s conftest$ac_exeext'
14258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14259   (eval $ac_try) 2>&5
14260   ac_status=$?
14261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262   (exit $ac_status); }; }; then
14263    echo "*** The test program compiled, but did not run. This usually means"
14264        echo "*** that the run-time linker is not finding libFLAC or finding the wrong"
14265        echo "*** version of libFLAC. If it is not finding libFLAC, you'll need to set your"
14266        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14267        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14268        echo "*** is required on your system"
14269        echo "***"
14270        echo "*** If you have an old version installed, it is best to remove it, although"
14271        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14272 else
14273   echo "$as_me: failed program was:" >&5
14274 sed 's/^/| /' conftest.$ac_ext >&5
14275
14276  echo "*** The test program failed to compile or link. See the file config.log for the"
14277        echo "*** exact error that occured. This usually means libFLAC was incorrectly installed"
14278        echo "*** or that you have moved libFLAC since it was installed. In the latter case, you"
14279        echo "*** may want to edit the libFLAC-config script: $LIBFLAC_CONFIG"
14280 fi
14281 rm -f conftest.err conftest.$ac_objext \
14282       conftest$ac_exeext conftest.$ac_ext
14283        CFLAGS="$ac_save_CFLAGS"
14284        LIBS="$ac_save_LIBS"
14285      fi
14286      LIBFLAC_CFLAGS=""
14287      LIBFLAC_LIBS=""
14288      :
14289   fi
14290
14291
14292   rm -f conf.libFLACtest
14293
14294
14295 # Check whether --with-libOggFLAC or --without-libOggFLAC was given.
14296 if test "${with_libOggFLAC+set}" = set; then
14297   withval="$with_libOggFLAC"
14298   libOggFLAC_prefix="$withval"
14299 else
14300   libOggFLAC_prefix=""
14301 fi;
14302
14303 # Check whether --with-libOggFLAC-libraries or --without-libOggFLAC-libraries was given.
14304 if test "${with_libOggFLAC_libraries+set}" = set; then
14305   withval="$with_libOggFLAC_libraries"
14306   libOggFLAC_libraries="$withval"
14307 else
14308   libOggFLAC_libraries=""
14309 fi;
14310
14311 # Check whether --with-libOggFLAC-includes or --without-libOggFLAC-includes was given.
14312 if test "${with_libOggFLAC_includes+set}" = set; then
14313   withval="$with_libOggFLAC_includes"
14314   libOggFLAC_includes="$withval"
14315 else
14316   libOggFLAC_includes=""
14317 fi;
14318 # Check whether --enable-libOggFLACtest or --disable-libOggFLACtest was given.
14319 if test "${enable_libOggFLACtest+set}" = set; then
14320   enableval="$enable_libOggFLACtest"
14321
14322 else
14323   enable_libOggFLACtest=yes
14324 fi;
14325
14326   if test "x$libOggFLAC_libraries" != "x" ; then
14327     LIBOGGFLAC_LIBS="-L$libOggFLAC_libraries"
14328   elif test "x$libOggFLAC_prefix" != "x" ; then
14329     LIBOGGFLAC_LIBS="-L$libOggFLAC_prefix/lib"
14330   elif test "x$prefix" != "xNONE" ; then
14331     LIBOGGFLAC_LIBS="-L$prefix/lib"
14332   fi
14333
14334   LIBOGGFLAC_LIBS="$LIBOGGFLAC_LIBS -lOggFLAC -lFLAC -lm"
14335
14336   if test "x$libOggFLAC_includes" != "x" ; then
14337     LIBOGGFLAC_CFLAGS="-I$libOggFLAC_includes"
14338   elif test "x$libOggFLAC_prefix" != "x" ; then
14339     LIBOGGFLAC_CFLAGS="-I$libOggFLAC_prefix/include"
14340   elif test "$prefix" != "xNONE"; then
14341     LIBOGGFLAC_CFLAGS="-I$prefix/include"
14342   fi
14343
14344   echo "$as_me:$LINENO: checking for libOggFLAC" >&5
14345 echo $ECHO_N "checking for libOggFLAC... $ECHO_C" >&6
14346   no_libOggFLAC=""
14347
14348
14349   if test "x$enable_libOggFLACtest" = "xyes" ; then
14350     ac_save_CFLAGS="$CFLAGS"
14351     ac_save_CXXFLAGS="$CXXFLAGS"
14352     ac_save_LIBS="$LIBS"
14353     CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14354     CXXFLAGS="$CXXFLAGS $LIBOGGFLAC_CFLAGS"
14355     LIBS="$LIBS $LIBOGGFLAC_LIBS"
14356       rm -f conf.libOggFLACtest
14357       if test "$cross_compiling" = yes; then
14358   echo $ac_n "cross compiling; assumed OK... $ac_c"
14359 else
14360   cat >conftest.$ac_ext <<_ACEOF
14361 /* confdefs.h.  */
14362 _ACEOF
14363 cat confdefs.h >>conftest.$ac_ext
14364 cat >>conftest.$ac_ext <<_ACEOF
14365 /* end confdefs.h.  */
14366
14367 #include <stdio.h>
14368 #include <stdlib.h>
14369 #include <string.h>
14370 #include <OggFLAC/stream_decoder.h>
14371
14372 int main ()
14373 {
14374   system("touch conf.libOggFLACtest");
14375   return 0;
14376 }
14377
14378
14379 _ACEOF
14380 rm -f conftest$ac_exeext
14381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14382   (eval $ac_link) 2>&5
14383   ac_status=$?
14384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387   (eval $ac_try) 2>&5
14388   ac_status=$?
14389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390   (exit $ac_status); }; }; then
14391   :
14392 else
14393   echo "$as_me: program exited with status $ac_status" >&5
14394 echo "$as_me: failed program was:" >&5
14395 sed 's/^/| /' conftest.$ac_ext >&5
14396
14397 ( exit $ac_status )
14398 no_libOggFLAC=yes
14399 fi
14400 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14401 fi
14402        CFLAGS="$ac_save_CFLAGS"
14403        LIBS="$ac_save_LIBS"
14404   fi
14405
14406   if test "x$no_libOggFLAC" = "x" ; then
14407      echo "$as_me:$LINENO: result: yes" >&5
14408 echo "${ECHO_T}yes" >&6
14409
14410     EXTRADEFS="$EXTRADEFS -DAU_OGGFLAC"
14411     for f in $LIBOGGFLAC_CFLAGS; do
14412     case ".$f" in
14413         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14414         *)              CFLAGS="$CPPFLAGS $f" ;;
14415     esac
14416 done
14417
14418     LIBS="$LIBS $LIBOGGFLAC_LIBS"
14419
14420   else
14421      echo "$as_me:$LINENO: result: no" >&5
14422 echo "${ECHO_T}no" >&6
14423      if test -f conf.libOggFLACtest ; then
14424        :
14425      else
14426        echo "*** Could not run libOggFLAC test program, checking why..."
14427        CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14428        LIBS="$LIBS $LIBOGGFLAC_LIBS"
14429        cat >conftest.$ac_ext <<_ACEOF
14430 /* confdefs.h.  */
14431 _ACEOF
14432 cat confdefs.h >>conftest.$ac_ext
14433 cat >>conftest.$ac_ext <<_ACEOF
14434 /* end confdefs.h.  */
14435
14436 #include <stdio.h>
14437 #include <OggFLAC/stream_decoder.h>
14438
14439 int
14440 main ()
14441 {
14442  return 0;
14443   ;
14444   return 0;
14445 }
14446 _ACEOF
14447 rm -f conftest.$ac_objext conftest$ac_exeext
14448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14449   (eval $ac_link) 2>conftest.er1
14450   ac_status=$?
14451   grep -v '^ *+' conftest.er1 >conftest.err
14452   rm -f conftest.er1
14453   cat conftest.err >&5
14454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455   (exit $ac_status); } &&
14456          { ac_try='test -z "$ac_c_werror_flag"
14457                          || test ! -s conftest.err'
14458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14459   (eval $ac_try) 2>&5
14460   ac_status=$?
14461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462   (exit $ac_status); }; } &&
14463          { ac_try='test -s conftest$ac_exeext'
14464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14465   (eval $ac_try) 2>&5
14466   ac_status=$?
14467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468   (exit $ac_status); }; }; then
14469    echo "*** The test program compiled, but did not run. This usually means"
14470        echo "*** that the run-time linker is not finding libOggFLAC or finding the wrong"
14471        echo "*** version of libOggFLAC. If it is not finding libOggFLAC, you'll need to set your"
14472        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14473        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14474        echo "*** is required on your system"
14475        echo "***"
14476        echo "*** If you have an old version installed, it is best to remove it, although"
14477        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14478 else
14479   echo "$as_me: failed program was:" >&5
14480 sed 's/^/| /' conftest.$ac_ext >&5
14481
14482  echo "*** The test program failed to compile or link. See the file config.log for the"
14483        echo "*** exact error that occured. This usually means libOggFLAC was incorrectly installed"
14484        echo "*** or that you have moved libOggFLAC since it was installed. In the latter case, you"
14485        echo "*** may want to edit the libOggFLAC-config script: $LIBOGGFLAC_CONFIG"
14486 fi
14487 rm -f conftest.err conftest.$ac_objext \
14488       conftest$ac_exeext conftest.$ac_ext
14489        CFLAGS="$ac_save_CFLAGS"
14490        LIBS="$ac_save_LIBS"
14491      fi
14492      LIBOGGFLAC_CFLAGS=""
14493      LIBOGGFLAC_LIBS=""
14494      :
14495   fi
14496
14497
14498   rm -f conf.libOggFLACtest
14499
14500 else
14501   echo "$as_me:$LINENO: result: no" >&5
14502 echo "${ECHO_T}no" >&6
14503 fi
14504
14505 echo "$as_me:$LINENO: checking enable_audio=speex" >&5
14506 echo $ECHO_N "checking enable_audio=speex... $ECHO_C" >&6
14507 if test "x$au_enable_speex" = xyes; then
14508   if test "${have_speex+set}" = set; then
14509   echo $ECHO_N "(cached) $ECHO_C" >&6
14510 else
14511   cat >conftest.$ac_ext <<_ACEOF
14512 /* confdefs.h.  */
14513 _ACEOF
14514 cat confdefs.h >>conftest.$ac_ext
14515 cat >>conftest.$ac_ext <<_ACEOF
14516 /* end confdefs.h.  */
14517
14518   #include <speex.h>
14519   #include <ogg/ogg.h>
14520
14521 int
14522 main ()
14523 {
14524
14525     SpeexBits *dummy;
14526
14527   ;
14528   return 0;
14529 }
14530 _ACEOF
14531 rm -f conftest.$ac_objext conftest$ac_exeext
14532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14533   (eval $ac_link) 2>conftest.er1
14534   ac_status=$?
14535   grep -v '^ *+' conftest.er1 >conftest.err
14536   rm -f conftest.er1
14537   cat conftest.err >&5
14538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539   (exit $ac_status); } &&
14540          { ac_try='test -z "$ac_c_werror_flag"
14541                          || test ! -s conftest.err'
14542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14543   (eval $ac_try) 2>&5
14544   ac_status=$?
14545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546   (exit $ac_status); }; } &&
14547          { ac_try='test -s conftest$ac_exeext'
14548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549   (eval $ac_try) 2>&5
14550   ac_status=$?
14551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552   (exit $ac_status); }; }; then
14553   have_speex=yes
14554 else
14555   echo "$as_me: failed program was:" >&5
14556 sed 's/^/| /' conftest.$ac_ext >&5
14557
14558 have_speex=no
14559 fi
14560 rm -f conftest.err conftest.$ac_objext \
14561       conftest$ac_exeext conftest.$ac_ext
14562 fi
14563
14564   echo "$as_me:$LINENO: result: $have_speex" >&5
14565 echo "${ECHO_T}$have_speex" >&6
14566   if test "x$have_speex" = xyes; then
14567     SYSEXTRAS="$SYSEXTRAS speex_a.c"
14568     EXTRALIBS="$EXTRALIBS -lspeex -logg"
14569     EXTRADEFS="$EXTRADEFS -DAU_SPEEX"
14570   fi
14571 else
14572   echo "$as_me:$LINENO: result: no" >&5
14573 echo "${ECHO_T}no" >&6
14574 fi
14575
14576 echo "$as_me:$LINENO: checking enable_audio=gogo" >&5
14577 echo $ECHO_N "checking enable_audio=gogo... $ECHO_C" >&6
14578 if test "x$au_enable_gogo" = xyes; then
14579   if test "x$CYGNUS" = "xyes"; then
14580     echo "$as_me:$LINENO: result: yes" >&5
14581 echo "${ECHO_T}yes" >&6
14582   else
14583     if test "x$MINGW" = "xyes"; then
14584     echo "$as_me:$LINENO: result: yes" >&5
14585 echo "${ECHO_T}yes" >&6
14586     else
14587       { echo "$as_me:$LINENO: WARNING: May be gogo is not supported.  You need hack the gogo_a.c" >&5
14588 echo "$as_me: WARNING: May be gogo is not supported.  You need hack the gogo_a.c" >&2;}
14589     fi
14590   fi
14591   have_gogo=yes
14592   SYSEXTRAS="$SYSEXTRAS gogo_a.c w32_gogo.c"
14593   EXTRADEFS="$EXTRADEFS -DAU_GOGO -DAU_GOGO_DLL"
14594   EXTRALIBS="$EXTRALIBS -lgogo"
14595 else
14596   echo "$as_me:$LINENO: result: no" >&5
14597 echo "${ECHO_T}no" >&6
14598 fi
14599
14600 if test "x$au_enable_none" = xyes; then
14601     EXTRADEFS="$EXTRADEFS -DAU_NONE -DAU_AUDRIV"
14602     SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_none.c"
14603 fi
14604 echo "$as_me:$LINENO: checking default output mode" >&5
14605 echo $ECHO_N "checking default output mode... $ECHO_C" >&6
14606 if test "x$DEFAULT_PLAYMODE" = x; then
14607   DEFAULT_PLAYMODE=`echo $enable_audio | sed 's/,.*//'`
14608 fi
14609 case ".$DEFAULT_PLAYMODE" in
14610   .default)  TIMIDITY_OUTPUT_ID=d ;;
14611   .oss)      TIMIDITY_OUTPUT_ID=d ;;
14612   .alsa)     TIMIDITY_OUTPUT_ID=s ;;
14613   .sun)      TIMIDITY_OUTPUT_ID=d ;;
14614   .hpux)     TIMIDITY_OUTPUT_ID=d ;;
14615   .irix)     TIMIDITY_OUTPUT_ID=d ;;
14616   .mme)      TIMIDITY_OUTPUT_ID=d ;;
14617   .sb_dsp)   TIMIDITY_OUTPUT_ID=d ;;
14618   .darwin)   TIMIDITY_OUTPUT_ID=d ;;
14619   .w32)      TIMIDITY_OUTPUT_ID=d ;;
14620   .alib)     TIMIDITY_OUTPUT_ID=A ;;
14621   .nas)      TIMIDITY_OUTPUT_ID=n ;;
14622   .arts)     TIMIDITY_OUTPUT_ID=R ;;
14623   .esd)      TIMIDITY_OUTPUT_ID=e ;;
14624   .portaudio)      TIMIDITY_OUTPUT_ID=p ;;
14625   .wav)      TIMIDITY_OUTPUT_ID=w ;;
14626   .au)       TIMIDITY_OUTPUT_ID=u ;;
14627   .aiff)     TIMIDITY_OUTPUT_ID=a ;;
14628   .list)     TIMIDITY_OUTPUT_ID=l ;;
14629   .vorbis)   TIMIDITY_OUTPUT_ID=v ;;
14630   .flac)     TIMIDITY_OUTPUT_ID=F ;;
14631   .speex)    TIMIDITY_OUTPUT_ID=S ;;
14632   .gogo)     TIMIDITY_OUTPUT_ID=g ;;
14633   .jack)     TIMIDITY_OUTPUT_ID=j ;;
14634   *)         TIMIDITY_OUTPUT_ID= ;;
14635 esac
14636 echo "$as_me:$LINENO: result: $DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&5
14637 echo "${ECHO_T}$DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&6
14638
14639 #
14640 # Interface Section
14641 #
14642
14643 interface_targets='dynamic ncurses slang motif tcltk emacs vt100 xaw xskin gtk alsaseq winsyn winsyng portmidisyng'
14644
14645 # Check whether --enable-interface or --disable-interface was given.
14646 if test "${enable_interface+set}" = set; then
14647   enableval="$enable_interface"
14648    for i in `echo $enableval | sed 's/,/ /g'`; do
14649       eval "enable_$i=yes"
14650     done
14651 fi;
14652
14653 #  Dynamic link configuration
14654 # Check whether --enable-dynamic or --disable-dynamic was given.
14655 if test "${enable_dynamic+set}" = set; then
14656   enableval="$enable_dynamic"
14657        if test "x$enable_dynamic" = xyes; then
14658       enable_dynamic=dynamic
14659     elif test "x$enable_dynamic" != xno; then
14660       for i in `echo $enableval | sed 's/,/ /g'`; do
14661         eval "enable_$i=dynamic"
14662       done
14663     fi
14664 fi;
14665
14666 join_targets=
14667 for i in $interface_targets; do
14668   eval "join_targets=$join_targets\$enable_$i"
14669 done
14670
14671 case ".$join_targets" in
14672 .*dynamic*) NEEDDLOPEN=yes;;
14673 *)          NEEDDLOPEN=no;;
14674 esac
14675
14676 if test "x$GCC" = xyes; then SHCFLAGS="$SHCFLAGS -fPIC"; fi
14677 case "x$enable_ump" in xyes|xdynamic) EXTRACFLAGS="$EXTRACFLAGS -DXP_UNIX $SHCFLAGS";; esac
14678
14679 if test "$NEEDDLOPEN" = "yes"; then
14680   have_dl=no
14681
14682   echo "$as_me:$LINENO: checking for LoadLibrary" >&5
14683 echo $ECHO_N "checking for LoadLibrary... $ECHO_C" >&6
14684 if test "${wapi_cv_func_LoadLibrary+set}" = set; then
14685   echo $ECHO_N "(cached) $ECHO_C" >&6
14686 else
14687   cat >conftest.$ac_ext <<_ACEOF
14688 /* confdefs.h.  */
14689 _ACEOF
14690 cat confdefs.h >>conftest.$ac_ext
14691 cat >>conftest.$ac_ext <<_ACEOF
14692 /* end confdefs.h.  */
14693 #include <windows.h>
14694
14695
14696 int
14697 main ()
14698 {
14699 LoadLibrary(0);
14700   ;
14701   return 0;
14702 }
14703 _ACEOF
14704 rm -f conftest.$ac_objext conftest$ac_exeext
14705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14706   (eval $ac_link) 2>conftest.er1
14707   ac_status=$?
14708   grep -v '^ *+' conftest.er1 >conftest.err
14709   rm -f conftest.er1
14710   cat conftest.err >&5
14711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712   (exit $ac_status); } &&
14713          { ac_try='test -z "$ac_c_werror_flag"
14714                          || test ! -s conftest.err'
14715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14716   (eval $ac_try) 2>&5
14717   ac_status=$?
14718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719   (exit $ac_status); }; } &&
14720          { ac_try='test -s conftest$ac_exeext'
14721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722   (eval $ac_try) 2>&5
14723   ac_status=$?
14724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725   (exit $ac_status); }; }; then
14726   wapi_cv_func_LoadLibrary=yes
14727 else
14728   echo "$as_me: failed program was:" >&5
14729 sed 's/^/| /' conftest.$ac_ext >&5
14730
14731 wapi_cv_func_LoadLibrary=no
14732 fi
14733 rm -f conftest.err conftest.$ac_objext \
14734       conftest$ac_exeext conftest.$ac_ext
14735 fi
14736
14737 if eval "test \"`echo '$wapi_cv_func_'LoadLibrary`\" = yes"; then
14738   echo "$as_me:$LINENO: result: yes" >&5
14739 echo "${ECHO_T}yes" >&6
14740   have_dl=w32
14741 else
14742   echo "$as_me:$LINENO: result: no" >&5
14743 echo "${ECHO_T}no" >&6
14744 fi
14745
14746   test $wapi_cv_func_LoadLibrary = yes && have_dl=w32
14747
14748   if test "$have_dl" = "no"; then
14749     echo "$as_me:$LINENO: checking for shl_load" >&5
14750 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14751 if test "${ac_cv_func_shl_load+set}" = set; then
14752   echo $ECHO_N "(cached) $ECHO_C" >&6
14753 else
14754   cat >conftest.$ac_ext <<_ACEOF
14755 /* confdefs.h.  */
14756 _ACEOF
14757 cat confdefs.h >>conftest.$ac_ext
14758 cat >>conftest.$ac_ext <<_ACEOF
14759 /* end confdefs.h.  */
14760 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14761    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14762 #define shl_load innocuous_shl_load
14763
14764 /* System header to define __stub macros and hopefully few prototypes,
14765     which can conflict with char shl_load (); below.
14766     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14767     <limits.h> exists even on freestanding compilers.  */
14768
14769 #ifdef __STDC__
14770 # include <limits.h>
14771 #else
14772 # include <assert.h>
14773 #endif
14774
14775 #undef shl_load
14776
14777 /* Override any gcc2 internal prototype to avoid an error.  */
14778 #ifdef __cplusplus
14779 extern "C"
14780 {
14781 #endif
14782 /* We use char because int might match the return type of a gcc2
14783    builtin and then its argument prototype would still apply.  */
14784 char shl_load ();
14785 /* The GNU C library defines this for functions which it implements
14786     to always fail with ENOSYS.  Some functions are actually named
14787     something starting with __ and the normal name is an alias.  */
14788 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14789 choke me
14790 #else
14791 char (*f) () = shl_load;
14792 #endif
14793 #ifdef __cplusplus
14794 }
14795 #endif
14796
14797 int
14798 main ()
14799 {
14800 return f != shl_load;
14801   ;
14802   return 0;
14803 }
14804 _ACEOF
14805 rm -f conftest.$ac_objext conftest$ac_exeext
14806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14807   (eval $ac_link) 2>conftest.er1
14808   ac_status=$?
14809   grep -v '^ *+' conftest.er1 >conftest.err
14810   rm -f conftest.er1
14811   cat conftest.err >&5
14812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813   (exit $ac_status); } &&
14814          { ac_try='test -z "$ac_c_werror_flag"
14815                          || test ! -s conftest.err'
14816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14817   (eval $ac_try) 2>&5
14818   ac_status=$?
14819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820   (exit $ac_status); }; } &&
14821          { ac_try='test -s conftest$ac_exeext'
14822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14823   (eval $ac_try) 2>&5
14824   ac_status=$?
14825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826   (exit $ac_status); }; }; then
14827   ac_cv_func_shl_load=yes
14828 else
14829   echo "$as_me: failed program was:" >&5
14830 sed 's/^/| /' conftest.$ac_ext >&5
14831
14832 ac_cv_func_shl_load=no
14833 fi
14834 rm -f conftest.err conftest.$ac_objext \
14835       conftest$ac_exeext conftest.$ac_ext
14836 fi
14837 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14838 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14839 if test $ac_cv_func_shl_load = yes; then
14840   have_dl=hpux
14841 fi
14842
14843   fi
14844   if test "$have_dl" = "no"; then
14845             echo "$as_me:$LINENO: checking for NSLinkModule" >&5
14846 echo $ECHO_N "checking for NSLinkModule... $ECHO_C" >&6
14847 if test "${ac_cv_func_NSLinkModule+set}" = set; then
14848   echo $ECHO_N "(cached) $ECHO_C" >&6
14849 else
14850   cat >conftest.$ac_ext <<_ACEOF
14851 /* confdefs.h.  */
14852 _ACEOF
14853 cat confdefs.h >>conftest.$ac_ext
14854 cat >>conftest.$ac_ext <<_ACEOF
14855 /* end confdefs.h.  */
14856 /* Define NSLinkModule to an innocuous variant, in case <limits.h> declares NSLinkModule.
14857    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14858 #define NSLinkModule innocuous_NSLinkModule
14859
14860 /* System header to define __stub macros and hopefully few prototypes,
14861     which can conflict with char NSLinkModule (); below.
14862     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14863     <limits.h> exists even on freestanding compilers.  */
14864
14865 #ifdef __STDC__
14866 # include <limits.h>
14867 #else
14868 # include <assert.h>
14869 #endif
14870
14871 #undef NSLinkModule
14872
14873 /* Override any gcc2 internal prototype to avoid an error.  */
14874 #ifdef __cplusplus
14875 extern "C"
14876 {
14877 #endif
14878 /* We use char because int might match the return type of a gcc2
14879    builtin and then its argument prototype would still apply.  */
14880 char NSLinkModule ();
14881 /* The GNU C library defines this for functions which it implements
14882     to always fail with ENOSYS.  Some functions are actually named
14883     something starting with __ and the normal name is an alias.  */
14884 #if defined (__stub_NSLinkModule) || defined (__stub___NSLinkModule)
14885 choke me
14886 #else
14887 char (*f) () = NSLinkModule;
14888 #endif
14889 #ifdef __cplusplus
14890 }
14891 #endif
14892
14893 int
14894 main ()
14895 {
14896 return f != NSLinkModule;
14897   ;
14898   return 0;
14899 }
14900 _ACEOF
14901 rm -f conftest.$ac_objext conftest$ac_exeext
14902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14903   (eval $ac_link) 2>conftest.er1
14904   ac_status=$?
14905   grep -v '^ *+' conftest.er1 >conftest.err
14906   rm -f conftest.er1
14907   cat conftest.err >&5
14908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909   (exit $ac_status); } &&
14910          { ac_try='test -z "$ac_c_werror_flag"
14911                          || test ! -s conftest.err'
14912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913   (eval $ac_try) 2>&5
14914   ac_status=$?
14915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916   (exit $ac_status); }; } &&
14917          { ac_try='test -s conftest$ac_exeext'
14918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919   (eval $ac_try) 2>&5
14920   ac_status=$?
14921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922   (exit $ac_status); }; }; then
14923   ac_cv_func_NSLinkModule=yes
14924 else
14925   echo "$as_me: failed program was:" >&5
14926 sed 's/^/| /' conftest.$ac_ext >&5
14927
14928 ac_cv_func_NSLinkModule=no
14929 fi
14930 rm -f conftest.err conftest.$ac_objext \
14931       conftest$ac_exeext conftest.$ac_ext
14932 fi
14933 echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5
14934 echo "${ECHO_T}$ac_cv_func_NSLinkModule" >&6
14935 if test $ac_cv_func_NSLinkModule = yes; then
14936   have_dl=dyld
14937 fi
14938
14939   fi
14940   if test "$have_dl" = "no" -a "x$ac_cv_lib_dl_dlopen" = xyes; then
14941     have_dl=dlopen
14942   fi
14943   if test "$have_dl" = "no"; then
14944     echo "$as_me:$LINENO: checking for dlopen" >&5
14945 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14946 if test "${ac_cv_func_dlopen+set}" = set; then
14947   echo $ECHO_N "(cached) $ECHO_C" >&6
14948 else
14949   cat >conftest.$ac_ext <<_ACEOF
14950 /* confdefs.h.  */
14951 _ACEOF
14952 cat confdefs.h >>conftest.$ac_ext
14953 cat >>conftest.$ac_ext <<_ACEOF
14954 /* end confdefs.h.  */
14955 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14956    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14957 #define dlopen innocuous_dlopen
14958
14959 /* System header to define __stub macros and hopefully few prototypes,
14960     which can conflict with char dlopen (); below.
14961     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14962     <limits.h> exists even on freestanding compilers.  */
14963
14964 #ifdef __STDC__
14965 # include <limits.h>
14966 #else
14967 # include <assert.h>
14968 #endif
14969
14970 #undef dlopen
14971
14972 /* Override any gcc2 internal prototype to avoid an error.  */
14973 #ifdef __cplusplus
14974 extern "C"
14975 {
14976 #endif
14977 /* We use char because int might match the return type of a gcc2
14978    builtin and then its argument prototype would still apply.  */
14979 char dlopen ();
14980 /* The GNU C library defines this for functions which it implements
14981     to always fail with ENOSYS.  Some functions are actually named
14982     something starting with __ and the normal name is an alias.  */
14983 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14984 choke me
14985 #else
14986 char (*f) () = dlopen;
14987 #endif
14988 #ifdef __cplusplus
14989 }
14990 #endif
14991
14992 int
14993 main ()
14994 {
14995 return f != dlopen;
14996   ;
14997   return 0;
14998 }
14999 _ACEOF
15000 rm -f conftest.$ac_objext conftest$ac_exeext
15001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15002   (eval $ac_link) 2>conftest.er1
15003   ac_status=$?
15004   grep -v '^ *+' conftest.er1 >conftest.err
15005   rm -f conftest.er1
15006   cat conftest.err >&5
15007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008   (exit $ac_status); } &&
15009          { ac_try='test -z "$ac_c_werror_flag"
15010                          || test ! -s conftest.err'
15011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15012   (eval $ac_try) 2>&5
15013   ac_status=$?
15014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015   (exit $ac_status); }; } &&
15016          { ac_try='test -s conftest$ac_exeext'
15017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15018   (eval $ac_try) 2>&5
15019   ac_status=$?
15020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021   (exit $ac_status); }; }; then
15022   ac_cv_func_dlopen=yes
15023 else
15024   echo "$as_me: failed program was:" >&5
15025 sed 's/^/| /' conftest.$ac_ext >&5
15026
15027 ac_cv_func_dlopen=no
15028 fi
15029 rm -f conftest.err conftest.$ac_objext \
15030       conftest$ac_exeext conftest.$ac_ext
15031 fi
15032 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15033 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
15034 if test $ac_cv_func_dlopen = yes; then
15035   have_dl=dlopen
15036 fi
15037
15038   fi
15039   if test "$have_dl" = "no"; then
15040     echo "$as_me:$LINENO: checking for dld_init" >&5
15041 echo $ECHO_N "checking for dld_init... $ECHO_C" >&6
15042 if test "${ac_cv_func_dld_init+set}" = set; then
15043   echo $ECHO_N "(cached) $ECHO_C" >&6
15044 else
15045   cat >conftest.$ac_ext <<_ACEOF
15046 /* confdefs.h.  */
15047 _ACEOF
15048 cat confdefs.h >>conftest.$ac_ext
15049 cat >>conftest.$ac_ext <<_ACEOF
15050 /* end confdefs.h.  */
15051 /* Define dld_init to an innocuous variant, in case <limits.h> declares dld_init.
15052    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15053 #define dld_init innocuous_dld_init
15054
15055 /* System header to define __stub macros and hopefully few prototypes,
15056     which can conflict with char dld_init (); below.
15057     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15058     <limits.h> exists even on freestanding compilers.  */
15059
15060 #ifdef __STDC__
15061 # include <limits.h>
15062 #else
15063 # include <assert.h>
15064 #endif
15065
15066 #undef dld_init
15067
15068 /* Override any gcc2 internal prototype to avoid an error.  */
15069 #ifdef __cplusplus
15070 extern "C"
15071 {
15072 #endif
15073 /* We use char because int might match the return type of a gcc2
15074    builtin and then its argument prototype would still apply.  */
15075 char dld_init ();
15076 /* The GNU C library defines this for functions which it implements
15077     to always fail with ENOSYS.  Some functions are actually named
15078     something starting with __ and the normal name is an alias.  */
15079 #if defined (__stub_dld_init) || defined (__stub___dld_init)
15080 choke me
15081 #else
15082 char (*f) () = dld_init;
15083 #endif
15084 #ifdef __cplusplus
15085 }
15086 #endif
15087
15088 int
15089 main ()
15090 {
15091 return f != dld_init;
15092   ;
15093   return 0;
15094 }
15095 _ACEOF
15096 rm -f conftest.$ac_objext conftest$ac_exeext
15097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15098   (eval $ac_link) 2>conftest.er1
15099   ac_status=$?
15100   grep -v '^ *+' conftest.er1 >conftest.err
15101   rm -f conftest.er1
15102   cat conftest.err >&5
15103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104   (exit $ac_status); } &&
15105          { ac_try='test -z "$ac_c_werror_flag"
15106                          || test ! -s conftest.err'
15107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108   (eval $ac_try) 2>&5
15109   ac_status=$?
15110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111   (exit $ac_status); }; } &&
15112          { ac_try='test -s conftest$ac_exeext'
15113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15114   (eval $ac_try) 2>&5
15115   ac_status=$?
15116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117   (exit $ac_status); }; }; then
15118   ac_cv_func_dld_init=yes
15119 else
15120   echo "$as_me: failed program was:" >&5
15121 sed 's/^/| /' conftest.$ac_ext >&5
15122
15123 ac_cv_func_dld_init=no
15124 fi
15125 rm -f conftest.err conftest.$ac_objext \
15126       conftest$ac_exeext conftest.$ac_ext
15127 fi
15128 echo "$as_me:$LINENO: result: $ac_cv_func_dld_init" >&5
15129 echo "${ECHO_T}$ac_cv_func_dld_init" >&6
15130 if test $ac_cv_func_dld_init = yes; then
15131   have_dl=dld
15132 fi
15133
15134   fi
15135   if test "$have_dl" = "no"; then
15136     echo "$as_me:$LINENO: checking for dld_init in -ldld" >&5
15137 echo $ECHO_N "checking for dld_init in -ldld... $ECHO_C" >&6
15138 if test "${ac_cv_lib_dld_dld_init+set}" = set; then
15139   echo $ECHO_N "(cached) $ECHO_C" >&6
15140 else
15141   ac_check_lib_save_LIBS=$LIBS
15142 LIBS="-ldld  $LIBS"
15143 cat >conftest.$ac_ext <<_ACEOF
15144 /* confdefs.h.  */
15145 _ACEOF
15146 cat confdefs.h >>conftest.$ac_ext
15147 cat >>conftest.$ac_ext <<_ACEOF
15148 /* end confdefs.h.  */
15149
15150 /* Override any gcc2 internal prototype to avoid an error.  */
15151 #ifdef __cplusplus
15152 extern "C"
15153 #endif
15154 /* We use char because int might match the return type of a gcc2
15155    builtin and then its argument prototype would still apply.  */
15156 char dld_init ();
15157 int
15158 main ()
15159 {
15160 dld_init ();
15161   ;
15162   return 0;
15163 }
15164 _ACEOF
15165 rm -f conftest.$ac_objext conftest$ac_exeext
15166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15167   (eval $ac_link) 2>conftest.er1
15168   ac_status=$?
15169   grep -v '^ *+' conftest.er1 >conftest.err
15170   rm -f conftest.er1
15171   cat conftest.err >&5
15172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173   (exit $ac_status); } &&
15174          { ac_try='test -z "$ac_c_werror_flag"
15175                          || test ! -s conftest.err'
15176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15177   (eval $ac_try) 2>&5
15178   ac_status=$?
15179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180   (exit $ac_status); }; } &&
15181          { ac_try='test -s conftest$ac_exeext'
15182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183   (eval $ac_try) 2>&5
15184   ac_status=$?
15185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186   (exit $ac_status); }; }; then
15187   ac_cv_lib_dld_dld_init=yes
15188 else
15189   echo "$as_me: failed program was:" >&5
15190 sed 's/^/| /' conftest.$ac_ext >&5
15191
15192 ac_cv_lib_dld_dld_init=no
15193 fi
15194 rm -f conftest.err conftest.$ac_objext \
15195       conftest$ac_exeext conftest.$ac_ext
15196 LIBS=$ac_check_lib_save_LIBS
15197 fi
15198 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_init" >&5
15199 echo "${ECHO_T}$ac_cv_lib_dld_dld_init" >&6
15200 if test $ac_cv_lib_dld_dld_init = yes; then
15201   have_dl=dld;lib_dl_opt=-ldld
15202 fi
15203
15204   fi
15205
15206   echo "$as_me:$LINENO: checking dynamic link method" >&5
15207 echo $ECHO_N "checking dynamic link method... $ECHO_C" >&6
15208   case "$have_dl" in
15209     dlopen)
15210       echo "$as_me:$LINENO: result: use dl_dlopen.c" >&5
15211 echo "${ECHO_T}use dl_dlopen.c" >&6
15212       SYSEXTRAS="$SYSEXTRAS dl_dlopen.c"
15213       echo "$as_me:$LINENO: checking whether your dlsym() needs a leading underscore" >&5
15214 echo $ECHO_N "checking whether your dlsym() needs a leading underscore... $ECHO_C" >&6
15215 if test "${timidity_cv_func_dlsym_underscore+set}" = set; then
15216   echo $ECHO_N "(cached) $ECHO_C" >&6
15217 else
15218   case "$ac_cv_header_dlfcn_h" in
15219 yes) i_dlfcn=define;;
15220 *)   i_dlfcn=undef;;
15221 esac
15222 cat > dyna.c <<EOM
15223 fred () { }
15224 EOM
15225
15226 cat > fred.c <<EOM
15227 #include <stdio.h>
15228 #$i_dlfcn I_DLFCN
15229 #ifdef I_DLFCN
15230 #include <dlfcn.h>      /* the dynamic linker include file for Sunos/Solaris */
15231 #else
15232 #include <sys/types.h>
15233 #include <nlist.h>
15234 #include <link.h>
15235 #endif
15236
15237 extern int fred() ;
15238
15239 main()
15240 {
15241     void * handle ;
15242     void * symbol ;
15243 #ifndef RTLD_LAZY
15244     int mode = 1 ;
15245 #else
15246     int mode = RTLD_LAZY ;
15247 #endif
15248     handle = dlopen("./dyna.$so", mode) ;
15249     if (handle == NULL) {
15250         printf ("1\n") ;
15251         fflush (stdout) ;
15252         exit(0);
15253     }
15254     symbol = dlsym(handle, "fred") ;
15255     if (symbol == NULL) {
15256         /* try putting a leading underscore */
15257         symbol = dlsym(handle, "_fred") ;
15258         if (symbol == NULL) {
15259             printf ("2\n") ;
15260             fflush (stdout) ;
15261             exit(0);
15262         }
15263         printf ("3\n") ;
15264     }
15265     else
15266         printf ("4\n") ;
15267     fflush (stdout) ;
15268     exit(0);
15269 }
15270 EOM
15271 : Call the object file tmp-dyna.o in case dlext=o.
15272 if ${CC-cc} $CFLAGS $SHCFLAGS $CPPFLAGS -c dyna.c > /dev/null 2>&1 &&
15273         mv dyna.o tmp-dyna.o > /dev/null 2>&1 &&
15274         $SHLD $SHLDFLAGS -o dyna.$so tmp-dyna.o > /dev/null 2>&1 &&
15275         ${CC-cc} -o fred $CFLAGS $CPPFLAGS $LDFLAGS fred.c $LIBS $lib_dl_opt > /dev/null 2>&1; then
15276         xxx=`./fred`
15277         case $xxx in
15278         1)      { echo "$as_me:$LINENO: WARNING: Test program failed using dlopen.  Perhaps you should not use dynamic loading." >&5
15279 echo "$as_me: WARNING: Test program failed using dlopen.  Perhaps you should not use dynamic loading." >&2;}
15280                 ;;
15281         2)      { echo "$as_me:$LINENO: WARNING: Test program failed using dlsym.  Perhaps you should not use dynamic loading." >&5
15282 echo "$as_me: WARNING: Test program failed using dlsym.  Perhaps you should not use dynamic loading." >&2;}
15283                 ;;
15284         3)      timidity_cv_func_dlsym_underscore=yes
15285                 ;;
15286         4)      timidity_cv_func_dlsym_underscore=no
15287                 ;;
15288         esac
15289 else
15290         { echo "$as_me:$LINENO: WARNING: I can't compile and run the test program." >&5
15291 echo "$as_me: WARNING: I can't compile and run the test program." >&2;}
15292 fi
15293 rm -f dyna.c dyna.o dyna.$so tmp-dyna.o fred.c fred.o fred
15294
15295 fi
15296
15297 case "x$timidity_cv_func_dlsym_underscore" in
15298 xyes)
15299 cat >>confdefs.h <<\_ACEOF
15300 #define DLSYM_NEEDS_UNDERSCORE 1
15301 _ACEOF
15302
15303         echo "$as_me:$LINENO: result: yes" >&5
15304 echo "${ECHO_T}yes" >&6
15305         ;;
15306 xno)
15307         echo "$as_me:$LINENO: result: no" >&5
15308 echo "${ECHO_T}no" >&6
15309         ;;
15310 esac
15311
15312       ;;
15313     dld)
15314       echo "$as_me:$LINENO: result: use dl_dld.c" >&5
15315 echo "${ECHO_T}use dl_dld.c" >&6
15316       SYSEXTRAS="$SYSEXTRAS dl_dld.c"
15317       ;;
15318     hpux)
15319       echo "$as_me:$LINENO: result: use dl_hpux.c" >&5
15320 echo "${ECHO_T}use dl_hpux.c" >&6
15321       SYSEXTRAS="$SYSEXTRAS dl_hpux.c"
15322       LDFLAGS="$LDFLAGS -Wl,-E $LDFLAGS"
15323       ;;
15324     w32)
15325       echo "$as_me:$LINENO: result: use dl_w32.c" >&5
15326 echo "${ECHO_T}use dl_w32.c" >&6
15327       SYSEXTRAS="$SYSEXTRAS dl_w32.c"
15328       ;;
15329     dyld)
15330       echo "$as_me:$LINENO: result: use dl_dyld.c" >&5
15331 echo "${ECHO_T}use dl_dyld.c" >&6
15332       SYSEXTRAS="$SYSEXTRAS dl_dyld.c"
15333       ;;
15334     *)
15335       NEEDDLOPEN="no"
15336       { echo "$as_me:$LINENO: WARNING: no method to open a shared object" >&5
15337 echo "$as_me: WARNING: no method to open a shared object" >&2;}
15338       ;;
15339   esac
15340 fi
15341
15342 if test "$NEEDDLOPEN" = "yes"; then
15343   cat >> confdefs.h <<EOF
15344 #define IA_DYNAMIC 1
15345 EOF
15346
15347
15348 cat >>confdefs.h <<_ACEOF
15349 #define SHARED_LIB_EXT ".$so"
15350 _ACEOF
15351
15352       test "x$GCC" = xyes -a "x$timidity_cv_ccoption_rdynamic" = xyes  && timidity_LDFLAGS="-rdynamic"
15353 fi
15354
15355
15356
15357 if test "$NEEDDLOPEN" = "yes"; then
15358   NEEDDLOPEN_TRUE=
15359   NEEDDLOPEN_FALSE='#'
15360 else
15361   NEEDDLOPEN_TRUE='#'
15362   NEEDDLOPEN_FALSE=
15363 fi
15364
15365
15366
15367
15368
15369 if false; then
15370   ENABLE_NCURSES_TRUE=
15371   ENABLE_NCURSES_FALSE='#'
15372 else
15373   ENABLE_NCURSES_TRUE='#'
15374   ENABLE_NCURSES_FALSE=
15375 fi
15376
15377 # Check whether --enable-ncurses or --disable-ncurses was given.
15378 if test "${enable_ncurses+set}" = set; then
15379   enableval="$enable_ncurses"
15380   case "x$enable_ncurses" in xyes|xdynamic)
15381
15382
15383 for ac_header in ncurses.h ncurses/curses.h curses.h
15384 do
15385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15387   echo "$as_me:$LINENO: checking for $ac_header" >&5
15388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15390   echo $ECHO_N "(cached) $ECHO_C" >&6
15391 fi
15392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15394 else
15395   # Is the header compilable?
15396 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15397 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15398 cat >conftest.$ac_ext <<_ACEOF
15399 /* confdefs.h.  */
15400 _ACEOF
15401 cat confdefs.h >>conftest.$ac_ext
15402 cat >>conftest.$ac_ext <<_ACEOF
15403 /* end confdefs.h.  */
15404 $ac_includes_default
15405 #include <$ac_header>
15406 _ACEOF
15407 rm -f conftest.$ac_objext
15408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15409   (eval $ac_compile) 2>conftest.er1
15410   ac_status=$?
15411   grep -v '^ *+' conftest.er1 >conftest.err
15412   rm -f conftest.er1
15413   cat conftest.err >&5
15414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415   (exit $ac_status); } &&
15416          { ac_try='test -z "$ac_c_werror_flag"
15417                          || test ! -s conftest.err'
15418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15419   (eval $ac_try) 2>&5
15420   ac_status=$?
15421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422   (exit $ac_status); }; } &&
15423          { ac_try='test -s conftest.$ac_objext'
15424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15425   (eval $ac_try) 2>&5
15426   ac_status=$?
15427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428   (exit $ac_status); }; }; then
15429   ac_header_compiler=yes
15430 else
15431   echo "$as_me: failed program was:" >&5
15432 sed 's/^/| /' conftest.$ac_ext >&5
15433
15434 ac_header_compiler=no
15435 fi
15436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15437 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15438 echo "${ECHO_T}$ac_header_compiler" >&6
15439
15440 # Is the header present?
15441 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15442 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15443 cat >conftest.$ac_ext <<_ACEOF
15444 /* confdefs.h.  */
15445 _ACEOF
15446 cat confdefs.h >>conftest.$ac_ext
15447 cat >>conftest.$ac_ext <<_ACEOF
15448 /* end confdefs.h.  */
15449 #include <$ac_header>
15450 _ACEOF
15451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15452   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15453   ac_status=$?
15454   grep -v '^ *+' conftest.er1 >conftest.err
15455   rm -f conftest.er1
15456   cat conftest.err >&5
15457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458   (exit $ac_status); } >/dev/null; then
15459   if test -s conftest.err; then
15460     ac_cpp_err=$ac_c_preproc_warn_flag
15461     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15462   else
15463     ac_cpp_err=
15464   fi
15465 else
15466   ac_cpp_err=yes
15467 fi
15468 if test -z "$ac_cpp_err"; then
15469   ac_header_preproc=yes
15470 else
15471   echo "$as_me: failed program was:" >&5
15472 sed 's/^/| /' conftest.$ac_ext >&5
15473
15474   ac_header_preproc=no
15475 fi
15476 rm -f conftest.err conftest.$ac_ext
15477 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15478 echo "${ECHO_T}$ac_header_preproc" >&6
15479
15480 # So?  What about this header?
15481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15482   yes:no: )
15483     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15484 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15485     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15486 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15487     ac_header_preproc=yes
15488     ;;
15489   no:yes:* )
15490     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15491 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15492     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15493 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15494     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15495 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15496     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15497 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15498     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15500     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15501 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15502     (
15503       cat <<\_ASBOX
15504 ## ------------------------------- ##
15505 ## Report this to root@mput.dip.jp ##
15506 ## ------------------------------- ##
15507 _ASBOX
15508     ) |
15509       sed "s/^/$as_me: WARNING:     /" >&2
15510     ;;
15511 esac
15512 echo "$as_me:$LINENO: checking for $ac_header" >&5
15513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15515   echo $ECHO_N "(cached) $ECHO_C" >&6
15516 else
15517   eval "$as_ac_Header=\$ac_header_preproc"
15518 fi
15519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15521
15522 fi
15523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15524   cat >>confdefs.h <<_ACEOF
15525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15526 _ACEOF
15527
15528 fi
15529
15530 done
15531
15532
15533
15534   case "$ac_cv_header_curses_h$ac_cv_header_ncurses_curses_h$ac_cv_header_ncurses_h" in
15535     *yes*);;
15536     *)  for i in /usr/include /usr/local/include; do
15537           if test -f "$i/ncurses/curses.h" -a -f "$i/ncurses/unctrl.h"; then
15538             { echo "$as_me:$LINENO: WARNING: ncurses test is failure.  Please check config.h and common.makefile later" >&5
15539 echo "$as_me: WARNING: ncurses test is failure.  Please check config.h and common.makefile later" >&2;}
15540             CPPFLAGS="$CPPFLAGS -I$i/ncurses"
15541             break
15542           fi
15543         done
15544         ;;
15545     esac
15546
15547     echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
15548 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
15549 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
15550   echo $ECHO_N "(cached) $ECHO_C" >&6
15551 else
15552   ac_check_lib_save_LIBS=$LIBS
15553 LIBS="-lncurses  $LIBS"
15554 cat >conftest.$ac_ext <<_ACEOF
15555 /* confdefs.h.  */
15556 _ACEOF
15557 cat confdefs.h >>conftest.$ac_ext
15558 cat >>conftest.$ac_ext <<_ACEOF
15559 /* end confdefs.h.  */
15560
15561 /* Override any gcc2 internal prototype to avoid an error.  */
15562 #ifdef __cplusplus
15563 extern "C"
15564 #endif
15565 /* We use char because int might match the return type of a gcc2
15566    builtin and then its argument prototype would still apply.  */
15567 char initscr ();
15568 int
15569 main ()
15570 {
15571 initscr ();
15572   ;
15573   return 0;
15574 }
15575 _ACEOF
15576 rm -f conftest.$ac_objext conftest$ac_exeext
15577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15578   (eval $ac_link) 2>conftest.er1
15579   ac_status=$?
15580   grep -v '^ *+' conftest.er1 >conftest.err
15581   rm -f conftest.er1
15582   cat conftest.err >&5
15583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584   (exit $ac_status); } &&
15585          { ac_try='test -z "$ac_c_werror_flag"
15586                          || test ! -s conftest.err'
15587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588   (eval $ac_try) 2>&5
15589   ac_status=$?
15590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591   (exit $ac_status); }; } &&
15592          { ac_try='test -s conftest$ac_exeext'
15593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594   (eval $ac_try) 2>&5
15595   ac_status=$?
15596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597   (exit $ac_status); }; }; then
15598   ac_cv_lib_ncurses_initscr=yes
15599 else
15600   echo "$as_me: failed program was:" >&5
15601 sed 's/^/| /' conftest.$ac_ext >&5
15602
15603 ac_cv_lib_ncurses_initscr=no
15604 fi
15605 rm -f conftest.err conftest.$ac_objext \
15606       conftest$ac_exeext conftest.$ac_ext
15607 LIBS=$ac_check_lib_save_LIBS
15608 fi
15609 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
15610 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
15611 if test $ac_cv_lib_ncurses_initscr = yes; then
15612   lib_curses_opt=-lncurses
15613 else
15614         echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lcurses" >&5
15615 echo $ECHO_N "checking for PDC_set_ctrl_break in -lcurses... $ECHO_C" >&6
15616 if test "${ac_cv_lib_curses_PDC_set_ctrl_break+set}" = set; then
15617   echo $ECHO_N "(cached) $ECHO_C" >&6
15618 else
15619   ac_check_lib_save_LIBS=$LIBS
15620 LIBS="-lcurses $lib_user32_test $LIBS"
15621 cat >conftest.$ac_ext <<_ACEOF
15622 /* confdefs.h.  */
15623 _ACEOF
15624 cat confdefs.h >>conftest.$ac_ext
15625 cat >>conftest.$ac_ext <<_ACEOF
15626 /* end confdefs.h.  */
15627
15628 /* Override any gcc2 internal prototype to avoid an error.  */
15629 #ifdef __cplusplus
15630 extern "C"
15631 #endif
15632 /* We use char because int might match the return type of a gcc2
15633    builtin and then its argument prototype would still apply.  */
15634 char PDC_set_ctrl_break ();
15635 int
15636 main ()
15637 {
15638 PDC_set_ctrl_break ();
15639   ;
15640   return 0;
15641 }
15642 _ACEOF
15643 rm -f conftest.$ac_objext conftest$ac_exeext
15644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15645   (eval $ac_link) 2>conftest.er1
15646   ac_status=$?
15647   grep -v '^ *+' conftest.er1 >conftest.err
15648   rm -f conftest.er1
15649   cat conftest.err >&5
15650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651   (exit $ac_status); } &&
15652          { ac_try='test -z "$ac_c_werror_flag"
15653                          || test ! -s conftest.err'
15654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15655   (eval $ac_try) 2>&5
15656   ac_status=$?
15657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658   (exit $ac_status); }; } &&
15659          { ac_try='test -s conftest$ac_exeext'
15660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15661   (eval $ac_try) 2>&5
15662   ac_status=$?
15663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664   (exit $ac_status); }; }; then
15665   ac_cv_lib_curses_PDC_set_ctrl_break=yes
15666 else
15667   echo "$as_me: failed program was:" >&5
15668 sed 's/^/| /' conftest.$ac_ext >&5
15669
15670 ac_cv_lib_curses_PDC_set_ctrl_break=no
15671 fi
15672 rm -f conftest.err conftest.$ac_objext \
15673       conftest$ac_exeext conftest.$ac_ext
15674 LIBS=$ac_check_lib_save_LIBS
15675 fi
15676 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_PDC_set_ctrl_break" >&5
15677 echo "${ECHO_T}$ac_cv_lib_curses_PDC_set_ctrl_break" >&6
15678 if test $ac_cv_lib_curses_PDC_set_ctrl_break = yes; then
15679    lib_curses_opt=-lcurses
15680
15681 cat >>confdefs.h <<\_ACEOF
15682 #define USE_PDCURSES 1
15683 _ACEOF
15684
15685             lib_user32_opt="$lib_user32_test"
15686
15687 else
15688             echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lpdcurses" >&5
15689 echo $ECHO_N "checking for PDC_set_ctrl_break in -lpdcurses... $ECHO_C" >&6
15690 if test "${ac_cv_lib_pdcurses_PDC_set_ctrl_break+set}" = set; then
15691   echo $ECHO_N "(cached) $ECHO_C" >&6
15692 else
15693   ac_check_lib_save_LIBS=$LIBS
15694 LIBS="-lpdcurses  $LIBS"
15695 cat >conftest.$ac_ext <<_ACEOF
15696 /* confdefs.h.  */
15697 _ACEOF
15698 cat confdefs.h >>conftest.$ac_ext
15699 cat >>conftest.$ac_ext <<_ACEOF
15700 /* end confdefs.h.  */
15701
15702 /* Override any gcc2 internal prototype to avoid an error.  */
15703 #ifdef __cplusplus
15704 extern "C"
15705 #endif
15706 /* We use char because int might match the return type of a gcc2
15707    builtin and then its argument prototype would still apply.  */
15708 char PDC_set_ctrl_break ();
15709 int
15710 main ()
15711 {
15712 PDC_set_ctrl_break ();
15713   ;
15714   return 0;
15715 }
15716 _ACEOF
15717 rm -f conftest.$ac_objext conftest$ac_exeext
15718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15719   (eval $ac_link) 2>conftest.er1
15720   ac_status=$?
15721   grep -v '^ *+' conftest.er1 >conftest.err
15722   rm -f conftest.er1
15723   cat conftest.err >&5
15724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725   (exit $ac_status); } &&
15726          { ac_try='test -z "$ac_c_werror_flag"
15727                          || test ! -s conftest.err'
15728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15729   (eval $ac_try) 2>&5
15730   ac_status=$?
15731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732   (exit $ac_status); }; } &&
15733          { ac_try='test -s conftest$ac_exeext'
15734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735   (eval $ac_try) 2>&5
15736   ac_status=$?
15737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738   (exit $ac_status); }; }; then
15739   ac_cv_lib_pdcurses_PDC_set_ctrl_break=yes
15740 else
15741   echo "$as_me: failed program was:" >&5
15742 sed 's/^/| /' conftest.$ac_ext >&5
15743
15744 ac_cv_lib_pdcurses_PDC_set_ctrl_break=no
15745 fi
15746 rm -f conftest.err conftest.$ac_objext \
15747       conftest$ac_exeext conftest.$ac_ext
15748 LIBS=$ac_check_lib_save_LIBS
15749 fi
15750 echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&5
15751 echo "${ECHO_T}$ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&6
15752 if test $ac_cv_lib_pdcurses_PDC_set_ctrl_break = yes; then
15753    lib_curses_opt=-lpdcurses
15754
15755 cat >>confdefs.h <<\_ACEOF
15756 #define USE_PDCURSES 1
15757 _ACEOF
15758
15759               lib_user32_opt="$lib_user32_test"
15760
15761 else
15762               case "$target" in
15763                 *openbsd*)
15764                   echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
15765 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
15766 if test "${ac_cv_lib_curses_initscr+set}" = set; then
15767   echo $ECHO_N "(cached) $ECHO_C" >&6
15768 else
15769   ac_check_lib_save_LIBS=$LIBS
15770 LIBS="-lcurses  $LIBS"
15771 cat >conftest.$ac_ext <<_ACEOF
15772 /* confdefs.h.  */
15773 _ACEOF
15774 cat confdefs.h >>conftest.$ac_ext
15775 cat >>conftest.$ac_ext <<_ACEOF
15776 /* end confdefs.h.  */
15777
15778 /* Override any gcc2 internal prototype to avoid an error.  */
15779 #ifdef __cplusplus
15780 extern "C"
15781 #endif
15782 /* We use char because int might match the return type of a gcc2
15783    builtin and then its argument prototype would still apply.  */
15784 char initscr ();
15785 int
15786 main ()
15787 {
15788 initscr ();
15789   ;
15790   return 0;
15791 }
15792 _ACEOF
15793 rm -f conftest.$ac_objext conftest$ac_exeext
15794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15795   (eval $ac_link) 2>conftest.er1
15796   ac_status=$?
15797   grep -v '^ *+' conftest.er1 >conftest.err
15798   rm -f conftest.er1
15799   cat conftest.err >&5
15800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801   (exit $ac_status); } &&
15802          { ac_try='test -z "$ac_c_werror_flag"
15803                          || test ! -s conftest.err'
15804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15805   (eval $ac_try) 2>&5
15806   ac_status=$?
15807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808   (exit $ac_status); }; } &&
15809          { ac_try='test -s conftest$ac_exeext'
15810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15811   (eval $ac_try) 2>&5
15812   ac_status=$?
15813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814   (exit $ac_status); }; }; then
15815   ac_cv_lib_curses_initscr=yes
15816 else
15817   echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15819
15820 ac_cv_lib_curses_initscr=no
15821 fi
15822 rm -f conftest.err conftest.$ac_objext \
15823       conftest$ac_exeext conftest.$ac_ext
15824 LIBS=$ac_check_lib_save_LIBS
15825 fi
15826 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
15827 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
15828 if test $ac_cv_lib_curses_initscr = yes; then
15829   lib_curses_opt=-lcurses
15830 else
15831    { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
15832 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
15833                       enable_ncurses=no
15834 fi
15835
15836                   ;;
15837                 *)
15838                   { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
15839 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
15840                   enable_ncurses=no
15841                   ;;
15842               esac
15843
15844 fi
15845
15846
15847 fi
15848
15849
15850 fi
15851
15852    ;; esac
15853 fi;
15854 case "x$enable_ncurses" in
15855 xyes)
15856   cat >> confdefs.h <<EOF
15857 #define IA_NCURSES 1
15858 EOF
15859
15860
15861
15862 if true; then
15863   ENABLE_NCURSES_TRUE=
15864   ENABLE_NCURSES_FALSE='#'
15865 else
15866   ENABLE_NCURSES_TRUE='#'
15867   ENABLE_NCURSES_FALSE=
15868 fi
15869
15870    LIBS="$LIBS $lib_curses_opt"
15871     case "$target" in
15872        *-*-freebsd123*)
15873          EXTRALIBS="$EXTRALIBS -lmytinfo"
15874          ;;
15875      esac
15876     INTERFACE_SRCS="$INTERFACE_SRCS ncurs_c.c"
15877
15878   ;;
15879 xdynamic)
15880   dynamic_targets="$dynamic_targets interface_n.\$(so)"
15881    n_so_libs="$lib_curses_opt"
15882     case "$target" in
15883        *-*-freebsd123*)
15884          EXTRALIBS="$EXTRALIBS -lmytinfo"
15885          ;;
15886      esac
15887   ;;
15888 *)
15889
15890   ;;
15891 esac
15892
15893
15894
15895
15896
15897 if false; then
15898   ENABLE_SLANG_TRUE=
15899   ENABLE_SLANG_FALSE='#'
15900 else
15901   ENABLE_SLANG_TRUE='#'
15902   ENABLE_SLANG_FALSE=
15903 fi
15904
15905 # Check whether --enable-slang or --disable-slang was given.
15906 if test "${enable_slang+set}" = set; then
15907   enableval="$enable_slang"
15908   case "x$enable_slang" in xyes|xdynamic)  echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5
15909 echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6
15910 if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then
15911   echo $ECHO_N "(cached) $ECHO_C" >&6
15912 else
15913   ac_check_lib_save_LIBS=$LIBS
15914 LIBS="-lslang  $LIBS"
15915 cat >conftest.$ac_ext <<_ACEOF
15916 /* confdefs.h.  */
15917 _ACEOF
15918 cat confdefs.h >>conftest.$ac_ext
15919 cat >>conftest.$ac_ext <<_ACEOF
15920 /* end confdefs.h.  */
15921
15922 /* Override any gcc2 internal prototype to avoid an error.  */
15923 #ifdef __cplusplus
15924 extern "C"
15925 #endif
15926 /* We use char because int might match the return type of a gcc2
15927    builtin and then its argument prototype would still apply.  */
15928 char SLang_init_tty ();
15929 int
15930 main ()
15931 {
15932 SLang_init_tty ();
15933   ;
15934   return 0;
15935 }
15936 _ACEOF
15937 rm -f conftest.$ac_objext conftest$ac_exeext
15938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15939   (eval $ac_link) 2>conftest.er1
15940   ac_status=$?
15941   grep -v '^ *+' conftest.er1 >conftest.err
15942   rm -f conftest.er1
15943   cat conftest.err >&5
15944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945   (exit $ac_status); } &&
15946          { ac_try='test -z "$ac_c_werror_flag"
15947                          || test ! -s conftest.err'
15948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949   (eval $ac_try) 2>&5
15950   ac_status=$?
15951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952   (exit $ac_status); }; } &&
15953          { ac_try='test -s conftest$ac_exeext'
15954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15955   (eval $ac_try) 2>&5
15956   ac_status=$?
15957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958   (exit $ac_status); }; }; then
15959   ac_cv_lib_slang_SLang_init_tty=yes
15960 else
15961   echo "$as_me: failed program was:" >&5
15962 sed 's/^/| /' conftest.$ac_ext >&5
15963
15964 ac_cv_lib_slang_SLang_init_tty=no
15965 fi
15966 rm -f conftest.err conftest.$ac_objext \
15967       conftest$ac_exeext conftest.$ac_ext
15968 LIBS=$ac_check_lib_save_LIBS
15969 fi
15970 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5
15971 echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6
15972 if test $ac_cv_lib_slang_SLang_init_tty = yes; then
15973   :
15974 else
15975    enable_slang=no
15976       { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
15977 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
15978
15979 fi
15980
15981
15982
15983 for ac_header in slang/slang.h slang.h
15984 do
15985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15987   echo "$as_me:$LINENO: checking for $ac_header" >&5
15988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15990   echo $ECHO_N "(cached) $ECHO_C" >&6
15991 fi
15992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15994 else
15995   # Is the header compilable?
15996 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15997 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15998 cat >conftest.$ac_ext <<_ACEOF
15999 /* confdefs.h.  */
16000 _ACEOF
16001 cat confdefs.h >>conftest.$ac_ext
16002 cat >>conftest.$ac_ext <<_ACEOF
16003 /* end confdefs.h.  */
16004 $ac_includes_default
16005 #include <$ac_header>
16006 _ACEOF
16007 rm -f conftest.$ac_objext
16008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16009   (eval $ac_compile) 2>conftest.er1
16010   ac_status=$?
16011   grep -v '^ *+' conftest.er1 >conftest.err
16012   rm -f conftest.er1
16013   cat conftest.err >&5
16014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015   (exit $ac_status); } &&
16016          { ac_try='test -z "$ac_c_werror_flag"
16017                          || test ! -s conftest.err'
16018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16019   (eval $ac_try) 2>&5
16020   ac_status=$?
16021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022   (exit $ac_status); }; } &&
16023          { ac_try='test -s conftest.$ac_objext'
16024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16025   (eval $ac_try) 2>&5
16026   ac_status=$?
16027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028   (exit $ac_status); }; }; then
16029   ac_header_compiler=yes
16030 else
16031   echo "$as_me: failed program was:" >&5
16032 sed 's/^/| /' conftest.$ac_ext >&5
16033
16034 ac_header_compiler=no
16035 fi
16036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16037 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16038 echo "${ECHO_T}$ac_header_compiler" >&6
16039
16040 # Is the header present?
16041 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16042 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16043 cat >conftest.$ac_ext <<_ACEOF
16044 /* confdefs.h.  */
16045 _ACEOF
16046 cat confdefs.h >>conftest.$ac_ext
16047 cat >>conftest.$ac_ext <<_ACEOF
16048 /* end confdefs.h.  */
16049 #include <$ac_header>
16050 _ACEOF
16051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16052   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16053   ac_status=$?
16054   grep -v '^ *+' conftest.er1 >conftest.err
16055   rm -f conftest.er1
16056   cat conftest.err >&5
16057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058   (exit $ac_status); } >/dev/null; then
16059   if test -s conftest.err; then
16060     ac_cpp_err=$ac_c_preproc_warn_flag
16061     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16062   else
16063     ac_cpp_err=
16064   fi
16065 else
16066   ac_cpp_err=yes
16067 fi
16068 if test -z "$ac_cpp_err"; then
16069   ac_header_preproc=yes
16070 else
16071   echo "$as_me: failed program was:" >&5
16072 sed 's/^/| /' conftest.$ac_ext >&5
16073
16074   ac_header_preproc=no
16075 fi
16076 rm -f conftest.err conftest.$ac_ext
16077 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16078 echo "${ECHO_T}$ac_header_preproc" >&6
16079
16080 # So?  What about this header?
16081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16082   yes:no: )
16083     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16084 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16085     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16086 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16087     ac_header_preproc=yes
16088     ;;
16089   no:yes:* )
16090     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16091 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16092     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16093 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16094     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16095 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16096     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16097 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16098     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16100     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16101 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16102     (
16103       cat <<\_ASBOX
16104 ## ------------------------------- ##
16105 ## Report this to root@mput.dip.jp ##
16106 ## ------------------------------- ##
16107 _ASBOX
16108     ) |
16109       sed "s/^/$as_me: WARNING:     /" >&2
16110     ;;
16111 esac
16112 echo "$as_me:$LINENO: checking for $ac_header" >&5
16113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16115   echo $ECHO_N "(cached) $ECHO_C" >&6
16116 else
16117   eval "$as_ac_Header=\$ac_header_preproc"
16118 fi
16119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16121
16122 fi
16123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16124   cat >>confdefs.h <<_ACEOF
16125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16126 _ACEOF
16127
16128 fi
16129
16130 done
16131
16132    ;; esac
16133 fi;
16134 case "x$enable_slang" in
16135 xyes)
16136   cat >> confdefs.h <<EOF
16137 #define IA_SLANG 1
16138 EOF
16139
16140
16141
16142 if true; then
16143   ENABLE_SLANG_TRUE=
16144   ENABLE_SLANG_FALSE='#'
16145 else
16146   ENABLE_SLANG_TRUE='#'
16147   ENABLE_SLANG_FALSE=
16148 fi
16149
16150    LIBS="$LIBS -lslang"
16151     INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
16152
16153   ;;
16154 xdynamic)
16155   dynamic_targets="$dynamic_targets interface_s.\$(so)"
16156    s_so_libs="-lslang"
16157     echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
16158 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6
16159 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
16160   echo $ECHO_N "(cached) $ECHO_C" >&6
16161 else
16162   ac_check_lib_save_LIBS=$LIBS
16163 LIBS="-ltermcap  $LIBS"
16164 cat >conftest.$ac_ext <<_ACEOF
16165 /* confdefs.h.  */
16166 _ACEOF
16167 cat confdefs.h >>conftest.$ac_ext
16168 cat >>conftest.$ac_ext <<_ACEOF
16169 /* end confdefs.h.  */
16170
16171 /* Override any gcc2 internal prototype to avoid an error.  */
16172 #ifdef __cplusplus
16173 extern "C"
16174 #endif
16175 /* We use char because int might match the return type of a gcc2
16176    builtin and then its argument prototype would still apply.  */
16177 char initscr ();
16178 int
16179 main ()
16180 {
16181 initscr ();
16182   ;
16183   return 0;
16184 }
16185 _ACEOF
16186 rm -f conftest.$ac_objext conftest$ac_exeext
16187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16188   (eval $ac_link) 2>conftest.er1
16189   ac_status=$?
16190   grep -v '^ *+' conftest.er1 >conftest.err
16191   rm -f conftest.er1
16192   cat conftest.err >&5
16193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194   (exit $ac_status); } &&
16195          { ac_try='test -z "$ac_c_werror_flag"
16196                          || test ! -s conftest.err'
16197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16198   (eval $ac_try) 2>&5
16199   ac_status=$?
16200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201   (exit $ac_status); }; } &&
16202          { ac_try='test -s conftest$ac_exeext'
16203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16204   (eval $ac_try) 2>&5
16205   ac_status=$?
16206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207   (exit $ac_status); }; }; then
16208   ac_cv_lib_termcap_initscr=yes
16209 else
16210   echo "$as_me: failed program was:" >&5
16211 sed 's/^/| /' conftest.$ac_ext >&5
16212
16213 ac_cv_lib_termcap_initscr=no
16214 fi
16215 rm -f conftest.err conftest.$ac_objext \
16216       conftest$ac_exeext conftest.$ac_ext
16217 LIBS=$ac_check_lib_save_LIBS
16218 fi
16219 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
16220 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6
16221 if test $ac_cv_lib_termcap_initscr = yes; then
16222   s_so_libs="$s_so_libs -ltermcap"
16223 fi
16224
16225
16226   ;;
16227 *)
16228
16229   ;;
16230 esac
16231
16232
16233
16234
16235
16236 if false; then
16237   ENABLE_MOTIF_TRUE=
16238   ENABLE_MOTIF_FALSE='#'
16239 else
16240   ENABLE_MOTIF_TRUE='#'
16241   ENABLE_MOTIF_FALSE=
16242 fi
16243
16244 # Check whether --enable-motif or --disable-motif was given.
16245 if test "${enable_motif+set}" = set; then
16246   enableval="$enable_motif"
16247   case "x$enable_motif" in xyes|xdynamic)  if test "x$with_x" != xyes; then
16248         { { echo "$as_me:$LINENO: error: motif: --with-x option must be specified" >&5
16249 echo "$as_me: error: motif: --with-x option must be specified" >&2;}
16250    { (exit 1); exit 1; }; }
16251     fi
16252     if test "x$have_xm" != xyes; then
16253       { echo "$as_me:$LINENO: WARNING: Motif library is not found." >&5
16254 echo "$as_me: WARNING: Motif library is not found." >&2;}
16255       enable_motif=no
16256     fi
16257    ;; esac
16258 fi;
16259 case "x$enable_motif" in
16260 xyes)
16261   cat >> confdefs.h <<EOF
16262 #define IA_MOTIF 1
16263 EOF
16264
16265
16266
16267 if true; then
16268   ENABLE_MOTIF_TRUE=
16269   ENABLE_MOTIF_FALSE='#'
16270 else
16271   ENABLE_MOTIF_TRUE='#'
16272   ENABLE_MOTIF_FALSE=
16273 fi
16274
16275    lib_xm_opt=-lXm
16276     lib_xt_opt=-lXt
16277     lib_xext_opt=-lXext
16278     if test "x$have_xprelibs" = xyes; then
16279         lib_xprelibs_opt='-lSM -lICE'
16280     fi
16281     INTERFACE_SRCS="$INTERFACE_SRCS motif_c.c motif_i.c motif_p.c"
16282
16283   ;;
16284 xdynamic)
16285   dynamic_targets="$dynamic_targets interface_m.\$(so)"
16286    if test x$have_xprelibs = xyes; then
16287       m_so_libs="-lXext -lSM -lICE"
16288     fi
16289     m_so_libs="$ldflags_x_opt -lXm -lXt $m_so_libs -lX11"
16290
16291   ;;
16292 *)
16293
16294   ;;
16295 esac
16296
16297
16298
16299
16300
16301 if false; then
16302   ENABLE_TCLTK_TRUE=
16303   ENABLE_TCLTK_FALSE='#'
16304 else
16305   ENABLE_TCLTK_TRUE='#'
16306   ENABLE_TCLTK_FALSE=
16307 fi
16308
16309 # Check whether --enable-tcltk or --disable-tcltk was given.
16310 if test "${enable_tcltk+set}" = set; then
16311   enableval="$enable_tcltk"
16312   case "x$enable_tcltk" in xyes|xdynamic)  if test "x$with_x" != xyes; then
16313         { { echo "$as_me:$LINENO: error: tcltk: --with-x option must be specified" >&5
16314 echo "$as_me: error: tcltk: --with-x option must be specified" >&2;}
16315    { (exit 1); exit 1; }; }
16316     fi
16317
16318         KEEPCPPFLAGS=$CPPFLAGS
16319     KEEPLDFLAGS=$LDFLAGS
16320     KEEPLIBS=$LIBS
16321
16322     CPPFLAGS="$tcl_include_dir $tk_includes $CPPFLAGS"
16323     LDFLAGS="$tcl_libdir $tk_libdir $LDFLAGS"
16324     LIBS="$LIBS $lib_dl_opt"
16325
16326     tcl_lib=
16327     tk_lib=
16328     for l in tcl tcl8.4 tcl8.3 tcl8.0jp tcl7.6jp tcl80jp tcl76jp tcl8.0 tcl7.6 tcl80 tcl76; do
16329       case "x$tcl_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tcl_Init" | $as_tr_sh`
16330 echo "$as_me:$LINENO: checking for Tcl_Init in -l$l" >&5
16331 echo $ECHO_N "checking for Tcl_Init in -l$l... $ECHO_C" >&6
16332 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16333   echo $ECHO_N "(cached) $ECHO_C" >&6
16334 else
16335   ac_check_lib_save_LIBS=$LIBS
16336 LIBS="-l$l  $LIBS"
16337 cat >conftest.$ac_ext <<_ACEOF
16338 /* confdefs.h.  */
16339 _ACEOF
16340 cat confdefs.h >>conftest.$ac_ext
16341 cat >>conftest.$ac_ext <<_ACEOF
16342 /* end confdefs.h.  */
16343
16344 /* Override any gcc2 internal prototype to avoid an error.  */
16345 #ifdef __cplusplus
16346 extern "C"
16347 #endif
16348 /* We use char because int might match the return type of a gcc2
16349    builtin and then its argument prototype would still apply.  */
16350 char Tcl_Init ();
16351 int
16352 main ()
16353 {
16354 Tcl_Init ();
16355   ;
16356   return 0;
16357 }
16358 _ACEOF
16359 rm -f conftest.$ac_objext conftest$ac_exeext
16360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16361   (eval $ac_link) 2>conftest.er1
16362   ac_status=$?
16363   grep -v '^ *+' conftest.er1 >conftest.err
16364   rm -f conftest.er1
16365   cat conftest.err >&5
16366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367   (exit $ac_status); } &&
16368          { ac_try='test -z "$ac_c_werror_flag"
16369                          || test ! -s conftest.err'
16370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16371   (eval $ac_try) 2>&5
16372   ac_status=$?
16373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374   (exit $ac_status); }; } &&
16375          { ac_try='test -s conftest$ac_exeext'
16376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16377   (eval $ac_try) 2>&5
16378   ac_status=$?
16379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380   (exit $ac_status); }; }; then
16381   eval "$as_ac_Lib=yes"
16382 else
16383   echo "$as_me: failed program was:" >&5
16384 sed 's/^/| /' conftest.$ac_ext >&5
16385
16386 eval "$as_ac_Lib=no"
16387 fi
16388 rm -f conftest.err conftest.$ac_objext \
16389       conftest$ac_exeext conftest.$ac_ext
16390 LIBS=$ac_check_lib_save_LIBS
16391 fi
16392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16393 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16394 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16395   tcl_lib=-l$l
16396 fi
16397 ;; esac
16398     done
16399     LIBS="$LIBS $tcl_lib"
16400     for l in tk tk8.4 tk8.3 tk8.0jp tk4.2jp tk80jp tk42jp tk8.0 tk4.2 tk80 tk42; do
16401       case "x$tk_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tk_Init" | $as_tr_sh`
16402 echo "$as_me:$LINENO: checking for Tk_Init in -l$l" >&5
16403 echo $ECHO_N "checking for Tk_Init in -l$l... $ECHO_C" >&6
16404 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16405   echo $ECHO_N "(cached) $ECHO_C" >&6
16406 else
16407   ac_check_lib_save_LIBS=$LIBS
16408 LIBS="-l$l  $LIBS"
16409 cat >conftest.$ac_ext <<_ACEOF
16410 /* confdefs.h.  */
16411 _ACEOF
16412 cat confdefs.h >>conftest.$ac_ext
16413 cat >>conftest.$ac_ext <<_ACEOF
16414 /* end confdefs.h.  */
16415
16416 /* Override any gcc2 internal prototype to avoid an error.  */
16417 #ifdef __cplusplus
16418 extern "C"
16419 #endif
16420 /* We use char because int might match the return type of a gcc2
16421    builtin and then its argument prototype would still apply.  */
16422 char Tk_Init ();
16423 int
16424 main ()
16425 {
16426 Tk_Init ();
16427   ;
16428   return 0;
16429 }
16430 _ACEOF
16431 rm -f conftest.$ac_objext conftest$ac_exeext
16432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16433   (eval $ac_link) 2>conftest.er1
16434   ac_status=$?
16435   grep -v '^ *+' conftest.er1 >conftest.err
16436   rm -f conftest.er1
16437   cat conftest.err >&5
16438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439   (exit $ac_status); } &&
16440          { ac_try='test -z "$ac_c_werror_flag"
16441                          || test ! -s conftest.err'
16442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16443   (eval $ac_try) 2>&5
16444   ac_status=$?
16445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446   (exit $ac_status); }; } &&
16447          { ac_try='test -s conftest$ac_exeext'
16448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16449   (eval $ac_try) 2>&5
16450   ac_status=$?
16451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452   (exit $ac_status); }; }; then
16453   eval "$as_ac_Lib=yes"
16454 else
16455   echo "$as_me: failed program was:" >&5
16456 sed 's/^/| /' conftest.$ac_ext >&5
16457
16458 eval "$as_ac_Lib=no"
16459 fi
16460 rm -f conftest.err conftest.$ac_objext \
16461       conftest$ac_exeext conftest.$ac_ext
16462 LIBS=$ac_check_lib_save_LIBS
16463 fi
16464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16465 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16466 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16467   tk_lib=-l$l
16468 fi
16469 ;; esac
16470     done
16471
16472     LIBS=$KEEPLIBS
16473     if test "x$tcl_lib" = x -o "x$tk_lib" = x; then
16474       CPPFLAGS=$KEEPCPPFLAGS
16475       LDFLAGS=$KEEPLDFLAGS
16476       enable_tcltk=no
16477       { echo "$as_me:$LINENO: WARNING: tcl/tk is not enable" >&5
16478 echo "$as_me: WARNING: tcl/tk is not enable" >&2;}
16479     else
16480       tcltk_dep='tclIndex'
16481     fi
16482    ;; esac
16483 fi;
16484 case "x$enable_tcltk" in
16485 xyes)
16486   cat >> confdefs.h <<EOF
16487 #define IA_TCLTK 1
16488 EOF
16489
16490
16491
16492 if true; then
16493   ENABLE_TCLTK_TRUE=
16494   ENABLE_TCLTK_FALSE='#'
16495 else
16496   ENABLE_TCLTK_TRUE='#'
16497   ENABLE_TCLTK_FALSE=
16498 fi
16499
16500    LIBS=`echo $LIBS | sed "s/-lX11/$tk_lib $tcl_lib -lX11/"`
16501     case "$target" in
16502       *-*-bsdi*)
16503         EXTRALIBS="$EXTRALIBS -lipc"
16504         ;;
16505     esac
16506     INTERFACE_SRCS="$INTERFACE_SRCS tk_c.c"
16507
16508   ;;
16509 xdynamic)
16510   dynamic_targets="$dynamic_targets interface_k.\$(so)"
16511    k_so_libs="$tcl_libdir $tk_libdir $tcl_lib $tk_lib $lib_dl_opt"
16512     case "$target" in
16513       *-*-bsdi*)
16514         k_so_libs="$k_so_libs -lipc"
16515         ;;
16516     esac
16517     k_so_libs="$k_so_libs -lX11 -lm"
16518
16519   ;;
16520 *)
16521
16522   ;;
16523 esac
16524
16525
16526
16527
16528 if test "x$enable_tcltk" = "xdynamic"; then
16529   ENABLE_DYNAMIC_TCLTK_TRUE=
16530   ENABLE_DYNAMIC_TCLTK_FALSE='#'
16531 else
16532   ENABLE_DYNAMIC_TCLTK_TRUE='#'
16533   ENABLE_DYNAMIC_TCLTK_FALSE=
16534 fi
16535
16536
16537
16538
16539 if false; then
16540   ENABLE_EMACS_TRUE=
16541   ENABLE_EMACS_FALSE='#'
16542 else
16543   ENABLE_EMACS_TRUE='#'
16544   ENABLE_EMACS_FALSE=
16545 fi
16546
16547 # Check whether --enable-emacs or --disable-emacs was given.
16548 if test "${enable_emacs+set}" = set; then
16549   enableval="$enable_emacs"
16550   case "x$enable_emacs" in xyes|xdynamic)  ;; esac
16551 fi;
16552 case "x$enable_emacs" in
16553 xyes)
16554   cat >> confdefs.h <<EOF
16555 #define IA_EMACS 1
16556 EOF
16557
16558
16559
16560 if true; then
16561   ENABLE_EMACS_TRUE=
16562   ENABLE_EMACS_FALSE='#'
16563 else
16564   ENABLE_EMACS_TRUE='#'
16565   ENABLE_EMACS_FALSE=
16566 fi
16567
16568    ELFILES="$ELFILES timidity.el"
16569     INTERFACE_SRCS="$INTERFACE_SRCS emacs_c.c"
16570
16571   ;;
16572 xdynamic)
16573   dynamic_targets="$dynamic_targets interface_e.\$(so)"
16574    ELFILES="$ELFILES timidity.el"
16575   ;;
16576 *)
16577
16578   ;;
16579 esac
16580
16581
16582
16583
16584
16585 if false; then
16586   ENABLE_VT100_TRUE=
16587   ENABLE_VT100_FALSE='#'
16588 else
16589   ENABLE_VT100_TRUE='#'
16590   ENABLE_VT100_FALSE=
16591 fi
16592
16593 # Check whether --enable-vt100 or --disable-vt100 was given.
16594 if test "${enable_vt100+set}" = set; then
16595   enableval="$enable_vt100"
16596   case "x$enable_vt100" in xyes|xdynamic)  ;; esac
16597 fi;
16598 case "x$enable_vt100" in
16599 xyes)
16600   cat >> confdefs.h <<EOF
16601 #define IA_VT100 1
16602 EOF
16603
16604
16605
16606 if true; then
16607   ENABLE_VT100_TRUE=
16608   ENABLE_VT100_FALSE='#'
16609 else
16610   ENABLE_VT100_TRUE='#'
16611   ENABLE_VT100_FALSE=
16612 fi
16613
16614    INTERFACE_SRCS="$INTERFACE_SRCS vt100_c.c vt100.c"
16615   ;;
16616 xdynamic)
16617   dynamic_targets="$dynamic_targets interface_T.\$(so)"
16618
16619   ;;
16620 *)
16621
16622   ;;
16623 esac
16624
16625
16626
16627
16628
16629 if false; then
16630   ENABLE_XAW_TRUE=
16631   ENABLE_XAW_FALSE='#'
16632 else
16633   ENABLE_XAW_TRUE='#'
16634   ENABLE_XAW_FALSE=
16635 fi
16636
16637 # Check whether --enable-xaw or --disable-xaw was given.
16638 if test "${enable_xaw+set}" = set; then
16639   enableval="$enable_xaw"
16640   case "x$enable_xaw" in xyes|xdynamic)  if test "x$with_x" != xyes; then
16641         { { echo "$as_me:$LINENO: error: xaw: --with-x option must be specified" >&5
16642 echo "$as_me: error: xaw: --with-x option must be specified" >&2;}
16643    { (exit 1); exit 1; }; }
16644     fi
16645     if test "x$have_xaw" != "xyes" -a "x$have_xaw" != "x3d"; then
16646       { echo "$as_me:$LINENO: WARNING: X Athena Widget library is not found." >&5
16647 echo "$as_me: WARNING: X Athena Widget library is not found." >&2;}
16648       enable_xaw=no
16649     fi  ;; esac
16650 fi;
16651 case "x$enable_xaw" in
16652 xyes)
16653   cat >> confdefs.h <<EOF
16654 #define IA_XAW 1
16655 EOF
16656
16657
16658
16659 if true; then
16660   ENABLE_XAW_TRUE=
16661   ENABLE_XAW_FALSE='#'
16662 else
16663   ENABLE_XAW_TRUE='#'
16664   ENABLE_XAW_FALSE=
16665 fi
16666
16667        if test "x$have_xext" = xyes; then
16668       lib_xext_opt=-lXext
16669     fi
16670     if test "x$have_xprelibs" = xyes; then
16671       lib_xprelibs_opt='-lSM -lICE'
16672     fi
16673     lib_xmu_opt=-lXmu
16674     lib_xt_opt=-lXt
16675     if test "x$have_xaw" = x3d; then
16676
16677 cat >>confdefs.h <<\_ACEOF
16678 #define XAW3D 1
16679 _ACEOF
16680
16681       lib_xaw_opt=-lXaw3d
16682     else
16683       lib_xaw_opt=-lXaw
16684     fi
16685     INTERFACE_SRCS="$INTERFACE_SRCS xaw_c.c xaw_i.c"
16686
16687   ;;
16688 xdynamic)
16689   dynamic_targets="$dynamic_targets interface_a.\$(so)"
16690    if test "x$have_xext" = xyes; then
16691       a_so_libs="-lXext -lX11"
16692     else
16693       a_so_libs="-lX11"
16694     fi
16695     case "$target" in
16696       *darwin*)
16697         a_so_libs="$a_so_libs -lcc_dynamic"
16698         ;;
16699     esac
16700     if test "x$have_xprelibs" = xyes; then
16701       a_so_libs="-lSM -lICE $a_so_libs"
16702     fi
16703     if test "x$have_xaw" = xyes; then
16704       a_so_libs="-lXaw -lXmu -lXt $a_so_libs"
16705     elif test "x$have_xaw" = x3d; then
16706
16707 cat >>confdefs.h <<\_ACEOF
16708 #define XAW3D 1
16709 _ACEOF
16710
16711       a_so_libs="-lXaw3d -lXmu -lXt $a_so_libs"
16712     fi
16713     a_so_libs="$ldflags_x_opt $a_so_libs"
16714
16715   ;;
16716 *)
16717
16718   ;;
16719 esac
16720
16721
16722
16723
16724 if test "x$enable_xaw" = "xdynamic"; then
16725   ENABLE_DYNAMIC_XAW_TRUE=
16726   ENABLE_DYNAMIC_XAW_FALSE='#'
16727 else
16728   ENABLE_DYNAMIC_XAW_TRUE='#'
16729   ENABLE_DYNAMIC_XAW_FALSE=
16730 fi
16731
16732
16733
16734
16735 if false; then
16736   ENABLE_XSKIN_TRUE=
16737   ENABLE_XSKIN_FALSE='#'
16738 else
16739   ENABLE_XSKIN_TRUE='#'
16740   ENABLE_XSKIN_FALSE=
16741 fi
16742
16743 # Check whether --enable-xskin or --disable-xskin was given.
16744 if test "${enable_xskin+set}" = set; then
16745   enableval="$enable_xskin"
16746   case "x$enable_xskin" in xyes|xdynamic)  if test "x$with_x" != xyes; then
16747         { { echo "$as_me:$LINENO: error: xskin: --with-x option must be specified" >&5
16748 echo "$as_me: error: xskin: --with-x option must be specified" >&2;}
16749    { (exit 1); exit 1; }; }
16750     fi
16751    ;; esac
16752 fi;
16753 case "x$enable_xskin" in
16754 xyes)
16755   cat >> confdefs.h <<EOF
16756 #define IA_XSKIN 1
16757 EOF
16758
16759
16760
16761 if true; then
16762   ENABLE_XSKIN_TRUE=
16763   ENABLE_XSKIN_FALSE='#'
16764 else
16765   ENABLE_XSKIN_TRUE='#'
16766   ENABLE_XSKIN_FALSE=
16767 fi
16768
16769    INTERFACE_SRCS="$INTERFACE_SRCS xskin_c.c xskin_i.c xskin_loadBMP.c xskin_spectrum.c"
16770   ;;
16771 xdynamic)
16772   dynamic_targets="$dynamic_targets interface_i.\$(so)"
16773    i_so_libs="$ldflags_x_opt -lX11"
16774   ;;
16775 *)
16776
16777   ;;
16778 esac
16779
16780
16781
16782
16783
16784 if false; then
16785   ENABLE_GTK_TRUE=
16786   ENABLE_GTK_FALSE='#'
16787 else
16788   ENABLE_GTK_TRUE='#'
16789   ENABLE_GTK_FALSE=
16790 fi
16791
16792 # Check whether --enable-gtk or --disable-gtk was given.
16793 if test "${enable_gtk+set}" = set; then
16794   enableval="$enable_gtk"
16795   case "x$enable_gtk" in xyes|xdynamic)
16796 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
16797 if test "${with_gtk_prefix+set}" = set; then
16798   withval="$with_gtk_prefix"
16799   gtk_config_prefix="$withval"
16800 else
16801   gtk_config_prefix=""
16802 fi;
16803
16804 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
16805 if test "${with_gtk_exec_prefix+set}" = set; then
16806   withval="$with_gtk_exec_prefix"
16807   gtk_config_exec_prefix="$withval"
16808 else
16809   gtk_config_exec_prefix=""
16810 fi;
16811 # Check whether --enable-gtktest or --disable-gtktest was given.
16812 if test "${enable_gtktest+set}" = set; then
16813   enableval="$enable_gtktest"
16814
16815 else
16816   enable_gtktest=yes
16817 fi;
16818
16819   for module in .
16820   do
16821       case "$module" in
16822          gthread)
16823              gtk_config_args="$gtk_config_args gthread"
16824          ;;
16825       esac
16826   done
16827
16828   if test x$gtk_config_exec_prefix != x ; then
16829      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
16830      if test x${GTK_CONFIG+set} != xset ; then
16831         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
16832      fi
16833   fi
16834   if test x$gtk_config_prefix != x ; then
16835      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
16836      if test x${GTK_CONFIG+set} != xset ; then
16837         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
16838      fi
16839   fi
16840
16841   # Extract the first word of "gtk-config", so it can be a program name with args.
16842 set dummy gtk-config; ac_word=$2
16843 echo "$as_me:$LINENO: checking for $ac_word" >&5
16844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16845 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
16846   echo $ECHO_N "(cached) $ECHO_C" >&6
16847 else
16848   case $GTK_CONFIG in
16849   [\\/]* | ?:[\\/]*)
16850   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
16851   ;;
16852   *)
16853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16854 for as_dir in $PATH
16855 do
16856   IFS=$as_save_IFS
16857   test -z "$as_dir" && as_dir=.
16858   for ac_exec_ext in '' $ac_executable_extensions; do
16859   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16860     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16862     break 2
16863   fi
16864 done
16865 done
16866
16867   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
16868   ;;
16869 esac
16870 fi
16871 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
16872
16873 if test -n "$GTK_CONFIG"; then
16874   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
16875 echo "${ECHO_T}$GTK_CONFIG" >&6
16876 else
16877   echo "$as_me:$LINENO: result: no" >&5
16878 echo "${ECHO_T}no" >&6
16879 fi
16880
16881   min_gtk_version=1.1.3
16882   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
16883 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
16884   no_gtk=""
16885   if test "$GTK_CONFIG" = "no" ; then
16886     no_gtk=yes
16887   else
16888     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
16889     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
16890     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
16891            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
16892     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
16893            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
16894     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
16895            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
16896     if test "x$enable_gtktest" = "xyes" ; then
16897       ac_save_CFLAGS="$CFLAGS"
16898       ac_save_LIBS="$LIBS"
16899       CFLAGS="$CFLAGS $GTK_CFLAGS"
16900       LIBS="$GTK_LIBS $LIBS"
16901       rm -f conf.gtktest
16902       if test "$cross_compiling" = yes; then
16903   echo $ac_n "cross compiling; assumed OK... $ac_c"
16904 else
16905   cat >conftest.$ac_ext <<_ACEOF
16906 /* confdefs.h.  */
16907 _ACEOF
16908 cat confdefs.h >>conftest.$ac_ext
16909 cat >>conftest.$ac_ext <<_ACEOF
16910 /* end confdefs.h.  */
16911
16912 #include <gtk/gtk.h>
16913 #include <stdio.h>
16914 #include <stdlib.h>
16915
16916 int
16917 main ()
16918 {
16919   int major, minor, micro;
16920   char *tmp_version;
16921
16922   system ("touch conf.gtktest");
16923
16924   /* HP/UX 9 (%@#!) writes to sscanf strings */
16925   tmp_version = g_strdup("$min_gtk_version");
16926   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
16927      printf("%s, bad version string\n", "$min_gtk_version");
16928      exit(1);
16929    }
16930
16931   if ((gtk_major_version != $gtk_config_major_version) ||
16932       (gtk_minor_version != $gtk_config_minor_version) ||
16933       (gtk_micro_version != $gtk_config_micro_version))
16934     {
16935       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
16936              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
16937              gtk_major_version, gtk_minor_version, gtk_micro_version);
16938       printf ("*** was found! If gtk-config was correct, then it is best\n");
16939       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
16940       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
16941       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
16942       printf("*** required on your system.\n");
16943       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
16944       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
16945       printf("*** before re-running configure\n");
16946     }
16947 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
16948   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
16949            (gtk_minor_version != GTK_MINOR_VERSION) ||
16950            (gtk_micro_version != GTK_MICRO_VERSION))
16951     {
16952       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
16953              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
16954       printf("*** library (version %d.%d.%d)\n",
16955              gtk_major_version, gtk_minor_version, gtk_micro_version);
16956     }
16957 #endif /* defined (GTK_MAJOR_VERSION) ... */
16958   else
16959     {
16960       if ((gtk_major_version > major) ||
16961         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
16962         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
16963       {
16964         return 0;
16965        }
16966      else
16967       {
16968         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
16969                gtk_major_version, gtk_minor_version, gtk_micro_version);
16970         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
16971                major, minor, micro);
16972         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
16973         printf("***\n");
16974         printf("*** If you have already installed a sufficiently new version, this error\n");
16975         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
16976         printf("*** being found. The easiest way to fix this is to remove the old version\n");
16977         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
16978         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
16979         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
16980         printf("*** so that the correct libraries are found at run-time))\n");
16981       }
16982     }
16983   return 1;
16984 }
16985
16986 _ACEOF
16987 rm -f conftest$ac_exeext
16988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16989   (eval $ac_link) 2>&5
16990   ac_status=$?
16991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16994   (eval $ac_try) 2>&5
16995   ac_status=$?
16996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997   (exit $ac_status); }; }; then
16998   :
16999 else
17000   echo "$as_me: program exited with status $ac_status" >&5
17001 echo "$as_me: failed program was:" >&5
17002 sed 's/^/| /' conftest.$ac_ext >&5
17003
17004 ( exit $ac_status )
17005 no_gtk=yes
17006 fi
17007 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17008 fi
17009        CFLAGS="$ac_save_CFLAGS"
17010        LIBS="$ac_save_LIBS"
17011      fi
17012   fi
17013   if test "x$no_gtk" = x ; then
17014      echo "$as_me:$LINENO: result: yes" >&5
17015 echo "${ECHO_T}yes" >&6
17016      :
17017   else
17018      echo "$as_me:$LINENO: result: no" >&5
17019 echo "${ECHO_T}no" >&6
17020      if test "$GTK_CONFIG" = "no" ; then
17021        echo "*** The gtk-config script installed by GTK could not be found"
17022        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
17023        echo "*** your path, or set the GTK_CONFIG environment variable to the"
17024        echo "*** full path to gtk-config."
17025      else
17026        if test -f conf.gtktest ; then
17027         :
17028        else
17029           echo "*** Could not run GTK test program, checking why..."
17030           CFLAGS="$CFLAGS $GTK_CFLAGS"
17031           LIBS="$LIBS $GTK_LIBS"
17032           cat >conftest.$ac_ext <<_ACEOF
17033 /* confdefs.h.  */
17034 _ACEOF
17035 cat confdefs.h >>conftest.$ac_ext
17036 cat >>conftest.$ac_ext <<_ACEOF
17037 /* end confdefs.h.  */
17038
17039 #include <gtk/gtk.h>
17040 #include <stdio.h>
17041
17042 int
17043 main ()
17044 {
17045  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
17046   ;
17047   return 0;
17048 }
17049 _ACEOF
17050 rm -f conftest.$ac_objext conftest$ac_exeext
17051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17052   (eval $ac_link) 2>conftest.er1
17053   ac_status=$?
17054   grep -v '^ *+' conftest.er1 >conftest.err
17055   rm -f conftest.er1
17056   cat conftest.err >&5
17057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058   (exit $ac_status); } &&
17059          { ac_try='test -z "$ac_c_werror_flag"
17060                          || test ! -s conftest.err'
17061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17062   (eval $ac_try) 2>&5
17063   ac_status=$?
17064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065   (exit $ac_status); }; } &&
17066          { ac_try='test -s conftest$ac_exeext'
17067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17068   (eval $ac_try) 2>&5
17069   ac_status=$?
17070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071   (exit $ac_status); }; }; then
17072    echo "*** The test program compiled, but did not run. This usually means"
17073           echo "*** that the run-time linker is not finding GTK or finding the wrong"
17074           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
17075           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17076           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
17077           echo "*** is required on your system"
17078           echo "***"
17079           echo "*** If you have an old version installed, it is best to remove it, although"
17080           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17081           echo "***"
17082           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
17083           echo "*** came with the system with the command"
17084           echo "***"
17085           echo "***    rpm --erase --nodeps gtk gtk-devel"
17086 else
17087   echo "$as_me: failed program was:" >&5
17088 sed 's/^/| /' conftest.$ac_ext >&5
17089
17090  echo "*** The test program failed to compile or link. See the file config.log for the"
17091           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
17092           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
17093           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
17094 fi
17095 rm -f conftest.err conftest.$ac_objext \
17096       conftest$ac_exeext conftest.$ac_ext
17097           CFLAGS="$ac_save_CFLAGS"
17098           LIBS="$ac_save_LIBS"
17099        fi
17100      fi
17101      GTK_CFLAGS=""
17102      GTK_LIBS=""
17103      enable_gtk=no
17104   fi
17105
17106
17107   rm -f conf.gtktest
17108   ;; esac
17109 fi;
17110 case "x$enable_gtk" in
17111 xyes)
17112   cat >> confdefs.h <<EOF
17113 #define IA_GTK 1
17114 EOF
17115
17116
17117
17118 if true; then
17119   ENABLE_GTK_TRUE=
17120   ENABLE_GTK_FALSE='#'
17121 else
17122   ENABLE_GTK_TRUE='#'
17123   ENABLE_GTK_FALSE=
17124 fi
17125
17126    LIBS="$LIBS $GTK_LIBS"
17127     for f in $GTK_CFLAGS; do
17128     case ".$f" in
17129         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
17130         *)              CFLAGS="$CPPFLAGS $f" ;;
17131     esac
17132 done
17133
17134     INTERFACE_SRCS="$INTERFACE_SRCS gtk_c.c gtk_i.c gtk_p.c"
17135
17136   ;;
17137 xdynamic)
17138   dynamic_targets="$dynamic_targets interface_g.\$(so)"
17139    if test "x$GCC" = xyes; then
17140                 for i in $GTK_LIBS; do
17141             case "x$i" in
17142                 x-rdynamic) ;;
17143                 *) g_so_libs="$g_so_libs $i" ;;
17144             esac
17145         done
17146     else
17147         g_so_libs="$GTK_LIBS"
17148     fi
17149     for f in $GTK_CFLAGS; do
17150     case ".$f" in
17151         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
17152         *)              CFLAGS="$CPPFLAGS $f" ;;
17153     esac
17154 done
17155
17156   ;;
17157 *)
17158
17159   ;;
17160 esac
17161
17162
17163
17164
17165
17166 if false; then
17167   ENABLE_SERVER_TRUE=
17168   ENABLE_SERVER_FALSE='#'
17169 else
17170   ENABLE_SERVER_TRUE='#'
17171   ENABLE_SERVER_FALSE=
17172 fi
17173
17174 # Check whether --enable-server or --disable-server was given.
17175 if test "${enable_server+set}" = set; then
17176   enableval="$enable_server"
17177   case "x$enable_server" in xyes|xdynamic)  ;; esac
17178 fi;
17179 case "x$enable_server" in
17180 xyes)
17181   cat >> confdefs.h <<EOF
17182 #define IA_SERVER 1
17183 EOF
17184
17185
17186
17187 if true; then
17188   ENABLE_SERVER_TRUE=
17189   ENABLE_SERVER_FALSE='#'
17190 else
17191   ENABLE_SERVER_TRUE='#'
17192   ENABLE_SERVER_FALSE=
17193 fi
17194
17195    INTERFACE_SRCS="$INTERFACE_SRCS server_c.c"
17196
17197 for ac_header in sys/soundcard.h
17198 do
17199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17201   echo "$as_me:$LINENO: checking for $ac_header" >&5
17202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17204   echo $ECHO_N "(cached) $ECHO_C" >&6
17205 fi
17206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17208 else
17209   # Is the header compilable?
17210 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17212 cat >conftest.$ac_ext <<_ACEOF
17213 /* confdefs.h.  */
17214 _ACEOF
17215 cat confdefs.h >>conftest.$ac_ext
17216 cat >>conftest.$ac_ext <<_ACEOF
17217 /* end confdefs.h.  */
17218 $ac_includes_default
17219 #include <$ac_header>
17220 _ACEOF
17221 rm -f conftest.$ac_objext
17222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17223   (eval $ac_compile) 2>conftest.er1
17224   ac_status=$?
17225   grep -v '^ *+' conftest.er1 >conftest.err
17226   rm -f conftest.er1
17227   cat conftest.err >&5
17228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229   (exit $ac_status); } &&
17230          { ac_try='test -z "$ac_c_werror_flag"
17231                          || test ! -s conftest.err'
17232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17233   (eval $ac_try) 2>&5
17234   ac_status=$?
17235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236   (exit $ac_status); }; } &&
17237          { ac_try='test -s conftest.$ac_objext'
17238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17239   (eval $ac_try) 2>&5
17240   ac_status=$?
17241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242   (exit $ac_status); }; }; then
17243   ac_header_compiler=yes
17244 else
17245   echo "$as_me: failed program was:" >&5
17246 sed 's/^/| /' conftest.$ac_ext >&5
17247
17248 ac_header_compiler=no
17249 fi
17250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17252 echo "${ECHO_T}$ac_header_compiler" >&6
17253
17254 # Is the header present?
17255 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17256 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17257 cat >conftest.$ac_ext <<_ACEOF
17258 /* confdefs.h.  */
17259 _ACEOF
17260 cat confdefs.h >>conftest.$ac_ext
17261 cat >>conftest.$ac_ext <<_ACEOF
17262 /* end confdefs.h.  */
17263 #include <$ac_header>
17264 _ACEOF
17265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17266   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17267   ac_status=$?
17268   grep -v '^ *+' conftest.er1 >conftest.err
17269   rm -f conftest.er1
17270   cat conftest.err >&5
17271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272   (exit $ac_status); } >/dev/null; then
17273   if test -s conftest.err; then
17274     ac_cpp_err=$ac_c_preproc_warn_flag
17275     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17276   else
17277     ac_cpp_err=
17278   fi
17279 else
17280   ac_cpp_err=yes
17281 fi
17282 if test -z "$ac_cpp_err"; then
17283   ac_header_preproc=yes
17284 else
17285   echo "$as_me: failed program was:" >&5
17286 sed 's/^/| /' conftest.$ac_ext >&5
17287
17288   ac_header_preproc=no
17289 fi
17290 rm -f conftest.err conftest.$ac_ext
17291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17292 echo "${ECHO_T}$ac_header_preproc" >&6
17293
17294 # So?  What about this header?
17295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17296   yes:no: )
17297     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17298 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17299     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17300 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17301     ac_header_preproc=yes
17302     ;;
17303   no:yes:* )
17304     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17305 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17306     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17307 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17308     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17309 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17310     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17311 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17312     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17313 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17314     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17315 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17316     (
17317       cat <<\_ASBOX
17318 ## ------------------------------- ##
17319 ## Report this to root@mput.dip.jp ##
17320 ## ------------------------------- ##
17321 _ASBOX
17322     ) |
17323       sed "s/^/$as_me: WARNING:     /" >&2
17324     ;;
17325 esac
17326 echo "$as_me:$LINENO: checking for $ac_header" >&5
17327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17329   echo $ECHO_N "(cached) $ECHO_C" >&6
17330 else
17331   eval "$as_ac_Header=\$ac_header_preproc"
17332 fi
17333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17335
17336 fi
17337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17338   cat >>confdefs.h <<_ACEOF
17339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17340 _ACEOF
17341
17342 fi
17343
17344 done
17345
17346
17347   ;;
17348 xdynamic)
17349   dynamic_targets="$dynamic_targets interface_r.\$(so)"
17350
17351   ;;
17352 *)
17353
17354   ;;
17355 esac
17356
17357
17358
17359
17360
17361 if false; then
17362   ENABLE_ALSASEQ_TRUE=
17363   ENABLE_ALSASEQ_FALSE='#'
17364 else
17365   ENABLE_ALSASEQ_TRUE='#'
17366   ENABLE_ALSASEQ_FALSE=
17367 fi
17368
17369 # Check whether --enable-alsaseq or --disable-alsaseq was given.
17370 if test "${enable_alsaseq+set}" = set; then
17371   enableval="$enable_alsaseq"
17372   case "x$enable_alsaseq" in xyes|xdynamic)  ;; esac
17373 fi;
17374 case "x$enable_alsaseq" in
17375 xyes)
17376   cat >> confdefs.h <<EOF
17377 #define IA_ALSASEQ 1
17378 EOF
17379
17380
17381
17382 if true; then
17383   ENABLE_ALSASEQ_TRUE=
17384   ENABLE_ALSASEQ_FALSE='#'
17385 else
17386   ENABLE_ALSASEQ_TRUE='#'
17387   ENABLE_ALSASEQ_FALSE=
17388 fi
17389
17390    INTERFACE_SRCS="$INTERFACE_SRCS alsaseq_c.c"
17391     alsa_save_CFLAGS="$CFLAGS"
17392 alsa_save_LDFLAGS="$LDFLAGS"
17393 alsa_save_LIBS="$LIBS"
17394 alsa_found=yes
17395
17396
17397 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
17398 if test "${with_alsa_prefix+set}" = set; then
17399   withval="$with_alsa_prefix"
17400   alsa_prefix="$withval"
17401 else
17402   alsa_prefix=""
17403 fi;
17404
17405
17406 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
17407 if test "${with_alsa_inc_prefix+set}" = set; then
17408   withval="$with_alsa_inc_prefix"
17409   alsa_inc_prefix="$withval"
17410 else
17411   alsa_inc_prefix=""
17412 fi;
17413
17414 # Check whether --enable-alsatest or --disable-alsatest was given.
17415 if test "${enable_alsatest+set}" = set; then
17416   enableval="$enable_alsatest"
17417   enable_alsatest=no
17418 else
17419   enable_alsatest=yes
17420 fi;
17421
17422 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
17423 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
17424 if test "$alsa_inc_prefix" != "" ; then
17425         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
17426         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
17427 fi
17428 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
17429 echo "${ECHO_T}$ALSA_CFLAGS" >&6
17430
17431 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
17432 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
17433 if test "$alsa_prefix" != "" ; then
17434         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
17435         LDFLAGS="$LDFLAGS $ALSA_LIBS"
17436 fi
17437
17438 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
17439 LIBS=`echo $LIBS | sed 's/-lm//'`
17440 LIBS=`echo $LIBS | sed 's/-ldl//'`
17441 LIBS=`echo $LIBS | sed 's/-lpthread//'`
17442 LIBS=`echo $LIBS | sed 's/  //'`
17443 LIBS="$ALSA_LIBS $LIBS"
17444 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
17445 echo "${ECHO_T}$ALSA_LIBS" >&6
17446
17447 min_alsa_version=0.1.1
17448 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
17449 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
17450 no_alsa=""
17451     alsa_min_major_version=`echo $min_alsa_version | \
17452            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17453     alsa_min_minor_version=`echo $min_alsa_version | \
17454            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17455     alsa_min_micro_version=`echo $min_alsa_version | \
17456            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17457
17458
17459
17460
17461 ac_ext=c
17462 ac_cpp='$CPP $CPPFLAGS'
17463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17466
17467 cat >conftest.$ac_ext <<_ACEOF
17468 /* confdefs.h.  */
17469 _ACEOF
17470 cat confdefs.h >>conftest.$ac_ext
17471 cat >>conftest.$ac_ext <<_ACEOF
17472 /* end confdefs.h.  */
17473
17474 #include <alsa/asoundlib.h>
17475
17476 int
17477 main ()
17478 {
17479
17480 /* ensure backward compatibility */
17481 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
17482 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
17483 #endif
17484 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
17485 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
17486 #endif
17487 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
17488 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
17489 #endif
17490
17491 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
17492   exit(0);
17493 #  else
17494 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
17495 #       error not present
17496 #    endif
17497
17498 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
17499   exit(0);
17500 #   else
17501 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
17502 #          error not present
17503 #      endif
17504
17505 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
17506 #        error not present
17507 #      endif
17508 #    endif
17509 #  endif
17510 exit(0);
17511
17512   ;
17513   return 0;
17514 }
17515 _ACEOF
17516 rm -f conftest.$ac_objext
17517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17518   (eval $ac_compile) 2>conftest.er1
17519   ac_status=$?
17520   grep -v '^ *+' conftest.er1 >conftest.err
17521   rm -f conftest.er1
17522   cat conftest.err >&5
17523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524   (exit $ac_status); } &&
17525          { ac_try='test -z "$ac_c_werror_flag"
17526                          || test ! -s conftest.err'
17527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528   (eval $ac_try) 2>&5
17529   ac_status=$?
17530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531   (exit $ac_status); }; } &&
17532          { ac_try='test -s conftest.$ac_objext'
17533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17534   (eval $ac_try) 2>&5
17535   ac_status=$?
17536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537   (exit $ac_status); }; }; then
17538   echo "$as_me:$LINENO: result: found." >&5
17539 echo "${ECHO_T}found." >&6
17540 else
17541   echo "$as_me: failed program was:" >&5
17542 sed 's/^/| /' conftest.$ac_ext >&5
17543
17544 cat >conftest.$ac_ext <<_ACEOF
17545 /* confdefs.h.  */
17546 _ACEOF
17547 cat confdefs.h >>conftest.$ac_ext
17548 cat >>conftest.$ac_ext <<_ACEOF
17549 /* end confdefs.h.  */
17550
17551 #include <sys/asoundlib.h>
17552
17553 int
17554 main ()
17555 {
17556
17557 /* ensure backward compatibility */
17558 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
17559 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
17560 #endif
17561 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
17562 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
17563 #endif
17564 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
17565 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
17566 #endif
17567
17568 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
17569   exit(0);
17570 #  else
17571 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
17572 #       error not present
17573 #    endif
17574
17575 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
17576   exit(0);
17577 #   else
17578 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
17579 #          error not present
17580 #      endif
17581
17582 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
17583 #        error not present
17584 #      endif
17585 #    endif
17586 #  endif
17587 exit(0);
17588
17589   ;
17590   return 0;
17591 }
17592 _ACEOF
17593 rm -f conftest.$ac_objext
17594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17595   (eval $ac_compile) 2>conftest.er1
17596   ac_status=$?
17597   grep -v '^ *+' conftest.er1 >conftest.err
17598   rm -f conftest.er1
17599   cat conftest.err >&5
17600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601   (exit $ac_status); } &&
17602          { ac_try='test -z "$ac_c_werror_flag"
17603                          || test ! -s conftest.err'
17604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17605   (eval $ac_try) 2>&5
17606   ac_status=$?
17607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608   (exit $ac_status); }; } &&
17609          { ac_try='test -s conftest.$ac_objext'
17610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17611   (eval $ac_try) 2>&5
17612   ac_status=$?
17613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614   (exit $ac_status); }; }; then
17615   echo "$as_me:$LINENO: result: found." >&5
17616 echo "${ECHO_T}found." >&6
17617 else
17618   echo "$as_me: failed program was:" >&5
17619 sed 's/^/| /' conftest.$ac_ext >&5
17620
17621 echo "$as_me:$LINENO: result: not present." >&5
17622 echo "${ECHO_T}not present." >&6
17623    echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
17624 echo "${ECHO_T}libasound was not found anywhere." >&6
17625    alsa_found=no
17626 fi
17627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17628    echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
17629 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
17630
17631 fi
17632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17633 ac_ext=c
17634 ac_cpp='$CPP $CPPFLAGS'
17635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17638
17639
17640
17641 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
17642 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
17643 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
17644   echo $ECHO_N "(cached) $ECHO_C" >&6
17645 else
17646   ac_check_lib_save_LIBS=$LIBS
17647 LIBS="-lasound  $LIBS"
17648 cat >conftest.$ac_ext <<_ACEOF
17649 /* confdefs.h.  */
17650 _ACEOF
17651 cat confdefs.h >>conftest.$ac_ext
17652 cat >>conftest.$ac_ext <<_ACEOF
17653 /* end confdefs.h.  */
17654
17655 /* Override any gcc2 internal prototype to avoid an error.  */
17656 #ifdef __cplusplus
17657 extern "C"
17658 #endif
17659 /* We use char because int might match the return type of a gcc2
17660    builtin and then its argument prototype would still apply.  */
17661 char snd_ctl_open ();
17662 int
17663 main ()
17664 {
17665 snd_ctl_open ();
17666   ;
17667   return 0;
17668 }
17669 _ACEOF
17670 rm -f conftest.$ac_objext conftest$ac_exeext
17671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17672   (eval $ac_link) 2>conftest.er1
17673   ac_status=$?
17674   grep -v '^ *+' conftest.er1 >conftest.err
17675   rm -f conftest.er1
17676   cat conftest.err >&5
17677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678   (exit $ac_status); } &&
17679          { ac_try='test -z "$ac_c_werror_flag"
17680                          || test ! -s conftest.err'
17681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17682   (eval $ac_try) 2>&5
17683   ac_status=$?
17684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685   (exit $ac_status); }; } &&
17686          { ac_try='test -s conftest$ac_exeext'
17687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17688   (eval $ac_try) 2>&5
17689   ac_status=$?
17690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691   (exit $ac_status); }; }; then
17692   ac_cv_lib_asound_snd_ctl_open=yes
17693 else
17694   echo "$as_me: failed program was:" >&5
17695 sed 's/^/| /' conftest.$ac_ext >&5
17696
17697 ac_cv_lib_asound_snd_ctl_open=no
17698 fi
17699 rm -f conftest.err conftest.$ac_objext \
17700       conftest$ac_exeext conftest.$ac_ext
17701 LIBS=$ac_check_lib_save_LIBS
17702 fi
17703 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
17704 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
17705 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
17706   cat >>confdefs.h <<_ACEOF
17707 #define HAVE_LIBASOUND 1
17708 _ACEOF
17709
17710   LIBS="-lasound $LIBS"
17711
17712 else
17713   echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
17714 echo "${ECHO_T}No linkable libasound was found." >&6
17715    alsa_found=no
17716
17717 fi
17718
17719
17720 if test "x$alsa_found" = "xyes" ; then
17721    :
17722    LIBS=`echo $LIBS | sed 's/-lasound//g'`
17723    LIBS=`echo $LIBS | sed 's/  //'`
17724    LIBS="-lasound $LIBS"
17725 else
17726    :
17727    CFLAGS="$alsa_save_CFLAGS"
17728    LDFLAGS="$alsa_save_LDFLAGS"
17729    LIBS="$alsa_save_LIBS"
17730    ALSA_CFLAGS=""
17731    ALSA_LIBS=""
17732 fi
17733
17734
17735
17736
17737
17738   ;;
17739 xdynamic)
17740   dynamic_targets="$dynamic_targets interface_A.\$(so)"
17741
17742   ;;
17743 *)
17744
17745   ;;
17746 esac
17747
17748
17749
17750
17751
17752 if false; then
17753   ENABLE_WINSYN_TRUE=
17754   ENABLE_WINSYN_FALSE='#'
17755 else
17756   ENABLE_WINSYN_TRUE='#'
17757   ENABLE_WINSYN_FALSE=
17758 fi
17759
17760 # Check whether --enable-winsyn or --disable-winsyn was given.
17761 if test "${enable_winsyn+set}" = set; then
17762   enableval="$enable_winsyn"
17763   case "x$enable_winsyn" in xyes|xdynamic)  ;; esac
17764 fi;
17765 case "x$enable_winsyn" in
17766 xyes)
17767   cat >> confdefs.h <<EOF
17768 #define IA_WINSYN 1
17769 EOF
17770
17771
17772
17773 if true; then
17774   ENABLE_WINSYN_TRUE=
17775   ENABLE_WINSYN_FALSE='#'
17776 else
17777   ENABLE_WINSYN_TRUE='#'
17778   ENABLE_WINSYN_FALSE=
17779 fi
17780
17781    INTERFACE_SRCS="$INTERFACE_SRCS winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
17782   ;;
17783 xdynamic)
17784   dynamic_targets="$dynamic_targets interface_W.\$(so)"
17785
17786   ;;
17787 *)
17788
17789   ;;
17790 esac
17791
17792
17793
17794
17795
17796 if false; then
17797   ENABLE_PORTMIDISYN_TRUE=
17798   ENABLE_PORTMIDISYN_FALSE='#'
17799 else
17800   ENABLE_PORTMIDISYN_TRUE='#'
17801   ENABLE_PORTMIDISYN_FALSE=
17802 fi
17803
17804 # Check whether --enable-portmidisyn or --disable-portmidisyn was given.
17805 if test "${enable_portmidisyn+set}" = set; then
17806   enableval="$enable_portmidisyn"
17807   case "x$enable_portmidisyn" in xyes|xdynamic)  ;; esac
17808 fi;
17809 case "x$enable_portmidisyn" in
17810 xyes)
17811   cat >> confdefs.h <<EOF
17812 #define IA_PORTMIDISYN 1
17813 EOF
17814
17815
17816
17817 if true; then
17818   ENABLE_PORTMIDISYN_TRUE=
17819   ENABLE_PORTMIDISYN_FALSE='#'
17820 else
17821   ENABLE_PORTMIDISYN_TRUE='#'
17822   ENABLE_PORTMIDISYN_FALSE=
17823 fi
17824
17825    INTERFACE_SRCS="$INTERFACE_SRCS portmidisyn_c.c rtsyn_common.c rtsyn_portmidi.c"
17826   ;;
17827 xdynamic)
17828   dynamic_targets="$dynamic_targets interface_P.\$(so)"
17829
17830   ;;
17831 *)
17832
17833   ;;
17834 esac
17835
17836
17837
17838
17839
17840 if false; then
17841   ENABLE_W32G_SYN_TRUE=
17842   ENABLE_W32G_SYN_FALSE='#'
17843 else
17844   ENABLE_W32G_SYN_TRUE='#'
17845   ENABLE_W32G_SYN_FALSE=
17846 fi
17847
17848 # Check whether --enable-winsyng or --disable-winsyng was given.
17849 if test "${enable_winsyng+set}" = set; then
17850   enableval="$enable_winsyng"
17851   case "x$enable_winsyng" in xyes|xdynamic)  ;; esac
17852 fi;
17853 case "x$enable_winsyng" in
17854 xyes)
17855   cat >> confdefs.h <<EOF
17856 #define IA_W32G_SYN 1
17857 EOF
17858
17859
17860
17861 if true; then
17862   ENABLE_W32G_SYN_TRUE=
17863   ENABLE_W32G_SYN_FALSE='#'
17864 else
17865   ENABLE_W32G_SYN_TRUE='#'
17866   ENABLE_W32G_SYN_FALSE=
17867 fi
17868
17869    lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
17870     lib_user32_opt='-luser32'
17871     LDFLAGS="-mwindows $LDFLAGS"
17872     INTERFACE_SRCS="$INTERFACE_SRCS w32g_ini.c w32g_pref.c w32g_syn_escaped.c w32g_utl.c winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
17873
17874   ;;
17875 xdynamic)
17876   dynamic_targets="$dynamic_targets interface_W.\$(so)"
17877
17878   ;;
17879 *)
17880
17881   ;;
17882 esac
17883
17884
17885
17886
17887
17888
17889 if false; then
17890   ENABLE_W32GUI_TRUE=
17891   ENABLE_W32GUI_FALSE='#'
17892 else
17893   ENABLE_W32GUI_TRUE='#'
17894   ENABLE_W32GUI_FALSE=
17895 fi
17896
17897 # Check whether --enable-w32gui or --disable-w32gui was given.
17898 if test "${enable_w32gui+set}" = set; then
17899   enableval="$enable_w32gui"
17900   case "x$enable_w32gui" in xyes|xdynamic)  ;; esac
17901 fi;
17902 case "x$enable_w32gui" in
17903 xyes)
17904   cat >> confdefs.h <<EOF
17905 #define IA_W32GUI 1
17906 EOF
17907
17908
17909
17910 if true; then
17911   ENABLE_W32GUI_TRUE=
17912   ENABLE_W32GUI_FALSE='#'
17913 else
17914   ENABLE_W32GUI_TRUE='#'
17915   ENABLE_W32GUI_FALSE=
17916 fi
17917
17918    lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
17919     lib_user32_opt='-luser32'
17920     LDFLAGS="-mwindows $LDFLAGS"
17921     INTERFACE_SRCS="$INTERFACE_SRCS w32g_c.c w32g_ini.c w32g_i.c w32g_playlist.c w32g_utl.c w32g_pref.c w32g_subwin_escaped.c w32g_subwin2.c w32g_subwin3.c w32g_ut2.c w32g_dib.c  wrdt_w32g.c w32g_mag.c"
17922
17923   ;;
17924 xdynamic)
17925   dynamic_targets="$dynamic_targets interface_w.\$(so)"
17926
17927   ;;
17928 *)
17929
17930   ;;
17931 esac
17932
17933
17934
17935
17936
17937 if false; then
17938   ENABLE_PLUGIN_TRUE=
17939   ENABLE_PLUGIN_FALSE='#'
17940 else
17941   ENABLE_PLUGIN_TRUE='#'
17942   ENABLE_PLUGIN_FALSE=
17943 fi
17944
17945 # Check whether --enable-ump or --disable-ump was given.
17946 if test "${enable_ump+set}" = set; then
17947   enableval="$enable_ump"
17948   case "x$enable_ump" in xyes|xdynamic)  if test ! -d ump; then
17949         { { echo "$as_me:$LINENO: error: UMP Package is not exists.  Can't configure it." >&5
17950 echo "$as_me: error: UMP Package is not exists.  Can't configure it." >&2;}
17951    { (exit 1); exit 1; }; }
17952     fi
17953     if test "${ac_cv_header_X11_xpm_h+set}" = set; then
17954   echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
17955 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
17956 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
17957   echo $ECHO_N "(cached) $ECHO_C" >&6
17958 fi
17959 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
17960 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
17961 else
17962   # Is the header compilable?
17963 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
17964 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
17965 cat >conftest.$ac_ext <<_ACEOF
17966 /* confdefs.h.  */
17967 _ACEOF
17968 cat confdefs.h >>conftest.$ac_ext
17969 cat >>conftest.$ac_ext <<_ACEOF
17970 /* end confdefs.h.  */
17971 $ac_includes_default
17972 #include <X11/xpm.h>
17973 _ACEOF
17974 rm -f conftest.$ac_objext
17975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17976   (eval $ac_compile) 2>conftest.er1
17977   ac_status=$?
17978   grep -v '^ *+' conftest.er1 >conftest.err
17979   rm -f conftest.er1
17980   cat conftest.err >&5
17981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982   (exit $ac_status); } &&
17983          { ac_try='test -z "$ac_c_werror_flag"
17984                          || test ! -s conftest.err'
17985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17986   (eval $ac_try) 2>&5
17987   ac_status=$?
17988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989   (exit $ac_status); }; } &&
17990          { ac_try='test -s conftest.$ac_objext'
17991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17992   (eval $ac_try) 2>&5
17993   ac_status=$?
17994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995   (exit $ac_status); }; }; then
17996   ac_header_compiler=yes
17997 else
17998   echo "$as_me: failed program was:" >&5
17999 sed 's/^/| /' conftest.$ac_ext >&5
18000
18001 ac_header_compiler=no
18002 fi
18003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18005 echo "${ECHO_T}$ac_header_compiler" >&6
18006
18007 # Is the header present?
18008 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
18009 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
18010 cat >conftest.$ac_ext <<_ACEOF
18011 /* confdefs.h.  */
18012 _ACEOF
18013 cat confdefs.h >>conftest.$ac_ext
18014 cat >>conftest.$ac_ext <<_ACEOF
18015 /* end confdefs.h.  */
18016 #include <X11/xpm.h>
18017 _ACEOF
18018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18019   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18020   ac_status=$?
18021   grep -v '^ *+' conftest.er1 >conftest.err
18022   rm -f conftest.er1
18023   cat conftest.err >&5
18024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025   (exit $ac_status); } >/dev/null; then
18026   if test -s conftest.err; then
18027     ac_cpp_err=$ac_c_preproc_warn_flag
18028     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18029   else
18030     ac_cpp_err=
18031   fi
18032 else
18033   ac_cpp_err=yes
18034 fi
18035 if test -z "$ac_cpp_err"; then
18036   ac_header_preproc=yes
18037 else
18038   echo "$as_me: failed program was:" >&5
18039 sed 's/^/| /' conftest.$ac_ext >&5
18040
18041   ac_header_preproc=no
18042 fi
18043 rm -f conftest.err conftest.$ac_ext
18044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18045 echo "${ECHO_T}$ac_header_preproc" >&6
18046
18047 # So?  What about this header?
18048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18049   yes:no: )
18050     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
18051 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18052     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
18053 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
18054     ac_header_preproc=yes
18055     ;;
18056   no:yes:* )
18057     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
18058 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
18059     { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&5
18060 echo "$as_me: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&2;}
18061     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
18062 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
18063     { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&5
18064 echo "$as_me: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
18065     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
18066 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
18067     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
18068 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
18069     (
18070       cat <<\_ASBOX
18071 ## ------------------------------- ##
18072 ## Report this to root@mput.dip.jp ##
18073 ## ------------------------------- ##
18074 _ASBOX
18075     ) |
18076       sed "s/^/$as_me: WARNING:     /" >&2
18077     ;;
18078 esac
18079 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
18080 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
18081 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18082   echo $ECHO_N "(cached) $ECHO_C" >&6
18083 else
18084   ac_cv_header_X11_xpm_h=$ac_header_preproc
18085 fi
18086 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
18087 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
18088
18089 fi
18090 if test $ac_cv_header_X11_xpm_h = yes; then
18091   :
18092 else
18093   { { echo "$as_me:$LINENO: error: UMP Package needs xpm.h, but could not find it." >&5
18094 echo "$as_me: error: UMP Package needs xpm.h, but could not find it." >&2;}
18095    { (exit 1); exit 1; }; }
18096 fi
18097
18098
18099     echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
18100 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
18101 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
18102   echo $ECHO_N "(cached) $ECHO_C" >&6
18103 else
18104   ac_check_lib_save_LIBS=$LIBS
18105 LIBS="-lXpm  $LIBS"
18106 cat >conftest.$ac_ext <<_ACEOF
18107 /* confdefs.h.  */
18108 _ACEOF
18109 cat confdefs.h >>conftest.$ac_ext
18110 cat >>conftest.$ac_ext <<_ACEOF
18111 /* end confdefs.h.  */
18112
18113 /* Override any gcc2 internal prototype to avoid an error.  */
18114 #ifdef __cplusplus
18115 extern "C"
18116 #endif
18117 /* We use char because int might match the return type of a gcc2
18118    builtin and then its argument prototype would still apply.  */
18119 char XpmCreatePixmapFromData ();
18120 int
18121 main ()
18122 {
18123 XpmCreatePixmapFromData ();
18124   ;
18125   return 0;
18126 }
18127 _ACEOF
18128 rm -f conftest.$ac_objext conftest$ac_exeext
18129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18130   (eval $ac_link) 2>conftest.er1
18131   ac_status=$?
18132   grep -v '^ *+' conftest.er1 >conftest.err
18133   rm -f conftest.er1
18134   cat conftest.err >&5
18135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136   (exit $ac_status); } &&
18137          { ac_try='test -z "$ac_c_werror_flag"
18138                          || test ! -s conftest.err'
18139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18140   (eval $ac_try) 2>&5
18141   ac_status=$?
18142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143   (exit $ac_status); }; } &&
18144          { ac_try='test -s conftest$ac_exeext'
18145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18146   (eval $ac_try) 2>&5
18147   ac_status=$?
18148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149   (exit $ac_status); }; }; then
18150   ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
18151 else
18152   echo "$as_me: failed program was:" >&5
18153 sed 's/^/| /' conftest.$ac_ext >&5
18154
18155 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
18156 fi
18157 rm -f conftest.err conftest.$ac_objext \
18158       conftest$ac_exeext conftest.$ac_ext
18159 LIBS=$ac_check_lib_save_LIBS
18160 fi
18161 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
18162 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
18163 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
18164   :
18165 else
18166   { { echo "$as_me:$LINENO: error: UMP Package needs libXpm.a, but could not find it." >&5
18167 echo "$as_me: error: UMP Package needs libXpm.a, but could not find it." >&2;}
18168    { (exit 1); exit 1; }; }
18169 fi
18170
18171     if test "x$have_xext" = xyes; then
18172       lib_xext_opt=-lXext
18173     fi
18174     if test "x$have_xprelibs" = xyes; then
18175       lib_xprelibs_opt='-lSM -lICE'
18176     fi
18177     lib_xmu_opt=-lXmu
18178     lib_xt_opt=-lXt
18179    ;; esac
18180 fi;
18181 case "x$enable_ump" in
18182 xyes)
18183   cat >> confdefs.h <<EOF
18184 #define IA_PLUGIN 1
18185 EOF
18186
18187
18188
18189 if true; then
18190   ENABLE_PLUGIN_TRUE=
18191   ENABLE_PLUGIN_FALSE='#'
18192 else
18193   ENABLE_PLUGIN_TRUE='#'
18194   ENABLE_PLUGIN_FALSE=
18195 fi
18196
18197
18198   ;;
18199 xdynamic)
18200   dynamic_targets="$dynamic_targets interface_p.\$(so)"
18201
18202   ;;
18203 *)
18204
18205   ;;
18206 esac
18207
18208
18209
18210
18211 # Check whether --enable-offix or --disable-offix was given.
18212 if test "${enable_offix+set}" = set; then
18213   enableval="$enable_offix"
18214    if test "$enableval" = "yes"; then
18215       KEEPCPPFLAGS=$CPPFLAGS
18216       KEEPLIBS=$LIBS
18217       KEEPLDFLAGS=$LDFLAGS
18218       CPPFLAGS="$CPPFLAGS $offix_include_dir"
18219       LDFLAGS="$LDFLAGS $offix_lib_dir"
18220       LIBS="$LIBS $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11"
18221       echo "$as_me:$LINENO: checking for DndInitialize in -lDnd" >&5
18222 echo $ECHO_N "checking for DndInitialize in -lDnd... $ECHO_C" >&6
18223 if test "${ac_cv_lib_Dnd_DndInitialize+set}" = set; then
18224   echo $ECHO_N "(cached) $ECHO_C" >&6
18225 else
18226   ac_check_lib_save_LIBS=$LIBS
18227 LIBS="-lDnd  $LIBS"
18228 cat >conftest.$ac_ext <<_ACEOF
18229 /* confdefs.h.  */
18230 _ACEOF
18231 cat confdefs.h >>conftest.$ac_ext
18232 cat >>conftest.$ac_ext <<_ACEOF
18233 /* end confdefs.h.  */
18234
18235 /* Override any gcc2 internal prototype to avoid an error.  */
18236 #ifdef __cplusplus
18237 extern "C"
18238 #endif
18239 /* We use char because int might match the return type of a gcc2
18240    builtin and then its argument prototype would still apply.  */
18241 char DndInitialize ();
18242 int
18243 main ()
18244 {
18245 DndInitialize ();
18246   ;
18247   return 0;
18248 }
18249 _ACEOF
18250 rm -f conftest.$ac_objext conftest$ac_exeext
18251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18252   (eval $ac_link) 2>conftest.er1
18253   ac_status=$?
18254   grep -v '^ *+' conftest.er1 >conftest.err
18255   rm -f conftest.er1
18256   cat conftest.err >&5
18257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258   (exit $ac_status); } &&
18259          { ac_try='test -z "$ac_c_werror_flag"
18260                          || test ! -s conftest.err'
18261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18262   (eval $ac_try) 2>&5
18263   ac_status=$?
18264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265   (exit $ac_status); }; } &&
18266          { ac_try='test -s conftest$ac_exeext'
18267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18268   (eval $ac_try) 2>&5
18269   ac_status=$?
18270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271   (exit $ac_status); }; }; then
18272   ac_cv_lib_Dnd_DndInitialize=yes
18273 else
18274   echo "$as_me: failed program was:" >&5
18275 sed 's/^/| /' conftest.$ac_ext >&5
18276
18277 ac_cv_lib_Dnd_DndInitialize=no
18278 fi
18279 rm -f conftest.err conftest.$ac_objext \
18280       conftest$ac_exeext conftest.$ac_ext
18281 LIBS=$ac_check_lib_save_LIBS
18282 fi
18283 echo "$as_me:$LINENO: result: $ac_cv_lib_Dnd_DndInitialize" >&5
18284 echo "${ECHO_T}$ac_cv_lib_Dnd_DndInitialize" >&6
18285 if test $ac_cv_lib_Dnd_DndInitialize = yes; then
18286
18287         LIBS=$KEEPLIBS
18288         lib_offix_opt="-lDnd"
18289
18290 cat >>confdefs.h <<\_ACEOF
18291 #define OFFIX 1
18292 _ACEOF
18293
18294
18295 else
18296    LDFLAGS=$KEEPLDFLAGS
18297         CPPFLAGS=$KEEPCPPFLAGS
18298         LIBS=$KEEPLIBS
18299
18300 fi
18301
18302     fi
18303
18304 fi;
18305
18306 # Check whether --enable-network or --disable-network was given.
18307 if test "${enable_network+set}" = set; then
18308   enableval="$enable_network"
18309    if test "$enableval" = "yes"; then
18310
18311 cat >>confdefs.h <<\_ACEOF
18312 #define SUPPORT_SOCKET 1
18313 _ACEOF
18314
18315     fi
18316 fi;
18317
18318
18319 if test "x$enable_network" = "xyes"; then
18320   ENABLE_NETWORK_TRUE=
18321   ENABLE_NETWORK_FALSE='#'
18322 else
18323   ENABLE_NETWORK_TRUE='#'
18324   ENABLE_NETWORK_FALSE=
18325 fi
18326
18327
18328 # Check whether --enable-spectrogram or --disable-spectrogram was given.
18329 if test "${enable_spectrogram+set}" = set; then
18330   enableval="$enable_spectrogram"
18331    if test "$enableval" = "yes"; then
18332       if test "x$with_x" != xyes; then
18333         { { echo "$as_me:$LINENO: error: spectrogram: --with-x option must be specified" >&5
18334 echo "$as_me: error: spectrogram: --with-x option must be specified" >&2;}
18335    { (exit 1); exit 1; }; }
18336       fi
18337
18338 cat >>confdefs.h <<\_ACEOF
18339 #define SUPPORT_SOUNDSPEC 1
18340 _ACEOF
18341
18342     fi
18343 fi;
18344
18345
18346 if test "x$enable_spectrogram" = "xyes"; then
18347   ENABLE_SOUND_SPEC_TRUE=
18348   ENABLE_SOUND_SPEC_FALSE='#'
18349 else
18350   ENABLE_SOUND_SPEC_TRUE='#'
18351   ENABLE_SOUND_SPEC_FALSE=
18352 fi
18353
18354
18355 # Check whether --enable-spline or --disable-spline was given.
18356 if test "${enable_spline+set}" = set; then
18357   enableval="$enable_spline"
18358    case "x$enableval" in
18359       xlinear)
18360
18361 cat >>confdefs.h <<\_ACEOF
18362 #define DEFAULT_RESAMPLATION resample_linear
18363 _ACEOF
18364
18365         ;;
18366       xcubic)
18367
18368 cat >>confdefs.h <<\_ACEOF
18369 #define DEFAULT_RESAMPLATION resample_cspline
18370 _ACEOF
18371
18372         ;;
18373       xlagrange)
18374
18375 cat >>confdefs.h <<\_ACEOF
18376 #define DEFAULT_RESAMPLATION resample_lagrange
18377 _ACEOF
18378
18379         ;;
18380       xnewton)
18381
18382 cat >>confdefs.h <<\_ACEOF
18383 #define DEFAULT_RESAMPLATION resample_newton
18384 _ACEOF
18385
18386         ;;
18387       xgauss)
18388
18389 cat >>confdefs.h <<\_ACEOF
18390 #define DEFAULT_RESAMPLATION resample_gauss
18391 _ACEOF
18392
18393         ;;
18394       xno)
18395
18396 cat >>confdefs.h <<\_ACEOF
18397 #define DEFAULT_RESAMPLATION resample_none
18398 _ACEOF
18399
18400         ;;
18401       *)
18402         { { echo "$as_me:$LINENO: error: Invalid method of --enable-spline" >&5
18403 echo "$as_me: error: Invalid method of --enable-spline" >&2;}
18404    { (exit 1); exit 1; }; }
18405         ;;
18406     esac
18407 fi;
18408
18409 # Check whether --enable-wrd or --disable-wrd was given.
18410 if test "${enable_wrd+set}" = set; then
18411   enableval="$enable_wrd"
18412    if test "$enableval" = "yes"; then
18413       if test "x$with_x" != xyes; then
18414         { { echo "$as_me:$LINENO: error: wrd: --with-x option must be specified" >&5
18415 echo "$as_me: error: wrd: --with-x option must be specified" >&2;}
18416    { (exit 1); exit 1; }; }
18417       fi
18418
18419 cat >>confdefs.h <<\_ACEOF
18420 #define WRDT_X 1
18421 _ACEOF
18422
18423       enable_sherry_wrd=yes
18424       echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
18425 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
18426 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
18427   echo $ECHO_N "(cached) $ECHO_C" >&6
18428 else
18429   ac_check_lib_save_LIBS=$LIBS
18430 LIBS="-lz  $LIBS"
18431 cat >conftest.$ac_ext <<_ACEOF
18432 /* confdefs.h.  */
18433 _ACEOF
18434 cat confdefs.h >>conftest.$ac_ext
18435 cat >>conftest.$ac_ext <<_ACEOF
18436 /* end confdefs.h.  */
18437
18438 /* Override any gcc2 internal prototype to avoid an error.  */
18439 #ifdef __cplusplus
18440 extern "C"
18441 #endif
18442 /* We use char because int might match the return type of a gcc2
18443    builtin and then its argument prototype would still apply.  */
18444 char zlibVersion ();
18445 int
18446 main ()
18447 {
18448 zlibVersion ();
18449   ;
18450   return 0;
18451 }
18452 _ACEOF
18453 rm -f conftest.$ac_objext conftest$ac_exeext
18454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18455   (eval $ac_link) 2>conftest.er1
18456   ac_status=$?
18457   grep -v '^ *+' conftest.er1 >conftest.err
18458   rm -f conftest.er1
18459   cat conftest.err >&5
18460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461   (exit $ac_status); } &&
18462          { ac_try='test -z "$ac_c_werror_flag"
18463                          || test ! -s conftest.err'
18464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18465   (eval $ac_try) 2>&5
18466   ac_status=$?
18467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468   (exit $ac_status); }; } &&
18469          { ac_try='test -s conftest$ac_exeext'
18470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18471   (eval $ac_try) 2>&5
18472   ac_status=$?
18473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474   (exit $ac_status); }; }; then
18475   ac_cv_lib_z_zlibVersion=yes
18476 else
18477   echo "$as_me: failed program was:" >&5
18478 sed 's/^/| /' conftest.$ac_ext >&5
18479
18480 ac_cv_lib_z_zlibVersion=no
18481 fi
18482 rm -f conftest.err conftest.$ac_objext \
18483       conftest$ac_exeext conftest.$ac_ext
18484 LIBS=$ac_check_lib_save_LIBS
18485 fi
18486 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
18487 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
18488 if test $ac_cv_lib_z_zlibVersion = yes; then
18489   :
18490 else
18491   enable_sherry_wrd=no
18492 fi
18493
18494       if test "${ac_cv_header_png_h+set}" = set; then
18495   echo "$as_me:$LINENO: checking for png.h" >&5
18496 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18497 if test "${ac_cv_header_png_h+set}" = set; then
18498   echo $ECHO_N "(cached) $ECHO_C" >&6
18499 fi
18500 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18501 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18502 else
18503   # Is the header compilable?
18504 echo "$as_me:$LINENO: checking png.h usability" >&5
18505 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18506 cat >conftest.$ac_ext <<_ACEOF
18507 /* confdefs.h.  */
18508 _ACEOF
18509 cat confdefs.h >>conftest.$ac_ext
18510 cat >>conftest.$ac_ext <<_ACEOF
18511 /* end confdefs.h.  */
18512 $ac_includes_default
18513 #include <png.h>
18514 _ACEOF
18515 rm -f conftest.$ac_objext
18516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18517   (eval $ac_compile) 2>conftest.er1
18518   ac_status=$?
18519   grep -v '^ *+' conftest.er1 >conftest.err
18520   rm -f conftest.er1
18521   cat conftest.err >&5
18522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523   (exit $ac_status); } &&
18524          { ac_try='test -z "$ac_c_werror_flag"
18525                          || test ! -s conftest.err'
18526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18527   (eval $ac_try) 2>&5
18528   ac_status=$?
18529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530   (exit $ac_status); }; } &&
18531          { ac_try='test -s conftest.$ac_objext'
18532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18533   (eval $ac_try) 2>&5
18534   ac_status=$?
18535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536   (exit $ac_status); }; }; then
18537   ac_header_compiler=yes
18538 else
18539   echo "$as_me: failed program was:" >&5
18540 sed 's/^/| /' conftest.$ac_ext >&5
18541
18542 ac_header_compiler=no
18543 fi
18544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18545 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18546 echo "${ECHO_T}$ac_header_compiler" >&6
18547
18548 # Is the header present?
18549 echo "$as_me:$LINENO: checking png.h presence" >&5
18550 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
18551 cat >conftest.$ac_ext <<_ACEOF
18552 /* confdefs.h.  */
18553 _ACEOF
18554 cat confdefs.h >>conftest.$ac_ext
18555 cat >>conftest.$ac_ext <<_ACEOF
18556 /* end confdefs.h.  */
18557 #include <png.h>
18558 _ACEOF
18559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18560   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18561   ac_status=$?
18562   grep -v '^ *+' conftest.er1 >conftest.err
18563   rm -f conftest.er1
18564   cat conftest.err >&5
18565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566   (exit $ac_status); } >/dev/null; then
18567   if test -s conftest.err; then
18568     ac_cpp_err=$ac_c_preproc_warn_flag
18569     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18570   else
18571     ac_cpp_err=
18572   fi
18573 else
18574   ac_cpp_err=yes
18575 fi
18576 if test -z "$ac_cpp_err"; then
18577   ac_header_preproc=yes
18578 else
18579   echo "$as_me: failed program was:" >&5
18580 sed 's/^/| /' conftest.$ac_ext >&5
18581
18582   ac_header_preproc=no
18583 fi
18584 rm -f conftest.err conftest.$ac_ext
18585 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18586 echo "${ECHO_T}$ac_header_preproc" >&6
18587
18588 # So?  What about this header?
18589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18590   yes:no: )
18591     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
18592 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18593     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
18594 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
18595     ac_header_preproc=yes
18596     ;;
18597   no:yes:* )
18598     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
18599 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
18600     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
18601 echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
18602     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
18603 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
18604     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
18605 echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
18606     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18607 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18608     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
18609 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
18610     (
18611       cat <<\_ASBOX
18612 ## ------------------------------- ##
18613 ## Report this to root@mput.dip.jp ##
18614 ## ------------------------------- ##
18615 _ASBOX
18616     ) |
18617       sed "s/^/$as_me: WARNING:     /" >&2
18618     ;;
18619 esac
18620 echo "$as_me:$LINENO: checking for png.h" >&5
18621 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18622 if test "${ac_cv_header_png_h+set}" = set; then
18623   echo $ECHO_N "(cached) $ECHO_C" >&6
18624 else
18625   ac_cv_header_png_h=$ac_header_preproc
18626 fi
18627 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18628 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18629
18630 fi
18631 if test $ac_cv_header_png_h = yes; then
18632   :
18633 else
18634   enable_sherry_wrd=no
18635 fi
18636
18637
18638       echo "$as_me:$LINENO: checking for png_init_io in -lpng" >&5
18639 echo $ECHO_N "checking for png_init_io in -lpng... $ECHO_C" >&6
18640 if test "${ac_cv_lib_png_png_init_io+set}" = set; then
18641   echo $ECHO_N "(cached) $ECHO_C" >&6
18642 else
18643   ac_check_lib_save_LIBS=$LIBS
18644 LIBS="-lpng -lz $LIBS"
18645 cat >conftest.$ac_ext <<_ACEOF
18646 /* confdefs.h.  */
18647 _ACEOF
18648 cat confdefs.h >>conftest.$ac_ext
18649 cat >>conftest.$ac_ext <<_ACEOF
18650 /* end confdefs.h.  */
18651
18652 /* Override any gcc2 internal prototype to avoid an error.  */
18653 #ifdef __cplusplus
18654 extern "C"
18655 #endif
18656 /* We use char because int might match the return type of a gcc2
18657    builtin and then its argument prototype would still apply.  */
18658 char png_init_io ();
18659 int
18660 main ()
18661 {
18662 png_init_io ();
18663   ;
18664   return 0;
18665 }
18666 _ACEOF
18667 rm -f conftest.$ac_objext conftest$ac_exeext
18668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18669   (eval $ac_link) 2>conftest.er1
18670   ac_status=$?
18671   grep -v '^ *+' conftest.er1 >conftest.err
18672   rm -f conftest.er1
18673   cat conftest.err >&5
18674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675   (exit $ac_status); } &&
18676          { ac_try='test -z "$ac_c_werror_flag"
18677                          || test ! -s conftest.err'
18678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18679   (eval $ac_try) 2>&5
18680   ac_status=$?
18681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682   (exit $ac_status); }; } &&
18683          { ac_try='test -s conftest$ac_exeext'
18684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18685   (eval $ac_try) 2>&5
18686   ac_status=$?
18687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688   (exit $ac_status); }; }; then
18689   ac_cv_lib_png_png_init_io=yes
18690 else
18691   echo "$as_me: failed program was:" >&5
18692 sed 's/^/| /' conftest.$ac_ext >&5
18693
18694 ac_cv_lib_png_png_init_io=no
18695 fi
18696 rm -f conftest.err conftest.$ac_objext \
18697       conftest$ac_exeext conftest.$ac_ext
18698 LIBS=$ac_check_lib_save_LIBS
18699 fi
18700 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_init_io" >&5
18701 echo "${ECHO_T}$ac_cv_lib_png_png_init_io" >&6
18702 if test $ac_cv_lib_png_png_init_io = yes; then
18703   :
18704 else
18705   enable_sherry_wrd=no
18706 fi
18707
18708       if test "$enable_sherry_wrd" = yes; then
18709
18710 cat >>confdefs.h <<\_ACEOF
18711 #define ENABLE_SHERRY 1
18712 _ACEOF
18713
18714         lib_zip_opt=-lz
18715         lib_png_opt=-lpng
18716       else
18717          { echo "$as_me:$LINENO: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&5
18718 echo "$as_me: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&2;}
18719       fi
18720       if test "x$have_xext" = xyes; then
18721         lib_xext_opt=-lXext
18722       fi
18723     fi
18724 fi;
18725
18726
18727
18728 #
18729 # Finish up
18730 #
18731
18732
18733
18734 if test "x$enable_wrd" = "xyes"; then
18735   ENABLE_WRD_TRUE=
18736   ENABLE_WRD_FALSE='#'
18737 else
18738   ENABLE_WRD_TRUE='#'
18739   ENABLE_WRD_FALSE=
18740 fi
18741
18742
18743
18744
18745 if test "x$CYGNUS" = xyes; then
18746   CYGNUS_TRUE=
18747   CYGNUS_FALSE='#'
18748 else
18749   CYGNUS_TRUE='#'
18750   CYGNUS_FALSE=
18751 fi
18752
18753
18754
18755 if test "x$MINGW" = xyes; then
18756   MINGW_TRUE=
18757   MINGW_FALSE='#'
18758 else
18759   MINGW_TRUE='#'
18760   MINGW_FALSE=
18761 fi
18762
18763
18764
18765 if test "x$W32READDIR" = "xyes"; then
18766   W32READDIR_TRUE=
18767   W32READDIR_FALSE='#'
18768 else
18769   W32READDIR_TRUE='#'
18770   W32READDIR_FALSE=
18771 fi
18772
18773
18774 rm -f wordtmp >/dev/null 2>&1
18775 val=''
18776 for f in $LDFLAGS; do
18777   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
18778   :
18779 else
18780   echo $f >>wordtmp; val="$val $f"
18781 fi
18782
18783 done
18784 LDFLAGS="$val"
18785 rm -f wordtmp >/dev/null 2>&1
18786
18787 rm -f wordtmp >/dev/null 2>&1
18788 val=''
18789 for f in $SHLDFLAGS; do
18790   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
18791   :
18792 else
18793   echo $f >>wordtmp; val="$val $f"
18794 fi
18795
18796 done
18797 SHLDFLAGS="$val"
18798 rm -f wordtmp >/dev/null 2>&1
18799
18800 rm -f wordtmp >/dev/null 2>&1
18801 val=''
18802 for f in $EXTRACFLAGS $CFLAGS; do
18803   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
18804   :
18805 else
18806   echo $f >>wordtmp; val="$val $f"
18807 fi
18808
18809 done
18810 CFLAGS="$val"
18811 rm -f wordtmp >/dev/null 2>&1
18812
18813 rm -f wordtmp >/dev/null 2>&1
18814 val=''
18815 for f in $CPPFLAGS $EXTRADEFS; do
18816   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
18817   :
18818 else
18819   echo $f >>wordtmp; val="$val $f"
18820 fi
18821
18822 done
18823 CPPFLAGS="$val"
18824 rm -f wordtmp >/dev/null 2>&1
18825
18826
18827 if test "x$oss_device" != x; then
18828
18829 cat >>confdefs.h <<_ACEOF
18830 #define OSS_DEVICE "$oss_device"
18831 _ACEOF
18832
18833 fi
18834
18835 if test "x$TIMIDITY_OUTPUT_ID" != x; then
18836
18837 cat >>confdefs.h <<_ACEOF
18838 #define TIMIDITY_OUTPUT_ID "$TIMIDITY_OUTPUT_ID"
18839 _ACEOF
18840
18841 fi
18842
18843 if test "x$with_x" = xyes; then
18844     LIBS=`echo $LIBS | sed "s/-lX11/$lib_offix_opt $lib_xm_opt $lib_xaw_opt $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11/"`
18845 fi
18846 LIBS="$LIBS $lib_dl_opt $lib_png_opt $lib_zip_opt $lib_user32_opt $lib_w32gui_opt $EXTRALIBS"
18847 SHLD="$SHLD $SHLDFLAGS"
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867                                                                                                                                                                                     ac_config_files="$ac_config_files Makefile autoconf/Makefile common.makefile configs/Makefile doc/Makefile doc/C/Makefile doc/ja_JP.eucJP/Makefile interface/Makefile interface/motif_bitmaps/Makefile interface/bitmaps/Makefile interface/pixmaps/Makefile libarc/Makefile libunimod/Makefile timidity/Makefile utils/Makefile script/Makefile TiMidity.ad TiMidity-uj.ad"
18868
18869 cat >confcache <<\_ACEOF
18870 # This file is a shell script that caches the results of configure
18871 # tests run on this system so they can be shared between configure
18872 # scripts and configure runs, see configure's option --config-cache.
18873 # It is not useful on other systems.  If it contains results you don't
18874 # want to keep, you may remove or edit it.
18875 #
18876 # config.status only pays attention to the cache file if you give it
18877 # the --recheck option to rerun configure.
18878 #
18879 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18880 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18881 # following values.
18882
18883 _ACEOF
18884
18885 # The following way of writing the cache mishandles newlines in values,
18886 # but we know of no workaround that is simple, portable, and efficient.
18887 # So, don't put newlines in cache variables' values.
18888 # Ultrix sh set writes to stderr and can't be redirected directly,
18889 # and sets the high bit in the cache file unless we assign to the vars.
18890 {
18891   (set) 2>&1 |
18892     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18893     *ac_space=\ *)
18894       # `set' does not quote correctly, so add quotes (double-quote
18895       # substitution turns \\\\ into \\, and sed turns \\ into \).
18896       sed -n \
18897         "s/'/'\\\\''/g;
18898           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18899       ;;
18900     *)
18901       # `set' quotes correctly as required by POSIX, so do not add quotes.
18902       sed -n \
18903         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18904       ;;
18905     esac;
18906 } |
18907   sed '
18908      t clear
18909      : clear
18910      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18911      t end
18912      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18913      : end' >>confcache
18914 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18915   if test -w $cache_file; then
18916     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18917     cat confcache >$cache_file
18918   else
18919     echo "not updating unwritable cache $cache_file"
18920   fi
18921 fi
18922 rm -f confcache
18923
18924 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18925 # Let make expand exec_prefix.
18926 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18927
18928 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18929 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18930 # trailing colons and then remove the whole line if VPATH becomes empty
18931 # (actually we leave an empty line to preserve line numbers).
18932 if test "x$srcdir" = x.; then
18933   ac_vpsub='/^[  ]*VPATH[        ]*=/{
18934 s/:*\$(srcdir):*/:/;
18935 s/:*\${srcdir}:*/:/;
18936 s/:*@srcdir@:*/:/;
18937 s/^\([^=]*=[     ]*\):*/\1/;
18938 s/:*$//;
18939 s/^[^=]*=[       ]*$//;
18940 }'
18941 fi
18942
18943 DEFS=-DHAVE_CONFIG_H
18944
18945 ac_libobjs=
18946 ac_ltlibobjs=
18947 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18948   # 1. Remove the extension, and $U if already installed.
18949   ac_i=`echo "$ac_i" |
18950          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18951   # 2. Add them.
18952   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18953   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18954 done
18955 LIBOBJS=$ac_libobjs
18956
18957 LTLIBOBJS=$ac_ltlibobjs
18958
18959
18960 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18961   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
18962 Usually this means the macro was only invoked conditionally." >&5
18963 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
18964 Usually this means the macro was only invoked conditionally." >&2;}
18965    { (exit 1); exit 1; }; }
18966 fi
18967 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18968   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18969 Usually this means the macro was only invoked conditionally." >&5
18970 echo "$as_me: error: conditional \"AMDEP\" was never defined.
18971 Usually this means the macro was only invoked conditionally." >&2;}
18972    { (exit 1); exit 1; }; }
18973 fi
18974 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18975   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18976 Usually this means the macro was only invoked conditionally." >&5
18977 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18978 Usually this means the macro was only invoked conditionally." >&2;}
18979    { (exit 1); exit 1; }; }
18980 fi
18981 if test -z "${NEEDGETOPT_TRUE}" && test -z "${NEEDGETOPT_FALSE}"; then
18982   { { echo "$as_me:$LINENO: error: conditional \"NEEDGETOPT\" was never defined.
18983 Usually this means the macro was only invoked conditionally." >&5
18984 echo "$as_me: error: conditional \"NEEDGETOPT\" was never defined.
18985 Usually this means the macro was only invoked conditionally." >&2;}
18986    { (exit 1); exit 1; }; }
18987 fi
18988 if test -z "${NEEDDLOPEN_TRUE}" && test -z "${NEEDDLOPEN_FALSE}"; then
18989   { { echo "$as_me:$LINENO: error: conditional \"NEEDDLOPEN\" was never defined.
18990 Usually this means the macro was only invoked conditionally." >&5
18991 echo "$as_me: error: conditional \"NEEDDLOPEN\" was never defined.
18992 Usually this means the macro was only invoked conditionally." >&2;}
18993    { (exit 1); exit 1; }; }
18994 fi
18995 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
18996   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
18997 Usually this means the macro was only invoked conditionally." >&5
18998 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
18999 Usually this means the macro was only invoked conditionally." >&2;}
19000    { (exit 1); exit 1; }; }
19001 fi
19002 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
19003   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
19004 Usually this means the macro was only invoked conditionally." >&5
19005 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
19006 Usually this means the macro was only invoked conditionally." >&2;}
19007    { (exit 1); exit 1; }; }
19008 fi
19009 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
19010   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
19011 Usually this means the macro was only invoked conditionally." >&5
19012 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
19013 Usually this means the macro was only invoked conditionally." >&2;}
19014    { (exit 1); exit 1; }; }
19015 fi
19016 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
19017   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
19018 Usually this means the macro was only invoked conditionally." >&5
19019 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
19020 Usually this means the macro was only invoked conditionally." >&2;}
19021    { (exit 1); exit 1; }; }
19022 fi
19023 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
19024   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
19025 Usually this means the macro was only invoked conditionally." >&5
19026 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
19027 Usually this means the macro was only invoked conditionally." >&2;}
19028    { (exit 1); exit 1; }; }
19029 fi
19030 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
19031   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
19032 Usually this means the macro was only invoked conditionally." >&5
19033 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
19034 Usually this means the macro was only invoked conditionally." >&2;}
19035    { (exit 1); exit 1; }; }
19036 fi
19037 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
19038   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
19039 Usually this means the macro was only invoked conditionally." >&5
19040 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
19041 Usually this means the macro was only invoked conditionally." >&2;}
19042    { (exit 1); exit 1; }; }
19043 fi
19044 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
19045   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
19046 Usually this means the macro was only invoked conditionally." >&5
19047 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
19048 Usually this means the macro was only invoked conditionally." >&2;}
19049    { (exit 1); exit 1; }; }
19050 fi
19051 if test -z "${ENABLE_DYNAMIC_TCLTK_TRUE}" && test -z "${ENABLE_DYNAMIC_TCLTK_FALSE}"; then
19052   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
19053 Usually this means the macro was only invoked conditionally." >&5
19054 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
19055 Usually this means the macro was only invoked conditionally." >&2;}
19056    { (exit 1); exit 1; }; }
19057 fi
19058 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
19059   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
19060 Usually this means the macro was only invoked conditionally." >&5
19061 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
19062 Usually this means the macro was only invoked conditionally." >&2;}
19063    { (exit 1); exit 1; }; }
19064 fi
19065 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
19066   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
19067 Usually this means the macro was only invoked conditionally." >&5
19068 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
19069 Usually this means the macro was only invoked conditionally." >&2;}
19070    { (exit 1); exit 1; }; }
19071 fi
19072 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
19073   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
19074 Usually this means the macro was only invoked conditionally." >&5
19075 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
19076 Usually this means the macro was only invoked conditionally." >&2;}
19077    { (exit 1); exit 1; }; }
19078 fi
19079 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
19080   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
19081 Usually this means the macro was only invoked conditionally." >&5
19082 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
19083 Usually this means the macro was only invoked conditionally." >&2;}
19084    { (exit 1); exit 1; }; }
19085 fi
19086 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
19087   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
19088 Usually this means the macro was only invoked conditionally." >&5
19089 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
19090 Usually this means the macro was only invoked conditionally." >&2;}
19091    { (exit 1); exit 1; }; }
19092 fi
19093 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
19094   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
19095 Usually this means the macro was only invoked conditionally." >&5
19096 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
19097 Usually this means the macro was only invoked conditionally." >&2;}
19098    { (exit 1); exit 1; }; }
19099 fi
19100 if test -z "${ENABLE_DYNAMIC_XAW_TRUE}" && test -z "${ENABLE_DYNAMIC_XAW_FALSE}"; then
19101   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
19102 Usually this means the macro was only invoked conditionally." >&5
19103 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
19104 Usually this means the macro was only invoked conditionally." >&2;}
19105    { (exit 1); exit 1; }; }
19106 fi
19107 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
19108   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
19109 Usually this means the macro was only invoked conditionally." >&5
19110 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
19111 Usually this means the macro was only invoked conditionally." >&2;}
19112    { (exit 1); exit 1; }; }
19113 fi
19114 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
19115   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
19116 Usually this means the macro was only invoked conditionally." >&5
19117 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
19118 Usually this means the macro was only invoked conditionally." >&2;}
19119    { (exit 1); exit 1; }; }
19120 fi
19121 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
19122   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
19123 Usually this means the macro was only invoked conditionally." >&5
19124 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
19125 Usually this means the macro was only invoked conditionally." >&2;}
19126    { (exit 1); exit 1; }; }
19127 fi
19128 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
19129   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
19130 Usually this means the macro was only invoked conditionally." >&5
19131 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
19132 Usually this means the macro was only invoked conditionally." >&2;}
19133    { (exit 1); exit 1; }; }
19134 fi
19135 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
19136   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
19137 Usually this means the macro was only invoked conditionally." >&5
19138 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
19139 Usually this means the macro was only invoked conditionally." >&2;}
19140    { (exit 1); exit 1; }; }
19141 fi
19142 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
19143   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
19144 Usually this means the macro was only invoked conditionally." >&5
19145 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
19146 Usually this means the macro was only invoked conditionally." >&2;}
19147    { (exit 1); exit 1; }; }
19148 fi
19149 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
19150   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19151 Usually this means the macro was only invoked conditionally." >&5
19152 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19153 Usually this means the macro was only invoked conditionally." >&2;}
19154    { (exit 1); exit 1; }; }
19155 fi
19156 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
19157   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19158 Usually this means the macro was only invoked conditionally." >&5
19159 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19160 Usually this means the macro was only invoked conditionally." >&2;}
19161    { (exit 1); exit 1; }; }
19162 fi
19163 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
19164   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
19165 Usually this means the macro was only invoked conditionally." >&5
19166 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
19167 Usually this means the macro was only invoked conditionally." >&2;}
19168    { (exit 1); exit 1; }; }
19169 fi
19170 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
19171   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
19172 Usually this means the macro was only invoked conditionally." >&5
19173 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
19174 Usually this means the macro was only invoked conditionally." >&2;}
19175    { (exit 1); exit 1; }; }
19176 fi
19177 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
19178   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19179 Usually this means the macro was only invoked conditionally." >&5
19180 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19181 Usually this means the macro was only invoked conditionally." >&2;}
19182    { (exit 1); exit 1; }; }
19183 fi
19184 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
19185   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19186 Usually this means the macro was only invoked conditionally." >&5
19187 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19188 Usually this means the macro was only invoked conditionally." >&2;}
19189    { (exit 1); exit 1; }; }
19190 fi
19191 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
19192   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19193 Usually this means the macro was only invoked conditionally." >&5
19194 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19195 Usually this means the macro was only invoked conditionally." >&2;}
19196    { (exit 1); exit 1; }; }
19197 fi
19198 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
19199   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19200 Usually this means the macro was only invoked conditionally." >&5
19201 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19202 Usually this means the macro was only invoked conditionally." >&2;}
19203    { (exit 1); exit 1; }; }
19204 fi
19205 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
19206   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
19207 Usually this means the macro was only invoked conditionally." >&5
19208 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
19209 Usually this means the macro was only invoked conditionally." >&2;}
19210    { (exit 1); exit 1; }; }
19211 fi
19212 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
19213   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
19214 Usually this means the macro was only invoked conditionally." >&5
19215 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
19216 Usually this means the macro was only invoked conditionally." >&2;}
19217    { (exit 1); exit 1; }; }
19218 fi
19219 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
19220   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
19221 Usually this means the macro was only invoked conditionally." >&5
19222 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
19223 Usually this means the macro was only invoked conditionally." >&2;}
19224    { (exit 1); exit 1; }; }
19225 fi
19226 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
19227   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
19228 Usually this means the macro was only invoked conditionally." >&5
19229 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
19230 Usually this means the macro was only invoked conditionally." >&2;}
19231    { (exit 1); exit 1; }; }
19232 fi
19233 if test -z "${ENABLE_NETWORK_TRUE}" && test -z "${ENABLE_NETWORK_FALSE}"; then
19234   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NETWORK\" was never defined.
19235 Usually this means the macro was only invoked conditionally." >&5
19236 echo "$as_me: error: conditional \"ENABLE_NETWORK\" was never defined.
19237 Usually this means the macro was only invoked conditionally." >&2;}
19238    { (exit 1); exit 1; }; }
19239 fi
19240 if test -z "${ENABLE_SOUND_SPEC_TRUE}" && test -z "${ENABLE_SOUND_SPEC_FALSE}"; then
19241   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
19242 Usually this means the macro was only invoked conditionally." >&5
19243 echo "$as_me: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
19244 Usually this means the macro was only invoked conditionally." >&2;}
19245    { (exit 1); exit 1; }; }
19246 fi
19247 if test -z "${ENABLE_WRD_TRUE}" && test -z "${ENABLE_WRD_FALSE}"; then
19248   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WRD\" was never defined.
19249 Usually this means the macro was only invoked conditionally." >&5
19250 echo "$as_me: error: conditional \"ENABLE_WRD\" was never defined.
19251 Usually this means the macro was only invoked conditionally." >&2;}
19252    { (exit 1); exit 1; }; }
19253 fi
19254 if test -z "${CYGNUS_TRUE}" && test -z "${CYGNUS_FALSE}"; then
19255   { { echo "$as_me:$LINENO: error: conditional \"CYGNUS\" was never defined.
19256 Usually this means the macro was only invoked conditionally." >&5
19257 echo "$as_me: error: conditional \"CYGNUS\" was never defined.
19258 Usually this means the macro was only invoked conditionally." >&2;}
19259    { (exit 1); exit 1; }; }
19260 fi
19261 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
19262   { { echo "$as_me:$LINENO: error: conditional \"MINGW\" was never defined.
19263 Usually this means the macro was only invoked conditionally." >&5
19264 echo "$as_me: error: conditional \"MINGW\" was never defined.
19265 Usually this means the macro was only invoked conditionally." >&2;}
19266    { (exit 1); exit 1; }; }
19267 fi
19268 if test -z "${W32READDIR_TRUE}" && test -z "${W32READDIR_FALSE}"; then
19269   { { echo "$as_me:$LINENO: error: conditional \"W32READDIR\" was never defined.
19270 Usually this means the macro was only invoked conditionally." >&5
19271 echo "$as_me: error: conditional \"W32READDIR\" was never defined.
19272 Usually this means the macro was only invoked conditionally." >&2;}
19273    { (exit 1); exit 1; }; }
19274 fi
19275
19276 : ${CONFIG_STATUS=./config.status}
19277 ac_clean_files_save=$ac_clean_files
19278 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19279 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19280 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19281 cat >$CONFIG_STATUS <<_ACEOF
19282 #! $SHELL
19283 # Generated by $as_me.
19284 # Run this file to recreate the current configuration.
19285 # Compiler output produced by configure, useful for debugging
19286 # configure, is in config.log if it exists.
19287
19288 debug=false
19289 ac_cs_recheck=false
19290 ac_cs_silent=false
19291 SHELL=\${CONFIG_SHELL-$SHELL}
19292 _ACEOF
19293
19294 cat >>$CONFIG_STATUS <<\_ACEOF
19295 ## --------------------- ##
19296 ## M4sh Initialization.  ##
19297 ## --------------------- ##
19298
19299 # Be Bourne compatible
19300 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19301   emulate sh
19302   NULLCMD=:
19303   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19304   # is contrary to our usage.  Disable this feature.
19305   alias -g '${1+"$@"}'='"$@"'
19306 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19307   set -o posix
19308 fi
19309 DUALCASE=1; export DUALCASE # for MKS sh
19310
19311 # Support unset when possible.
19312 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19313   as_unset=unset
19314 else
19315   as_unset=false
19316 fi
19317
19318
19319 # Work around bugs in pre-3.0 UWIN ksh.
19320 $as_unset ENV MAIL MAILPATH
19321 PS1='$ '
19322 PS2='> '
19323 PS4='+ '
19324
19325 # NLS nuisances.
19326 for as_var in \
19327   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19328   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19329   LC_TELEPHONE LC_TIME
19330 do
19331   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19332     eval $as_var=C; export $as_var
19333   else
19334     $as_unset $as_var
19335   fi
19336 done
19337
19338 # Required to use basename.
19339 if expr a : '\(a\)' >/dev/null 2>&1; then
19340   as_expr=expr
19341 else
19342   as_expr=false
19343 fi
19344
19345 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19346   as_basename=basename
19347 else
19348   as_basename=false
19349 fi
19350
19351
19352 # Name of the executable.
19353 as_me=`$as_basename "$0" ||
19354 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19355          X"$0" : 'X\(//\)$' \| \
19356          X"$0" : 'X\(/\)$' \| \
19357          .     : '\(.\)' 2>/dev/null ||
19358 echo X/"$0" |
19359     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19360           /^X\/\(\/\/\)$/{ s//\1/; q; }
19361           /^X\/\(\/\).*/{ s//\1/; q; }
19362           s/.*/./; q'`
19363
19364
19365 # PATH needs CR, and LINENO needs CR and PATH.
19366 # Avoid depending upon Character Ranges.
19367 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19368 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19369 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19370 as_cr_digits='0123456789'
19371 as_cr_alnum=$as_cr_Letters$as_cr_digits
19372
19373 # The user is always right.
19374 if test "${PATH_SEPARATOR+set}" != set; then
19375   echo "#! /bin/sh" >conf$$.sh
19376   echo  "exit 0"   >>conf$$.sh
19377   chmod +x conf$$.sh
19378   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19379     PATH_SEPARATOR=';'
19380   else
19381     PATH_SEPARATOR=:
19382   fi
19383   rm -f conf$$.sh
19384 fi
19385
19386
19387   as_lineno_1=$LINENO
19388   as_lineno_2=$LINENO
19389   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19390   test "x$as_lineno_1" != "x$as_lineno_2" &&
19391   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19392   # Find who we are.  Look in the path if we contain no path at all
19393   # relative or not.
19394   case $0 in
19395     *[\\/]* ) as_myself=$0 ;;
19396     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19397 for as_dir in $PATH
19398 do
19399   IFS=$as_save_IFS
19400   test -z "$as_dir" && as_dir=.
19401   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19402 done
19403
19404        ;;
19405   esac
19406   # We did not find ourselves, most probably we were run as `sh COMMAND'
19407   # in which case we are not to be found in the path.
19408   if test "x$as_myself" = x; then
19409     as_myself=$0
19410   fi
19411   if test ! -f "$as_myself"; then
19412     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19413 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19414    { (exit 1); exit 1; }; }
19415   fi
19416   case $CONFIG_SHELL in
19417   '')
19418     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19419 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19420 do
19421   IFS=$as_save_IFS
19422   test -z "$as_dir" && as_dir=.
19423   for as_base in sh bash ksh sh5; do
19424          case $as_dir in
19425          /*)
19426            if ("$as_dir/$as_base" -c '
19427   as_lineno_1=$LINENO
19428   as_lineno_2=$LINENO
19429   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19430   test "x$as_lineno_1" != "x$as_lineno_2" &&
19431   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19432              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19433              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19434              CONFIG_SHELL=$as_dir/$as_base
19435              export CONFIG_SHELL
19436              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19437            fi;;
19438          esac
19439        done
19440 done
19441 ;;
19442   esac
19443
19444   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19445   # uniformly replaced by the line number.  The first 'sed' inserts a
19446   # line-number line before each line; the second 'sed' does the real
19447   # work.  The second script uses 'N' to pair each line-number line
19448   # with the numbered line, and appends trailing '-' during
19449   # substitution so that $LINENO is not a special case at line end.
19450   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19451   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19452   sed '=' <$as_myself |
19453     sed '
19454       N
19455       s,$,-,
19456       : loop
19457       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19458       t loop
19459       s,-$,,
19460       s,^['$as_cr_digits']*\n,,
19461     ' >$as_me.lineno &&
19462   chmod +x $as_me.lineno ||
19463     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19464 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19465    { (exit 1); exit 1; }; }
19466
19467   # Don't try to exec as it changes $[0], causing all sort of problems
19468   # (the dirname of $[0] is not the place where we might find the
19469   # original and so on.  Autoconf is especially sensible to this).
19470   . ./$as_me.lineno
19471   # Exit status is that of the last command.
19472   exit
19473 }
19474
19475
19476 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19477   *c*,-n*) ECHO_N= ECHO_C='
19478 ' ECHO_T='      ' ;;
19479   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19480   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19481 esac
19482
19483 if expr a : '\(a\)' >/dev/null 2>&1; then
19484   as_expr=expr
19485 else
19486   as_expr=false
19487 fi
19488
19489 rm -f conf$$ conf$$.exe conf$$.file
19490 echo >conf$$.file
19491 if ln -s conf$$.file conf$$ 2>/dev/null; then
19492   # We could just check for DJGPP; but this test a) works b) is more generic
19493   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19494   if test -f conf$$.exe; then
19495     # Don't use ln at all; we don't have any links
19496     as_ln_s='cp -p'
19497   else
19498     as_ln_s='ln -s'
19499   fi
19500 elif ln conf$$.file conf$$ 2>/dev/null; then
19501   as_ln_s=ln
19502 else
19503   as_ln_s='cp -p'
19504 fi
19505 rm -f conf$$ conf$$.exe conf$$.file
19506
19507 if mkdir -p . 2>/dev/null; then
19508   as_mkdir_p=:
19509 else
19510   test -d ./-p && rmdir ./-p
19511   as_mkdir_p=false
19512 fi
19513
19514 as_executable_p="test -f"
19515
19516 # Sed expression to map a string onto a valid CPP name.
19517 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19518
19519 # Sed expression to map a string onto a valid variable name.
19520 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19521
19522
19523 # IFS
19524 # We need space, tab and new line, in precisely that order.
19525 as_nl='
19526 '
19527 IFS="   $as_nl"
19528
19529 # CDPATH.
19530 $as_unset CDPATH
19531
19532 exec 6>&1
19533
19534 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19535 # report actual input values of CONFIG_FILES etc. instead of their
19536 # values after options handling.  Logging --version etc. is OK.
19537 exec 5>>config.log
19538 {
19539   echo
19540   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19541 ## Running $as_me. ##
19542 _ASBOX
19543 } >&5
19544 cat >&5 <<_CSEOF
19545
19546 This file was extended by TiMidity++ $as_me current, which was
19547 generated by GNU Autoconf 2.59.  Invocation command line was
19548
19549   CONFIG_FILES    = $CONFIG_FILES
19550   CONFIG_HEADERS  = $CONFIG_HEADERS
19551   CONFIG_LINKS    = $CONFIG_LINKS
19552   CONFIG_COMMANDS = $CONFIG_COMMANDS
19553   $ $0 $@
19554
19555 _CSEOF
19556 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19557 echo >&5
19558 _ACEOF
19559
19560 # Files that config.status was made for.
19561 if test -n "$ac_config_files"; then
19562   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19563 fi
19564
19565 if test -n "$ac_config_headers"; then
19566   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19567 fi
19568
19569 if test -n "$ac_config_links"; then
19570   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19571 fi
19572
19573 if test -n "$ac_config_commands"; then
19574   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19575 fi
19576
19577 cat >>$CONFIG_STATUS <<\_ACEOF
19578
19579 ac_cs_usage="\
19580 \`$as_me' instantiates files from templates according to the
19581 current configuration.
19582
19583 Usage: $0 [OPTIONS] [FILE]...
19584
19585   -h, --help       print this help, then exit
19586   -V, --version    print version number, then exit
19587   -q, --quiet      do not print progress messages
19588   -d, --debug      don't remove temporary files
19589       --recheck    update $as_me by reconfiguring in the same conditions
19590   --file=FILE[:TEMPLATE]
19591                    instantiate the configuration file FILE
19592   --header=FILE[:TEMPLATE]
19593                    instantiate the configuration header FILE
19594
19595 Configuration files:
19596 $config_files
19597
19598 Configuration headers:
19599 $config_headers
19600
19601 Configuration commands:
19602 $config_commands
19603
19604 Report bugs to <bug-autoconf@gnu.org>."
19605 _ACEOF
19606
19607 cat >>$CONFIG_STATUS <<_ACEOF
19608 ac_cs_version="\\
19609 TiMidity++ config.status current
19610 configured by $0, generated by GNU Autoconf 2.59,
19611   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19612
19613 Copyright (C) 2003 Free Software Foundation, Inc.
19614 This config.status script is free software; the Free Software Foundation
19615 gives unlimited permission to copy, distribute and modify it."
19616 srcdir=$srcdir
19617 INSTALL="$INSTALL"
19618 _ACEOF
19619
19620 cat >>$CONFIG_STATUS <<\_ACEOF
19621 # If no file are specified by the user, then we need to provide default
19622 # value.  By we need to know if files were specified by the user.
19623 ac_need_defaults=:
19624 while test $# != 0
19625 do
19626   case $1 in
19627   --*=*)
19628     ac_option=`expr "x$1" : 'x\([^=]*\)='`
19629     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19630     ac_shift=:
19631     ;;
19632   -*)
19633     ac_option=$1
19634     ac_optarg=$2
19635     ac_shift=shift
19636     ;;
19637   *) # This is not an option, so the user has probably given explicit
19638      # arguments.
19639      ac_option=$1
19640      ac_need_defaults=false;;
19641   esac
19642
19643   case $ac_option in
19644   # Handling of the options.
19645 _ACEOF
19646 cat >>$CONFIG_STATUS <<\_ACEOF
19647   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19648     ac_cs_recheck=: ;;
19649   --version | --vers* | -V )
19650     echo "$ac_cs_version"; exit 0 ;;
19651   --he | --h)
19652     # Conflict between --help and --header
19653     { { echo "$as_me:$LINENO: error: ambiguous option: $1
19654 Try \`$0 --help' for more information." >&5
19655 echo "$as_me: error: ambiguous option: $1
19656 Try \`$0 --help' for more information." >&2;}
19657    { (exit 1); exit 1; }; };;
19658   --help | --hel | -h )
19659     echo "$ac_cs_usage"; exit 0 ;;
19660   --debug | --d* | -d )
19661     debug=: ;;
19662   --file | --fil | --fi | --f )
19663     $ac_shift
19664     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19665     ac_need_defaults=false;;
19666   --header | --heade | --head | --hea )
19667     $ac_shift
19668     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19669     ac_need_defaults=false;;
19670   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19671   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19672     ac_cs_silent=: ;;
19673
19674   # This is an error.
19675   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19676 Try \`$0 --help' for more information." >&5
19677 echo "$as_me: error: unrecognized option: $1
19678 Try \`$0 --help' for more information." >&2;}
19679    { (exit 1); exit 1; }; } ;;
19680
19681   *) ac_config_targets="$ac_config_targets $1" ;;
19682
19683   esac
19684   shift
19685 done
19686
19687 ac_configure_extra_args=
19688
19689 if $ac_cs_silent; then
19690   exec 6>/dev/null
19691   ac_configure_extra_args="$ac_configure_extra_args --silent"
19692 fi
19693
19694 _ACEOF
19695 cat >>$CONFIG_STATUS <<_ACEOF
19696 if \$ac_cs_recheck; then
19697   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19698   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19699 fi
19700
19701 _ACEOF
19702
19703 cat >>$CONFIG_STATUS <<_ACEOF
19704 #
19705 # INIT-COMMANDS section.
19706 #
19707
19708 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19709
19710 _ACEOF
19711
19712
19713
19714 cat >>$CONFIG_STATUS <<\_ACEOF
19715 for ac_config_target in $ac_config_targets
19716 do
19717   case "$ac_config_target" in
19718   # Handling of arguments.
19719   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19720   "autoconf/Makefile" ) CONFIG_FILES="$CONFIG_FILES autoconf/Makefile" ;;
19721   "common.makefile" ) CONFIG_FILES="$CONFIG_FILES common.makefile" ;;
19722   "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
19723   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19724   "doc/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
19725   "doc/ja_JP.eucJP/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/ja_JP.eucJP/Makefile" ;;
19726   "interface/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
19727   "interface/motif_bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/motif_bitmaps/Makefile" ;;
19728   "interface/bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/bitmaps/Makefile" ;;
19729   "interface/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/pixmaps/Makefile" ;;
19730   "libarc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libarc/Makefile" ;;
19731   "libunimod/Makefile" ) CONFIG_FILES="$CONFIG_FILES libunimod/Makefile" ;;
19732   "timidity/Makefile" ) CONFIG_FILES="$CONFIG_FILES timidity/Makefile" ;;
19733   "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
19734   "script/Makefile" ) CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
19735   "TiMidity.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity.ad" ;;
19736   "TiMidity-uj.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity-uj.ad" ;;
19737   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19738   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19739   "interface.h" ) CONFIG_HEADERS="$CONFIG_HEADERS interface.h" ;;
19740   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19741 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19742    { (exit 1); exit 1; }; };;
19743   esac
19744 done
19745
19746 # If the user did not use the arguments to specify the items to instantiate,
19747 # then the envvar interface is used.  Set only those that are not.
19748 # We use the long form for the default assignment because of an extremely
19749 # bizarre bug on SunOS 4.1.3.
19750 if $ac_need_defaults; then
19751   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19752   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19753   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19754 fi
19755
19756 # Have a temporary directory for convenience.  Make it in the build tree
19757 # simply because there is no reason to put it here, and in addition,
19758 # creating and moving files from /tmp can sometimes cause problems.
19759 # Create a temporary directory, and hook for its removal unless debugging.
19760 $debug ||
19761 {
19762   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19763   trap '{ (exit 1); exit 1; }' 1 2 13 15
19764 }
19765
19766 # Create a (secure) tmp directory for tmp files.
19767
19768 {
19769   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19770   test -n "$tmp" && test -d "$tmp"
19771 }  ||
19772 {
19773   tmp=./confstat$$-$RANDOM
19774   (umask 077 && mkdir $tmp)
19775 } ||
19776 {
19777    echo "$me: cannot create a temporary directory in ." >&2
19778    { (exit 1); exit 1; }
19779 }
19780
19781 _ACEOF
19782
19783 cat >>$CONFIG_STATUS <<_ACEOF
19784
19785 #
19786 # CONFIG_FILES section.
19787 #
19788
19789 # No need to generate the scripts if there are no CONFIG_FILES.
19790 # This happens for instance when ./config.status config.h
19791 if test -n "\$CONFIG_FILES"; then
19792   # Protect against being on the right side of a sed subst in config.status.
19793   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19794    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19795 s,@SHELL@,$SHELL,;t t
19796 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19797 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19798 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19799 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19800 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19801 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19802 s,@exec_prefix@,$exec_prefix,;t t
19803 s,@prefix@,$prefix,;t t
19804 s,@program_transform_name@,$program_transform_name,;t t
19805 s,@bindir@,$bindir,;t t
19806 s,@sbindir@,$sbindir,;t t
19807 s,@libexecdir@,$libexecdir,;t t
19808 s,@datadir@,$datadir,;t t
19809 s,@sysconfdir@,$sysconfdir,;t t
19810 s,@sharedstatedir@,$sharedstatedir,;t t
19811 s,@localstatedir@,$localstatedir,;t t
19812 s,@libdir@,$libdir,;t t
19813 s,@includedir@,$includedir,;t t
19814 s,@oldincludedir@,$oldincludedir,;t t
19815 s,@infodir@,$infodir,;t t
19816 s,@mandir@,$mandir,;t t
19817 s,@build_alias@,$build_alias,;t t
19818 s,@host_alias@,$host_alias,;t t
19819 s,@target_alias@,$target_alias,;t t
19820 s,@DEFS@,$DEFS,;t t
19821 s,@ECHO_C@,$ECHO_C,;t t
19822 s,@ECHO_N@,$ECHO_N,;t t
19823 s,@ECHO_T@,$ECHO_T,;t t
19824 s,@LIBS@,$LIBS,;t t
19825 s,@build@,$build,;t t
19826 s,@build_cpu@,$build_cpu,;t t
19827 s,@build_vendor@,$build_vendor,;t t
19828 s,@build_os@,$build_os,;t t
19829 s,@host@,$host,;t t
19830 s,@host_cpu@,$host_cpu,;t t
19831 s,@host_vendor@,$host_vendor,;t t
19832 s,@host_os@,$host_os,;t t
19833 s,@target@,$target,;t t
19834 s,@target_cpu@,$target_cpu,;t t
19835 s,@target_vendor@,$target_vendor,;t t
19836 s,@target_os@,$target_os,;t t
19837 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19838 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19839 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19840 s,@CYGPATH_W@,$CYGPATH_W,;t t
19841 s,@PACKAGE@,$PACKAGE,;t t
19842 s,@VERSION@,$VERSION,;t t
19843 s,@ACLOCAL@,$ACLOCAL,;t t
19844 s,@AUTOCONF@,$AUTOCONF,;t t
19845 s,@AUTOMAKE@,$AUTOMAKE,;t t
19846 s,@AUTOHEADER@,$AUTOHEADER,;t t
19847 s,@MAKEINFO@,$MAKEINFO,;t t
19848 s,@AMTAR@,$AMTAR,;t t
19849 s,@install_sh@,$install_sh,;t t
19850 s,@STRIP@,$STRIP,;t t
19851 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19852 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19853 s,@AWK@,$AWK,;t t
19854 s,@SET_MAKE@,$SET_MAKE,;t t
19855 s,@am__leading_dot@,$am__leading_dot,;t t
19856 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
19857 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
19858 s,@MAINT@,$MAINT,;t t
19859 s,@EMACS@,$EMACS,;t t
19860 s,@lispdir@,$lispdir,;t t
19861 s,@CC@,$CC,;t t
19862 s,@CFLAGS@,$CFLAGS,;t t
19863 s,@LDFLAGS@,$LDFLAGS,;t t
19864 s,@CPPFLAGS@,$CPPFLAGS,;t t
19865 s,@ac_ct_CC@,$ac_ct_CC,;t t
19866 s,@EXEEXT@,$EXEEXT,;t t
19867 s,@OBJEXT@,$OBJEXT,;t t
19868 s,@DEPDIR@,$DEPDIR,;t t
19869 s,@am__include@,$am__include,;t t
19870 s,@am__quote@,$am__quote,;t t
19871 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19872 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19873 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19874 s,@CCDEPMODE@,$CCDEPMODE,;t t
19875 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19876 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19877 s,@CPP@,$CPP,;t t
19878 s,@EGREP@,$EGREP,;t t
19879 s,@RANLIB@,$RANLIB,;t t
19880 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19881 s,@LN_S@,$LN_S,;t t
19882 s,@X_CFLAGS@,$X_CFLAGS,;t t
19883 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19884 s,@X_LIBS@,$X_LIBS,;t t
19885 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19886 s,@LIBOBJS@,$LIBOBJS,;t t
19887 s,@NEEDGETOPT_TRUE@,$NEEDGETOPT_TRUE,;t t
19888 s,@NEEDGETOPT_FALSE@,$NEEDGETOPT_FALSE,;t t
19889 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
19890 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
19891 s,@ARTS_CONFIG@,$ARTS_CONFIG,;t t
19892 s,@ARTS_CFLAGS@,$ARTS_CFLAGS,;t t
19893 s,@ARTS_LIBS@,$ARTS_LIBS,;t t
19894 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
19895 s,@ESD_CFLAGS@,$ESD_CFLAGS,;t t
19896 s,@ESD_LIBS@,$ESD_LIBS,;t t
19897 s,@AO_CFLAGS@,$AO_CFLAGS,;t t
19898 s,@AO_LIBS@,$AO_LIBS,;t t
19899 s,@VORBIS_CFLAGS@,$VORBIS_CFLAGS,;t t
19900 s,@VORBIS_LIBS@,$VORBIS_LIBS,;t t
19901 s,@VORBISFILE_LIBS@,$VORBISFILE_LIBS,;t t
19902 s,@VORBISENC_LIBS@,$VORBISENC_LIBS,;t t
19903 s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t
19904 s,@OGG_LIBS@,$OGG_LIBS,;t t
19905 s,@LIBFLAC_CFLAGS@,$LIBFLAC_CFLAGS,;t t
19906 s,@LIBFLAC_LIBS@,$LIBFLAC_LIBS,;t t
19907 s,@LIBOGGFLAC_CFLAGS@,$LIBOGGFLAC_CFLAGS,;t t
19908 s,@LIBOGGFLAC_LIBS@,$LIBOGGFLAC_LIBS,;t t
19909 s,@NEEDDLOPEN_TRUE@,$NEEDDLOPEN_TRUE,;t t
19910 s,@NEEDDLOPEN_FALSE@,$NEEDDLOPEN_FALSE,;t t
19911 s,@ENABLE_NCURSES_TRUE@,$ENABLE_NCURSES_TRUE,;t t
19912 s,@ENABLE_NCURSES_FALSE@,$ENABLE_NCURSES_FALSE,;t t
19913 s,@n_so_libs@,$n_so_libs,;t t
19914 s,@ENABLE_SLANG_TRUE@,$ENABLE_SLANG_TRUE,;t t
19915 s,@ENABLE_SLANG_FALSE@,$ENABLE_SLANG_FALSE,;t t
19916 s,@s_so_libs@,$s_so_libs,;t t
19917 s,@ENABLE_MOTIF_TRUE@,$ENABLE_MOTIF_TRUE,;t t
19918 s,@ENABLE_MOTIF_FALSE@,$ENABLE_MOTIF_FALSE,;t t
19919 s,@m_so_libs@,$m_so_libs,;t t
19920 s,@ENABLE_TCLTK_TRUE@,$ENABLE_TCLTK_TRUE,;t t
19921 s,@ENABLE_TCLTK_FALSE@,$ENABLE_TCLTK_FALSE,;t t
19922 s,@k_so_libs@,$k_so_libs,;t t
19923 s,@ENABLE_DYNAMIC_TCLTK_TRUE@,$ENABLE_DYNAMIC_TCLTK_TRUE,;t t
19924 s,@ENABLE_DYNAMIC_TCLTK_FALSE@,$ENABLE_DYNAMIC_TCLTK_FALSE,;t t
19925 s,@ENABLE_EMACS_TRUE@,$ENABLE_EMACS_TRUE,;t t
19926 s,@ENABLE_EMACS_FALSE@,$ENABLE_EMACS_FALSE,;t t
19927 s,@e_so_libs@,$e_so_libs,;t t
19928 s,@ENABLE_VT100_TRUE@,$ENABLE_VT100_TRUE,;t t
19929 s,@ENABLE_VT100_FALSE@,$ENABLE_VT100_FALSE,;t t
19930 s,@T_so_libs@,$T_so_libs,;t t
19931 s,@ENABLE_XAW_TRUE@,$ENABLE_XAW_TRUE,;t t
19932 s,@ENABLE_XAW_FALSE@,$ENABLE_XAW_FALSE,;t t
19933 s,@a_so_libs@,$a_so_libs,;t t
19934 s,@ENABLE_DYNAMIC_XAW_TRUE@,$ENABLE_DYNAMIC_XAW_TRUE,;t t
19935 s,@ENABLE_DYNAMIC_XAW_FALSE@,$ENABLE_DYNAMIC_XAW_FALSE,;t t
19936 s,@ENABLE_XSKIN_TRUE@,$ENABLE_XSKIN_TRUE,;t t
19937 s,@ENABLE_XSKIN_FALSE@,$ENABLE_XSKIN_FALSE,;t t
19938 s,@i_so_libs@,$i_so_libs,;t t
19939 s,@ENABLE_GTK_TRUE@,$ENABLE_GTK_TRUE,;t t
19940 s,@ENABLE_GTK_FALSE@,$ENABLE_GTK_FALSE,;t t
19941 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
19942 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
19943 s,@GTK_LIBS@,$GTK_LIBS,;t t
19944 s,@g_so_libs@,$g_so_libs,;t t
19945 s,@ENABLE_SERVER_TRUE@,$ENABLE_SERVER_TRUE,;t t
19946 s,@ENABLE_SERVER_FALSE@,$ENABLE_SERVER_FALSE,;t t
19947 s,@r_so_libs@,$r_so_libs,;t t
19948 s,@ENABLE_ALSASEQ_TRUE@,$ENABLE_ALSASEQ_TRUE,;t t
19949 s,@ENABLE_ALSASEQ_FALSE@,$ENABLE_ALSASEQ_FALSE,;t t
19950 s,@A_so_libs@,$A_so_libs,;t t
19951 s,@ENABLE_WINSYN_TRUE@,$ENABLE_WINSYN_TRUE,;t t
19952 s,@ENABLE_WINSYN_FALSE@,$ENABLE_WINSYN_FALSE,;t t
19953 s,@W_so_libs@,$W_so_libs,;t t
19954 s,@ENABLE_PORTMIDISYN_TRUE@,$ENABLE_PORTMIDISYN_TRUE,;t t
19955 s,@ENABLE_PORTMIDISYN_FALSE@,$ENABLE_PORTMIDISYN_FALSE,;t t
19956 s,@P_so_libs@,$P_so_libs,;t t
19957 s,@ENABLE_W32G_SYN_TRUE@,$ENABLE_W32G_SYN_TRUE,;t t
19958 s,@ENABLE_W32G_SYN_FALSE@,$ENABLE_W32G_SYN_FALSE,;t t
19959 s,@ENABLE_W32GUI_TRUE@,$ENABLE_W32GUI_TRUE,;t t
19960 s,@ENABLE_W32GUI_FALSE@,$ENABLE_W32GUI_FALSE,;t t
19961 s,@w_so_libs@,$w_so_libs,;t t
19962 s,@ENABLE_PLUGIN_TRUE@,$ENABLE_PLUGIN_TRUE,;t t
19963 s,@ENABLE_PLUGIN_FALSE@,$ENABLE_PLUGIN_FALSE,;t t
19964 s,@p_so_libs@,$p_so_libs,;t t
19965 s,@ENABLE_NETWORK_TRUE@,$ENABLE_NETWORK_TRUE,;t t
19966 s,@ENABLE_NETWORK_FALSE@,$ENABLE_NETWORK_FALSE,;t t
19967 s,@ENABLE_SOUND_SPEC_TRUE@,$ENABLE_SOUND_SPEC_TRUE,;t t
19968 s,@ENABLE_SOUND_SPEC_FALSE@,$ENABLE_SOUND_SPEC_FALSE,;t t
19969 s,@ENABLE_WRD_TRUE@,$ENABLE_WRD_TRUE,;t t
19970 s,@ENABLE_WRD_FALSE@,$ENABLE_WRD_FALSE,;t t
19971 s,@CYGNUS_TRUE@,$CYGNUS_TRUE,;t t
19972 s,@CYGNUS_FALSE@,$CYGNUS_FALSE,;t t
19973 s,@MINGW_TRUE@,$MINGW_TRUE,;t t
19974 s,@MINGW_FALSE@,$MINGW_FALSE,;t t
19975 s,@W32READDIR_TRUE@,$W32READDIR_TRUE,;t t
19976 s,@W32READDIR_FALSE@,$W32READDIR_FALSE,;t t
19977 s,@timidity_LDFLAGS@,$timidity_LDFLAGS,;t t
19978 s,@SYSEXTRAS@,$SYSEXTRAS,;t t
19979 s,@EXTRALIBS@,$EXTRALIBS,;t t
19980 s,@NETSRCS@,$NETSRCS,;t t
19981 s,@ELFILES@,$ELFILES,;t t
19982 s,@SHLD@,$SHLD,;t t
19983 s,@SHCFLAGS@,$SHCFLAGS,;t t
19984 s,@dynamic_targets@,$dynamic_targets,;t t
19985 s,@so@,$so,;t t
19986 s,@WISH@,$WISH,;t t
19987 s,@tcltk_dep@,$tcltk_dep,;t t
19988 s,@INTERFACE_SRCS@,$INTERFACE_SRCS,;t t
19989 s,@pkgdatadir@,$pkgdatadir,;t t
19990 s,@pkglibdir@,$pkglibdir,;t t
19991 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19992 CEOF
19993
19994 _ACEOF
19995
19996   cat >>$CONFIG_STATUS <<\_ACEOF
19997   # Split the substitutions into bite-sized pieces for seds with
19998   # small command number limits, like on Digital OSF/1 and HP-UX.
19999   ac_max_sed_lines=48
20000   ac_sed_frag=1 # Number of current file.
20001   ac_beg=1 # First line for current file.
20002   ac_end=$ac_max_sed_lines # Line after last line for current file.
20003   ac_more_lines=:
20004   ac_sed_cmds=
20005   while $ac_more_lines; do
20006     if test $ac_beg -gt 1; then
20007       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20008     else
20009       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20010     fi
20011     if test ! -s $tmp/subs.frag; then
20012       ac_more_lines=false
20013     else
20014       # The purpose of the label and of the branching condition is to
20015       # speed up the sed processing (if there are no `@' at all, there
20016       # is no need to browse any of the substitutions).
20017       # These are the two extra sed commands mentioned above.
20018       (echo ':t
20019   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20020       if test -z "$ac_sed_cmds"; then
20021         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20022       else
20023         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20024       fi
20025       ac_sed_frag=`expr $ac_sed_frag + 1`
20026       ac_beg=$ac_end
20027       ac_end=`expr $ac_end + $ac_max_sed_lines`
20028     fi
20029   done
20030   if test -z "$ac_sed_cmds"; then
20031     ac_sed_cmds=cat
20032   fi
20033 fi # test -n "$CONFIG_FILES"
20034
20035 _ACEOF
20036 cat >>$CONFIG_STATUS <<\_ACEOF
20037 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20038   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20039   case $ac_file in
20040   - | *:- | *:-:* ) # input from stdin
20041         cat >$tmp/stdin
20042         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20043         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20044   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20045         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20046   * )   ac_file_in=$ac_file.in ;;
20047   esac
20048
20049   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20050   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20051 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20052          X"$ac_file" : 'X\(//\)[^/]' \| \
20053          X"$ac_file" : 'X\(//\)$' \| \
20054          X"$ac_file" : 'X\(/\)' \| \
20055          .     : '\(.\)' 2>/dev/null ||
20056 echo X"$ac_file" |
20057     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20058           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20059           /^X\(\/\/\)$/{ s//\1/; q; }
20060           /^X\(\/\).*/{ s//\1/; q; }
20061           s/.*/./; q'`
20062   { if $as_mkdir_p; then
20063     mkdir -p "$ac_dir"
20064   else
20065     as_dir="$ac_dir"
20066     as_dirs=
20067     while test ! -d "$as_dir"; do
20068       as_dirs="$as_dir $as_dirs"
20069       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20070 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20071          X"$as_dir" : 'X\(//\)[^/]' \| \
20072          X"$as_dir" : 'X\(//\)$' \| \
20073          X"$as_dir" : 'X\(/\)' \| \
20074          .     : '\(.\)' 2>/dev/null ||
20075 echo X"$as_dir" |
20076     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20077           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20078           /^X\(\/\/\)$/{ s//\1/; q; }
20079           /^X\(\/\).*/{ s//\1/; q; }
20080           s/.*/./; q'`
20081     done
20082     test ! -n "$as_dirs" || mkdir $as_dirs
20083   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20084 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20085    { (exit 1); exit 1; }; }; }
20086
20087   ac_builddir=.
20088
20089 if test "$ac_dir" != .; then
20090   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20091   # A "../" for each directory in $ac_dir_suffix.
20092   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20093 else
20094   ac_dir_suffix= ac_top_builddir=
20095 fi
20096
20097 case $srcdir in
20098   .)  # No --srcdir option.  We are building in place.
20099     ac_srcdir=.
20100     if test -z "$ac_top_builddir"; then
20101        ac_top_srcdir=.
20102     else
20103        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20104     fi ;;
20105   [\\/]* | ?:[\\/]* )  # Absolute path.
20106     ac_srcdir=$srcdir$ac_dir_suffix;
20107     ac_top_srcdir=$srcdir ;;
20108   *) # Relative path.
20109     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20110     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20111 esac
20112
20113 # Do not use `cd foo && pwd` to compute absolute paths, because
20114 # the directories may not exist.
20115 case `pwd` in
20116 .) ac_abs_builddir="$ac_dir";;
20117 *)
20118   case "$ac_dir" in
20119   .) ac_abs_builddir=`pwd`;;
20120   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20121   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20122   esac;;
20123 esac
20124 case $ac_abs_builddir in
20125 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20126 *)
20127   case ${ac_top_builddir}. in
20128   .) ac_abs_top_builddir=$ac_abs_builddir;;
20129   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20130   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20131   esac;;
20132 esac
20133 case $ac_abs_builddir in
20134 .) ac_abs_srcdir=$ac_srcdir;;
20135 *)
20136   case $ac_srcdir in
20137   .) ac_abs_srcdir=$ac_abs_builddir;;
20138   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20139   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20140   esac;;
20141 esac
20142 case $ac_abs_builddir in
20143 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20144 *)
20145   case $ac_top_srcdir in
20146   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20147   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20148   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20149   esac;;
20150 esac
20151
20152
20153   case $INSTALL in
20154   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20155   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20156   esac
20157
20158   if test x"$ac_file" != x-; then
20159     { echo "$as_me:$LINENO: creating $ac_file" >&5
20160 echo "$as_me: creating $ac_file" >&6;}
20161     rm -f "$ac_file"
20162   fi
20163   # Let's still pretend it is `configure' which instantiates (i.e., don't
20164   # use $as_me), people would be surprised to read:
20165   #    /* config.h.  Generated by config.status.  */
20166   if test x"$ac_file" = x-; then
20167     configure_input=
20168   else
20169     configure_input="$ac_file.  "
20170   fi
20171   configure_input=$configure_input"Generated from `echo $ac_file_in |
20172                                      sed 's,.*/,,'` by configure."
20173
20174   # First look for the input files in the build tree, otherwise in the
20175   # src tree.
20176   ac_file_inputs=`IFS=:
20177     for f in $ac_file_in; do
20178       case $f in
20179       -) echo $tmp/stdin ;;
20180       [\\/$]*)
20181          # Absolute (can't be DOS-style, as IFS=:)
20182          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20183 echo "$as_me: error: cannot find input file: $f" >&2;}
20184    { (exit 1); exit 1; }; }
20185          echo "$f";;
20186       *) # Relative
20187          if test -f "$f"; then
20188            # Build tree
20189            echo "$f"
20190          elif test -f "$srcdir/$f"; then
20191            # Source tree
20192            echo "$srcdir/$f"
20193          else
20194            # /dev/null tree
20195            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20196 echo "$as_me: error: cannot find input file: $f" >&2;}
20197    { (exit 1); exit 1; }; }
20198          fi;;
20199       esac
20200     done` || { (exit 1); exit 1; }
20201 _ACEOF
20202 cat >>$CONFIG_STATUS <<_ACEOF
20203   sed "$ac_vpsub
20204 $extrasub
20205 _ACEOF
20206 cat >>$CONFIG_STATUS <<\_ACEOF
20207 :t
20208 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20209 s,@configure_input@,$configure_input,;t t
20210 s,@srcdir@,$ac_srcdir,;t t
20211 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20212 s,@top_srcdir@,$ac_top_srcdir,;t t
20213 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20214 s,@builddir@,$ac_builddir,;t t
20215 s,@abs_builddir@,$ac_abs_builddir,;t t
20216 s,@top_builddir@,$ac_top_builddir,;t t
20217 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20218 s,@INSTALL@,$ac_INSTALL,;t t
20219 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20220   rm -f $tmp/stdin
20221   if test x"$ac_file" != x-; then
20222     mv $tmp/out $ac_file
20223   else
20224     cat $tmp/out
20225     rm -f $tmp/out
20226   fi
20227
20228 done
20229 _ACEOF
20230 cat >>$CONFIG_STATUS <<\_ACEOF
20231
20232 #
20233 # CONFIG_HEADER section.
20234 #
20235
20236 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20237 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20238 #
20239 # ac_d sets the value in "#define NAME VALUE" lines.
20240 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
20241 ac_dB='[         ].*$,\1#\2'
20242 ac_dC=' '
20243 ac_dD=',;t'
20244 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20245 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20246 ac_uB='$,\1#\2define\3'
20247 ac_uC=' '
20248 ac_uD=',;t'
20249
20250 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20251   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20252   case $ac_file in
20253   - | *:- | *:-:* ) # input from stdin
20254         cat >$tmp/stdin
20255         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20256         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20257   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20258         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20259   * )   ac_file_in=$ac_file.in ;;
20260   esac
20261
20262   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20263 echo "$as_me: creating $ac_file" >&6;}
20264
20265   # First look for the input files in the build tree, otherwise in the
20266   # src tree.
20267   ac_file_inputs=`IFS=:
20268     for f in $ac_file_in; do
20269       case $f in
20270       -) echo $tmp/stdin ;;
20271       [\\/$]*)
20272          # Absolute (can't be DOS-style, as IFS=:)
20273          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20274 echo "$as_me: error: cannot find input file: $f" >&2;}
20275    { (exit 1); exit 1; }; }
20276          # Do quote $f, to prevent DOS paths from being IFS'd.
20277          echo "$f";;
20278       *) # Relative
20279          if test -f "$f"; then
20280            # Build tree
20281            echo "$f"
20282          elif test -f "$srcdir/$f"; then
20283            # Source tree
20284            echo "$srcdir/$f"
20285          else
20286            # /dev/null tree
20287            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20288 echo "$as_me: error: cannot find input file: $f" >&2;}
20289    { (exit 1); exit 1; }; }
20290          fi;;
20291       esac
20292     done` || { (exit 1); exit 1; }
20293   # Remove the trailing spaces.
20294   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
20295
20296 _ACEOF
20297
20298 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20299 # `conftest.undefs', that substitutes the proper values into
20300 # config.h.in to produce config.h.  The first handles `#define'
20301 # templates, and the second `#undef' templates.
20302 # And first: Protect against being on the right side of a sed subst in
20303 # config.status.  Protect against being in an unquoted here document
20304 # in config.status.
20305 rm -f conftest.defines conftest.undefs
20306 # Using a here document instead of a string reduces the quoting nightmare.
20307 # Putting comments in sed scripts is not portable.
20308 #
20309 # `end' is used to avoid that the second main sed command (meant for
20310 # 0-ary CPP macros) applies to n-ary macro definitions.
20311 # See the Autoconf documentation for `clear'.
20312 cat >confdef2sed.sed <<\_ACEOF
20313 s/[\\&,]/\\&/g
20314 s,[\\$`],\\&,g
20315 t clear
20316 : clear
20317 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20318 t end
20319 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20320 : end
20321 _ACEOF
20322 # If some macros were called several times there might be several times
20323 # the same #defines, which is useless.  Nevertheless, we may not want to
20324 # sort them, since we want the *last* AC-DEFINE to be honored.
20325 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20326 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20327 rm -f confdef2sed.sed
20328
20329 # This sed command replaces #undef with comments.  This is necessary, for
20330 # example, in the case of _POSIX_SOURCE, which is predefined and required
20331 # on some systems where configure will not decide to define it.
20332 cat >>conftest.undefs <<\_ACEOF
20333 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20334 _ACEOF
20335
20336 # Break up conftest.defines because some shells have a limit on the size
20337 # of here documents, and old seds have small limits too (100 cmds).
20338 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20339 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20340 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20341 echo '  :' >>$CONFIG_STATUS
20342 rm -f conftest.tail
20343 while grep . conftest.defines >/dev/null
20344 do
20345   # Write a limited-size here document to $tmp/defines.sed.
20346   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20347   # Speed up: don't consider the non `#define' lines.
20348   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
20349   # Work around the forget-to-reset-the-flag bug.
20350   echo 't clr' >>$CONFIG_STATUS
20351   echo ': clr' >>$CONFIG_STATUS
20352   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20353   echo 'CEOF
20354   sed -f $tmp/defines.sed $tmp/in >$tmp/out
20355   rm -f $tmp/in
20356   mv $tmp/out $tmp/in
20357 ' >>$CONFIG_STATUS
20358   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20359   rm -f conftest.defines
20360   mv conftest.tail conftest.defines
20361 done
20362 rm -f conftest.defines
20363 echo '  fi # grep' >>$CONFIG_STATUS
20364 echo >>$CONFIG_STATUS
20365
20366 # Break up conftest.undefs because some shells have a limit on the size
20367 # of here documents, and old seds have small limits too (100 cmds).
20368 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20369 rm -f conftest.tail
20370 while grep . conftest.undefs >/dev/null
20371 do
20372   # Write a limited-size here document to $tmp/undefs.sed.
20373   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20374   # Speed up: don't consider the non `#undef'
20375   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20376   # Work around the forget-to-reset-the-flag bug.
20377   echo 't clr' >>$CONFIG_STATUS
20378   echo ': clr' >>$CONFIG_STATUS
20379   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20380   echo 'CEOF
20381   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20382   rm -f $tmp/in
20383   mv $tmp/out $tmp/in
20384 ' >>$CONFIG_STATUS
20385   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20386   rm -f conftest.undefs
20387   mv conftest.tail conftest.undefs
20388 done
20389 rm -f conftest.undefs
20390
20391 cat >>$CONFIG_STATUS <<\_ACEOF
20392   # Let's still pretend it is `configure' which instantiates (i.e., don't
20393   # use $as_me), people would be surprised to read:
20394   #    /* config.h.  Generated by config.status.  */
20395   if test x"$ac_file" = x-; then
20396     echo "/* Generated by configure.  */" >$tmp/config.h
20397   else
20398     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20399   fi
20400   cat $tmp/in >>$tmp/config.h
20401   rm -f $tmp/in
20402   if test x"$ac_file" != x-; then
20403     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20404       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20405 echo "$as_me: $ac_file is unchanged" >&6;}
20406     else
20407       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20408 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20409          X"$ac_file" : 'X\(//\)[^/]' \| \
20410          X"$ac_file" : 'X\(//\)$' \| \
20411          X"$ac_file" : 'X\(/\)' \| \
20412          .     : '\(.\)' 2>/dev/null ||
20413 echo X"$ac_file" |
20414     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20415           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20416           /^X\(\/\/\)$/{ s//\1/; q; }
20417           /^X\(\/\).*/{ s//\1/; q; }
20418           s/.*/./; q'`
20419       { if $as_mkdir_p; then
20420     mkdir -p "$ac_dir"
20421   else
20422     as_dir="$ac_dir"
20423     as_dirs=
20424     while test ! -d "$as_dir"; do
20425       as_dirs="$as_dir $as_dirs"
20426       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20427 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20428          X"$as_dir" : 'X\(//\)[^/]' \| \
20429          X"$as_dir" : 'X\(//\)$' \| \
20430          X"$as_dir" : 'X\(/\)' \| \
20431          .     : '\(.\)' 2>/dev/null ||
20432 echo X"$as_dir" |
20433     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20434           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20435           /^X\(\/\/\)$/{ s//\1/; q; }
20436           /^X\(\/\).*/{ s//\1/; q; }
20437           s/.*/./; q'`
20438     done
20439     test ! -n "$as_dirs" || mkdir $as_dirs
20440   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20441 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20442    { (exit 1); exit 1; }; }; }
20443
20444       rm -f $ac_file
20445       mv $tmp/config.h $ac_file
20446     fi
20447   else
20448     cat $tmp/config.h
20449     rm -f $tmp/config.h
20450   fi
20451 # Compute $ac_file's index in $config_headers.
20452 _am_stamp_count=1
20453 for _am_header in $config_headers :; do
20454   case $_am_header in
20455     $ac_file | $ac_file:* )
20456       break ;;
20457     * )
20458       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20459   esac
20460 done
20461 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20462 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20463          X$ac_file : 'X\(//\)[^/]' \| \
20464          X$ac_file : 'X\(//\)$' \| \
20465          X$ac_file : 'X\(/\)' \| \
20466          .     : '\(.\)' 2>/dev/null ||
20467 echo X$ac_file |
20468     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20469           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20470           /^X\(\/\/\)$/{ s//\1/; q; }
20471           /^X\(\/\).*/{ s//\1/; q; }
20472           s/.*/./; q'`/stamp-h$_am_stamp_count
20473 done
20474 _ACEOF
20475 cat >>$CONFIG_STATUS <<\_ACEOF
20476
20477 #
20478 # CONFIG_COMMANDS section.
20479 #
20480 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20481   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20482   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20483   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20484 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20485          X"$ac_dest" : 'X\(//\)[^/]' \| \
20486          X"$ac_dest" : 'X\(//\)$' \| \
20487          X"$ac_dest" : 'X\(/\)' \| \
20488          .     : '\(.\)' 2>/dev/null ||
20489 echo X"$ac_dest" |
20490     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20491           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20492           /^X\(\/\/\)$/{ s//\1/; q; }
20493           /^X\(\/\).*/{ s//\1/; q; }
20494           s/.*/./; q'`
20495   { if $as_mkdir_p; then
20496     mkdir -p "$ac_dir"
20497   else
20498     as_dir="$ac_dir"
20499     as_dirs=
20500     while test ! -d "$as_dir"; do
20501       as_dirs="$as_dir $as_dirs"
20502       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20503 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20504          X"$as_dir" : 'X\(//\)[^/]' \| \
20505          X"$as_dir" : 'X\(//\)$' \| \
20506          X"$as_dir" : 'X\(/\)' \| \
20507          .     : '\(.\)' 2>/dev/null ||
20508 echo X"$as_dir" |
20509     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20510           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20511           /^X\(\/\/\)$/{ s//\1/; q; }
20512           /^X\(\/\).*/{ s//\1/; q; }
20513           s/.*/./; q'`
20514     done
20515     test ! -n "$as_dirs" || mkdir $as_dirs
20516   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20517 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20518    { (exit 1); exit 1; }; }; }
20519
20520   ac_builddir=.
20521
20522 if test "$ac_dir" != .; then
20523   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20524   # A "../" for each directory in $ac_dir_suffix.
20525   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20526 else
20527   ac_dir_suffix= ac_top_builddir=
20528 fi
20529
20530 case $srcdir in
20531   .)  # No --srcdir option.  We are building in place.
20532     ac_srcdir=.
20533     if test -z "$ac_top_builddir"; then
20534        ac_top_srcdir=.
20535     else
20536        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20537     fi ;;
20538   [\\/]* | ?:[\\/]* )  # Absolute path.
20539     ac_srcdir=$srcdir$ac_dir_suffix;
20540     ac_top_srcdir=$srcdir ;;
20541   *) # Relative path.
20542     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20543     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20544 esac
20545
20546 # Do not use `cd foo && pwd` to compute absolute paths, because
20547 # the directories may not exist.
20548 case `pwd` in
20549 .) ac_abs_builddir="$ac_dir";;
20550 *)
20551   case "$ac_dir" in
20552   .) ac_abs_builddir=`pwd`;;
20553   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20554   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20555   esac;;
20556 esac
20557 case $ac_abs_builddir in
20558 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20559 *)
20560   case ${ac_top_builddir}. in
20561   .) ac_abs_top_builddir=$ac_abs_builddir;;
20562   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20563   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20564   esac;;
20565 esac
20566 case $ac_abs_builddir in
20567 .) ac_abs_srcdir=$ac_srcdir;;
20568 *)
20569   case $ac_srcdir in
20570   .) ac_abs_srcdir=$ac_abs_builddir;;
20571   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20572   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20573   esac;;
20574 esac
20575 case $ac_abs_builddir in
20576 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20577 *)
20578   case $ac_top_srcdir in
20579   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20580   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20581   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20582   esac;;
20583 esac
20584
20585
20586   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20587 echo "$as_me: executing $ac_dest commands" >&6;}
20588   case $ac_dest in
20589     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20590   # Strip MF so we end up with the name of the file.
20591   mf=`echo "$mf" | sed -e 's/:.*$//'`
20592   # Check whether this is an Automake generated Makefile or not.
20593   # We used to match only the files named `Makefile.in', but
20594   # some people rename them; so instead we look at the file content.
20595   # Grep'ing the first line is not enough: some people post-process
20596   # each Makefile.in and add a new line on top of each file to say so.
20597   # So let's grep whole file.
20598   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20599     dirpart=`(dirname "$mf") 2>/dev/null ||
20600 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20601          X"$mf" : 'X\(//\)[^/]' \| \
20602          X"$mf" : 'X\(//\)$' \| \
20603          X"$mf" : 'X\(/\)' \| \
20604          .     : '\(.\)' 2>/dev/null ||
20605 echo X"$mf" |
20606     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20607           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20608           /^X\(\/\/\)$/{ s//\1/; q; }
20609           /^X\(\/\).*/{ s//\1/; q; }
20610           s/.*/./; q'`
20611   else
20612     continue
20613   fi
20614   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
20615   # Extract the definition of DEP_FILES from the Makefile without
20616   # running `make'.
20617   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
20618   test -z "$DEPDIR" && continue
20619   # When using ansi2knr, U may be empty or an underscore; expand it
20620   U=`sed -n -e '/^U = / s///p' < "$mf"`
20621   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
20622   # We invoke sed twice because it is the simplest approach to
20623   # changing $(DEPDIR) to its actual value in the expansion.
20624   for file in `sed -n -e '
20625     /^DEP_FILES = .*\\\\$/ {
20626       s/^DEP_FILES = //
20627       :loop
20628         s/\\\\$//
20629         p
20630         n
20631         /\\\\$/ b loop
20632       p
20633     }
20634     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
20635        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20636     # Make sure the directory exists.
20637     test -f "$dirpart/$file" && continue
20638     fdir=`(dirname "$file") 2>/dev/null ||
20639 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20640          X"$file" : 'X\(//\)[^/]' \| \
20641          X"$file" : 'X\(//\)$' \| \
20642          X"$file" : 'X\(/\)' \| \
20643          .     : '\(.\)' 2>/dev/null ||
20644 echo X"$file" |
20645     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20646           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20647           /^X\(\/\/\)$/{ s//\1/; q; }
20648           /^X\(\/\).*/{ s//\1/; q; }
20649           s/.*/./; q'`
20650     { if $as_mkdir_p; then
20651     mkdir -p $dirpart/$fdir
20652   else
20653     as_dir=$dirpart/$fdir
20654     as_dirs=
20655     while test ! -d "$as_dir"; do
20656       as_dirs="$as_dir $as_dirs"
20657       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20658 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20659          X"$as_dir" : 'X\(//\)[^/]' \| \
20660          X"$as_dir" : 'X\(//\)$' \| \
20661          X"$as_dir" : 'X\(/\)' \| \
20662          .     : '\(.\)' 2>/dev/null ||
20663 echo X"$as_dir" |
20664     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20665           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20666           /^X\(\/\/\)$/{ s//\1/; q; }
20667           /^X\(\/\).*/{ s//\1/; q; }
20668           s/.*/./; q'`
20669     done
20670     test ! -n "$as_dirs" || mkdir $as_dirs
20671   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20672 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20673    { (exit 1); exit 1; }; }; }
20674
20675     # echo "creating $dirpart/$file"
20676     echo '# dummy' > "$dirpart/$file"
20677   done
20678 done
20679  ;;
20680   esac
20681 done
20682 _ACEOF
20683
20684 cat >>$CONFIG_STATUS <<\_ACEOF
20685
20686 { (exit 0); exit 0; }
20687 _ACEOF
20688 chmod +x $CONFIG_STATUS
20689 ac_clean_files=$ac_clean_files_save
20690
20691
20692 # configure is writing to config.log, and then calls config.status.
20693 # config.status does its own redirection, appending to config.log.
20694 # Unfortunately, on DOS this fails, as config.log is still kept open
20695 # by configure, so config.status won't be able to write to it; its
20696 # output is simply discarded.  So we exec the FD to /dev/null,
20697 # effectively closing config.log, so it can be properly (re)opened and
20698 # appended to by config.status.  When coming back to configure, we
20699 # need to make the FD available again.
20700 if test "$no_create" != yes; then
20701   ac_cs_success=:
20702   ac_config_status_args=
20703   test "$silent" = yes &&
20704     ac_config_status_args="$ac_config_status_args --quiet"
20705   exec 5>/dev/null
20706   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20707   exec 5>>config.log
20708   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20709   # would make configure fail if this is the last instruction.
20710   $ac_cs_success || { (exit 1); exit 1; }
20711 fi
20712