OSDN Git Service

autoreconf
[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++ 2.13.1.
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='2.13.1'
273 PACKAGE_STRING='TiMidity++ 2.13.1'
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 PKG_CONFIG GTK_CONFIG GTK_CFLAGS GTK_LIBS g_so_libs ENABLE_SERVER_TRUE ENABLE_SERVER_FALSE r_so_libs ENABLE_ALSASEQ_TRUE ENABLE_ALSASEQ_FALSE A_so_libs ENABLE_WINSYN_TRUE ENABLE_WINSYN_FALSE W_so_libs ENABLE_PORTMIDISYN_TRUE ENABLE_PORTMIDISYN_FALSE P_so_libs ENABLE_W32G_SYN_TRUE ENABLE_W32G_SYN_FALSE ENABLE_W32GUI_TRUE ENABLE_W32GUI_FALSE w_so_libs ENABLE_PLUGIN_TRUE ENABLE_PLUGIN_FALSE p_so_libs ENABLE_NETWORK_TRUE ENABLE_NETWORK_FALSE ENABLE_SOUND_SPEC_TRUE ENABLE_SOUND_SPEC_FALSE ENABLE_WRD_TRUE ENABLE_WRD_FALSE CYGNUS_TRUE CYGNUS_FALSE MSYS_TRUE MSYS_FALSE VCPP_TRUE VCPP_FALSE BORLANDC_TRUE BORLANDC_FALSE WATCOM_C_TRUE WATCOM_C_FALSE W32READDIR_TRUE W32READDIR_FALSE BORLANDC_START BORLANDC_LDFLAGS timidity_LDFLAGS WATCOM_LDFLAGS VCPP_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++ 2.13.1 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++ 2.13.1:";;
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   --disable-gtktest       Do not try to compile and run a test GTK program
912   --enable-server         Enable server interface         (default is no)
913   --enable-alsaseq        Enable ALSA sequencer server interface
914                                                           (default is no)
915   --enable-winsyn        Enable Windows Synthesizer interface
916                                                           (default is no)
917   --enable-portmidisyn        Enable PortMIDI Synthesizer interface
918                                                           (default is no)
919   --enable-winsyng        Enable Windows GUI Synthesizer interface
920                                                           (default is no)
921   --enable-w32gui         Enable Windows GUI interface    (default is no)
922   --enable-ump            UMP configuration               (default is no)
923   --enable-offix          Enable offix support            (default is no)
924   --enable-network        Enable network support          (default is no)
925   --enable-spectrogram    Enable Sound Spectrogram Viewer (default is no)
926   --enable-spline=method  Specify spline method.
927                                   one of no,linear,cubic,lagrange,newton,gauss
928                                                           (default is linear)
929   --enable-wrd            Enable WRD interface for X      (default is no)
930
931 Optional Packages:
932   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
933   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
934   --with-includes=DIR     Specify include directories (colon separated)
935   --with-libraries=DIR    Specify library directories (colon separated)
936   --with-default-path=DIR Where timidity.cfg is  (PREFIX/share/timidity)
937   --with-module-dir=DIR   Where to install interfaces (PREFIX/lib/timidity)
938   --with-lispdir          Override the default lisp directory
939   --with-elf              create ELF shared object instead of AOUT
940   --with-x                use the X Window System
941   --with-tcl-includes=DIR Tcl include file path
942   --with-tcl-libs=DIR     Tcl library file path
943   --with-tk-includes=DIR  Tk include file path
944   --with-tk-libs=DIR      Tk library file path
945   --with-offix-includes=DIR Offix include file path
946   --with-offix-libs=DIR   Offix include file path
947   --with-nas-library=library NAS absolute library path(Don't use -laudio)
948   --with-nas-includes=DIR NAS include files are in dir
949   --with-default-output=<mode>  Specify default output mode (optional):
950                                 (default|alsa|alib|arts|nas|
951                                 esd|wav|au|aiff|list|vorbis|flac|speex|
952                                 gogo|portaudio|jack|ao)
953   --with-alsa-prefix=PFX  Prefix where Alsa library is installed(optional)
954   --with-alsa-inc-prefix=PFX  Prefix where include libraries are (optional)
955   --with-arts-prefix=PFX   Prefix where ARTS is installed (optional)
956   --with-esd-prefix=PFX   Prefix where ESD is installed (optional)
957   --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
958   --with-ao=PFX   Prefix where libao is installed (optional)
959   --with-ao-libraries=DIR   Directory where libao library is installed (optional)
960   --with-ao-includes=DIR   Directory where libao header files are installed (optional)
961   --with-ogg=PFX   Prefix where libogg is installed (optional)
962   --with-ogg-libraries=DIR   Directory where libogg library is installed (optional)
963   --with-ogg-includes=DIR   Directory where libogg header files are installed (optional)
964   --with-vorbis=PFX   Prefix where libvorbis is installed (optional)
965   --with-vorbis-libraries=DIR   Directory where libvorbis library is installed (optional)
966   --with-vorbis-includes=DIR   Directory where libvorbis header files are installed (optional)
967   --with-libFLAC=PFX   Prefix where libFLAC is installed (optional)
968   --with-libFLAC-libraries=DIR   Directory where libFLAC library is installed (optional)
969   --with-libFLAC-includes=DIR   Directory where libFLAC header files are installed (optional)
970   --with-libOggFLAC=PFX   Prefix where libOggFLAC is installed (optional)
971   --with-libOggFLAC-libraries=DIR   Directory where libOggFLAC library is installed (optional)
972   --with-libOggFLAC-includes=DIR   Directory where libOggFLAC header files are installed (optional)
973   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
974   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
975
976 Some influential environment variables:
977   CC          C compiler command
978   CFLAGS      C compiler flags
979   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
980               nonstandard directory <lib dir>
981   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
982               headers in a nonstandard directory <include dir>
983   CPP         C preprocessor
984
985 Use these variables to override the choices made by `configure' or to help
986 it to find libraries and programs with nonstandard names/locations.
987
988 Report bugs to <root@mput.dip.jp>.
989 _ACEOF
990 fi
991
992 if test "$ac_init_help" = "recursive"; then
993   # If there are subdirs, report their specific --help.
994   ac_popdir=`pwd`
995   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
996     test -d $ac_dir || continue
997     ac_builddir=.
998
999 if test "$ac_dir" != .; then
1000   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1001   # A "../" for each directory in $ac_dir_suffix.
1002   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1003 else
1004   ac_dir_suffix= ac_top_builddir=
1005 fi
1006
1007 case $srcdir in
1008   .)  # No --srcdir option.  We are building in place.
1009     ac_srcdir=.
1010     if test -z "$ac_top_builddir"; then
1011        ac_top_srcdir=.
1012     else
1013        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1014     fi ;;
1015   [\\/]* | ?:[\\/]* )  # Absolute path.
1016     ac_srcdir=$srcdir$ac_dir_suffix;
1017     ac_top_srcdir=$srcdir ;;
1018   *) # Relative path.
1019     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1020     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1021 esac
1022
1023 # Do not use `cd foo && pwd` to compute absolute paths, because
1024 # the directories may not exist.
1025 case `pwd` in
1026 .) ac_abs_builddir="$ac_dir";;
1027 *)
1028   case "$ac_dir" in
1029   .) ac_abs_builddir=`pwd`;;
1030   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1031   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1032   esac;;
1033 esac
1034 case $ac_abs_builddir in
1035 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1036 *)
1037   case ${ac_top_builddir}. in
1038   .) ac_abs_top_builddir=$ac_abs_builddir;;
1039   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1040   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1041   esac;;
1042 esac
1043 case $ac_abs_builddir in
1044 .) ac_abs_srcdir=$ac_srcdir;;
1045 *)
1046   case $ac_srcdir in
1047   .) ac_abs_srcdir=$ac_abs_builddir;;
1048   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1049   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1050   esac;;
1051 esac
1052 case $ac_abs_builddir in
1053 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1054 *)
1055   case $ac_top_srcdir in
1056   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1057   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1058   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1059   esac;;
1060 esac
1061
1062     cd $ac_dir
1063     # Check for guested configure; otherwise get Cygnus style configure.
1064     if test -f $ac_srcdir/configure.gnu; then
1065       echo
1066       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1067     elif test -f $ac_srcdir/configure; then
1068       echo
1069       $SHELL $ac_srcdir/configure  --help=recursive
1070     elif test -f $ac_srcdir/configure.ac ||
1071            test -f $ac_srcdir/configure.in; then
1072       echo
1073       $ac_configure --help
1074     else
1075       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1076     fi
1077     cd $ac_popdir
1078   done
1079 fi
1080
1081 test -n "$ac_init_help" && exit 0
1082 if $ac_init_version; then
1083   cat <<\_ACEOF
1084 TiMidity++ configure 2.13.1
1085 generated by GNU Autoconf 2.59
1086
1087 Copyright (C) 2003 Free Software Foundation, Inc.
1088 This configure script is free software; the Free Software Foundation
1089 gives unlimited permission to copy, distribute and modify it.
1090 _ACEOF
1091   exit 0
1092 fi
1093 exec 5>config.log
1094 cat >&5 <<_ACEOF
1095 This file contains any messages produced by compilers while
1096 running configure, to aid debugging if configure makes a mistake.
1097
1098 It was created by TiMidity++ $as_me 2.13.1, which was
1099 generated by GNU Autoconf 2.59.  Invocation command line was
1100
1101   $ $0 $@
1102
1103 _ACEOF
1104 {
1105 cat <<_ASUNAME
1106 ## --------- ##
1107 ## Platform. ##
1108 ## --------- ##
1109
1110 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1111 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1112 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1113 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1114 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1115
1116 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1117 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1118
1119 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1120 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1121 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1122 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1123 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1124 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1125 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1126
1127 _ASUNAME
1128
1129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1130 for as_dir in $PATH
1131 do
1132   IFS=$as_save_IFS
1133   test -z "$as_dir" && as_dir=.
1134   echo "PATH: $as_dir"
1135 done
1136
1137 } >&5
1138
1139 cat >&5 <<_ACEOF
1140
1141
1142 ## ----------- ##
1143 ## Core tests. ##
1144 ## ----------- ##
1145
1146 _ACEOF
1147
1148
1149 # Keep a trace of the command line.
1150 # Strip out --no-create and --no-recursion so they do not pile up.
1151 # Strip out --silent because we don't want to record it for future runs.
1152 # Also quote any args containing shell meta-characters.
1153 # Make two passes to allow for proper duplicate-argument suppression.
1154 ac_configure_args=
1155 ac_configure_args0=
1156 ac_configure_args1=
1157 ac_sep=
1158 ac_must_keep_next=false
1159 for ac_pass in 1 2
1160 do
1161   for ac_arg
1162   do
1163     case $ac_arg in
1164     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1165     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1166     | -silent | --silent | --silen | --sile | --sil)
1167       continue ;;
1168     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1169       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1170     esac
1171     case $ac_pass in
1172     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1173     2)
1174       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1175       if test $ac_must_keep_next = true; then
1176         ac_must_keep_next=false # Got value, back to normal.
1177       else
1178         case $ac_arg in
1179           *=* | --config-cache | -C | -disable-* | --disable-* \
1180           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1181           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1182           | -with-* | --with-* | -without-* | --without-* | --x)
1183             case "$ac_configure_args0 " in
1184               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1185             esac
1186             ;;
1187           -* ) ac_must_keep_next=true ;;
1188         esac
1189       fi
1190       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1191       # Get rid of the leading space.
1192       ac_sep=" "
1193       ;;
1194     esac
1195   done
1196 done
1197 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1198 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1199
1200 # When interrupted or exit'd, cleanup temporary files, and complete
1201 # config.log.  We remove comments because anyway the quotes in there
1202 # would cause problems or look ugly.
1203 # WARNING: Be sure not to use single quotes in there, as some shells,
1204 # such as our DU 5.0 friend, will then `close' the trap.
1205 trap 'exit_status=$?
1206   # Save into config.log some information that might help in debugging.
1207   {
1208     echo
1209
1210     cat <<\_ASBOX
1211 ## ---------------- ##
1212 ## Cache variables. ##
1213 ## ---------------- ##
1214 _ASBOX
1215     echo
1216     # The following way of writing the cache mishandles newlines in values,
1217 {
1218   (set) 2>&1 |
1219     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1220     *ac_space=\ *)
1221       sed -n \
1222         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1223           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1224       ;;
1225     *)
1226       sed -n \
1227         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1228       ;;
1229     esac;
1230 }
1231     echo
1232
1233     cat <<\_ASBOX
1234 ## ----------------- ##
1235 ## Output variables. ##
1236 ## ----------------- ##
1237 _ASBOX
1238     echo
1239     for ac_var in $ac_subst_vars
1240     do
1241       eval ac_val=$`echo $ac_var`
1242       echo "$ac_var='"'"'$ac_val'"'"'"
1243     done | sort
1244     echo
1245
1246     if test -n "$ac_subst_files"; then
1247       cat <<\_ASBOX
1248 ## ------------- ##
1249 ## Output files. ##
1250 ## ------------- ##
1251 _ASBOX
1252       echo
1253       for ac_var in $ac_subst_files
1254       do
1255         eval ac_val=$`echo $ac_var`
1256         echo "$ac_var='"'"'$ac_val'"'"'"
1257       done | sort
1258       echo
1259     fi
1260
1261     if test -s confdefs.h; then
1262       cat <<\_ASBOX
1263 ## ----------- ##
1264 ## confdefs.h. ##
1265 ## ----------- ##
1266 _ASBOX
1267       echo
1268       sed "/^$/d" confdefs.h | sort
1269       echo
1270     fi
1271     test "$ac_signal" != 0 &&
1272       echo "$as_me: caught signal $ac_signal"
1273     echo "$as_me: exit $exit_status"
1274   } >&5
1275   rm -f core *.core &&
1276   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1277     exit $exit_status
1278      ' 0
1279 for ac_signal in 1 2 13 15; do
1280   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1281 done
1282 ac_signal=0
1283
1284 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1285 rm -rf conftest* confdefs.h
1286 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1287 echo >confdefs.h
1288
1289 # Predefined preprocessor variables.
1290
1291 cat >>confdefs.h <<_ACEOF
1292 #define PACKAGE_NAME "$PACKAGE_NAME"
1293 _ACEOF
1294
1295
1296 cat >>confdefs.h <<_ACEOF
1297 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1298 _ACEOF
1299
1300
1301 cat >>confdefs.h <<_ACEOF
1302 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1303 _ACEOF
1304
1305
1306 cat >>confdefs.h <<_ACEOF
1307 #define PACKAGE_STRING "$PACKAGE_STRING"
1308 _ACEOF
1309
1310
1311 cat >>confdefs.h <<_ACEOF
1312 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1313 _ACEOF
1314
1315
1316 # Let the site file select an alternate cache file if it wants to.
1317 # Prefer explicitly selected file to automatically selected ones.
1318 if test -z "$CONFIG_SITE"; then
1319   if test "x$prefix" != xNONE; then
1320     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1321   else
1322     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1323   fi
1324 fi
1325 for ac_site_file in $CONFIG_SITE; do
1326   if test -r "$ac_site_file"; then
1327     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1328 echo "$as_me: loading site script $ac_site_file" >&6;}
1329     sed 's/^/| /' "$ac_site_file" >&5
1330     . "$ac_site_file"
1331   fi
1332 done
1333
1334 if test -r "$cache_file"; then
1335   # Some versions of bash will fail to source /dev/null (special
1336   # files actually), so we avoid doing that.
1337   if test -f "$cache_file"; then
1338     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1339 echo "$as_me: loading cache $cache_file" >&6;}
1340     case $cache_file in
1341       [\\/]* | ?:[\\/]* ) . $cache_file;;
1342       *)                      . ./$cache_file;;
1343     esac
1344   fi
1345 else
1346   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1347 echo "$as_me: creating cache $cache_file" >&6;}
1348   >$cache_file
1349 fi
1350
1351 # Check that the precious variables saved in the cache have kept the same
1352 # value.
1353 ac_cache_corrupted=false
1354 for ac_var in `(set) 2>&1 |
1355                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1356   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1357   eval ac_new_set=\$ac_env_${ac_var}_set
1358   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1359   eval ac_new_val="\$ac_env_${ac_var}_value"
1360   case $ac_old_set,$ac_new_set in
1361     set,)
1362       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1363 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1364       ac_cache_corrupted=: ;;
1365     ,set)
1366       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1367 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1368       ac_cache_corrupted=: ;;
1369     ,);;
1370     *)
1371       if test "x$ac_old_val" != "x$ac_new_val"; then
1372         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1373 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1374         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1375 echo "$as_me:   former value:  $ac_old_val" >&2;}
1376         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1377 echo "$as_me:   current value: $ac_new_val" >&2;}
1378         ac_cache_corrupted=:
1379       fi;;
1380   esac
1381   # Pass precious variables to config.status.
1382   if test "$ac_new_set" = set; then
1383     case $ac_new_val in
1384     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1385       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1386     *) ac_arg=$ac_var=$ac_new_val ;;
1387     esac
1388     case " $ac_configure_args " in
1389       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1390       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1391     esac
1392   fi
1393 done
1394 if $ac_cache_corrupted; then
1395   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1396 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1397   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1398 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1399    { (exit 1); exit 1; }; }
1400 fi
1401
1402 ac_ext=c
1403 ac_cpp='$CPP $CPPFLAGS'
1404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1434 ac_aux_dir=
1435 for ac_dir in autoconf $srcdir/autoconf; do
1436   if test -f $ac_dir/install-sh; then
1437     ac_aux_dir=$ac_dir
1438     ac_install_sh="$ac_aux_dir/install-sh -c"
1439     break
1440   elif test -f $ac_dir/install.sh; then
1441     ac_aux_dir=$ac_dir
1442     ac_install_sh="$ac_aux_dir/install.sh -c"
1443     break
1444   elif test -f $ac_dir/shtool; then
1445     ac_aux_dir=$ac_dir
1446     ac_install_sh="$ac_aux_dir/shtool install -c"
1447     break
1448   fi
1449 done
1450 if test -z "$ac_aux_dir"; then
1451   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1452 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1453    { (exit 1); exit 1; }; }
1454 fi
1455 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1456 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1457 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1458
1459 # Make sure we can run config.sub.
1460 $ac_config_sub sun4 >/dev/null 2>&1 ||
1461   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1462 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1463    { (exit 1); exit 1; }; }
1464
1465 echo "$as_me:$LINENO: checking build system type" >&5
1466 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1467 if test "${ac_cv_build+set}" = set; then
1468   echo $ECHO_N "(cached) $ECHO_C" >&6
1469 else
1470   ac_cv_build_alias=$build_alias
1471 test -z "$ac_cv_build_alias" &&
1472   ac_cv_build_alias=`$ac_config_guess`
1473 test -z "$ac_cv_build_alias" &&
1474   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1475 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1476    { (exit 1); exit 1; }; }
1477 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1478   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1479 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1480    { (exit 1); exit 1; }; }
1481
1482 fi
1483 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1484 echo "${ECHO_T}$ac_cv_build" >&6
1485 build=$ac_cv_build
1486 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1487 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1488 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1489
1490
1491 echo "$as_me:$LINENO: checking host system type" >&5
1492 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1493 if test "${ac_cv_host+set}" = set; then
1494   echo $ECHO_N "(cached) $ECHO_C" >&6
1495 else
1496   ac_cv_host_alias=$host_alias
1497 test -z "$ac_cv_host_alias" &&
1498   ac_cv_host_alias=$ac_cv_build_alias
1499 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1500   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1501 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1502    { (exit 1); exit 1; }; }
1503
1504 fi
1505 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1506 echo "${ECHO_T}$ac_cv_host" >&6
1507 host=$ac_cv_host
1508 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1509 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1510 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1511
1512
1513 echo "$as_me:$LINENO: checking target system type" >&5
1514 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1515 if test "${ac_cv_target+set}" = set; then
1516   echo $ECHO_N "(cached) $ECHO_C" >&6
1517 else
1518   ac_cv_target_alias=$target_alias
1519 test "x$ac_cv_target_alias" = "x" &&
1520   ac_cv_target_alias=$ac_cv_host_alias
1521 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1522   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1523 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1524    { (exit 1); exit 1; }; }
1525
1526 fi
1527 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1528 echo "${ECHO_T}$ac_cv_target" >&6
1529 target=$ac_cv_target
1530 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1531 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1532 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1533
1534
1535 # The aliases save the names the user supplied, while $host etc.
1536 # will get canonicalized.
1537 test -n "$target_alias" &&
1538   test "$program_prefix$program_suffix$program_transform_name" = \
1539     NONENONEs,x,x, &&
1540   program_prefix=${target_alias}-
1541 am__api_version="1.7"
1542 # Find a good install program.  We prefer a C program (faster),
1543 # so one script is as good as another.  But avoid the broken or
1544 # incompatible versions:
1545 # SysV /etc/install, /usr/sbin/install
1546 # SunOS /usr/etc/install
1547 # IRIX /sbin/install
1548 # AIX /bin/install
1549 # AmigaOS /C/install, which installs bootblocks on floppy discs
1550 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1551 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1552 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1553 # OS/2's system install, which has a completely different semantic
1554 # ./install, which can be erroneously created by make from ./install.sh.
1555 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1556 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1557 if test -z "$INSTALL"; then
1558 if test "${ac_cv_path_install+set}" = set; then
1559   echo $ECHO_N "(cached) $ECHO_C" >&6
1560 else
1561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562 for as_dir in $PATH
1563 do
1564   IFS=$as_save_IFS
1565   test -z "$as_dir" && as_dir=.
1566   # Account for people who put trailing slashes in PATH elements.
1567 case $as_dir/ in
1568   ./ | .// | /cC/* | \
1569   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1570   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1571   /usr/ucb/* ) ;;
1572   *)
1573     # OSF1 and SCO ODT 3.0 have their own names for install.
1574     # Don't use installbsd from OSF since it installs stuff as root
1575     # by default.
1576     for ac_prog in ginstall scoinst install; do
1577       for ac_exec_ext in '' $ac_executable_extensions; do
1578         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1579           if test $ac_prog = install &&
1580             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1581             # AIX install.  It has an incompatible calling convention.
1582             :
1583           elif test $ac_prog = install &&
1584             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1585             # program-specific install script used by HP pwplus--don't use.
1586             :
1587           else
1588             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1589             break 3
1590           fi
1591         fi
1592       done
1593     done
1594     ;;
1595 esac
1596 done
1597
1598
1599 fi
1600   if test "${ac_cv_path_install+set}" = set; then
1601     INSTALL=$ac_cv_path_install
1602   else
1603     # As a last resort, use the slow shell script.  We don't cache a
1604     # path for INSTALL within a source directory, because that will
1605     # break other packages using the cache if that directory is
1606     # removed, or if the path is relative.
1607     INSTALL=$ac_install_sh
1608   fi
1609 fi
1610 echo "$as_me:$LINENO: result: $INSTALL" >&5
1611 echo "${ECHO_T}$INSTALL" >&6
1612
1613 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1614 # It thinks the first close brace ends the variable substitution.
1615 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1616
1617 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1618
1619 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1620
1621 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1622 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1623 # Just in case
1624 sleep 1
1625 echo timestamp > conftest.file
1626 # Do `set' in a subshell so we don't clobber the current shell's
1627 # arguments.  Must try -L first in case configure is actually a
1628 # symlink; some systems play weird games with the mod time of symlinks
1629 # (eg FreeBSD returns the mod time of the symlink's containing
1630 # directory).
1631 if (
1632    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1633    if test "$*" = "X"; then
1634       # -L didn't work.
1635       set X `ls -t $srcdir/configure conftest.file`
1636    fi
1637    rm -f conftest.file
1638    if test "$*" != "X $srcdir/configure conftest.file" \
1639       && test "$*" != "X conftest.file $srcdir/configure"; then
1640
1641       # If neither matched, then we have a broken ls.  This can happen
1642       # if, for instance, CONFIG_SHELL is bash and it inherits a
1643       # broken ls alias from the environment.  This has actually
1644       # happened.  Such a system could not be considered "sane".
1645       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1646 alias in your environment" >&5
1647 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1648 alias in your environment" >&2;}
1649    { (exit 1); exit 1; }; }
1650    fi
1651
1652    test "$2" = conftest.file
1653    )
1654 then
1655    # Ok.
1656    :
1657 else
1658    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1659 Check your system clock" >&5
1660 echo "$as_me: error: newly created file is older than distributed files!
1661 Check your system clock" >&2;}
1662    { (exit 1); exit 1; }; }
1663 fi
1664 echo "$as_me:$LINENO: result: yes" >&5
1665 echo "${ECHO_T}yes" >&6
1666 test "$program_prefix" != NONE &&
1667   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1668 # Use a double $ so make ignores it.
1669 test "$program_suffix" != NONE &&
1670   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1671 # Double any \ or $.  echo might interpret backslashes.
1672 # By default was `s,x,x', remove it if useless.
1673 cat <<\_ACEOF >conftest.sed
1674 s/[\\$]/&&/g;s/;s,x,x,$//
1675 _ACEOF
1676 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1677 rm conftest.sed
1678
1679
1680 # expand $ac_aux_dir to an absolute path
1681 am_aux_dir=`cd $ac_aux_dir && pwd`
1682
1683 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1684 # Use eval to expand $SHELL
1685 if eval "$MISSING --run true"; then
1686   am_missing_run="$MISSING --run "
1687 else
1688   am_missing_run=
1689   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1690 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1691 fi
1692
1693 for ac_prog in gawk mawk nawk awk
1694 do
1695   # Extract the first word of "$ac_prog", so it can be a program name with args.
1696 set dummy $ac_prog; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_AWK+set}" = set; then
1700   echo $ECHO_N "(cached) $ECHO_C" >&6
1701 else
1702   if test -n "$AWK"; then
1703   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1704 else
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 for as_dir in $PATH
1707 do
1708   IFS=$as_save_IFS
1709   test -z "$as_dir" && as_dir=.
1710   for ac_exec_ext in '' $ac_executable_extensions; do
1711   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712     ac_cv_prog_AWK="$ac_prog"
1713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714     break 2
1715   fi
1716 done
1717 done
1718
1719 fi
1720 fi
1721 AWK=$ac_cv_prog_AWK
1722 if test -n "$AWK"; then
1723   echo "$as_me:$LINENO: result: $AWK" >&5
1724 echo "${ECHO_T}$AWK" >&6
1725 else
1726   echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1728 fi
1729
1730   test -n "$AWK" && break
1731 done
1732
1733 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1734 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1735 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1736 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1737   echo $ECHO_N "(cached) $ECHO_C" >&6
1738 else
1739   cat >conftest.make <<\_ACEOF
1740 all:
1741         @echo 'ac_maketemp="$(MAKE)"'
1742 _ACEOF
1743 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1744 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1745 if test -n "$ac_maketemp"; then
1746   eval ac_cv_prog_make_${ac_make}_set=yes
1747 else
1748   eval ac_cv_prog_make_${ac_make}_set=no
1749 fi
1750 rm -f conftest.make
1751 fi
1752 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1753   echo "$as_me:$LINENO: result: yes" >&5
1754 echo "${ECHO_T}yes" >&6
1755   SET_MAKE=
1756 else
1757   echo "$as_me:$LINENO: result: no" >&5
1758 echo "${ECHO_T}no" >&6
1759   SET_MAKE="MAKE=${MAKE-make}"
1760 fi
1761
1762 rm -rf .tst 2>/dev/null
1763 mkdir .tst 2>/dev/null
1764 if test -d .tst; then
1765   am__leading_dot=.
1766 else
1767   am__leading_dot=_
1768 fi
1769 rmdir .tst 2>/dev/null
1770
1771  # test to see if srcdir already configured
1772 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1773    test -f $srcdir/config.status; then
1774   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1775 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1776    { (exit 1); exit 1; }; }
1777 fi
1778
1779 # test whether we have cygpath
1780 if test -z "$CYGPATH_W"; then
1781   if (cygpath --version) >/dev/null 2>/dev/null; then
1782     CYGPATH_W='cygpath -w'
1783   else
1784     CYGPATH_W=echo
1785   fi
1786 fi
1787
1788
1789 # Define the identity of the package.
1790  PACKAGE='TiMidity++'
1791  VERSION='2.13.1'
1792
1793
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE "$PACKAGE"
1796 _ACEOF
1797
1798
1799 cat >>confdefs.h <<_ACEOF
1800 #define VERSION "$VERSION"
1801 _ACEOF
1802
1803 # Some tools Automake needs.
1804
1805 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1806
1807
1808 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1809
1810
1811 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1812
1813
1814 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1815
1816
1817 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1818
1819
1820 AMTAR=${AMTAR-"${am_missing_run}tar"}
1821
1822 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1823
1824 # Installed binaries are usually stripped using `strip' when the user
1825 # run `make install-strip'.  However `strip' might not be the right
1826 # tool to use in cross-compilation environments, therefore Automake
1827 # will honor the `STRIP' environment variable to overrule this program.
1828 if test "$cross_compiling" != no; then
1829   if test -n "$ac_tool_prefix"; then
1830   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1831 set dummy ${ac_tool_prefix}strip; ac_word=$2
1832 echo "$as_me:$LINENO: checking for $ac_word" >&5
1833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1834 if test "${ac_cv_prog_STRIP+set}" = set; then
1835   echo $ECHO_N "(cached) $ECHO_C" >&6
1836 else
1837   if test -n "$STRIP"; then
1838   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1839 else
1840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1841 for as_dir in $PATH
1842 do
1843   IFS=$as_save_IFS
1844   test -z "$as_dir" && as_dir=.
1845   for ac_exec_ext in '' $ac_executable_extensions; do
1846   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1847     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1849     break 2
1850   fi
1851 done
1852 done
1853
1854 fi
1855 fi
1856 STRIP=$ac_cv_prog_STRIP
1857 if test -n "$STRIP"; then
1858   echo "$as_me:$LINENO: result: $STRIP" >&5
1859 echo "${ECHO_T}$STRIP" >&6
1860 else
1861   echo "$as_me:$LINENO: result: no" >&5
1862 echo "${ECHO_T}no" >&6
1863 fi
1864
1865 fi
1866 if test -z "$ac_cv_prog_STRIP"; then
1867   ac_ct_STRIP=$STRIP
1868   # Extract the first word of "strip", so it can be a program name with args.
1869 set dummy strip; ac_word=$2
1870 echo "$as_me:$LINENO: checking for $ac_word" >&5
1871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1872 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1873   echo $ECHO_N "(cached) $ECHO_C" >&6
1874 else
1875   if test -n "$ac_ct_STRIP"; then
1876   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1877 else
1878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1879 for as_dir in $PATH
1880 do
1881   IFS=$as_save_IFS
1882   test -z "$as_dir" && as_dir=.
1883   for ac_exec_ext in '' $ac_executable_extensions; do
1884   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1885     ac_cv_prog_ac_ct_STRIP="strip"
1886     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1887     break 2
1888   fi
1889 done
1890 done
1891
1892   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1893 fi
1894 fi
1895 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1896 if test -n "$ac_ct_STRIP"; then
1897   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1898 echo "${ECHO_T}$ac_ct_STRIP" >&6
1899 else
1900   echo "$as_me:$LINENO: result: no" >&5
1901 echo "${ECHO_T}no" >&6
1902 fi
1903
1904   STRIP=$ac_ct_STRIP
1905 else
1906   STRIP="$ac_cv_prog_STRIP"
1907 fi
1908
1909 fi
1910 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1911
1912 # We need awk for the "check" target.  The system "awk" is bad on
1913 # some platforms.
1914
1915
1916
1917
1918                     ac_config_headers="$ac_config_headers config.h interface.h"
1919
1920 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1921 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1922     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1923 if test "${enable_maintainer_mode+set}" = set; then
1924   enableval="$enable_maintainer_mode"
1925   USE_MAINTAINER_MODE=$enableval
1926 else
1927   USE_MAINTAINER_MODE=no
1928 fi;
1929   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1930 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1931
1932
1933 if test $USE_MAINTAINER_MODE = yes; then
1934   MAINTAINER_MODE_TRUE=
1935   MAINTAINER_MODE_FALSE='#'
1936 else
1937   MAINTAINER_MODE_TRUE='#'
1938   MAINTAINER_MODE_FALSE=
1939 fi
1940
1941   MAINT=$MAINTAINER_MODE_TRUE
1942
1943
1944
1945 SHELL=${CONFIG_SHELL-"/bin/sh"}
1946 WISH=${WISH-"wish"}
1947
1948 echo "$as_me:$LINENO: checking whether grep returns status" >&5
1949 echo $ECHO_N "checking whether grep returns status... $ECHO_C" >&6
1950 echo "grimblepritz" >grimble
1951 if grep blurfldyick grimble >/dev/null 2>&1 ; then
1952         contains="./contains"
1953 elif grep grimblepritz grimble >/dev/null 2>&1 ; then
1954         contains=grep
1955 else
1956         contains="./contains"
1957 fi
1958 rm -f grimble
1959 case "$contains" in
1960 grep)   echo "$as_me:$LINENO: result: yes" >&5
1961 echo "${ECHO_T}yes" >&6
1962         ;;
1963 ./contains)
1964         echo "$as_me:$LINENO: result: AGH!  Grep doesn't return a status.  Attempting remedial action." >&5
1965 echo "${ECHO_T}AGH!  Grep doesn't return a status.  Attempting remedial action." >&6
1966         cat >./contains <<'EOSS'
1967 grep "$1" "$2" >.greptmp && cat .greptmp && test -s .greptmp
1968 EOSS
1969         chmod +x "./contains"
1970         ;;
1971 esac
1972
1973
1974 # Check for compiler options -- such as debug flags.
1975
1976 echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
1977 echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6
1978 # Check whether --enable-debug or --disable-debug was given.
1979 if test "${enable_debug+set}" = set; then
1980   enableval="$enable_debug"
1981   timidity_cv_debug="yes"
1982 else
1983   timidity_cv_debug="no"
1984 fi;
1985 if test "x$timidity_cv_debug" = "xyes"; then
1986
1987 cat >>confdefs.h <<\_ACEOF
1988 #define DEBUG 1
1989 _ACEOF
1990
1991   CFLAGS=${CFLAGS-"-g"}
1992 fi
1993 if test "x$timidity_cv_debug" = "xno"; then
1994
1995 cat >>confdefs.h <<\_ACEOF
1996 #define NDEBUG 1
1997 _ACEOF
1998
1999 fi
2000 echo "$as_me:$LINENO: result: $timidity_cv_debug" >&5
2001 echo "${ECHO_T}$timidity_cv_debug" >&6
2002
2003 CFLAGS=${CFLAGS-"-O2"}
2004
2005 if test "x$with_x" = x; then
2006   with_x=yes
2007 else
2008   x_config_flag=yes
2009 fi
2010
2011 # Checking gcc environment
2012 for i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do
2013   LDFLAGS="$LDFLAGS -L${i}"
2014 done
2015 for i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do
2016   CPPFLAGS="$CPPFLAGS -I${i}"
2017 done
2018
2019 # add $prefix if specified.
2020 if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then
2021   LDFLAGS="-L$prefix/lib $LDFLAGS"
2022   SHLDFLAGS="-L$prefix/lib $SHLDFLAGS"
2023   CPPFLAGS="-I$prefix/include $CPPFLAGS"
2024 fi
2025
2026
2027 # Check whether --with-includes or --without-includes was given.
2028 if test "${with_includes+set}" = set; then
2029   withval="$with_includes"
2030    j=' '
2031     for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2032       j="${j}-I${i} "
2033     done
2034     CPPFLAGS="$j$CPPFLAGS"
2035
2036 fi;
2037
2038
2039 # Check whether --with-libraries or --without-libraries was given.
2040 if test "${with_libraries+set}" = set; then
2041   withval="$with_libraries"
2042    j=' '
2043     for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2044       j="${j}-L${i} "
2045     done
2046     LDFLAGS="$j$LDFLAGS"
2047
2048 fi;
2049
2050
2051
2052 # Check whether --with-default-path or --without-default-path was given.
2053 if test "${with_default_path+set}" = set; then
2054   withval="$with_default_path"
2055   pkgdatadir=$withval
2056 else
2057
2058    if test "x$prefix" != "xNONE"; then
2059       pkgdatadir='${prefix}/share/timidity'
2060    else
2061       pkgdatadir='/usr/local/share/timidity'
2062    fi
2063
2064 fi;
2065 tmpdefpath="`eval \"echo ${pkgdatadir}\"`"
2066
2067 cat >>confdefs.h <<_ACEOF
2068 #define DEFAULT_PATH "$tmpdefpath"
2069 _ACEOF
2070
2071
2072 cat >>confdefs.h <<\_ACEOF
2073 #define PKGDATADIR DEFAULT_PATH
2074 _ACEOF
2075
2076
2077
2078 # Check whether --with-module-dir or --without-module-dir was given.
2079 if test "${with_module_dir+set}" = set; then
2080   withval="$with_module_dir"
2081   pkglibdir=$withval
2082 else
2083
2084    if test "x$prefix" != "xNONE"; then
2085       pkglibdir='${prefix}/lib/timidity'
2086    else
2087       pkglibdir='/usr/local/lib/timidity'
2088    fi
2089
2090 fi;
2091 tmplibdir="`eval \"echo ${pkglibdir}\"`"
2092
2093 cat >>confdefs.h <<_ACEOF
2094 #define PKGLIBDIR "$tmplibdir"
2095 _ACEOF
2096
2097
2098
2099 # Checks for programs.
2100
2101 # Check whether --with-lispdir or --without-lispdir was given.
2102 if test "${with_lispdir+set}" = set; then
2103   withval="$with_lispdir"
2104    lispdir="$withval"
2105    echo "$as_me:$LINENO: checking where .elc files should go" >&5
2106 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2107    echo "$as_me:$LINENO: result: $lispdir" >&5
2108 echo "${ECHO_T}$lispdir" >&6
2109 else
2110
2111  # If set to t, that means we are running in a shell under Emacs.
2112  # If you have an Emacs named "t", then use the full path.
2113  test x"$EMACS" = xt && EMACS=
2114  for ac_prog in emacs xemacs
2115 do
2116   # Extract the first word of "$ac_prog", so it can be a program name with args.
2117 set dummy $ac_prog; ac_word=$2
2118 echo "$as_me:$LINENO: checking for $ac_word" >&5
2119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2120 if test "${ac_cv_prog_EMACS+set}" = set; then
2121   echo $ECHO_N "(cached) $ECHO_C" >&6
2122 else
2123   if test -n "$EMACS"; then
2124   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2125 else
2126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127 for as_dir in $PATH
2128 do
2129   IFS=$as_save_IFS
2130   test -z "$as_dir" && as_dir=.
2131   for ac_exec_ext in '' $ac_executable_extensions; do
2132   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2133     ac_cv_prog_EMACS="$ac_prog"
2134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135     break 2
2136   fi
2137 done
2138 done
2139
2140 fi
2141 fi
2142 EMACS=$ac_cv_prog_EMACS
2143 if test -n "$EMACS"; then
2144   echo "$as_me:$LINENO: result: $EMACS" >&5
2145 echo "${ECHO_T}$EMACS" >&6
2146 else
2147   echo "$as_me:$LINENO: result: no" >&5
2148 echo "${ECHO_T}no" >&6
2149 fi
2150
2151   test -n "$EMACS" && break
2152 done
2153 test -n "$EMACS" || EMACS="no"
2154
2155  if test $EMACS != "no"; then
2156    if test x${lispdir+set} != xset; then
2157      echo "$as_me:$LINENO: checking where .elc files should go" >&5
2158 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
2159 if test "${am_cv_lispdir+set}" = set; then
2160   echo $ECHO_N "(cached) $ECHO_C" >&6
2161 else
2162   # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
2163   # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
2164   #  which is non-obvious for non-emacs users.
2165   # Redirecting /dev/null should help a bit; pity we can't detect "broken"
2166   #  emacsen earlier and avoid running this altogether.
2167   { (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
2168   ($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
2169   ac_status=$?
2170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171   (exit $ac_status); }
2172         am_cv_lispdir=`sed -n \
2173        -e 's,/$,,' \
2174        -e '/.*\/lib\/x\?emacs\/site-lisp$/{s,.*/lib/\(x\?emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
2175        -e '/.*\/share\/x\?emacs\/site-lisp$/{s,.*/share/\(x\?emacs/site-lisp\),${datadir}/\1,;p;q;}' \
2176        conftest.out`
2177        rm conftest.out
2178        if test -z "$am_cv_lispdir"; then
2179          am_cv_lispdir='${datadir}/emacs/site-lisp'
2180        fi
2181
2182 fi
2183 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2184 echo "${ECHO_T}$am_cv_lispdir" >&6
2185      lispdir="$am_cv_lispdir"
2186    fi
2187  fi
2188
2189 fi;
2190
2191
2192 ac_ext=c
2193 ac_cpp='$CPP $CPPFLAGS'
2194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2197 if test -n "$ac_tool_prefix"; then
2198   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2199 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2200 echo "$as_me:$LINENO: checking for $ac_word" >&5
2201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2202 if test "${ac_cv_prog_CC+set}" = set; then
2203   echo $ECHO_N "(cached) $ECHO_C" >&6
2204 else
2205   if test -n "$CC"; then
2206   ac_cv_prog_CC="$CC" # Let the user override the test.
2207 else
2208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209 for as_dir in $PATH
2210 do
2211   IFS=$as_save_IFS
2212   test -z "$as_dir" && as_dir=.
2213   for ac_exec_ext in '' $ac_executable_extensions; do
2214   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2215     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2216     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2217     break 2
2218   fi
2219 done
2220 done
2221
2222 fi
2223 fi
2224 CC=$ac_cv_prog_CC
2225 if test -n "$CC"; then
2226   echo "$as_me:$LINENO: result: $CC" >&5
2227 echo "${ECHO_T}$CC" >&6
2228 else
2229   echo "$as_me:$LINENO: result: no" >&5
2230 echo "${ECHO_T}no" >&6
2231 fi
2232
2233 fi
2234 if test -z "$ac_cv_prog_CC"; then
2235   ac_ct_CC=$CC
2236   # Extract the first word of "gcc", so it can be a program name with args.
2237 set dummy gcc; ac_word=$2
2238 echo "$as_me:$LINENO: checking for $ac_word" >&5
2239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2240 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2241   echo $ECHO_N "(cached) $ECHO_C" >&6
2242 else
2243   if test -n "$ac_ct_CC"; then
2244   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2245 else
2246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2247 for as_dir in $PATH
2248 do
2249   IFS=$as_save_IFS
2250   test -z "$as_dir" && as_dir=.
2251   for ac_exec_ext in '' $ac_executable_extensions; do
2252   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2253     ac_cv_prog_ac_ct_CC="gcc"
2254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2255     break 2
2256   fi
2257 done
2258 done
2259
2260 fi
2261 fi
2262 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2263 if test -n "$ac_ct_CC"; then
2264   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2265 echo "${ECHO_T}$ac_ct_CC" >&6
2266 else
2267   echo "$as_me:$LINENO: result: no" >&5
2268 echo "${ECHO_T}no" >&6
2269 fi
2270
2271   CC=$ac_ct_CC
2272 else
2273   CC="$ac_cv_prog_CC"
2274 fi
2275
2276 if test -z "$CC"; then
2277   if test -n "$ac_tool_prefix"; then
2278   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2279 set dummy ${ac_tool_prefix}cc; ac_word=$2
2280 echo "$as_me:$LINENO: checking for $ac_word" >&5
2281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2282 if test "${ac_cv_prog_CC+set}" = set; then
2283   echo $ECHO_N "(cached) $ECHO_C" >&6
2284 else
2285   if test -n "$CC"; then
2286   ac_cv_prog_CC="$CC" # Let the user override the test.
2287 else
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
2290 do
2291   IFS=$as_save_IFS
2292   test -z "$as_dir" && as_dir=.
2293   for ac_exec_ext in '' $ac_executable_extensions; do
2294   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2295     ac_cv_prog_CC="${ac_tool_prefix}cc"
2296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2297     break 2
2298   fi
2299 done
2300 done
2301
2302 fi
2303 fi
2304 CC=$ac_cv_prog_CC
2305 if test -n "$CC"; then
2306   echo "$as_me:$LINENO: result: $CC" >&5
2307 echo "${ECHO_T}$CC" >&6
2308 else
2309   echo "$as_me:$LINENO: result: no" >&5
2310 echo "${ECHO_T}no" >&6
2311 fi
2312
2313 fi
2314 if test -z "$ac_cv_prog_CC"; then
2315   ac_ct_CC=$CC
2316   # Extract the first word of "cc", so it can be a program name with args.
2317 set dummy cc; ac_word=$2
2318 echo "$as_me:$LINENO: checking for $ac_word" >&5
2319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2320 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2321   echo $ECHO_N "(cached) $ECHO_C" >&6
2322 else
2323   if test -n "$ac_ct_CC"; then
2324   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2325 else
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327 for as_dir in $PATH
2328 do
2329   IFS=$as_save_IFS
2330   test -z "$as_dir" && as_dir=.
2331   for ac_exec_ext in '' $ac_executable_extensions; do
2332   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2333     ac_cv_prog_ac_ct_CC="cc"
2334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2335     break 2
2336   fi
2337 done
2338 done
2339
2340 fi
2341 fi
2342 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2343 if test -n "$ac_ct_CC"; then
2344   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2345 echo "${ECHO_T}$ac_ct_CC" >&6
2346 else
2347   echo "$as_me:$LINENO: result: no" >&5
2348 echo "${ECHO_T}no" >&6
2349 fi
2350
2351   CC=$ac_ct_CC
2352 else
2353   CC="$ac_cv_prog_CC"
2354 fi
2355
2356 fi
2357 if test -z "$CC"; then
2358   # Extract the first word of "cc", so it can be a program name with args.
2359 set dummy cc; ac_word=$2
2360 echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2362 if test "${ac_cv_prog_CC+set}" = set; then
2363   echo $ECHO_N "(cached) $ECHO_C" >&6
2364 else
2365   if test -n "$CC"; then
2366   ac_cv_prog_CC="$CC" # Let the user override the test.
2367 else
2368   ac_prog_rejected=no
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 for as_dir in $PATH
2371 do
2372   IFS=$as_save_IFS
2373   test -z "$as_dir" && as_dir=.
2374   for ac_exec_ext in '' $ac_executable_extensions; do
2375   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2376     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2377        ac_prog_rejected=yes
2378        continue
2379      fi
2380     ac_cv_prog_CC="cc"
2381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382     break 2
2383   fi
2384 done
2385 done
2386
2387 if test $ac_prog_rejected = yes; then
2388   # We found a bogon in the path, so make sure we never use it.
2389   set dummy $ac_cv_prog_CC
2390   shift
2391   if test $# != 0; then
2392     # We chose a different compiler from the bogus one.
2393     # However, it has the same basename, so the bogon will be chosen
2394     # first if we set CC to just the basename; use the full file name.
2395     shift
2396     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2397   fi
2398 fi
2399 fi
2400 fi
2401 CC=$ac_cv_prog_CC
2402 if test -n "$CC"; then
2403   echo "$as_me:$LINENO: result: $CC" >&5
2404 echo "${ECHO_T}$CC" >&6
2405 else
2406   echo "$as_me:$LINENO: result: no" >&5
2407 echo "${ECHO_T}no" >&6
2408 fi
2409
2410 fi
2411 if test -z "$CC"; then
2412   if test -n "$ac_tool_prefix"; then
2413   for ac_prog in cl
2414   do
2415     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2416 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2417 echo "$as_me:$LINENO: checking for $ac_word" >&5
2418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2419 if test "${ac_cv_prog_CC+set}" = set; then
2420   echo $ECHO_N "(cached) $ECHO_C" >&6
2421 else
2422   if test -n "$CC"; then
2423   ac_cv_prog_CC="$CC" # Let the user override the test.
2424 else
2425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426 for as_dir in $PATH
2427 do
2428   IFS=$as_save_IFS
2429   test -z "$as_dir" && as_dir=.
2430   for ac_exec_ext in '' $ac_executable_extensions; do
2431   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2432     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2434     break 2
2435   fi
2436 done
2437 done
2438
2439 fi
2440 fi
2441 CC=$ac_cv_prog_CC
2442 if test -n "$CC"; then
2443   echo "$as_me:$LINENO: result: $CC" >&5
2444 echo "${ECHO_T}$CC" >&6
2445 else
2446   echo "$as_me:$LINENO: result: no" >&5
2447 echo "${ECHO_T}no" >&6
2448 fi
2449
2450     test -n "$CC" && break
2451   done
2452 fi
2453 if test -z "$CC"; then
2454   ac_ct_CC=$CC
2455   for ac_prog in cl
2456 do
2457   # Extract the first word of "$ac_prog", so it can be a program name with args.
2458 set dummy $ac_prog; ac_word=$2
2459 echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2461 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2462   echo $ECHO_N "(cached) $ECHO_C" >&6
2463 else
2464   if test -n "$ac_ct_CC"; then
2465   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2466 else
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 for as_dir in $PATH
2469 do
2470   IFS=$as_save_IFS
2471   test -z "$as_dir" && as_dir=.
2472   for ac_exec_ext in '' $ac_executable_extensions; do
2473   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2474     ac_cv_prog_ac_ct_CC="$ac_prog"
2475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476     break 2
2477   fi
2478 done
2479 done
2480
2481 fi
2482 fi
2483 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2484 if test -n "$ac_ct_CC"; then
2485   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2486 echo "${ECHO_T}$ac_ct_CC" >&6
2487 else
2488   echo "$as_me:$LINENO: result: no" >&5
2489 echo "${ECHO_T}no" >&6
2490 fi
2491
2492   test -n "$ac_ct_CC" && break
2493 done
2494
2495   CC=$ac_ct_CC
2496 fi
2497
2498 fi
2499
2500
2501 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2502 See \`config.log' for more details." >&5
2503 echo "$as_me: error: no acceptable C compiler found in \$PATH
2504 See \`config.log' for more details." >&2;}
2505    { (exit 1); exit 1; }; }
2506
2507 # Provide some information about the compiler.
2508 echo "$as_me:$LINENO:" \
2509      "checking for C compiler version" >&5
2510 ac_compiler=`set X $ac_compile; echo $2`
2511 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2512   (eval $ac_compiler --version </dev/null >&5) 2>&5
2513   ac_status=$?
2514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515   (exit $ac_status); }
2516 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2517   (eval $ac_compiler -v </dev/null >&5) 2>&5
2518   ac_status=$?
2519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520   (exit $ac_status); }
2521 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2522   (eval $ac_compiler -V </dev/null >&5) 2>&5
2523   ac_status=$?
2524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525   (exit $ac_status); }
2526
2527 cat >conftest.$ac_ext <<_ACEOF
2528 /* confdefs.h.  */
2529 _ACEOF
2530 cat confdefs.h >>conftest.$ac_ext
2531 cat >>conftest.$ac_ext <<_ACEOF
2532 /* end confdefs.h.  */
2533
2534 int
2535 main ()
2536 {
2537
2538   ;
2539   return 0;
2540 }
2541 _ACEOF
2542 ac_clean_files_save=$ac_clean_files
2543 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2544 # Try to create an executable without -o first, disregard a.out.
2545 # It will help us diagnose broken compilers, and finding out an intuition
2546 # of exeext.
2547 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2548 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2549 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2550 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2551   (eval $ac_link_default) 2>&5
2552   ac_status=$?
2553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554   (exit $ac_status); }; then
2555   # Find the output, starting from the most likely.  This scheme is
2556 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2557 # resort.
2558
2559 # Be careful to initialize this variable, since it used to be cached.
2560 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2561 ac_cv_exeext=
2562 # b.out is created by i960 compilers.
2563 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2564 do
2565   test -f "$ac_file" || continue
2566   case $ac_file in
2567     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2568         ;;
2569     conftest.$ac_ext )
2570         # This is the source file.
2571         ;;
2572     [ab].out )
2573         # We found the default executable, but exeext='' is most
2574         # certainly right.
2575         break;;
2576     *.* )
2577         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2578         # FIXME: I believe we export ac_cv_exeext for Libtool,
2579         # but it would be cool to find out if it's true.  Does anybody
2580         # maintain Libtool? --akim.
2581         export ac_cv_exeext
2582         break;;
2583     * )
2584         break;;
2585   esac
2586 done
2587 else
2588   echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2590
2591 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2592 See \`config.log' for more details." >&5
2593 echo "$as_me: error: C compiler cannot create executables
2594 See \`config.log' for more details." >&2;}
2595    { (exit 77); exit 77; }; }
2596 fi
2597
2598 ac_exeext=$ac_cv_exeext
2599 echo "$as_me:$LINENO: result: $ac_file" >&5
2600 echo "${ECHO_T}$ac_file" >&6
2601
2602 # Check the compiler produces executables we can run.  If not, either
2603 # the compiler is broken, or we cross compile.
2604 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2605 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2606 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2607 # If not cross compiling, check that we can run a simple program.
2608 if test "$cross_compiling" != yes; then
2609   if { ac_try='./$ac_file'
2610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611   (eval $ac_try) 2>&5
2612   ac_status=$?
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); }; }; then
2615     cross_compiling=no
2616   else
2617     if test "$cross_compiling" = maybe; then
2618         cross_compiling=yes
2619     else
2620         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2621 If you meant to cross compile, use \`--host'.
2622 See \`config.log' for more details." >&5
2623 echo "$as_me: error: cannot run C compiled programs.
2624 If you meant to cross compile, use \`--host'.
2625 See \`config.log' for more details." >&2;}
2626    { (exit 1); exit 1; }; }
2627     fi
2628   fi
2629 fi
2630 echo "$as_me:$LINENO: result: yes" >&5
2631 echo "${ECHO_T}yes" >&6
2632
2633 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2634 ac_clean_files=$ac_clean_files_save
2635 # Check the compiler produces executables we can run.  If not, either
2636 # the compiler is broken, or we cross compile.
2637 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2638 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2639 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2640 echo "${ECHO_T}$cross_compiling" >&6
2641
2642 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2643 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2645   (eval $ac_link) 2>&5
2646   ac_status=$?
2647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648   (exit $ac_status); }; then
2649   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2650 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2651 # work properly (i.e., refer to `conftest.exe'), while it won't with
2652 # `rm'.
2653 for ac_file in conftest.exe conftest conftest.*; do
2654   test -f "$ac_file" || continue
2655   case $ac_file in
2656     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2657     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2658           export ac_cv_exeext
2659           break;;
2660     * ) break;;
2661   esac
2662 done
2663 else
2664   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2665 See \`config.log' for more details." >&5
2666 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2667 See \`config.log' for more details." >&2;}
2668    { (exit 1); exit 1; }; }
2669 fi
2670
2671 rm -f conftest$ac_cv_exeext
2672 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2673 echo "${ECHO_T}$ac_cv_exeext" >&6
2674
2675 rm -f conftest.$ac_ext
2676 EXEEXT=$ac_cv_exeext
2677 ac_exeext=$EXEEXT
2678 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2679 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2680 if test "${ac_cv_objext+set}" = set; then
2681   echo $ECHO_N "(cached) $ECHO_C" >&6
2682 else
2683   cat >conftest.$ac_ext <<_ACEOF
2684 /* confdefs.h.  */
2685 _ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h.  */
2689
2690 int
2691 main ()
2692 {
2693
2694   ;
2695   return 0;
2696 }
2697 _ACEOF
2698 rm -f conftest.o conftest.obj
2699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2700   (eval $ac_compile) 2>&5
2701   ac_status=$?
2702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703   (exit $ac_status); }; then
2704   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2705   case $ac_file in
2706     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2707     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2708        break;;
2709   esac
2710 done
2711 else
2712   echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2714
2715 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2716 See \`config.log' for more details." >&5
2717 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2718 See \`config.log' for more details." >&2;}
2719    { (exit 1); exit 1; }; }
2720 fi
2721
2722 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2723 fi
2724 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2725 echo "${ECHO_T}$ac_cv_objext" >&6
2726 OBJEXT=$ac_cv_objext
2727 ac_objext=$OBJEXT
2728 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2729 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2730 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2731   echo $ECHO_N "(cached) $ECHO_C" >&6
2732 else
2733   cat >conftest.$ac_ext <<_ACEOF
2734 /* confdefs.h.  */
2735 _ACEOF
2736 cat confdefs.h >>conftest.$ac_ext
2737 cat >>conftest.$ac_ext <<_ACEOF
2738 /* end confdefs.h.  */
2739
2740 int
2741 main ()
2742 {
2743 #ifndef __GNUC__
2744        choke me
2745 #endif
2746
2747   ;
2748   return 0;
2749 }
2750 _ACEOF
2751 rm -f conftest.$ac_objext
2752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2753   (eval $ac_compile) 2>conftest.er1
2754   ac_status=$?
2755   grep -v '^ *+' conftest.er1 >conftest.err
2756   rm -f conftest.er1
2757   cat conftest.err >&5
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); } &&
2760          { ac_try='test -z "$ac_c_werror_flag"
2761                          || test ! -s conftest.err'
2762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763   (eval $ac_try) 2>&5
2764   ac_status=$?
2765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766   (exit $ac_status); }; } &&
2767          { ac_try='test -s conftest.$ac_objext'
2768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769   (eval $ac_try) 2>&5
2770   ac_status=$?
2771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772   (exit $ac_status); }; }; then
2773   ac_compiler_gnu=yes
2774 else
2775   echo "$as_me: failed program was:" >&5
2776 sed 's/^/| /' conftest.$ac_ext >&5
2777
2778 ac_compiler_gnu=no
2779 fi
2780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2781 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2782
2783 fi
2784 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2785 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2786 GCC=`test $ac_compiler_gnu = yes && echo yes`
2787 ac_test_CFLAGS=${CFLAGS+set}
2788 ac_save_CFLAGS=$CFLAGS
2789 CFLAGS="-g"
2790 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2791 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2792 if test "${ac_cv_prog_cc_g+set}" = set; then
2793   echo $ECHO_N "(cached) $ECHO_C" >&6
2794 else
2795   cat >conftest.$ac_ext <<_ACEOF
2796 /* confdefs.h.  */
2797 _ACEOF
2798 cat confdefs.h >>conftest.$ac_ext
2799 cat >>conftest.$ac_ext <<_ACEOF
2800 /* end confdefs.h.  */
2801
2802 int
2803 main ()
2804 {
2805
2806   ;
2807   return 0;
2808 }
2809 _ACEOF
2810 rm -f conftest.$ac_objext
2811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2812   (eval $ac_compile) 2>conftest.er1
2813   ac_status=$?
2814   grep -v '^ *+' conftest.er1 >conftest.err
2815   rm -f conftest.er1
2816   cat conftest.err >&5
2817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818   (exit $ac_status); } &&
2819          { ac_try='test -z "$ac_c_werror_flag"
2820                          || test ! -s conftest.err'
2821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822   (eval $ac_try) 2>&5
2823   ac_status=$?
2824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825   (exit $ac_status); }; } &&
2826          { ac_try='test -s conftest.$ac_objext'
2827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828   (eval $ac_try) 2>&5
2829   ac_status=$?
2830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831   (exit $ac_status); }; }; then
2832   ac_cv_prog_cc_g=yes
2833 else
2834   echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2836
2837 ac_cv_prog_cc_g=no
2838 fi
2839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2840 fi
2841 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2842 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2843 if test "$ac_test_CFLAGS" = set; then
2844   CFLAGS=$ac_save_CFLAGS
2845 elif test $ac_cv_prog_cc_g = yes; then
2846   if test "$GCC" = yes; then
2847     CFLAGS="-g -O2"
2848   else
2849     CFLAGS="-g"
2850   fi
2851 else
2852   if test "$GCC" = yes; then
2853     CFLAGS="-O2"
2854   else
2855     CFLAGS=
2856   fi
2857 fi
2858 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2859 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2860 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2861   echo $ECHO_N "(cached) $ECHO_C" >&6
2862 else
2863   ac_cv_prog_cc_stdc=no
2864 ac_save_CC=$CC
2865 cat >conftest.$ac_ext <<_ACEOF
2866 /* confdefs.h.  */
2867 _ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h.  */
2871 #include <stdarg.h>
2872 #include <stdio.h>
2873 #include <sys/types.h>
2874 #include <sys/stat.h>
2875 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2876 struct buf { int x; };
2877 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2878 static char *e (p, i)
2879      char **p;
2880      int i;
2881 {
2882   return p[i];
2883 }
2884 static char *f (char * (*g) (char **, int), char **p, ...)
2885 {
2886   char *s;
2887   va_list v;
2888   va_start (v,p);
2889   s = g (p, va_arg (v,int));
2890   va_end (v);
2891   return s;
2892 }
2893
2894 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2895    function prototypes and stuff, but not '\xHH' hex character constants.
2896    These don't provoke an error unfortunately, instead are silently treated
2897    as 'x'.  The following induces an error, until -std1 is added to get
2898    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2899    array size at least.  It's necessary to write '\x00'==0 to get something
2900    that's true only with -std1.  */
2901 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2902
2903 int test (int i, double x);
2904 struct s1 {int (*f) (int a);};
2905 struct s2 {int (*f) (double a);};
2906 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2907 int argc;
2908 char **argv;
2909 int
2910 main ()
2911 {
2912 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2913   ;
2914   return 0;
2915 }
2916 _ACEOF
2917 # Don't try gcc -ansi; that turns off useful extensions and
2918 # breaks some systems' header files.
2919 # AIX                   -qlanglvl=ansi
2920 # Ultrix and OSF/1      -std1
2921 # HP-UX 10.20 and later -Ae
2922 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2923 # SVR4                  -Xc -D__EXTENSIONS__
2924 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2925 do
2926   CC="$ac_save_CC $ac_arg"
2927   rm -f conftest.$ac_objext
2928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2929   (eval $ac_compile) 2>conftest.er1
2930   ac_status=$?
2931   grep -v '^ *+' conftest.er1 >conftest.err
2932   rm -f conftest.er1
2933   cat conftest.err >&5
2934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935   (exit $ac_status); } &&
2936          { ac_try='test -z "$ac_c_werror_flag"
2937                          || test ! -s conftest.err'
2938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939   (eval $ac_try) 2>&5
2940   ac_status=$?
2941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942   (exit $ac_status); }; } &&
2943          { ac_try='test -s conftest.$ac_objext'
2944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945   (eval $ac_try) 2>&5
2946   ac_status=$?
2947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948   (exit $ac_status); }; }; then
2949   ac_cv_prog_cc_stdc=$ac_arg
2950 break
2951 else
2952   echo "$as_me: failed program was:" >&5
2953 sed 's/^/| /' conftest.$ac_ext >&5
2954
2955 fi
2956 rm -f conftest.err conftest.$ac_objext
2957 done
2958 rm -f conftest.$ac_ext conftest.$ac_objext
2959 CC=$ac_save_CC
2960
2961 fi
2962
2963 case "x$ac_cv_prog_cc_stdc" in
2964   x|xno)
2965     echo "$as_me:$LINENO: result: none needed" >&5
2966 echo "${ECHO_T}none needed" >&6 ;;
2967   *)
2968     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2969 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2970     CC="$CC $ac_cv_prog_cc_stdc" ;;
2971 esac
2972
2973 # Some people use a C++ compiler to compile C.  Since we use `exit',
2974 # in C++ we need to declare it.  In case someone uses the same compiler
2975 # for both compiling C and C++ we need to have the C++ compiler decide
2976 # the declaration of exit, since it's the most demanding environment.
2977 cat >conftest.$ac_ext <<_ACEOF
2978 #ifndef __cplusplus
2979   choke me
2980 #endif
2981 _ACEOF
2982 rm -f conftest.$ac_objext
2983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2984   (eval $ac_compile) 2>conftest.er1
2985   ac_status=$?
2986   grep -v '^ *+' conftest.er1 >conftest.err
2987   rm -f conftest.er1
2988   cat conftest.err >&5
2989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990   (exit $ac_status); } &&
2991          { ac_try='test -z "$ac_c_werror_flag"
2992                          || test ! -s conftest.err'
2993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2994   (eval $ac_try) 2>&5
2995   ac_status=$?
2996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997   (exit $ac_status); }; } &&
2998          { ac_try='test -s conftest.$ac_objext'
2999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3000   (eval $ac_try) 2>&5
3001   ac_status=$?
3002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003   (exit $ac_status); }; }; then
3004   for ac_declaration in \
3005    '' \
3006    'extern "C" void std::exit (int) throw (); using std::exit;' \
3007    'extern "C" void std::exit (int); using std::exit;' \
3008    'extern "C" void exit (int) throw ();' \
3009    'extern "C" void exit (int);' \
3010    'void exit (int);'
3011 do
3012   cat >conftest.$ac_ext <<_ACEOF
3013 /* confdefs.h.  */
3014 _ACEOF
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h.  */
3018 $ac_declaration
3019 #include <stdlib.h>
3020 int
3021 main ()
3022 {
3023 exit (42);
3024   ;
3025   return 0;
3026 }
3027 _ACEOF
3028 rm -f conftest.$ac_objext
3029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3030   (eval $ac_compile) 2>conftest.er1
3031   ac_status=$?
3032   grep -v '^ *+' conftest.er1 >conftest.err
3033   rm -f conftest.er1
3034   cat conftest.err >&5
3035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036   (exit $ac_status); } &&
3037          { ac_try='test -z "$ac_c_werror_flag"
3038                          || test ! -s conftest.err'
3039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040   (eval $ac_try) 2>&5
3041   ac_status=$?
3042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043   (exit $ac_status); }; } &&
3044          { ac_try='test -s conftest.$ac_objext'
3045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3046   (eval $ac_try) 2>&5
3047   ac_status=$?
3048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049   (exit $ac_status); }; }; then
3050   :
3051 else
3052   echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3054
3055 continue
3056 fi
3057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3058   cat >conftest.$ac_ext <<_ACEOF
3059 /* confdefs.h.  */
3060 _ACEOF
3061 cat confdefs.h >>conftest.$ac_ext
3062 cat >>conftest.$ac_ext <<_ACEOF
3063 /* end confdefs.h.  */
3064 $ac_declaration
3065 int
3066 main ()
3067 {
3068 exit (42);
3069   ;
3070   return 0;
3071 }
3072 _ACEOF
3073 rm -f conftest.$ac_objext
3074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3075   (eval $ac_compile) 2>conftest.er1
3076   ac_status=$?
3077   grep -v '^ *+' conftest.er1 >conftest.err
3078   rm -f conftest.er1
3079   cat conftest.err >&5
3080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081   (exit $ac_status); } &&
3082          { ac_try='test -z "$ac_c_werror_flag"
3083                          || test ! -s conftest.err'
3084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085   (eval $ac_try) 2>&5
3086   ac_status=$?
3087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088   (exit $ac_status); }; } &&
3089          { ac_try='test -s conftest.$ac_objext'
3090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3091   (eval $ac_try) 2>&5
3092   ac_status=$?
3093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094   (exit $ac_status); }; }; then
3095   break
3096 else
3097   echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3099
3100 fi
3101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3102 done
3103 rm -f conftest*
3104 if test -n "$ac_declaration"; then
3105   echo '#ifdef __cplusplus' >>confdefs.h
3106   echo $ac_declaration      >>confdefs.h
3107   echo '#endif'             >>confdefs.h
3108 fi
3109
3110 else
3111   echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3113
3114 fi
3115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3116 ac_ext=c
3117 ac_cpp='$CPP $CPPFLAGS'
3118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3121 DEPDIR="${am__leading_dot}deps"
3122
3123           ac_config_commands="$ac_config_commands depfiles"
3124
3125
3126 am_make=${MAKE-make}
3127 cat > confinc << 'END'
3128 am__doit:
3129         @echo done
3130 .PHONY: am__doit
3131 END
3132 # If we don't find an include directive, just comment out the code.
3133 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3134 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3135 am__include="#"
3136 am__quote=
3137 _am_result=none
3138 # First try GNU make style include.
3139 echo "include confinc" > confmf
3140 # We grep out `Entering directory' and `Leaving directory'
3141 # messages which can occur if `w' ends up in MAKEFLAGS.
3142 # In particular we don't look at `^make:' because GNU make might
3143 # be invoked under some other name (usually "gmake"), in which
3144 # case it prints its new name instead of `make'.
3145 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3146    am__include=include
3147    am__quote=
3148    _am_result=GNU
3149 fi
3150 # Now try BSD make style include.
3151 if test "$am__include" = "#"; then
3152    echo '.include "confinc"' > confmf
3153    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3154       am__include=.include
3155       am__quote="\""
3156       _am_result=BSD
3157    fi
3158 fi
3159
3160
3161 echo "$as_me:$LINENO: result: $_am_result" >&5
3162 echo "${ECHO_T}$_am_result" >&6
3163 rm -f confinc confmf
3164
3165 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3166 if test "${enable_dependency_tracking+set}" = set; then
3167   enableval="$enable_dependency_tracking"
3168
3169 fi;
3170 if test "x$enable_dependency_tracking" != xno; then
3171   am_depcomp="$ac_aux_dir/depcomp"
3172   AMDEPBACKSLASH='\'
3173 fi
3174
3175
3176 if test "x$enable_dependency_tracking" != xno; then
3177   AMDEP_TRUE=
3178   AMDEP_FALSE='#'
3179 else
3180   AMDEP_TRUE='#'
3181   AMDEP_FALSE=
3182 fi
3183
3184
3185
3186
3187 depcc="$CC"   am_compiler_list=
3188
3189 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3190 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3191 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3192   echo $ECHO_N "(cached) $ECHO_C" >&6
3193 else
3194   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3195   # We make a subdir and do the tests there.  Otherwise we can end up
3196   # making bogus files that we don't know about and never remove.  For
3197   # instance it was reported that on HP-UX the gcc test will end up
3198   # making a dummy file named `D' -- because `-MD' means `put the output
3199   # in D'.
3200   mkdir conftest.dir
3201   # Copy depcomp to subdir because otherwise we won't find it if we're
3202   # using a relative directory.
3203   cp "$am_depcomp" conftest.dir
3204   cd conftest.dir
3205   # We will build objects and dependencies in a subdirectory because
3206   # it helps to detect inapplicable dependency modes.  For instance
3207   # both Tru64's cc and ICC support -MD to output dependencies as a
3208   # side effect of compilation, but ICC will put the dependencies in
3209   # the current directory while Tru64 will put them in the object
3210   # directory.
3211   mkdir sub
3212
3213   am_cv_CC_dependencies_compiler_type=none
3214   if test "$am_compiler_list" = ""; then
3215      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3216   fi
3217   for depmode in $am_compiler_list; do
3218     # Setup a source with many dependencies, because some compilers
3219     # like to wrap large dependency lists on column 80 (with \), and
3220     # we should not choose a depcomp mode which is confused by this.
3221     #
3222     # We need to recreate these files for each test, as the compiler may
3223     # overwrite some of them when testing with obscure command lines.
3224     # This happens at least with the AIX C compiler.
3225     : > sub/conftest.c
3226     for i in 1 2 3 4 5 6; do
3227       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3228       : > sub/conftst$i.h
3229     done
3230     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3231
3232     case $depmode in
3233     nosideeffect)
3234       # after this tag, mechanisms are not by side-effect, so they'll
3235       # only be used when explicitly requested
3236       if test "x$enable_dependency_tracking" = xyes; then
3237         continue
3238       else
3239         break
3240       fi
3241       ;;
3242     none) break ;;
3243     esac
3244     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3245     # mode.  It turns out that the SunPro C++ compiler does not properly
3246     # handle `-M -o', and we need to detect this.
3247     if depmode=$depmode \
3248        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3249        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3250        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3251          >/dev/null 2>conftest.err &&
3252        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3253        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3254        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3255       # icc doesn't choke on unknown options, it will just issue warnings
3256       # (even with -Werror).  So we grep stderr for any message
3257       # that says an option was ignored.
3258       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3259         am_cv_CC_dependencies_compiler_type=$depmode
3260         break
3261       fi
3262     fi
3263   done
3264
3265   cd ..
3266   rm -rf conftest.dir
3267 else
3268   am_cv_CC_dependencies_compiler_type=none
3269 fi
3270
3271 fi
3272 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3273 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3274 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3275
3276
3277
3278 if
3279   test "x$enable_dependency_tracking" != xno \
3280   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3281   am__fastdepCC_TRUE=
3282   am__fastdepCC_FALSE='#'
3283 else
3284   am__fastdepCC_TRUE='#'
3285   am__fastdepCC_FALSE=
3286 fi
3287
3288
3289
3290 ac_ext=c
3291 ac_cpp='$CPP $CPPFLAGS'
3292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3295 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3296 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3297 # On Suns, sometimes $CPP names a directory.
3298 if test -n "$CPP" && test -d "$CPP"; then
3299   CPP=
3300 fi
3301 if test -z "$CPP"; then
3302   if test "${ac_cv_prog_CPP+set}" = set; then
3303   echo $ECHO_N "(cached) $ECHO_C" >&6
3304 else
3305       # Double quotes because CPP needs to be expanded
3306     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3307     do
3308       ac_preproc_ok=false
3309 for ac_c_preproc_warn_flag in '' yes
3310 do
3311   # Use a header file that comes with gcc, so configuring glibc
3312   # with a fresh cross-compiler works.
3313   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3314   # <limits.h> exists even on freestanding compilers.
3315   # On the NeXT, cc -E runs the code through the compiler's parser,
3316   # not just through cpp. "Syntax error" is here to catch this case.
3317   cat >conftest.$ac_ext <<_ACEOF
3318 /* confdefs.h.  */
3319 _ACEOF
3320 cat confdefs.h >>conftest.$ac_ext
3321 cat >>conftest.$ac_ext <<_ACEOF
3322 /* end confdefs.h.  */
3323 #ifdef __STDC__
3324 # include <limits.h>
3325 #else
3326 # include <assert.h>
3327 #endif
3328                      Syntax error
3329 _ACEOF
3330 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3331   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3332   ac_status=$?
3333   grep -v '^ *+' conftest.er1 >conftest.err
3334   rm -f conftest.er1
3335   cat conftest.err >&5
3336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337   (exit $ac_status); } >/dev/null; then
3338   if test -s conftest.err; then
3339     ac_cpp_err=$ac_c_preproc_warn_flag
3340     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3341   else
3342     ac_cpp_err=
3343   fi
3344 else
3345   ac_cpp_err=yes
3346 fi
3347 if test -z "$ac_cpp_err"; then
3348   :
3349 else
3350   echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3352
3353   # Broken: fails on valid input.
3354 continue
3355 fi
3356 rm -f conftest.err conftest.$ac_ext
3357
3358   # OK, works on sane cases.  Now check whether non-existent headers
3359   # can be detected and how.
3360   cat >conftest.$ac_ext <<_ACEOF
3361 /* confdefs.h.  */
3362 _ACEOF
3363 cat confdefs.h >>conftest.$ac_ext
3364 cat >>conftest.$ac_ext <<_ACEOF
3365 /* end confdefs.h.  */
3366 #include <ac_nonexistent.h>
3367 _ACEOF
3368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3369   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3370   ac_status=$?
3371   grep -v '^ *+' conftest.er1 >conftest.err
3372   rm -f conftest.er1
3373   cat conftest.err >&5
3374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375   (exit $ac_status); } >/dev/null; then
3376   if test -s conftest.err; then
3377     ac_cpp_err=$ac_c_preproc_warn_flag
3378     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3379   else
3380     ac_cpp_err=
3381   fi
3382 else
3383   ac_cpp_err=yes
3384 fi
3385 if test -z "$ac_cpp_err"; then
3386   # Broken: success on invalid input.
3387 continue
3388 else
3389   echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3391
3392   # Passes both tests.
3393 ac_preproc_ok=:
3394 break
3395 fi
3396 rm -f conftest.err conftest.$ac_ext
3397
3398 done
3399 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3400 rm -f conftest.err conftest.$ac_ext
3401 if $ac_preproc_ok; then
3402   break
3403 fi
3404
3405     done
3406     ac_cv_prog_CPP=$CPP
3407
3408 fi
3409   CPP=$ac_cv_prog_CPP
3410 else
3411   ac_cv_prog_CPP=$CPP
3412 fi
3413 echo "$as_me:$LINENO: result: $CPP" >&5
3414 echo "${ECHO_T}$CPP" >&6
3415 ac_preproc_ok=false
3416 for ac_c_preproc_warn_flag in '' yes
3417 do
3418   # Use a header file that comes with gcc, so configuring glibc
3419   # with a fresh cross-compiler works.
3420   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3421   # <limits.h> exists even on freestanding compilers.
3422   # On the NeXT, cc -E runs the code through the compiler's parser,
3423   # not just through cpp. "Syntax error" is here to catch this case.
3424   cat >conftest.$ac_ext <<_ACEOF
3425 /* confdefs.h.  */
3426 _ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h.  */
3430 #ifdef __STDC__
3431 # include <limits.h>
3432 #else
3433 # include <assert.h>
3434 #endif
3435                      Syntax error
3436 _ACEOF
3437 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3438   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3439   ac_status=$?
3440   grep -v '^ *+' conftest.er1 >conftest.err
3441   rm -f conftest.er1
3442   cat conftest.err >&5
3443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444   (exit $ac_status); } >/dev/null; then
3445   if test -s conftest.err; then
3446     ac_cpp_err=$ac_c_preproc_warn_flag
3447     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3448   else
3449     ac_cpp_err=
3450   fi
3451 else
3452   ac_cpp_err=yes
3453 fi
3454 if test -z "$ac_cpp_err"; then
3455   :
3456 else
3457   echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3459
3460   # Broken: fails on valid input.
3461 continue
3462 fi
3463 rm -f conftest.err conftest.$ac_ext
3464
3465   # OK, works on sane cases.  Now check whether non-existent headers
3466   # can be detected and how.
3467   cat >conftest.$ac_ext <<_ACEOF
3468 /* confdefs.h.  */
3469 _ACEOF
3470 cat confdefs.h >>conftest.$ac_ext
3471 cat >>conftest.$ac_ext <<_ACEOF
3472 /* end confdefs.h.  */
3473 #include <ac_nonexistent.h>
3474 _ACEOF
3475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3476   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3477   ac_status=$?
3478   grep -v '^ *+' conftest.er1 >conftest.err
3479   rm -f conftest.er1
3480   cat conftest.err >&5
3481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482   (exit $ac_status); } >/dev/null; then
3483   if test -s conftest.err; then
3484     ac_cpp_err=$ac_c_preproc_warn_flag
3485     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3486   else
3487     ac_cpp_err=
3488   fi
3489 else
3490   ac_cpp_err=yes
3491 fi
3492 if test -z "$ac_cpp_err"; then
3493   # Broken: success on invalid input.
3494 continue
3495 else
3496   echo "$as_me: failed program was:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3498
3499   # Passes both tests.
3500 ac_preproc_ok=:
3501 break
3502 fi
3503 rm -f conftest.err conftest.$ac_ext
3504
3505 done
3506 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3507 rm -f conftest.err conftest.$ac_ext
3508 if $ac_preproc_ok; then
3509   :
3510 else
3511   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3512 See \`config.log' for more details." >&5
3513 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3514 See \`config.log' for more details." >&2;}
3515    { (exit 1); exit 1; }; }
3516 fi
3517
3518 ac_ext=c
3519 ac_cpp='$CPP $CPPFLAGS'
3520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3523
3524
3525 echo "$as_me:$LINENO: checking for egrep" >&5
3526 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3527 if test "${ac_cv_prog_egrep+set}" = set; then
3528   echo $ECHO_N "(cached) $ECHO_C" >&6
3529 else
3530   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3531     then ac_cv_prog_egrep='grep -E'
3532     else ac_cv_prog_egrep='egrep'
3533     fi
3534 fi
3535 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3536 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3537  EGREP=$ac_cv_prog_egrep
3538
3539
3540 if test $ac_cv_c_compiler_gnu = yes; then
3541     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3542 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3543 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3544   echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546     ac_pattern="Autoconf.*'x'"
3547   cat >conftest.$ac_ext <<_ACEOF
3548 /* confdefs.h.  */
3549 _ACEOF
3550 cat confdefs.h >>conftest.$ac_ext
3551 cat >>conftest.$ac_ext <<_ACEOF
3552 /* end confdefs.h.  */
3553 #include <sgtty.h>
3554 Autoconf TIOCGETP
3555 _ACEOF
3556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3557   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3558   ac_cv_prog_gcc_traditional=yes
3559 else
3560   ac_cv_prog_gcc_traditional=no
3561 fi
3562 rm -f conftest*
3563
3564
3565   if test $ac_cv_prog_gcc_traditional = no; then
3566     cat >conftest.$ac_ext <<_ACEOF
3567 /* confdefs.h.  */
3568 _ACEOF
3569 cat confdefs.h >>conftest.$ac_ext
3570 cat >>conftest.$ac_ext <<_ACEOF
3571 /* end confdefs.h.  */
3572 #include <termio.h>
3573 Autoconf TCGETA
3574 _ACEOF
3575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3576   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3577   ac_cv_prog_gcc_traditional=yes
3578 fi
3579 rm -f conftest*
3580
3581   fi
3582 fi
3583 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3584 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3585   if test $ac_cv_prog_gcc_traditional = yes; then
3586     CC="$CC -traditional"
3587   fi
3588 fi
3589
3590 # Find a good install program.  We prefer a C program (faster),
3591 # so one script is as good as another.  But avoid the broken or
3592 # incompatible versions:
3593 # SysV /etc/install, /usr/sbin/install
3594 # SunOS /usr/etc/install
3595 # IRIX /sbin/install
3596 # AIX /bin/install
3597 # AmigaOS /C/install, which installs bootblocks on floppy discs
3598 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3599 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3600 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3601 # OS/2's system install, which has a completely different semantic
3602 # ./install, which can be erroneously created by make from ./install.sh.
3603 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3604 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3605 if test -z "$INSTALL"; then
3606 if test "${ac_cv_path_install+set}" = set; then
3607   echo $ECHO_N "(cached) $ECHO_C" >&6
3608 else
3609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610 for as_dir in $PATH
3611 do
3612   IFS=$as_save_IFS
3613   test -z "$as_dir" && as_dir=.
3614   # Account for people who put trailing slashes in PATH elements.
3615 case $as_dir/ in
3616   ./ | .// | /cC/* | \
3617   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3618   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3619   /usr/ucb/* ) ;;
3620   *)
3621     # OSF1 and SCO ODT 3.0 have their own names for install.
3622     # Don't use installbsd from OSF since it installs stuff as root
3623     # by default.
3624     for ac_prog in ginstall scoinst install; do
3625       for ac_exec_ext in '' $ac_executable_extensions; do
3626         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3627           if test $ac_prog = install &&
3628             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3629             # AIX install.  It has an incompatible calling convention.
3630             :
3631           elif test $ac_prog = install &&
3632             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3633             # program-specific install script used by HP pwplus--don't use.
3634             :
3635           else
3636             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3637             break 3
3638           fi
3639         fi
3640       done
3641     done
3642     ;;
3643 esac
3644 done
3645
3646
3647 fi
3648   if test "${ac_cv_path_install+set}" = set; then
3649     INSTALL=$ac_cv_path_install
3650   else
3651     # As a last resort, use the slow shell script.  We don't cache a
3652     # path for INSTALL within a source directory, because that will
3653     # break other packages using the cache if that directory is
3654     # removed, or if the path is relative.
3655     INSTALL=$ac_install_sh
3656   fi
3657 fi
3658 echo "$as_me:$LINENO: result: $INSTALL" >&5
3659 echo "${ECHO_T}$INSTALL" >&6
3660
3661 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3662 # It thinks the first close brace ends the variable substitution.
3663 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3664
3665 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3666
3667 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3668
3669 for ac_prog in gawk mawk nawk awk
3670 do
3671   # Extract the first word of "$ac_prog", so it can be a program name with args.
3672 set dummy $ac_prog; ac_word=$2
3673 echo "$as_me:$LINENO: checking for $ac_word" >&5
3674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3675 if test "${ac_cv_prog_AWK+set}" = set; then
3676   echo $ECHO_N "(cached) $ECHO_C" >&6
3677 else
3678   if test -n "$AWK"; then
3679   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3680 else
3681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682 for as_dir in $PATH
3683 do
3684   IFS=$as_save_IFS
3685   test -z "$as_dir" && as_dir=.
3686   for ac_exec_ext in '' $ac_executable_extensions; do
3687   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3688     ac_cv_prog_AWK="$ac_prog"
3689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3690     break 2
3691   fi
3692 done
3693 done
3694
3695 fi
3696 fi
3697 AWK=$ac_cv_prog_AWK
3698 if test -n "$AWK"; then
3699   echo "$as_me:$LINENO: result: $AWK" >&5
3700 echo "${ECHO_T}$AWK" >&6
3701 else
3702   echo "$as_me:$LINENO: result: no" >&5
3703 echo "${ECHO_T}no" >&6
3704 fi
3705
3706   test -n "$AWK" && break
3707 done
3708
3709 if test -n "$ac_tool_prefix"; then
3710   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3711 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3712 echo "$as_me:$LINENO: checking for $ac_word" >&5
3713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3714 if test "${ac_cv_prog_RANLIB+set}" = set; then
3715   echo $ECHO_N "(cached) $ECHO_C" >&6
3716 else
3717   if test -n "$RANLIB"; then
3718   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3719 else
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721 for as_dir in $PATH
3722 do
3723   IFS=$as_save_IFS
3724   test -z "$as_dir" && as_dir=.
3725   for ac_exec_ext in '' $ac_executable_extensions; do
3726   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3727     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3729     break 2
3730   fi
3731 done
3732 done
3733
3734 fi
3735 fi
3736 RANLIB=$ac_cv_prog_RANLIB
3737 if test -n "$RANLIB"; then
3738   echo "$as_me:$LINENO: result: $RANLIB" >&5
3739 echo "${ECHO_T}$RANLIB" >&6
3740 else
3741   echo "$as_me:$LINENO: result: no" >&5
3742 echo "${ECHO_T}no" >&6
3743 fi
3744
3745 fi
3746 if test -z "$ac_cv_prog_RANLIB"; then
3747   ac_ct_RANLIB=$RANLIB
3748   # Extract the first word of "ranlib", so it can be a program name with args.
3749 set dummy ranlib; ac_word=$2
3750 echo "$as_me:$LINENO: checking for $ac_word" >&5
3751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3752 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3753   echo $ECHO_N "(cached) $ECHO_C" >&6
3754 else
3755   if test -n "$ac_ct_RANLIB"; then
3756   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3757 else
3758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 for as_dir in $PATH
3760 do
3761   IFS=$as_save_IFS
3762   test -z "$as_dir" && as_dir=.
3763   for ac_exec_ext in '' $ac_executable_extensions; do
3764   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3765     ac_cv_prog_ac_ct_RANLIB="ranlib"
3766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3767     break 2
3768   fi
3769 done
3770 done
3771
3772   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3773 fi
3774 fi
3775 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3776 if test -n "$ac_ct_RANLIB"; then
3777   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3778 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3779 else
3780   echo "$as_me:$LINENO: result: no" >&5
3781 echo "${ECHO_T}no" >&6
3782 fi
3783
3784   RANLIB=$ac_ct_RANLIB
3785 else
3786   RANLIB="$ac_cv_prog_RANLIB"
3787 fi
3788
3789 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3790 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3791 LN_S=$as_ln_s
3792 if test "$LN_S" = "ln -s"; then
3793   echo "$as_me:$LINENO: result: yes" >&5
3794 echo "${ECHO_T}yes" >&6
3795 else
3796   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3797 echo "${ECHO_T}no, using $LN_S" >&6
3798 fi
3799
3800 echo "$as_me:$LINENO: checking whether -rdynamic option is recognized" >&5
3801 echo $ECHO_N "checking whether -rdynamic option is recognized... $ECHO_C" >&6
3802 ac_ccoption=`echo rdynamic | sed 'y%./+-%__p_%'`
3803 if eval "test \"\${timidity_cv_ccoption_$ac_ccoption+set}\" = set"; then
3804   echo $ECHO_N "(cached) $ECHO_C" >&6
3805 else
3806   cat > conftest.$ac_ext <<EOF
3807 int main() {return 0;}
3808 EOF
3809 if ${CC-cc} $LDFLAGS $CFLAGS -o conftest${ac_exeext} -rdynamic conftest.$ac_ext > conftest.out 2>&1; then
3810     if test -s conftest.out; then
3811         eval "timidity_cv_ccoption_$ac_ccoption=no"
3812     else
3813         eval "timidity_cv_ccoption_$ac_ccoption=yes"
3814     fi
3815 else
3816     eval "timidity_cv_ccoption_$ac_ccoption=no"
3817 fi
3818
3819 fi
3820
3821 if eval "test \"`echo '$timidity_cv_ccoption_'$ac_ccoption`\" = yes"; then
3822   echo "$as_me:$LINENO: result: yes" >&5
3823 echo "${ECHO_T}yes" >&6
3824
3825 else
3826   echo "$as_me:$LINENO: result: no" >&5
3827 echo "${ECHO_T}no" >&6
3828
3829 fi
3830
3831
3832 # Checks for target dependencies
3833
3834
3835 # Check whether --with-elf or --without-elf was given.
3836 if test "${with_elf+set}" = set; then
3837   withval="$with_elf"
3838    ELFFORMAT=$withval
3839 else
3840    ELFFORMAT="yes"
3841 fi;
3842
3843 # AC_ARG_WITH(simd,
3844 #  [  --with-simd             create SIMD friendly binary (default is no) ],
3845 #  [ SIMD=$withval ], [ SIMD="no" ])
3846
3847 case "$target" in
3848   *-*-hpux*)
3849     EXTRADEFS="-DHPUX"
3850     test -n "$SHLD" || SHLD="ld -b"
3851     so="sl"
3852     ;;
3853   *-sgi-irix*)
3854         case ".$CC" in .cc*) EXTRACFLAGS="-signed";; esac
3855     test -n "$SHLD" || SHLD="cc -shared -all"
3856     so="so"
3857     ;;
3858   *-*-netbsd*)
3859     test -n "$SHLD" || SHLD="$CC -shared -nostartfiles"
3860     so="so"
3861     ;;
3862
3863   *-*-freebsd2*)
3864         test -n "$SHLD" || SHLD="ld -Bshareable"
3865     so="so"
3866     ;;
3867   *-*-freebsd*)
3868     if test "$ELFFORMAT" = yes; then
3869         test -n "$SHLD" || SHLD="ld -Bshareable"
3870     else
3871         SHCFLAGS=-aou
3872         SHLDFLAGS="-L/usr/X11R6/lib/aout $SHLDFLAGS"
3873         test -n "$SHLD" || SHLD="env OBJFORMAT=aout ld -shared"
3874     fi
3875         so="so"
3876     ;;
3877
3878 #  *-*-freebsd*)
3879 #    EXTRALIBS="$EXTRALIBS -lxpg4"
3880 #    test -n "$SHLD" || SHLD="ld -Bshareable"
3881 #    so="so"
3882 #  ;;
3883
3884   *-*-cygwin*)
3885     EXTRADEFS="-D__W32__"
3886     # ??
3887     case "x${CC} " in
3888       "xbcc32 "*)
3889 #        test -n "$SHLD" || SHLD="tlink32 -Tpd"
3890         test -n "$SHLD" || SHLD="BCC32 -WD"
3891         BORLANDC=yes
3892         BORLANDC_LDFLAGS="kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib wsock32.lib user32.lib shell32.lib cw32mt.lib"
3893                 BORLANDC_START='C0X32.OBJ'
3894         CFLAGS="$CFLAGS  -tWM -VM"
3895         EXTRADEFS="$EXTRADEFS -D_WINDOWS -DWIN32"
3896         ;;
3897       "xwcc386_w.sh "*)
3898          WATCOM_C=yes
3899          CFLAGS="$CFLAGS -br -5s -zk0 -bm -zp=16 -w=4 -D_WINDOWS -DWIN32 -DINCLUDE_WINDOWS_H"
3900          WATCOM_LDFLAGS=
3901          EXTRALIBS="$EXTRALIBS kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib user32.lib shell32.lib libcmt.lib"
3902          ;;
3903       "xcl "*)
3904          test -n "$SHLD" || SHLD="link -dll"
3905          VCPP_LDFLAGS="-nologo -incremental:no  -nodefaultlib:libc.lib -nodefaultlib:msvcrt.lib kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib user32.lib shell32.lib libcmt.lib"
3906          CFLAGS="$CFLAGS -nologo -Zp16 -MT -W3 -GX  -Ob2"
3907          EXTRADEFS="$EXTRADEFS -DNDEBUG -D_WINDOWS -DWIN32 -DMBCS -D_MT -YX  -FD -c"
3908          VCPP=yes
3909          ;;
3910       "xgcc"*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3911       *) test -n "$SHLD" || SHLD="unknown" ;;
3912     esac
3913     so="dll"
3914     CYGNUS=yes
3915     lib_user32_test=-luser32
3916     ;;
3917   *-*-mingw*)
3918     EXTRADEFS="-D__W32__"
3919     # ??
3920     case "x${CC} " in
3921       "xbcc32 "*)
3922 #        test -n "$SHLD" || SHLD="tlink32 -Tpd"
3923         test -n "$SHLD" || SHLD="BCC32 -WD"
3924         BORLANDC=yes
3925         BORLANDC_LDFLAGS="kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib wsock32.lib user32.lib shell32.lib cw32mt.lib"
3926         BORLANDC_START='C0X32.OBJ'
3927         CFLAGS="$CFLAGS  -tWM -VM"
3928         EXTRADEFS="$EXTRADEFS -D_WINDOWS -DWIN32"
3929         ;;
3930       "xwcc386_w.sh "*)
3931          WATCOM_C=yes
3932          CFLAGS="$CFLAGS -br -5s -zk0 -bm -zp=16 -w=4 -D_WINDOWS -DWIN32 -DINCLUDE_WINDOWS_H"
3933          WATCOM_LDFLAGS=
3934          EXTRALIBS="$EXTRALIBS kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib user32.lib shell32.lib libcmt.lib"
3935          ;;
3936       "xcl "*)
3937          test -n "$SHLD" || SHLD="link -dll"
3938          VCPP=yes
3939          VCPP_LDFLAGS="-nologo -incremental:no  -nodefaultlib:libc.lib -nodefaultlib:msvcrt.lib kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib user32.lib shell32.lib libcmt.lib"
3940          CFLAGS="$CFLAGS -nologo -Zp16 -MT -W3 -GX  -Ob2"
3941          EXTRADEFS="$EXTRADEFS -DNDEBUG -D_WINDOWS -DWIN32 -DMBCS -D_MT -YX  -FD -c"
3942          ;;
3943       "xgcc"*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
3944       *) test -n "$SHLD" || SHLD="unknown" ;;
3945     esac
3946     so="dll"
3947     MSYS=yes
3948     lib_user32_test=-luser32
3949     ;;
3950   *-dec-*)
3951     EXTRADEFS="-DDEC"
3952     test -n "$SHLD" || SHLD="ld -Bdynamic -G"
3953     so="so"
3954     ;;
3955   *-*-solaris*)
3956     EXTRADEFS="-DSOLARIS"
3957     test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3958     so="so"
3959     ;;
3960   *-*-nextstep*)
3961     test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
3962     so="so"
3963     ;;
3964   *-*-darwin*)
3965     if test "x$SIMD" = "xyes"; then
3966
3967 cat >>confdefs.h <<\_ACEOF
3968 #define USE_ALTIVEC 1
3969 _ACEOF
3970
3971        # EXTRACFLAGS="$EXTRACFLAGS -faltivec -mabi=altivec -maltivec" # for GCC3.
3972        EXTRACFLAGS="$EXTRACFLAGS -faltivec"
3973     else
3974
3975 cat >>confdefs.h <<\_ACEOF
3976 #define USE_ALTIVEC 0
3977 _ACEOF
3978
3979     fi
3980     CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
3981     LDOPTS="-dynamic -undefined suppress -flat_namespace $LDOPTS"
3982     test -n "$SHLD" || SHLD="$CC -dynamic -bundle -undefined suppress -flat_namespace $LDFLAGS"
3983     so="bundle"
3984     ;;
3985   *)
3986     test -n "$SHLD" || \
3987       if test "x$GCC" = xyes; then
3988         SHLD="$CC -shared"
3989       else
3990         SHLD="ld -Bdynamic -G"
3991       fi
3992     so="so"
3993     ;;
3994 esac
3995
3996
3997 # Checks for libraries.
3998
3999 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
4000 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4001 if test "${ac_cv_lib_m_sqrt+set}" = set; then
4002   echo $ECHO_N "(cached) $ECHO_C" >&6
4003 else
4004   ac_check_lib_save_LIBS=$LIBS
4005 LIBS="-lm  $LIBS"
4006 cat >conftest.$ac_ext <<_ACEOF
4007 /* confdefs.h.  */
4008 _ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h.  */
4012
4013 /* Override any gcc2 internal prototype to avoid an error.  */
4014 #ifdef __cplusplus
4015 extern "C"
4016 #endif
4017 /* We use char because int might match the return type of a gcc2
4018    builtin and then its argument prototype would still apply.  */
4019 char sqrt ();
4020 int
4021 main ()
4022 {
4023 sqrt ();
4024   ;
4025   return 0;
4026 }
4027 _ACEOF
4028 rm -f conftest.$ac_objext conftest$ac_exeext
4029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4030   (eval $ac_link) 2>conftest.er1
4031   ac_status=$?
4032   grep -v '^ *+' conftest.er1 >conftest.err
4033   rm -f conftest.er1
4034   cat conftest.err >&5
4035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036   (exit $ac_status); } &&
4037          { ac_try='test -z "$ac_c_werror_flag"
4038                          || test ! -s conftest.err'
4039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040   (eval $ac_try) 2>&5
4041   ac_status=$?
4042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043   (exit $ac_status); }; } &&
4044          { ac_try='test -s conftest$ac_exeext'
4045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4046   (eval $ac_try) 2>&5
4047   ac_status=$?
4048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049   (exit $ac_status); }; }; then
4050   ac_cv_lib_m_sqrt=yes
4051 else
4052   echo "$as_me: failed program was:" >&5
4053 sed 's/^/| /' conftest.$ac_ext >&5
4054
4055 ac_cv_lib_m_sqrt=no
4056 fi
4057 rm -f conftest.err conftest.$ac_objext \
4058       conftest$ac_exeext conftest.$ac_ext
4059 LIBS=$ac_check_lib_save_LIBS
4060 fi
4061 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4062 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4063 if test $ac_cv_lib_m_sqrt = yes; then
4064   cat >>confdefs.h <<_ACEOF
4065 #define HAVE_LIBM 1
4066 _ACEOF
4067
4068   LIBS="-lm $LIBS"
4069
4070 fi
4071
4072
4073 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4074 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4075 if test "${ac_cv_lib_socket_socket+set}" = set; then
4076   echo $ECHO_N "(cached) $ECHO_C" >&6
4077 else
4078   ac_check_lib_save_LIBS=$LIBS
4079 LIBS="-lsocket  $LIBS"
4080 cat >conftest.$ac_ext <<_ACEOF
4081 /* confdefs.h.  */
4082 _ACEOF
4083 cat confdefs.h >>conftest.$ac_ext
4084 cat >>conftest.$ac_ext <<_ACEOF
4085 /* end confdefs.h.  */
4086
4087 /* Override any gcc2 internal prototype to avoid an error.  */
4088 #ifdef __cplusplus
4089 extern "C"
4090 #endif
4091 /* We use char because int might match the return type of a gcc2
4092    builtin and then its argument prototype would still apply.  */
4093 char socket ();
4094 int
4095 main ()
4096 {
4097 socket ();
4098   ;
4099   return 0;
4100 }
4101 _ACEOF
4102 rm -f conftest.$ac_objext conftest$ac_exeext
4103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4104   (eval $ac_link) 2>conftest.er1
4105   ac_status=$?
4106   grep -v '^ *+' conftest.er1 >conftest.err
4107   rm -f conftest.er1
4108   cat conftest.err >&5
4109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110   (exit $ac_status); } &&
4111          { ac_try='test -z "$ac_c_werror_flag"
4112                          || test ! -s conftest.err'
4113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114   (eval $ac_try) 2>&5
4115   ac_status=$?
4116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117   (exit $ac_status); }; } &&
4118          { ac_try='test -s conftest$ac_exeext'
4119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120   (eval $ac_try) 2>&5
4121   ac_status=$?
4122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123   (exit $ac_status); }; }; then
4124   ac_cv_lib_socket_socket=yes
4125 else
4126   echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4128
4129 ac_cv_lib_socket_socket=no
4130 fi
4131 rm -f conftest.err conftest.$ac_objext \
4132       conftest$ac_exeext conftest.$ac_ext
4133 LIBS=$ac_check_lib_save_LIBS
4134 fi
4135 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4136 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4137 if test $ac_cv_lib_socket_socket = yes; then
4138   cat >>confdefs.h <<_ACEOF
4139 #define HAVE_LIBSOCKET 1
4140 _ACEOF
4141
4142   LIBS="-lsocket $LIBS"
4143
4144 fi
4145
4146 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4147 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4148 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4149   echo $ECHO_N "(cached) $ECHO_C" >&6
4150 else
4151   ac_check_lib_save_LIBS=$LIBS
4152 LIBS="-ldl  $LIBS"
4153 cat >conftest.$ac_ext <<_ACEOF
4154 /* confdefs.h.  */
4155 _ACEOF
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h.  */
4159
4160 /* Override any gcc2 internal prototype to avoid an error.  */
4161 #ifdef __cplusplus
4162 extern "C"
4163 #endif
4164 /* We use char because int might match the return type of a gcc2
4165    builtin and then its argument prototype would still apply.  */
4166 char dlopen ();
4167 int
4168 main ()
4169 {
4170 dlopen ();
4171   ;
4172   return 0;
4173 }
4174 _ACEOF
4175 rm -f conftest.$ac_objext conftest$ac_exeext
4176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4177   (eval $ac_link) 2>conftest.er1
4178   ac_status=$?
4179   grep -v '^ *+' conftest.er1 >conftest.err
4180   rm -f conftest.er1
4181   cat conftest.err >&5
4182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183   (exit $ac_status); } &&
4184          { ac_try='test -z "$ac_c_werror_flag"
4185                          || test ! -s conftest.err'
4186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187   (eval $ac_try) 2>&5
4188   ac_status=$?
4189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190   (exit $ac_status); }; } &&
4191          { ac_try='test -s conftest$ac_exeext'
4192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193   (eval $ac_try) 2>&5
4194   ac_status=$?
4195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196   (exit $ac_status); }; }; then
4197   ac_cv_lib_dl_dlopen=yes
4198 else
4199   echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4201
4202 ac_cv_lib_dl_dlopen=no
4203 fi
4204 rm -f conftest.err conftest.$ac_objext \
4205       conftest$ac_exeext conftest.$ac_ext
4206 LIBS=$ac_check_lib_save_LIBS
4207 fi
4208 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4209 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4210 if test $ac_cv_lib_dl_dlopen = yes; then
4211   lib_dl_opt=-ldl
4212 fi
4213
4214 echo "$as_me:$LINENO: checking for NSLinkModule in -lobjc" >&5
4215 echo $ECHO_N "checking for NSLinkModule in -lobjc... $ECHO_C" >&6
4216 if test "${ac_cv_lib_objc_NSLinkModule+set}" = set; then
4217   echo $ECHO_N "(cached) $ECHO_C" >&6
4218 else
4219   ac_check_lib_save_LIBS=$LIBS
4220 LIBS="-lobjc  $LIBS"
4221 cat >conftest.$ac_ext <<_ACEOF
4222 /* confdefs.h.  */
4223 _ACEOF
4224 cat confdefs.h >>conftest.$ac_ext
4225 cat >>conftest.$ac_ext <<_ACEOF
4226 /* end confdefs.h.  */
4227
4228 /* Override any gcc2 internal prototype to avoid an error.  */
4229 #ifdef __cplusplus
4230 extern "C"
4231 #endif
4232 /* We use char because int might match the return type of a gcc2
4233    builtin and then its argument prototype would still apply.  */
4234 char NSLinkModule ();
4235 int
4236 main ()
4237 {
4238 NSLinkModule ();
4239   ;
4240   return 0;
4241 }
4242 _ACEOF
4243 rm -f conftest.$ac_objext conftest$ac_exeext
4244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4245   (eval $ac_link) 2>conftest.er1
4246   ac_status=$?
4247   grep -v '^ *+' conftest.er1 >conftest.err
4248   rm -f conftest.er1
4249   cat conftest.err >&5
4250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251   (exit $ac_status); } &&
4252          { ac_try='test -z "$ac_c_werror_flag"
4253                          || test ! -s conftest.err'
4254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4255   (eval $ac_try) 2>&5
4256   ac_status=$?
4257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258   (exit $ac_status); }; } &&
4259          { ac_try='test -s conftest$ac_exeext'
4260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261   (eval $ac_try) 2>&5
4262   ac_status=$?
4263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264   (exit $ac_status); }; }; then
4265   ac_cv_lib_objc_NSLinkModule=yes
4266 else
4267   echo "$as_me: failed program was:" >&5
4268 sed 's/^/| /' conftest.$ac_ext >&5
4269
4270 ac_cv_lib_objc_NSLinkModule=no
4271 fi
4272 rm -f conftest.err conftest.$ac_objext \
4273       conftest$ac_exeext conftest.$ac_ext
4274 LIBS=$ac_check_lib_save_LIBS
4275 fi
4276 echo "$as_me:$LINENO: result: $ac_cv_lib_objc_NSLinkModule" >&5
4277 echo "${ECHO_T}$ac_cv_lib_objc_NSLinkModule" >&6
4278 if test $ac_cv_lib_objc_NSLinkModule = yes; then
4279   lib_dl_opt=-lobjc
4280 fi
4281  # Mac OS X need this.
4282 if test "x$VCPP" != "xyes" && test "x$BORLANDC" != "xyes" && test "x$WATCOM_C" != "xyes"; then
4283
4284 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
4285 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
4286 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
4287   echo $ECHO_N "(cached) $ECHO_C" >&6
4288 else
4289   ac_check_lib_save_LIBS=$LIBS
4290 LIBS="-lxpg4  $LIBS"
4291 cat >conftest.$ac_ext <<_ACEOF
4292 /* confdefs.h.  */
4293 _ACEOF
4294 cat confdefs.h >>conftest.$ac_ext
4295 cat >>conftest.$ac_ext <<_ACEOF
4296 /* end confdefs.h.  */
4297
4298 /* Override any gcc2 internal prototype to avoid an error.  */
4299 #ifdef __cplusplus
4300 extern "C"
4301 #endif
4302 /* We use char because int might match the return type of a gcc2
4303    builtin and then its argument prototype would still apply.  */
4304 char setlocale ();
4305 int
4306 main ()
4307 {
4308 setlocale ();
4309   ;
4310   return 0;
4311 }
4312 _ACEOF
4313 rm -f conftest.$ac_objext conftest$ac_exeext
4314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4315   (eval $ac_link) 2>conftest.er1
4316   ac_status=$?
4317   grep -v '^ *+' conftest.er1 >conftest.err
4318   rm -f conftest.er1
4319   cat conftest.err >&5
4320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321   (exit $ac_status); } &&
4322          { ac_try='test -z "$ac_c_werror_flag"
4323                          || test ! -s conftest.err'
4324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4325   (eval $ac_try) 2>&5
4326   ac_status=$?
4327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328   (exit $ac_status); }; } &&
4329          { ac_try='test -s conftest$ac_exeext'
4330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331   (eval $ac_try) 2>&5
4332   ac_status=$?
4333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334   (exit $ac_status); }; }; then
4335   ac_cv_lib_xpg4_setlocale=yes
4336 else
4337   echo "$as_me: failed program was:" >&5
4338 sed 's/^/| /' conftest.$ac_ext >&5
4339
4340 ac_cv_lib_xpg4_setlocale=no
4341 fi
4342 rm -f conftest.err conftest.$ac_objext \
4343       conftest$ac_exeext conftest.$ac_ext
4344 LIBS=$ac_check_lib_save_LIBS
4345 fi
4346 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
4347 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
4348 if test $ac_cv_lib_xpg4_setlocale = yes; then
4349   cat >>confdefs.h <<_ACEOF
4350 #define HAVE_LIBXPG4 1
4351 _ACEOF
4352
4353   LIBS="-lxpg4 $LIBS"
4354
4355 fi
4356  # Mac OS X (and maybe NetBSD) need this.
4357 fi
4358
4359 for ac_func in gethostbyname
4360 do
4361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4362 echo "$as_me:$LINENO: checking for $ac_func" >&5
4363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4364 if eval "test \"\${$as_ac_var+set}\" = set"; then
4365   echo $ECHO_N "(cached) $ECHO_C" >&6
4366 else
4367   cat >conftest.$ac_ext <<_ACEOF
4368 /* confdefs.h.  */
4369 _ACEOF
4370 cat confdefs.h >>conftest.$ac_ext
4371 cat >>conftest.$ac_ext <<_ACEOF
4372 /* end confdefs.h.  */
4373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4374    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4375 #define $ac_func innocuous_$ac_func
4376
4377 /* System header to define __stub macros and hopefully few prototypes,
4378     which can conflict with char $ac_func (); below.
4379     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4380     <limits.h> exists even on freestanding compilers.  */
4381
4382 #ifdef __STDC__
4383 # include <limits.h>
4384 #else
4385 # include <assert.h>
4386 #endif
4387
4388 #undef $ac_func
4389
4390 /* Override any gcc2 internal prototype to avoid an error.  */
4391 #ifdef __cplusplus
4392 extern "C"
4393 {
4394 #endif
4395 /* We use char because int might match the return type of a gcc2
4396    builtin and then its argument prototype would still apply.  */
4397 char $ac_func ();
4398 /* The GNU C library defines this for functions which it implements
4399     to always fail with ENOSYS.  Some functions are actually named
4400     something starting with __ and the normal name is an alias.  */
4401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4402 choke me
4403 #else
4404 char (*f) () = $ac_func;
4405 #endif
4406 #ifdef __cplusplus
4407 }
4408 #endif
4409
4410 int
4411 main ()
4412 {
4413 return f != $ac_func;
4414   ;
4415   return 0;
4416 }
4417 _ACEOF
4418 rm -f conftest.$ac_objext conftest$ac_exeext
4419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4420   (eval $ac_link) 2>conftest.er1
4421   ac_status=$?
4422   grep -v '^ *+' conftest.er1 >conftest.err
4423   rm -f conftest.er1
4424   cat conftest.err >&5
4425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426   (exit $ac_status); } &&
4427          { ac_try='test -z "$ac_c_werror_flag"
4428                          || test ! -s conftest.err'
4429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4430   (eval $ac_try) 2>&5
4431   ac_status=$?
4432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433   (exit $ac_status); }; } &&
4434          { ac_try='test -s conftest$ac_exeext'
4435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436   (eval $ac_try) 2>&5
4437   ac_status=$?
4438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439   (exit $ac_status); }; }; then
4440   eval "$as_ac_var=yes"
4441 else
4442   echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4444
4445 eval "$as_ac_var=no"
4446 fi
4447 rm -f conftest.err conftest.$ac_objext \
4448       conftest$ac_exeext conftest.$ac_ext
4449 fi
4450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4451 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4452 if test `eval echo '${'$as_ac_var'}'` = yes; then
4453   cat >>confdefs.h <<_ACEOF
4454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4455 _ACEOF
4456
4457 else
4458
4459 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4460 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4461 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4462   echo $ECHO_N "(cached) $ECHO_C" >&6
4463 else
4464   ac_check_lib_save_LIBS=$LIBS
4465 LIBS="-lnsl  $LIBS"
4466 cat >conftest.$ac_ext <<_ACEOF
4467 /* confdefs.h.  */
4468 _ACEOF
4469 cat confdefs.h >>conftest.$ac_ext
4470 cat >>conftest.$ac_ext <<_ACEOF
4471 /* end confdefs.h.  */
4472
4473 /* Override any gcc2 internal prototype to avoid an error.  */
4474 #ifdef __cplusplus
4475 extern "C"
4476 #endif
4477 /* We use char because int might match the return type of a gcc2
4478    builtin and then its argument prototype would still apply.  */
4479 char gethostbyname ();
4480 int
4481 main ()
4482 {
4483 gethostbyname ();
4484   ;
4485   return 0;
4486 }
4487 _ACEOF
4488 rm -f conftest.$ac_objext conftest$ac_exeext
4489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4490   (eval $ac_link) 2>conftest.er1
4491   ac_status=$?
4492   grep -v '^ *+' conftest.er1 >conftest.err
4493   rm -f conftest.er1
4494   cat conftest.err >&5
4495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496   (exit $ac_status); } &&
4497          { ac_try='test -z "$ac_c_werror_flag"
4498                          || test ! -s conftest.err'
4499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500   (eval $ac_try) 2>&5
4501   ac_status=$?
4502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503   (exit $ac_status); }; } &&
4504          { ac_try='test -s conftest$ac_exeext'
4505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506   (eval $ac_try) 2>&5
4507   ac_status=$?
4508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509   (exit $ac_status); }; }; then
4510   ac_cv_lib_nsl_gethostbyname=yes
4511 else
4512   echo "$as_me: failed program was:" >&5
4513 sed 's/^/| /' conftest.$ac_ext >&5
4514
4515 ac_cv_lib_nsl_gethostbyname=no
4516 fi
4517 rm -f conftest.err conftest.$ac_objext \
4518       conftest$ac_exeext conftest.$ac_ext
4519 LIBS=$ac_check_lib_save_LIBS
4520 fi
4521 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4522 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4523 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4524   cat >>confdefs.h <<_ACEOF
4525 #define HAVE_LIBNSL 1
4526 _ACEOF
4527
4528   LIBS="-lnsl $LIBS"
4529
4530 fi
4531
4532 fi
4533 done
4534
4535 echo "$as_me:$LINENO: checking for X" >&5
4536 echo $ECHO_N "checking for X... $ECHO_C" >&6
4537
4538
4539 # Check whether --with-x or --without-x was given.
4540 if test "${with_x+set}" = set; then
4541   withval="$with_x"
4542
4543 fi;
4544 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4545 if test "x$with_x" = xno; then
4546   # The user explicitly disabled X.
4547   have_x=disabled
4548 else
4549   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4550     # Both variables are already set.
4551     have_x=yes
4552   else
4553     if test "${ac_cv_have_x+set}" = set; then
4554   echo $ECHO_N "(cached) $ECHO_C" >&6
4555 else
4556   # One or both of the vars are not set, and there is no cached value.
4557 ac_x_includes=no ac_x_libraries=no
4558 rm -fr conftest.dir
4559 if mkdir conftest.dir; then
4560   cd conftest.dir
4561   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4562   cat >Imakefile <<'_ACEOF'
4563 acfindx:
4564         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4565 _ACEOF
4566   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4567     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4568     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4569     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4570     for ac_extension in a so sl; do
4571       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4572          test -f $ac_im_libdir/libX11.$ac_extension; then
4573         ac_im_usrlibdir=$ac_im_libdir; break
4574       fi
4575     done
4576     # Screen out bogus values from the imake configuration.  They are
4577     # bogus both because they are the default anyway, and because
4578     # using them would break gcc on systems where it needs fixed includes.
4579     case $ac_im_incroot in
4580         /usr/include) ;;
4581         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4582     esac
4583     case $ac_im_usrlibdir in
4584         /usr/lib | /lib) ;;
4585         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4586     esac
4587   fi
4588   cd ..
4589   rm -fr conftest.dir
4590 fi
4591
4592 # Standard set of common directories for X headers.
4593 # Check X11 before X11Rn because it is often a symlink to the current release.
4594 ac_x_header_dirs='
4595 /usr/X11/include
4596 /usr/X11R6/include
4597 /usr/X11R5/include
4598 /usr/X11R4/include
4599
4600 /usr/include/X11
4601 /usr/include/X11R6
4602 /usr/include/X11R5
4603 /usr/include/X11R4
4604
4605 /usr/local/X11/include
4606 /usr/local/X11R6/include
4607 /usr/local/X11R5/include
4608 /usr/local/X11R4/include
4609
4610 /usr/local/include/X11
4611 /usr/local/include/X11R6
4612 /usr/local/include/X11R5
4613 /usr/local/include/X11R4
4614
4615 /usr/X386/include
4616 /usr/x386/include
4617 /usr/XFree86/include/X11
4618
4619 /usr/include
4620 /usr/local/include
4621 /usr/unsupported/include
4622 /usr/athena/include
4623 /usr/local/x11r5/include
4624 /usr/lpp/Xamples/include
4625
4626 /usr/openwin/include
4627 /usr/openwin/share/include'
4628
4629 if test "$ac_x_includes" = no; then
4630   # Guess where to find include files, by looking for Intrinsic.h.
4631   # First, try using that file with no special directory specified.
4632   cat >conftest.$ac_ext <<_ACEOF
4633 /* confdefs.h.  */
4634 _ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h.  */
4638 #include <X11/Intrinsic.h>
4639 _ACEOF
4640 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4641   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4642   ac_status=$?
4643   grep -v '^ *+' conftest.er1 >conftest.err
4644   rm -f conftest.er1
4645   cat conftest.err >&5
4646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647   (exit $ac_status); } >/dev/null; then
4648   if test -s conftest.err; then
4649     ac_cpp_err=$ac_c_preproc_warn_flag
4650     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4651   else
4652     ac_cpp_err=
4653   fi
4654 else
4655   ac_cpp_err=yes
4656 fi
4657 if test -z "$ac_cpp_err"; then
4658   # We can compile using X headers with no special include directory.
4659 ac_x_includes=
4660 else
4661   echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.$ac_ext >&5
4663
4664   for ac_dir in $ac_x_header_dirs; do
4665   if test -r "$ac_dir/X11/Intrinsic.h"; then
4666     ac_x_includes=$ac_dir
4667     break
4668   fi
4669 done
4670 fi
4671 rm -f conftest.err conftest.$ac_ext
4672 fi # $ac_x_includes = no
4673
4674 if test "$ac_x_libraries" = no; then
4675   # Check for the libraries.
4676   # See if we find them without any special options.
4677   # Don't add to $LIBS permanently.
4678   ac_save_LIBS=$LIBS
4679   LIBS="-lXt $LIBS"
4680   cat >conftest.$ac_ext <<_ACEOF
4681 /* confdefs.h.  */
4682 _ACEOF
4683 cat confdefs.h >>conftest.$ac_ext
4684 cat >>conftest.$ac_ext <<_ACEOF
4685 /* end confdefs.h.  */
4686 #include <X11/Intrinsic.h>
4687 int
4688 main ()
4689 {
4690 XtMalloc (0)
4691   ;
4692   return 0;
4693 }
4694 _ACEOF
4695 rm -f conftest.$ac_objext conftest$ac_exeext
4696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4697   (eval $ac_link) 2>conftest.er1
4698   ac_status=$?
4699   grep -v '^ *+' conftest.er1 >conftest.err
4700   rm -f conftest.er1
4701   cat conftest.err >&5
4702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703   (exit $ac_status); } &&
4704          { ac_try='test -z "$ac_c_werror_flag"
4705                          || test ! -s conftest.err'
4706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707   (eval $ac_try) 2>&5
4708   ac_status=$?
4709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710   (exit $ac_status); }; } &&
4711          { ac_try='test -s conftest$ac_exeext'
4712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713   (eval $ac_try) 2>&5
4714   ac_status=$?
4715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716   (exit $ac_status); }; }; then
4717   LIBS=$ac_save_LIBS
4718 # We can link X programs with no special library path.
4719 ac_x_libraries=
4720 else
4721   echo "$as_me: failed program was:" >&5
4722 sed 's/^/| /' conftest.$ac_ext >&5
4723
4724 LIBS=$ac_save_LIBS
4725 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4726 do
4727   # Don't even attempt the hair of trying to link an X program!
4728   for ac_extension in a so sl; do
4729     if test -r $ac_dir/libXt.$ac_extension; then
4730       ac_x_libraries=$ac_dir
4731       break 2
4732     fi
4733   done
4734 done
4735 fi
4736 rm -f conftest.err conftest.$ac_objext \
4737       conftest$ac_exeext conftest.$ac_ext
4738 fi # $ac_x_libraries = no
4739
4740 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4741   # Didn't find X anywhere.  Cache the known absence of X.
4742   ac_cv_have_x="have_x=no"
4743 else
4744   # Record where we found X for the cache.
4745   ac_cv_have_x="have_x=yes \
4746                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4747 fi
4748 fi
4749
4750   fi
4751   eval "$ac_cv_have_x"
4752 fi # $with_x != no
4753
4754 if test "$have_x" != yes; then
4755   echo "$as_me:$LINENO: result: $have_x" >&5
4756 echo "${ECHO_T}$have_x" >&6
4757   no_x=yes
4758 else
4759   # If each of the values was on the command line, it overrides each guess.
4760   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4761   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4762   # Update the cache value to reflect the command line values.
4763   ac_cv_have_x="have_x=yes \
4764                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4765   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4766 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4767 fi
4768
4769 if test "$no_x" = yes; then
4770   # Not all programs may use this symbol, but it does not hurt to define it.
4771
4772 cat >>confdefs.h <<\_ACEOF
4773 #define X_DISPLAY_MISSING 1
4774 _ACEOF
4775
4776   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4777 else
4778   if test -n "$x_includes"; then
4779     X_CFLAGS="$X_CFLAGS -I$x_includes"
4780   fi
4781
4782   # It would also be nice to do this for all -L options, not just this one.
4783   if test -n "$x_libraries"; then
4784     X_LIBS="$X_LIBS -L$x_libraries"
4785     # For Solaris; some versions of Sun CC require a space after -R and
4786     # others require no space.  Words are not sufficient . . . .
4787     case `(uname -sr) 2>/dev/null` in
4788     "SunOS 5"*)
4789       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4790 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4791       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4792       cat >conftest.$ac_ext <<_ACEOF
4793 /* confdefs.h.  */
4794 _ACEOF
4795 cat confdefs.h >>conftest.$ac_ext
4796 cat >>conftest.$ac_ext <<_ACEOF
4797 /* end confdefs.h.  */
4798
4799 int
4800 main ()
4801 {
4802
4803   ;
4804   return 0;
4805 }
4806 _ACEOF
4807 rm -f conftest.$ac_objext conftest$ac_exeext
4808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4809   (eval $ac_link) 2>conftest.er1
4810   ac_status=$?
4811   grep -v '^ *+' conftest.er1 >conftest.err
4812   rm -f conftest.er1
4813   cat conftest.err >&5
4814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815   (exit $ac_status); } &&
4816          { ac_try='test -z "$ac_c_werror_flag"
4817                          || test ! -s conftest.err'
4818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819   (eval $ac_try) 2>&5
4820   ac_status=$?
4821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822   (exit $ac_status); }; } &&
4823          { ac_try='test -s conftest$ac_exeext'
4824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825   (eval $ac_try) 2>&5
4826   ac_status=$?
4827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828   (exit $ac_status); }; }; then
4829   ac_R_nospace=yes
4830 else
4831   echo "$as_me: failed program was:" >&5
4832 sed 's/^/| /' conftest.$ac_ext >&5
4833
4834 ac_R_nospace=no
4835 fi
4836 rm -f conftest.err conftest.$ac_objext \
4837       conftest$ac_exeext conftest.$ac_ext
4838       if test $ac_R_nospace = yes; then
4839         echo "$as_me:$LINENO: result: no" >&5
4840 echo "${ECHO_T}no" >&6
4841         X_LIBS="$X_LIBS -R$x_libraries"
4842       else
4843         LIBS="$ac_xsave_LIBS -R $x_libraries"
4844         cat >conftest.$ac_ext <<_ACEOF
4845 /* confdefs.h.  */
4846 _ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h.  */
4850
4851 int
4852 main ()
4853 {
4854
4855   ;
4856   return 0;
4857 }
4858 _ACEOF
4859 rm -f conftest.$ac_objext conftest$ac_exeext
4860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4861   (eval $ac_link) 2>conftest.er1
4862   ac_status=$?
4863   grep -v '^ *+' conftest.er1 >conftest.err
4864   rm -f conftest.er1
4865   cat conftest.err >&5
4866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867   (exit $ac_status); } &&
4868          { ac_try='test -z "$ac_c_werror_flag"
4869                          || test ! -s conftest.err'
4870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871   (eval $ac_try) 2>&5
4872   ac_status=$?
4873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874   (exit $ac_status); }; } &&
4875          { ac_try='test -s conftest$ac_exeext'
4876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877   (eval $ac_try) 2>&5
4878   ac_status=$?
4879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880   (exit $ac_status); }; }; then
4881   ac_R_space=yes
4882 else
4883   echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.$ac_ext >&5
4885
4886 ac_R_space=no
4887 fi
4888 rm -f conftest.err conftest.$ac_objext \
4889       conftest$ac_exeext conftest.$ac_ext
4890         if test $ac_R_space = yes; then
4891           echo "$as_me:$LINENO: result: yes" >&5
4892 echo "${ECHO_T}yes" >&6
4893           X_LIBS="$X_LIBS -R $x_libraries"
4894         else
4895           echo "$as_me:$LINENO: result: neither works" >&5
4896 echo "${ECHO_T}neither works" >&6
4897         fi
4898       fi
4899       LIBS=$ac_xsave_LIBS
4900     esac
4901   fi
4902
4903   # Check for system-dependent libraries X programs must link with.
4904   # Do this before checking for the system-independent R6 libraries
4905   # (-lICE), since we may need -lsocket or whatever for X linking.
4906
4907   if test "$ISC" = yes; then
4908     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4909   else
4910     # Martyn Johnson says this is needed for Ultrix, if the X
4911     # libraries were built with DECnet support.  And Karl Berry says
4912     # the Alpha needs dnet_stub (dnet does not exist).
4913     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4914     cat >conftest.$ac_ext <<_ACEOF
4915 /* confdefs.h.  */
4916 _ACEOF
4917 cat confdefs.h >>conftest.$ac_ext
4918 cat >>conftest.$ac_ext <<_ACEOF
4919 /* end confdefs.h.  */
4920
4921 /* Override any gcc2 internal prototype to avoid an error.  */
4922 #ifdef __cplusplus
4923 extern "C"
4924 #endif
4925 /* We use char because int might match the return type of a gcc2
4926    builtin and then its argument prototype would still apply.  */
4927 char XOpenDisplay ();
4928 int
4929 main ()
4930 {
4931 XOpenDisplay ();
4932   ;
4933   return 0;
4934 }
4935 _ACEOF
4936 rm -f conftest.$ac_objext conftest$ac_exeext
4937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4938   (eval $ac_link) 2>conftest.er1
4939   ac_status=$?
4940   grep -v '^ *+' conftest.er1 >conftest.err
4941   rm -f conftest.er1
4942   cat conftest.err >&5
4943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944   (exit $ac_status); } &&
4945          { ac_try='test -z "$ac_c_werror_flag"
4946                          || test ! -s conftest.err'
4947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948   (eval $ac_try) 2>&5
4949   ac_status=$?
4950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951   (exit $ac_status); }; } &&
4952          { ac_try='test -s conftest$ac_exeext'
4953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4954   (eval $ac_try) 2>&5
4955   ac_status=$?
4956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957   (exit $ac_status); }; }; then
4958   :
4959 else
4960   echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.$ac_ext >&5
4962
4963 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4964 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4965 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4966   echo $ECHO_N "(cached) $ECHO_C" >&6
4967 else
4968   ac_check_lib_save_LIBS=$LIBS
4969 LIBS="-ldnet  $LIBS"
4970 cat >conftest.$ac_ext <<_ACEOF
4971 /* confdefs.h.  */
4972 _ACEOF
4973 cat confdefs.h >>conftest.$ac_ext
4974 cat >>conftest.$ac_ext <<_ACEOF
4975 /* end confdefs.h.  */
4976
4977 /* Override any gcc2 internal prototype to avoid an error.  */
4978 #ifdef __cplusplus
4979 extern "C"
4980 #endif
4981 /* We use char because int might match the return type of a gcc2
4982    builtin and then its argument prototype would still apply.  */
4983 char dnet_ntoa ();
4984 int
4985 main ()
4986 {
4987 dnet_ntoa ();
4988   ;
4989   return 0;
4990 }
4991 _ACEOF
4992 rm -f conftest.$ac_objext conftest$ac_exeext
4993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4994   (eval $ac_link) 2>conftest.er1
4995   ac_status=$?
4996   grep -v '^ *+' conftest.er1 >conftest.err
4997   rm -f conftest.er1
4998   cat conftest.err >&5
4999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000   (exit $ac_status); } &&
5001          { ac_try='test -z "$ac_c_werror_flag"
5002                          || test ! -s conftest.err'
5003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5004   (eval $ac_try) 2>&5
5005   ac_status=$?
5006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007   (exit $ac_status); }; } &&
5008          { ac_try='test -s conftest$ac_exeext'
5009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010   (eval $ac_try) 2>&5
5011   ac_status=$?
5012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013   (exit $ac_status); }; }; then
5014   ac_cv_lib_dnet_dnet_ntoa=yes
5015 else
5016   echo "$as_me: failed program was:" >&5
5017 sed 's/^/| /' conftest.$ac_ext >&5
5018
5019 ac_cv_lib_dnet_dnet_ntoa=no
5020 fi
5021 rm -f conftest.err conftest.$ac_objext \
5022       conftest$ac_exeext conftest.$ac_ext
5023 LIBS=$ac_check_lib_save_LIBS
5024 fi
5025 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5026 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5027 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5028   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5029 fi
5030
5031     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5032       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5033 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5034 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5035   echo $ECHO_N "(cached) $ECHO_C" >&6
5036 else
5037   ac_check_lib_save_LIBS=$LIBS
5038 LIBS="-ldnet_stub  $LIBS"
5039 cat >conftest.$ac_ext <<_ACEOF
5040 /* confdefs.h.  */
5041 _ACEOF
5042 cat confdefs.h >>conftest.$ac_ext
5043 cat >>conftest.$ac_ext <<_ACEOF
5044 /* end confdefs.h.  */
5045
5046 /* Override any gcc2 internal prototype to avoid an error.  */
5047 #ifdef __cplusplus
5048 extern "C"
5049 #endif
5050 /* We use char because int might match the return type of a gcc2
5051    builtin and then its argument prototype would still apply.  */
5052 char dnet_ntoa ();
5053 int
5054 main ()
5055 {
5056 dnet_ntoa ();
5057   ;
5058   return 0;
5059 }
5060 _ACEOF
5061 rm -f conftest.$ac_objext conftest$ac_exeext
5062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5063   (eval $ac_link) 2>conftest.er1
5064   ac_status=$?
5065   grep -v '^ *+' conftest.er1 >conftest.err
5066   rm -f conftest.er1
5067   cat conftest.err >&5
5068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069   (exit $ac_status); } &&
5070          { ac_try='test -z "$ac_c_werror_flag"
5071                          || test ! -s conftest.err'
5072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5073   (eval $ac_try) 2>&5
5074   ac_status=$?
5075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076   (exit $ac_status); }; } &&
5077          { ac_try='test -s conftest$ac_exeext'
5078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079   (eval $ac_try) 2>&5
5080   ac_status=$?
5081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082   (exit $ac_status); }; }; then
5083   ac_cv_lib_dnet_stub_dnet_ntoa=yes
5084 else
5085   echo "$as_me: failed program was:" >&5
5086 sed 's/^/| /' conftest.$ac_ext >&5
5087
5088 ac_cv_lib_dnet_stub_dnet_ntoa=no
5089 fi
5090 rm -f conftest.err conftest.$ac_objext \
5091       conftest$ac_exeext conftest.$ac_ext
5092 LIBS=$ac_check_lib_save_LIBS
5093 fi
5094 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5095 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5096 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5097   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5098 fi
5099
5100     fi
5101 fi
5102 rm -f conftest.err conftest.$ac_objext \
5103       conftest$ac_exeext conftest.$ac_ext
5104     LIBS="$ac_xsave_LIBS"
5105
5106     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5107     # to get the SysV transport functions.
5108     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5109     # needs -lnsl.
5110     # The nsl library prevents programs from opening the X display
5111     # on Irix 5.2, according to T.E. Dickey.
5112     # The functions gethostbyname, getservbyname, and inet_addr are
5113     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5114     echo "$as_me:$LINENO: checking for gethostbyname" >&5
5115 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5116 if test "${ac_cv_func_gethostbyname+set}" = set; then
5117   echo $ECHO_N "(cached) $ECHO_C" >&6
5118 else
5119   cat >conftest.$ac_ext <<_ACEOF
5120 /* confdefs.h.  */
5121 _ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h.  */
5125 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5126    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5127 #define gethostbyname innocuous_gethostbyname
5128
5129 /* System header to define __stub macros and hopefully few prototypes,
5130     which can conflict with char gethostbyname (); below.
5131     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5132     <limits.h> exists even on freestanding compilers.  */
5133
5134 #ifdef __STDC__
5135 # include <limits.h>
5136 #else
5137 # include <assert.h>
5138 #endif
5139
5140 #undef gethostbyname
5141
5142 /* Override any gcc2 internal prototype to avoid an error.  */
5143 #ifdef __cplusplus
5144 extern "C"
5145 {
5146 #endif
5147 /* We use char because int might match the return type of a gcc2
5148    builtin and then its argument prototype would still apply.  */
5149 char gethostbyname ();
5150 /* The GNU C library defines this for functions which it implements
5151     to always fail with ENOSYS.  Some functions are actually named
5152     something starting with __ and the normal name is an alias.  */
5153 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5154 choke me
5155 #else
5156 char (*f) () = gethostbyname;
5157 #endif
5158 #ifdef __cplusplus
5159 }
5160 #endif
5161
5162 int
5163 main ()
5164 {
5165 return f != gethostbyname;
5166   ;
5167   return 0;
5168 }
5169 _ACEOF
5170 rm -f conftest.$ac_objext conftest$ac_exeext
5171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5172   (eval $ac_link) 2>conftest.er1
5173   ac_status=$?
5174   grep -v '^ *+' conftest.er1 >conftest.err
5175   rm -f conftest.er1
5176   cat conftest.err >&5
5177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178   (exit $ac_status); } &&
5179          { ac_try='test -z "$ac_c_werror_flag"
5180                          || test ! -s conftest.err'
5181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5182   (eval $ac_try) 2>&5
5183   ac_status=$?
5184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185   (exit $ac_status); }; } &&
5186          { ac_try='test -s conftest$ac_exeext'
5187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5188   (eval $ac_try) 2>&5
5189   ac_status=$?
5190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191   (exit $ac_status); }; }; then
5192   ac_cv_func_gethostbyname=yes
5193 else
5194   echo "$as_me: failed program was:" >&5
5195 sed 's/^/| /' conftest.$ac_ext >&5
5196
5197 ac_cv_func_gethostbyname=no
5198 fi
5199 rm -f conftest.err conftest.$ac_objext \
5200       conftest$ac_exeext conftest.$ac_ext
5201 fi
5202 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5203 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5204
5205     if test $ac_cv_func_gethostbyname = no; then
5206       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5207 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5208 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5209   echo $ECHO_N "(cached) $ECHO_C" >&6
5210 else
5211   ac_check_lib_save_LIBS=$LIBS
5212 LIBS="-lnsl  $LIBS"
5213 cat >conftest.$ac_ext <<_ACEOF
5214 /* confdefs.h.  */
5215 _ACEOF
5216 cat confdefs.h >>conftest.$ac_ext
5217 cat >>conftest.$ac_ext <<_ACEOF
5218 /* end confdefs.h.  */
5219
5220 /* Override any gcc2 internal prototype to avoid an error.  */
5221 #ifdef __cplusplus
5222 extern "C"
5223 #endif
5224 /* We use char because int might match the return type of a gcc2
5225    builtin and then its argument prototype would still apply.  */
5226 char gethostbyname ();
5227 int
5228 main ()
5229 {
5230 gethostbyname ();
5231   ;
5232   return 0;
5233 }
5234 _ACEOF
5235 rm -f conftest.$ac_objext conftest$ac_exeext
5236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5237   (eval $ac_link) 2>conftest.er1
5238   ac_status=$?
5239   grep -v '^ *+' conftest.er1 >conftest.err
5240   rm -f conftest.er1
5241   cat conftest.err >&5
5242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243   (exit $ac_status); } &&
5244          { ac_try='test -z "$ac_c_werror_flag"
5245                          || test ! -s conftest.err'
5246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5247   (eval $ac_try) 2>&5
5248   ac_status=$?
5249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250   (exit $ac_status); }; } &&
5251          { ac_try='test -s conftest$ac_exeext'
5252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253   (eval $ac_try) 2>&5
5254   ac_status=$?
5255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256   (exit $ac_status); }; }; then
5257   ac_cv_lib_nsl_gethostbyname=yes
5258 else
5259   echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5261
5262 ac_cv_lib_nsl_gethostbyname=no
5263 fi
5264 rm -f conftest.err conftest.$ac_objext \
5265       conftest$ac_exeext conftest.$ac_ext
5266 LIBS=$ac_check_lib_save_LIBS
5267 fi
5268 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5269 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5270 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5271   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5272 fi
5273
5274       if test $ac_cv_lib_nsl_gethostbyname = no; then
5275         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5276 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5277 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5278   echo $ECHO_N "(cached) $ECHO_C" >&6
5279 else
5280   ac_check_lib_save_LIBS=$LIBS
5281 LIBS="-lbsd  $LIBS"
5282 cat >conftest.$ac_ext <<_ACEOF
5283 /* confdefs.h.  */
5284 _ACEOF
5285 cat confdefs.h >>conftest.$ac_ext
5286 cat >>conftest.$ac_ext <<_ACEOF
5287 /* end confdefs.h.  */
5288
5289 /* Override any gcc2 internal prototype to avoid an error.  */
5290 #ifdef __cplusplus
5291 extern "C"
5292 #endif
5293 /* We use char because int might match the return type of a gcc2
5294    builtin and then its argument prototype would still apply.  */
5295 char gethostbyname ();
5296 int
5297 main ()
5298 {
5299 gethostbyname ();
5300   ;
5301   return 0;
5302 }
5303 _ACEOF
5304 rm -f conftest.$ac_objext conftest$ac_exeext
5305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5306   (eval $ac_link) 2>conftest.er1
5307   ac_status=$?
5308   grep -v '^ *+' conftest.er1 >conftest.err
5309   rm -f conftest.er1
5310   cat conftest.err >&5
5311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312   (exit $ac_status); } &&
5313          { ac_try='test -z "$ac_c_werror_flag"
5314                          || test ! -s conftest.err'
5315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316   (eval $ac_try) 2>&5
5317   ac_status=$?
5318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319   (exit $ac_status); }; } &&
5320          { ac_try='test -s conftest$ac_exeext'
5321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322   (eval $ac_try) 2>&5
5323   ac_status=$?
5324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325   (exit $ac_status); }; }; then
5326   ac_cv_lib_bsd_gethostbyname=yes
5327 else
5328   echo "$as_me: failed program was:" >&5
5329 sed 's/^/| /' conftest.$ac_ext >&5
5330
5331 ac_cv_lib_bsd_gethostbyname=no
5332 fi
5333 rm -f conftest.err conftest.$ac_objext \
5334       conftest$ac_exeext conftest.$ac_ext
5335 LIBS=$ac_check_lib_save_LIBS
5336 fi
5337 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5338 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5339 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5340   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5341 fi
5342
5343       fi
5344     fi
5345
5346     # lieder@skyler.mavd.honeywell.com says without -lsocket,
5347     # socket/setsockopt and other routines are undefined under SCO ODT
5348     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
5349     # on later versions), says Simon Leinen: it contains gethostby*
5350     # variants that don't use the name server (or something).  -lsocket
5351     # must be given before -lnsl if both are needed.  We assume that
5352     # if connect needs -lnsl, so does gethostbyname.
5353     echo "$as_me:$LINENO: checking for connect" >&5
5354 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5355 if test "${ac_cv_func_connect+set}" = set; then
5356   echo $ECHO_N "(cached) $ECHO_C" >&6
5357 else
5358   cat >conftest.$ac_ext <<_ACEOF
5359 /* confdefs.h.  */
5360 _ACEOF
5361 cat confdefs.h >>conftest.$ac_ext
5362 cat >>conftest.$ac_ext <<_ACEOF
5363 /* end confdefs.h.  */
5364 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5365    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5366 #define connect innocuous_connect
5367
5368 /* System header to define __stub macros and hopefully few prototypes,
5369     which can conflict with char connect (); below.
5370     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5371     <limits.h> exists even on freestanding compilers.  */
5372
5373 #ifdef __STDC__
5374 # include <limits.h>
5375 #else
5376 # include <assert.h>
5377 #endif
5378
5379 #undef connect
5380
5381 /* Override any gcc2 internal prototype to avoid an error.  */
5382 #ifdef __cplusplus
5383 extern "C"
5384 {
5385 #endif
5386 /* We use char because int might match the return type of a gcc2
5387    builtin and then its argument prototype would still apply.  */
5388 char connect ();
5389 /* The GNU C library defines this for functions which it implements
5390     to always fail with ENOSYS.  Some functions are actually named
5391     something starting with __ and the normal name is an alias.  */
5392 #if defined (__stub_connect) || defined (__stub___connect)
5393 choke me
5394 #else
5395 char (*f) () = connect;
5396 #endif
5397 #ifdef __cplusplus
5398 }
5399 #endif
5400
5401 int
5402 main ()
5403 {
5404 return f != connect;
5405   ;
5406   return 0;
5407 }
5408 _ACEOF
5409 rm -f conftest.$ac_objext conftest$ac_exeext
5410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5411   (eval $ac_link) 2>conftest.er1
5412   ac_status=$?
5413   grep -v '^ *+' conftest.er1 >conftest.err
5414   rm -f conftest.er1
5415   cat conftest.err >&5
5416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417   (exit $ac_status); } &&
5418          { ac_try='test -z "$ac_c_werror_flag"
5419                          || test ! -s conftest.err'
5420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421   (eval $ac_try) 2>&5
5422   ac_status=$?
5423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424   (exit $ac_status); }; } &&
5425          { ac_try='test -s conftest$ac_exeext'
5426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5427   (eval $ac_try) 2>&5
5428   ac_status=$?
5429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430   (exit $ac_status); }; }; then
5431   ac_cv_func_connect=yes
5432 else
5433   echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.$ac_ext >&5
5435
5436 ac_cv_func_connect=no
5437 fi
5438 rm -f conftest.err conftest.$ac_objext \
5439       conftest$ac_exeext conftest.$ac_ext
5440 fi
5441 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5442 echo "${ECHO_T}$ac_cv_func_connect" >&6
5443
5444     if test $ac_cv_func_connect = no; then
5445       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5446 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5447 if test "${ac_cv_lib_socket_connect+set}" = set; then
5448   echo $ECHO_N "(cached) $ECHO_C" >&6
5449 else
5450   ac_check_lib_save_LIBS=$LIBS
5451 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5452 cat >conftest.$ac_ext <<_ACEOF
5453 /* confdefs.h.  */
5454 _ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h.  */
5458
5459 /* Override any gcc2 internal prototype to avoid an error.  */
5460 #ifdef __cplusplus
5461 extern "C"
5462 #endif
5463 /* We use char because int might match the return type of a gcc2
5464    builtin and then its argument prototype would still apply.  */
5465 char connect ();
5466 int
5467 main ()
5468 {
5469 connect ();
5470   ;
5471   return 0;
5472 }
5473 _ACEOF
5474 rm -f conftest.$ac_objext conftest$ac_exeext
5475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5476   (eval $ac_link) 2>conftest.er1
5477   ac_status=$?
5478   grep -v '^ *+' conftest.er1 >conftest.err
5479   rm -f conftest.er1
5480   cat conftest.err >&5
5481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482   (exit $ac_status); } &&
5483          { ac_try='test -z "$ac_c_werror_flag"
5484                          || test ! -s conftest.err'
5485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5486   (eval $ac_try) 2>&5
5487   ac_status=$?
5488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489   (exit $ac_status); }; } &&
5490          { ac_try='test -s conftest$ac_exeext'
5491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5492   (eval $ac_try) 2>&5
5493   ac_status=$?
5494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495   (exit $ac_status); }; }; then
5496   ac_cv_lib_socket_connect=yes
5497 else
5498   echo "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.$ac_ext >&5
5500
5501 ac_cv_lib_socket_connect=no
5502 fi
5503 rm -f conftest.err conftest.$ac_objext \
5504       conftest$ac_exeext conftest.$ac_ext
5505 LIBS=$ac_check_lib_save_LIBS
5506 fi
5507 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5508 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5509 if test $ac_cv_lib_socket_connect = yes; then
5510   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5511 fi
5512
5513     fi
5514
5515     # Guillermo Gomez says -lposix is necessary on A/UX.
5516     echo "$as_me:$LINENO: checking for remove" >&5
5517 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5518 if test "${ac_cv_func_remove+set}" = set; then
5519   echo $ECHO_N "(cached) $ECHO_C" >&6
5520 else
5521   cat >conftest.$ac_ext <<_ACEOF
5522 /* confdefs.h.  */
5523 _ACEOF
5524 cat confdefs.h >>conftest.$ac_ext
5525 cat >>conftest.$ac_ext <<_ACEOF
5526 /* end confdefs.h.  */
5527 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5528    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5529 #define remove innocuous_remove
5530
5531 /* System header to define __stub macros and hopefully few prototypes,
5532     which can conflict with char remove (); below.
5533     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5534     <limits.h> exists even on freestanding compilers.  */
5535
5536 #ifdef __STDC__
5537 # include <limits.h>
5538 #else
5539 # include <assert.h>
5540 #endif
5541
5542 #undef remove
5543
5544 /* Override any gcc2 internal prototype to avoid an error.  */
5545 #ifdef __cplusplus
5546 extern "C"
5547 {
5548 #endif
5549 /* We use char because int might match the return type of a gcc2
5550    builtin and then its argument prototype would still apply.  */
5551 char remove ();
5552 /* The GNU C library defines this for functions which it implements
5553     to always fail with ENOSYS.  Some functions are actually named
5554     something starting with __ and the normal name is an alias.  */
5555 #if defined (__stub_remove) || defined (__stub___remove)
5556 choke me
5557 #else
5558 char (*f) () = remove;
5559 #endif
5560 #ifdef __cplusplus
5561 }
5562 #endif
5563
5564 int
5565 main ()
5566 {
5567 return f != remove;
5568   ;
5569   return 0;
5570 }
5571 _ACEOF
5572 rm -f conftest.$ac_objext conftest$ac_exeext
5573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5574   (eval $ac_link) 2>conftest.er1
5575   ac_status=$?
5576   grep -v '^ *+' conftest.er1 >conftest.err
5577   rm -f conftest.er1
5578   cat conftest.err >&5
5579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580   (exit $ac_status); } &&
5581          { ac_try='test -z "$ac_c_werror_flag"
5582                          || test ! -s conftest.err'
5583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5584   (eval $ac_try) 2>&5
5585   ac_status=$?
5586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587   (exit $ac_status); }; } &&
5588          { ac_try='test -s conftest$ac_exeext'
5589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5590   (eval $ac_try) 2>&5
5591   ac_status=$?
5592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593   (exit $ac_status); }; }; then
5594   ac_cv_func_remove=yes
5595 else
5596   echo "$as_me: failed program was:" >&5
5597 sed 's/^/| /' conftest.$ac_ext >&5
5598
5599 ac_cv_func_remove=no
5600 fi
5601 rm -f conftest.err conftest.$ac_objext \
5602       conftest$ac_exeext conftest.$ac_ext
5603 fi
5604 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5605 echo "${ECHO_T}$ac_cv_func_remove" >&6
5606
5607     if test $ac_cv_func_remove = no; then
5608       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5609 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5610 if test "${ac_cv_lib_posix_remove+set}" = set; then
5611   echo $ECHO_N "(cached) $ECHO_C" >&6
5612 else
5613   ac_check_lib_save_LIBS=$LIBS
5614 LIBS="-lposix  $LIBS"
5615 cat >conftest.$ac_ext <<_ACEOF
5616 /* confdefs.h.  */
5617 _ACEOF
5618 cat confdefs.h >>conftest.$ac_ext
5619 cat >>conftest.$ac_ext <<_ACEOF
5620 /* end confdefs.h.  */
5621
5622 /* Override any gcc2 internal prototype to avoid an error.  */
5623 #ifdef __cplusplus
5624 extern "C"
5625 #endif
5626 /* We use char because int might match the return type of a gcc2
5627    builtin and then its argument prototype would still apply.  */
5628 char remove ();
5629 int
5630 main ()
5631 {
5632 remove ();
5633   ;
5634   return 0;
5635 }
5636 _ACEOF
5637 rm -f conftest.$ac_objext conftest$ac_exeext
5638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5639   (eval $ac_link) 2>conftest.er1
5640   ac_status=$?
5641   grep -v '^ *+' conftest.er1 >conftest.err
5642   rm -f conftest.er1
5643   cat conftest.err >&5
5644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645   (exit $ac_status); } &&
5646          { ac_try='test -z "$ac_c_werror_flag"
5647                          || test ! -s conftest.err'
5648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5649   (eval $ac_try) 2>&5
5650   ac_status=$?
5651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652   (exit $ac_status); }; } &&
5653          { ac_try='test -s conftest$ac_exeext'
5654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5655   (eval $ac_try) 2>&5
5656   ac_status=$?
5657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658   (exit $ac_status); }; }; then
5659   ac_cv_lib_posix_remove=yes
5660 else
5661   echo "$as_me: failed program was:" >&5
5662 sed 's/^/| /' conftest.$ac_ext >&5
5663
5664 ac_cv_lib_posix_remove=no
5665 fi
5666 rm -f conftest.err conftest.$ac_objext \
5667       conftest$ac_exeext conftest.$ac_ext
5668 LIBS=$ac_check_lib_save_LIBS
5669 fi
5670 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5671 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5672 if test $ac_cv_lib_posix_remove = yes; then
5673   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5674 fi
5675
5676     fi
5677
5678     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5679     echo "$as_me:$LINENO: checking for shmat" >&5
5680 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5681 if test "${ac_cv_func_shmat+set}" = set; then
5682   echo $ECHO_N "(cached) $ECHO_C" >&6
5683 else
5684   cat >conftest.$ac_ext <<_ACEOF
5685 /* confdefs.h.  */
5686 _ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h.  */
5690 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5691    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5692 #define shmat innocuous_shmat
5693
5694 /* System header to define __stub macros and hopefully few prototypes,
5695     which can conflict with char shmat (); below.
5696     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5697     <limits.h> exists even on freestanding compilers.  */
5698
5699 #ifdef __STDC__
5700 # include <limits.h>
5701 #else
5702 # include <assert.h>
5703 #endif
5704
5705 #undef shmat
5706
5707 /* Override any gcc2 internal prototype to avoid an error.  */
5708 #ifdef __cplusplus
5709 extern "C"
5710 {
5711 #endif
5712 /* We use char because int might match the return type of a gcc2
5713    builtin and then its argument prototype would still apply.  */
5714 char shmat ();
5715 /* The GNU C library defines this for functions which it implements
5716     to always fail with ENOSYS.  Some functions are actually named
5717     something starting with __ and the normal name is an alias.  */
5718 #if defined (__stub_shmat) || defined (__stub___shmat)
5719 choke me
5720 #else
5721 char (*f) () = shmat;
5722 #endif
5723 #ifdef __cplusplus
5724 }
5725 #endif
5726
5727 int
5728 main ()
5729 {
5730 return f != shmat;
5731   ;
5732   return 0;
5733 }
5734 _ACEOF
5735 rm -f conftest.$ac_objext conftest$ac_exeext
5736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5737   (eval $ac_link) 2>conftest.er1
5738   ac_status=$?
5739   grep -v '^ *+' conftest.er1 >conftest.err
5740   rm -f conftest.er1
5741   cat conftest.err >&5
5742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743   (exit $ac_status); } &&
5744          { ac_try='test -z "$ac_c_werror_flag"
5745                          || test ! -s conftest.err'
5746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747   (eval $ac_try) 2>&5
5748   ac_status=$?
5749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750   (exit $ac_status); }; } &&
5751          { ac_try='test -s conftest$ac_exeext'
5752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5753   (eval $ac_try) 2>&5
5754   ac_status=$?
5755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756   (exit $ac_status); }; }; then
5757   ac_cv_func_shmat=yes
5758 else
5759   echo "$as_me: failed program was:" >&5
5760 sed 's/^/| /' conftest.$ac_ext >&5
5761
5762 ac_cv_func_shmat=no
5763 fi
5764 rm -f conftest.err conftest.$ac_objext \
5765       conftest$ac_exeext conftest.$ac_ext
5766 fi
5767 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5768 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5769
5770     if test $ac_cv_func_shmat = no; then
5771       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5772 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5773 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5774   echo $ECHO_N "(cached) $ECHO_C" >&6
5775 else
5776   ac_check_lib_save_LIBS=$LIBS
5777 LIBS="-lipc  $LIBS"
5778 cat >conftest.$ac_ext <<_ACEOF
5779 /* confdefs.h.  */
5780 _ACEOF
5781 cat confdefs.h >>conftest.$ac_ext
5782 cat >>conftest.$ac_ext <<_ACEOF
5783 /* end confdefs.h.  */
5784
5785 /* Override any gcc2 internal prototype to avoid an error.  */
5786 #ifdef __cplusplus
5787 extern "C"
5788 #endif
5789 /* We use char because int might match the return type of a gcc2
5790    builtin and then its argument prototype would still apply.  */
5791 char shmat ();
5792 int
5793 main ()
5794 {
5795 shmat ();
5796   ;
5797   return 0;
5798 }
5799 _ACEOF
5800 rm -f conftest.$ac_objext conftest$ac_exeext
5801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5802   (eval $ac_link) 2>conftest.er1
5803   ac_status=$?
5804   grep -v '^ *+' conftest.er1 >conftest.err
5805   rm -f conftest.er1
5806   cat conftest.err >&5
5807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808   (exit $ac_status); } &&
5809          { ac_try='test -z "$ac_c_werror_flag"
5810                          || test ! -s conftest.err'
5811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5812   (eval $ac_try) 2>&5
5813   ac_status=$?
5814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815   (exit $ac_status); }; } &&
5816          { ac_try='test -s conftest$ac_exeext'
5817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818   (eval $ac_try) 2>&5
5819   ac_status=$?
5820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821   (exit $ac_status); }; }; then
5822   ac_cv_lib_ipc_shmat=yes
5823 else
5824   echo "$as_me: failed program was:" >&5
5825 sed 's/^/| /' conftest.$ac_ext >&5
5826
5827 ac_cv_lib_ipc_shmat=no
5828 fi
5829 rm -f conftest.err conftest.$ac_objext \
5830       conftest$ac_exeext conftest.$ac_ext
5831 LIBS=$ac_check_lib_save_LIBS
5832 fi
5833 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5834 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5835 if test $ac_cv_lib_ipc_shmat = yes; then
5836   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5837 fi
5838
5839     fi
5840   fi
5841
5842   # Check for libraries that X11R6 Xt/Xaw programs need.
5843   ac_save_LDFLAGS=$LDFLAGS
5844   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5845   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5846   # check for ICE first), but we must link in the order -lSM -lICE or
5847   # we get undefined symbols.  So assume we have SM if we have ICE.
5848   # These have to be linked with before -lX11, unlike the other
5849   # libraries we check for below, so use a different variable.
5850   # John Interrante, Karl Berry
5851   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5852 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5853 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5854   echo $ECHO_N "(cached) $ECHO_C" >&6
5855 else
5856   ac_check_lib_save_LIBS=$LIBS
5857 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5858 cat >conftest.$ac_ext <<_ACEOF
5859 /* confdefs.h.  */
5860 _ACEOF
5861 cat confdefs.h >>conftest.$ac_ext
5862 cat >>conftest.$ac_ext <<_ACEOF
5863 /* end confdefs.h.  */
5864
5865 /* Override any gcc2 internal prototype to avoid an error.  */
5866 #ifdef __cplusplus
5867 extern "C"
5868 #endif
5869 /* We use char because int might match the return type of a gcc2
5870    builtin and then its argument prototype would still apply.  */
5871 char IceConnectionNumber ();
5872 int
5873 main ()
5874 {
5875 IceConnectionNumber ();
5876   ;
5877   return 0;
5878 }
5879 _ACEOF
5880 rm -f conftest.$ac_objext conftest$ac_exeext
5881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5882   (eval $ac_link) 2>conftest.er1
5883   ac_status=$?
5884   grep -v '^ *+' conftest.er1 >conftest.err
5885   rm -f conftest.er1
5886   cat conftest.err >&5
5887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888   (exit $ac_status); } &&
5889          { ac_try='test -z "$ac_c_werror_flag"
5890                          || test ! -s conftest.err'
5891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892   (eval $ac_try) 2>&5
5893   ac_status=$?
5894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895   (exit $ac_status); }; } &&
5896          { ac_try='test -s conftest$ac_exeext'
5897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5898   (eval $ac_try) 2>&5
5899   ac_status=$?
5900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901   (exit $ac_status); }; }; then
5902   ac_cv_lib_ICE_IceConnectionNumber=yes
5903 else
5904   echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.$ac_ext >&5
5906
5907 ac_cv_lib_ICE_IceConnectionNumber=no
5908 fi
5909 rm -f conftest.err conftest.$ac_objext \
5910       conftest$ac_exeext conftest.$ac_ext
5911 LIBS=$ac_check_lib_save_LIBS
5912 fi
5913 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5914 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5915 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5916   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5917 fi
5918
5919   LDFLAGS=$ac_save_LDFLAGS
5920
5921 fi
5922
5923
5924 # Checks for X
5925 if test "x$with_x" = xyes; then
5926   if test "x$have_x" = xno; then
5927     if test "x$x_config_flag" = xyes; then
5928       { { echo "$as_me:$LINENO: error: Could not configure X" >&5
5929 echo "$as_me: error: Could not configure X" >&2;}
5930    { (exit 1); exit 1; }; }
5931     else
5932       { echo "$as_me:$LINENO: WARNING: Could not configure X" >&5
5933 echo "$as_me: WARNING: Could not configure X" >&2;}
5934     fi
5935   fi
5936 fi
5937 if test "x$with_x" = xyes -a "x$have_x" = xyes; then
5938   if test "x$x_libraries" != x; then
5939     ldflags_x_opt="-L$x_libraries"
5940     LDFLAGS="$LDFLAGS $ldflags_x_opt"
5941     SHLDFLAGS="$SHLDFLAGS $ldflags_x_opt"
5942   else
5943     ldflags_x_opt=
5944   fi
5945   if test "x$x_includes" != x; then
5946     CPPFLAGS="$CPPFLAGS -I$x_includes"
5947   fi
5948
5949
5950 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
5951 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
5952 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
5953   echo $ECHO_N "(cached) $ECHO_C" >&6
5954 else
5955   ac_check_lib_save_LIBS=$LIBS
5956 LIBS="-lX11  $LIBS"
5957 cat >conftest.$ac_ext <<_ACEOF
5958 /* confdefs.h.  */
5959 _ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h.  */
5963
5964 /* Override any gcc2 internal prototype to avoid an error.  */
5965 #ifdef __cplusplus
5966 extern "C"
5967 #endif
5968 /* We use char because int might match the return type of a gcc2
5969    builtin and then its argument prototype would still apply.  */
5970 char XOpenDisplay ();
5971 int
5972 main ()
5973 {
5974 XOpenDisplay ();
5975   ;
5976   return 0;
5977 }
5978 _ACEOF
5979 rm -f conftest.$ac_objext conftest$ac_exeext
5980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5981   (eval $ac_link) 2>conftest.er1
5982   ac_status=$?
5983   grep -v '^ *+' conftest.er1 >conftest.err
5984   rm -f conftest.er1
5985   cat conftest.err >&5
5986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987   (exit $ac_status); } &&
5988          { ac_try='test -z "$ac_c_werror_flag"
5989                          || test ! -s conftest.err'
5990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5991   (eval $ac_try) 2>&5
5992   ac_status=$?
5993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994   (exit $ac_status); }; } &&
5995          { ac_try='test -s conftest$ac_exeext'
5996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997   (eval $ac_try) 2>&5
5998   ac_status=$?
5999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000   (exit $ac_status); }; }; then
6001   ac_cv_lib_X11_XOpenDisplay=yes
6002 else
6003   echo "$as_me: failed program was:" >&5
6004 sed 's/^/| /' conftest.$ac_ext >&5
6005
6006 ac_cv_lib_X11_XOpenDisplay=no
6007 fi
6008 rm -f conftest.err conftest.$ac_objext \
6009       conftest$ac_exeext conftest.$ac_ext
6010 LIBS=$ac_check_lib_save_LIBS
6011 fi
6012 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
6013 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
6014 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
6015   cat >>confdefs.h <<_ACEOF
6016 #define HAVE_LIBX11 1
6017 _ACEOF
6018
6019   LIBS="-lX11 $LIBS"
6020
6021 fi
6022
6023   echo "$as_me:$LINENO: checking X11 version 6" >&5
6024 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
6025   if test "${timidity_cv_x11_version_6+set}" = set; then
6026   echo $ECHO_N "(cached) $ECHO_C" >&6
6027 else
6028   cat >conftest.$ac_ext <<_ACEOF
6029 /* confdefs.h.  */
6030 _ACEOF
6031 cat confdefs.h >>conftest.$ac_ext
6032 cat >>conftest.$ac_ext <<_ACEOF
6033 /* end confdefs.h.  */
6034 #include <X11/Xlib.h>
6035 int
6036 main ()
6037 {
6038
6039 #if XlibSpecificationRelease < 6
6040 fail;
6041 #endif
6042
6043   ;
6044   return 0;
6045 }
6046 _ACEOF
6047 rm -f conftest.$ac_objext conftest$ac_exeext
6048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6049   (eval $ac_link) 2>conftest.er1
6050   ac_status=$?
6051   grep -v '^ *+' conftest.er1 >conftest.err
6052   rm -f conftest.er1
6053   cat conftest.err >&5
6054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055   (exit $ac_status); } &&
6056          { ac_try='test -z "$ac_c_werror_flag"
6057                          || test ! -s conftest.err'
6058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059   (eval $ac_try) 2>&5
6060   ac_status=$?
6061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062   (exit $ac_status); }; } &&
6063          { ac_try='test -s conftest$ac_exeext'
6064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065   (eval $ac_try) 2>&5
6066   ac_status=$?
6067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068   (exit $ac_status); }; }; then
6069   timidity_cv_x11_version_6=yes
6070 else
6071   echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6073
6074 timidity_cv_x11_version_6=no
6075 fi
6076 rm -f conftest.err conftest.$ac_objext \
6077       conftest$ac_exeext conftest.$ac_ext
6078 fi
6079
6080   if test "$timidity_cv_x11_version_6" = "yes"; then
6081     echo "$as_me:$LINENO: result: 6 or newer" >&5
6082 echo "${ECHO_T}6 or newer" >&6
6083       else
6084     echo "$as_me:$LINENO: result: before 6" >&5
6085 echo "${ECHO_T}before 6" >&6
6086   fi
6087
6088     KEEPLIBS=$LIBS
6089   echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
6090 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
6091 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
6092   echo $ECHO_N "(cached) $ECHO_C" >&6
6093 else
6094   ac_check_lib_save_LIBS=$LIBS
6095 LIBS="-lXext  $LIBS"
6096 cat >conftest.$ac_ext <<_ACEOF
6097 /* confdefs.h.  */
6098 _ACEOF
6099 cat confdefs.h >>conftest.$ac_ext
6100 cat >>conftest.$ac_ext <<_ACEOF
6101 /* end confdefs.h.  */
6102
6103 /* Override any gcc2 internal prototype to avoid an error.  */
6104 #ifdef __cplusplus
6105 extern "C"
6106 #endif
6107 /* We use char because int might match the return type of a gcc2
6108    builtin and then its argument prototype would still apply.  */
6109 char XShapeCombineMask ();
6110 int
6111 main ()
6112 {
6113 XShapeCombineMask ();
6114   ;
6115   return 0;
6116 }
6117 _ACEOF
6118 rm -f conftest.$ac_objext conftest$ac_exeext
6119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6120   (eval $ac_link) 2>conftest.er1
6121   ac_status=$?
6122   grep -v '^ *+' conftest.er1 >conftest.err
6123   rm -f conftest.er1
6124   cat conftest.err >&5
6125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126   (exit $ac_status); } &&
6127          { ac_try='test -z "$ac_c_werror_flag"
6128                          || test ! -s conftest.err'
6129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130   (eval $ac_try) 2>&5
6131   ac_status=$?
6132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133   (exit $ac_status); }; } &&
6134          { ac_try='test -s conftest$ac_exeext'
6135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6136   (eval $ac_try) 2>&5
6137   ac_status=$?
6138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139   (exit $ac_status); }; }; then
6140   ac_cv_lib_Xext_XShapeCombineMask=yes
6141 else
6142   echo "$as_me: failed program was:" >&5
6143 sed 's/^/| /' conftest.$ac_ext >&5
6144
6145 ac_cv_lib_Xext_XShapeCombineMask=no
6146 fi
6147 rm -f conftest.err conftest.$ac_objext \
6148       conftest$ac_exeext conftest.$ac_ext
6149 LIBS=$ac_check_lib_save_LIBS
6150 fi
6151 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
6152 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
6153 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
6154   have_xext=yes; LIBS="-lXext $LIBS"
6155 else
6156   have_xext=no
6157 fi
6158
6159
6160 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6161 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6162 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6163   echo $ECHO_N "(cached) $ECHO_C" >&6
6164 else
6165   ac_check_lib_save_LIBS=$LIBS
6166 LIBS="-lICE  $LIBS"
6167 cat >conftest.$ac_ext <<_ACEOF
6168 /* confdefs.h.  */
6169 _ACEOF
6170 cat confdefs.h >>conftest.$ac_ext
6171 cat >>conftest.$ac_ext <<_ACEOF
6172 /* end confdefs.h.  */
6173
6174 /* Override any gcc2 internal prototype to avoid an error.  */
6175 #ifdef __cplusplus
6176 extern "C"
6177 #endif
6178 /* We use char because int might match the return type of a gcc2
6179    builtin and then its argument prototype would still apply.  */
6180 char IceConnectionNumber ();
6181 int
6182 main ()
6183 {
6184 IceConnectionNumber ();
6185   ;
6186   return 0;
6187 }
6188 _ACEOF
6189 rm -f conftest.$ac_objext conftest$ac_exeext
6190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6191   (eval $ac_link) 2>conftest.er1
6192   ac_status=$?
6193   grep -v '^ *+' conftest.er1 >conftest.err
6194   rm -f conftest.er1
6195   cat conftest.err >&5
6196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197   (exit $ac_status); } &&
6198          { ac_try='test -z "$ac_c_werror_flag"
6199                          || test ! -s conftest.err'
6200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201   (eval $ac_try) 2>&5
6202   ac_status=$?
6203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204   (exit $ac_status); }; } &&
6205          { ac_try='test -s conftest$ac_exeext'
6206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207   (eval $ac_try) 2>&5
6208   ac_status=$?
6209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210   (exit $ac_status); }; }; then
6211   ac_cv_lib_ICE_IceConnectionNumber=yes
6212 else
6213   echo "$as_me: failed program was:" >&5
6214 sed 's/^/| /' conftest.$ac_ext >&5
6215
6216 ac_cv_lib_ICE_IceConnectionNumber=no
6217 fi
6218 rm -f conftest.err conftest.$ac_objext \
6219       conftest$ac_exeext conftest.$ac_ext
6220 LIBS=$ac_check_lib_save_LIBS
6221 fi
6222 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6223 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6224 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6225   cat >>confdefs.h <<_ACEOF
6226 #define HAVE_LIBICE 1
6227 _ACEOF
6228
6229   LIBS="-lICE $LIBS"
6230
6231 fi
6232
6233   echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
6234 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
6235 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
6236   echo $ECHO_N "(cached) $ECHO_C" >&6
6237 else
6238   ac_check_lib_save_LIBS=$LIBS
6239 LIBS="-lSM  $LIBS"
6240 cat >conftest.$ac_ext <<_ACEOF
6241 /* confdefs.h.  */
6242 _ACEOF
6243 cat confdefs.h >>conftest.$ac_ext
6244 cat >>conftest.$ac_ext <<_ACEOF
6245 /* end confdefs.h.  */
6246
6247 /* Override any gcc2 internal prototype to avoid an error.  */
6248 #ifdef __cplusplus
6249 extern "C"
6250 #endif
6251 /* We use char because int might match the return type of a gcc2
6252    builtin and then its argument prototype would still apply.  */
6253 char SmcOpenConnection ();
6254 int
6255 main ()
6256 {
6257 SmcOpenConnection ();
6258   ;
6259   return 0;
6260 }
6261 _ACEOF
6262 rm -f conftest.$ac_objext conftest$ac_exeext
6263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6264   (eval $ac_link) 2>conftest.er1
6265   ac_status=$?
6266   grep -v '^ *+' conftest.er1 >conftest.err
6267   rm -f conftest.er1
6268   cat conftest.err >&5
6269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270   (exit $ac_status); } &&
6271          { ac_try='test -z "$ac_c_werror_flag"
6272                          || test ! -s conftest.err'
6273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6274   (eval $ac_try) 2>&5
6275   ac_status=$?
6276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277   (exit $ac_status); }; } &&
6278          { ac_try='test -s conftest$ac_exeext'
6279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6280   (eval $ac_try) 2>&5
6281   ac_status=$?
6282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283   (exit $ac_status); }; }; then
6284   ac_cv_lib_SM_SmcOpenConnection=yes
6285 else
6286   echo "$as_me: failed program was:" >&5
6287 sed 's/^/| /' conftest.$ac_ext >&5
6288
6289 ac_cv_lib_SM_SmcOpenConnection=no
6290 fi
6291 rm -f conftest.err conftest.$ac_objext \
6292       conftest$ac_exeext conftest.$ac_ext
6293 LIBS=$ac_check_lib_save_LIBS
6294 fi
6295 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
6296 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
6297 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
6298   have_xprelibs=yes; LIBS="-lSM $LIBS"
6299 else
6300   have_xprelibs=no
6301 fi
6302
6303   echo "$as_me:$LINENO: checking for XtVaAppInitialize in -lXt" >&5
6304 echo $ECHO_N "checking for XtVaAppInitialize in -lXt... $ECHO_C" >&6
6305 if test "${ac_cv_lib_Xt_XtVaAppInitialize+set}" = set; then
6306   echo $ECHO_N "(cached) $ECHO_C" >&6
6307 else
6308   ac_check_lib_save_LIBS=$LIBS
6309 LIBS="-lXt  $LIBS"
6310 cat >conftest.$ac_ext <<_ACEOF
6311 /* confdefs.h.  */
6312 _ACEOF
6313 cat confdefs.h >>conftest.$ac_ext
6314 cat >>conftest.$ac_ext <<_ACEOF
6315 /* end confdefs.h.  */
6316
6317 /* Override any gcc2 internal prototype to avoid an error.  */
6318 #ifdef __cplusplus
6319 extern "C"
6320 #endif
6321 /* We use char because int might match the return type of a gcc2
6322    builtin and then its argument prototype would still apply.  */
6323 char XtVaAppInitialize ();
6324 int
6325 main ()
6326 {
6327 XtVaAppInitialize ();
6328   ;
6329   return 0;
6330 }
6331 _ACEOF
6332 rm -f conftest.$ac_objext conftest$ac_exeext
6333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6334   (eval $ac_link) 2>conftest.er1
6335   ac_status=$?
6336   grep -v '^ *+' conftest.er1 >conftest.err
6337   rm -f conftest.er1
6338   cat conftest.err >&5
6339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340   (exit $ac_status); } &&
6341          { ac_try='test -z "$ac_c_werror_flag"
6342                          || test ! -s conftest.err'
6343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6344   (eval $ac_try) 2>&5
6345   ac_status=$?
6346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347   (exit $ac_status); }; } &&
6348          { ac_try='test -s conftest$ac_exeext'
6349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350   (eval $ac_try) 2>&5
6351   ac_status=$?
6352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353   (exit $ac_status); }; }; then
6354   ac_cv_lib_Xt_XtVaAppInitialize=yes
6355 else
6356   echo "$as_me: failed program was:" >&5
6357 sed 's/^/| /' conftest.$ac_ext >&5
6358
6359 ac_cv_lib_Xt_XtVaAppInitialize=no
6360 fi
6361 rm -f conftest.err conftest.$ac_objext \
6362       conftest$ac_exeext conftest.$ac_ext
6363 LIBS=$ac_check_lib_save_LIBS
6364 fi
6365 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtVaAppInitialize" >&5
6366 echo "${ECHO_T}$ac_cv_lib_Xt_XtVaAppInitialize" >&6
6367 if test $ac_cv_lib_Xt_XtVaAppInitialize = yes; then
6368   have_xt=yes; LIBS="-lXt $LIBS"
6369 else
6370   have_xt=no
6371 fi
6372
6373   echo "$as_me:$LINENO: checking for XmuInternAtom in -lXmu" >&5
6374 echo $ECHO_N "checking for XmuInternAtom in -lXmu... $ECHO_C" >&6
6375 if test "${ac_cv_lib_Xmu_XmuInternAtom+set}" = set; then
6376   echo $ECHO_N "(cached) $ECHO_C" >&6
6377 else
6378   ac_check_lib_save_LIBS=$LIBS
6379 LIBS="-lXmu  $LIBS"
6380 cat >conftest.$ac_ext <<_ACEOF
6381 /* confdefs.h.  */
6382 _ACEOF
6383 cat confdefs.h >>conftest.$ac_ext
6384 cat >>conftest.$ac_ext <<_ACEOF
6385 /* end confdefs.h.  */
6386
6387 /* Override any gcc2 internal prototype to avoid an error.  */
6388 #ifdef __cplusplus
6389 extern "C"
6390 #endif
6391 /* We use char because int might match the return type of a gcc2
6392    builtin and then its argument prototype would still apply.  */
6393 char XmuInternAtom ();
6394 int
6395 main ()
6396 {
6397 XmuInternAtom ();
6398   ;
6399   return 0;
6400 }
6401 _ACEOF
6402 rm -f conftest.$ac_objext conftest$ac_exeext
6403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6404   (eval $ac_link) 2>conftest.er1
6405   ac_status=$?
6406   grep -v '^ *+' conftest.er1 >conftest.err
6407   rm -f conftest.er1
6408   cat conftest.err >&5
6409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410   (exit $ac_status); } &&
6411          { ac_try='test -z "$ac_c_werror_flag"
6412                          || test ! -s conftest.err'
6413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6414   (eval $ac_try) 2>&5
6415   ac_status=$?
6416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417   (exit $ac_status); }; } &&
6418          { ac_try='test -s conftest$ac_exeext'
6419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420   (eval $ac_try) 2>&5
6421   ac_status=$?
6422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423   (exit $ac_status); }; }; then
6424   ac_cv_lib_Xmu_XmuInternAtom=yes
6425 else
6426   echo "$as_me: failed program was:" >&5
6427 sed 's/^/| /' conftest.$ac_ext >&5
6428
6429 ac_cv_lib_Xmu_XmuInternAtom=no
6430 fi
6431 rm -f conftest.err conftest.$ac_objext \
6432       conftest$ac_exeext conftest.$ac_ext
6433 LIBS=$ac_check_lib_save_LIBS
6434 fi
6435 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuInternAtom" >&5
6436 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuInternAtom" >&6
6437 if test $ac_cv_lib_Xmu_XmuInternAtom = yes; then
6438   LIBS="-lXmu $LIBS"
6439 fi
6440
6441
6442 for ac_func in XmuRegisterExternalAgent
6443 do
6444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6445 echo "$as_me:$LINENO: checking for $ac_func" >&5
6446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6447 if eval "test \"\${$as_ac_var+set}\" = set"; then
6448   echo $ECHO_N "(cached) $ECHO_C" >&6
6449 else
6450   cat >conftest.$ac_ext <<_ACEOF
6451 /* confdefs.h.  */
6452 _ACEOF
6453 cat confdefs.h >>conftest.$ac_ext
6454 cat >>conftest.$ac_ext <<_ACEOF
6455 /* end confdefs.h.  */
6456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6457    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6458 #define $ac_func innocuous_$ac_func
6459
6460 /* System header to define __stub macros and hopefully few prototypes,
6461     which can conflict with char $ac_func (); below.
6462     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6463     <limits.h> exists even on freestanding compilers.  */
6464
6465 #ifdef __STDC__
6466 # include <limits.h>
6467 #else
6468 # include <assert.h>
6469 #endif
6470
6471 #undef $ac_func
6472
6473 /* Override any gcc2 internal prototype to avoid an error.  */
6474 #ifdef __cplusplus
6475 extern "C"
6476 {
6477 #endif
6478 /* We use char because int might match the return type of a gcc2
6479    builtin and then its argument prototype would still apply.  */
6480 char $ac_func ();
6481 /* The GNU C library defines this for functions which it implements
6482     to always fail with ENOSYS.  Some functions are actually named
6483     something starting with __ and the normal name is an alias.  */
6484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6485 choke me
6486 #else
6487 char (*f) () = $ac_func;
6488 #endif
6489 #ifdef __cplusplus
6490 }
6491 #endif
6492
6493 int
6494 main ()
6495 {
6496 return f != $ac_func;
6497   ;
6498   return 0;
6499 }
6500 _ACEOF
6501 rm -f conftest.$ac_objext conftest$ac_exeext
6502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6503   (eval $ac_link) 2>conftest.er1
6504   ac_status=$?
6505   grep -v '^ *+' conftest.er1 >conftest.err
6506   rm -f conftest.er1
6507   cat conftest.err >&5
6508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509   (exit $ac_status); } &&
6510          { ac_try='test -z "$ac_c_werror_flag"
6511                          || test ! -s conftest.err'
6512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6513   (eval $ac_try) 2>&5
6514   ac_status=$?
6515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516   (exit $ac_status); }; } &&
6517          { ac_try='test -s conftest$ac_exeext'
6518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6519   (eval $ac_try) 2>&5
6520   ac_status=$?
6521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522   (exit $ac_status); }; }; then
6523   eval "$as_ac_var=yes"
6524 else
6525   echo "$as_me: failed program was:" >&5
6526 sed 's/^/| /' conftest.$ac_ext >&5
6527
6528 eval "$as_ac_var=no"
6529 fi
6530 rm -f conftest.err conftest.$ac_objext \
6531       conftest$ac_exeext conftest.$ac_ext
6532 fi
6533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6534 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6535 if test `eval echo '${'$as_ac_var'}'` = yes; then
6536   cat >>confdefs.h <<_ACEOF
6537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6538 _ACEOF
6539
6540 fi
6541 done
6542
6543   echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw3d" >&5
6544 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw3d... $ECHO_C" >&6
6545 if test "${ac_cv_lib_Xaw3d_XawInitializeWidgetSet+set}" = set; then
6546   echo $ECHO_N "(cached) $ECHO_C" >&6
6547 else
6548   ac_check_lib_save_LIBS=$LIBS
6549 LIBS="-lXaw3d  $LIBS"
6550 cat >conftest.$ac_ext <<_ACEOF
6551 /* confdefs.h.  */
6552 _ACEOF
6553 cat confdefs.h >>conftest.$ac_ext
6554 cat >>conftest.$ac_ext <<_ACEOF
6555 /* end confdefs.h.  */
6556
6557 /* Override any gcc2 internal prototype to avoid an error.  */
6558 #ifdef __cplusplus
6559 extern "C"
6560 #endif
6561 /* We use char because int might match the return type of a gcc2
6562    builtin and then its argument prototype would still apply.  */
6563 char XawInitializeWidgetSet ();
6564 int
6565 main ()
6566 {
6567 XawInitializeWidgetSet ();
6568   ;
6569   return 0;
6570 }
6571 _ACEOF
6572 rm -f conftest.$ac_objext conftest$ac_exeext
6573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6574   (eval $ac_link) 2>conftest.er1
6575   ac_status=$?
6576   grep -v '^ *+' conftest.er1 >conftest.err
6577   rm -f conftest.er1
6578   cat conftest.err >&5
6579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580   (exit $ac_status); } &&
6581          { ac_try='test -z "$ac_c_werror_flag"
6582                          || test ! -s conftest.err'
6583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584   (eval $ac_try) 2>&5
6585   ac_status=$?
6586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587   (exit $ac_status); }; } &&
6588          { ac_try='test -s conftest$ac_exeext'
6589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590   (eval $ac_try) 2>&5
6591   ac_status=$?
6592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593   (exit $ac_status); }; }; then
6594   ac_cv_lib_Xaw3d_XawInitializeWidgetSet=yes
6595 else
6596   echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6598
6599 ac_cv_lib_Xaw3d_XawInitializeWidgetSet=no
6600 fi
6601 rm -f conftest.err conftest.$ac_objext \
6602       conftest$ac_exeext conftest.$ac_ext
6603 LIBS=$ac_check_lib_save_LIBS
6604 fi
6605 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&5
6606 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&6
6607 if test $ac_cv_lib_Xaw3d_XawInitializeWidgetSet = yes; then
6608   have_xaw=3d
6609 else
6610    echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw" >&5
6611 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw... $ECHO_C" >&6
6612 if test "${ac_cv_lib_Xaw_XawInitializeWidgetSet+set}" = set; then
6613   echo $ECHO_N "(cached) $ECHO_C" >&6
6614 else
6615   ac_check_lib_save_LIBS=$LIBS
6616 LIBS="-lXaw  $LIBS"
6617 cat >conftest.$ac_ext <<_ACEOF
6618 /* confdefs.h.  */
6619 _ACEOF
6620 cat confdefs.h >>conftest.$ac_ext
6621 cat >>conftest.$ac_ext <<_ACEOF
6622 /* end confdefs.h.  */
6623
6624 /* Override any gcc2 internal prototype to avoid an error.  */
6625 #ifdef __cplusplus
6626 extern "C"
6627 #endif
6628 /* We use char because int might match the return type of a gcc2
6629    builtin and then its argument prototype would still apply.  */
6630 char XawInitializeWidgetSet ();
6631 int
6632 main ()
6633 {
6634 XawInitializeWidgetSet ();
6635   ;
6636   return 0;
6637 }
6638 _ACEOF
6639 rm -f conftest.$ac_objext conftest$ac_exeext
6640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6641   (eval $ac_link) 2>conftest.er1
6642   ac_status=$?
6643   grep -v '^ *+' conftest.er1 >conftest.err
6644   rm -f conftest.er1
6645   cat conftest.err >&5
6646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647   (exit $ac_status); } &&
6648          { ac_try='test -z "$ac_c_werror_flag"
6649                          || test ! -s conftest.err'
6650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6651   (eval $ac_try) 2>&5
6652   ac_status=$?
6653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654   (exit $ac_status); }; } &&
6655          { ac_try='test -s conftest$ac_exeext'
6656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657   (eval $ac_try) 2>&5
6658   ac_status=$?
6659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660   (exit $ac_status); }; }; then
6661   ac_cv_lib_Xaw_XawInitializeWidgetSet=yes
6662 else
6663   echo "$as_me: failed program was:" >&5
6664 sed 's/^/| /' conftest.$ac_ext >&5
6665
6666 ac_cv_lib_Xaw_XawInitializeWidgetSet=no
6667 fi
6668 rm -f conftest.err conftest.$ac_objext \
6669       conftest$ac_exeext conftest.$ac_ext
6670 LIBS=$ac_check_lib_save_LIBS
6671 fi
6672 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_XawInitializeWidgetSet" >&5
6673 echo "${ECHO_T}$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6
6674 if test $ac_cv_lib_Xaw_XawInitializeWidgetSet = yes; then
6675   have_xaw=yes
6676 else
6677   have_xaw=no
6678 fi
6679
6680 fi
6681
6682   echo "$as_me:$LINENO: checking for XmCreateForm in -lXm" >&5
6683 echo $ECHO_N "checking for XmCreateForm in -lXm... $ECHO_C" >&6
6684 if test "${ac_cv_lib_Xm_XmCreateForm+set}" = set; then
6685   echo $ECHO_N "(cached) $ECHO_C" >&6
6686 else
6687   ac_check_lib_save_LIBS=$LIBS
6688 LIBS="-lXm  $LIBS"
6689 cat >conftest.$ac_ext <<_ACEOF
6690 /* confdefs.h.  */
6691 _ACEOF
6692 cat confdefs.h >>conftest.$ac_ext
6693 cat >>conftest.$ac_ext <<_ACEOF
6694 /* end confdefs.h.  */
6695
6696 /* Override any gcc2 internal prototype to avoid an error.  */
6697 #ifdef __cplusplus
6698 extern "C"
6699 #endif
6700 /* We use char because int might match the return type of a gcc2
6701    builtin and then its argument prototype would still apply.  */
6702 char XmCreateForm ();
6703 int
6704 main ()
6705 {
6706 XmCreateForm ();
6707   ;
6708   return 0;
6709 }
6710 _ACEOF
6711 rm -f conftest.$ac_objext conftest$ac_exeext
6712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6713   (eval $ac_link) 2>conftest.er1
6714   ac_status=$?
6715   grep -v '^ *+' conftest.er1 >conftest.err
6716   rm -f conftest.er1
6717   cat conftest.err >&5
6718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719   (exit $ac_status); } &&
6720          { ac_try='test -z "$ac_c_werror_flag"
6721                          || test ! -s conftest.err'
6722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723   (eval $ac_try) 2>&5
6724   ac_status=$?
6725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726   (exit $ac_status); }; } &&
6727          { ac_try='test -s conftest$ac_exeext'
6728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6729   (eval $ac_try) 2>&5
6730   ac_status=$?
6731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732   (exit $ac_status); }; }; then
6733   ac_cv_lib_Xm_XmCreateForm=yes
6734 else
6735   echo "$as_me: failed program was:" >&5
6736 sed 's/^/| /' conftest.$ac_ext >&5
6737
6738 ac_cv_lib_Xm_XmCreateForm=no
6739 fi
6740 rm -f conftest.err conftest.$ac_objext \
6741       conftest$ac_exeext conftest.$ac_ext
6742 LIBS=$ac_check_lib_save_LIBS
6743 fi
6744 echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmCreateForm" >&5
6745 echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateForm" >&6
6746 if test $ac_cv_lib_Xm_XmCreateForm = yes; then
6747   have_xm=yes
6748 else
6749   have_xm=no
6750 fi
6751
6752
6753 for ac_func in XShmCreatePixmap
6754 do
6755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6756 echo "$as_me:$LINENO: checking for $ac_func" >&5
6757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6758 if eval "test \"\${$as_ac_var+set}\" = set"; then
6759   echo $ECHO_N "(cached) $ECHO_C" >&6
6760 else
6761   cat >conftest.$ac_ext <<_ACEOF
6762 /* confdefs.h.  */
6763 _ACEOF
6764 cat confdefs.h >>conftest.$ac_ext
6765 cat >>conftest.$ac_ext <<_ACEOF
6766 /* end confdefs.h.  */
6767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6768    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6769 #define $ac_func innocuous_$ac_func
6770
6771 /* System header to define __stub macros and hopefully few prototypes,
6772     which can conflict with char $ac_func (); below.
6773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6774     <limits.h> exists even on freestanding compilers.  */
6775
6776 #ifdef __STDC__
6777 # include <limits.h>
6778 #else
6779 # include <assert.h>
6780 #endif
6781
6782 #undef $ac_func
6783
6784 /* Override any gcc2 internal prototype to avoid an error.  */
6785 #ifdef __cplusplus
6786 extern "C"
6787 {
6788 #endif
6789 /* We use char because int might match the return type of a gcc2
6790    builtin and then its argument prototype would still apply.  */
6791 char $ac_func ();
6792 /* The GNU C library defines this for functions which it implements
6793     to always fail with ENOSYS.  Some functions are actually named
6794     something starting with __ and the normal name is an alias.  */
6795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6796 choke me
6797 #else
6798 char (*f) () = $ac_func;
6799 #endif
6800 #ifdef __cplusplus
6801 }
6802 #endif
6803
6804 int
6805 main ()
6806 {
6807 return f != $ac_func;
6808   ;
6809   return 0;
6810 }
6811 _ACEOF
6812 rm -f conftest.$ac_objext conftest$ac_exeext
6813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6814   (eval $ac_link) 2>conftest.er1
6815   ac_status=$?
6816   grep -v '^ *+' conftest.er1 >conftest.err
6817   rm -f conftest.er1
6818   cat conftest.err >&5
6819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820   (exit $ac_status); } &&
6821          { ac_try='test -z "$ac_c_werror_flag"
6822                          || test ! -s conftest.err'
6823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824   (eval $ac_try) 2>&5
6825   ac_status=$?
6826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827   (exit $ac_status); }; } &&
6828          { ac_try='test -s conftest$ac_exeext'
6829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6830   (eval $ac_try) 2>&5
6831   ac_status=$?
6832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833   (exit $ac_status); }; }; then
6834   eval "$as_ac_var=yes"
6835 else
6836   echo "$as_me: failed program was:" >&5
6837 sed 's/^/| /' conftest.$ac_ext >&5
6838
6839 eval "$as_ac_var=no"
6840 fi
6841 rm -f conftest.err conftest.$ac_objext \
6842       conftest$ac_exeext conftest.$ac_ext
6843 fi
6844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6845 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6846 if test `eval echo '${'$as_ac_var'}'` = yes; then
6847   cat >>confdefs.h <<_ACEOF
6848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6849 _ACEOF
6850
6851 fi
6852 done
6853
6854   LIBS=$KEEPLIBS
6855 fi
6856
6857 # Checks for header files.
6858 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6859 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6860 if test "${ac_cv_header_stdc+set}" = set; then
6861   echo $ECHO_N "(cached) $ECHO_C" >&6
6862 else
6863   cat >conftest.$ac_ext <<_ACEOF
6864 /* confdefs.h.  */
6865 _ACEOF
6866 cat confdefs.h >>conftest.$ac_ext
6867 cat >>conftest.$ac_ext <<_ACEOF
6868 /* end confdefs.h.  */
6869 #include <stdlib.h>
6870 #include <stdarg.h>
6871 #include <string.h>
6872 #include <float.h>
6873
6874 int
6875 main ()
6876 {
6877
6878   ;
6879   return 0;
6880 }
6881 _ACEOF
6882 rm -f conftest.$ac_objext
6883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6884   (eval $ac_compile) 2>conftest.er1
6885   ac_status=$?
6886   grep -v '^ *+' conftest.er1 >conftest.err
6887   rm -f conftest.er1
6888   cat conftest.err >&5
6889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890   (exit $ac_status); } &&
6891          { ac_try='test -z "$ac_c_werror_flag"
6892                          || test ! -s conftest.err'
6893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6894   (eval $ac_try) 2>&5
6895   ac_status=$?
6896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897   (exit $ac_status); }; } &&
6898          { ac_try='test -s conftest.$ac_objext'
6899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6900   (eval $ac_try) 2>&5
6901   ac_status=$?
6902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903   (exit $ac_status); }; }; then
6904   ac_cv_header_stdc=yes
6905 else
6906   echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.$ac_ext >&5
6908
6909 ac_cv_header_stdc=no
6910 fi
6911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6912
6913 if test $ac_cv_header_stdc = yes; then
6914   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6915   cat >conftest.$ac_ext <<_ACEOF
6916 /* confdefs.h.  */
6917 _ACEOF
6918 cat confdefs.h >>conftest.$ac_ext
6919 cat >>conftest.$ac_ext <<_ACEOF
6920 /* end confdefs.h.  */
6921 #include <string.h>
6922
6923 _ACEOF
6924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6925   $EGREP "memchr" >/dev/null 2>&1; then
6926   :
6927 else
6928   ac_cv_header_stdc=no
6929 fi
6930 rm -f conftest*
6931
6932 fi
6933
6934 if test $ac_cv_header_stdc = yes; then
6935   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6936   cat >conftest.$ac_ext <<_ACEOF
6937 /* confdefs.h.  */
6938 _ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h.  */
6942 #include <stdlib.h>
6943
6944 _ACEOF
6945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6946   $EGREP "free" >/dev/null 2>&1; then
6947   :
6948 else
6949   ac_cv_header_stdc=no
6950 fi
6951 rm -f conftest*
6952
6953 fi
6954
6955 if test $ac_cv_header_stdc = yes; then
6956   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6957   if test "$cross_compiling" = yes; then
6958   :
6959 else
6960   cat >conftest.$ac_ext <<_ACEOF
6961 /* confdefs.h.  */
6962 _ACEOF
6963 cat confdefs.h >>conftest.$ac_ext
6964 cat >>conftest.$ac_ext <<_ACEOF
6965 /* end confdefs.h.  */
6966 #include <ctype.h>
6967 #if ((' ' & 0x0FF) == 0x020)
6968 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6969 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6970 #else
6971 # define ISLOWER(c) \
6972                    (('a' <= (c) && (c) <= 'i') \
6973                      || ('j' <= (c) && (c) <= 'r') \
6974                      || ('s' <= (c) && (c) <= 'z'))
6975 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6976 #endif
6977
6978 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6979 int
6980 main ()
6981 {
6982   int i;
6983   for (i = 0; i < 256; i++)
6984     if (XOR (islower (i), ISLOWER (i))
6985         || toupper (i) != TOUPPER (i))
6986       exit(2);
6987   exit (0);
6988 }
6989 _ACEOF
6990 rm -f conftest$ac_exeext
6991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6992   (eval $ac_link) 2>&5
6993   ac_status=$?
6994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6997   (eval $ac_try) 2>&5
6998   ac_status=$?
6999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000   (exit $ac_status); }; }; then
7001   :
7002 else
7003   echo "$as_me: program exited with status $ac_status" >&5
7004 echo "$as_me: failed program was:" >&5
7005 sed 's/^/| /' conftest.$ac_ext >&5
7006
7007 ( exit $ac_status )
7008 ac_cv_header_stdc=no
7009 fi
7010 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7011 fi
7012 fi
7013 fi
7014 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7015 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7016 if test $ac_cv_header_stdc = yes; then
7017
7018 cat >>confdefs.h <<\_ACEOF
7019 #define STDC_HEADERS 1
7020 _ACEOF
7021
7022 fi
7023
7024 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7035                   inttypes.h stdint.h unistd.h
7036 do
7037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7038 echo "$as_me:$LINENO: checking for $ac_header" >&5
7039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7041   echo $ECHO_N "(cached) $ECHO_C" >&6
7042 else
7043   cat >conftest.$ac_ext <<_ACEOF
7044 /* confdefs.h.  */
7045 _ACEOF
7046 cat confdefs.h >>conftest.$ac_ext
7047 cat >>conftest.$ac_ext <<_ACEOF
7048 /* end confdefs.h.  */
7049 $ac_includes_default
7050
7051 #include <$ac_header>
7052 _ACEOF
7053 rm -f conftest.$ac_objext
7054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7055   (eval $ac_compile) 2>conftest.er1
7056   ac_status=$?
7057   grep -v '^ *+' conftest.er1 >conftest.err
7058   rm -f conftest.er1
7059   cat conftest.err >&5
7060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061   (exit $ac_status); } &&
7062          { ac_try='test -z "$ac_c_werror_flag"
7063                          || test ! -s conftest.err'
7064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7065   (eval $ac_try) 2>&5
7066   ac_status=$?
7067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068   (exit $ac_status); }; } &&
7069          { ac_try='test -s conftest.$ac_objext'
7070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071   (eval $ac_try) 2>&5
7072   ac_status=$?
7073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074   (exit $ac_status); }; }; then
7075   eval "$as_ac_Header=yes"
7076 else
7077   echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7079
7080 eval "$as_ac_Header=no"
7081 fi
7082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7083 fi
7084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7087   cat >>confdefs.h <<_ACEOF
7088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7089 _ACEOF
7090
7091 fi
7092
7093 done
7094
7095
7096 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7097 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
7098 if test "${ac_cv_header_stdbool_h+set}" = set; then
7099   echo $ECHO_N "(cached) $ECHO_C" >&6
7100 else
7101   cat >conftest.$ac_ext <<_ACEOF
7102 /* confdefs.h.  */
7103 _ACEOF
7104 cat confdefs.h >>conftest.$ac_ext
7105 cat >>conftest.$ac_ext <<_ACEOF
7106 /* end confdefs.h.  */
7107
7108 #include <stdbool.h>
7109 #ifndef bool
7110 # error bool is not defined
7111 #endif
7112 #ifndef false
7113 # error false is not defined
7114 #endif
7115 #if false
7116 # error false is not 0
7117 #endif
7118 #ifndef true
7119 # error true is not defined
7120 #endif
7121 #if true != 1
7122 # error true is not 1
7123 #endif
7124 #ifndef __bool_true_false_are_defined
7125 # error __bool_true_false_are_defined is not defined
7126 #endif
7127
7128         struct s { _Bool s: 1; _Bool t; } s;
7129
7130         char a[true == 1 ? 1 : -1];
7131         char b[false == 0 ? 1 : -1];
7132         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7133         char d[(bool) -0.5 == true ? 1 : -1];
7134         bool e = &s;
7135         char f[(_Bool) -0.0 == false ? 1 : -1];
7136         char g[true];
7137         char h[sizeof (_Bool)];
7138         char i[sizeof s.t];
7139
7140 int
7141 main ()
7142 {
7143  return !a + !b + !c + !d + !e + !f + !g + !h + !i;
7144   ;
7145   return 0;
7146 }
7147 _ACEOF
7148 rm -f conftest.$ac_objext
7149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7150   (eval $ac_compile) 2>conftest.er1
7151   ac_status=$?
7152   grep -v '^ *+' conftest.er1 >conftest.err
7153   rm -f conftest.er1
7154   cat conftest.err >&5
7155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156   (exit $ac_status); } &&
7157          { ac_try='test -z "$ac_c_werror_flag"
7158                          || test ! -s conftest.err'
7159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7160   (eval $ac_try) 2>&5
7161   ac_status=$?
7162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163   (exit $ac_status); }; } &&
7164          { ac_try='test -s conftest.$ac_objext'
7165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7166   (eval $ac_try) 2>&5
7167   ac_status=$?
7168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169   (exit $ac_status); }; }; then
7170   ac_cv_header_stdbool_h=yes
7171 else
7172   echo "$as_me: failed program was:" >&5
7173 sed 's/^/| /' conftest.$ac_ext >&5
7174
7175 ac_cv_header_stdbool_h=no
7176 fi
7177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7178 fi
7179 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7180 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
7181 echo "$as_me:$LINENO: checking for _Bool" >&5
7182 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
7183 if test "${ac_cv_type__Bool+set}" = set; then
7184   echo $ECHO_N "(cached) $ECHO_C" >&6
7185 else
7186   cat >conftest.$ac_ext <<_ACEOF
7187 /* confdefs.h.  */
7188 _ACEOF
7189 cat confdefs.h >>conftest.$ac_ext
7190 cat >>conftest.$ac_ext <<_ACEOF
7191 /* end confdefs.h.  */
7192 $ac_includes_default
7193 int
7194 main ()
7195 {
7196 if ((_Bool *) 0)
7197   return 0;
7198 if (sizeof (_Bool))
7199   return 0;
7200   ;
7201   return 0;
7202 }
7203 _ACEOF
7204 rm -f conftest.$ac_objext
7205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7206   (eval $ac_compile) 2>conftest.er1
7207   ac_status=$?
7208   grep -v '^ *+' conftest.er1 >conftest.err
7209   rm -f conftest.er1
7210   cat conftest.err >&5
7211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212   (exit $ac_status); } &&
7213          { ac_try='test -z "$ac_c_werror_flag"
7214                          || test ! -s conftest.err'
7215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7216   (eval $ac_try) 2>&5
7217   ac_status=$?
7218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219   (exit $ac_status); }; } &&
7220          { ac_try='test -s conftest.$ac_objext'
7221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222   (eval $ac_try) 2>&5
7223   ac_status=$?
7224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225   (exit $ac_status); }; }; then
7226   ac_cv_type__Bool=yes
7227 else
7228   echo "$as_me: failed program was:" >&5
7229 sed 's/^/| /' conftest.$ac_ext >&5
7230
7231 ac_cv_type__Bool=no
7232 fi
7233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7234 fi
7235 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7236 echo "${ECHO_T}$ac_cv_type__Bool" >&6
7237 if test $ac_cv_type__Bool = yes; then
7238
7239 cat >>confdefs.h <<_ACEOF
7240 #define HAVE__BOOL 1
7241 _ACEOF
7242
7243
7244 fi
7245
7246 if test $ac_cv_header_stdbool_h = yes; then
7247
7248 cat >>confdefs.h <<\_ACEOF
7249 #define HAVE_STDBOOL_H 1
7250 _ACEOF
7251
7252 fi
7253
7254 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7255 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7256 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7257   echo $ECHO_N "(cached) $ECHO_C" >&6
7258 else
7259   cat >conftest.$ac_ext <<_ACEOF
7260 /* confdefs.h.  */
7261 _ACEOF
7262 cat confdefs.h >>conftest.$ac_ext
7263 cat >>conftest.$ac_ext <<_ACEOF
7264 /* end confdefs.h.  */
7265 #include <sys/types.h>
7266 #include <sys/wait.h>
7267 #ifndef WEXITSTATUS
7268 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7269 #endif
7270 #ifndef WIFEXITED
7271 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7272 #endif
7273
7274 int
7275 main ()
7276 {
7277   int s;
7278   wait (&s);
7279   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7280   ;
7281   return 0;
7282 }
7283 _ACEOF
7284 rm -f conftest.$ac_objext
7285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7286   (eval $ac_compile) 2>conftest.er1
7287   ac_status=$?
7288   grep -v '^ *+' conftest.er1 >conftest.err
7289   rm -f conftest.er1
7290   cat conftest.err >&5
7291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292   (exit $ac_status); } &&
7293          { ac_try='test -z "$ac_c_werror_flag"
7294                          || test ! -s conftest.err'
7295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7296   (eval $ac_try) 2>&5
7297   ac_status=$?
7298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299   (exit $ac_status); }; } &&
7300          { ac_try='test -s conftest.$ac_objext'
7301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7302   (eval $ac_try) 2>&5
7303   ac_status=$?
7304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305   (exit $ac_status); }; }; then
7306   ac_cv_header_sys_wait_h=yes
7307 else
7308   echo "$as_me: failed program was:" >&5
7309 sed 's/^/| /' conftest.$ac_ext >&5
7310
7311 ac_cv_header_sys_wait_h=no
7312 fi
7313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7314 fi
7315 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7316 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7317 if test $ac_cv_header_sys_wait_h = yes; then
7318
7319 cat >>confdefs.h <<\_ACEOF
7320 #define HAVE_SYS_WAIT_H 1
7321 _ACEOF
7322
7323 fi
7324
7325 if test "x$WATCOM_C" != xyes ; then
7326 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7327 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7328 if test "${ac_cv_header_time+set}" = set; then
7329   echo $ECHO_N "(cached) $ECHO_C" >&6
7330 else
7331   cat >conftest.$ac_ext <<_ACEOF
7332 /* confdefs.h.  */
7333 _ACEOF
7334 cat confdefs.h >>conftest.$ac_ext
7335 cat >>conftest.$ac_ext <<_ACEOF
7336 /* end confdefs.h.  */
7337 #include <sys/types.h>
7338 #include <sys/time.h>
7339 #include <time.h>
7340
7341 int
7342 main ()
7343 {
7344 if ((struct tm *) 0)
7345 return 0;
7346   ;
7347   return 0;
7348 }
7349 _ACEOF
7350 rm -f conftest.$ac_objext
7351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7352   (eval $ac_compile) 2>conftest.er1
7353   ac_status=$?
7354   grep -v '^ *+' conftest.er1 >conftest.err
7355   rm -f conftest.er1
7356   cat conftest.err >&5
7357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358   (exit $ac_status); } &&
7359          { ac_try='test -z "$ac_c_werror_flag"
7360                          || test ! -s conftest.err'
7361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7362   (eval $ac_try) 2>&5
7363   ac_status=$?
7364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365   (exit $ac_status); }; } &&
7366          { ac_try='test -s conftest.$ac_objext'
7367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7368   (eval $ac_try) 2>&5
7369   ac_status=$?
7370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371   (exit $ac_status); }; }; then
7372   ac_cv_header_time=yes
7373 else
7374   echo "$as_me: failed program was:" >&5
7375 sed 's/^/| /' conftest.$ac_ext >&5
7376
7377 ac_cv_header_time=no
7378 fi
7379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7380 fi
7381 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7382 echo "${ECHO_T}$ac_cv_header_time" >&6
7383 if test $ac_cv_header_time = yes; then
7384
7385 cat >>confdefs.h <<\_ACEOF
7386 #define TIME_WITH_SYS_TIME 1
7387 _ACEOF
7388
7389 fi
7390
7391 fi
7392
7393
7394
7395
7396
7397 ac_header_dirent=no
7398 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7399   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7400 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7401 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7403   echo $ECHO_N "(cached) $ECHO_C" >&6
7404 else
7405   cat >conftest.$ac_ext <<_ACEOF
7406 /* confdefs.h.  */
7407 _ACEOF
7408 cat confdefs.h >>conftest.$ac_ext
7409 cat >>conftest.$ac_ext <<_ACEOF
7410 /* end confdefs.h.  */
7411 #include <sys/types.h>
7412 #include <$ac_hdr>
7413
7414 int
7415 main ()
7416 {
7417 if ((DIR *) 0)
7418 return 0;
7419   ;
7420   return 0;
7421 }
7422 _ACEOF
7423 rm -f conftest.$ac_objext
7424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7425   (eval $ac_compile) 2>conftest.er1
7426   ac_status=$?
7427   grep -v '^ *+' conftest.er1 >conftest.err
7428   rm -f conftest.er1
7429   cat conftest.err >&5
7430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431   (exit $ac_status); } &&
7432          { ac_try='test -z "$ac_c_werror_flag"
7433                          || test ! -s conftest.err'
7434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7435   (eval $ac_try) 2>&5
7436   ac_status=$?
7437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438   (exit $ac_status); }; } &&
7439          { ac_try='test -s conftest.$ac_objext'
7440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7441   (eval $ac_try) 2>&5
7442   ac_status=$?
7443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444   (exit $ac_status); }; }; then
7445   eval "$as_ac_Header=yes"
7446 else
7447   echo "$as_me: failed program was:" >&5
7448 sed 's/^/| /' conftest.$ac_ext >&5
7449
7450 eval "$as_ac_Header=no"
7451 fi
7452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7453 fi
7454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7457   cat >>confdefs.h <<_ACEOF
7458 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7459 _ACEOF
7460
7461 ac_header_dirent=$ac_hdr; break
7462 fi
7463
7464 done
7465 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7466 if test $ac_header_dirent = dirent.h; then
7467   echo "$as_me:$LINENO: checking for library containing opendir" >&5
7468 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7469 if test "${ac_cv_search_opendir+set}" = set; then
7470   echo $ECHO_N "(cached) $ECHO_C" >&6
7471 else
7472   ac_func_search_save_LIBS=$LIBS
7473 ac_cv_search_opendir=no
7474 cat >conftest.$ac_ext <<_ACEOF
7475 /* confdefs.h.  */
7476 _ACEOF
7477 cat confdefs.h >>conftest.$ac_ext
7478 cat >>conftest.$ac_ext <<_ACEOF
7479 /* end confdefs.h.  */
7480
7481 /* Override any gcc2 internal prototype to avoid an error.  */
7482 #ifdef __cplusplus
7483 extern "C"
7484 #endif
7485 /* We use char because int might match the return type of a gcc2
7486    builtin and then its argument prototype would still apply.  */
7487 char opendir ();
7488 int
7489 main ()
7490 {
7491 opendir ();
7492   ;
7493   return 0;
7494 }
7495 _ACEOF
7496 rm -f conftest.$ac_objext conftest$ac_exeext
7497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7498   (eval $ac_link) 2>conftest.er1
7499   ac_status=$?
7500   grep -v '^ *+' conftest.er1 >conftest.err
7501   rm -f conftest.er1
7502   cat conftest.err >&5
7503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504   (exit $ac_status); } &&
7505          { ac_try='test -z "$ac_c_werror_flag"
7506                          || test ! -s conftest.err'
7507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7508   (eval $ac_try) 2>&5
7509   ac_status=$?
7510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511   (exit $ac_status); }; } &&
7512          { ac_try='test -s conftest$ac_exeext'
7513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7514   (eval $ac_try) 2>&5
7515   ac_status=$?
7516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517   (exit $ac_status); }; }; then
7518   ac_cv_search_opendir="none required"
7519 else
7520   echo "$as_me: failed program was:" >&5
7521 sed 's/^/| /' conftest.$ac_ext >&5
7522
7523 fi
7524 rm -f conftest.err conftest.$ac_objext \
7525       conftest$ac_exeext conftest.$ac_ext
7526 if test "$ac_cv_search_opendir" = no; then
7527   for ac_lib in dir; do
7528     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7529     cat >conftest.$ac_ext <<_ACEOF
7530 /* confdefs.h.  */
7531 _ACEOF
7532 cat confdefs.h >>conftest.$ac_ext
7533 cat >>conftest.$ac_ext <<_ACEOF
7534 /* end confdefs.h.  */
7535
7536 /* Override any gcc2 internal prototype to avoid an error.  */
7537 #ifdef __cplusplus
7538 extern "C"
7539 #endif
7540 /* We use char because int might match the return type of a gcc2
7541    builtin and then its argument prototype would still apply.  */
7542 char opendir ();
7543 int
7544 main ()
7545 {
7546 opendir ();
7547   ;
7548   return 0;
7549 }
7550 _ACEOF
7551 rm -f conftest.$ac_objext conftest$ac_exeext
7552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7553   (eval $ac_link) 2>conftest.er1
7554   ac_status=$?
7555   grep -v '^ *+' conftest.er1 >conftest.err
7556   rm -f conftest.er1
7557   cat conftest.err >&5
7558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559   (exit $ac_status); } &&
7560          { ac_try='test -z "$ac_c_werror_flag"
7561                          || test ! -s conftest.err'
7562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7563   (eval $ac_try) 2>&5
7564   ac_status=$?
7565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566   (exit $ac_status); }; } &&
7567          { ac_try='test -s conftest$ac_exeext'
7568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569   (eval $ac_try) 2>&5
7570   ac_status=$?
7571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572   (exit $ac_status); }; }; then
7573   ac_cv_search_opendir="-l$ac_lib"
7574 break
7575 else
7576   echo "$as_me: failed program was:" >&5
7577 sed 's/^/| /' conftest.$ac_ext >&5
7578
7579 fi
7580 rm -f conftest.err conftest.$ac_objext \
7581       conftest$ac_exeext conftest.$ac_ext
7582   done
7583 fi
7584 LIBS=$ac_func_search_save_LIBS
7585 fi
7586 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7587 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7588 if test "$ac_cv_search_opendir" != no; then
7589   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7590
7591 fi
7592
7593 else
7594   echo "$as_me:$LINENO: checking for library containing opendir" >&5
7595 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7596 if test "${ac_cv_search_opendir+set}" = set; then
7597   echo $ECHO_N "(cached) $ECHO_C" >&6
7598 else
7599   ac_func_search_save_LIBS=$LIBS
7600 ac_cv_search_opendir=no
7601 cat >conftest.$ac_ext <<_ACEOF
7602 /* confdefs.h.  */
7603 _ACEOF
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h.  */
7607
7608 /* Override any gcc2 internal prototype to avoid an error.  */
7609 #ifdef __cplusplus
7610 extern "C"
7611 #endif
7612 /* We use char because int might match the return type of a gcc2
7613    builtin and then its argument prototype would still apply.  */
7614 char opendir ();
7615 int
7616 main ()
7617 {
7618 opendir ();
7619   ;
7620   return 0;
7621 }
7622 _ACEOF
7623 rm -f conftest.$ac_objext conftest$ac_exeext
7624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7625   (eval $ac_link) 2>conftest.er1
7626   ac_status=$?
7627   grep -v '^ *+' conftest.er1 >conftest.err
7628   rm -f conftest.er1
7629   cat conftest.err >&5
7630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631   (exit $ac_status); } &&
7632          { ac_try='test -z "$ac_c_werror_flag"
7633                          || test ! -s conftest.err'
7634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635   (eval $ac_try) 2>&5
7636   ac_status=$?
7637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638   (exit $ac_status); }; } &&
7639          { ac_try='test -s conftest$ac_exeext'
7640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7641   (eval $ac_try) 2>&5
7642   ac_status=$?
7643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644   (exit $ac_status); }; }; then
7645   ac_cv_search_opendir="none required"
7646 else
7647   echo "$as_me: failed program was:" >&5
7648 sed 's/^/| /' conftest.$ac_ext >&5
7649
7650 fi
7651 rm -f conftest.err conftest.$ac_objext \
7652       conftest$ac_exeext conftest.$ac_ext
7653 if test "$ac_cv_search_opendir" = no; then
7654   for ac_lib in x; do
7655     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7656     cat >conftest.$ac_ext <<_ACEOF
7657 /* confdefs.h.  */
7658 _ACEOF
7659 cat confdefs.h >>conftest.$ac_ext
7660 cat >>conftest.$ac_ext <<_ACEOF
7661 /* end confdefs.h.  */
7662
7663 /* Override any gcc2 internal prototype to avoid an error.  */
7664 #ifdef __cplusplus
7665 extern "C"
7666 #endif
7667 /* We use char because int might match the return type of a gcc2
7668    builtin and then its argument prototype would still apply.  */
7669 char opendir ();
7670 int
7671 main ()
7672 {
7673 opendir ();
7674   ;
7675   return 0;
7676 }
7677 _ACEOF
7678 rm -f conftest.$ac_objext conftest$ac_exeext
7679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7680   (eval $ac_link) 2>conftest.er1
7681   ac_status=$?
7682   grep -v '^ *+' conftest.er1 >conftest.err
7683   rm -f conftest.er1
7684   cat conftest.err >&5
7685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686   (exit $ac_status); } &&
7687          { ac_try='test -z "$ac_c_werror_flag"
7688                          || test ! -s conftest.err'
7689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7690   (eval $ac_try) 2>&5
7691   ac_status=$?
7692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693   (exit $ac_status); }; } &&
7694          { ac_try='test -s conftest$ac_exeext'
7695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696   (eval $ac_try) 2>&5
7697   ac_status=$?
7698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699   (exit $ac_status); }; }; then
7700   ac_cv_search_opendir="-l$ac_lib"
7701 break
7702 else
7703   echo "$as_me: failed program was:" >&5
7704 sed 's/^/| /' conftest.$ac_ext >&5
7705
7706 fi
7707 rm -f conftest.err conftest.$ac_objext \
7708       conftest$ac_exeext conftest.$ac_ext
7709   done
7710 fi
7711 LIBS=$ac_func_search_save_LIBS
7712 fi
7713 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7714 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7715 if test "$ac_cv_search_opendir" != no; then
7716   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7717
7718 fi
7719
7720 fi
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760 for ac_header in \
7761   arpa/inet.h \
7762   errno.h \
7763   getopt.h \
7764   glob.h \
7765   dlfcn.h \
7766   fcntl.h \
7767   inttypes.h \
7768   limits.h \
7769   machine/endian.h \
7770   malloc.h \
7771   memory.h \
7772   netdb.h \
7773   netinet/in.h \
7774   nlist.h \
7775   stddef.h \
7776   stdlib.h \
7777   stdint.h \
7778   string.h \
7779   strings.h \
7780   stropts.h \
7781   soundcard.h \
7782   alsa/asoundlib.h \
7783   sys/asoundlib.h \
7784   sys/audioio.h \
7785   sys/awe_voice.h\
7786   sys/ioctl.h \
7787   sys/ipc.h \
7788   sys/param.h \
7789   sys/shm.h \
7790   sys/socket.h \
7791   sys/soundcard.h \
7792   sys/param.h \
7793   sys/time.h \
7794   sys/types.h \
7795   sys/sysctl.h \
7796   termios.h \
7797   unistd.h \
7798   X11/Xlib.h
7799 do
7800 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7802   echo "$as_me:$LINENO: checking for $ac_header" >&5
7803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7805   echo $ECHO_N "(cached) $ECHO_C" >&6
7806 fi
7807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7808 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7809 else
7810   # Is the header compilable?
7811 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7812 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
7820 #include <$ac_header>
7821 _ACEOF
7822 rm -f conftest.$ac_objext
7823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7824   (eval $ac_compile) 2>conftest.er1
7825   ac_status=$?
7826   grep -v '^ *+' conftest.er1 >conftest.err
7827   rm -f conftest.er1
7828   cat conftest.err >&5
7829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830   (exit $ac_status); } &&
7831          { ac_try='test -z "$ac_c_werror_flag"
7832                          || test ! -s conftest.err'
7833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834   (eval $ac_try) 2>&5
7835   ac_status=$?
7836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837   (exit $ac_status); }; } &&
7838          { ac_try='test -s conftest.$ac_objext'
7839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840   (eval $ac_try) 2>&5
7841   ac_status=$?
7842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843   (exit $ac_status); }; }; then
7844   ac_header_compiler=yes
7845 else
7846   echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.$ac_ext >&5
7848
7849 ac_header_compiler=no
7850 fi
7851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7852 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7853 echo "${ECHO_T}$ac_header_compiler" >&6
7854
7855 # Is the header present?
7856 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7858 cat >conftest.$ac_ext <<_ACEOF
7859 /* confdefs.h.  */
7860 _ACEOF
7861 cat confdefs.h >>conftest.$ac_ext
7862 cat >>conftest.$ac_ext <<_ACEOF
7863 /* end confdefs.h.  */
7864 #include <$ac_header>
7865 _ACEOF
7866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7867   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7868   ac_status=$?
7869   grep -v '^ *+' conftest.er1 >conftest.err
7870   rm -f conftest.er1
7871   cat conftest.err >&5
7872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873   (exit $ac_status); } >/dev/null; then
7874   if test -s conftest.err; then
7875     ac_cpp_err=$ac_c_preproc_warn_flag
7876     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7877   else
7878     ac_cpp_err=
7879   fi
7880 else
7881   ac_cpp_err=yes
7882 fi
7883 if test -z "$ac_cpp_err"; then
7884   ac_header_preproc=yes
7885 else
7886   echo "$as_me: failed program was:" >&5
7887 sed 's/^/| /' conftest.$ac_ext >&5
7888
7889   ac_header_preproc=no
7890 fi
7891 rm -f conftest.err conftest.$ac_ext
7892 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7893 echo "${ECHO_T}$ac_header_preproc" >&6
7894
7895 # So?  What about this header?
7896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7897   yes:no: )
7898     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7900     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7901 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7902     ac_header_preproc=yes
7903     ;;
7904   no:yes:* )
7905     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7907     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7908 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7909     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7910 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7911     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7912 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7913     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7915     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7916 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7917     (
7918       cat <<\_ASBOX
7919 ## ------------------------------- ##
7920 ## Report this to root@mput.dip.jp ##
7921 ## ------------------------------- ##
7922 _ASBOX
7923     ) |
7924       sed "s/^/$as_me: WARNING:     /" >&2
7925     ;;
7926 esac
7927 echo "$as_me:$LINENO: checking for $ac_header" >&5
7928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7930   echo $ECHO_N "(cached) $ECHO_C" >&6
7931 else
7932   eval "$as_ac_Header=\$ac_header_preproc"
7933 fi
7934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7936
7937 fi
7938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7939   cat >>confdefs.h <<_ACEOF
7940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7941 _ACEOF
7942
7943 fi
7944
7945 done
7946
7947
7948
7949 for ac_header in \
7950   X11/extensions/XShm.h X11/Xmu/ExtAgent.h
7951 do
7952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7953 echo "$as_me:$LINENO: checking for $ac_header" >&5
7954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7956   echo $ECHO_N "(cached) $ECHO_C" >&6
7957 else
7958   cat >conftest.$ac_ext <<_ACEOF
7959 /* confdefs.h.  */
7960 _ACEOF
7961 cat confdefs.h >>conftest.$ac_ext
7962 cat >>conftest.$ac_ext <<_ACEOF
7963 /* end confdefs.h.  */
7964
7965 #ifdef HAVE_X11_XLIB_H
7966 #include <X11/Xlib.h>
7967 #endif
7968
7969
7970 #include <$ac_header>
7971 _ACEOF
7972 rm -f conftest.$ac_objext
7973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7974   (eval $ac_compile) 2>conftest.er1
7975   ac_status=$?
7976   grep -v '^ *+' conftest.er1 >conftest.err
7977   rm -f conftest.er1
7978   cat conftest.err >&5
7979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980   (exit $ac_status); } &&
7981          { ac_try='test -z "$ac_c_werror_flag"
7982                          || test ! -s conftest.err'
7983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7984   (eval $ac_try) 2>&5
7985   ac_status=$?
7986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987   (exit $ac_status); }; } &&
7988          { ac_try='test -s conftest.$ac_objext'
7989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7990   (eval $ac_try) 2>&5
7991   ac_status=$?
7992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993   (exit $ac_status); }; }; then
7994   eval "$as_ac_Header=yes"
7995 else
7996   echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.$ac_ext >&5
7998
7999 eval "$as_ac_Header=no"
8000 fi
8001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8002 fi
8003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8006   cat >>confdefs.h <<_ACEOF
8007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8008 _ACEOF
8009
8010 fi
8011
8012 done
8013
8014 if test "${ac_cv_header_string_h+set}" = set; then
8015   echo "$as_me:$LINENO: checking for string.h" >&5
8016 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
8017 if test "${ac_cv_header_string_h+set}" = set; then
8018   echo $ECHO_N "(cached) $ECHO_C" >&6
8019 fi
8020 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
8021 echo "${ECHO_T}$ac_cv_header_string_h" >&6
8022 else
8023   # Is the header compilable?
8024 echo "$as_me:$LINENO: checking string.h usability" >&5
8025 echo $ECHO_N "checking string.h usability... $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 $ac_includes_default
8033 #include <string.h>
8034 _ACEOF
8035 rm -f conftest.$ac_objext
8036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8037   (eval $ac_compile) 2>conftest.er1
8038   ac_status=$?
8039   grep -v '^ *+' conftest.er1 >conftest.err
8040   rm -f conftest.er1
8041   cat conftest.err >&5
8042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043   (exit $ac_status); } &&
8044          { ac_try='test -z "$ac_c_werror_flag"
8045                          || test ! -s conftest.err'
8046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8047   (eval $ac_try) 2>&5
8048   ac_status=$?
8049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050   (exit $ac_status); }; } &&
8051          { ac_try='test -s conftest.$ac_objext'
8052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053   (eval $ac_try) 2>&5
8054   ac_status=$?
8055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056   (exit $ac_status); }; }; then
8057   ac_header_compiler=yes
8058 else
8059   echo "$as_me: failed program was:" >&5
8060 sed 's/^/| /' conftest.$ac_ext >&5
8061
8062 ac_header_compiler=no
8063 fi
8064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8065 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8066 echo "${ECHO_T}$ac_header_compiler" >&6
8067
8068 # Is the header present?
8069 echo "$as_me:$LINENO: checking string.h presence" >&5
8070 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
8071 cat >conftest.$ac_ext <<_ACEOF
8072 /* confdefs.h.  */
8073 _ACEOF
8074 cat confdefs.h >>conftest.$ac_ext
8075 cat >>conftest.$ac_ext <<_ACEOF
8076 /* end confdefs.h.  */
8077 #include <string.h>
8078 _ACEOF
8079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8080   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8081   ac_status=$?
8082   grep -v '^ *+' conftest.er1 >conftest.err
8083   rm -f conftest.er1
8084   cat conftest.err >&5
8085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086   (exit $ac_status); } >/dev/null; then
8087   if test -s conftest.err; then
8088     ac_cpp_err=$ac_c_preproc_warn_flag
8089     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8090   else
8091     ac_cpp_err=
8092   fi
8093 else
8094   ac_cpp_err=yes
8095 fi
8096 if test -z "$ac_cpp_err"; then
8097   ac_header_preproc=yes
8098 else
8099   echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.$ac_ext >&5
8101
8102   ac_header_preproc=no
8103 fi
8104 rm -f conftest.err conftest.$ac_ext
8105 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8106 echo "${ECHO_T}$ac_header_preproc" >&6
8107
8108 # So?  What about this header?
8109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8110   yes:no: )
8111     { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
8112 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8113     { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
8114 echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
8115     ac_header_preproc=yes
8116     ;;
8117   no:yes:* )
8118     { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
8119 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
8120     { echo "$as_me:$LINENO: WARNING: string.h:     check for missing prerequisite headers?" >&5
8121 echo "$as_me: WARNING: string.h:     check for missing prerequisite headers?" >&2;}
8122     { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
8123 echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
8124     { echo "$as_me:$LINENO: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&5
8125 echo "$as_me: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8126     { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
8127 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
8128     { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
8129 echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
8130     (
8131       cat <<\_ASBOX
8132 ## ------------------------------- ##
8133 ## Report this to root@mput.dip.jp ##
8134 ## ------------------------------- ##
8135 _ASBOX
8136     ) |
8137       sed "s/^/$as_me: WARNING:     /" >&2
8138     ;;
8139 esac
8140 echo "$as_me:$LINENO: checking for string.h" >&5
8141 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
8142 if test "${ac_cv_header_string_h+set}" = set; then
8143   echo $ECHO_N "(cached) $ECHO_C" >&6
8144 else
8145   ac_cv_header_string_h=$ac_header_preproc
8146 fi
8147 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
8148 echo "${ECHO_T}$ac_cv_header_string_h" >&6
8149
8150 fi
8151 if test $ac_cv_header_string_h = yes; then
8152   :
8153 else
8154
8155 cat >>confdefs.h <<\_ACEOF
8156 #define NO_STRING_H 1
8157 _ACEOF
8158
8159 fi
8160
8161
8162
8163 # Checks for typedefs, structures, and compiler characteristics.
8164 if test "x$WATCOM_C" != xyes ; then
8165 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8166 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8167 if test "${ac_cv_c_bigendian+set}" = set; then
8168   echo $ECHO_N "(cached) $ECHO_C" >&6
8169 else
8170   # See if sys/param.h defines the BYTE_ORDER macro.
8171 cat >conftest.$ac_ext <<_ACEOF
8172 /* confdefs.h.  */
8173 _ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h.  */
8177 #include <sys/types.h>
8178 #include <sys/param.h>
8179
8180 int
8181 main ()
8182 {
8183 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8184  bogus endian macros
8185 #endif
8186
8187   ;
8188   return 0;
8189 }
8190 _ACEOF
8191 rm -f conftest.$ac_objext
8192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8193   (eval $ac_compile) 2>conftest.er1
8194   ac_status=$?
8195   grep -v '^ *+' conftest.er1 >conftest.err
8196   rm -f conftest.er1
8197   cat conftest.err >&5
8198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199   (exit $ac_status); } &&
8200          { ac_try='test -z "$ac_c_werror_flag"
8201                          || test ! -s conftest.err'
8202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8203   (eval $ac_try) 2>&5
8204   ac_status=$?
8205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206   (exit $ac_status); }; } &&
8207          { ac_try='test -s conftest.$ac_objext'
8208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8209   (eval $ac_try) 2>&5
8210   ac_status=$?
8211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212   (exit $ac_status); }; }; then
8213   # It does; now see whether it defined to BIG_ENDIAN or not.
8214 cat >conftest.$ac_ext <<_ACEOF
8215 /* confdefs.h.  */
8216 _ACEOF
8217 cat confdefs.h >>conftest.$ac_ext
8218 cat >>conftest.$ac_ext <<_ACEOF
8219 /* end confdefs.h.  */
8220 #include <sys/types.h>
8221 #include <sys/param.h>
8222
8223 int
8224 main ()
8225 {
8226 #if BYTE_ORDER != BIG_ENDIAN
8227  not big endian
8228 #endif
8229
8230   ;
8231   return 0;
8232 }
8233 _ACEOF
8234 rm -f conftest.$ac_objext
8235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8236   (eval $ac_compile) 2>conftest.er1
8237   ac_status=$?
8238   grep -v '^ *+' conftest.er1 >conftest.err
8239   rm -f conftest.er1
8240   cat conftest.err >&5
8241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242   (exit $ac_status); } &&
8243          { ac_try='test -z "$ac_c_werror_flag"
8244                          || test ! -s conftest.err'
8245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246   (eval $ac_try) 2>&5
8247   ac_status=$?
8248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249   (exit $ac_status); }; } &&
8250          { ac_try='test -s conftest.$ac_objext'
8251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8252   (eval $ac_try) 2>&5
8253   ac_status=$?
8254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255   (exit $ac_status); }; }; then
8256   ac_cv_c_bigendian=yes
8257 else
8258   echo "$as_me: failed program was:" >&5
8259 sed 's/^/| /' conftest.$ac_ext >&5
8260
8261 ac_cv_c_bigendian=no
8262 fi
8263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8264 else
8265   echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.$ac_ext >&5
8267
8268 # It does not; compile a test program.
8269 if test "$cross_compiling" = yes; then
8270   # try to guess the endianness by grepping values into an object file
8271   ac_cv_c_bigendian=unknown
8272   cat >conftest.$ac_ext <<_ACEOF
8273 /* confdefs.h.  */
8274 _ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h.  */
8278 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8279 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8280 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8281 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8282 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8283 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8284 int
8285 main ()
8286 {
8287  _ascii (); _ebcdic ();
8288   ;
8289   return 0;
8290 }
8291 _ACEOF
8292 rm -f conftest.$ac_objext
8293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8294   (eval $ac_compile) 2>conftest.er1
8295   ac_status=$?
8296   grep -v '^ *+' conftest.er1 >conftest.err
8297   rm -f conftest.er1
8298   cat conftest.err >&5
8299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300   (exit $ac_status); } &&
8301          { ac_try='test -z "$ac_c_werror_flag"
8302                          || test ! -s conftest.err'
8303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8304   (eval $ac_try) 2>&5
8305   ac_status=$?
8306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307   (exit $ac_status); }; } &&
8308          { ac_try='test -s conftest.$ac_objext'
8309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8310   (eval $ac_try) 2>&5
8311   ac_status=$?
8312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313   (exit $ac_status); }; }; then
8314   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8315   ac_cv_c_bigendian=yes
8316 fi
8317 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8318   if test "$ac_cv_c_bigendian" = unknown; then
8319     ac_cv_c_bigendian=no
8320   else
8321     # finding both strings is unlikely to happen, but who knows?
8322     ac_cv_c_bigendian=unknown
8323   fi
8324 fi
8325 else
8326   echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.$ac_ext >&5
8328
8329 fi
8330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8331 else
8332   cat >conftest.$ac_ext <<_ACEOF
8333 /* confdefs.h.  */
8334 _ACEOF
8335 cat confdefs.h >>conftest.$ac_ext
8336 cat >>conftest.$ac_ext <<_ACEOF
8337 /* end confdefs.h.  */
8338 int
8339 main ()
8340 {
8341   /* Are we little or big endian?  From Harbison&Steele.  */
8342   union
8343   {
8344     long l;
8345     char c[sizeof (long)];
8346   } u;
8347   u.l = 1;
8348   exit (u.c[sizeof (long) - 1] == 1);
8349 }
8350 _ACEOF
8351 rm -f conftest$ac_exeext
8352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8353   (eval $ac_link) 2>&5
8354   ac_status=$?
8355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8358   (eval $ac_try) 2>&5
8359   ac_status=$?
8360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361   (exit $ac_status); }; }; then
8362   ac_cv_c_bigendian=no
8363 else
8364   echo "$as_me: program exited with status $ac_status" >&5
8365 echo "$as_me: failed program was:" >&5
8366 sed 's/^/| /' conftest.$ac_ext >&5
8367
8368 ( exit $ac_status )
8369 ac_cv_c_bigendian=yes
8370 fi
8371 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8372 fi
8373 fi
8374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8375 fi
8376 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8377 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8378 case $ac_cv_c_bigendian in
8379   yes)
8380
8381 cat >>confdefs.h <<\_ACEOF
8382 #define WORDS_BIGENDIAN 1
8383 _ACEOF
8384  ;;
8385   no)
8386      ;;
8387   *)
8388     { { echo "$as_me:$LINENO: error: unknown endianness
8389 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8390 echo "$as_me: error: unknown endianness
8391 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8392    { (exit 1); exit 1; }; } ;;
8393 esac
8394
8395 fi
8396
8397 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
8398 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
8399 if test "${ac_cv_c_char_unsigned+set}" = set; then
8400   echo $ECHO_N "(cached) $ECHO_C" >&6
8401 else
8402   cat >conftest.$ac_ext <<_ACEOF
8403 /* confdefs.h.  */
8404 _ACEOF
8405 cat confdefs.h >>conftest.$ac_ext
8406 cat >>conftest.$ac_ext <<_ACEOF
8407 /* end confdefs.h.  */
8408 $ac_includes_default
8409 int
8410 main ()
8411 {
8412 static int test_array [1 - 2 * !(((char) -1) < 0)];
8413 test_array [0] = 0
8414
8415   ;
8416   return 0;
8417 }
8418 _ACEOF
8419 rm -f conftest.$ac_objext
8420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8421   (eval $ac_compile) 2>conftest.er1
8422   ac_status=$?
8423   grep -v '^ *+' conftest.er1 >conftest.err
8424   rm -f conftest.er1
8425   cat conftest.err >&5
8426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427   (exit $ac_status); } &&
8428          { ac_try='test -z "$ac_c_werror_flag"
8429                          || test ! -s conftest.err'
8430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8431   (eval $ac_try) 2>&5
8432   ac_status=$?
8433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434   (exit $ac_status); }; } &&
8435          { ac_try='test -s conftest.$ac_objext'
8436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8437   (eval $ac_try) 2>&5
8438   ac_status=$?
8439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440   (exit $ac_status); }; }; then
8441   ac_cv_c_char_unsigned=no
8442 else
8443   echo "$as_me: failed program was:" >&5
8444 sed 's/^/| /' conftest.$ac_ext >&5
8445
8446 ac_cv_c_char_unsigned=yes
8447 fi
8448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8449 fi
8450 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
8451 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
8452 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
8453   cat >>confdefs.h <<\_ACEOF
8454 #define __CHAR_UNSIGNED__ 1
8455 _ACEOF
8456
8457 fi
8458
8459 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8460 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8461 if test "${ac_cv_c_const+set}" = set; then
8462   echo $ECHO_N "(cached) $ECHO_C" >&6
8463 else
8464   cat >conftest.$ac_ext <<_ACEOF
8465 /* confdefs.h.  */
8466 _ACEOF
8467 cat confdefs.h >>conftest.$ac_ext
8468 cat >>conftest.$ac_ext <<_ACEOF
8469 /* end confdefs.h.  */
8470
8471 int
8472 main ()
8473 {
8474 /* FIXME: Include the comments suggested by Paul. */
8475 #ifndef __cplusplus
8476   /* Ultrix mips cc rejects this.  */
8477   typedef int charset[2];
8478   const charset x;
8479   /* SunOS 4.1.1 cc rejects this.  */
8480   char const *const *ccp;
8481   char **p;
8482   /* NEC SVR4.0.2 mips cc rejects this.  */
8483   struct point {int x, y;};
8484   static struct point const zero = {0,0};
8485   /* AIX XL C 1.02.0.0 rejects this.
8486      It does not let you subtract one const X* pointer from another in
8487      an arm of an if-expression whose if-part is not a constant
8488      expression */
8489   const char *g = "string";
8490   ccp = &g + (g ? g-g : 0);
8491   /* HPUX 7.0 cc rejects these. */
8492   ++ccp;
8493   p = (char**) ccp;
8494   ccp = (char const *const *) p;
8495   { /* SCO 3.2v4 cc rejects this.  */
8496     char *t;
8497     char const *s = 0 ? (char *) 0 : (char const *) 0;
8498
8499     *t++ = 0;
8500   }
8501   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8502     int x[] = {25, 17};
8503     const int *foo = &x[0];
8504     ++foo;
8505   }
8506   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8507     typedef const int *iptr;
8508     iptr p = 0;
8509     ++p;
8510   }
8511   { /* AIX XL C 1.02.0.0 rejects this saying
8512        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8513     struct s { int j; const int *ap[3]; };
8514     struct s *b; b->j = 5;
8515   }
8516   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8517     const int foo = 10;
8518   }
8519 #endif
8520
8521   ;
8522   return 0;
8523 }
8524 _ACEOF
8525 rm -f conftest.$ac_objext
8526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8527   (eval $ac_compile) 2>conftest.er1
8528   ac_status=$?
8529   grep -v '^ *+' conftest.er1 >conftest.err
8530   rm -f conftest.er1
8531   cat conftest.err >&5
8532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533   (exit $ac_status); } &&
8534          { ac_try='test -z "$ac_c_werror_flag"
8535                          || test ! -s conftest.err'
8536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537   (eval $ac_try) 2>&5
8538   ac_status=$?
8539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540   (exit $ac_status); }; } &&
8541          { ac_try='test -s conftest.$ac_objext'
8542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543   (eval $ac_try) 2>&5
8544   ac_status=$?
8545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546   (exit $ac_status); }; }; then
8547   ac_cv_c_const=yes
8548 else
8549   echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.$ac_ext >&5
8551
8552 ac_cv_c_const=no
8553 fi
8554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8555 fi
8556 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8557 echo "${ECHO_T}$ac_cv_c_const" >&6
8558 if test $ac_cv_c_const = no; then
8559
8560 cat >>confdefs.h <<\_ACEOF
8561 #define const
8562 _ACEOF
8563
8564 fi
8565
8566 echo "$as_me:$LINENO: checking for inline" >&5
8567 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8568 if test "${ac_cv_c_inline+set}" = set; then
8569   echo $ECHO_N "(cached) $ECHO_C" >&6
8570 else
8571   ac_cv_c_inline=no
8572 for ac_kw in inline __inline__ __inline; do
8573   cat >conftest.$ac_ext <<_ACEOF
8574 /* confdefs.h.  */
8575 _ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h.  */
8579 #ifndef __cplusplus
8580 typedef int foo_t;
8581 static $ac_kw foo_t static_foo () {return 0; }
8582 $ac_kw foo_t foo () {return 0; }
8583 #endif
8584
8585 _ACEOF
8586 rm -f conftest.$ac_objext
8587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8588   (eval $ac_compile) 2>conftest.er1
8589   ac_status=$?
8590   grep -v '^ *+' conftest.er1 >conftest.err
8591   rm -f conftest.er1
8592   cat conftest.err >&5
8593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594   (exit $ac_status); } &&
8595          { ac_try='test -z "$ac_c_werror_flag"
8596                          || test ! -s conftest.err'
8597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8598   (eval $ac_try) 2>&5
8599   ac_status=$?
8600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601   (exit $ac_status); }; } &&
8602          { ac_try='test -s conftest.$ac_objext'
8603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8604   (eval $ac_try) 2>&5
8605   ac_status=$?
8606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607   (exit $ac_status); }; }; then
8608   ac_cv_c_inline=$ac_kw; break
8609 else
8610   echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.$ac_ext >&5
8612
8613 fi
8614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8615 done
8616
8617 fi
8618 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8619 echo "${ECHO_T}$ac_cv_c_inline" >&6
8620
8621
8622 case $ac_cv_c_inline in
8623   inline | yes) ;;
8624   *)
8625     case $ac_cv_c_inline in
8626       no) ac_val=;;
8627       *) ac_val=$ac_cv_c_inline;;
8628     esac
8629     cat >>confdefs.h <<_ACEOF
8630 #ifndef __cplusplus
8631 #define inline $ac_val
8632 #endif
8633 _ACEOF
8634     ;;
8635 esac
8636
8637 echo "$as_me:$LINENO: checking for working volatile" >&5
8638 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8639 if test "${ac_cv_c_volatile+set}" = set; then
8640   echo $ECHO_N "(cached) $ECHO_C" >&6
8641 else
8642   cat >conftest.$ac_ext <<_ACEOF
8643 /* confdefs.h.  */
8644 _ACEOF
8645 cat confdefs.h >>conftest.$ac_ext
8646 cat >>conftest.$ac_ext <<_ACEOF
8647 /* end confdefs.h.  */
8648
8649 int
8650 main ()
8651 {
8652
8653 volatile int x;
8654 int * volatile y;
8655   ;
8656   return 0;
8657 }
8658 _ACEOF
8659 rm -f conftest.$ac_objext
8660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8661   (eval $ac_compile) 2>conftest.er1
8662   ac_status=$?
8663   grep -v '^ *+' conftest.er1 >conftest.err
8664   rm -f conftest.er1
8665   cat conftest.err >&5
8666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667   (exit $ac_status); } &&
8668          { ac_try='test -z "$ac_c_werror_flag"
8669                          || test ! -s conftest.err'
8670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8671   (eval $ac_try) 2>&5
8672   ac_status=$?
8673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674   (exit $ac_status); }; } &&
8675          { ac_try='test -s conftest.$ac_objext'
8676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8677   (eval $ac_try) 2>&5
8678   ac_status=$?
8679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680   (exit $ac_status); }; }; then
8681   ac_cv_c_volatile=yes
8682 else
8683   echo "$as_me: failed program was:" >&5
8684 sed 's/^/| /' conftest.$ac_ext >&5
8685
8686 ac_cv_c_volatile=no
8687 fi
8688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8689 fi
8690 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8691 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8692 if test $ac_cv_c_volatile = no; then
8693
8694 cat >>confdefs.h <<\_ACEOF
8695 #define volatile
8696 _ACEOF
8697
8698 fi
8699
8700 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
8701 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
8702 if test "${ac_cv_c_stringize+set}" = set; then
8703   echo $ECHO_N "(cached) $ECHO_C" >&6
8704 else
8705   cat >conftest.$ac_ext <<_ACEOF
8706 /* confdefs.h.  */
8707 _ACEOF
8708 cat confdefs.h >>conftest.$ac_ext
8709 cat >>conftest.$ac_ext <<_ACEOF
8710 /* end confdefs.h.  */
8711 #define x(y) #y
8712
8713 char *s = x(teststring);
8714 _ACEOF
8715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8716   $EGREP "#teststring" >/dev/null 2>&1; then
8717   ac_cv_c_stringize=no
8718 else
8719   ac_cv_c_stringize=yes
8720 fi
8721 rm -f conftest*
8722
8723 fi
8724 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
8725 echo "${ECHO_T}$ac_cv_c_stringize" >&6
8726 if test $ac_cv_c_stringize = yes; then
8727
8728 cat >>confdefs.h <<\_ACEOF
8729 #define HAVE_STRINGIZE 1
8730 _ACEOF
8731
8732 fi
8733
8734 echo "$as_me:$LINENO: checking for function prototypes" >&5
8735 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8736 if test "$ac_cv_prog_cc_stdc" != no; then
8737   echo "$as_me:$LINENO: result: yes" >&5
8738 echo "${ECHO_T}yes" >&6
8739
8740 cat >>confdefs.h <<\_ACEOF
8741 #define PROTOTYPES 1
8742 _ACEOF
8743
8744
8745 cat >>confdefs.h <<\_ACEOF
8746 #define __PROTOTYPES 1
8747 _ACEOF
8748
8749 else
8750   echo "$as_me:$LINENO: result: no" >&5
8751 echo "${ECHO_T}no" >&6
8752 fi
8753
8754 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8755 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8756 if test "${ac_cv_struct_tm+set}" = set; then
8757   echo $ECHO_N "(cached) $ECHO_C" >&6
8758 else
8759   cat >conftest.$ac_ext <<_ACEOF
8760 /* confdefs.h.  */
8761 _ACEOF
8762 cat confdefs.h >>conftest.$ac_ext
8763 cat >>conftest.$ac_ext <<_ACEOF
8764 /* end confdefs.h.  */
8765 #include <sys/types.h>
8766 #include <time.h>
8767
8768 int
8769 main ()
8770 {
8771 struct tm *tp; tp->tm_sec;
8772   ;
8773   return 0;
8774 }
8775 _ACEOF
8776 rm -f conftest.$ac_objext
8777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8778   (eval $ac_compile) 2>conftest.er1
8779   ac_status=$?
8780   grep -v '^ *+' conftest.er1 >conftest.err
8781   rm -f conftest.er1
8782   cat conftest.err >&5
8783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784   (exit $ac_status); } &&
8785          { ac_try='test -z "$ac_c_werror_flag"
8786                          || test ! -s conftest.err'
8787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8788   (eval $ac_try) 2>&5
8789   ac_status=$?
8790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791   (exit $ac_status); }; } &&
8792          { ac_try='test -s conftest.$ac_objext'
8793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8794   (eval $ac_try) 2>&5
8795   ac_status=$?
8796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797   (exit $ac_status); }; }; then
8798   ac_cv_struct_tm=time.h
8799 else
8800   echo "$as_me: failed program was:" >&5
8801 sed 's/^/| /' conftest.$ac_ext >&5
8802
8803 ac_cv_struct_tm=sys/time.h
8804 fi
8805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8806 fi
8807 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8808 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8809 if test $ac_cv_struct_tm = sys/time.h; then
8810
8811 cat >>confdefs.h <<\_ACEOF
8812 #define TM_IN_SYS_TIME 1
8813 _ACEOF
8814
8815 fi
8816
8817 echo "$as_me:$LINENO: checking for size_t" >&5
8818 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8819 if test "${ac_cv_type_size_t+set}" = set; then
8820   echo $ECHO_N "(cached) $ECHO_C" >&6
8821 else
8822   cat >conftest.$ac_ext <<_ACEOF
8823 /* confdefs.h.  */
8824 _ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h.  */
8828 $ac_includes_default
8829 int
8830 main ()
8831 {
8832 if ((size_t *) 0)
8833   return 0;
8834 if (sizeof (size_t))
8835   return 0;
8836   ;
8837   return 0;
8838 }
8839 _ACEOF
8840 rm -f conftest.$ac_objext
8841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8842   (eval $ac_compile) 2>conftest.er1
8843   ac_status=$?
8844   grep -v '^ *+' conftest.er1 >conftest.err
8845   rm -f conftest.er1
8846   cat conftest.err >&5
8847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848   (exit $ac_status); } &&
8849          { ac_try='test -z "$ac_c_werror_flag"
8850                          || test ! -s conftest.err'
8851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8852   (eval $ac_try) 2>&5
8853   ac_status=$?
8854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855   (exit $ac_status); }; } &&
8856          { ac_try='test -s conftest.$ac_objext'
8857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8858   (eval $ac_try) 2>&5
8859   ac_status=$?
8860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861   (exit $ac_status); }; }; then
8862   ac_cv_type_size_t=yes
8863 else
8864   echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8866
8867 ac_cv_type_size_t=no
8868 fi
8869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8870 fi
8871 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8872 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8873 if test $ac_cv_type_size_t = yes; then
8874   :
8875 else
8876
8877 cat >>confdefs.h <<_ACEOF
8878 #define size_t unsigned
8879 _ACEOF
8880
8881 fi
8882
8883 echo "$as_me:$LINENO: checking for off_t" >&5
8884 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8885 if test "${ac_cv_type_off_t+set}" = set; then
8886   echo $ECHO_N "(cached) $ECHO_C" >&6
8887 else
8888   cat >conftest.$ac_ext <<_ACEOF
8889 /* confdefs.h.  */
8890 _ACEOF
8891 cat confdefs.h >>conftest.$ac_ext
8892 cat >>conftest.$ac_ext <<_ACEOF
8893 /* end confdefs.h.  */
8894 $ac_includes_default
8895 int
8896 main ()
8897 {
8898 if ((off_t *) 0)
8899   return 0;
8900 if (sizeof (off_t))
8901   return 0;
8902   ;
8903   return 0;
8904 }
8905 _ACEOF
8906 rm -f conftest.$ac_objext
8907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8908   (eval $ac_compile) 2>conftest.er1
8909   ac_status=$?
8910   grep -v '^ *+' conftest.er1 >conftest.err
8911   rm -f conftest.er1
8912   cat conftest.err >&5
8913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914   (exit $ac_status); } &&
8915          { ac_try='test -z "$ac_c_werror_flag"
8916                          || test ! -s conftest.err'
8917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8918   (eval $ac_try) 2>&5
8919   ac_status=$?
8920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921   (exit $ac_status); }; } &&
8922          { ac_try='test -s conftest.$ac_objext'
8923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8924   (eval $ac_try) 2>&5
8925   ac_status=$?
8926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927   (exit $ac_status); }; }; then
8928   ac_cv_type_off_t=yes
8929 else
8930   echo "$as_me: failed program was:" >&5
8931 sed 's/^/| /' conftest.$ac_ext >&5
8932
8933 ac_cv_type_off_t=no
8934 fi
8935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8936 fi
8937 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8938 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8939 if test $ac_cv_type_off_t = yes; then
8940   :
8941 else
8942
8943 cat >>confdefs.h <<_ACEOF
8944 #define off_t long
8945 _ACEOF
8946
8947 fi
8948
8949 echo "$as_me:$LINENO: checking for pid_t" >&5
8950 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8951 if test "${ac_cv_type_pid_t+set}" = set; then
8952   echo $ECHO_N "(cached) $ECHO_C" >&6
8953 else
8954   cat >conftest.$ac_ext <<_ACEOF
8955 /* confdefs.h.  */
8956 _ACEOF
8957 cat confdefs.h >>conftest.$ac_ext
8958 cat >>conftest.$ac_ext <<_ACEOF
8959 /* end confdefs.h.  */
8960 $ac_includes_default
8961 int
8962 main ()
8963 {
8964 if ((pid_t *) 0)
8965   return 0;
8966 if (sizeof (pid_t))
8967   return 0;
8968   ;
8969   return 0;
8970 }
8971 _ACEOF
8972 rm -f conftest.$ac_objext
8973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8974   (eval $ac_compile) 2>conftest.er1
8975   ac_status=$?
8976   grep -v '^ *+' conftest.er1 >conftest.err
8977   rm -f conftest.er1
8978   cat conftest.err >&5
8979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980   (exit $ac_status); } &&
8981          { ac_try='test -z "$ac_c_werror_flag"
8982                          || test ! -s conftest.err'
8983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984   (eval $ac_try) 2>&5
8985   ac_status=$?
8986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987   (exit $ac_status); }; } &&
8988          { ac_try='test -s conftest.$ac_objext'
8989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990   (eval $ac_try) 2>&5
8991   ac_status=$?
8992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993   (exit $ac_status); }; }; then
8994   ac_cv_type_pid_t=yes
8995 else
8996   echo "$as_me: failed program was:" >&5
8997 sed 's/^/| /' conftest.$ac_ext >&5
8998
8999 ac_cv_type_pid_t=no
9000 fi
9001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9002 fi
9003 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9004 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9005 if test $ac_cv_type_pid_t = yes; then
9006   :
9007 else
9008
9009 cat >>confdefs.h <<_ACEOF
9010 #define pid_t int
9011 _ACEOF
9012
9013 fi
9014
9015
9016 echo "$as_me:$LINENO: checking volatile declaration" >&5
9017 echo $ECHO_N "checking volatile declaration... $ECHO_C" >&6
9018 if test "${timidity_cv_type_volatile+set}" = set; then
9019   echo $ECHO_N "(cached) $ECHO_C" >&6
9020 else
9021   cat >conftest.$ac_ext <<_ACEOF
9022 /* confdefs.h.  */
9023 _ACEOF
9024 cat confdefs.h >>conftest.$ac_ext
9025 cat >>conftest.$ac_ext <<_ACEOF
9026 /* end confdefs.h.  */
9027
9028 int
9029 main ()
9030 {
9031 volatile int x
9032   ;
9033   return 0;
9034 }
9035 _ACEOF
9036 rm -f conftest.$ac_objext
9037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9038   (eval $ac_compile) 2>conftest.er1
9039   ac_status=$?
9040   grep -v '^ *+' conftest.er1 >conftest.err
9041   rm -f conftest.er1
9042   cat conftest.err >&5
9043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044   (exit $ac_status); } &&
9045          { ac_try='test -z "$ac_c_werror_flag"
9046                          || test ! -s conftest.err'
9047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048   (eval $ac_try) 2>&5
9049   ac_status=$?
9050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051   (exit $ac_status); }; } &&
9052          { ac_try='test -s conftest.$ac_objext'
9053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9054   (eval $ac_try) 2>&5
9055   ac_status=$?
9056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057   (exit $ac_status); }; }; then
9058   timidity_cv_type_volatile=yes
9059 else
9060   echo "$as_me: failed program was:" >&5
9061 sed 's/^/| /' conftest.$ac_ext >&5
9062
9063 timidity_cv_type_volatile=no
9064 fi
9065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9066 fi
9067 echo "$as_me:$LINENO: result: $timidity_cv_type_volatile" >&5
9068 echo "${ECHO_T}$timidity_cv_type_volatile" >&6
9069 if test $timidity_cv_type_volatile = no; then
9070
9071 cat >>confdefs.h <<\_ACEOF
9072 #define NO_VOLATILE 1
9073 _ACEOF
9074
9075 fi
9076
9077 echo "$as_me:$LINENO: checking union semun declaration" >&5
9078 echo $ECHO_N "checking union semun declaration... $ECHO_C" >&6
9079 if test "${timidity_cv_type_union_semun+set}" = set; then
9080   echo $ECHO_N "(cached) $ECHO_C" >&6
9081 else
9082   cat >conftest.$ac_ext <<_ACEOF
9083 /* confdefs.h.  */
9084 _ACEOF
9085 cat confdefs.h >>conftest.$ac_ext
9086 cat >>conftest.$ac_ext <<_ACEOF
9087 /* end confdefs.h.  */
9088
9089 #include <sys/types.h>
9090 #include <sys/ipc.h>
9091 #include <sys/sem.h>
9092
9093 int
9094 main ()
9095 {
9096 union semun x
9097   ;
9098   return 0;
9099 }
9100 _ACEOF
9101 rm -f conftest.$ac_objext
9102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9103   (eval $ac_compile) 2>conftest.er1
9104   ac_status=$?
9105   grep -v '^ *+' conftest.er1 >conftest.err
9106   rm -f conftest.er1
9107   cat conftest.err >&5
9108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109   (exit $ac_status); } &&
9110          { ac_try='test -z "$ac_c_werror_flag"
9111                          || test ! -s conftest.err'
9112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9113   (eval $ac_try) 2>&5
9114   ac_status=$?
9115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116   (exit $ac_status); }; } &&
9117          { ac_try='test -s conftest.$ac_objext'
9118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9119   (eval $ac_try) 2>&5
9120   ac_status=$?
9121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122   (exit $ac_status); }; }; then
9123   timidity_cv_type_union_semun=yes
9124 else
9125   echo "$as_me: failed program was:" >&5
9126 sed 's/^/| /' conftest.$ac_ext >&5
9127
9128 timidity_cv_type_union_semun=no
9129 fi
9130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9131 fi
9132 echo "$as_me:$LINENO: result: $timidity_cv_type_union_semun" >&5
9133 echo "${ECHO_T}$timidity_cv_type_union_semun" >&6
9134 if test $timidity_cv_type_union_semun = yes; then
9135
9136 cat >>confdefs.h <<\_ACEOF
9137 #define HAVE_UNION_SEMUN 1
9138 _ACEOF
9139
9140 fi
9141
9142 if test "x$CYGNUS" = xyes || test "x$MSYS" = xyes; then
9143         case "x${CC}" in
9144         "xgcc"*)
9145                 msnative_struct=''
9146             echo "$as_me:$LINENO: checking how to get MSVC-compatible struct packing" >&5
9147 echo $ECHO_N "checking how to get MSVC-compatible struct packing... $ECHO_C" >&6
9148             if test -z "$ac_cv_prog_CC"; then
9149                         our_gcc="$CC"
9150                 else
9151                         our_gcc="$ac_cv_prog_CC"
9152                 fi
9153                 case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
9154                         2.)
9155                 if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
9156                         msnative_struct='-fnative-struct'
9157                 fi
9158                 ;;
9159                         *)
9160                 if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
9161                         msnative_struct='-mms-bitfields'
9162                 fi
9163                 ;;
9164                 esac
9165                 if test x"$msnative_struct" = x ; then
9166                         echo "$as_me:$LINENO: result: no way" >&5
9167 echo "${ECHO_T}no way" >&6
9168                         { echo "$as_me:$LINENO: WARNING: produced binary will be incompatible with windows' GUI " >&5
9169 echo "$as_me: WARNING: produced binary will be incompatible with windows' GUI " >&2;}
9170                 else
9171                         CFLAGS="$CFLAGS $msnative_struct"
9172                         CPPFLAGS="$CPPFLAGS $msnative_struct"
9173                         echo "$as_me:$LINENO: result: ${msnative_struct}" >&5
9174 echo "${ECHO_T}${msnative_struct}" >&6
9175                 fi
9176                 ;;
9177         *)
9178                 ;;
9179         esac
9180 fi
9181 if test "x$CYGNUS" = xyes || test "x$MSYS" = xyes; then
9182   echo "$as_me:$LINENO: checking Cygwin new mmsystem" >&5
9183 echo $ECHO_N "checking Cygwin new mmsystem... $ECHO_C" >&6
9184 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
9185   echo $ECHO_N "(cached) $ECHO_C" >&6
9186 else
9187   cat >conftest.$ac_ext <<_ACEOF
9188 /* confdefs.h.  */
9189 _ACEOF
9190 cat confdefs.h >>conftest.$ac_ext
9191 cat >>conftest.$ac_ext <<_ACEOF
9192 /* end confdefs.h.  */
9193
9194 #include <windows.h>
9195 #include <mmsystem.h>
9196
9197 int
9198 main ()
9199 {
9200 return WOM_OPEN != 0x3BB
9201   ;
9202   return 0;
9203 }
9204 _ACEOF
9205 rm -f conftest.$ac_objext
9206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9207   (eval $ac_compile) 2>conftest.er1
9208   ac_status=$?
9209   grep -v '^ *+' conftest.er1 >conftest.err
9210   rm -f conftest.er1
9211   cat conftest.err >&5
9212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213   (exit $ac_status); } &&
9214          { ac_try='test -z "$ac_c_werror_flag"
9215                          || test ! -s conftest.err'
9216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9217   (eval $ac_try) 2>&5
9218   ac_status=$?
9219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220   (exit $ac_status); }; } &&
9221          { ac_try='test -s conftest.$ac_objext'
9222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9223   (eval $ac_try) 2>&5
9224   ac_status=$?
9225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226   (exit $ac_status); }; }; then
9227   timidity_cv_header_new_mmsystem=yes
9228 else
9229   echo "$as_me: failed program was:" >&5
9230 sed 's/^/| /' conftest.$ac_ext >&5
9231
9232 timidity_cv_header_new_mmsystem=no
9233 fi
9234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9235 fi
9236 echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
9237 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6
9238   if test $timidity_cv_header_new_mmsystem = yes; then
9239
9240 cat >>confdefs.h <<\_ACEOF
9241 #define HAVE_NEW_MMSYSTEM 1
9242 _ACEOF
9243
9244   fi
9245 fi
9246
9247 # Checks for library functions.
9248 echo "$as_me:$LINENO: checking for error_at_line" >&5
9249 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
9250 if test "${ac_cv_lib_error_at_line+set}" = set; then
9251   echo $ECHO_N "(cached) $ECHO_C" >&6
9252 else
9253   cat >conftest.$ac_ext <<_ACEOF
9254 /* confdefs.h.  */
9255 _ACEOF
9256 cat confdefs.h >>conftest.$ac_ext
9257 cat >>conftest.$ac_ext <<_ACEOF
9258 /* end confdefs.h.  */
9259 $ac_includes_default
9260 int
9261 main ()
9262 {
9263 error_at_line (0, 0, "", 0, "");
9264   ;
9265   return 0;
9266 }
9267 _ACEOF
9268 rm -f conftest.$ac_objext conftest$ac_exeext
9269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9270   (eval $ac_link) 2>conftest.er1
9271   ac_status=$?
9272   grep -v '^ *+' conftest.er1 >conftest.err
9273   rm -f conftest.er1
9274   cat conftest.err >&5
9275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276   (exit $ac_status); } &&
9277          { ac_try='test -z "$ac_c_werror_flag"
9278                          || test ! -s conftest.err'
9279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280   (eval $ac_try) 2>&5
9281   ac_status=$?
9282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283   (exit $ac_status); }; } &&
9284          { ac_try='test -s conftest$ac_exeext'
9285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9286   (eval $ac_try) 2>&5
9287   ac_status=$?
9288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289   (exit $ac_status); }; }; then
9290   ac_cv_lib_error_at_line=yes
9291 else
9292   echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9294
9295 ac_cv_lib_error_at_line=no
9296 fi
9297 rm -f conftest.err conftest.$ac_objext \
9298       conftest$ac_exeext conftest.$ac_ext
9299 fi
9300 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
9301 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
9302 if test $ac_cv_lib_error_at_line = no; then
9303   case $LIBOBJS in
9304     "error.$ac_objext"   | \
9305   *" error.$ac_objext"   | \
9306     "error.$ac_objext "* | \
9307   *" error.$ac_objext "* ) ;;
9308   *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
9309 esac
9310
9311 fi
9312
9313
9314
9315 for ac_header in unistd.h vfork.h
9316 do
9317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9319   echo "$as_me:$LINENO: checking for $ac_header" >&5
9320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9322   echo $ECHO_N "(cached) $ECHO_C" >&6
9323 fi
9324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9326 else
9327   # Is the header compilable?
9328 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9329 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9330 cat >conftest.$ac_ext <<_ACEOF
9331 /* confdefs.h.  */
9332 _ACEOF
9333 cat confdefs.h >>conftest.$ac_ext
9334 cat >>conftest.$ac_ext <<_ACEOF
9335 /* end confdefs.h.  */
9336 $ac_includes_default
9337 #include <$ac_header>
9338 _ACEOF
9339 rm -f conftest.$ac_objext
9340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9341   (eval $ac_compile) 2>conftest.er1
9342   ac_status=$?
9343   grep -v '^ *+' conftest.er1 >conftest.err
9344   rm -f conftest.er1
9345   cat conftest.err >&5
9346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347   (exit $ac_status); } &&
9348          { ac_try='test -z "$ac_c_werror_flag"
9349                          || test ! -s conftest.err'
9350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9351   (eval $ac_try) 2>&5
9352   ac_status=$?
9353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354   (exit $ac_status); }; } &&
9355          { ac_try='test -s conftest.$ac_objext'
9356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357   (eval $ac_try) 2>&5
9358   ac_status=$?
9359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360   (exit $ac_status); }; }; then
9361   ac_header_compiler=yes
9362 else
9363   echo "$as_me: failed program was:" >&5
9364 sed 's/^/| /' conftest.$ac_ext >&5
9365
9366 ac_header_compiler=no
9367 fi
9368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9369 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9370 echo "${ECHO_T}$ac_header_compiler" >&6
9371
9372 # Is the header present?
9373 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9374 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9375 cat >conftest.$ac_ext <<_ACEOF
9376 /* confdefs.h.  */
9377 _ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h.  */
9381 #include <$ac_header>
9382 _ACEOF
9383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9384   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9385   ac_status=$?
9386   grep -v '^ *+' conftest.er1 >conftest.err
9387   rm -f conftest.er1
9388   cat conftest.err >&5
9389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390   (exit $ac_status); } >/dev/null; then
9391   if test -s conftest.err; then
9392     ac_cpp_err=$ac_c_preproc_warn_flag
9393     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9394   else
9395     ac_cpp_err=
9396   fi
9397 else
9398   ac_cpp_err=yes
9399 fi
9400 if test -z "$ac_cpp_err"; then
9401   ac_header_preproc=yes
9402 else
9403   echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9405
9406   ac_header_preproc=no
9407 fi
9408 rm -f conftest.err conftest.$ac_ext
9409 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9410 echo "${ECHO_T}$ac_header_preproc" >&6
9411
9412 # So?  What about this header?
9413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9414   yes:no: )
9415     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9416 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9417     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9418 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9419     ac_header_preproc=yes
9420     ;;
9421   no:yes:* )
9422     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9423 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9424     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9425 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9426     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9427 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9428     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9429 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9430     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9432     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9433 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9434     (
9435       cat <<\_ASBOX
9436 ## ------------------------------- ##
9437 ## Report this to root@mput.dip.jp ##
9438 ## ------------------------------- ##
9439 _ASBOX
9440     ) |
9441       sed "s/^/$as_me: WARNING:     /" >&2
9442     ;;
9443 esac
9444 echo "$as_me:$LINENO: checking for $ac_header" >&5
9445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9447   echo $ECHO_N "(cached) $ECHO_C" >&6
9448 else
9449   eval "$as_ac_Header=\$ac_header_preproc"
9450 fi
9451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9453
9454 fi
9455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9456   cat >>confdefs.h <<_ACEOF
9457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9458 _ACEOF
9459
9460 fi
9461
9462 done
9463
9464
9465
9466 for ac_func in fork vfork
9467 do
9468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9469 echo "$as_me:$LINENO: checking for $ac_func" >&5
9470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9471 if eval "test \"\${$as_ac_var+set}\" = set"; then
9472   echo $ECHO_N "(cached) $ECHO_C" >&6
9473 else
9474   cat >conftest.$ac_ext <<_ACEOF
9475 /* confdefs.h.  */
9476 _ACEOF
9477 cat confdefs.h >>conftest.$ac_ext
9478 cat >>conftest.$ac_ext <<_ACEOF
9479 /* end confdefs.h.  */
9480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9481    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9482 #define $ac_func innocuous_$ac_func
9483
9484 /* System header to define __stub macros and hopefully few prototypes,
9485     which can conflict with char $ac_func (); below.
9486     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9487     <limits.h> exists even on freestanding compilers.  */
9488
9489 #ifdef __STDC__
9490 # include <limits.h>
9491 #else
9492 # include <assert.h>
9493 #endif
9494
9495 #undef $ac_func
9496
9497 /* Override any gcc2 internal prototype to avoid an error.  */
9498 #ifdef __cplusplus
9499 extern "C"
9500 {
9501 #endif
9502 /* We use char because int might match the return type of a gcc2
9503    builtin and then its argument prototype would still apply.  */
9504 char $ac_func ();
9505 /* The GNU C library defines this for functions which it implements
9506     to always fail with ENOSYS.  Some functions are actually named
9507     something starting with __ and the normal name is an alias.  */
9508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9509 choke me
9510 #else
9511 char (*f) () = $ac_func;
9512 #endif
9513 #ifdef __cplusplus
9514 }
9515 #endif
9516
9517 int
9518 main ()
9519 {
9520 return f != $ac_func;
9521   ;
9522   return 0;
9523 }
9524 _ACEOF
9525 rm -f conftest.$ac_objext conftest$ac_exeext
9526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9527   (eval $ac_link) 2>conftest.er1
9528   ac_status=$?
9529   grep -v '^ *+' conftest.er1 >conftest.err
9530   rm -f conftest.er1
9531   cat conftest.err >&5
9532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533   (exit $ac_status); } &&
9534          { ac_try='test -z "$ac_c_werror_flag"
9535                          || test ! -s conftest.err'
9536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537   (eval $ac_try) 2>&5
9538   ac_status=$?
9539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540   (exit $ac_status); }; } &&
9541          { ac_try='test -s conftest$ac_exeext'
9542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9543   (eval $ac_try) 2>&5
9544   ac_status=$?
9545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546   (exit $ac_status); }; }; then
9547   eval "$as_ac_var=yes"
9548 else
9549   echo "$as_me: failed program was:" >&5
9550 sed 's/^/| /' conftest.$ac_ext >&5
9551
9552 eval "$as_ac_var=no"
9553 fi
9554 rm -f conftest.err conftest.$ac_objext \
9555       conftest$ac_exeext conftest.$ac_ext
9556 fi
9557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9558 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9559 if test `eval echo '${'$as_ac_var'}'` = yes; then
9560   cat >>confdefs.h <<_ACEOF
9561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9562 _ACEOF
9563
9564 fi
9565 done
9566
9567 if test "x$ac_cv_func_fork" = xyes; then
9568   echo "$as_me:$LINENO: checking for working fork" >&5
9569 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9570 if test "${ac_cv_func_fork_works+set}" = set; then
9571   echo $ECHO_N "(cached) $ECHO_C" >&6
9572 else
9573   if test "$cross_compiling" = yes; then
9574   ac_cv_func_fork_works=cross
9575 else
9576   cat >conftest.$ac_ext <<_ACEOF
9577 /* By Ruediger Kuhlmann. */
9578       #include <sys/types.h>
9579       #if HAVE_UNISTD_H
9580       # include <unistd.h>
9581       #endif
9582       /* Some systems only have a dummy stub for fork() */
9583       int main ()
9584       {
9585         if (fork() < 0)
9586           exit (1);
9587         exit (0);
9588       }
9589 _ACEOF
9590 rm -f conftest$ac_exeext
9591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9592   (eval $ac_link) 2>&5
9593   ac_status=$?
9594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9597   (eval $ac_try) 2>&5
9598   ac_status=$?
9599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600   (exit $ac_status); }; }; then
9601   ac_cv_func_fork_works=yes
9602 else
9603   echo "$as_me: program exited with status $ac_status" >&5
9604 echo "$as_me: failed program was:" >&5
9605 sed 's/^/| /' conftest.$ac_ext >&5
9606
9607 ( exit $ac_status )
9608 ac_cv_func_fork_works=no
9609 fi
9610 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9611 fi
9612 fi
9613 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9614 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9615
9616 else
9617   ac_cv_func_fork_works=$ac_cv_func_fork
9618 fi
9619 if test "x$ac_cv_func_fork_works" = xcross; then
9620   case $host in
9621     *-*-amigaos* | *-*-msdosdjgpp*)
9622       # Override, as these systems have only a dummy fork() stub
9623       ac_cv_func_fork_works=no
9624       ;;
9625     *)
9626       ac_cv_func_fork_works=yes
9627       ;;
9628   esac
9629   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9630 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9631 fi
9632 ac_cv_func_vfork_works=$ac_cv_func_vfork
9633 if test "x$ac_cv_func_vfork" = xyes; then
9634   echo "$as_me:$LINENO: checking for working vfork" >&5
9635 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
9636 if test "${ac_cv_func_vfork_works+set}" = set; then
9637   echo $ECHO_N "(cached) $ECHO_C" >&6
9638 else
9639   if test "$cross_compiling" = yes; then
9640   ac_cv_func_vfork_works=cross
9641 else
9642   cat >conftest.$ac_ext <<_ACEOF
9643 /* confdefs.h.  */
9644 _ACEOF
9645 cat confdefs.h >>conftest.$ac_ext
9646 cat >>conftest.$ac_ext <<_ACEOF
9647 /* end confdefs.h.  */
9648 /* Thanks to Paul Eggert for this test.  */
9649 #include <stdio.h>
9650 #include <stdlib.h>
9651 #include <sys/types.h>
9652 #include <sys/stat.h>
9653 #include <sys/wait.h>
9654 #if HAVE_UNISTD_H
9655 # include <unistd.h>
9656 #endif
9657 #if HAVE_VFORK_H
9658 # include <vfork.h>
9659 #endif
9660 /* On some sparc systems, changes by the child to local and incoming
9661    argument registers are propagated back to the parent.  The compiler
9662    is told about this with #include <vfork.h>, but some compilers
9663    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
9664    static variable whose address is put into a register that is
9665    clobbered by the vfork.  */
9666 static void
9667 #ifdef __cplusplus
9668 sparc_address_test (int arg)
9669 # else
9670 sparc_address_test (arg) int arg;
9671 #endif
9672 {
9673   static pid_t child;
9674   if (!child) {
9675     child = vfork ();
9676     if (child < 0) {
9677       perror ("vfork");
9678       _exit(2);
9679     }
9680     if (!child) {
9681       arg = getpid();
9682       write(-1, "", 0);
9683       _exit (arg);
9684     }
9685   }
9686 }
9687
9688 int
9689 main ()
9690 {
9691   pid_t parent = getpid ();
9692   pid_t child;
9693
9694   sparc_address_test (0);
9695
9696   child = vfork ();
9697
9698   if (child == 0) {
9699     /* Here is another test for sparc vfork register problems.  This
9700        test uses lots of local variables, at least as many local
9701        variables as main has allocated so far including compiler
9702        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
9703        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
9704        reuse the register of parent for one of the local variables,
9705        since it will think that parent can't possibly be used any more
9706        in this routine.  Assigning to the local variable will thus
9707        munge parent in the parent process.  */
9708     pid_t
9709       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9710       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9711     /* Convince the compiler that p..p7 are live; otherwise, it might
9712        use the same hardware register for all 8 local variables.  */
9713     if (p != p1 || p != p2 || p != p3 || p != p4
9714         || p != p5 || p != p6 || p != p7)
9715       _exit(1);
9716
9717     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9718        from child file descriptors.  If the child closes a descriptor
9719        before it execs or exits, this munges the parent's descriptor
9720        as well.  Test for this by closing stdout in the child.  */
9721     _exit(close(fileno(stdout)) != 0);
9722   } else {
9723     int status;
9724     struct stat st;
9725
9726     while (wait(&status) != child)
9727       ;
9728     exit(
9729          /* Was there some problem with vforking?  */
9730          child < 0
9731
9732          /* Did the child fail?  (This shouldn't happen.)  */
9733          || status
9734
9735          /* Did the vfork/compiler bug occur?  */
9736          || parent != getpid()
9737
9738          /* Did the file descriptor bug occur?  */
9739          || fstat(fileno(stdout), &st) != 0
9740          );
9741   }
9742 }
9743 _ACEOF
9744 rm -f conftest$ac_exeext
9745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9746   (eval $ac_link) 2>&5
9747   ac_status=$?
9748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751   (eval $ac_try) 2>&5
9752   ac_status=$?
9753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754   (exit $ac_status); }; }; then
9755   ac_cv_func_vfork_works=yes
9756 else
9757   echo "$as_me: program exited with status $ac_status" >&5
9758 echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.$ac_ext >&5
9760
9761 ( exit $ac_status )
9762 ac_cv_func_vfork_works=no
9763 fi
9764 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9765 fi
9766 fi
9767 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9768 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
9769
9770 fi;
9771 if test "x$ac_cv_func_fork_works" = xcross; then
9772   ac_cv_func_vfork_works=$ac_cv_func_vfork
9773   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9774 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9775 fi
9776
9777 if test "x$ac_cv_func_vfork_works" = xyes; then
9778
9779 cat >>confdefs.h <<\_ACEOF
9780 #define HAVE_WORKING_VFORK 1
9781 _ACEOF
9782
9783 else
9784
9785 cat >>confdefs.h <<\_ACEOF
9786 #define vfork fork
9787 _ACEOF
9788
9789 fi
9790 if test "x$ac_cv_func_fork_works" = xyes; then
9791
9792 cat >>confdefs.h <<\_ACEOF
9793 #define HAVE_WORKING_FORK 1
9794 _ACEOF
9795
9796 fi
9797
9798 echo "$as_me:$LINENO: checking for working memcmp" >&5
9799 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9800 if test "${ac_cv_func_memcmp_working+set}" = set; then
9801   echo $ECHO_N "(cached) $ECHO_C" >&6
9802 else
9803   if test "$cross_compiling" = yes; then
9804   ac_cv_func_memcmp_working=no
9805 else
9806   cat >conftest.$ac_ext <<_ACEOF
9807 /* confdefs.h.  */
9808 _ACEOF
9809 cat confdefs.h >>conftest.$ac_ext
9810 cat >>conftest.$ac_ext <<_ACEOF
9811 /* end confdefs.h.  */
9812 $ac_includes_default
9813 int
9814 main ()
9815 {
9816
9817   /* Some versions of memcmp are not 8-bit clean.  */
9818   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9819   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9820     exit (1);
9821
9822   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9823      or more and with at least one buffer not starting on a 4-byte boundary.
9824      William Lewis provided this test program.   */
9825   {
9826     char foo[21];
9827     char bar[21];
9828     int i;
9829     for (i = 0; i < 4; i++)
9830       {
9831         char *a = foo + i;
9832         char *b = bar + i;
9833         strcpy (a, "--------01111111");
9834         strcpy (b, "--------10000000");
9835         if (memcmp (a, b, 16) >= 0)
9836           exit (1);
9837       }
9838     exit (0);
9839   }
9840
9841   ;
9842   return 0;
9843 }
9844 _ACEOF
9845 rm -f conftest$ac_exeext
9846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9847   (eval $ac_link) 2>&5
9848   ac_status=$?
9849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9852   (eval $ac_try) 2>&5
9853   ac_status=$?
9854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855   (exit $ac_status); }; }; then
9856   ac_cv_func_memcmp_working=yes
9857 else
9858   echo "$as_me: program exited with status $ac_status" >&5
9859 echo "$as_me: failed program was:" >&5
9860 sed 's/^/| /' conftest.$ac_ext >&5
9861
9862 ( exit $ac_status )
9863 ac_cv_func_memcmp_working=no
9864 fi
9865 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9866 fi
9867 fi
9868 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9869 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9870 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
9871     "memcmp.$ac_objext"   | \
9872   *" memcmp.$ac_objext"   | \
9873     "memcmp.$ac_objext "* | \
9874   *" memcmp.$ac_objext "* ) ;;
9875   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
9876 esac
9877
9878
9879
9880
9881 for ac_header in stdlib.h unistd.h
9882 do
9883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9885   echo "$as_me:$LINENO: checking for $ac_header" >&5
9886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9888   echo $ECHO_N "(cached) $ECHO_C" >&6
9889 fi
9890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9892 else
9893   # Is the header compilable?
9894 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9895 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9896 cat >conftest.$ac_ext <<_ACEOF
9897 /* confdefs.h.  */
9898 _ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h.  */
9902 $ac_includes_default
9903 #include <$ac_header>
9904 _ACEOF
9905 rm -f conftest.$ac_objext
9906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9907   (eval $ac_compile) 2>conftest.er1
9908   ac_status=$?
9909   grep -v '^ *+' conftest.er1 >conftest.err
9910   rm -f conftest.er1
9911   cat conftest.err >&5
9912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913   (exit $ac_status); } &&
9914          { ac_try='test -z "$ac_c_werror_flag"
9915                          || test ! -s conftest.err'
9916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9917   (eval $ac_try) 2>&5
9918   ac_status=$?
9919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920   (exit $ac_status); }; } &&
9921          { ac_try='test -s conftest.$ac_objext'
9922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923   (eval $ac_try) 2>&5
9924   ac_status=$?
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); }; }; then
9927   ac_header_compiler=yes
9928 else
9929   echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.$ac_ext >&5
9931
9932 ac_header_compiler=no
9933 fi
9934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9935 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9936 echo "${ECHO_T}$ac_header_compiler" >&6
9937
9938 # Is the header present?
9939 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9940 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9941 cat >conftest.$ac_ext <<_ACEOF
9942 /* confdefs.h.  */
9943 _ACEOF
9944 cat confdefs.h >>conftest.$ac_ext
9945 cat >>conftest.$ac_ext <<_ACEOF
9946 /* end confdefs.h.  */
9947 #include <$ac_header>
9948 _ACEOF
9949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9950   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9951   ac_status=$?
9952   grep -v '^ *+' conftest.er1 >conftest.err
9953   rm -f conftest.er1
9954   cat conftest.err >&5
9955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956   (exit $ac_status); } >/dev/null; then
9957   if test -s conftest.err; then
9958     ac_cpp_err=$ac_c_preproc_warn_flag
9959     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9960   else
9961     ac_cpp_err=
9962   fi
9963 else
9964   ac_cpp_err=yes
9965 fi
9966 if test -z "$ac_cpp_err"; then
9967   ac_header_preproc=yes
9968 else
9969   echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9971
9972   ac_header_preproc=no
9973 fi
9974 rm -f conftest.err conftest.$ac_ext
9975 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9976 echo "${ECHO_T}$ac_header_preproc" >&6
9977
9978 # So?  What about this header?
9979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9980   yes:no: )
9981     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9982 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9983     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9984 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9985     ac_header_preproc=yes
9986     ;;
9987   no:yes:* )
9988     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9989 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9990     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9991 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9992     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9993 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9994     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9995 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9996     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9997 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9998     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9999 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10000     (
10001       cat <<\_ASBOX
10002 ## ------------------------------- ##
10003 ## Report this to root@mput.dip.jp ##
10004 ## ------------------------------- ##
10005 _ASBOX
10006     ) |
10007       sed "s/^/$as_me: WARNING:     /" >&2
10008     ;;
10009 esac
10010 echo "$as_me:$LINENO: checking for $ac_header" >&5
10011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10013   echo $ECHO_N "(cached) $ECHO_C" >&6
10014 else
10015   eval "$as_ac_Header=\$ac_header_preproc"
10016 fi
10017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10019
10020 fi
10021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10022   cat >>confdefs.h <<_ACEOF
10023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10024 _ACEOF
10025
10026 fi
10027
10028 done
10029
10030
10031 for ac_func in getpagesize
10032 do
10033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10034 echo "$as_me:$LINENO: checking for $ac_func" >&5
10035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10036 if eval "test \"\${$as_ac_var+set}\" = set"; then
10037   echo $ECHO_N "(cached) $ECHO_C" >&6
10038 else
10039   cat >conftest.$ac_ext <<_ACEOF
10040 /* confdefs.h.  */
10041 _ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h.  */
10045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10046    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10047 #define $ac_func innocuous_$ac_func
10048
10049 /* System header to define __stub macros and hopefully few prototypes,
10050     which can conflict with char $ac_func (); below.
10051     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10052     <limits.h> exists even on freestanding compilers.  */
10053
10054 #ifdef __STDC__
10055 # include <limits.h>
10056 #else
10057 # include <assert.h>
10058 #endif
10059
10060 #undef $ac_func
10061
10062 /* Override any gcc2 internal prototype to avoid an error.  */
10063 #ifdef __cplusplus
10064 extern "C"
10065 {
10066 #endif
10067 /* We use char because int might match the return type of a gcc2
10068    builtin and then its argument prototype would still apply.  */
10069 char $ac_func ();
10070 /* The GNU C library defines this for functions which it implements
10071     to always fail with ENOSYS.  Some functions are actually named
10072     something starting with __ and the normal name is an alias.  */
10073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10074 choke me
10075 #else
10076 char (*f) () = $ac_func;
10077 #endif
10078 #ifdef __cplusplus
10079 }
10080 #endif
10081
10082 int
10083 main ()
10084 {
10085 return f != $ac_func;
10086   ;
10087   return 0;
10088 }
10089 _ACEOF
10090 rm -f conftest.$ac_objext conftest$ac_exeext
10091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10092   (eval $ac_link) 2>conftest.er1
10093   ac_status=$?
10094   grep -v '^ *+' conftest.er1 >conftest.err
10095   rm -f conftest.er1
10096   cat conftest.err >&5
10097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098   (exit $ac_status); } &&
10099          { ac_try='test -z "$ac_c_werror_flag"
10100                          || test ! -s conftest.err'
10101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10102   (eval $ac_try) 2>&5
10103   ac_status=$?
10104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105   (exit $ac_status); }; } &&
10106          { ac_try='test -s conftest$ac_exeext'
10107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108   (eval $ac_try) 2>&5
10109   ac_status=$?
10110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111   (exit $ac_status); }; }; then
10112   eval "$as_ac_var=yes"
10113 else
10114   echo "$as_me: failed program was:" >&5
10115 sed 's/^/| /' conftest.$ac_ext >&5
10116
10117 eval "$as_ac_var=no"
10118 fi
10119 rm -f conftest.err conftest.$ac_objext \
10120       conftest$ac_exeext conftest.$ac_ext
10121 fi
10122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10124 if test `eval echo '${'$as_ac_var'}'` = yes; then
10125   cat >>confdefs.h <<_ACEOF
10126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10127 _ACEOF
10128
10129 fi
10130 done
10131
10132 echo "$as_me:$LINENO: checking for working mmap" >&5
10133 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10134 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10135   echo $ECHO_N "(cached) $ECHO_C" >&6
10136 else
10137   if test "$cross_compiling" = yes; then
10138   ac_cv_func_mmap_fixed_mapped=no
10139 else
10140   cat >conftest.$ac_ext <<_ACEOF
10141 /* confdefs.h.  */
10142 _ACEOF
10143 cat confdefs.h >>conftest.$ac_ext
10144 cat >>conftest.$ac_ext <<_ACEOF
10145 /* end confdefs.h.  */
10146 $ac_includes_default
10147 /* malloc might have been renamed as rpl_malloc. */
10148 #undef malloc
10149
10150 /* Thanks to Mike Haertel and Jim Avera for this test.
10151    Here is a matrix of mmap possibilities:
10152         mmap private not fixed
10153         mmap private fixed at somewhere currently unmapped
10154         mmap private fixed at somewhere already mapped
10155         mmap shared not fixed
10156         mmap shared fixed at somewhere currently unmapped
10157         mmap shared fixed at somewhere already mapped
10158    For private mappings, we should verify that changes cannot be read()
10159    back from the file, nor mmap's back from the file at a different
10160    address.  (There have been systems where private was not correctly
10161    implemented like the infamous i386 svr4.0, and systems where the
10162    VM page cache was not coherent with the file system buffer cache
10163    like early versions of FreeBSD and possibly contemporary NetBSD.)
10164    For shared mappings, we should conversely verify that changes get
10165    propagated back to all the places they're supposed to be.
10166
10167    Grep wants private fixed already mapped.
10168    The main things grep needs to know about mmap are:
10169    * does it exist and is it safe to write into the mmap'd area
10170    * how to use it (BSD variants)  */
10171
10172 #include <fcntl.h>
10173 #include <sys/mman.h>
10174
10175 #if !STDC_HEADERS && !HAVE_STDLIB_H
10176 char *malloc ();
10177 #endif
10178
10179 /* This mess was copied from the GNU getpagesize.h.  */
10180 #if !HAVE_GETPAGESIZE
10181 /* Assume that all systems that can run configure have sys/param.h.  */
10182 # if !HAVE_SYS_PARAM_H
10183 #  define HAVE_SYS_PARAM_H 1
10184 # endif
10185
10186 # ifdef _SC_PAGESIZE
10187 #  define getpagesize() sysconf(_SC_PAGESIZE)
10188 # else /* no _SC_PAGESIZE */
10189 #  if HAVE_SYS_PARAM_H
10190 #   include <sys/param.h>
10191 #   ifdef EXEC_PAGESIZE
10192 #    define getpagesize() EXEC_PAGESIZE
10193 #   else /* no EXEC_PAGESIZE */
10194 #    ifdef NBPG
10195 #     define getpagesize() NBPG * CLSIZE
10196 #     ifndef CLSIZE
10197 #      define CLSIZE 1
10198 #     endif /* no CLSIZE */
10199 #    else /* no NBPG */
10200 #     ifdef NBPC
10201 #      define getpagesize() NBPC
10202 #     else /* no NBPC */
10203 #      ifdef PAGESIZE
10204 #       define getpagesize() PAGESIZE
10205 #      endif /* PAGESIZE */
10206 #     endif /* no NBPC */
10207 #    endif /* no NBPG */
10208 #   endif /* no EXEC_PAGESIZE */
10209 #  else /* no HAVE_SYS_PARAM_H */
10210 #   define getpagesize() 8192   /* punt totally */
10211 #  endif /* no HAVE_SYS_PARAM_H */
10212 # endif /* no _SC_PAGESIZE */
10213
10214 #endif /* no HAVE_GETPAGESIZE */
10215
10216 int
10217 main ()
10218 {
10219   char *data, *data2, *data3;
10220   int i, pagesize;
10221   int fd;
10222
10223   pagesize = getpagesize ();
10224
10225   /* First, make a file with some known garbage in it. */
10226   data = (char *) malloc (pagesize);
10227   if (!data)
10228     exit (1);
10229   for (i = 0; i < pagesize; ++i)
10230     *(data + i) = rand ();
10231   umask (0);
10232   fd = creat ("conftest.mmap", 0600);
10233   if (fd < 0)
10234     exit (1);
10235   if (write (fd, data, pagesize) != pagesize)
10236     exit (1);
10237   close (fd);
10238
10239   /* Next, try to mmap the file at a fixed address which already has
10240      something else allocated at it.  If we can, also make sure that
10241      we see the same garbage.  */
10242   fd = open ("conftest.mmap", O_RDWR);
10243   if (fd < 0)
10244     exit (1);
10245   data2 = (char *) malloc (2 * pagesize);
10246   if (!data2)
10247     exit (1);
10248   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
10249   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10250                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
10251     exit (1);
10252   for (i = 0; i < pagesize; ++i)
10253     if (*(data + i) != *(data2 + i))
10254       exit (1);
10255
10256   /* Finally, make sure that changes to the mapped area do not
10257      percolate back to the file as seen by read().  (This is a bug on
10258      some variants of i386 svr4.0.)  */
10259   for (i = 0; i < pagesize; ++i)
10260     *(data2 + i) = *(data2 + i) + 1;
10261   data3 = (char *) malloc (pagesize);
10262   if (!data3)
10263     exit (1);
10264   if (read (fd, data3, pagesize) != pagesize)
10265     exit (1);
10266   for (i = 0; i < pagesize; ++i)
10267     if (*(data + i) != *(data3 + i))
10268       exit (1);
10269   close (fd);
10270   exit (0);
10271 }
10272 _ACEOF
10273 rm -f conftest$ac_exeext
10274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10275   (eval $ac_link) 2>&5
10276   ac_status=$?
10277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10280   (eval $ac_try) 2>&5
10281   ac_status=$?
10282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283   (exit $ac_status); }; }; then
10284   ac_cv_func_mmap_fixed_mapped=yes
10285 else
10286   echo "$as_me: program exited with status $ac_status" >&5
10287 echo "$as_me: failed program was:" >&5
10288 sed 's/^/| /' conftest.$ac_ext >&5
10289
10290 ( exit $ac_status )
10291 ac_cv_func_mmap_fixed_mapped=no
10292 fi
10293 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10294 fi
10295 fi
10296 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10297 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
10298 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10299
10300 cat >>confdefs.h <<\_ACEOF
10301 #define HAVE_MMAP 1
10302 _ACEOF
10303
10304 fi
10305 rm -f conftest.mmap
10306
10307 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
10308 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
10309 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
10310   echo $ECHO_N "(cached) $ECHO_C" >&6
10311 else
10312   ac_cv_func_setvbuf_reversed=no
10313    cat >conftest.$ac_ext <<_ACEOF
10314 /* confdefs.h.  */
10315 _ACEOF
10316 cat confdefs.h >>conftest.$ac_ext
10317 cat >>conftest.$ac_ext <<_ACEOF
10318 /* end confdefs.h.  */
10319 #include <stdio.h>
10320 #         if PROTOTYPES
10321            int (setvbuf) (FILE *, int, char *, size_t);
10322 #         endif
10323 int
10324 main ()
10325 {
10326 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
10327   ;
10328   return 0;
10329 }
10330 _ACEOF
10331 rm -f conftest.$ac_objext conftest$ac_exeext
10332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10333   (eval $ac_link) 2>conftest.er1
10334   ac_status=$?
10335   grep -v '^ *+' conftest.er1 >conftest.err
10336   rm -f conftest.er1
10337   cat conftest.err >&5
10338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339   (exit $ac_status); } &&
10340          { ac_try='test -z "$ac_c_werror_flag"
10341                          || test ! -s conftest.err'
10342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343   (eval $ac_try) 2>&5
10344   ac_status=$?
10345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346   (exit $ac_status); }; } &&
10347          { ac_try='test -s conftest$ac_exeext'
10348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10349   (eval $ac_try) 2>&5
10350   ac_status=$?
10351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352   (exit $ac_status); }; }; then
10353   cat >conftest.$ac_ext <<_ACEOF
10354 /* confdefs.h.  */
10355 _ACEOF
10356 cat confdefs.h >>conftest.$ac_ext
10357 cat >>conftest.$ac_ext <<_ACEOF
10358 /* end confdefs.h.  */
10359 #include <stdio.h>
10360 #            if PROTOTYPES
10361               int (setvbuf) (FILE *, int, char *, size_t);
10362 #            endif
10363 int
10364 main ()
10365 {
10366 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
10367   ;
10368   return 0;
10369 }
10370 _ACEOF
10371 rm -f conftest.$ac_objext conftest$ac_exeext
10372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10373   (eval $ac_link) 2>conftest.er1
10374   ac_status=$?
10375   grep -v '^ *+' conftest.er1 >conftest.err
10376   rm -f conftest.er1
10377   cat conftest.err >&5
10378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379   (exit $ac_status); } &&
10380          { ac_try='test -z "$ac_c_werror_flag"
10381                          || test ! -s conftest.err'
10382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10383   (eval $ac_try) 2>&5
10384   ac_status=$?
10385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386   (exit $ac_status); }; } &&
10387          { ac_try='test -s conftest$ac_exeext'
10388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10389   (eval $ac_try) 2>&5
10390   ac_status=$?
10391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392   (exit $ac_status); }; }; then
10393   # It compiles and links either way, so it must not be declared
10394          # with a prototype and most likely this is a K&R C compiler.
10395          # Try running it.
10396          if test "$cross_compiling" = yes; then
10397   : # Assume setvbuf is not reversed when cross-compiling.
10398 else
10399   cat >conftest.$ac_ext <<_ACEOF
10400 /* confdefs.h.  */
10401 _ACEOF
10402 cat confdefs.h >>conftest.$ac_ext
10403 cat >>conftest.$ac_ext <<_ACEOF
10404 /* end confdefs.h.  */
10405 #include <stdio.h>
10406 int
10407 main ()
10408 {
10409 /* This call has the arguments reversed.
10410                    A reversed system may check and see that the address of buf
10411                    is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
10412                 char buf;
10413                 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
10414                   exit (1);
10415                 putchar ('\r');
10416                 exit (0); /* Non-reversed systems SEGV here.  */
10417   ;
10418   return 0;
10419 }
10420 _ACEOF
10421 rm -f conftest$ac_exeext
10422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10423   (eval $ac_link) 2>&5
10424   ac_status=$?
10425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10428   (eval $ac_try) 2>&5
10429   ac_status=$?
10430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431   (exit $ac_status); }; }; then
10432   ac_cv_func_setvbuf_reversed=yes
10433 else
10434   echo "$as_me: program exited with status $ac_status" >&5
10435 echo "$as_me: failed program was:" >&5
10436 sed 's/^/| /' conftest.$ac_ext >&5
10437
10438 ( exit $ac_status )
10439 rm -f core *.core
10440 fi
10441 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10442 fi
10443         ac_cv_func_setvbuf_reversed=yes
10444 else
10445   echo "$as_me: failed program was:" >&5
10446 sed 's/^/| /' conftest.$ac_ext >&5
10447
10448 fi
10449 rm -f conftest.err conftest.$ac_objext \
10450       conftest$ac_exeext conftest.$ac_ext
10451 else
10452   echo "$as_me: failed program was:" >&5
10453 sed 's/^/| /' conftest.$ac_ext >&5
10454
10455 fi
10456 rm -f conftest.err conftest.$ac_objext \
10457       conftest$ac_exeext conftest.$ac_ext
10458 fi
10459 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
10460 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
10461 if test $ac_cv_func_setvbuf_reversed = yes; then
10462
10463 cat >>confdefs.h <<\_ACEOF
10464 #define SETVBUF_REVERSED 1
10465 _ACEOF
10466
10467 fi
10468
10469 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10470 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10471 if test "${ac_cv_type_signal+set}" = set; then
10472   echo $ECHO_N "(cached) $ECHO_C" >&6
10473 else
10474   cat >conftest.$ac_ext <<_ACEOF
10475 /* confdefs.h.  */
10476 _ACEOF
10477 cat confdefs.h >>conftest.$ac_ext
10478 cat >>conftest.$ac_ext <<_ACEOF
10479 /* end confdefs.h.  */
10480 #include <sys/types.h>
10481 #include <signal.h>
10482 #ifdef signal
10483 # undef signal
10484 #endif
10485 #ifdef __cplusplus
10486 extern "C" void (*signal (int, void (*)(int)))(int);
10487 #else
10488 void (*signal ()) ();
10489 #endif
10490
10491 int
10492 main ()
10493 {
10494 int i;
10495   ;
10496   return 0;
10497 }
10498 _ACEOF
10499 rm -f conftest.$ac_objext
10500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10501   (eval $ac_compile) 2>conftest.er1
10502   ac_status=$?
10503   grep -v '^ *+' conftest.er1 >conftest.err
10504   rm -f conftest.er1
10505   cat conftest.err >&5
10506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507   (exit $ac_status); } &&
10508          { ac_try='test -z "$ac_c_werror_flag"
10509                          || test ! -s conftest.err'
10510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511   (eval $ac_try) 2>&5
10512   ac_status=$?
10513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514   (exit $ac_status); }; } &&
10515          { ac_try='test -s conftest.$ac_objext'
10516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517   (eval $ac_try) 2>&5
10518   ac_status=$?
10519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520   (exit $ac_status); }; }; then
10521   ac_cv_type_signal=void
10522 else
10523   echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10525
10526 ac_cv_type_signal=int
10527 fi
10528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10529 fi
10530 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10531 echo "${ECHO_T}$ac_cv_type_signal" >&6
10532
10533 cat >>confdefs.h <<_ACEOF
10534 #define RETSIGTYPE $ac_cv_type_signal
10535 _ACEOF
10536
10537
10538 if test "x$VCPP" != xyes && test "x$BORLANDC" != xyes && test "x$WATCOM_C" != "xyes"; then
10539
10540 for ac_func in vprintf
10541 do
10542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10543 echo "$as_me:$LINENO: checking for $ac_func" >&5
10544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10545 if eval "test \"\${$as_ac_var+set}\" = set"; then
10546   echo $ECHO_N "(cached) $ECHO_C" >&6
10547 else
10548   cat >conftest.$ac_ext <<_ACEOF
10549 /* confdefs.h.  */
10550 _ACEOF
10551 cat confdefs.h >>conftest.$ac_ext
10552 cat >>conftest.$ac_ext <<_ACEOF
10553 /* end confdefs.h.  */
10554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10555    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10556 #define $ac_func innocuous_$ac_func
10557
10558 /* System header to define __stub macros and hopefully few prototypes,
10559     which can conflict with char $ac_func (); below.
10560     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10561     <limits.h> exists even on freestanding compilers.  */
10562
10563 #ifdef __STDC__
10564 # include <limits.h>
10565 #else
10566 # include <assert.h>
10567 #endif
10568
10569 #undef $ac_func
10570
10571 /* Override any gcc2 internal prototype to avoid an error.  */
10572 #ifdef __cplusplus
10573 extern "C"
10574 {
10575 #endif
10576 /* We use char because int might match the return type of a gcc2
10577    builtin and then its argument prototype would still apply.  */
10578 char $ac_func ();
10579 /* The GNU C library defines this for functions which it implements
10580     to always fail with ENOSYS.  Some functions are actually named
10581     something starting with __ and the normal name is an alias.  */
10582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10583 choke me
10584 #else
10585 char (*f) () = $ac_func;
10586 #endif
10587 #ifdef __cplusplus
10588 }
10589 #endif
10590
10591 int
10592 main ()
10593 {
10594 return f != $ac_func;
10595   ;
10596   return 0;
10597 }
10598 _ACEOF
10599 rm -f conftest.$ac_objext conftest$ac_exeext
10600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10601   (eval $ac_link) 2>conftest.er1
10602   ac_status=$?
10603   grep -v '^ *+' conftest.er1 >conftest.err
10604   rm -f conftest.er1
10605   cat conftest.err >&5
10606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607   (exit $ac_status); } &&
10608          { ac_try='test -z "$ac_c_werror_flag"
10609                          || test ! -s conftest.err'
10610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611   (eval $ac_try) 2>&5
10612   ac_status=$?
10613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614   (exit $ac_status); }; } &&
10615          { ac_try='test -s conftest$ac_exeext'
10616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10617   (eval $ac_try) 2>&5
10618   ac_status=$?
10619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620   (exit $ac_status); }; }; then
10621   eval "$as_ac_var=yes"
10622 else
10623   echo "$as_me: failed program was:" >&5
10624 sed 's/^/| /' conftest.$ac_ext >&5
10625
10626 eval "$as_ac_var=no"
10627 fi
10628 rm -f conftest.err conftest.$ac_objext \
10629       conftest$ac_exeext conftest.$ac_ext
10630 fi
10631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10632 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10633 if test `eval echo '${'$as_ac_var'}'` = yes; then
10634   cat >>confdefs.h <<_ACEOF
10635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10636 _ACEOF
10637
10638 echo "$as_me:$LINENO: checking for _doprnt" >&5
10639 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10640 if test "${ac_cv_func__doprnt+set}" = set; then
10641   echo $ECHO_N "(cached) $ECHO_C" >&6
10642 else
10643   cat >conftest.$ac_ext <<_ACEOF
10644 /* confdefs.h.  */
10645 _ACEOF
10646 cat confdefs.h >>conftest.$ac_ext
10647 cat >>conftest.$ac_ext <<_ACEOF
10648 /* end confdefs.h.  */
10649 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10650    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10651 #define _doprnt innocuous__doprnt
10652
10653 /* System header to define __stub macros and hopefully few prototypes,
10654     which can conflict with char _doprnt (); below.
10655     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10656     <limits.h> exists even on freestanding compilers.  */
10657
10658 #ifdef __STDC__
10659 # include <limits.h>
10660 #else
10661 # include <assert.h>
10662 #endif
10663
10664 #undef _doprnt
10665
10666 /* Override any gcc2 internal prototype to avoid an error.  */
10667 #ifdef __cplusplus
10668 extern "C"
10669 {
10670 #endif
10671 /* We use char because int might match the return type of a gcc2
10672    builtin and then its argument prototype would still apply.  */
10673 char _doprnt ();
10674 /* The GNU C library defines this for functions which it implements
10675     to always fail with ENOSYS.  Some functions are actually named
10676     something starting with __ and the normal name is an alias.  */
10677 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10678 choke me
10679 #else
10680 char (*f) () = _doprnt;
10681 #endif
10682 #ifdef __cplusplus
10683 }
10684 #endif
10685
10686 int
10687 main ()
10688 {
10689 return f != _doprnt;
10690   ;
10691   return 0;
10692 }
10693 _ACEOF
10694 rm -f conftest.$ac_objext conftest$ac_exeext
10695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10696   (eval $ac_link) 2>conftest.er1
10697   ac_status=$?
10698   grep -v '^ *+' conftest.er1 >conftest.err
10699   rm -f conftest.er1
10700   cat conftest.err >&5
10701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702   (exit $ac_status); } &&
10703          { ac_try='test -z "$ac_c_werror_flag"
10704                          || test ! -s conftest.err'
10705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10706   (eval $ac_try) 2>&5
10707   ac_status=$?
10708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709   (exit $ac_status); }; } &&
10710          { ac_try='test -s conftest$ac_exeext'
10711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10712   (eval $ac_try) 2>&5
10713   ac_status=$?
10714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715   (exit $ac_status); }; }; then
10716   ac_cv_func__doprnt=yes
10717 else
10718   echo "$as_me: failed program was:" >&5
10719 sed 's/^/| /' conftest.$ac_ext >&5
10720
10721 ac_cv_func__doprnt=no
10722 fi
10723 rm -f conftest.err conftest.$ac_objext \
10724       conftest$ac_exeext conftest.$ac_ext
10725 fi
10726 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10727 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10728 if test $ac_cv_func__doprnt = yes; then
10729
10730 cat >>confdefs.h <<\_ACEOF
10731 #define HAVE_DOPRNT 1
10732 _ACEOF
10733
10734 fi
10735
10736 fi
10737 done
10738
10739
10740 fi
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776 for ac_func in \
10777   alarm \
10778   dup2 \
10779   floor \
10780   getcwd \
10781   getopt \
10782   gethostbyname \
10783   gettimeofday \
10784   getwd \
10785   isatty \
10786   memchr \
10787   memmove \
10788   memset \
10789   modf \
10790   munmap \
10791   popen \
10792   pow \
10793   select \
10794   signal \
10795   socket \
10796   sleep \
10797   vsnprintf \
10798   snprintf \
10799   sqrt \
10800   strchr \
10801   strdup \
10802   strstr \
10803   strerror \
10804   strcasecmp \
10805   strncasecmp \
10806   strrchr \
10807   strstr \
10808   strtol \
10809   strlcat \
10810   strlcpy \
10811   usleep
10812 do
10813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10814 echo "$as_me:$LINENO: checking for $ac_func" >&5
10815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10816 if eval "test \"\${$as_ac_var+set}\" = set"; then
10817   echo $ECHO_N "(cached) $ECHO_C" >&6
10818 else
10819   cat >conftest.$ac_ext <<_ACEOF
10820 /* confdefs.h.  */
10821 _ACEOF
10822 cat confdefs.h >>conftest.$ac_ext
10823 cat >>conftest.$ac_ext <<_ACEOF
10824 /* end confdefs.h.  */
10825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10826    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10827 #define $ac_func innocuous_$ac_func
10828
10829 /* System header to define __stub macros and hopefully few prototypes,
10830     which can conflict with char $ac_func (); below.
10831     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10832     <limits.h> exists even on freestanding compilers.  */
10833
10834 #ifdef __STDC__
10835 # include <limits.h>
10836 #else
10837 # include <assert.h>
10838 #endif
10839
10840 #undef $ac_func
10841
10842 /* Override any gcc2 internal prototype to avoid an error.  */
10843 #ifdef __cplusplus
10844 extern "C"
10845 {
10846 #endif
10847 /* We use char because int might match the return type of a gcc2
10848    builtin and then its argument prototype would still apply.  */
10849 char $ac_func ();
10850 /* The GNU C library defines this for functions which it implements
10851     to always fail with ENOSYS.  Some functions are actually named
10852     something starting with __ and the normal name is an alias.  */
10853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10854 choke me
10855 #else
10856 char (*f) () = $ac_func;
10857 #endif
10858 #ifdef __cplusplus
10859 }
10860 #endif
10861
10862 int
10863 main ()
10864 {
10865 return f != $ac_func;
10866   ;
10867   return 0;
10868 }
10869 _ACEOF
10870 rm -f conftest.$ac_objext conftest$ac_exeext
10871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10872   (eval $ac_link) 2>conftest.er1
10873   ac_status=$?
10874   grep -v '^ *+' conftest.er1 >conftest.err
10875   rm -f conftest.er1
10876   cat conftest.err >&5
10877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878   (exit $ac_status); } &&
10879          { ac_try='test -z "$ac_c_werror_flag"
10880                          || test ! -s conftest.err'
10881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10882   (eval $ac_try) 2>&5
10883   ac_status=$?
10884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885   (exit $ac_status); }; } &&
10886          { ac_try='test -s conftest$ac_exeext'
10887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10888   (eval $ac_try) 2>&5
10889   ac_status=$?
10890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891   (exit $ac_status); }; }; then
10892   eval "$as_ac_var=yes"
10893 else
10894   echo "$as_me: failed program was:" >&5
10895 sed 's/^/| /' conftest.$ac_ext >&5
10896
10897 eval "$as_ac_var=no"
10898 fi
10899 rm -f conftest.err conftest.$ac_objext \
10900       conftest$ac_exeext conftest.$ac_ext
10901 fi
10902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10903 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10904 if test `eval echo '${'$as_ac_var'}'` = yes; then
10905   cat >>confdefs.h <<_ACEOF
10906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10907 _ACEOF
10908
10909 fi
10910 done
10911
10912 if test "x$VCPP" = xyes; then
10913   cat >>confdefs.h <<\_ACEOF
10914 #define RETSIGTYPE int
10915 _ACEOF
10916
10917   cat >>confdefs.h <<\_ACEOF
10918 #define HAVE_GETCWD int
10919 _ACEOF
10920
10921 fi
10922 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes; then
10923   cat >>confdefs.h <<\_ACEOF
10924 #define HAVE_GETHOSTBYNAME 1
10925 _ACEOF
10926
10927   cat >>confdefs.h <<\_ACEOF
10928 #define HAVE_POPEN 1
10929 _ACEOF
10930
10931
10932 cat >>confdefs.h <<\_ACEOF
10933 #define popen _popen
10934 _ACEOF
10935
10936
10937 cat >>confdefs.h <<\_ACEOF
10938 #define pclose _pclose
10939 _ACEOF
10940
10941   cat >>confdefs.h <<\_ACEOF
10942 #define HAVE_SELECT 1
10943 _ACEOF
10944
10945   cat >>confdefs.h <<\_ACEOF
10946 #define HAVE_SNPRINTF 1
10947 _ACEOF
10948
10949   cat >>confdefs.h <<\_ACEOF
10950 #define HAVE_STRDUP 1
10951 _ACEOF
10952
10953   cat >>confdefs.h <<\_ACEOF
10954 #define HAVE_STRERROR 1
10955 _ACEOF
10956
10957   cat >>confdefs.h <<\_ACEOF
10958 #define HAVE_STRNCASECMP 1
10959 _ACEOF
10960
10961   cat >>confdefs.h <<\_ACEOF
10962 #define HAVE_STRSTR 1
10963 _ACEOF
10964
10965
10966 cat >>confdefs.h <<\_ACEOF
10967 #define snprintf _snprintf
10968 _ACEOF
10969
10970   cat >>confdefs.h <<\_ACEOF
10971 #define HAVE_SOCKET 1
10972 _ACEOF
10973
10974   cat >>confdefs.h <<\_ACEOF
10975 #define HAVE_VSNPRINTF 1
10976 _ACEOF
10977
10978
10979 cat >>confdefs.h <<\_ACEOF
10980 #define vsnprintf _vsnprintf
10981 _ACEOF
10982
10983
10984 cat >>confdefs.h <<\_ACEOF
10985 #define TIMID_VERSION $(PACKAGE_VERSION)
10986 _ACEOF
10987
10988 fi
10989
10990 echo "$as_me:$LINENO: checking for getopt_long" >&5
10991 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
10992 if test "${ac_cv_func_getopt_long+set}" = set; then
10993   echo $ECHO_N "(cached) $ECHO_C" >&6
10994 else
10995   cat >conftest.$ac_ext <<_ACEOF
10996 /* confdefs.h.  */
10997 _ACEOF
10998 cat confdefs.h >>conftest.$ac_ext
10999 cat >>conftest.$ac_ext <<_ACEOF
11000 /* end confdefs.h.  */
11001 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
11002    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11003 #define getopt_long innocuous_getopt_long
11004
11005 /* System header to define __stub macros and hopefully few prototypes,
11006     which can conflict with char getopt_long (); below.
11007     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11008     <limits.h> exists even on freestanding compilers.  */
11009
11010 #ifdef __STDC__
11011 # include <limits.h>
11012 #else
11013 # include <assert.h>
11014 #endif
11015
11016 #undef getopt_long
11017
11018 /* Override any gcc2 internal prototype to avoid an error.  */
11019 #ifdef __cplusplus
11020 extern "C"
11021 {
11022 #endif
11023 /* We use char because int might match the return type of a gcc2
11024    builtin and then its argument prototype would still apply.  */
11025 char getopt_long ();
11026 /* The GNU C library defines this for functions which it implements
11027     to always fail with ENOSYS.  Some functions are actually named
11028     something starting with __ and the normal name is an alias.  */
11029 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
11030 choke me
11031 #else
11032 char (*f) () = getopt_long;
11033 #endif
11034 #ifdef __cplusplus
11035 }
11036 #endif
11037
11038 int
11039 main ()
11040 {
11041 return f != getopt_long;
11042   ;
11043   return 0;
11044 }
11045 _ACEOF
11046 rm -f conftest.$ac_objext conftest$ac_exeext
11047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11048   (eval $ac_link) 2>conftest.er1
11049   ac_status=$?
11050   grep -v '^ *+' conftest.er1 >conftest.err
11051   rm -f conftest.er1
11052   cat conftest.err >&5
11053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054   (exit $ac_status); } &&
11055          { ac_try='test -z "$ac_c_werror_flag"
11056                          || test ! -s conftest.err'
11057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11058   (eval $ac_try) 2>&5
11059   ac_status=$?
11060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061   (exit $ac_status); }; } &&
11062          { ac_try='test -s conftest$ac_exeext'
11063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11064   (eval $ac_try) 2>&5
11065   ac_status=$?
11066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067   (exit $ac_status); }; }; then
11068   ac_cv_func_getopt_long=yes
11069 else
11070   echo "$as_me: failed program was:" >&5
11071 sed 's/^/| /' conftest.$ac_ext >&5
11072
11073 ac_cv_func_getopt_long=no
11074 fi
11075 rm -f conftest.err conftest.$ac_objext \
11076       conftest$ac_exeext conftest.$ac_ext
11077 fi
11078 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
11079 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
11080 if test $ac_cv_func_getopt_long = yes; then
11081
11082 cat >>confdefs.h <<\_ACEOF
11083 #define HAVE_GETOPT_LONG 1
11084 _ACEOF
11085
11086          tm_cv_needgetopt="no"
11087 else
11088   tm_cv_needgetopt="yes"
11089 fi
11090
11091
11092
11093 if test "x$tm_cv_needgetopt" = "xyes"; then
11094   NEEDGETOPT_TRUE=
11095   NEEDGETOPT_FALSE='#'
11096 else
11097   NEEDGETOPT_TRUE='#'
11098   NEEDGETOPT_FALSE=
11099 fi
11100
11101
11102 # Checks on cygnus and MYSYS
11103 if test "x$CYGNUS" = xyes || test "x$MSYS" = xyes; then
11104   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
11105   *yes*)
11106     echo "$as_me:$LINENO: checking for opendir" >&5
11107 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
11108 if test "${ac_cv_func_opendir+set}" = set; then
11109   echo $ECHO_N "(cached) $ECHO_C" >&6
11110 else
11111   cat >conftest.$ac_ext <<_ACEOF
11112 /* confdefs.h.  */
11113 _ACEOF
11114 cat confdefs.h >>conftest.$ac_ext
11115 cat >>conftest.$ac_ext <<_ACEOF
11116 /* end confdefs.h.  */
11117 /* Define opendir to an innocuous variant, in case <limits.h> declares opendir.
11118    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11119 #define opendir innocuous_opendir
11120
11121 /* System header to define __stub macros and hopefully few prototypes,
11122     which can conflict with char opendir (); below.
11123     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11124     <limits.h> exists even on freestanding compilers.  */
11125
11126 #ifdef __STDC__
11127 # include <limits.h>
11128 #else
11129 # include <assert.h>
11130 #endif
11131
11132 #undef opendir
11133
11134 /* Override any gcc2 internal prototype to avoid an error.  */
11135 #ifdef __cplusplus
11136 extern "C"
11137 {
11138 #endif
11139 /* We use char because int might match the return type of a gcc2
11140    builtin and then its argument prototype would still apply.  */
11141 char opendir ();
11142 /* The GNU C library defines this for functions which it implements
11143     to always fail with ENOSYS.  Some functions are actually named
11144     something starting with __ and the normal name is an alias.  */
11145 #if defined (__stub_opendir) || defined (__stub___opendir)
11146 choke me
11147 #else
11148 char (*f) () = opendir;
11149 #endif
11150 #ifdef __cplusplus
11151 }
11152 #endif
11153
11154 int
11155 main ()
11156 {
11157 return f != opendir;
11158   ;
11159   return 0;
11160 }
11161 _ACEOF
11162 rm -f conftest.$ac_objext conftest$ac_exeext
11163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11164   (eval $ac_link) 2>conftest.er1
11165   ac_status=$?
11166   grep -v '^ *+' conftest.er1 >conftest.err
11167   rm -f conftest.er1
11168   cat conftest.err >&5
11169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170   (exit $ac_status); } &&
11171          { ac_try='test -z "$ac_c_werror_flag"
11172                          || test ! -s conftest.err'
11173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11174   (eval $ac_try) 2>&5
11175   ac_status=$?
11176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177   (exit $ac_status); }; } &&
11178          { ac_try='test -s conftest$ac_exeext'
11179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11180   (eval $ac_try) 2>&5
11181   ac_status=$?
11182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183   (exit $ac_status); }; }; then
11184   ac_cv_func_opendir=yes
11185 else
11186   echo "$as_me: failed program was:" >&5
11187 sed 's/^/| /' conftest.$ac_ext >&5
11188
11189 ac_cv_func_opendir=no
11190 fi
11191 rm -f conftest.err conftest.$ac_objext \
11192       conftest$ac_exeext conftest.$ac_ext
11193 fi
11194 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
11195 echo "${ECHO_T}$ac_cv_func_opendir" >&6
11196 if test $ac_cv_func_opendir = yes; then
11197   :
11198 else
11199    EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11200     W32READDIR=yes
11201 fi
11202
11203     ;;
11204   *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11205     W32READDIR=yes
11206     ;;
11207   esac
11208   if test "x$enable_network" = "xyes"; then
11209         if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes; then
11210       EXTRALIBS="$EXTRALIBS  wsock32.lib"
11211       EXTRADEFS="$EXTRADEFS -DWINSOCK"
11212     else
11213       echo "$as_me:$LINENO: checking for socket" >&5
11214 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11215 if test "${ac_cv_func_socket+set}" = set; then
11216   echo $ECHO_N "(cached) $ECHO_C" >&6
11217 else
11218   cat >conftest.$ac_ext <<_ACEOF
11219 /* confdefs.h.  */
11220 _ACEOF
11221 cat confdefs.h >>conftest.$ac_ext
11222 cat >>conftest.$ac_ext <<_ACEOF
11223 /* end confdefs.h.  */
11224 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
11225    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11226 #define socket innocuous_socket
11227
11228 /* System header to define __stub macros and hopefully few prototypes,
11229     which can conflict with char socket (); below.
11230     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11231     <limits.h> exists even on freestanding compilers.  */
11232
11233 #ifdef __STDC__
11234 # include <limits.h>
11235 #else
11236 # include <assert.h>
11237 #endif
11238
11239 #undef socket
11240
11241 /* Override any gcc2 internal prototype to avoid an error.  */
11242 #ifdef __cplusplus
11243 extern "C"
11244 {
11245 #endif
11246 /* We use char because int might match the return type of a gcc2
11247    builtin and then its argument prototype would still apply.  */
11248 char socket ();
11249 /* The GNU C library defines this for functions which it implements
11250     to always fail with ENOSYS.  Some functions are actually named
11251     something starting with __ and the normal name is an alias.  */
11252 #if defined (__stub_socket) || defined (__stub___socket)
11253 choke me
11254 #else
11255 char (*f) () = socket;
11256 #endif
11257 #ifdef __cplusplus
11258 }
11259 #endif
11260
11261 int
11262 main ()
11263 {
11264 return f != socket;
11265   ;
11266   return 0;
11267 }
11268 _ACEOF
11269 rm -f conftest.$ac_objext conftest$ac_exeext
11270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11271   (eval $ac_link) 2>conftest.er1
11272   ac_status=$?
11273   grep -v '^ *+' conftest.er1 >conftest.err
11274   rm -f conftest.er1
11275   cat conftest.err >&5
11276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277   (exit $ac_status); } &&
11278          { ac_try='test -z "$ac_c_werror_flag"
11279                          || test ! -s conftest.err'
11280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11281   (eval $ac_try) 2>&5
11282   ac_status=$?
11283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284   (exit $ac_status); }; } &&
11285          { ac_try='test -s conftest$ac_exeext'
11286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11287   (eval $ac_try) 2>&5
11288   ac_status=$?
11289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290   (exit $ac_status); }; }; then
11291   ac_cv_func_socket=yes
11292 else
11293   echo "$as_me: failed program was:" >&5
11294 sed 's/^/| /' conftest.$ac_ext >&5
11295
11296 ac_cv_func_socket=no
11297 fi
11298 rm -f conftest.err conftest.$ac_objext \
11299       conftest$ac_exeext conftest.$ac_ext
11300 fi
11301 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
11302 echo "${ECHO_T}$ac_cv_func_socket" >&6
11303 if test $ac_cv_func_socket = yes; then
11304   :
11305 else
11306   echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
11307 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
11308 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
11309 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
11310   echo $ECHO_N "(cached) $ECHO_C" >&6
11311 else
11312   ac_save_LIBS="$LIBS"
11313 LIBS="-lwsock32  $LIBS"
11314 cat >conftest.$ac_ext <<_ACEOF
11315 /* confdefs.h.  */
11316 _ACEOF
11317 cat confdefs.h >>conftest.$ac_ext
11318 cat >>conftest.$ac_ext <<_ACEOF
11319 /* end confdefs.h.  */
11320 #include <windows.h>
11321 #include <winsock.h>
11322
11323 int
11324 main ()
11325 {
11326 WSAStartup(0,0);
11327   ;
11328   return 0;
11329 }
11330 _ACEOF
11331 rm -f conftest.$ac_objext conftest$ac_exeext
11332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11333   (eval $ac_link) 2>conftest.er1
11334   ac_status=$?
11335   grep -v '^ *+' conftest.er1 >conftest.err
11336   rm -f conftest.er1
11337   cat conftest.err >&5
11338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339   (exit $ac_status); } &&
11340          { ac_try='test -z "$ac_c_werror_flag"
11341                          || test ! -s conftest.err'
11342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11343   (eval $ac_try) 2>&5
11344   ac_status=$?
11345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346   (exit $ac_status); }; } &&
11347          { ac_try='test -s conftest$ac_exeext'
11348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11349   (eval $ac_try) 2>&5
11350   ac_status=$?
11351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352   (exit $ac_status); }; }; then
11353   eval "wapi_cv_lib_$ac_lib_var=yes"
11354 else
11355   echo "$as_me: failed program was:" >&5
11356 sed 's/^/| /' conftest.$ac_ext >&5
11357
11358 eval "wapi_cv_lib_$ac_lib_var=no"
11359 fi
11360 rm -f conftest.err conftest.$ac_objext \
11361       conftest$ac_exeext conftest.$ac_ext
11362 LIBS="$ac_save_LIBS"
11363
11364 fi
11365 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
11366   echo "$as_me:$LINENO: result: yes" >&5
11367 echo "${ECHO_T}yes" >&6
11368    EXTRALIBS="$EXTRALIBS -lwsock32"
11369           EXTRADEFS="$EXTRADEFS -DWINSOCK"
11370
11371 else
11372   echo "$as_me:$LINENO: result: no" >&5
11373 echo "${ECHO_T}no" >&6
11374 fi
11375
11376
11377 fi
11378
11379     fi
11380   fi
11381 fi
11382
11383 # Checks on extra paths
11384
11385
11386 # Check whether --with-tcl-includes or --without-tcl-includes was given.
11387 if test "${with_tcl_includes+set}" = set; then
11388   withval="$with_tcl_includes"
11389    if test ! -d $withval; then
11390       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11391 echo "$as_me: WARNING: $withval is not found." >&2;}
11392     fi
11393     tcl_include_dir="-I$withval"
11394
11395 fi;
11396
11397 # Check whether --with-tcl-libs or --without-tcl-libs was given.
11398 if test "${with_tcl_libs+set}" = set; then
11399   withval="$with_tcl_libs"
11400    if test ! -d $withval; then
11401       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11402 echo "$as_me: WARNING: $withval is not found." >&2;}
11403     fi
11404     tcl_libdir="-L$withval"
11405 fi;
11406
11407 # Check whether --with-tk-includes or --without-tk-includes was given.
11408 if test "${with_tk_includes+set}" = set; then
11409   withval="$with_tk_includes"
11410    if test ! -d $withval; then
11411       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11412 echo "$as_me: WARNING: $withval is not found." >&2;}
11413     fi
11414     tk_includes="-I$withval"
11415 fi;
11416
11417 # Check whether --with-tk-libs or --without-tk-libs was given.
11418 if test "${with_tk_libs+set}" = set; then
11419   withval="$with_tk_libs"
11420    if test ! -d $withval; then
11421       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11422 echo "$as_me: WARNING: $withval is not found." >&2;}
11423     fi
11424     tk_libdir="-L$withval"
11425 fi;
11426
11427
11428 # Check whether --with-offix-includes or --without-offix-includes was given.
11429 if test "${with_offix_includes+set}" = set; then
11430   withval="$with_offix_includes"
11431    if test ! -d $withval; then
11432       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11433 echo "$as_me: WARNING: $withval is not found." >&2;}
11434     fi
11435     offix_include_dir="-I$withval"
11436 fi;
11437
11438 # Check whether --with-offix-libs or --without-offix-libs was given.
11439 if test "${with_offix_libs+set}" = set; then
11440   withval="$with_offix_libs"
11441    if test ! -d $withval; then
11442       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11443 echo "$as_me: WARNING: $withval is not found." >&2;}
11444     fi
11445     offix_lib_dir="-L$withval"
11446 fi;
11447
11448
11449 #
11450 # audio section
11451 #
11452
11453 audio_targets='default oss alsa sun hpux irix mme sb_dsp w32 alib nas arts esd vorbis flac gogo portaudio jack ao'
11454
11455
11456 # Check whether --with-nas-library or --without-nas-library was given.
11457 if test "${with_nas_library+set}" = set; then
11458   withval="$with_nas_library"
11459
11460 fi;
11461
11462 # Check whether --with-nas-includes or --without-nas-includes was given.
11463 if test "${with_nas_includes+set}" = set; then
11464   withval="$with_nas_includes"
11465
11466 fi;
11467
11468
11469 # Check whether --enable-audio or --disable-audio was given.
11470 if test "${enable_audio+set}" = set; then
11471   enableval="$enable_audio"
11472    enable_audio=$enableval
11473     have_audio_opt=yes
11474 else
11475    enable_audio=yes
11476     have_audio_opt=no
11477 fi;
11478
11479 test "x$enable_audio" = xyes && enable_audio=default
11480
11481 if test "x$enable_audio" != xno; then
11482   for i in `echo $enable_audio | sed 's/,/ /g'`; do
11483     eval "au_enable_$i=yes"
11484   done
11485 fi
11486
11487 DEFAULT_PLAYMODE=
11488
11489 # Check whether --with-default-output or --without-default-output was given.
11490 if test "${with_default_output+set}" = set; then
11491   withval="$with_default_output"
11492    if test "$enable_audio" != no; then
11493     DEFAULT_PLAYMODE=$withval
11494     eval "au_enable_$DEFAULT_PLAYMODE=yes"
11495   else
11496     { echo "$as_me:$LINENO: WARNING: --with-default-output=$withval: audio is not enabled" >&5
11497 echo "$as_me: WARNING: --with-default-output=$withval: audio is not enabled" >&2;}
11498   fi
11499 fi;
11500
11501
11502 if test "x$au_enable_default" = xyes; then
11503   case "$target" in
11504   *-*-linux*|*-*-freebsd*)
11505     au_enable_oss=yes
11506     ;;
11507   *-*-bsdi2.0)
11508     au_enable_sb_dsp=yes
11509     ;;
11510   *-*-bsdi2.1|*-*-bsdi3.?|*-*-bsdi4.?)
11511     au_enable_oss=yes
11512     ;;
11513   *-*-hpux*)
11514     au_enable_hpux=yes
11515     ;;
11516   *-dec-*)
11517     au_enable_mme=yes
11518     ;;
11519   *irix*)
11520     au_enable_irix=yes
11521     ;;
11522   *-*-sunos4*)
11523     au_enable_sun=yes
11524     ;;
11525   *-*-solaris*)
11526     au_enable_sun=yes
11527     ;;
11528   *-*-netbsd*)
11529     au_enable_sun=yes
11530     ;;
11531   *-*-cygwin*)
11532     au_enable_w32=yes
11533     ;;
11534   *-*-mingw*)
11535     au_enable_w32=yes
11536     ;;
11537   *-*-darwin*)
11538     au_enable_darwin=yes
11539     ;;
11540   *)
11541     { echo "$as_me:$LINENO: WARNING: No --enable-audio=default audio for $target" >&5
11542 echo "$as_me: WARNING: No --enable-audio=default audio for $target" >&2;}
11543     ;;
11544   esac
11545 fi
11546
11547
11548 # Each audio mode's configurations
11549 echo "$as_me:$LINENO: checking enable_audio=oss" >&5
11550 echo $ECHO_N "checking enable_audio=oss... $ECHO_C" >&6
11551 if test "x$au_enable_oss" = xyes; then
11552   EXTRADEFS="$EXTRADEFS -DAU_OSS"
11553   SYSEXTRAS="$SYSEXTRAS oss_a.c"
11554   if test "x$ac_cv_header_sys_soundcard_h" = xyes; then
11555     echo "$as_me:$LINENO: result: yes - <sys/soundcard.h>" >&5
11556 echo "${ECHO_T}yes - <sys/soundcard.h>" >&6
11557   else
11558     case "$target" in
11559       *linux*|*freebsd*)
11560                 echo "$as_me:$LINENO: result: yes" >&5
11561 echo "${ECHO_T}yes" >&6
11562         ;;
11563       *)
11564         if test "x$ac_cv_header_soundcard_h" = xyes; then
11565           echo "$as_me:$LINENO: result: yes - <soundcard.h>" >&5
11566 echo "${ECHO_T}yes - <soundcard.h>" >&6
11567         else
11568           { echo "$as_me:$LINENO: WARNING: <sys/soundcard.h> is not found" >&5
11569 echo "$as_me: WARNING: <sys/soundcard.h> is not found" >&2;}
11570         fi
11571         ;;
11572     esac
11573   fi
11574
11575 echo "$as_me:$LINENO: checking for open in -lossaudio" >&5
11576 echo $ECHO_N "checking for open in -lossaudio... $ECHO_C" >&6
11577 if test "${ac_cv_lib_ossaudio_open+set}" = set; then
11578   echo $ECHO_N "(cached) $ECHO_C" >&6
11579 else
11580   ac_check_lib_save_LIBS=$LIBS
11581 LIBS="-lossaudio  $LIBS"
11582 cat >conftest.$ac_ext <<_ACEOF
11583 /* confdefs.h.  */
11584 _ACEOF
11585 cat confdefs.h >>conftest.$ac_ext
11586 cat >>conftest.$ac_ext <<_ACEOF
11587 /* end confdefs.h.  */
11588
11589 /* Override any gcc2 internal prototype to avoid an error.  */
11590 #ifdef __cplusplus
11591 extern "C"
11592 #endif
11593 /* We use char because int might match the return type of a gcc2
11594    builtin and then its argument prototype would still apply.  */
11595 char open ();
11596 int
11597 main ()
11598 {
11599 open ();
11600   ;
11601   return 0;
11602 }
11603 _ACEOF
11604 rm -f conftest.$ac_objext conftest$ac_exeext
11605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11606   (eval $ac_link) 2>conftest.er1
11607   ac_status=$?
11608   grep -v '^ *+' conftest.er1 >conftest.err
11609   rm -f conftest.er1
11610   cat conftest.err >&5
11611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612   (exit $ac_status); } &&
11613          { ac_try='test -z "$ac_c_werror_flag"
11614                          || test ! -s conftest.err'
11615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11616   (eval $ac_try) 2>&5
11617   ac_status=$?
11618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619   (exit $ac_status); }; } &&
11620          { ac_try='test -s conftest$ac_exeext'
11621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11622   (eval $ac_try) 2>&5
11623   ac_status=$?
11624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625   (exit $ac_status); }; }; then
11626   ac_cv_lib_ossaudio_open=yes
11627 else
11628   echo "$as_me: failed program was:" >&5
11629 sed 's/^/| /' conftest.$ac_ext >&5
11630
11631 ac_cv_lib_ossaudio_open=no
11632 fi
11633 rm -f conftest.err conftest.$ac_objext \
11634       conftest$ac_exeext conftest.$ac_ext
11635 LIBS=$ac_check_lib_save_LIBS
11636 fi
11637 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_open" >&5
11638 echo "${ECHO_T}$ac_cv_lib_ossaudio_open" >&6
11639 if test $ac_cv_lib_ossaudio_open = yes; then
11640   cat >>confdefs.h <<_ACEOF
11641 #define HAVE_LIBOSSAUDIO 1
11642 _ACEOF
11643
11644   LIBS="-lossaudio $LIBS"
11645
11646 fi
11647
11648
11649     case "$target" in
11650     *openbsd*)
11651       if test ! -e "/dev/dsp"; then
11652         oss_device=/dev/audio
11653       fi
11654       ;;
11655   esac
11656 else
11657   echo "$as_me:$LINENO: result: no" >&5
11658 echo "${ECHO_T}no" >&6
11659 fi
11660
11661 echo "$as_me:$LINENO: checking enable_audio=sun" >&5
11662 echo $ECHO_N "checking enable_audio=sun... $ECHO_C" >&6
11663 if test "x$au_enable_sun" = xyes; then
11664   case "$target" in
11665     *-*-sunos4*)
11666       if test -f /usr/demo/SOUND/libaudio.a; then
11667         EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/libaudio.a"
11668         echo "$as_me:$LINENO: result: yes" >&5
11669 echo "${ECHO_T}yes" >&6
11670       else
11671         echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11672 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11673       fi
11674       ;;
11675     *-*-solaris*)
11676       if test -f /usr/demo/SOUND/lib/libaudio.a; then
11677         EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/lib/libaudio.a"
11678         echo "$as_me:$LINENO: result: yes" >&5
11679 echo "${ECHO_T}yes" >&6
11680       else
11681         echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11682 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11683       fi
11684       ;;
11685     *)   echo "$as_me:$LINENO: result: yes" >&5
11686 echo "${ECHO_T}yes" >&6
11687       ;;
11688   esac
11689   EXTRADEFS="$EXTRADEFS -DAU_SUN"
11690   SYSEXTRAS="$SYSEXTRAS sun_a.c"
11691 else
11692   echo "$as_me:$LINENO: result: no" >&5
11693 echo "${ECHO_T}no" >&6
11694 fi
11695
11696 echo "$as_me:$LINENO: checking enable_audio=hpux" >&5
11697 echo $ECHO_N "checking enable_audio=hpux... $ECHO_C" >&6
11698 if test "x$au_enable_hpux" = xyes; then
11699   case "$target" in
11700     *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
11701 echo "${ECHO_T}yes" >&6 ;;
11702     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11703 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11704   esac
11705   EXTRADEFS="$EXTRADEFS -DAU_HPUX_AUDIO"
11706   SYSEXTRAS="$SYSEXTRAS hpux_d_a.c"
11707 else
11708   echo "$as_me:$LINENO: result: no" >&5
11709 echo "${ECHO_T}no" >&6
11710 fi
11711
11712 echo "$as_me:$LINENO: checking enable_audio=irix" >&5
11713 echo $ECHO_N "checking enable_audio=irix... $ECHO_C" >&6
11714 if test "x$au_enable_irix" = xyes; then
11715   case "$target" in
11716     *-sgi-irix5*|*-sgi-irix6.2)
11717       EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_OLDAL"
11718       echo "$as_me:$LINENO: result: yes" >&5
11719 echo "${ECHO_T}yes" >&6
11720       ;;
11721     *-sgi-irix6*)
11722       EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_NEWAL"
11723       echo "$as_me:$LINENO: result: yes" >&5
11724 echo "${ECHO_T}yes" >&6
11725       ;;
11726     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11727 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11728   esac
11729   SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_al.c"
11730   EXTRALIBS="$EXTRASLIBS -laudio"
11731 else
11732   echo "$as_me:$LINENO: result: no" >&5
11733 echo "${ECHO_T}no" >&6
11734 fi
11735
11736 echo "$as_me:$LINENO: checking enable_audio=mme" >&5
11737 echo $ECHO_N "checking enable_audio=mme... $ECHO_C" >&6
11738 if test "x$au_enable_mme" = xyes; then
11739   case "$target" in
11740     *-dec-*) echo "$as_me:$LINENO: result: yes" >&5
11741 echo "${ECHO_T}yes" >&6 ;;
11742     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11743 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11744   esac
11745   EXTRADEFS="$EXTRADEFS -DAU_DEC -DAU_AUDRIV"
11746   SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_mme.c"
11747   CPPFLAGS="$CPPFLAGS -I/usr/opt/MME210/include"
11748   EXTRALIBS="$EXTRALIBS /usr/opt/MME220/lib/libmme.a"
11749 else
11750   echo "$as_me:$LINENO: result: no" >&5
11751 echo "${ECHO_T}no" >&6
11752 fi
11753
11754 echo "$as_me:$LINENO: checking enable_audio=sb_dsp" >&5
11755 echo $ECHO_N "checking enable_audio=sb_dsp... $ECHO_C" >&6
11756 if test "x$au_enable_sb_dsp" = xyes; then
11757   case "$target" in
11758     *-*-bsdi2.0) echo "$as_me:$LINENO: result: yes" >&5
11759 echo "${ECHO_T}yes" >&6 ;;
11760     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11761 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11762   esac
11763   EXTRADEFS="$EXTRADEFS -DAU_BSDI -DDEFAULT_RATE=22500"
11764   SYSEXTRAS="$SYSEXTRAS bsd20_a.c"
11765 else
11766   echo "$as_me:$LINENO: result: no" >&5
11767 echo "${ECHO_T}no" >&6
11768 fi
11769
11770 echo "$as_me:$LINENO: checking enable_audio=w32" >&5
11771 echo $ECHO_N "checking enable_audio=w32... $ECHO_C" >&6
11772 if test "x$au_enable_w32" = xyes; then
11773   case "$target" in
11774     *-*-cygwin*)
11775      echo "$as_me:$LINENO: result: yes" >&5
11776 echo "${ECHO_T}yes" >&6
11777      ;;
11778     *-*-mingw32)
11779      echo "$as_me:$LINENO: result: yes" >&5
11780 echo "${ECHO_T}yes" >&6
11781      ;;
11782     *)
11783      { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11784 echo "$as_me: WARNING: may not work on $target" >&2;}
11785      ;;
11786   esac
11787   SYSEXTRAS="$SYSEXTRAS w32_a.c"
11788   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes; then
11789         EXTRALIBS="$EXTRALIBS winmm.lib"
11790   else
11791     EXTRALIBS="$EXTRALIBS -lwinmm"
11792   fi
11793   EXTRADEFS="$EXTRADEFS -DAU_W32"
11794 else
11795   echo "$as_me:$LINENO: result: no" >&5
11796 echo "${ECHO_T}no" >&6
11797 fi
11798
11799 echo "$as_me:$LINENO: checking enable_audio=darwin" >&5
11800 echo $ECHO_N "checking enable_audio=darwin... $ECHO_C" >&6
11801 if test "x$au_enable_darwin" = xyes; then
11802   EXTRADEFS="$EXTRADEFS -DAU_DARWIN"
11803   SYSEXTRAS="$SYSEXTRAS darwin_a.c"
11804   EXTRALIBS="$EXTRALIBS -framework CoreAudio"
11805     case "$target" in
11806     *-*-darwin*)
11807      echo "$as_me:$LINENO: result: yes" >&5
11808 echo "${ECHO_T}yes" >&6;;
11809    *)
11810      { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11811 echo "$as_me: WARNING: may not work on $target" >&2;}
11812      ;;
11813   esac
11814 else
11815   echo "$as_me:$LINENO: result: no" >&5
11816 echo "${ECHO_T}no" >&6
11817 fi
11818
11819
11820 echo "$as_me:$LINENO: checking enable_audio=alsa" >&5
11821 echo $ECHO_N "checking enable_audio=alsa... $ECHO_C" >&6
11822 if test "x$au_enable_alsa" = xyes; then
11823   echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
11824 echo "${ECHO_T}yes, configuring alsa" >&6
11825   KEEPCFLAGS=$CFLAGS
11826   KEEPLIBS=$LIBS
11827   KEEPLDFLAGS=$LDFLAGS
11828   alsa_save_CFLAGS="$CFLAGS"
11829 alsa_save_LDFLAGS="$LDFLAGS"
11830 alsa_save_LIBS="$LIBS"
11831 alsa_found=yes
11832
11833
11834 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
11835 if test "${with_alsa_prefix+set}" = set; then
11836   withval="$with_alsa_prefix"
11837   alsa_prefix="$withval"
11838 else
11839   alsa_prefix=""
11840 fi;
11841
11842
11843 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
11844 if test "${with_alsa_inc_prefix+set}" = set; then
11845   withval="$with_alsa_inc_prefix"
11846   alsa_inc_prefix="$withval"
11847 else
11848   alsa_inc_prefix=""
11849 fi;
11850
11851 # Check whether --enable-alsatest or --disable-alsatest was given.
11852 if test "${enable_alsatest+set}" = set; then
11853   enableval="$enable_alsatest"
11854   enable_alsatest=no
11855 else
11856   enable_alsatest=yes
11857 fi;
11858
11859 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
11860 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
11861 if test "$alsa_inc_prefix" != "" ; then
11862         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
11863         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
11864 fi
11865 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
11866 echo "${ECHO_T}$ALSA_CFLAGS" >&6
11867
11868 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
11869 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
11870 if test "$alsa_prefix" != "" ; then
11871         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
11872         LDFLAGS="$LDFLAGS $ALSA_LIBS"
11873 fi
11874
11875 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
11876 LIBS=`echo $LIBS | sed 's/-lm//'`
11877 LIBS=`echo $LIBS | sed 's/-ldl//'`
11878 LIBS=`echo $LIBS | sed 's/-lpthread//'`
11879 LIBS=`echo $LIBS | sed 's/  //'`
11880 LIBS="$ALSA_LIBS $LIBS"
11881 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
11882 echo "${ECHO_T}$ALSA_LIBS" >&6
11883
11884 min_alsa_version=0.1.1
11885 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
11886 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
11887 no_alsa=""
11888     alsa_min_major_version=`echo $min_alsa_version | \
11889            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11890     alsa_min_minor_version=`echo $min_alsa_version | \
11891            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11892     alsa_min_micro_version=`echo $min_alsa_version | \
11893            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11894
11895
11896
11897
11898 ac_ext=c
11899 ac_cpp='$CPP $CPPFLAGS'
11900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11903
11904 cat >conftest.$ac_ext <<_ACEOF
11905 /* confdefs.h.  */
11906 _ACEOF
11907 cat confdefs.h >>conftest.$ac_ext
11908 cat >>conftest.$ac_ext <<_ACEOF
11909 /* end confdefs.h.  */
11910
11911 #include <alsa/asoundlib.h>
11912
11913 int
11914 main ()
11915 {
11916
11917 /* ensure backward compatibility */
11918 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
11919 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
11920 #endif
11921 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
11922 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
11923 #endif
11924 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
11925 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
11926 #endif
11927
11928 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
11929   exit(0);
11930 #  else
11931 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
11932 #       error not present
11933 #    endif
11934
11935 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
11936   exit(0);
11937 #   else
11938 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
11939 #          error not present
11940 #      endif
11941
11942 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
11943 #        error not present
11944 #      endif
11945 #    endif
11946 #  endif
11947 exit(0);
11948
11949   ;
11950   return 0;
11951 }
11952 _ACEOF
11953 rm -f conftest.$ac_objext
11954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11955   (eval $ac_compile) 2>conftest.er1
11956   ac_status=$?
11957   grep -v '^ *+' conftest.er1 >conftest.err
11958   rm -f conftest.er1
11959   cat conftest.err >&5
11960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961   (exit $ac_status); } &&
11962          { ac_try='test -z "$ac_c_werror_flag"
11963                          || test ! -s conftest.err'
11964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11965   (eval $ac_try) 2>&5
11966   ac_status=$?
11967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968   (exit $ac_status); }; } &&
11969          { ac_try='test -s conftest.$ac_objext'
11970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971   (eval $ac_try) 2>&5
11972   ac_status=$?
11973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974   (exit $ac_status); }; }; then
11975   echo "$as_me:$LINENO: result: found." >&5
11976 echo "${ECHO_T}found." >&6
11977 else
11978   echo "$as_me: failed program was:" >&5
11979 sed 's/^/| /' conftest.$ac_ext >&5
11980
11981 cat >conftest.$ac_ext <<_ACEOF
11982 /* confdefs.h.  */
11983 _ACEOF
11984 cat confdefs.h >>conftest.$ac_ext
11985 cat >>conftest.$ac_ext <<_ACEOF
11986 /* end confdefs.h.  */
11987
11988 #include <sys/asoundlib.h>
11989
11990 int
11991 main ()
11992 {
11993
11994 /* ensure backward compatibility */
11995 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
11996 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
11997 #endif
11998 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
11999 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12000 #endif
12001 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12002 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12003 #endif
12004
12005 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
12006   exit(0);
12007 #  else
12008 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
12009 #       error not present
12010 #    endif
12011
12012 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
12013   exit(0);
12014 #   else
12015 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
12016 #          error not present
12017 #      endif
12018
12019 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12020 #        error not present
12021 #      endif
12022 #    endif
12023 #  endif
12024 exit(0);
12025
12026   ;
12027   return 0;
12028 }
12029 _ACEOF
12030 rm -f conftest.$ac_objext
12031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12032   (eval $ac_compile) 2>conftest.er1
12033   ac_status=$?
12034   grep -v '^ *+' conftest.er1 >conftest.err
12035   rm -f conftest.er1
12036   cat conftest.err >&5
12037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038   (exit $ac_status); } &&
12039          { ac_try='test -z "$ac_c_werror_flag"
12040                          || test ! -s conftest.err'
12041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12042   (eval $ac_try) 2>&5
12043   ac_status=$?
12044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045   (exit $ac_status); }; } &&
12046          { ac_try='test -s conftest.$ac_objext'
12047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12048   (eval $ac_try) 2>&5
12049   ac_status=$?
12050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051   (exit $ac_status); }; }; then
12052   echo "$as_me:$LINENO: result: found." >&5
12053 echo "${ECHO_T}found." >&6
12054 else
12055   echo "$as_me: failed program was:" >&5
12056 sed 's/^/| /' conftest.$ac_ext >&5
12057
12058 echo "$as_me:$LINENO: result: not present." >&5
12059 echo "${ECHO_T}not present." >&6
12060    echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
12061 echo "${ECHO_T}libasound was not found anywhere." >&6
12062    alsa_found=no
12063 fi
12064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12065    echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
12066 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
12067
12068 fi
12069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12070 ac_ext=c
12071 ac_cpp='$CPP $CPPFLAGS'
12072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12075
12076
12077
12078 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
12079 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
12080 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
12081   echo $ECHO_N "(cached) $ECHO_C" >&6
12082 else
12083   ac_check_lib_save_LIBS=$LIBS
12084 LIBS="-lasound  $LIBS"
12085 cat >conftest.$ac_ext <<_ACEOF
12086 /* confdefs.h.  */
12087 _ACEOF
12088 cat confdefs.h >>conftest.$ac_ext
12089 cat >>conftest.$ac_ext <<_ACEOF
12090 /* end confdefs.h.  */
12091
12092 /* Override any gcc2 internal prototype to avoid an error.  */
12093 #ifdef __cplusplus
12094 extern "C"
12095 #endif
12096 /* We use char because int might match the return type of a gcc2
12097    builtin and then its argument prototype would still apply.  */
12098 char snd_ctl_open ();
12099 int
12100 main ()
12101 {
12102 snd_ctl_open ();
12103   ;
12104   return 0;
12105 }
12106 _ACEOF
12107 rm -f conftest.$ac_objext conftest$ac_exeext
12108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12109   (eval $ac_link) 2>conftest.er1
12110   ac_status=$?
12111   grep -v '^ *+' conftest.er1 >conftest.err
12112   rm -f conftest.er1
12113   cat conftest.err >&5
12114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115   (exit $ac_status); } &&
12116          { ac_try='test -z "$ac_c_werror_flag"
12117                          || test ! -s conftest.err'
12118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12119   (eval $ac_try) 2>&5
12120   ac_status=$?
12121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122   (exit $ac_status); }; } &&
12123          { ac_try='test -s conftest$ac_exeext'
12124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125   (eval $ac_try) 2>&5
12126   ac_status=$?
12127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128   (exit $ac_status); }; }; then
12129   ac_cv_lib_asound_snd_ctl_open=yes
12130 else
12131   echo "$as_me: failed program was:" >&5
12132 sed 's/^/| /' conftest.$ac_ext >&5
12133
12134 ac_cv_lib_asound_snd_ctl_open=no
12135 fi
12136 rm -f conftest.err conftest.$ac_objext \
12137       conftest$ac_exeext conftest.$ac_ext
12138 LIBS=$ac_check_lib_save_LIBS
12139 fi
12140 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
12141 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
12142 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
12143   cat >>confdefs.h <<_ACEOF
12144 #define HAVE_LIBASOUND 1
12145 _ACEOF
12146
12147   LIBS="-lasound $LIBS"
12148
12149 else
12150   echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
12151 echo "${ECHO_T}No linkable libasound was found." >&6
12152    alsa_found=no
12153
12154 fi
12155
12156
12157 if test "x$alsa_found" = "xyes" ; then
12158    :
12159    LIBS=`echo $LIBS | sed 's/-lasound//g'`
12160    LIBS=`echo $LIBS | sed 's/  //'`
12161    LIBS="-lasound $LIBS"
12162 else
12163    :
12164    CFLAGS="$alsa_save_CFLAGS"
12165    LDFLAGS="$alsa_save_LDFLAGS"
12166    LIBS="$alsa_save_LIBS"
12167    ALSA_CFLAGS=""
12168    ALSA_LIBS=""
12169 fi
12170
12171
12172
12173
12174   if test "x$alsa_found" = "xyes" ; then
12175         EXTRADEFS="$EXTRADEFS -DAU_ALSA"
12176     SYSEXTRAS="$SYSEXTRAS alsa_a.c"
12177     for f in $ALSA_CFLAGS; do
12178     case ".$f" in
12179         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
12180         *)              CFLAGS="$CPPFLAGS $f" ;;
12181     esac
12182 done
12183
12184     LIBS="$LIBS $ALSA_LIBS"
12185
12186 for ac_func in snd_seq_port_info_set_timestamping
12187 do
12188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12189 echo "$as_me:$LINENO: checking for $ac_func" >&5
12190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12191 if eval "test \"\${$as_ac_var+set}\" = set"; then
12192   echo $ECHO_N "(cached) $ECHO_C" >&6
12193 else
12194   cat >conftest.$ac_ext <<_ACEOF
12195 /* confdefs.h.  */
12196 _ACEOF
12197 cat confdefs.h >>conftest.$ac_ext
12198 cat >>conftest.$ac_ext <<_ACEOF
12199 /* end confdefs.h.  */
12200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12201    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12202 #define $ac_func innocuous_$ac_func
12203
12204 /* System header to define __stub macros and hopefully few prototypes,
12205     which can conflict with char $ac_func (); below.
12206     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12207     <limits.h> exists even on freestanding compilers.  */
12208
12209 #ifdef __STDC__
12210 # include <limits.h>
12211 #else
12212 # include <assert.h>
12213 #endif
12214
12215 #undef $ac_func
12216
12217 /* Override any gcc2 internal prototype to avoid an error.  */
12218 #ifdef __cplusplus
12219 extern "C"
12220 {
12221 #endif
12222 /* We use char because int might match the return type of a gcc2
12223    builtin and then its argument prototype would still apply.  */
12224 char $ac_func ();
12225 /* The GNU C library defines this for functions which it implements
12226     to always fail with ENOSYS.  Some functions are actually named
12227     something starting with __ and the normal name is an alias.  */
12228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12229 choke me
12230 #else
12231 char (*f) () = $ac_func;
12232 #endif
12233 #ifdef __cplusplus
12234 }
12235 #endif
12236
12237 int
12238 main ()
12239 {
12240 return f != $ac_func;
12241   ;
12242   return 0;
12243 }
12244 _ACEOF
12245 rm -f conftest.$ac_objext conftest$ac_exeext
12246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12247   (eval $ac_link) 2>conftest.er1
12248   ac_status=$?
12249   grep -v '^ *+' conftest.er1 >conftest.err
12250   rm -f conftest.er1
12251   cat conftest.err >&5
12252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253   (exit $ac_status); } &&
12254          { ac_try='test -z "$ac_c_werror_flag"
12255                          || test ! -s conftest.err'
12256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12257   (eval $ac_try) 2>&5
12258   ac_status=$?
12259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260   (exit $ac_status); }; } &&
12261          { ac_try='test -s conftest$ac_exeext'
12262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12263   (eval $ac_try) 2>&5
12264   ac_status=$?
12265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266   (exit $ac_status); }; }; then
12267   eval "$as_ac_var=yes"
12268 else
12269   echo "$as_me: failed program was:" >&5
12270 sed 's/^/| /' conftest.$ac_ext >&5
12271
12272 eval "$as_ac_var=no"
12273 fi
12274 rm -f conftest.err conftest.$ac_objext \
12275       conftest$ac_exeext conftest.$ac_ext
12276 fi
12277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12278 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12279 if test `eval echo '${'$as_ac_var'}'` = yes; then
12280   cat >>confdefs.h <<_ACEOF
12281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12282 _ACEOF
12283
12284 fi
12285 done
12286
12287   else
12288     { echo "$as_me:$LINENO: WARNING: Couldn't configure alsa." >&5
12289 echo "$as_me: WARNING: Couldn't configure alsa." >&2;}
12290     CFLAGS=$KEEPCFLAGS
12291     LIBS=$KEEPLIBS
12292     LDFLAGS=$KEEPLDFLAGS
12293   fi
12294 else
12295   echo "$as_me:$LINENO: result: no" >&5
12296 echo "${ECHO_T}no" >&6
12297 fi
12298
12299 echo "$as_me:$LINENO: checking enable_audio=alib" >&5
12300 echo $ECHO_N "checking enable_audio=alib... $ECHO_C" >&6
12301 if test "x$au_enable_alib" = xyes; then
12302   case "$target" in
12303     *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
12304 echo "${ECHO_T}yes" >&6 ;;
12305     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12306 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12307   esac
12308   SYSEXTRAS="$SYSEXTRAS hpux_a.c"
12309   EXTRADEFS="$EXTRADEFS -DAU_HPUX_ALIB"
12310   if test -d /opt/audio/include; then
12311     CPPFLAGS="$CPPFLAGS -I/opt/audio/include"
12312   fi
12313   if test -d /opt/audio/lib; then
12314     EXTRALIBS="$EXTRALIBS -L/opt/audio/lib"
12315   fi
12316   EXTRALIBS="$EXTRALIBS -lAlib"
12317 else
12318   echo "$as_me:$LINENO: result: no" >&5
12319 echo "${ECHO_T}no" >&6
12320 fi
12321
12322 echo "$as_me:$LINENO: checking enable_audio=nas" >&5
12323 echo $ECHO_N "checking enable_audio=nas... $ECHO_C" >&6
12324 if test "x$au_enable_nas" = xyes; then
12325   if test "x$with_x" != xyes; then
12326     { { echo "$as_me:$LINENO: error: nas: --with-x option must be specified" >&5
12327 echo "$as_me: error: nas: --with-x option must be specified" >&2;}
12328    { (exit 1); exit 1; }; }
12329   fi
12330   EXTRADEFS="$EXTRADEFS -DAU_NAS"
12331   SYSEXTRAS="$SYSEXTRAS nas_a.c"
12332
12333
12334   if test "x$with_nas_library" != x; then
12335     echo "$as_me:$LINENO: result: $with_nas_library" >&5
12336 echo "${ECHO_T}$with_nas_library" >&6;
12337     EXTRALIBS="$EXTRALIBS $with_nas_library"
12338   else
12339     echo "$as_me:$LINENO: result: " >&5
12340 echo "${ECHO_T}" >&6
12341     echo "$as_me:$LINENO: checking for library containing AuOpenServer" >&5
12342 echo $ECHO_N "checking for library containing AuOpenServer... $ECHO_C" >&6
12343 if test "${timidity_cv_search_AuOpenServer+set}" = set; then
12344   echo $ECHO_N "(cached) $ECHO_C" >&6
12345 else
12346   ac_func_search_save_LIBS="$LIBS"
12347 timidity_cv_search_AuOpenServer="no"
12348 for i in $x_libraries/libaudio.a \
12349          /usr/lib/libaudio.so \
12350          /usr/lib/libaudio.a ; do
12351   LIBS="$i  $ac_func_search_save_LIBS"
12352   cat >conftest.$ac_ext <<_ACEOF
12353 /* confdefs.h.  */
12354 _ACEOF
12355 cat confdefs.h >>conftest.$ac_ext
12356 cat >>conftest.$ac_ext <<_ACEOF
12357 /* end confdefs.h.  */
12358
12359 /* Override any gcc2 internal prototype to avoid an error.  */
12360 #ifdef __cplusplus
12361 extern "C"
12362 #endif
12363 /* We use char because int might match the return type of a gcc2
12364    builtin and then its argument prototype would still apply.  */
12365 char AuOpenServer ();
12366 int
12367 main ()
12368 {
12369 AuOpenServer ();
12370   ;
12371   return 0;
12372 }
12373 _ACEOF
12374 rm -f conftest.$ac_objext conftest$ac_exeext
12375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12376   (eval $ac_link) 2>conftest.er1
12377   ac_status=$?
12378   grep -v '^ *+' conftest.er1 >conftest.err
12379   rm -f conftest.er1
12380   cat conftest.err >&5
12381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382   (exit $ac_status); } &&
12383          { ac_try='test -z "$ac_c_werror_flag"
12384                          || test ! -s conftest.err'
12385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12386   (eval $ac_try) 2>&5
12387   ac_status=$?
12388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389   (exit $ac_status); }; } &&
12390          { ac_try='test -s conftest$ac_exeext'
12391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12392   (eval $ac_try) 2>&5
12393   ac_status=$?
12394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395   (exit $ac_status); }; }; then
12396   timidity_cv_search_AuOpenServer="$i"; break
12397 else
12398   echo "$as_me: failed program was:" >&5
12399 sed 's/^/| /' conftest.$ac_ext >&5
12400
12401 fi
12402 rm -f conftest.err conftest.$ac_objext \
12403       conftest$ac_exeext conftest.$ac_ext
12404 done
12405 LIBS="$ac_func_search_save_LIBS"
12406 fi
12407 echo "$as_me:$LINENO: result: $timidity_cv_search_AuOpenServer" >&5
12408 echo "${ECHO_T}$timidity_cv_search_AuOpenServer" >&6
12409 if test "$timidity_cv_search_AuOpenServer" != "no"; then
12410    echo "$as_me:$LINENO: result: NAS: $timidity_cv_search_AuOpenServer" >&5
12411 echo "${ECHO_T}NAS: $timidity_cv_search_AuOpenServer" >&6
12412           EXTRALIBS="$EXTRALIBS $timidity_cv_search_AuOpenServer"
12413 else :
12414   { echo "$as_me:$LINENO: WARNING: NAS library is not found." >&5
12415 echo "$as_me: WARNING: NAS library is not found." >&2;}
12416 fi
12417   fi
12418   test "x$with_nas_includes" != x && CPPFLAGS="$CPPFLAGS -I$with_nas_includes"
12419   lib_xt_opt=-lXt
12420   if test "x$have_xext" = xyes; then
12421     lib_xext_opt=-lXext
12422   fi
12423   if test "x$have_xprelibs" = xyes; then
12424     lib_xprelibs_opt='-lSM -lICE'
12425   fi
12426 else
12427   echo "$as_me:$LINENO: result: no" >&5
12428 echo "${ECHO_T}no" >&6
12429 fi
12430
12431 echo "$as_me:$LINENO: checking enable_audio=arts" >&5
12432 echo $ECHO_N "checking enable_audio=arts... $ECHO_C" >&6
12433 if test "x$au_enable_arts" = xyes; then
12434   echo "$as_me:$LINENO: result: yes, configuring aRts" >&5
12435 echo "${ECHO_T}yes, configuring aRts" >&6
12436   KEEPCFLAGS=$CFLAGS
12437   KEEPLIBS=$LIBS
12438   KEEPLDFLAGS=$LDFLAGS
12439
12440 # Check whether --with-arts-prefix or --without-arts-prefix was given.
12441 if test "${with_arts_prefix+set}" = set; then
12442   withval="$with_arts_prefix"
12443   arts_prefix="$withval"
12444 else
12445   arts_prefix=""
12446 fi;
12447 # Check whether --enable-artstest or --disable-artstest was given.
12448 if test "${enable_artstest+set}" = set; then
12449   enableval="$enable_artstest"
12450
12451 else
12452   enable_artstest=yes
12453 fi;
12454
12455   if test x$arts_prefix != x ; then
12456      arts_args="$arts_args --prefix=$arts_prefix"
12457      if test x${ARTS_CONFIG+set} != xset ; then
12458         ARTS_CONFIG=$arts_prefix/bin/artsc-config
12459      fi
12460   fi
12461
12462   # Extract the first word of "artsc-config", so it can be a program name with args.
12463 set dummy artsc-config; ac_word=$2
12464 echo "$as_me:$LINENO: checking for $ac_word" >&5
12465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12466 if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
12467   echo $ECHO_N "(cached) $ECHO_C" >&6
12468 else
12469   case $ARTS_CONFIG in
12470   [\\/]* | ?:[\\/]*)
12471   ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
12472   ;;
12473   *)
12474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12475 for as_dir in $PATH
12476 do
12477   IFS=$as_save_IFS
12478   test -z "$as_dir" && as_dir=.
12479   for ac_exec_ext in '' $ac_executable_extensions; do
12480   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12481     ac_cv_path_ARTS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12483     break 2
12484   fi
12485 done
12486 done
12487
12488   test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
12489   ;;
12490 esac
12491 fi
12492 ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
12493
12494 if test -n "$ARTS_CONFIG"; then
12495   echo "$as_me:$LINENO: result: $ARTS_CONFIG" >&5
12496 echo "${ECHO_T}$ARTS_CONFIG" >&6
12497 else
12498   echo "$as_me:$LINENO: result: no" >&5
12499 echo "${ECHO_T}no" >&6
12500 fi
12501
12502   min_arts_version=0.9.5
12503   echo "$as_me:$LINENO: checking for ARTS - version >= $min_arts_version" >&5
12504 echo $ECHO_N "checking for ARTS - version >= $min_arts_version... $ECHO_C" >&6
12505   no_arts=""
12506   if test "$ARTS_CONFIG" = "no" ; then
12507     no_arts=yes
12508   else
12509     ARTS_CFLAGS=`$ARTS_CONFIG $artsconf_args --cflags`
12510     ARTS_LIBS=`$ARTS_CONFIG $artsconf_args --libs`
12511
12512     arts_major_version=`$ARTS_CONFIG $arts_args --version | \
12513            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12514     arts_minor_version=`$ARTS_CONFIG $arts_args --version | \
12515            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12516     arts_micro_version=`$ARTS_CONFIG $arts_config_args --version | \
12517            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12518     if test "x$enable_artstest" = "xyes" ; then
12519       ac_save_CFLAGS="$CFLAGS"
12520       ac_save_LIBS="$LIBS"
12521       CFLAGS="$CFLAGS $ARTS_CFLAGS"
12522       LIBS="$LIBS $ARTS_LIBS"
12523       rm -f conf.artstest
12524       if test "$cross_compiling" = yes; then
12525   echo $ac_n "cross compiling; assumed OK... $ac_c"
12526 else
12527   cat >conftest.$ac_ext <<_ACEOF
12528 /* confdefs.h.  */
12529 _ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h.  */
12533
12534 #include <stdio.h>
12535 #include <stdlib.h>
12536 #include <string.h>
12537 #include <artsc.h>
12538
12539 char*
12540 my_strdup (char *str)
12541 {
12542   char *new_str;
12543
12544   if (str)
12545     {
12546       new_str = malloc ((strlen (str) + 1) * sizeof(char));
12547       strcpy (new_str, str);
12548     }
12549   else
12550     new_str = NULL;
12551
12552   return new_str;
12553 }
12554
12555 int main ()
12556 {
12557   int major, minor, micro;
12558   char *tmp_version;
12559
12560   system ("touch conf.artstest");
12561
12562   /* HP/UX 9 (%@#!) writes to sscanf strings */
12563   tmp_version = my_strdup("$min_arts_version");
12564   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12565      printf("%s, bad version string\n", "$min_arts_version");
12566      exit(1);
12567    }
12568
12569    if (($arts_major_version > major) ||
12570       (($arts_major_version == major) && ($arts_minor_version > minor)) ||
12571       (($arts_major_version == major) && ($arts_minor_version == minor) && ($arts_micro_version >= micro)))
12572     {
12573       return 0;
12574     }
12575   else
12576     {
12577       printf("\n*** 'artsc-config --version' returned %d.%d.%d, but the minimum version\n", $arts_major_version, $arts_minor_version, $arts_micro_version);
12578       printf("*** of ARTS required is %d.%d.%d. If artsc-config is correct, then it is\n", major, minor, micro);
12579       printf("*** best to upgrade to the required version.\n");
12580       printf("*** If artsc-config was wrong, set the environment variable ARTS_CONFIG\n");
12581       printf("*** to point to the correct copy of artsc-config, and remove the file\n");
12582       printf("*** config.cache before re-running configure\n");
12583       return 1;
12584     }
12585 }
12586
12587
12588 _ACEOF
12589 rm -f conftest$ac_exeext
12590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12591   (eval $ac_link) 2>&5
12592   ac_status=$?
12593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12596   (eval $ac_try) 2>&5
12597   ac_status=$?
12598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599   (exit $ac_status); }; }; then
12600   :
12601 else
12602   echo "$as_me: program exited with status $ac_status" >&5
12603 echo "$as_me: failed program was:" >&5
12604 sed 's/^/| /' conftest.$ac_ext >&5
12605
12606 ( exit $ac_status )
12607 no_arts=yes
12608 fi
12609 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12610 fi
12611        CFLAGS="$ac_save_CFLAGS"
12612        LIBS="$ac_save_LIBS"
12613      fi
12614   fi
12615   if test "x$no_arts" = x ; then
12616      echo "$as_me:$LINENO: result: yes" >&5
12617 echo "${ECHO_T}yes" >&6
12618      :
12619   else
12620      echo "$as_me:$LINENO: result: no" >&5
12621 echo "${ECHO_T}no" >&6
12622      if test "$ARTS_CONFIG" = "no" ; then
12623        echo "*** The artsc-config script installed by ARTS could not be found"
12624        echo "*** If ARTS was installed in PREFIX, make sure PREFIX/bin is in"
12625        echo "*** your path, or set the ARTS_CONFIG environment variable to the"
12626        echo "*** full path to artsc-config."
12627      else
12628        if test -f conf.artstest ; then
12629         :
12630        else
12631           echo "*** Could not run ARTS test program, checking why..."
12632           CFLAGS="$CFLAGS $ARTS_CFLAGS"
12633           LIBS="$LIBS $ARTS_LIBS"
12634           cat >conftest.$ac_ext <<_ACEOF
12635 /* confdefs.h.  */
12636 _ACEOF
12637 cat confdefs.h >>conftest.$ac_ext
12638 cat >>conftest.$ac_ext <<_ACEOF
12639 /* end confdefs.h.  */
12640
12641 #include <stdio.h>
12642 #include <artsc.h>
12643
12644 int
12645 main ()
12646 {
12647  return 0;
12648   ;
12649   return 0;
12650 }
12651 _ACEOF
12652 rm -f conftest.$ac_objext conftest$ac_exeext
12653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12654   (eval $ac_link) 2>conftest.er1
12655   ac_status=$?
12656   grep -v '^ *+' conftest.er1 >conftest.err
12657   rm -f conftest.er1
12658   cat conftest.err >&5
12659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660   (exit $ac_status); } &&
12661          { ac_try='test -z "$ac_c_werror_flag"
12662                          || test ! -s conftest.err'
12663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12664   (eval $ac_try) 2>&5
12665   ac_status=$?
12666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667   (exit $ac_status); }; } &&
12668          { ac_try='test -s conftest$ac_exeext'
12669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12670   (eval $ac_try) 2>&5
12671   ac_status=$?
12672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673   (exit $ac_status); }; }; then
12674    echo "*** The test program compiled, but did not run. This usually means"
12675           echo "*** that the run-time linker is not finding ARTS or finding the wrong"
12676           echo "*** version of ARTS. If it is not finding ARTS, you'll need to set your"
12677           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12678           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12679           echo "*** is required on your system"
12680           echo "***"
12681           echo "*** If you have an old version installed, it is best to remove it, although"
12682           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12683 else
12684   echo "$as_me: failed program was:" >&5
12685 sed 's/^/| /' conftest.$ac_ext >&5
12686
12687  echo "*** The test program failed to compile or link. See the file config.log for the"
12688           echo "*** exact error that occured. This usually means ARTS was incorrectly installed"
12689           echo "*** or that you have moved ARTS since it was installed. In the latter case, you"
12690           echo "*** may want to edit the arts-config script: $ARTS_CONFIG"
12691 fi
12692 rm -f conftest.err conftest.$ac_objext \
12693       conftest$ac_exeext conftest.$ac_ext
12694           CFLAGS="$ac_save_CFLAGS"
12695           LIBS="$ac_save_LIBS"
12696        fi
12697      fi
12698      ARTS_CFLAGS=""
12699      ARTS_LIBS=""
12700      :
12701   fi
12702
12703
12704   rm -f conf.artstest
12705
12706   CFLAGS=$KEEPCFLAGS
12707   LIBS=$KEEPLIBS
12708   LDFLAGS=$KEEPLDFLAGS
12709   if test "x$no_arts" = x; then
12710         EXTRADEFS="$EXTRADEFS -DAU_ARTS"
12711     SYSEXTRAS="$SYSEXTRAS aRts_a.c"
12712     for f in $ARTS_CFLAGS; do
12713     case ".$f" in
12714         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
12715         *)              CFLAGS="$CPPFLAGS $f" ;;
12716     esac
12717 done
12718
12719     LIBS="$LIBS $ARTS_LIBS"
12720   else
12721     { echo "$as_me:$LINENO: WARNING: aRts: Couldn't configure" >&5
12722 echo "$as_me: WARNING: aRts: Couldn't configure" >&2;}
12723   fi
12724 else
12725   echo "$as_me:$LINENO: result: no" >&5
12726 echo "${ECHO_T}no" >&6
12727 fi
12728
12729 echo "$as_me:$LINENO: checking enable_audio=esd" >&5
12730 echo $ECHO_N "checking enable_audio=esd... $ECHO_C" >&6
12731 if test "x$au_enable_esd" = xyes; then
12732   echo "$as_me:$LINENO: result: yes, configuring esd" >&5
12733 echo "${ECHO_T}yes, configuring esd" >&6
12734   KEEPCFLAGS=$CFLAGS
12735   KEEPLIBS=$LIBS
12736   KEEPLDFLAGS=$LDFLAGS
12737
12738 # Check whether --with-esd-prefix or --without-esd-prefix was given.
12739 if test "${with_esd_prefix+set}" = set; then
12740   withval="$with_esd_prefix"
12741   esd_prefix="$withval"
12742 else
12743   esd_prefix=""
12744 fi;
12745
12746 # Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given.
12747 if test "${with_esd_exec_prefix+set}" = set; then
12748   withval="$with_esd_exec_prefix"
12749   esd_exec_prefix="$withval"
12750 else
12751   esd_exec_prefix=""
12752 fi;
12753 # Check whether --enable-esdtest or --disable-esdtest was given.
12754 if test "${enable_esdtest+set}" = set; then
12755   enableval="$enable_esdtest"
12756
12757 else
12758   enable_esdtest=yes
12759 fi;
12760
12761   if test x$esd_exec_prefix != x ; then
12762      esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
12763      if test x${ESD_CONFIG+set} != xset ; then
12764         ESD_CONFIG=$esd_exec_prefix/bin/esd-config
12765      fi
12766   fi
12767   if test x$esd_prefix != x ; then
12768      esd_args="$esd_args --prefix=$esd_prefix"
12769      if test x${ESD_CONFIG+set} != xset ; then
12770         ESD_CONFIG=$esd_prefix/bin/esd-config
12771      fi
12772   fi
12773
12774   # Extract the first word of "esd-config", so it can be a program name with args.
12775 set dummy esd-config; ac_word=$2
12776 echo "$as_me:$LINENO: checking for $ac_word" >&5
12777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12778 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
12779   echo $ECHO_N "(cached) $ECHO_C" >&6
12780 else
12781   case $ESD_CONFIG in
12782   [\\/]* | ?:[\\/]*)
12783   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
12784   ;;
12785   *)
12786   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12787 for as_dir in $PATH
12788 do
12789   IFS=$as_save_IFS
12790   test -z "$as_dir" && as_dir=.
12791   for ac_exec_ext in '' $ac_executable_extensions; do
12792   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12793     ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12794     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12795     break 2
12796   fi
12797 done
12798 done
12799
12800   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
12801   ;;
12802 esac
12803 fi
12804 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
12805
12806 if test -n "$ESD_CONFIG"; then
12807   echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
12808 echo "${ECHO_T}$ESD_CONFIG" >&6
12809 else
12810   echo "$as_me:$LINENO: result: no" >&5
12811 echo "${ECHO_T}no" >&6
12812 fi
12813
12814   min_esd_version=0.2.7
12815   echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
12816 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6
12817   no_esd=""
12818   if test "$ESD_CONFIG" = "no" ; then
12819     no_esd=yes
12820   else
12821
12822
12823     ac_ext=c
12824 ac_cpp='$CPP $CPPFLAGS'
12825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12828
12829     ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
12830     ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
12831
12832     esd_major_version=`$ESD_CONFIG $esd_args --version | \
12833            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12834     esd_minor_version=`$ESD_CONFIG $esd_args --version | \
12835            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12836     esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
12837            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12838     if test "x$enable_esdtest" = "xyes" ; then
12839       ac_save_CFLAGS="$CFLAGS"
12840       ac_save_LIBS="$LIBS"
12841       CFLAGS="$CFLAGS $ESD_CFLAGS"
12842       LIBS="$LIBS $ESD_LIBS"
12843       rm -f conf.esdtest
12844       if test "$cross_compiling" = yes; then
12845   echo $ac_n "cross compiling; assumed OK... $ac_c"
12846 else
12847   cat >conftest.$ac_ext <<_ACEOF
12848 /* confdefs.h.  */
12849 _ACEOF
12850 cat confdefs.h >>conftest.$ac_ext
12851 cat >>conftest.$ac_ext <<_ACEOF
12852 /* end confdefs.h.  */
12853
12854 #include <stdio.h>
12855 #include <stdlib.h>
12856 #include <string.h>
12857 #include <esd.h>
12858
12859 char*
12860 my_strdup (char *str)
12861 {
12862   char *new_str;
12863
12864   if (str)
12865     {
12866       new_str = malloc ((strlen (str) + 1) * sizeof(char));
12867       strcpy (new_str, str);
12868     }
12869   else
12870     new_str = NULL;
12871
12872   return new_str;
12873 }
12874
12875 int main ()
12876 {
12877   int major, minor, micro;
12878   char *tmp_version;
12879
12880   system ("touch conf.esdtest");
12881
12882   /* HP/UX 9 (%@#!) writes to sscanf strings */
12883   tmp_version = my_strdup("$min_esd_version");
12884   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12885      printf("%s, bad version string\n", "$min_esd_version");
12886      exit(1);
12887    }
12888
12889    if (($esd_major_version > major) ||
12890       (($esd_major_version == major) && ($esd_minor_version > minor)) ||
12891       (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
12892     {
12893       return 0;
12894     }
12895   else
12896     {
12897       printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
12898       printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
12899       printf("*** best to upgrade to the required version.\n");
12900       printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
12901       printf("*** to point to the correct copy of esd-config, and remove the file\n");
12902       printf("*** config.cache before re-running configure\n");
12903       return 1;
12904     }
12905 }
12906
12907
12908 _ACEOF
12909 rm -f conftest$ac_exeext
12910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12911   (eval $ac_link) 2>&5
12912   ac_status=$?
12913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12916   (eval $ac_try) 2>&5
12917   ac_status=$?
12918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919   (exit $ac_status); }; }; then
12920   :
12921 else
12922   echo "$as_me: program exited with status $ac_status" >&5
12923 echo "$as_me: failed program was:" >&5
12924 sed 's/^/| /' conftest.$ac_ext >&5
12925
12926 ( exit $ac_status )
12927 no_esd=yes
12928 fi
12929 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12930 fi
12931        CFLAGS="$ac_save_CFLAGS"
12932        LIBS="$ac_save_LIBS"
12933        ac_ext=c
12934 ac_cpp='$CPP $CPPFLAGS'
12935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12938
12939      fi
12940   fi
12941   if test "x$no_esd" = x ; then
12942      echo "$as_me:$LINENO: result: yes" >&5
12943 echo "${ECHO_T}yes" >&6
12944      :
12945   else
12946      echo "$as_me:$LINENO: result: no" >&5
12947 echo "${ECHO_T}no" >&6
12948      if test "$ESD_CONFIG" = "no" ; then
12949        echo "*** The esd-config script installed by ESD could not be found"
12950        echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
12951        echo "*** your path, or set the ESD_CONFIG environment variable to the"
12952        echo "*** full path to esd-config."
12953      else
12954        if test -f conf.esdtest ; then
12955         :
12956        else
12957           echo "*** Could not run ESD test program, checking why..."
12958           CFLAGS="$CFLAGS $ESD_CFLAGS"
12959           LIBS="$LIBS $ESD_LIBS"
12960
12961
12962           ac_ext=c
12963 ac_cpp='$CPP $CPPFLAGS'
12964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12967
12968           cat >conftest.$ac_ext <<_ACEOF
12969 /* confdefs.h.  */
12970 _ACEOF
12971 cat confdefs.h >>conftest.$ac_ext
12972 cat >>conftest.$ac_ext <<_ACEOF
12973 /* end confdefs.h.  */
12974
12975 #include <stdio.h>
12976 #include <esd.h>
12977
12978 int
12979 main ()
12980 {
12981  return 0;
12982   ;
12983   return 0;
12984 }
12985 _ACEOF
12986 rm -f conftest.$ac_objext conftest$ac_exeext
12987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12988   (eval $ac_link) 2>conftest.er1
12989   ac_status=$?
12990   grep -v '^ *+' conftest.er1 >conftest.err
12991   rm -f conftest.er1
12992   cat conftest.err >&5
12993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994   (exit $ac_status); } &&
12995          { ac_try='test -z "$ac_c_werror_flag"
12996                          || test ! -s conftest.err'
12997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12998   (eval $ac_try) 2>&5
12999   ac_status=$?
13000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001   (exit $ac_status); }; } &&
13002          { ac_try='test -s conftest$ac_exeext'
13003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13004   (eval $ac_try) 2>&5
13005   ac_status=$?
13006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007   (exit $ac_status); }; }; then
13008    echo "*** The test program compiled, but did not run. This usually means"
13009           echo "*** that the run-time linker is not finding ESD or finding the wrong"
13010           echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
13011           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13012           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13013           echo "*** is required on your system"
13014           echo "***"
13015           echo "*** If you have an old version installed, it is best to remove it, although"
13016           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13017 else
13018   echo "$as_me: failed program was:" >&5
13019 sed 's/^/| /' conftest.$ac_ext >&5
13020
13021  echo "*** The test program failed to compile or link. See the file config.log for the"
13022           echo "*** exact error that occured. This usually means ESD was incorrectly installed"
13023           echo "*** or that you have moved ESD since it was installed. In the latter case, you"
13024           echo "*** may want to edit the esd-config script: $ESD_CONFIG"
13025 fi
13026 rm -f conftest.err conftest.$ac_objext \
13027       conftest$ac_exeext conftest.$ac_ext
13028           CFLAGS="$ac_save_CFLAGS"
13029           LIBS="$ac_save_LIBS"
13030           ac_ext=c
13031 ac_cpp='$CPP $CPPFLAGS'
13032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13035
13036        fi
13037      fi
13038      ESD_CFLAGS=""
13039      ESD_LIBS=""
13040      :
13041   fi
13042
13043
13044   rm -f conf.esdtest
13045
13046   CFLAGS=$KEEPCFLAGS
13047   LIBS=$KEEPLIBS
13048   LDFLAGS=$KEEPLDFLAGS
13049   if test "x$no_esd" = x; then
13050         EXTRADEFS="$EXTRADEFS -DAU_ESD"
13051     SYSEXTRAS="$SYSEXTRAS esd_a.c"
13052     for f in $ESD_CFLAGS; do
13053     case ".$f" in
13054         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
13055         *)              CFLAGS="$CPPFLAGS $f" ;;
13056     esac
13057 done
13058
13059     LIBS="$LIBS $ESD_LIBS"
13060   else
13061     { echo "$as_me:$LINENO: WARNING: EsounD: Couldn't configure" >&5
13062 echo "$as_me: WARNING: EsounD: Couldn't configure" >&2;}
13063   fi
13064 else
13065   echo "$as_me:$LINENO: result: no" >&5
13066 echo "${ECHO_T}no" >&6
13067 fi
13068
13069 echo "$as_me:$LINENO: checking enable_audio=portaudio" >&5
13070 echo $ECHO_N "checking enable_audio=portaudio... $ECHO_C" >&6
13071 if test "x$au_enable_portaudio" = xyes; then
13072   echo "$as_me:$LINENO: result: yes" >&5
13073 echo "${ECHO_T}yes" >&6
13074   if test "x$CYGNUS" = xyes ||test "x$MSYS" = xyes; then
13075         SYSEXTRAS="$SYSEXTRAS portaudio_a.c w32_portaudio_dll.c"
13076         EXTRALIBS="$EXTRALIBS -lportaudio"
13077         EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO -DAU_PORTAUDIO_DLL"
13078   else
13079         SYSEXTRAS="$SYSEXTRAS portaudio_a.c"
13080         EXTRALIBS="$EXTRALIBS -lportaudio"
13081         EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO"
13082   fi
13083 else
13084   echo "$as_me:$LINENO: result: no" >&5
13085 echo "${ECHO_T}no" >&6
13086 fi
13087
13088 echo "$as_me:$LINENO: checking enable_audio=jack" >&5
13089 echo $ECHO_N "checking enable_audio=jack... $ECHO_C" >&6
13090 if test "x$au_enable_jack" = xyes; then
13091   echo "$as_me:$LINENO: result: yes" >&5
13092 echo "${ECHO_T}yes" >&6
13093   SYSEXTRAS="$SYSEXTRAS jack_a.c"
13094   EXTRALIBS="$EXTRALIBS $(pkg-config --libs jack)"
13095   EXTRADEFS="$EXTRADEFS -DAU_JACK $(pkg-config --cflags jack)"
13096 else
13097   echo "$as_me:$LINENO: result: no" >&5
13098 echo "${ECHO_T}no" >&6
13099 fi
13100
13101 echo "$as_me:$LINENO: checking enable_audio=ao" >&5
13102 echo $ECHO_N "checking enable_audio=ao... $ECHO_C" >&6
13103 if test "x$au_enable_ao" = xyes; then
13104   echo "$as_me:$LINENO: result: yes, configuring ao" >&5
13105 echo "${ECHO_T}yes, configuring ao" >&6
13106
13107 # Check whether --with-ao or --without-ao was given.
13108 if test "${with_ao+set}" = set; then
13109   withval="$with_ao"
13110   ao_prefix="$withval"
13111 else
13112   ao_prefix=""
13113 fi;
13114
13115 # Check whether --with-ao-libraries or --without-ao-libraries was given.
13116 if test "${with_ao_libraries+set}" = set; then
13117   withval="$with_ao_libraries"
13118   ao_libraries="$withval"
13119 else
13120   ao_libraries=""
13121 fi;
13122
13123 # Check whether --with-ao-includes or --without-ao-includes was given.
13124 if test "${with_ao_includes+set}" = set; then
13125   withval="$with_ao_includes"
13126   ao_includes="$withval"
13127 else
13128   ao_includes=""
13129 fi;
13130 # Check whether --enable-aotest or --disable-aotest was given.
13131 if test "${enable_aotest+set}" = set; then
13132   enableval="$enable_aotest"
13133
13134 else
13135   enable_aotest=yes
13136 fi;
13137
13138
13139   if test "x$ao_libraries" != "x" ; then
13140     AO_LIBS="-L$ao_libraries"
13141   elif test "x$ao_prefix" != "x"; then
13142     AO_LIBS="-L$ao_prefix/lib"
13143   elif test "x$prefix" != "xNONE"; then
13144     AO_LIBS="-L$prefix/lib"
13145   fi
13146
13147   if test "x$ao_includes" != "x" ; then
13148     AO_CFLAGS="-I$ao_includes"
13149   elif test "x$ao_prefix" != "x"; then
13150     AO_CFLAGS="-I$ao_prefix/include"
13151   elif test "x$prefix" != "xNONE"; then
13152     AO_CFLAGS="-I$prefix/include"
13153   fi
13154
13155   # see where dl* and friends live
13156
13157 for ac_func in dlopen
13158 do
13159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13160 echo "$as_me:$LINENO: checking for $ac_func" >&5
13161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13162 if eval "test \"\${$as_ac_var+set}\" = set"; then
13163   echo $ECHO_N "(cached) $ECHO_C" >&6
13164 else
13165   cat >conftest.$ac_ext <<_ACEOF
13166 /* confdefs.h.  */
13167 _ACEOF
13168 cat confdefs.h >>conftest.$ac_ext
13169 cat >>conftest.$ac_ext <<_ACEOF
13170 /* end confdefs.h.  */
13171 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13172    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13173 #define $ac_func innocuous_$ac_func
13174
13175 /* System header to define __stub macros and hopefully few prototypes,
13176     which can conflict with char $ac_func (); below.
13177     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13178     <limits.h> exists even on freestanding compilers.  */
13179
13180 #ifdef __STDC__
13181 # include <limits.h>
13182 #else
13183 # include <assert.h>
13184 #endif
13185
13186 #undef $ac_func
13187
13188 /* Override any gcc2 internal prototype to avoid an error.  */
13189 #ifdef __cplusplus
13190 extern "C"
13191 {
13192 #endif
13193 /* We use char because int might match the return type of a gcc2
13194    builtin and then its argument prototype would still apply.  */
13195 char $ac_func ();
13196 /* The GNU C library defines this for functions which it implements
13197     to always fail with ENOSYS.  Some functions are actually named
13198     something starting with __ and the normal name is an alias.  */
13199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13200 choke me
13201 #else
13202 char (*f) () = $ac_func;
13203 #endif
13204 #ifdef __cplusplus
13205 }
13206 #endif
13207
13208 int
13209 main ()
13210 {
13211 return f != $ac_func;
13212   ;
13213   return 0;
13214 }
13215 _ACEOF
13216 rm -f conftest.$ac_objext conftest$ac_exeext
13217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13218   (eval $ac_link) 2>conftest.er1
13219   ac_status=$?
13220   grep -v '^ *+' conftest.er1 >conftest.err
13221   rm -f conftest.er1
13222   cat conftest.err >&5
13223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224   (exit $ac_status); } &&
13225          { ac_try='test -z "$ac_c_werror_flag"
13226                          || test ! -s conftest.err'
13227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13228   (eval $ac_try) 2>&5
13229   ac_status=$?
13230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231   (exit $ac_status); }; } &&
13232          { ac_try='test -s conftest$ac_exeext'
13233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13234   (eval $ac_try) 2>&5
13235   ac_status=$?
13236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237   (exit $ac_status); }; }; then
13238   eval "$as_ac_var=yes"
13239 else
13240   echo "$as_me: failed program was:" >&5
13241 sed 's/^/| /' conftest.$ac_ext >&5
13242
13243 eval "$as_ac_var=no"
13244 fi
13245 rm -f conftest.err conftest.$ac_objext \
13246       conftest$ac_exeext conftest.$ac_ext
13247 fi
13248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13249 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13250 if test `eval echo '${'$as_ac_var'}'` = yes; then
13251   cat >>confdefs.h <<_ACEOF
13252 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13253 _ACEOF
13254  AO_DL_LIBS=""
13255 else
13256
13257     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13258 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13259 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13260   echo $ECHO_N "(cached) $ECHO_C" >&6
13261 else
13262   ac_check_lib_save_LIBS=$LIBS
13263 LIBS="-ldl  $LIBS"
13264 cat >conftest.$ac_ext <<_ACEOF
13265 /* confdefs.h.  */
13266 _ACEOF
13267 cat confdefs.h >>conftest.$ac_ext
13268 cat >>conftest.$ac_ext <<_ACEOF
13269 /* end confdefs.h.  */
13270
13271 /* Override any gcc2 internal prototype to avoid an error.  */
13272 #ifdef __cplusplus
13273 extern "C"
13274 #endif
13275 /* We use char because int might match the return type of a gcc2
13276    builtin and then its argument prototype would still apply.  */
13277 char dlopen ();
13278 int
13279 main ()
13280 {
13281 dlopen ();
13282   ;
13283   return 0;
13284 }
13285 _ACEOF
13286 rm -f conftest.$ac_objext conftest$ac_exeext
13287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13288   (eval $ac_link) 2>conftest.er1
13289   ac_status=$?
13290   grep -v '^ *+' conftest.er1 >conftest.err
13291   rm -f conftest.er1
13292   cat conftest.err >&5
13293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294   (exit $ac_status); } &&
13295          { ac_try='test -z "$ac_c_werror_flag"
13296                          || test ! -s conftest.err'
13297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13298   (eval $ac_try) 2>&5
13299   ac_status=$?
13300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301   (exit $ac_status); }; } &&
13302          { ac_try='test -s conftest$ac_exeext'
13303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13304   (eval $ac_try) 2>&5
13305   ac_status=$?
13306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307   (exit $ac_status); }; }; then
13308   ac_cv_lib_dl_dlopen=yes
13309 else
13310   echo "$as_me: failed program was:" >&5
13311 sed 's/^/| /' conftest.$ac_ext >&5
13312
13313 ac_cv_lib_dl_dlopen=no
13314 fi
13315 rm -f conftest.err conftest.$ac_objext \
13316       conftest$ac_exeext conftest.$ac_ext
13317 LIBS=$ac_check_lib_save_LIBS
13318 fi
13319 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13320 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13321 if test $ac_cv_lib_dl_dlopen = yes; then
13322   AO_DL_LIBS="-ldl"
13323 else
13324
13325       { echo "$as_me:$LINENO: WARNING: could not find dlopen() needed by libao sound drivers
13326       your system may not be supported." >&5
13327 echo "$as_me: WARNING: could not find dlopen() needed by libao sound drivers
13328       your system may not be supported." >&2;}
13329
13330 fi
13331
13332
13333 fi
13334 done
13335
13336
13337   AO_LIBS="$AO_LIBS -lao $AO_DL_LIBS"
13338
13339   echo "$as_me:$LINENO: checking for ao" >&5
13340 echo $ECHO_N "checking for ao... $ECHO_C" >&6
13341   no_ao=""
13342
13343
13344   if test "x$enable_aotest" = "xyes" ; then
13345     ac_save_CFLAGS="$CFLAGS"
13346     ac_save_LIBS="$LIBS"
13347     CFLAGS="$CFLAGS $AO_CFLAGS"
13348     LIBS="$LIBS $AO_LIBS"
13349       rm -f conf.aotest
13350       if test "$cross_compiling" = yes; then
13351   echo $ac_n "cross compiling; assumed OK... $ac_c"
13352 else
13353   cat >conftest.$ac_ext <<_ACEOF
13354 /* confdefs.h.  */
13355 _ACEOF
13356 cat confdefs.h >>conftest.$ac_ext
13357 cat >>conftest.$ac_ext <<_ACEOF
13358 /* end confdefs.h.  */
13359
13360 #include <stdio.h>
13361 #include <stdlib.h>
13362 #include <string.h>
13363 #include <ao/ao.h>
13364
13365 int main ()
13366 {
13367   system("touch conf.aotest");
13368   return 0;
13369 }
13370
13371
13372 _ACEOF
13373 rm -f conftest$ac_exeext
13374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13375   (eval $ac_link) 2>&5
13376   ac_status=$?
13377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13380   (eval $ac_try) 2>&5
13381   ac_status=$?
13382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383   (exit $ac_status); }; }; then
13384   :
13385 else
13386   echo "$as_me: program exited with status $ac_status" >&5
13387 echo "$as_me: failed program was:" >&5
13388 sed 's/^/| /' conftest.$ac_ext >&5
13389
13390 ( exit $ac_status )
13391 no_ao=yes
13392 fi
13393 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13394 fi
13395        CFLAGS="$ac_save_CFLAGS"
13396        LIBS="$ac_save_LIBS"
13397   fi
13398
13399   if test "x$no_ao" = "x" ; then
13400      echo "$as_me:$LINENO: result: yes" >&5
13401 echo "${ECHO_T}yes" >&6
13402      :
13403   else
13404      echo "$as_me:$LINENO: result: no" >&5
13405 echo "${ECHO_T}no" >&6
13406      if test -f conf.aotest ; then
13407        :
13408      else
13409        echo "*** Could not run ao test program, checking why..."
13410        CFLAGS="$CFLAGS $AO_CFLAGS"
13411        LIBS="$LIBS $AO_LIBS"
13412        cat >conftest.$ac_ext <<_ACEOF
13413 /* confdefs.h.  */
13414 _ACEOF
13415 cat confdefs.h >>conftest.$ac_ext
13416 cat >>conftest.$ac_ext <<_ACEOF
13417 /* end confdefs.h.  */
13418
13419 #include <stdio.h>
13420 #include <ao/ao.h>
13421
13422 int
13423 main ()
13424 {
13425  return 0;
13426   ;
13427   return 0;
13428 }
13429 _ACEOF
13430 rm -f conftest.$ac_objext conftest$ac_exeext
13431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13432   (eval $ac_link) 2>conftest.er1
13433   ac_status=$?
13434   grep -v '^ *+' conftest.er1 >conftest.err
13435   rm -f conftest.er1
13436   cat conftest.err >&5
13437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438   (exit $ac_status); } &&
13439          { ac_try='test -z "$ac_c_werror_flag"
13440                          || test ! -s conftest.err'
13441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13442   (eval $ac_try) 2>&5
13443   ac_status=$?
13444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445   (exit $ac_status); }; } &&
13446          { ac_try='test -s conftest$ac_exeext'
13447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13448   (eval $ac_try) 2>&5
13449   ac_status=$?
13450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451   (exit $ac_status); }; }; then
13452    echo "*** The test program compiled, but did not run. This usually means"
13453        echo "*** that the run-time linker is not finding ao or finding the wrong"
13454        echo "*** version of ao. If it is not finding ao, you'll need to set your"
13455        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13456        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13457        echo "*** is required on your system"
13458        echo "***"
13459        echo "*** If you have an old version installed, it is best to remove it, although"
13460        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13461 else
13462   echo "$as_me: failed program was:" >&5
13463 sed 's/^/| /' conftest.$ac_ext >&5
13464
13465  echo "*** The test program failed to compile or link. See the file config.log for the"
13466        echo "*** exact error that occured. This usually means ao was incorrectly installed"
13467        echo "*** or that you have moved ao since it was installed."
13468 fi
13469 rm -f conftest.err conftest.$ac_objext \
13470       conftest$ac_exeext conftest.$ac_ext
13471        CFLAGS="$ac_save_CFLAGS"
13472        LIBS="$ac_save_LIBS"
13473      fi
13474      AO_CFLAGS=""
13475      AO_LIBS=""
13476      :
13477   fi
13478
13479
13480   rm -f conf.aotest
13481
13482   if test "x$no_ao" = "x" ; then
13483     # AC_MSG_RESULT(yes)
13484     EXTRADEFS="$EXTRADEFS -DAU_AO"
13485     SYSEXTRAS="$SYSEXTRAS ao_a.c"
13486     for f in $AO_CFLAGS; do
13487     case ".$f" in
13488         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
13489         *)              CFLAGS="$CPPFLAGS $f" ;;
13490     esac
13491 done
13492
13493     LIBS="$LIBS $AO_LIBS"
13494   else
13495     { echo "$as_me:$LINENO: WARNING: Couldn't configure libao." >&5
13496 echo "$as_me: WARNING: Couldn't configure libao." >&2;}
13497   fi
13498 else
13499   echo "$as_me:$LINENO: result: no" >&5
13500 echo "${ECHO_T}no" >&6
13501 fi
13502
13503 echo "$as_me:$LINENO: checking enable_audio=vorbis" >&5
13504 echo $ECHO_N "checking enable_audio=vorbis... $ECHO_C" >&6
13505 if test "x$au_enable_vorbis" = xyes; then
13506   echo "$as_me:$LINENO: result: yes, configuring vorbis" >&5
13507 echo "${ECHO_T}yes, configuring vorbis" >&6
13508
13509 # Check whether --with-ogg or --without-ogg was given.
13510 if test "${with_ogg+set}" = set; then
13511   withval="$with_ogg"
13512   ogg_prefix="$withval"
13513 else
13514   ogg_prefix=""
13515 fi;
13516
13517 # Check whether --with-ogg-libraries or --without-ogg-libraries was given.
13518 if test "${with_ogg_libraries+set}" = set; then
13519   withval="$with_ogg_libraries"
13520   ogg_libraries="$withval"
13521 else
13522   ogg_libraries=""
13523 fi;
13524
13525 # Check whether --with-ogg-includes or --without-ogg-includes was given.
13526 if test "${with_ogg_includes+set}" = set; then
13527   withval="$with_ogg_includes"
13528   ogg_includes="$withval"
13529 else
13530   ogg_includes=""
13531 fi;
13532 # Check whether --enable-oggtest or --disable-oggtest was given.
13533 if test "${enable_oggtest+set}" = set; then
13534   enableval="$enable_oggtest"
13535
13536 else
13537   enable_oggtest=yes
13538 fi;
13539
13540   if test "x$ogg_libraries" != "x" ; then
13541     OGG_LIBS="-L$ogg_libraries"
13542   elif test "x$ogg_prefix" != "x" ; then
13543     OGG_LIBS="-L$ogg_prefix/lib"
13544   elif test "x$prefix" != "xNONE" ; then
13545     OGG_LIBS="-L$prefix/lib"
13546   fi
13547
13548   OGG_LIBS="$OGG_LIBS -logg"
13549
13550   if test "x$ogg_includes" != "x" ; then
13551     OGG_CFLAGS="-I$ogg_includes"
13552   elif test "x$ogg_prefix" != "x" ; then
13553     OGG_CFLAGS="-I$ogg_prefix/include"
13554   elif test "x$prefix" != "xNONE"; then
13555     OGG_CFLAGS="-I$prefix/include"
13556   fi
13557
13558   echo "$as_me:$LINENO: checking for Ogg" >&5
13559 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6
13560   no_ogg=""
13561
13562
13563   if test "x$enable_oggtest" = "xyes" ; then
13564     ac_save_CFLAGS="$CFLAGS"
13565     ac_save_LIBS="$LIBS"
13566     CFLAGS="$CFLAGS $OGG_CFLAGS"
13567     LIBS="$LIBS $OGG_LIBS"
13568       rm -f conf.oggtest
13569       if test "$cross_compiling" = yes; then
13570   echo $ac_n "cross compiling; assumed OK... $ac_c"
13571 else
13572   cat >conftest.$ac_ext <<_ACEOF
13573 /* confdefs.h.  */
13574 _ACEOF
13575 cat confdefs.h >>conftest.$ac_ext
13576 cat >>conftest.$ac_ext <<_ACEOF
13577 /* end confdefs.h.  */
13578
13579 #include <stdio.h>
13580 #include <stdlib.h>
13581 #include <string.h>
13582 #include <ogg/ogg.h>
13583
13584 int main ()
13585 {
13586   system("touch conf.oggtest");
13587   return 0;
13588 }
13589
13590
13591 _ACEOF
13592 rm -f conftest$ac_exeext
13593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13594   (eval $ac_link) 2>&5
13595   ac_status=$?
13596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13599   (eval $ac_try) 2>&5
13600   ac_status=$?
13601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602   (exit $ac_status); }; }; then
13603   :
13604 else
13605   echo "$as_me: program exited with status $ac_status" >&5
13606 echo "$as_me: failed program was:" >&5
13607 sed 's/^/| /' conftest.$ac_ext >&5
13608
13609 ( exit $ac_status )
13610 no_ogg=yes
13611 fi
13612 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13613 fi
13614        CFLAGS="$ac_save_CFLAGS"
13615        LIBS="$ac_save_LIBS"
13616   fi
13617
13618   if test "x$no_ogg" = "x" ; then
13619      echo "$as_me:$LINENO: result: yes" >&5
13620 echo "${ECHO_T}yes" >&6
13621
13622
13623 # Check whether --with-vorbis or --without-vorbis was given.
13624 if test "${with_vorbis+set}" = set; then
13625   withval="$with_vorbis"
13626   vorbis_prefix="$withval"
13627 else
13628   vorbis_prefix=""
13629 fi;
13630
13631 # Check whether --with-vorbis-libraries or --without-vorbis-libraries was given.
13632 if test "${with_vorbis_libraries+set}" = set; then
13633   withval="$with_vorbis_libraries"
13634   vorbis_libraries="$withval"
13635 else
13636   vorbis_libraries=""
13637 fi;
13638
13639 # Check whether --with-vorbis-includes or --without-vorbis-includes was given.
13640 if test "${with_vorbis_includes+set}" = set; then
13641   withval="$with_vorbis_includes"
13642   vorbis_includes="$withval"
13643 else
13644   vorbis_includes=""
13645 fi;
13646 # Check whether --enable-vorbistest or --disable-vorbistest was given.
13647 if test "${enable_vorbistest+set}" = set; then
13648   enableval="$enable_vorbistest"
13649
13650 else
13651   enable_vorbistest=yes
13652 fi;
13653
13654   if test "x$vorbis_libraries" != "x" ; then
13655     VORBIS_LIBS="-L$vorbis_libraries"
13656   elif test "x$vorbis_prefix" != "x" ; then
13657     VORBIS_LIBS="-L$vorbis_prefix/lib"
13658   elif test "x$prefix" != "xNONE"; then
13659     VORBIS_LIBS="-L$prefix/lib"
13660   fi
13661
13662   VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
13663   VORBISFILE_LIBS="-lvorbisfile"
13664   VORBISENC_LIBS="-lvorbisenc"
13665
13666   if test "x$vorbis_includes" != "x" ; then
13667     VORBIS_CFLAGS="-I$vorbis_includes"
13668   elif test "x$vorbis_prefix" != "x" ; then
13669     VORBIS_CFLAGS="-I$vorbis_prefix/include"
13670   elif test "x$prefix" != "xNONE"; then
13671     VORBIS_CFLAGS="-I$prefix/include"
13672   fi
13673
13674
13675   echo "$as_me:$LINENO: checking for Vorbis" >&5
13676 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6
13677   no_vorbis=""
13678
13679
13680   if test "x$enable_vorbistest" = "xyes" ; then
13681     ac_save_CFLAGS="$CFLAGS"
13682     ac_save_LIBS="$LIBS"
13683     CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
13684     LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
13685       rm -f conf.vorbistest
13686       if test "$cross_compiling" = yes; then
13687   echo $ac_n "cross compiling; assumed OK... $ac_c"
13688 else
13689   cat >conftest.$ac_ext <<_ACEOF
13690 /* confdefs.h.  */
13691 _ACEOF
13692 cat confdefs.h >>conftest.$ac_ext
13693 cat >>conftest.$ac_ext <<_ACEOF
13694 /* end confdefs.h.  */
13695
13696 #include <stdio.h>
13697 #include <stdlib.h>
13698 #include <string.h>
13699 #include <vorbis/codec.h>
13700
13701 int main ()
13702 {
13703   system("touch conf.vorbistest");
13704   return 0;
13705 }
13706
13707
13708 _ACEOF
13709 rm -f conftest$ac_exeext
13710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13711   (eval $ac_link) 2>&5
13712   ac_status=$?
13713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13716   (eval $ac_try) 2>&5
13717   ac_status=$?
13718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719   (exit $ac_status); }; }; then
13720   :
13721 else
13722   echo "$as_me: program exited with status $ac_status" >&5
13723 echo "$as_me: failed program was:" >&5
13724 sed 's/^/| /' conftest.$ac_ext >&5
13725
13726 ( exit $ac_status )
13727 no_vorbis=yes
13728 fi
13729 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13730 fi
13731        CFLAGS="$ac_save_CFLAGS"
13732        LIBS="$ac_save_LIBS"
13733   fi
13734
13735   if test "x$no_vorbis" = "x" ; then
13736      echo "$as_me:$LINENO: result: yes" >&5
13737 echo "${ECHO_T}yes" >&6
13738
13739       have_vorbis=yes
13740       SYSEXTRAS="$SYSEXTRAS vorbis_a.c"
13741       EXTRADEFS="$EXTRADEFS -DAU_VORBIS $OGG_CFLAGS $VORBIS_CFLAGS"
13742       EXTRALIBS="$EXTRALIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
13743       if test "x$CYGNUS" = "xyes"; then
13744       EXTRADEFS="-DAU_VORBIS_DLL $EXTRADEFS"
13745           SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
13746       fi
13747       if test "x$MSYS" = "xyes"; then
13748       EXTRADEFS="-DAU_VORBIS_DLL $EXTRADEFS"
13749           SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
13750       fi
13751
13752   else
13753      echo "$as_me:$LINENO: result: no" >&5
13754 echo "${ECHO_T}no" >&6
13755      if test -f conf.vorbistest ; then
13756        :
13757      else
13758        echo "*** Could not run Vorbis test program, checking why..."
13759        CFLAGS="$CFLAGS $VORBIS_CFLAGS"
13760        LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
13761        cat >conftest.$ac_ext <<_ACEOF
13762 /* confdefs.h.  */
13763 _ACEOF
13764 cat confdefs.h >>conftest.$ac_ext
13765 cat >>conftest.$ac_ext <<_ACEOF
13766 /* end confdefs.h.  */
13767
13768 #include <stdio.h>
13769 #include <vorbis/codec.h>
13770
13771 int
13772 main ()
13773 {
13774  return 0;
13775   ;
13776   return 0;
13777 }
13778 _ACEOF
13779 rm -f conftest.$ac_objext conftest$ac_exeext
13780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13781   (eval $ac_link) 2>conftest.er1
13782   ac_status=$?
13783   grep -v '^ *+' conftest.er1 >conftest.err
13784   rm -f conftest.er1
13785   cat conftest.err >&5
13786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787   (exit $ac_status); } &&
13788          { ac_try='test -z "$ac_c_werror_flag"
13789                          || test ! -s conftest.err'
13790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13791   (eval $ac_try) 2>&5
13792   ac_status=$?
13793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794   (exit $ac_status); }; } &&
13795          { ac_try='test -s conftest$ac_exeext'
13796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13797   (eval $ac_try) 2>&5
13798   ac_status=$?
13799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800   (exit $ac_status); }; }; then
13801    echo "*** The test program compiled, but did not run. This usually means"
13802        echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
13803        echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
13804        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13805        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13806        echo "*** is required on your system"
13807        echo "***"
13808        echo "*** If you have an old version installed, it is best to remove it, although"
13809        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13810 else
13811   echo "$as_me: failed program was:" >&5
13812 sed 's/^/| /' conftest.$ac_ext >&5
13813
13814  echo "*** The test program failed to compile or link. See the file config.log for the"
13815        echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
13816        echo "*** or that you have moved Vorbis since it was installed."
13817 fi
13818 rm -f conftest.err conftest.$ac_objext \
13819       conftest$ac_exeext conftest.$ac_ext
13820        CFLAGS="$ac_save_CFLAGS"
13821        LIBS="$ac_save_LIBS"
13822      fi
13823      VORBIS_CFLAGS=""
13824      VORBIS_LIBS=""
13825      VORBISFILE_LIBS=""
13826      VORBISENC_LIBS=""
13827
13828       { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis, but ogg is there (???)" >&5
13829 echo "$as_me: WARNING: Unable to configure vorbis, but ogg is there (???)" >&2;}
13830
13831   fi
13832
13833
13834
13835
13836   rm -f conf.vorbistest
13837
13838
13839   else
13840      echo "$as_me:$LINENO: result: no" >&5
13841 echo "${ECHO_T}no" >&6
13842      if test -f conf.oggtest ; then
13843        :
13844      else
13845        echo "*** Could not run Ogg test program, checking why..."
13846        CFLAGS="$CFLAGS $OGG_CFLAGS"
13847        LIBS="$LIBS $OGG_LIBS"
13848        cat >conftest.$ac_ext <<_ACEOF
13849 /* confdefs.h.  */
13850 _ACEOF
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h.  */
13854
13855 #include <stdio.h>
13856 #include <ogg/ogg.h>
13857
13858 int
13859 main ()
13860 {
13861  return 0;
13862   ;
13863   return 0;
13864 }
13865 _ACEOF
13866 rm -f conftest.$ac_objext conftest$ac_exeext
13867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13868   (eval $ac_link) 2>conftest.er1
13869   ac_status=$?
13870   grep -v '^ *+' conftest.er1 >conftest.err
13871   rm -f conftest.er1
13872   cat conftest.err >&5
13873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874   (exit $ac_status); } &&
13875          { ac_try='test -z "$ac_c_werror_flag"
13876                          || test ! -s conftest.err'
13877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13878   (eval $ac_try) 2>&5
13879   ac_status=$?
13880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881   (exit $ac_status); }; } &&
13882          { ac_try='test -s conftest$ac_exeext'
13883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13884   (eval $ac_try) 2>&5
13885   ac_status=$?
13886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887   (exit $ac_status); }; }; then
13888    echo "*** The test program compiled, but did not run. This usually means"
13889        echo "*** that the run-time linker is not finding Ogg or finding the wrong"
13890        echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
13891        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13892        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13893        echo "*** is required on your system"
13894        echo "***"
13895        echo "*** If you have an old version installed, it is best to remove it, although"
13896        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13897 else
13898   echo "$as_me: failed program was:" >&5
13899 sed 's/^/| /' conftest.$ac_ext >&5
13900
13901  echo "*** The test program failed to compile or link. See the file config.log for the"
13902        echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
13903        echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
13904        echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
13905 fi
13906 rm -f conftest.err conftest.$ac_objext \
13907       conftest$ac_exeext conftest.$ac_ext
13908        CFLAGS="$ac_save_CFLAGS"
13909        LIBS="$ac_save_LIBS"
13910      fi
13911      OGG_CFLAGS=""
13912      OGG_LIBS=""
13913
13914     { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis!" >&5
13915 echo "$as_me: WARNING: Unable to configure vorbis!" >&2;}
13916     have_vorbis=no
13917
13918   fi
13919
13920
13921   rm -f conf.oggtest
13922
13923 else
13924   echo "$as_me:$LINENO: result: no" >&5
13925 echo "${ECHO_T}no" >&6
13926 fi
13927
13928 if test "x$CYGNUS" = xyes || test "x$MSYS" = xyes ; then
13929   echo "$as_me:$LINENO: checking enable_audio=flac" >&5
13930 echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6
13931   if test "x$au_enable_flac" = xyes; then
13932     echo "$as_me:$LINENO: result: yes, configuring flac" >&5
13933 echo "${ECHO_T}yes, configuring flac" >&6
13934     SYSEXTRAS="$SYSEXTRAS flac_a.c w32_libFLAC_dll.c w32_libOggFLAC_dll.c"
13935
13936 # Check whether --with-libFLAC or --without-libFLAC was given.
13937 if test "${with_libFLAC+set}" = set; then
13938   withval="$with_libFLAC"
13939   libFLAC_prefix="$withval"
13940 else
13941   libFLAC_prefix=""
13942 fi;
13943
13944 # Check whether --with-libFLAC-libraries or --without-libFLAC-libraries was given.
13945 if test "${with_libFLAC_libraries+set}" = set; then
13946   withval="$with_libFLAC_libraries"
13947   libFLAC_libraries="$withval"
13948 else
13949   libFLAC_libraries=""
13950 fi;
13951
13952 # Check whether --with-libFLAC-includes or --without-libFLAC-includes was given.
13953 if test "${with_libFLAC_includes+set}" = set; then
13954   withval="$with_libFLAC_includes"
13955   libFLAC_includes="$withval"
13956 else
13957   libFLAC_includes=""
13958 fi;
13959 # Check whether --enable-libFLACtest or --disable-libFLACtest was given.
13960 if test "${enable_libFLACtest+set}" = set; then
13961   enableval="$enable_libFLACtest"
13962
13963 else
13964   enable_libFLACtest=yes
13965 fi;
13966
13967   if test "x$libFLAC_libraries" != "x" ; then
13968     LIBFLAC_LIBS="-L$libFLAC_libraries"
13969   elif test "x$libFLAC_prefix" != "x" ; then
13970     LIBFLAC_LIBS="-L$libFLAC_prefix/lib"
13971   elif test "x$prefix" != "xNONE" ; then
13972     LIBFLAC_LIBS="-L$prefix/lib"
13973   fi
13974
13975   LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm"
13976
13977   if test "x$libFLAC_includes" != "x" ; then
13978     LIBFLAC_CFLAGS="-I$libFLAC_includes"
13979   elif test "x$libFLAC_prefix" != "x" ; then
13980     LIBFLAC_CFLAGS="-I$libFLAC_prefix/include"
13981   elif test "$prefix" != "xNONE"; then
13982     LIBFLAC_CFLAGS="-I$prefix/include"
13983   fi
13984
13985   echo "$as_me:$LINENO: checking for libFLAC" >&5
13986 echo $ECHO_N "checking for libFLAC... $ECHO_C" >&6
13987   no_libFLAC=""
13988
13989
13990   if test "x$enable_libFLACtest" = "xyes" ; then
13991     ac_save_CFLAGS="$CFLAGS"
13992     ac_save_CXXFLAGS="$CXXFLAGS"
13993     ac_save_LIBS="$LIBS"
13994     CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
13995     CXXFLAGS="$CXXFLAGS $LIBFLAC_CFLAGS"
13996     LIBS="$LIBS $LIBFLAC_LIBS"
13997       rm -f conf.libFLACtest
13998       if test "$cross_compiling" = yes; then
13999   echo $ac_n "cross compiling; assumed OK... $ac_c"
14000 else
14001   cat >conftest.$ac_ext <<_ACEOF
14002 /* confdefs.h.  */
14003 _ACEOF
14004 cat confdefs.h >>conftest.$ac_ext
14005 cat >>conftest.$ac_ext <<_ACEOF
14006 /* end confdefs.h.  */
14007
14008 #include <stdio.h>
14009 #include <stdlib.h>
14010 #include <string.h>
14011 #include <FLAC/format.h>
14012
14013 int main ()
14014 {
14015   system("touch conf.libFLACtest");
14016   return 0;
14017 }
14018
14019
14020 _ACEOF
14021 rm -f conftest$ac_exeext
14022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14023   (eval $ac_link) 2>&5
14024   ac_status=$?
14025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14028   (eval $ac_try) 2>&5
14029   ac_status=$?
14030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031   (exit $ac_status); }; }; then
14032   :
14033 else
14034   echo "$as_me: program exited with status $ac_status" >&5
14035 echo "$as_me: failed program was:" >&5
14036 sed 's/^/| /' conftest.$ac_ext >&5
14037
14038 ( exit $ac_status )
14039 no_libFLAC=yes
14040 fi
14041 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14042 fi
14043        CFLAGS="$ac_save_CFLAGS"
14044        LIBS="$ac_save_LIBS"
14045   fi
14046
14047   if test "x$no_libFLAC" = "x" ; then
14048      echo "$as_me:$LINENO: result: yes" >&5
14049 echo "${ECHO_T}yes" >&6
14050
14051       EXTRADEFS="$EXTRADEFS -DAU_FLAC -DAU_FLAC_DLL"
14052       for f in $LIBFLAC_CFLAGS; do
14053     case ".$f" in
14054         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14055         *)              CFLAGS="$CPPFLAGS $f" ;;
14056     esac
14057 done
14058
14059       LIBS="$LIBS $LIBFLAC_LIBS"
14060
14061   else
14062      echo "$as_me:$LINENO: result: no" >&5
14063 echo "${ECHO_T}no" >&6
14064      if test -f conf.libFLACtest ; then
14065        :
14066      else
14067        echo "*** Could not run libFLAC test program, checking why..."
14068        CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14069        LIBS="$LIBS $LIBFLAC_LIBS"
14070        cat >conftest.$ac_ext <<_ACEOF
14071 /* confdefs.h.  */
14072 _ACEOF
14073 cat confdefs.h >>conftest.$ac_ext
14074 cat >>conftest.$ac_ext <<_ACEOF
14075 /* end confdefs.h.  */
14076
14077 #include <stdio.h>
14078 #include <FLAC/format.h>
14079
14080 int
14081 main ()
14082 {
14083  return 0;
14084   ;
14085   return 0;
14086 }
14087 _ACEOF
14088 rm -f conftest.$ac_objext conftest$ac_exeext
14089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14090   (eval $ac_link) 2>conftest.er1
14091   ac_status=$?
14092   grep -v '^ *+' conftest.er1 >conftest.err
14093   rm -f conftest.er1
14094   cat conftest.err >&5
14095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096   (exit $ac_status); } &&
14097          { ac_try='test -z "$ac_c_werror_flag"
14098                          || test ! -s conftest.err'
14099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14100   (eval $ac_try) 2>&5
14101   ac_status=$?
14102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103   (exit $ac_status); }; } &&
14104          { ac_try='test -s conftest$ac_exeext'
14105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14106   (eval $ac_try) 2>&5
14107   ac_status=$?
14108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109   (exit $ac_status); }; }; then
14110    echo "*** The test program compiled, but did not run. This usually means"
14111        echo "*** that the run-time linker is not finding libFLAC or finding the wrong"
14112        echo "*** version of libFLAC. If it is not finding libFLAC, you'll need to set your"
14113        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14114        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14115        echo "*** is required on your system"
14116        echo "***"
14117        echo "*** If you have an old version installed, it is best to remove it, although"
14118        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14119 else
14120   echo "$as_me: failed program was:" >&5
14121 sed 's/^/| /' conftest.$ac_ext >&5
14122
14123  echo "*** The test program failed to compile or link. See the file config.log for the"
14124        echo "*** exact error that occured. This usually means libFLAC was incorrectly installed"
14125        echo "*** or that you have moved libFLAC since it was installed. In the latter case, you"
14126        echo "*** may want to edit the libFLAC-config script: $LIBFLAC_CONFIG"
14127 fi
14128 rm -f conftest.err conftest.$ac_objext \
14129       conftest$ac_exeext conftest.$ac_ext
14130        CFLAGS="$ac_save_CFLAGS"
14131        LIBS="$ac_save_LIBS"
14132      fi
14133      LIBFLAC_CFLAGS=""
14134      LIBFLAC_LIBS=""
14135      :
14136   fi
14137
14138
14139   rm -f conf.libFLACtest
14140
14141
14142 # Check whether --with-libOggFLAC or --without-libOggFLAC was given.
14143 if test "${with_libOggFLAC+set}" = set; then
14144   withval="$with_libOggFLAC"
14145   libOggFLAC_prefix="$withval"
14146 else
14147   libOggFLAC_prefix=""
14148 fi;
14149
14150 # Check whether --with-libOggFLAC-libraries or --without-libOggFLAC-libraries was given.
14151 if test "${with_libOggFLAC_libraries+set}" = set; then
14152   withval="$with_libOggFLAC_libraries"
14153   libOggFLAC_libraries="$withval"
14154 else
14155   libOggFLAC_libraries=""
14156 fi;
14157
14158 # Check whether --with-libOggFLAC-includes or --without-libOggFLAC-includes was given.
14159 if test "${with_libOggFLAC_includes+set}" = set; then
14160   withval="$with_libOggFLAC_includes"
14161   libOggFLAC_includes="$withval"
14162 else
14163   libOggFLAC_includes=""
14164 fi;
14165 # Check whether --enable-libOggFLACtest or --disable-libOggFLACtest was given.
14166 if test "${enable_libOggFLACtest+set}" = set; then
14167   enableval="$enable_libOggFLACtest"
14168
14169 else
14170   enable_libOggFLACtest=yes
14171 fi;
14172
14173   if test "x$libOggFLAC_libraries" != "x" ; then
14174     LIBOGGFLAC_LIBS="-L$libOggFLAC_libraries"
14175   elif test "x$libOggFLAC_prefix" != "x" ; then
14176     LIBOGGFLAC_LIBS="-L$libOggFLAC_prefix/lib"
14177   elif test "x$prefix" != "xNONE" ; then
14178     LIBOGGFLAC_LIBS="-L$prefix/lib"
14179   fi
14180
14181   LIBOGGFLAC_LIBS="$LIBOGGFLAC_LIBS -lOggFLAC -lFLAC -lm"
14182
14183   if test "x$libOggFLAC_includes" != "x" ; then
14184     LIBOGGFLAC_CFLAGS="-I$libOggFLAC_includes"
14185   elif test "x$libOggFLAC_prefix" != "x" ; then
14186     LIBOGGFLAC_CFLAGS="-I$libOggFLAC_prefix/include"
14187   elif test "$prefix" != "xNONE"; then
14188     LIBOGGFLAC_CFLAGS="-I$prefix/include"
14189   fi
14190
14191   echo "$as_me:$LINENO: checking for libOggFLAC" >&5
14192 echo $ECHO_N "checking for libOggFLAC... $ECHO_C" >&6
14193   no_libOggFLAC=""
14194
14195
14196   if test "x$enable_libOggFLACtest" = "xyes" ; then
14197     ac_save_CFLAGS="$CFLAGS"
14198     ac_save_CXXFLAGS="$CXXFLAGS"
14199     ac_save_LIBS="$LIBS"
14200     CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14201     CXXFLAGS="$CXXFLAGS $LIBOGGFLAC_CFLAGS"
14202     LIBS="$LIBS $LIBOGGFLAC_LIBS"
14203       rm -f conf.libOggFLACtest
14204       if test "$cross_compiling" = yes; then
14205   echo $ac_n "cross compiling; assumed OK... $ac_c"
14206 else
14207   cat >conftest.$ac_ext <<_ACEOF
14208 /* confdefs.h.  */
14209 _ACEOF
14210 cat confdefs.h >>conftest.$ac_ext
14211 cat >>conftest.$ac_ext <<_ACEOF
14212 /* end confdefs.h.  */
14213
14214 #include <stdio.h>
14215 #include <stdlib.h>
14216 #include <string.h>
14217 #include <OggFLAC/stream_decoder.h>
14218
14219 int main ()
14220 {
14221   system("touch conf.libOggFLACtest");
14222   return 0;
14223 }
14224
14225
14226 _ACEOF
14227 rm -f conftest$ac_exeext
14228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14229   (eval $ac_link) 2>&5
14230   ac_status=$?
14231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14234   (eval $ac_try) 2>&5
14235   ac_status=$?
14236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237   (exit $ac_status); }; }; then
14238   :
14239 else
14240   echo "$as_me: program exited with status $ac_status" >&5
14241 echo "$as_me: failed program was:" >&5
14242 sed 's/^/| /' conftest.$ac_ext >&5
14243
14244 ( exit $ac_status )
14245 no_libOggFLAC=yes
14246 fi
14247 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14248 fi
14249        CFLAGS="$ac_save_CFLAGS"
14250        LIBS="$ac_save_LIBS"
14251   fi
14252
14253   if test "x$no_libOggFLAC" = "x" ; then
14254      echo "$as_me:$LINENO: result: yes" >&5
14255 echo "${ECHO_T}yes" >&6
14256
14257       EXTRADEFS="$EXTRADEFS -DAU_OGGFLAC -DAU_OGGFLAC_DLL"
14258       for f in $LIBOGGFLAC_CFLAGS; do
14259     case ".$f" in
14260         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14261         *)              CFLAGS="$CPPFLAGS $f" ;;
14262     esac
14263 done
14264
14265       LIBS="$LIBS $LIBOGGFLAC_LIBS"
14266
14267   else
14268      echo "$as_me:$LINENO: result: no" >&5
14269 echo "${ECHO_T}no" >&6
14270      if test -f conf.libOggFLACtest ; then
14271        :
14272      else
14273        echo "*** Could not run libOggFLAC test program, checking why..."
14274        CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14275        LIBS="$LIBS $LIBOGGFLAC_LIBS"
14276        cat >conftest.$ac_ext <<_ACEOF
14277 /* confdefs.h.  */
14278 _ACEOF
14279 cat confdefs.h >>conftest.$ac_ext
14280 cat >>conftest.$ac_ext <<_ACEOF
14281 /* end confdefs.h.  */
14282
14283 #include <stdio.h>
14284 #include <OggFLAC/stream_decoder.h>
14285
14286 int
14287 main ()
14288 {
14289  return 0;
14290   ;
14291   return 0;
14292 }
14293 _ACEOF
14294 rm -f conftest.$ac_objext conftest$ac_exeext
14295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14296   (eval $ac_link) 2>conftest.er1
14297   ac_status=$?
14298   grep -v '^ *+' conftest.er1 >conftest.err
14299   rm -f conftest.er1
14300   cat conftest.err >&5
14301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302   (exit $ac_status); } &&
14303          { ac_try='test -z "$ac_c_werror_flag"
14304                          || test ! -s conftest.err'
14305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14306   (eval $ac_try) 2>&5
14307   ac_status=$?
14308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309   (exit $ac_status); }; } &&
14310          { ac_try='test -s conftest$ac_exeext'
14311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14312   (eval $ac_try) 2>&5
14313   ac_status=$?
14314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315   (exit $ac_status); }; }; then
14316    echo "*** The test program compiled, but did not run. This usually means"
14317        echo "*** that the run-time linker is not finding libOggFLAC or finding the wrong"
14318        echo "*** version of libOggFLAC. If it is not finding libOggFLAC, you'll need to set your"
14319        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14320        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14321        echo "*** is required on your system"
14322        echo "***"
14323        echo "*** If you have an old version installed, it is best to remove it, although"
14324        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14325 else
14326   echo "$as_me: failed program was:" >&5
14327 sed 's/^/| /' conftest.$ac_ext >&5
14328
14329  echo "*** The test program failed to compile or link. See the file config.log for the"
14330        echo "*** exact error that occured. This usually means libOggFLAC was incorrectly installed"
14331        echo "*** or that you have moved libOggFLAC since it was installed. In the latter case, you"
14332        echo "*** may want to edit the libOggFLAC-config script: $LIBOGGFLAC_CONFIG"
14333 fi
14334 rm -f conftest.err conftest.$ac_objext \
14335       conftest$ac_exeext conftest.$ac_ext
14336        CFLAGS="$ac_save_CFLAGS"
14337        LIBS="$ac_save_LIBS"
14338      fi
14339      LIBOGGFLAC_CFLAGS=""
14340      LIBOGGFLAC_LIBS=""
14341      :
14342   fi
14343
14344
14345   rm -f conf.libOggFLACtest
14346
14347   else
14348     echo "$as_me:$LINENO: result: no" >&5
14349 echo "${ECHO_T}no" >&6
14350   fi
14351 else
14352   echo "$as_me:$LINENO: checking enable_audio=flac" >&5
14353 echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6
14354   if test "x$au_enable_flac" = xyes; then
14355     echo "$as_me:$LINENO: result: yes, configuring flac" >&5
14356 echo "${ECHO_T}yes, configuring flac" >&6
14357     SYSEXTRAS="$SYSEXTRAS flac_a.c"
14358
14359 # Check whether --with-libFLAC or --without-libFLAC was given.
14360 if test "${with_libFLAC+set}" = set; then
14361   withval="$with_libFLAC"
14362   libFLAC_prefix="$withval"
14363 else
14364   libFLAC_prefix=""
14365 fi;
14366
14367 # Check whether --with-libFLAC-libraries or --without-libFLAC-libraries was given.
14368 if test "${with_libFLAC_libraries+set}" = set; then
14369   withval="$with_libFLAC_libraries"
14370   libFLAC_libraries="$withval"
14371 else
14372   libFLAC_libraries=""
14373 fi;
14374
14375 # Check whether --with-libFLAC-includes or --without-libFLAC-includes was given.
14376 if test "${with_libFLAC_includes+set}" = set; then
14377   withval="$with_libFLAC_includes"
14378   libFLAC_includes="$withval"
14379 else
14380   libFLAC_includes=""
14381 fi;
14382 # Check whether --enable-libFLACtest or --disable-libFLACtest was given.
14383 if test "${enable_libFLACtest+set}" = set; then
14384   enableval="$enable_libFLACtest"
14385
14386 else
14387   enable_libFLACtest=yes
14388 fi;
14389
14390   if test "x$libFLAC_libraries" != "x" ; then
14391     LIBFLAC_LIBS="-L$libFLAC_libraries"
14392   elif test "x$libFLAC_prefix" != "x" ; then
14393     LIBFLAC_LIBS="-L$libFLAC_prefix/lib"
14394   elif test "x$prefix" != "xNONE" ; then
14395     LIBFLAC_LIBS="-L$prefix/lib"
14396   fi
14397
14398   LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm"
14399
14400   if test "x$libFLAC_includes" != "x" ; then
14401     LIBFLAC_CFLAGS="-I$libFLAC_includes"
14402   elif test "x$libFLAC_prefix" != "x" ; then
14403     LIBFLAC_CFLAGS="-I$libFLAC_prefix/include"
14404   elif test "$prefix" != "xNONE"; then
14405     LIBFLAC_CFLAGS="-I$prefix/include"
14406   fi
14407
14408   echo "$as_me:$LINENO: checking for libFLAC" >&5
14409 echo $ECHO_N "checking for libFLAC... $ECHO_C" >&6
14410   no_libFLAC=""
14411
14412
14413   if test "x$enable_libFLACtest" = "xyes" ; then
14414     ac_save_CFLAGS="$CFLAGS"
14415     ac_save_CXXFLAGS="$CXXFLAGS"
14416     ac_save_LIBS="$LIBS"
14417     CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14418     CXXFLAGS="$CXXFLAGS $LIBFLAC_CFLAGS"
14419     LIBS="$LIBS $LIBFLAC_LIBS"
14420       rm -f conf.libFLACtest
14421       if test "$cross_compiling" = yes; then
14422   echo $ac_n "cross compiling; assumed OK... $ac_c"
14423 else
14424   cat >conftest.$ac_ext <<_ACEOF
14425 /* confdefs.h.  */
14426 _ACEOF
14427 cat confdefs.h >>conftest.$ac_ext
14428 cat >>conftest.$ac_ext <<_ACEOF
14429 /* end confdefs.h.  */
14430
14431 #include <stdio.h>
14432 #include <stdlib.h>
14433 #include <string.h>
14434 #include <FLAC/format.h>
14435
14436 int main ()
14437 {
14438   system("touch conf.libFLACtest");
14439   return 0;
14440 }
14441
14442
14443 _ACEOF
14444 rm -f conftest$ac_exeext
14445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14446   (eval $ac_link) 2>&5
14447   ac_status=$?
14448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14451   (eval $ac_try) 2>&5
14452   ac_status=$?
14453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454   (exit $ac_status); }; }; then
14455   :
14456 else
14457   echo "$as_me: program exited with status $ac_status" >&5
14458 echo "$as_me: failed program was:" >&5
14459 sed 's/^/| /' conftest.$ac_ext >&5
14460
14461 ( exit $ac_status )
14462 no_libFLAC=yes
14463 fi
14464 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14465 fi
14466        CFLAGS="$ac_save_CFLAGS"
14467        LIBS="$ac_save_LIBS"
14468   fi
14469
14470   if test "x$no_libFLAC" = "x" ; then
14471      echo "$as_me:$LINENO: result: yes" >&5
14472 echo "${ECHO_T}yes" >&6
14473
14474       EXTRADEFS="$EXTRADEFS -DAU_FLAC"
14475       for f in $LIBFLAC_CFLAGS; do
14476     case ".$f" in
14477         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14478         *)              CFLAGS="$CPPFLAGS $f" ;;
14479     esac
14480 done
14481
14482       LIBS="$LIBS $LIBFLAC_LIBS"
14483
14484   else
14485      echo "$as_me:$LINENO: result: no" >&5
14486 echo "${ECHO_T}no" >&6
14487      if test -f conf.libFLACtest ; then
14488        :
14489      else
14490        echo "*** Could not run libFLAC test program, checking why..."
14491        CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14492        LIBS="$LIBS $LIBFLAC_LIBS"
14493        cat >conftest.$ac_ext <<_ACEOF
14494 /* confdefs.h.  */
14495 _ACEOF
14496 cat confdefs.h >>conftest.$ac_ext
14497 cat >>conftest.$ac_ext <<_ACEOF
14498 /* end confdefs.h.  */
14499
14500 #include <stdio.h>
14501 #include <FLAC/format.h>
14502
14503 int
14504 main ()
14505 {
14506  return 0;
14507   ;
14508   return 0;
14509 }
14510 _ACEOF
14511 rm -f conftest.$ac_objext conftest$ac_exeext
14512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14513   (eval $ac_link) 2>conftest.er1
14514   ac_status=$?
14515   grep -v '^ *+' conftest.er1 >conftest.err
14516   rm -f conftest.er1
14517   cat conftest.err >&5
14518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519   (exit $ac_status); } &&
14520          { ac_try='test -z "$ac_c_werror_flag"
14521                          || test ! -s conftest.err'
14522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14523   (eval $ac_try) 2>&5
14524   ac_status=$?
14525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526   (exit $ac_status); }; } &&
14527          { ac_try='test -s conftest$ac_exeext'
14528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14529   (eval $ac_try) 2>&5
14530   ac_status=$?
14531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532   (exit $ac_status); }; }; then
14533    echo "*** The test program compiled, but did not run. This usually means"
14534        echo "*** that the run-time linker is not finding libFLAC or finding the wrong"
14535        echo "*** version of libFLAC. If it is not finding libFLAC, you'll need to set your"
14536        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14537        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14538        echo "*** is required on your system"
14539        echo "***"
14540        echo "*** If you have an old version installed, it is best to remove it, although"
14541        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14542 else
14543   echo "$as_me: failed program was:" >&5
14544 sed 's/^/| /' conftest.$ac_ext >&5
14545
14546  echo "*** The test program failed to compile or link. See the file config.log for the"
14547        echo "*** exact error that occured. This usually means libFLAC was incorrectly installed"
14548        echo "*** or that you have moved libFLAC since it was installed. In the latter case, you"
14549        echo "*** may want to edit the libFLAC-config script: $LIBFLAC_CONFIG"
14550 fi
14551 rm -f conftest.err conftest.$ac_objext \
14552       conftest$ac_exeext conftest.$ac_ext
14553        CFLAGS="$ac_save_CFLAGS"
14554        LIBS="$ac_save_LIBS"
14555      fi
14556      LIBFLAC_CFLAGS=""
14557      LIBFLAC_LIBS=""
14558      :
14559   fi
14560
14561
14562   rm -f conf.libFLACtest
14563
14564
14565 # Check whether --with-libOggFLAC or --without-libOggFLAC was given.
14566 if test "${with_libOggFLAC+set}" = set; then
14567   withval="$with_libOggFLAC"
14568   libOggFLAC_prefix="$withval"
14569 else
14570   libOggFLAC_prefix=""
14571 fi;
14572
14573 # Check whether --with-libOggFLAC-libraries or --without-libOggFLAC-libraries was given.
14574 if test "${with_libOggFLAC_libraries+set}" = set; then
14575   withval="$with_libOggFLAC_libraries"
14576   libOggFLAC_libraries="$withval"
14577 else
14578   libOggFLAC_libraries=""
14579 fi;
14580
14581 # Check whether --with-libOggFLAC-includes or --without-libOggFLAC-includes was given.
14582 if test "${with_libOggFLAC_includes+set}" = set; then
14583   withval="$with_libOggFLAC_includes"
14584   libOggFLAC_includes="$withval"
14585 else
14586   libOggFLAC_includes=""
14587 fi;
14588 # Check whether --enable-libOggFLACtest or --disable-libOggFLACtest was given.
14589 if test "${enable_libOggFLACtest+set}" = set; then
14590   enableval="$enable_libOggFLACtest"
14591
14592 else
14593   enable_libOggFLACtest=yes
14594 fi;
14595
14596   if test "x$libOggFLAC_libraries" != "x" ; then
14597     LIBOGGFLAC_LIBS="-L$libOggFLAC_libraries"
14598   elif test "x$libOggFLAC_prefix" != "x" ; then
14599     LIBOGGFLAC_LIBS="-L$libOggFLAC_prefix/lib"
14600   elif test "x$prefix" != "xNONE" ; then
14601     LIBOGGFLAC_LIBS="-L$prefix/lib"
14602   fi
14603
14604   LIBOGGFLAC_LIBS="$LIBOGGFLAC_LIBS -lOggFLAC -lFLAC -lm"
14605
14606   if test "x$libOggFLAC_includes" != "x" ; then
14607     LIBOGGFLAC_CFLAGS="-I$libOggFLAC_includes"
14608   elif test "x$libOggFLAC_prefix" != "x" ; then
14609     LIBOGGFLAC_CFLAGS="-I$libOggFLAC_prefix/include"
14610   elif test "$prefix" != "xNONE"; then
14611     LIBOGGFLAC_CFLAGS="-I$prefix/include"
14612   fi
14613
14614   echo "$as_me:$LINENO: checking for libOggFLAC" >&5
14615 echo $ECHO_N "checking for libOggFLAC... $ECHO_C" >&6
14616   no_libOggFLAC=""
14617
14618
14619   if test "x$enable_libOggFLACtest" = "xyes" ; then
14620     ac_save_CFLAGS="$CFLAGS"
14621     ac_save_CXXFLAGS="$CXXFLAGS"
14622     ac_save_LIBS="$LIBS"
14623     CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14624     CXXFLAGS="$CXXFLAGS $LIBOGGFLAC_CFLAGS"
14625     LIBS="$LIBS $LIBOGGFLAC_LIBS"
14626       rm -f conf.libOggFLACtest
14627       if test "$cross_compiling" = yes; then
14628   echo $ac_n "cross compiling; assumed OK... $ac_c"
14629 else
14630   cat >conftest.$ac_ext <<_ACEOF
14631 /* confdefs.h.  */
14632 _ACEOF
14633 cat confdefs.h >>conftest.$ac_ext
14634 cat >>conftest.$ac_ext <<_ACEOF
14635 /* end confdefs.h.  */
14636
14637 #include <stdio.h>
14638 #include <stdlib.h>
14639 #include <string.h>
14640 #include <OggFLAC/stream_decoder.h>
14641
14642 int main ()
14643 {
14644   system("touch conf.libOggFLACtest");
14645   return 0;
14646 }
14647
14648
14649 _ACEOF
14650 rm -f conftest$ac_exeext
14651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14652   (eval $ac_link) 2>&5
14653   ac_status=$?
14654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14657   (eval $ac_try) 2>&5
14658   ac_status=$?
14659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660   (exit $ac_status); }; }; then
14661   :
14662 else
14663   echo "$as_me: program exited with status $ac_status" >&5
14664 echo "$as_me: failed program was:" >&5
14665 sed 's/^/| /' conftest.$ac_ext >&5
14666
14667 ( exit $ac_status )
14668 no_libOggFLAC=yes
14669 fi
14670 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14671 fi
14672        CFLAGS="$ac_save_CFLAGS"
14673        LIBS="$ac_save_LIBS"
14674   fi
14675
14676   if test "x$no_libOggFLAC" = "x" ; then
14677      echo "$as_me:$LINENO: result: yes" >&5
14678 echo "${ECHO_T}yes" >&6
14679
14680       EXTRADEFS="$EXTRADEFS -DAU_OGGFLAC"
14681       for f in $LIBOGGFLAC_CFLAGS; do
14682     case ".$f" in
14683         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14684         *)              CFLAGS="$CPPFLAGS $f" ;;
14685     esac
14686 done
14687
14688       LIBS="$LIBS $LIBOGGFLAC_LIBS"
14689
14690   else
14691      echo "$as_me:$LINENO: result: no" >&5
14692 echo "${ECHO_T}no" >&6
14693      if test -f conf.libOggFLACtest ; then
14694        :
14695      else
14696        echo "*** Could not run libOggFLAC test program, checking why..."
14697        CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14698        LIBS="$LIBS $LIBOGGFLAC_LIBS"
14699        cat >conftest.$ac_ext <<_ACEOF
14700 /* confdefs.h.  */
14701 _ACEOF
14702 cat confdefs.h >>conftest.$ac_ext
14703 cat >>conftest.$ac_ext <<_ACEOF
14704 /* end confdefs.h.  */
14705
14706 #include <stdio.h>
14707 #include <OggFLAC/stream_decoder.h>
14708
14709 int
14710 main ()
14711 {
14712  return 0;
14713   ;
14714   return 0;
14715 }
14716 _ACEOF
14717 rm -f conftest.$ac_objext conftest$ac_exeext
14718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14719   (eval $ac_link) 2>conftest.er1
14720   ac_status=$?
14721   grep -v '^ *+' conftest.er1 >conftest.err
14722   rm -f conftest.er1
14723   cat conftest.err >&5
14724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725   (exit $ac_status); } &&
14726          { ac_try='test -z "$ac_c_werror_flag"
14727                          || test ! -s conftest.err'
14728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14729   (eval $ac_try) 2>&5
14730   ac_status=$?
14731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732   (exit $ac_status); }; } &&
14733          { ac_try='test -s conftest$ac_exeext'
14734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735   (eval $ac_try) 2>&5
14736   ac_status=$?
14737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738   (exit $ac_status); }; }; then
14739    echo "*** The test program compiled, but did not run. This usually means"
14740        echo "*** that the run-time linker is not finding libOggFLAC or finding the wrong"
14741        echo "*** version of libOggFLAC. If it is not finding libOggFLAC, you'll need to set your"
14742        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14743        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14744        echo "*** is required on your system"
14745        echo "***"
14746        echo "*** If you have an old version installed, it is best to remove it, although"
14747        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14748 else
14749   echo "$as_me: failed program was:" >&5
14750 sed 's/^/| /' conftest.$ac_ext >&5
14751
14752  echo "*** The test program failed to compile or link. See the file config.log for the"
14753        echo "*** exact error that occured. This usually means libOggFLAC was incorrectly installed"
14754        echo "*** or that you have moved libOggFLAC since it was installed. In the latter case, you"
14755        echo "*** may want to edit the libOggFLAC-config script: $LIBOGGFLAC_CONFIG"
14756 fi
14757 rm -f conftest.err conftest.$ac_objext \
14758       conftest$ac_exeext conftest.$ac_ext
14759        CFLAGS="$ac_save_CFLAGS"
14760        LIBS="$ac_save_LIBS"
14761      fi
14762      LIBOGGFLAC_CFLAGS=""
14763      LIBOGGFLAC_LIBS=""
14764      :
14765   fi
14766
14767
14768   rm -f conf.libOggFLACtest
14769
14770   else
14771     echo "$as_me:$LINENO: result: no" >&5
14772 echo "${ECHO_T}no" >&6
14773   fi
14774 fi
14775 echo "$as_me:$LINENO: checking enable_audio=speex" >&5
14776 echo $ECHO_N "checking enable_audio=speex... $ECHO_C" >&6
14777 if test "x$au_enable_speex" = xyes; then
14778   if test "${have_speex+set}" = set; then
14779   echo $ECHO_N "(cached) $ECHO_C" >&6
14780 else
14781   cat >conftest.$ac_ext <<_ACEOF
14782 /* confdefs.h.  */
14783 _ACEOF
14784 cat confdefs.h >>conftest.$ac_ext
14785 cat >>conftest.$ac_ext <<_ACEOF
14786 /* end confdefs.h.  */
14787
14788   #include <speex.h>
14789   #include <ogg/ogg.h>
14790
14791 int
14792 main ()
14793 {
14794
14795     SpeexBits *dummy;
14796
14797   ;
14798   return 0;
14799 }
14800 _ACEOF
14801 rm -f conftest.$ac_objext conftest$ac_exeext
14802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14803   (eval $ac_link) 2>conftest.er1
14804   ac_status=$?
14805   grep -v '^ *+' conftest.er1 >conftest.err
14806   rm -f conftest.er1
14807   cat conftest.err >&5
14808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809   (exit $ac_status); } &&
14810          { ac_try='test -z "$ac_c_werror_flag"
14811                          || test ! -s conftest.err'
14812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14813   (eval $ac_try) 2>&5
14814   ac_status=$?
14815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816   (exit $ac_status); }; } &&
14817          { ac_try='test -s conftest$ac_exeext'
14818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14819   (eval $ac_try) 2>&5
14820   ac_status=$?
14821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822   (exit $ac_status); }; }; then
14823   have_speex=yes
14824 else
14825   echo "$as_me: failed program was:" >&5
14826 sed 's/^/| /' conftest.$ac_ext >&5
14827
14828 have_speex=no
14829 fi
14830 rm -f conftest.err conftest.$ac_objext \
14831       conftest$ac_exeext conftest.$ac_ext
14832 fi
14833
14834   echo "$as_me:$LINENO: result: $have_speex" >&5
14835 echo "${ECHO_T}$have_speex" >&6
14836   if test "x$have_speex" = xyes; then
14837     SYSEXTRAS="$SYSEXTRAS speex_a.c"
14838     EXTRALIBS="$EXTRALIBS -lspeex -logg"
14839     EXTRADEFS="$EXTRADEFS -DAU_SPEEX"
14840   fi
14841 else
14842   echo "$as_me:$LINENO: result: no" >&5
14843 echo "${ECHO_T}no" >&6
14844 fi
14845
14846 echo "$as_me:$LINENO: checking enable_audio=gogo" >&5
14847 echo $ECHO_N "checking enable_audio=gogo... $ECHO_C" >&6
14848 if test "x$au_enable_gogo" = xyes; then
14849   if test "x$CYGNUS" = "xyes"; then
14850     echo "$as_me:$LINENO: result: yes" >&5
14851 echo "${ECHO_T}yes" >&6
14852   else
14853     if test "x$MSYS" = "xyes"; then
14854     echo "$as_me:$LINENO: result: yes" >&5
14855 echo "${ECHO_T}yes" >&6
14856     else
14857       { echo "$as_me:$LINENO: WARNING: May be gogo is not supported.  You need hack the gogo_a.c" >&5
14858 echo "$as_me: WARNING: May be gogo is not supported.  You need hack the gogo_a.c" >&2;}
14859     fi
14860   fi
14861   have_gogo=yes
14862   SYSEXTRAS="$SYSEXTRAS gogo_a.c w32_gogo.c"
14863   EXTRADEFS="$EXTRADEFS -DAU_GOGO -DAU_GOGO_DLL"
14864   EXTRALIBS="$EXTRALIBS -lgogo"
14865 else
14866   echo "$as_me:$LINENO: result: no" >&5
14867 echo "${ECHO_T}no" >&6
14868 fi
14869
14870 if test "x$au_enable_none" = xyes; then
14871     EXTRADEFS="$EXTRADEFS -DAU_NONE -DAU_AUDRIV"
14872     SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_none.c"
14873 fi
14874 echo "$as_me:$LINENO: checking default output mode" >&5
14875 echo $ECHO_N "checking default output mode... $ECHO_C" >&6
14876 if test "x$DEFAULT_PLAYMODE" = x; then
14877   DEFAULT_PLAYMODE=`echo $enable_audio | sed 's/,.*//'`
14878 fi
14879 case ".$DEFAULT_PLAYMODE" in
14880   .default)  TIMIDITY_OUTPUT_ID=d ;;
14881   .oss)      TIMIDITY_OUTPUT_ID=d ;;
14882   .alsa)     TIMIDITY_OUTPUT_ID=s ;;
14883   .sun)      TIMIDITY_OUTPUT_ID=d ;;
14884   .hpux)     TIMIDITY_OUTPUT_ID=d ;;
14885   .irix)     TIMIDITY_OUTPUT_ID=d ;;
14886   .mme)      TIMIDITY_OUTPUT_ID=d ;;
14887   .sb_dsp)   TIMIDITY_OUTPUT_ID=d ;;
14888   .darwin)   TIMIDITY_OUTPUT_ID=d ;;
14889   .w32)      TIMIDITY_OUTPUT_ID=d ;;
14890   .alib)     TIMIDITY_OUTPUT_ID=A ;;
14891   .nas)      TIMIDITY_OUTPUT_ID=n ;;
14892   .arts)     TIMIDITY_OUTPUT_ID=R ;;
14893   .esd)      TIMIDITY_OUTPUT_ID=e ;;
14894   .portaudio)      TIMIDITY_OUTPUT_ID=p ;;
14895   .wav)      TIMIDITY_OUTPUT_ID=w ;;
14896   .au)       TIMIDITY_OUTPUT_ID=u ;;
14897   .aiff)     TIMIDITY_OUTPUT_ID=a ;;
14898   .list)     TIMIDITY_OUTPUT_ID=l ;;
14899   .vorbis)   TIMIDITY_OUTPUT_ID=v ;;
14900   .flac)     TIMIDITY_OUTPUT_ID=F ;;
14901   .speex)    TIMIDITY_OUTPUT_ID=S ;;
14902   .gogo)     TIMIDITY_OUTPUT_ID=g ;;
14903   .jack)     TIMIDITY_OUTPUT_ID=j ;;
14904   *)         TIMIDITY_OUTPUT_ID= ;;
14905 esac
14906 echo "$as_me:$LINENO: result: $DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&5
14907 echo "${ECHO_T}$DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&6
14908
14909 #
14910 # Interface Section
14911 #
14912
14913 interface_targets='dynamic ncurses slang motif tcltk emacs vt100 xaw xskin gtk alsaseq winsyn winsyng portmidisyng'
14914
14915 # Check whether --enable-interface or --disable-interface was given.
14916 if test "${enable_interface+set}" = set; then
14917   enableval="$enable_interface"
14918    for i in `echo $enableval | sed 's/,/ /g'`; do
14919       eval "enable_$i=yes"
14920     done
14921 fi;
14922
14923 #  Dynamic link configuration
14924 # Check whether --enable-dynamic or --disable-dynamic was given.
14925 if test "${enable_dynamic+set}" = set; then
14926   enableval="$enable_dynamic"
14927        if test "x$enable_dynamic" = xyes; then
14928       enable_dynamic=dynamic
14929     elif test "x$enable_dynamic" != xno; then
14930       for i in `echo $enableval | sed 's/,/ /g'`; do
14931         eval "enable_$i=dynamic"
14932       done
14933     fi
14934 fi;
14935
14936 join_targets=
14937 for i in $interface_targets; do
14938   eval "join_targets=$join_targets\$enable_$i"
14939 done
14940
14941 case ".$join_targets" in
14942 .*dynamic*) NEEDDLOPEN=yes;;
14943 *)          NEEDDLOPEN=no;;
14944 esac
14945
14946 if test "x$GCC" = xyes; then SHCFLAGS="$SHCFLAGS -fPIC"; fi
14947 case "x$enable_ump" in xyes|xdynamic) EXTRACFLAGS="$EXTRACFLAGS -DXP_UNIX $SHCFLAGS";; esac
14948
14949 if test "$NEEDDLOPEN" = "yes"; then
14950   have_dl=no
14951
14952   echo "$as_me:$LINENO: checking for LoadLibrary" >&5
14953 echo $ECHO_N "checking for LoadLibrary... $ECHO_C" >&6
14954 if test "${wapi_cv_func_LoadLibrary+set}" = set; then
14955   echo $ECHO_N "(cached) $ECHO_C" >&6
14956 else
14957   cat >conftest.$ac_ext <<_ACEOF
14958 /* confdefs.h.  */
14959 _ACEOF
14960 cat confdefs.h >>conftest.$ac_ext
14961 cat >>conftest.$ac_ext <<_ACEOF
14962 /* end confdefs.h.  */
14963 #include <windows.h>
14964
14965
14966 int
14967 main ()
14968 {
14969 LoadLibrary(0);
14970   ;
14971   return 0;
14972 }
14973 _ACEOF
14974 rm -f conftest.$ac_objext conftest$ac_exeext
14975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14976   (eval $ac_link) 2>conftest.er1
14977   ac_status=$?
14978   grep -v '^ *+' conftest.er1 >conftest.err
14979   rm -f conftest.er1
14980   cat conftest.err >&5
14981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982   (exit $ac_status); } &&
14983          { ac_try='test -z "$ac_c_werror_flag"
14984                          || test ! -s conftest.err'
14985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14986   (eval $ac_try) 2>&5
14987   ac_status=$?
14988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989   (exit $ac_status); }; } &&
14990          { ac_try='test -s conftest$ac_exeext'
14991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14992   (eval $ac_try) 2>&5
14993   ac_status=$?
14994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995   (exit $ac_status); }; }; then
14996   wapi_cv_func_LoadLibrary=yes
14997 else
14998   echo "$as_me: failed program was:" >&5
14999 sed 's/^/| /' conftest.$ac_ext >&5
15000
15001 wapi_cv_func_LoadLibrary=no
15002 fi
15003 rm -f conftest.err conftest.$ac_objext \
15004       conftest$ac_exeext conftest.$ac_ext
15005 fi
15006
15007 if eval "test \"`echo '$wapi_cv_func_'LoadLibrary`\" = yes"; then
15008   echo "$as_me:$LINENO: result: yes" >&5
15009 echo "${ECHO_T}yes" >&6
15010   have_dl=w32
15011 else
15012   echo "$as_me:$LINENO: result: no" >&5
15013 echo "${ECHO_T}no" >&6
15014 fi
15015
15016   test $wapi_cv_func_LoadLibrary = yes && have_dl=w32
15017
15018   if test "$have_dl" = "no"; then
15019     echo "$as_me:$LINENO: checking for shl_load" >&5
15020 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15021 if test "${ac_cv_func_shl_load+set}" = set; then
15022   echo $ECHO_N "(cached) $ECHO_C" >&6
15023 else
15024   cat >conftest.$ac_ext <<_ACEOF
15025 /* confdefs.h.  */
15026 _ACEOF
15027 cat confdefs.h >>conftest.$ac_ext
15028 cat >>conftest.$ac_ext <<_ACEOF
15029 /* end confdefs.h.  */
15030 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15031    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15032 #define shl_load innocuous_shl_load
15033
15034 /* System header to define __stub macros and hopefully few prototypes,
15035     which can conflict with char shl_load (); below.
15036     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15037     <limits.h> exists even on freestanding compilers.  */
15038
15039 #ifdef __STDC__
15040 # include <limits.h>
15041 #else
15042 # include <assert.h>
15043 #endif
15044
15045 #undef shl_load
15046
15047 /* Override any gcc2 internal prototype to avoid an error.  */
15048 #ifdef __cplusplus
15049 extern "C"
15050 {
15051 #endif
15052 /* We use char because int might match the return type of a gcc2
15053    builtin and then its argument prototype would still apply.  */
15054 char shl_load ();
15055 /* The GNU C library defines this for functions which it implements
15056     to always fail with ENOSYS.  Some functions are actually named
15057     something starting with __ and the normal name is an alias.  */
15058 #if defined (__stub_shl_load) || defined (__stub___shl_load)
15059 choke me
15060 #else
15061 char (*f) () = shl_load;
15062 #endif
15063 #ifdef __cplusplus
15064 }
15065 #endif
15066
15067 int
15068 main ()
15069 {
15070 return f != shl_load;
15071   ;
15072   return 0;
15073 }
15074 _ACEOF
15075 rm -f conftest.$ac_objext conftest$ac_exeext
15076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15077   (eval $ac_link) 2>conftest.er1
15078   ac_status=$?
15079   grep -v '^ *+' conftest.er1 >conftest.err
15080   rm -f conftest.er1
15081   cat conftest.err >&5
15082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083   (exit $ac_status); } &&
15084          { ac_try='test -z "$ac_c_werror_flag"
15085                          || test ! -s conftest.err'
15086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15087   (eval $ac_try) 2>&5
15088   ac_status=$?
15089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090   (exit $ac_status); }; } &&
15091          { ac_try='test -s conftest$ac_exeext'
15092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15093   (eval $ac_try) 2>&5
15094   ac_status=$?
15095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096   (exit $ac_status); }; }; then
15097   ac_cv_func_shl_load=yes
15098 else
15099   echo "$as_me: failed program was:" >&5
15100 sed 's/^/| /' conftest.$ac_ext >&5
15101
15102 ac_cv_func_shl_load=no
15103 fi
15104 rm -f conftest.err conftest.$ac_objext \
15105       conftest$ac_exeext conftest.$ac_ext
15106 fi
15107 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15108 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15109 if test $ac_cv_func_shl_load = yes; then
15110   have_dl=hpux
15111 fi
15112
15113   fi
15114   if test "$have_dl" = "no"; then
15115             echo "$as_me:$LINENO: checking for NSLinkModule" >&5
15116 echo $ECHO_N "checking for NSLinkModule... $ECHO_C" >&6
15117 if test "${ac_cv_func_NSLinkModule+set}" = set; then
15118   echo $ECHO_N "(cached) $ECHO_C" >&6
15119 else
15120   cat >conftest.$ac_ext <<_ACEOF
15121 /* confdefs.h.  */
15122 _ACEOF
15123 cat confdefs.h >>conftest.$ac_ext
15124 cat >>conftest.$ac_ext <<_ACEOF
15125 /* end confdefs.h.  */
15126 /* Define NSLinkModule to an innocuous variant, in case <limits.h> declares NSLinkModule.
15127    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15128 #define NSLinkModule innocuous_NSLinkModule
15129
15130 /* System header to define __stub macros and hopefully few prototypes,
15131     which can conflict with char NSLinkModule (); below.
15132     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15133     <limits.h> exists even on freestanding compilers.  */
15134
15135 #ifdef __STDC__
15136 # include <limits.h>
15137 #else
15138 # include <assert.h>
15139 #endif
15140
15141 #undef NSLinkModule
15142
15143 /* Override any gcc2 internal prototype to avoid an error.  */
15144 #ifdef __cplusplus
15145 extern "C"
15146 {
15147 #endif
15148 /* We use char because int might match the return type of a gcc2
15149    builtin and then its argument prototype would still apply.  */
15150 char NSLinkModule ();
15151 /* The GNU C library defines this for functions which it implements
15152     to always fail with ENOSYS.  Some functions are actually named
15153     something starting with __ and the normal name is an alias.  */
15154 #if defined (__stub_NSLinkModule) || defined (__stub___NSLinkModule)
15155 choke me
15156 #else
15157 char (*f) () = NSLinkModule;
15158 #endif
15159 #ifdef __cplusplus
15160 }
15161 #endif
15162
15163 int
15164 main ()
15165 {
15166 return f != NSLinkModule;
15167   ;
15168   return 0;
15169 }
15170 _ACEOF
15171 rm -f conftest.$ac_objext conftest$ac_exeext
15172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15173   (eval $ac_link) 2>conftest.er1
15174   ac_status=$?
15175   grep -v '^ *+' conftest.er1 >conftest.err
15176   rm -f conftest.er1
15177   cat conftest.err >&5
15178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179   (exit $ac_status); } &&
15180          { ac_try='test -z "$ac_c_werror_flag"
15181                          || test ! -s conftest.err'
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); }; } &&
15187          { ac_try='test -s conftest$ac_exeext'
15188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189   (eval $ac_try) 2>&5
15190   ac_status=$?
15191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192   (exit $ac_status); }; }; then
15193   ac_cv_func_NSLinkModule=yes
15194 else
15195   echo "$as_me: failed program was:" >&5
15196 sed 's/^/| /' conftest.$ac_ext >&5
15197
15198 ac_cv_func_NSLinkModule=no
15199 fi
15200 rm -f conftest.err conftest.$ac_objext \
15201       conftest$ac_exeext conftest.$ac_ext
15202 fi
15203 echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5
15204 echo "${ECHO_T}$ac_cv_func_NSLinkModule" >&6
15205 if test $ac_cv_func_NSLinkModule = yes; then
15206   have_dl=dyld
15207 fi
15208
15209   fi
15210   if test "$have_dl" = "no" -a "x$ac_cv_lib_dl_dlopen" = xyes; then
15211     have_dl=dlopen
15212   fi
15213   if test "$have_dl" = "no"; then
15214     echo "$as_me:$LINENO: checking for dlopen" >&5
15215 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
15216 if test "${ac_cv_func_dlopen+set}" = set; then
15217   echo $ECHO_N "(cached) $ECHO_C" >&6
15218 else
15219   cat >conftest.$ac_ext <<_ACEOF
15220 /* confdefs.h.  */
15221 _ACEOF
15222 cat confdefs.h >>conftest.$ac_ext
15223 cat >>conftest.$ac_ext <<_ACEOF
15224 /* end confdefs.h.  */
15225 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15226    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15227 #define dlopen innocuous_dlopen
15228
15229 /* System header to define __stub macros and hopefully few prototypes,
15230     which can conflict with char dlopen (); below.
15231     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15232     <limits.h> exists even on freestanding compilers.  */
15233
15234 #ifdef __STDC__
15235 # include <limits.h>
15236 #else
15237 # include <assert.h>
15238 #endif
15239
15240 #undef dlopen
15241
15242 /* Override any gcc2 internal prototype to avoid an error.  */
15243 #ifdef __cplusplus
15244 extern "C"
15245 {
15246 #endif
15247 /* We use char because int might match the return type of a gcc2
15248    builtin and then its argument prototype would still apply.  */
15249 char dlopen ();
15250 /* The GNU C library defines this for functions which it implements
15251     to always fail with ENOSYS.  Some functions are actually named
15252     something starting with __ and the normal name is an alias.  */
15253 #if defined (__stub_dlopen) || defined (__stub___dlopen)
15254 choke me
15255 #else
15256 char (*f) () = dlopen;
15257 #endif
15258 #ifdef __cplusplus
15259 }
15260 #endif
15261
15262 int
15263 main ()
15264 {
15265 return f != dlopen;
15266   ;
15267   return 0;
15268 }
15269 _ACEOF
15270 rm -f conftest.$ac_objext conftest$ac_exeext
15271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15272   (eval $ac_link) 2>conftest.er1
15273   ac_status=$?
15274   grep -v '^ *+' conftest.er1 >conftest.err
15275   rm -f conftest.er1
15276   cat conftest.err >&5
15277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278   (exit $ac_status); } &&
15279          { ac_try='test -z "$ac_c_werror_flag"
15280                          || test ! -s conftest.err'
15281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15282   (eval $ac_try) 2>&5
15283   ac_status=$?
15284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285   (exit $ac_status); }; } &&
15286          { ac_try='test -s conftest$ac_exeext'
15287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15288   (eval $ac_try) 2>&5
15289   ac_status=$?
15290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291   (exit $ac_status); }; }; then
15292   ac_cv_func_dlopen=yes
15293 else
15294   echo "$as_me: failed program was:" >&5
15295 sed 's/^/| /' conftest.$ac_ext >&5
15296
15297 ac_cv_func_dlopen=no
15298 fi
15299 rm -f conftest.err conftest.$ac_objext \
15300       conftest$ac_exeext conftest.$ac_ext
15301 fi
15302 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15303 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
15304 if test $ac_cv_func_dlopen = yes; then
15305   have_dl=dlopen
15306 fi
15307
15308   fi
15309   if test "$have_dl" = "no"; then
15310     echo "$as_me:$LINENO: checking for dld_init" >&5
15311 echo $ECHO_N "checking for dld_init... $ECHO_C" >&6
15312 if test "${ac_cv_func_dld_init+set}" = set; then
15313   echo $ECHO_N "(cached) $ECHO_C" >&6
15314 else
15315   cat >conftest.$ac_ext <<_ACEOF
15316 /* confdefs.h.  */
15317 _ACEOF
15318 cat confdefs.h >>conftest.$ac_ext
15319 cat >>conftest.$ac_ext <<_ACEOF
15320 /* end confdefs.h.  */
15321 /* Define dld_init to an innocuous variant, in case <limits.h> declares dld_init.
15322    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15323 #define dld_init innocuous_dld_init
15324
15325 /* System header to define __stub macros and hopefully few prototypes,
15326     which can conflict with char dld_init (); below.
15327     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15328     <limits.h> exists even on freestanding compilers.  */
15329
15330 #ifdef __STDC__
15331 # include <limits.h>
15332 #else
15333 # include <assert.h>
15334 #endif
15335
15336 #undef dld_init
15337
15338 /* Override any gcc2 internal prototype to avoid an error.  */
15339 #ifdef __cplusplus
15340 extern "C"
15341 {
15342 #endif
15343 /* We use char because int might match the return type of a gcc2
15344    builtin and then its argument prototype would still apply.  */
15345 char dld_init ();
15346 /* The GNU C library defines this for functions which it implements
15347     to always fail with ENOSYS.  Some functions are actually named
15348     something starting with __ and the normal name is an alias.  */
15349 #if defined (__stub_dld_init) || defined (__stub___dld_init)
15350 choke me
15351 #else
15352 char (*f) () = dld_init;
15353 #endif
15354 #ifdef __cplusplus
15355 }
15356 #endif
15357
15358 int
15359 main ()
15360 {
15361 return f != dld_init;
15362   ;
15363   return 0;
15364 }
15365 _ACEOF
15366 rm -f conftest.$ac_objext conftest$ac_exeext
15367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15368   (eval $ac_link) 2>conftest.er1
15369   ac_status=$?
15370   grep -v '^ *+' conftest.er1 >conftest.err
15371   rm -f conftest.er1
15372   cat conftest.err >&5
15373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374   (exit $ac_status); } &&
15375          { ac_try='test -z "$ac_c_werror_flag"
15376                          || test ! -s conftest.err'
15377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15378   (eval $ac_try) 2>&5
15379   ac_status=$?
15380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381   (exit $ac_status); }; } &&
15382          { ac_try='test -s conftest$ac_exeext'
15383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15384   (eval $ac_try) 2>&5
15385   ac_status=$?
15386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387   (exit $ac_status); }; }; then
15388   ac_cv_func_dld_init=yes
15389 else
15390   echo "$as_me: failed program was:" >&5
15391 sed 's/^/| /' conftest.$ac_ext >&5
15392
15393 ac_cv_func_dld_init=no
15394 fi
15395 rm -f conftest.err conftest.$ac_objext \
15396       conftest$ac_exeext conftest.$ac_ext
15397 fi
15398 echo "$as_me:$LINENO: result: $ac_cv_func_dld_init" >&5
15399 echo "${ECHO_T}$ac_cv_func_dld_init" >&6
15400 if test $ac_cv_func_dld_init = yes; then
15401   have_dl=dld
15402 fi
15403
15404   fi
15405   if test "$have_dl" = "no"; then
15406     echo "$as_me:$LINENO: checking for dld_init in -ldld" >&5
15407 echo $ECHO_N "checking for dld_init in -ldld... $ECHO_C" >&6
15408 if test "${ac_cv_lib_dld_dld_init+set}" = set; then
15409   echo $ECHO_N "(cached) $ECHO_C" >&6
15410 else
15411   ac_check_lib_save_LIBS=$LIBS
15412 LIBS="-ldld  $LIBS"
15413 cat >conftest.$ac_ext <<_ACEOF
15414 /* confdefs.h.  */
15415 _ACEOF
15416 cat confdefs.h >>conftest.$ac_ext
15417 cat >>conftest.$ac_ext <<_ACEOF
15418 /* end confdefs.h.  */
15419
15420 /* Override any gcc2 internal prototype to avoid an error.  */
15421 #ifdef __cplusplus
15422 extern "C"
15423 #endif
15424 /* We use char because int might match the return type of a gcc2
15425    builtin and then its argument prototype would still apply.  */
15426 char dld_init ();
15427 int
15428 main ()
15429 {
15430 dld_init ();
15431   ;
15432   return 0;
15433 }
15434 _ACEOF
15435 rm -f conftest.$ac_objext conftest$ac_exeext
15436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15437   (eval $ac_link) 2>conftest.er1
15438   ac_status=$?
15439   grep -v '^ *+' conftest.er1 >conftest.err
15440   rm -f conftest.er1
15441   cat conftest.err >&5
15442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443   (exit $ac_status); } &&
15444          { ac_try='test -z "$ac_c_werror_flag"
15445                          || test ! -s conftest.err'
15446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15447   (eval $ac_try) 2>&5
15448   ac_status=$?
15449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450   (exit $ac_status); }; } &&
15451          { ac_try='test -s conftest$ac_exeext'
15452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15453   (eval $ac_try) 2>&5
15454   ac_status=$?
15455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456   (exit $ac_status); }; }; then
15457   ac_cv_lib_dld_dld_init=yes
15458 else
15459   echo "$as_me: failed program was:" >&5
15460 sed 's/^/| /' conftest.$ac_ext >&5
15461
15462 ac_cv_lib_dld_dld_init=no
15463 fi
15464 rm -f conftest.err conftest.$ac_objext \
15465       conftest$ac_exeext conftest.$ac_ext
15466 LIBS=$ac_check_lib_save_LIBS
15467 fi
15468 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_init" >&5
15469 echo "${ECHO_T}$ac_cv_lib_dld_dld_init" >&6
15470 if test $ac_cv_lib_dld_dld_init = yes; then
15471   have_dl=dld;lib_dl_opt=-ldld
15472 fi
15473
15474   fi
15475
15476   echo "$as_me:$LINENO: checking dynamic link method" >&5
15477 echo $ECHO_N "checking dynamic link method... $ECHO_C" >&6
15478   case "$have_dl" in
15479     dlopen)
15480       echo "$as_me:$LINENO: result: use dl_dlopen.c" >&5
15481 echo "${ECHO_T}use dl_dlopen.c" >&6
15482       SYSEXTRAS="$SYSEXTRAS dl_dlopen.c"
15483       echo "$as_me:$LINENO: checking whether your dlsym() needs a leading underscore" >&5
15484 echo $ECHO_N "checking whether your dlsym() needs a leading underscore... $ECHO_C" >&6
15485 if test "${timidity_cv_func_dlsym_underscore+set}" = set; then
15486   echo $ECHO_N "(cached) $ECHO_C" >&6
15487 else
15488   case "$ac_cv_header_dlfcn_h" in
15489 yes) i_dlfcn=define;;
15490 *)   i_dlfcn=undef;;
15491 esac
15492 cat > dyna.c <<EOM
15493 fred () { }
15494 EOM
15495
15496 cat > fred.c <<EOM
15497 #include <stdio.h>
15498 #$i_dlfcn I_DLFCN
15499 #ifdef I_DLFCN
15500 #include <dlfcn.h>      /* the dynamic linker include file for Sunos/Solaris */
15501 #else
15502 #include <sys/types.h>
15503 #include <nlist.h>
15504 #include <link.h>
15505 #endif
15506
15507 extern int fred() ;
15508
15509 main()
15510 {
15511     void * handle ;
15512     void * symbol ;
15513 #ifndef RTLD_LAZY
15514     int mode = 1 ;
15515 #else
15516     int mode = RTLD_LAZY ;
15517 #endif
15518     handle = dlopen("./dyna.$so", mode) ;
15519     if (handle == NULL) {
15520         printf ("1\n") ;
15521         fflush (stdout) ;
15522         exit(0);
15523     }
15524     symbol = dlsym(handle, "fred") ;
15525     if (symbol == NULL) {
15526         /* try putting a leading underscore */
15527         symbol = dlsym(handle, "_fred") ;
15528         if (symbol == NULL) {
15529             printf ("2\n") ;
15530             fflush (stdout) ;
15531             exit(0);
15532         }
15533         printf ("3\n") ;
15534     }
15535     else
15536         printf ("4\n") ;
15537     fflush (stdout) ;
15538     exit(0);
15539 }
15540 EOM
15541 : Call the object file tmp-dyna.o in case dlext=o.
15542 if ${CC-cc} $CFLAGS $SHCFLAGS $CPPFLAGS -c dyna.c > /dev/null 2>&1 &&
15543         mv dyna.o tmp-dyna.o > /dev/null 2>&1 &&
15544         $SHLD $SHLDFLAGS -o dyna.$so tmp-dyna.o > /dev/null 2>&1 &&
15545         ${CC-cc} -o fred $CFLAGS $CPPFLAGS $LDFLAGS fred.c $LIBS $lib_dl_opt > /dev/null 2>&1; then
15546         xxx=`./fred`
15547         case $xxx in
15548         1)      { echo "$as_me:$LINENO: WARNING: Test program failed using dlopen.  Perhaps you should not use dynamic loading." >&5
15549 echo "$as_me: WARNING: Test program failed using dlopen.  Perhaps you should not use dynamic loading." >&2;}
15550                 ;;
15551         2)      { echo "$as_me:$LINENO: WARNING: Test program failed using dlsym.  Perhaps you should not use dynamic loading." >&5
15552 echo "$as_me: WARNING: Test program failed using dlsym.  Perhaps you should not use dynamic loading." >&2;}
15553                 ;;
15554         3)      timidity_cv_func_dlsym_underscore=yes
15555                 ;;
15556         4)      timidity_cv_func_dlsym_underscore=no
15557                 ;;
15558         esac
15559 else
15560         { echo "$as_me:$LINENO: WARNING: I can't compile and run the test program." >&5
15561 echo "$as_me: WARNING: I can't compile and run the test program." >&2;}
15562 fi
15563 rm -f dyna.c dyna.o dyna.$so tmp-dyna.o fred.c fred.o fred
15564
15565 fi
15566
15567 case "x$timidity_cv_func_dlsym_underscore" in
15568 xyes)
15569 cat >>confdefs.h <<\_ACEOF
15570 #define DLSYM_NEEDS_UNDERSCORE 1
15571 _ACEOF
15572
15573         echo "$as_me:$LINENO: result: yes" >&5
15574 echo "${ECHO_T}yes" >&6
15575         ;;
15576 xno)
15577         echo "$as_me:$LINENO: result: no" >&5
15578 echo "${ECHO_T}no" >&6
15579         ;;
15580 esac
15581
15582       ;;
15583     dld)
15584       echo "$as_me:$LINENO: result: use dl_dld.c" >&5
15585 echo "${ECHO_T}use dl_dld.c" >&6
15586       SYSEXTRAS="$SYSEXTRAS dl_dld.c"
15587       ;;
15588     hpux)
15589       echo "$as_me:$LINENO: result: use dl_hpux.c" >&5
15590 echo "${ECHO_T}use dl_hpux.c" >&6
15591       SYSEXTRAS="$SYSEXTRAS dl_hpux.c"
15592       LDFLAGS="$LDFLAGS -Wl,-E $LDFLAGS"
15593       ;;
15594     w32)
15595       echo "$as_me:$LINENO: result: use dl_w32.c" >&5
15596 echo "${ECHO_T}use dl_w32.c" >&6
15597       SYSEXTRAS="$SYSEXTRAS dl_w32.c"
15598       ;;
15599     dyld)
15600       echo "$as_me:$LINENO: result: use dl_dyld.c" >&5
15601 echo "${ECHO_T}use dl_dyld.c" >&6
15602       SYSEXTRAS="$SYSEXTRAS dl_dyld.c"
15603       ;;
15604     *)
15605       NEEDDLOPEN="no"
15606       { echo "$as_me:$LINENO: WARNING: no method to open a shared object" >&5
15607 echo "$as_me: WARNING: no method to open a shared object" >&2;}
15608       ;;
15609   esac
15610 fi
15611
15612 if test "$NEEDDLOPEN" = "yes"; then
15613   cat >> confdefs.h <<EOF
15614 #define IA_DYNAMIC 1
15615 EOF
15616
15617
15618 cat >>confdefs.h <<_ACEOF
15619 #define SHARED_LIB_EXT ".$so"
15620 _ACEOF
15621
15622       test "x$GCC" = xyes -a "x$timidity_cv_ccoption_rdynamic" = xyes  && timidity_LDFLAGS="-rdynamic"
15623 fi
15624
15625
15626
15627 if test "$NEEDDLOPEN" = "yes"; then
15628   NEEDDLOPEN_TRUE=
15629   NEEDDLOPEN_FALSE='#'
15630 else
15631   NEEDDLOPEN_TRUE='#'
15632   NEEDDLOPEN_FALSE=
15633 fi
15634
15635
15636
15637
15638
15639 if false; then
15640   ENABLE_NCURSES_TRUE=
15641   ENABLE_NCURSES_FALSE='#'
15642 else
15643   ENABLE_NCURSES_TRUE='#'
15644   ENABLE_NCURSES_FALSE=
15645 fi
15646
15647 # Check whether --enable-ncurses or --disable-ncurses was given.
15648 if test "${enable_ncurses+set}" = set; then
15649   enableval="$enable_ncurses"
15650   case "x$enable_ncurses" in xyes|xdynamic)
15651
15652
15653 for ac_header in ncurses.h ncurses/curses.h curses.h
15654 do
15655 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15657   echo "$as_me:$LINENO: checking for $ac_header" >&5
15658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15660   echo $ECHO_N "(cached) $ECHO_C" >&6
15661 fi
15662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15664 else
15665   # Is the header compilable?
15666 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15667 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15668 cat >conftest.$ac_ext <<_ACEOF
15669 /* confdefs.h.  */
15670 _ACEOF
15671 cat confdefs.h >>conftest.$ac_ext
15672 cat >>conftest.$ac_ext <<_ACEOF
15673 /* end confdefs.h.  */
15674 $ac_includes_default
15675 #include <$ac_header>
15676 _ACEOF
15677 rm -f conftest.$ac_objext
15678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15679   (eval $ac_compile) 2>conftest.er1
15680   ac_status=$?
15681   grep -v '^ *+' conftest.er1 >conftest.err
15682   rm -f conftest.er1
15683   cat conftest.err >&5
15684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685   (exit $ac_status); } &&
15686          { ac_try='test -z "$ac_c_werror_flag"
15687                          || test ! -s conftest.err'
15688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15689   (eval $ac_try) 2>&5
15690   ac_status=$?
15691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692   (exit $ac_status); }; } &&
15693          { ac_try='test -s conftest.$ac_objext'
15694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15695   (eval $ac_try) 2>&5
15696   ac_status=$?
15697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698   (exit $ac_status); }; }; then
15699   ac_header_compiler=yes
15700 else
15701   echo "$as_me: failed program was:" >&5
15702 sed 's/^/| /' conftest.$ac_ext >&5
15703
15704 ac_header_compiler=no
15705 fi
15706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15707 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15708 echo "${ECHO_T}$ac_header_compiler" >&6
15709
15710 # Is the header present?
15711 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15713 cat >conftest.$ac_ext <<_ACEOF
15714 /* confdefs.h.  */
15715 _ACEOF
15716 cat confdefs.h >>conftest.$ac_ext
15717 cat >>conftest.$ac_ext <<_ACEOF
15718 /* end confdefs.h.  */
15719 #include <$ac_header>
15720 _ACEOF
15721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15722   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15723   ac_status=$?
15724   grep -v '^ *+' conftest.er1 >conftest.err
15725   rm -f conftest.er1
15726   cat conftest.err >&5
15727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728   (exit $ac_status); } >/dev/null; then
15729   if test -s conftest.err; then
15730     ac_cpp_err=$ac_c_preproc_warn_flag
15731     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15732   else
15733     ac_cpp_err=
15734   fi
15735 else
15736   ac_cpp_err=yes
15737 fi
15738 if test -z "$ac_cpp_err"; then
15739   ac_header_preproc=yes
15740 else
15741   echo "$as_me: failed program was:" >&5
15742 sed 's/^/| /' conftest.$ac_ext >&5
15743
15744   ac_header_preproc=no
15745 fi
15746 rm -f conftest.err conftest.$ac_ext
15747 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15748 echo "${ECHO_T}$ac_header_preproc" >&6
15749
15750 # So?  What about this header?
15751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15752   yes:no: )
15753     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15754 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15755     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15756 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15757     ac_header_preproc=yes
15758     ;;
15759   no:yes:* )
15760     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15761 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15762     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15763 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15764     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15765 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15766     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15767 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15768     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15770     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15771 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15772     (
15773       cat <<\_ASBOX
15774 ## ------------------------------- ##
15775 ## Report this to root@mput.dip.jp ##
15776 ## ------------------------------- ##
15777 _ASBOX
15778     ) |
15779       sed "s/^/$as_me: WARNING:     /" >&2
15780     ;;
15781 esac
15782 echo "$as_me:$LINENO: checking for $ac_header" >&5
15783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15785   echo $ECHO_N "(cached) $ECHO_C" >&6
15786 else
15787   eval "$as_ac_Header=\$ac_header_preproc"
15788 fi
15789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15791
15792 fi
15793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15794   cat >>confdefs.h <<_ACEOF
15795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15796 _ACEOF
15797
15798 fi
15799
15800 done
15801
15802
15803
15804   case "$ac_cv_header_curses_h$ac_cv_header_ncurses_curses_h$ac_cv_header_ncurses_h" in
15805     *yes*);;
15806     *)  for i in /usr/include /usr/local/include; do
15807           if test -f "$i/ncurses/curses.h" -a -f "$i/ncurses/unctrl.h"; then
15808             { echo "$as_me:$LINENO: WARNING: ncurses test is failure.  Please check config.h and common.makefile later" >&5
15809 echo "$as_me: WARNING: ncurses test is failure.  Please check config.h and common.makefile later" >&2;}
15810             CPPFLAGS="$CPPFLAGS -I$i/ncurses"
15811             break
15812           fi
15813         done
15814         ;;
15815     esac
15816
15817     echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
15818 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
15819 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
15820   echo $ECHO_N "(cached) $ECHO_C" >&6
15821 else
15822   ac_check_lib_save_LIBS=$LIBS
15823 LIBS="-lncurses  $LIBS"
15824 cat >conftest.$ac_ext <<_ACEOF
15825 /* confdefs.h.  */
15826 _ACEOF
15827 cat confdefs.h >>conftest.$ac_ext
15828 cat >>conftest.$ac_ext <<_ACEOF
15829 /* end confdefs.h.  */
15830
15831 /* Override any gcc2 internal prototype to avoid an error.  */
15832 #ifdef __cplusplus
15833 extern "C"
15834 #endif
15835 /* We use char because int might match the return type of a gcc2
15836    builtin and then its argument prototype would still apply.  */
15837 char initscr ();
15838 int
15839 main ()
15840 {
15841 initscr ();
15842   ;
15843   return 0;
15844 }
15845 _ACEOF
15846 rm -f conftest.$ac_objext conftest$ac_exeext
15847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15848   (eval $ac_link) 2>conftest.er1
15849   ac_status=$?
15850   grep -v '^ *+' conftest.er1 >conftest.err
15851   rm -f conftest.er1
15852   cat conftest.err >&5
15853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854   (exit $ac_status); } &&
15855          { ac_try='test -z "$ac_c_werror_flag"
15856                          || test ! -s conftest.err'
15857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15858   (eval $ac_try) 2>&5
15859   ac_status=$?
15860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861   (exit $ac_status); }; } &&
15862          { ac_try='test -s conftest$ac_exeext'
15863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15864   (eval $ac_try) 2>&5
15865   ac_status=$?
15866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867   (exit $ac_status); }; }; then
15868   ac_cv_lib_ncurses_initscr=yes
15869 else
15870   echo "$as_me: failed program was:" >&5
15871 sed 's/^/| /' conftest.$ac_ext >&5
15872
15873 ac_cv_lib_ncurses_initscr=no
15874 fi
15875 rm -f conftest.err conftest.$ac_objext \
15876       conftest$ac_exeext conftest.$ac_ext
15877 LIBS=$ac_check_lib_save_LIBS
15878 fi
15879 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
15880 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
15881 if test $ac_cv_lib_ncurses_initscr = yes; then
15882   lib_curses_opt=-lncurses
15883 else
15884         echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lcurses" >&5
15885 echo $ECHO_N "checking for PDC_set_ctrl_break in -lcurses... $ECHO_C" >&6
15886 if test "${ac_cv_lib_curses_PDC_set_ctrl_break+set}" = set; then
15887   echo $ECHO_N "(cached) $ECHO_C" >&6
15888 else
15889   ac_check_lib_save_LIBS=$LIBS
15890 LIBS="-lcurses $lib_user32_test $LIBS"
15891 cat >conftest.$ac_ext <<_ACEOF
15892 /* confdefs.h.  */
15893 _ACEOF
15894 cat confdefs.h >>conftest.$ac_ext
15895 cat >>conftest.$ac_ext <<_ACEOF
15896 /* end confdefs.h.  */
15897
15898 /* Override any gcc2 internal prototype to avoid an error.  */
15899 #ifdef __cplusplus
15900 extern "C"
15901 #endif
15902 /* We use char because int might match the return type of a gcc2
15903    builtin and then its argument prototype would still apply.  */
15904 char PDC_set_ctrl_break ();
15905 int
15906 main ()
15907 {
15908 PDC_set_ctrl_break ();
15909   ;
15910   return 0;
15911 }
15912 _ACEOF
15913 rm -f conftest.$ac_objext conftest$ac_exeext
15914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15915   (eval $ac_link) 2>conftest.er1
15916   ac_status=$?
15917   grep -v '^ *+' conftest.er1 >conftest.err
15918   rm -f conftest.er1
15919   cat conftest.err >&5
15920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921   (exit $ac_status); } &&
15922          { ac_try='test -z "$ac_c_werror_flag"
15923                          || test ! -s conftest.err'
15924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925   (eval $ac_try) 2>&5
15926   ac_status=$?
15927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928   (exit $ac_status); }; } &&
15929          { ac_try='test -s conftest$ac_exeext'
15930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15931   (eval $ac_try) 2>&5
15932   ac_status=$?
15933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934   (exit $ac_status); }; }; then
15935   ac_cv_lib_curses_PDC_set_ctrl_break=yes
15936 else
15937   echo "$as_me: failed program was:" >&5
15938 sed 's/^/| /' conftest.$ac_ext >&5
15939
15940 ac_cv_lib_curses_PDC_set_ctrl_break=no
15941 fi
15942 rm -f conftest.err conftest.$ac_objext \
15943       conftest$ac_exeext conftest.$ac_ext
15944 LIBS=$ac_check_lib_save_LIBS
15945 fi
15946 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_PDC_set_ctrl_break" >&5
15947 echo "${ECHO_T}$ac_cv_lib_curses_PDC_set_ctrl_break" >&6
15948 if test $ac_cv_lib_curses_PDC_set_ctrl_break = yes; then
15949    lib_curses_opt=-lcurses
15950
15951 cat >>confdefs.h <<\_ACEOF
15952 #define USE_PDCURSES 1
15953 _ACEOF
15954
15955             lib_user32_opt="$lib_user32_test"
15956
15957 else
15958             echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lpdcurses" >&5
15959 echo $ECHO_N "checking for PDC_set_ctrl_break in -lpdcurses... $ECHO_C" >&6
15960 if test "${ac_cv_lib_pdcurses_PDC_set_ctrl_break+set}" = set; then
15961   echo $ECHO_N "(cached) $ECHO_C" >&6
15962 else
15963   ac_check_lib_save_LIBS=$LIBS
15964 LIBS="-lpdcurses  $LIBS"
15965 cat >conftest.$ac_ext <<_ACEOF
15966 /* confdefs.h.  */
15967 _ACEOF
15968 cat confdefs.h >>conftest.$ac_ext
15969 cat >>conftest.$ac_ext <<_ACEOF
15970 /* end confdefs.h.  */
15971
15972 /* Override any gcc2 internal prototype to avoid an error.  */
15973 #ifdef __cplusplus
15974 extern "C"
15975 #endif
15976 /* We use char because int might match the return type of a gcc2
15977    builtin and then its argument prototype would still apply.  */
15978 char PDC_set_ctrl_break ();
15979 int
15980 main ()
15981 {
15982 PDC_set_ctrl_break ();
15983   ;
15984   return 0;
15985 }
15986 _ACEOF
15987 rm -f conftest.$ac_objext conftest$ac_exeext
15988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15989   (eval $ac_link) 2>conftest.er1
15990   ac_status=$?
15991   grep -v '^ *+' conftest.er1 >conftest.err
15992   rm -f conftest.er1
15993   cat conftest.err >&5
15994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995   (exit $ac_status); } &&
15996          { ac_try='test -z "$ac_c_werror_flag"
15997                          || test ! -s conftest.err'
15998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15999   (eval $ac_try) 2>&5
16000   ac_status=$?
16001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002   (exit $ac_status); }; } &&
16003          { ac_try='test -s conftest$ac_exeext'
16004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16005   (eval $ac_try) 2>&5
16006   ac_status=$?
16007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008   (exit $ac_status); }; }; then
16009   ac_cv_lib_pdcurses_PDC_set_ctrl_break=yes
16010 else
16011   echo "$as_me: failed program was:" >&5
16012 sed 's/^/| /' conftest.$ac_ext >&5
16013
16014 ac_cv_lib_pdcurses_PDC_set_ctrl_break=no
16015 fi
16016 rm -f conftest.err conftest.$ac_objext \
16017       conftest$ac_exeext conftest.$ac_ext
16018 LIBS=$ac_check_lib_save_LIBS
16019 fi
16020 echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&5
16021 echo "${ECHO_T}$ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&6
16022 if test $ac_cv_lib_pdcurses_PDC_set_ctrl_break = yes; then
16023    lib_curses_opt=-lpdcurses
16024
16025 cat >>confdefs.h <<\_ACEOF
16026 #define USE_PDCURSES 1
16027 _ACEOF
16028
16029               lib_user32_opt="$lib_user32_test"
16030
16031 else
16032               case "$target" in
16033                 *openbsd*)
16034                   echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
16035 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
16036 if test "${ac_cv_lib_curses_initscr+set}" = set; then
16037   echo $ECHO_N "(cached) $ECHO_C" >&6
16038 else
16039   ac_check_lib_save_LIBS=$LIBS
16040 LIBS="-lcurses  $LIBS"
16041 cat >conftest.$ac_ext <<_ACEOF
16042 /* confdefs.h.  */
16043 _ACEOF
16044 cat confdefs.h >>conftest.$ac_ext
16045 cat >>conftest.$ac_ext <<_ACEOF
16046 /* end confdefs.h.  */
16047
16048 /* Override any gcc2 internal prototype to avoid an error.  */
16049 #ifdef __cplusplus
16050 extern "C"
16051 #endif
16052 /* We use char because int might match the return type of a gcc2
16053    builtin and then its argument prototype would still apply.  */
16054 char initscr ();
16055 int
16056 main ()
16057 {
16058 initscr ();
16059   ;
16060   return 0;
16061 }
16062 _ACEOF
16063 rm -f conftest.$ac_objext conftest$ac_exeext
16064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16065   (eval $ac_link) 2>conftest.er1
16066   ac_status=$?
16067   grep -v '^ *+' conftest.er1 >conftest.err
16068   rm -f conftest.er1
16069   cat conftest.err >&5
16070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071   (exit $ac_status); } &&
16072          { ac_try='test -z "$ac_c_werror_flag"
16073                          || test ! -s conftest.err'
16074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16075   (eval $ac_try) 2>&5
16076   ac_status=$?
16077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078   (exit $ac_status); }; } &&
16079          { ac_try='test -s conftest$ac_exeext'
16080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16081   (eval $ac_try) 2>&5
16082   ac_status=$?
16083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084   (exit $ac_status); }; }; then
16085   ac_cv_lib_curses_initscr=yes
16086 else
16087   echo "$as_me: failed program was:" >&5
16088 sed 's/^/| /' conftest.$ac_ext >&5
16089
16090 ac_cv_lib_curses_initscr=no
16091 fi
16092 rm -f conftest.err conftest.$ac_objext \
16093       conftest$ac_exeext conftest.$ac_ext
16094 LIBS=$ac_check_lib_save_LIBS
16095 fi
16096 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
16097 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
16098 if test $ac_cv_lib_curses_initscr = yes; then
16099   lib_curses_opt=-lcurses
16100 else
16101    { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
16102 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
16103                       enable_ncurses=no
16104 fi
16105
16106                   ;;
16107                 *)
16108                   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes; then
16109                     lib_curses_opt=libpdcurses.lib
16110
16111 cat >>confdefs.h <<\_ACEOF
16112 #define USE_PDCURSES 1
16113 _ACEOF
16114
16115                   else
16116                     { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
16117 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
16118                     enable_ncurses=no
16119                   fi
16120                   ;;
16121               esac
16122
16123 fi
16124
16125
16126 fi
16127
16128
16129 fi
16130
16131    ;; esac
16132 fi;
16133 case "x$enable_ncurses" in
16134 xyes)
16135   cat >> confdefs.h <<EOF
16136 #define IA_NCURSES 1
16137 EOF
16138
16139
16140
16141 if true; then
16142   ENABLE_NCURSES_TRUE=
16143   ENABLE_NCURSES_FALSE='#'
16144 else
16145   ENABLE_NCURSES_TRUE='#'
16146   ENABLE_NCURSES_FALSE=
16147 fi
16148
16149    LIBS="$LIBS $lib_curses_opt"
16150     case "$target" in
16151        *-*-freebsd123*)
16152          EXTRALIBS="$EXTRALIBS -lmytinfo"
16153          ;;
16154      esac
16155     INTERFACE_SRCS="$INTERFACE_SRCS ncurs_c.c"
16156
16157   ;;
16158 xdynamic)
16159   dynamic_targets="$dynamic_targets interface_n.\$(so)"
16160    n_so_libs="$lib_curses_opt"
16161     case "$target" in
16162        *-*-freebsd123*)
16163          EXTRALIBS="$EXTRALIBS -lmytinfo"
16164          ;;
16165      esac
16166   ;;
16167 *)
16168
16169   ;;
16170 esac
16171
16172
16173
16174
16175
16176 if false; then
16177   ENABLE_SLANG_TRUE=
16178   ENABLE_SLANG_FALSE='#'
16179 else
16180   ENABLE_SLANG_TRUE='#'
16181   ENABLE_SLANG_FALSE=
16182 fi
16183
16184 # Check whether --enable-slang or --disable-slang was given.
16185 if test "${enable_slang+set}" = set; then
16186   enableval="$enable_slang"
16187   case "x$enable_slang" in xyes|xdynamic)  echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5
16188 echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6
16189 if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then
16190   echo $ECHO_N "(cached) $ECHO_C" >&6
16191 else
16192   ac_check_lib_save_LIBS=$LIBS
16193 LIBS="-lslang  $LIBS"
16194 cat >conftest.$ac_ext <<_ACEOF
16195 /* confdefs.h.  */
16196 _ACEOF
16197 cat confdefs.h >>conftest.$ac_ext
16198 cat >>conftest.$ac_ext <<_ACEOF
16199 /* end confdefs.h.  */
16200
16201 /* Override any gcc2 internal prototype to avoid an error.  */
16202 #ifdef __cplusplus
16203 extern "C"
16204 #endif
16205 /* We use char because int might match the return type of a gcc2
16206    builtin and then its argument prototype would still apply.  */
16207 char SLang_init_tty ();
16208 int
16209 main ()
16210 {
16211 SLang_init_tty ();
16212   ;
16213   return 0;
16214 }
16215 _ACEOF
16216 rm -f conftest.$ac_objext conftest$ac_exeext
16217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16218   (eval $ac_link) 2>conftest.er1
16219   ac_status=$?
16220   grep -v '^ *+' conftest.er1 >conftest.err
16221   rm -f conftest.er1
16222   cat conftest.err >&5
16223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224   (exit $ac_status); } &&
16225          { ac_try='test -z "$ac_c_werror_flag"
16226                          || test ! -s conftest.err'
16227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16228   (eval $ac_try) 2>&5
16229   ac_status=$?
16230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231   (exit $ac_status); }; } &&
16232          { ac_try='test -s conftest$ac_exeext'
16233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16234   (eval $ac_try) 2>&5
16235   ac_status=$?
16236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237   (exit $ac_status); }; }; then
16238   ac_cv_lib_slang_SLang_init_tty=yes
16239 else
16240   echo "$as_me: failed program was:" >&5
16241 sed 's/^/| /' conftest.$ac_ext >&5
16242
16243 ac_cv_lib_slang_SLang_init_tty=no
16244 fi
16245 rm -f conftest.err conftest.$ac_objext \
16246       conftest$ac_exeext conftest.$ac_ext
16247 LIBS=$ac_check_lib_save_LIBS
16248 fi
16249 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5
16250 echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6
16251 if test $ac_cv_lib_slang_SLang_init_tty = yes; then
16252   :
16253 else
16254    enable_slang=no
16255       { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
16256 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
16257
16258 fi
16259
16260
16261
16262 for ac_header in slang/slang.h slang.h
16263 do
16264 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16266   echo "$as_me:$LINENO: checking for $ac_header" >&5
16267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16269   echo $ECHO_N "(cached) $ECHO_C" >&6
16270 fi
16271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16272 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16273 else
16274   # Is the header compilable?
16275 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16276 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16277 cat >conftest.$ac_ext <<_ACEOF
16278 /* confdefs.h.  */
16279 _ACEOF
16280 cat confdefs.h >>conftest.$ac_ext
16281 cat >>conftest.$ac_ext <<_ACEOF
16282 /* end confdefs.h.  */
16283 $ac_includes_default
16284 #include <$ac_header>
16285 _ACEOF
16286 rm -f conftest.$ac_objext
16287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16288   (eval $ac_compile) 2>conftest.er1
16289   ac_status=$?
16290   grep -v '^ *+' conftest.er1 >conftest.err
16291   rm -f conftest.er1
16292   cat conftest.err >&5
16293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294   (exit $ac_status); } &&
16295          { ac_try='test -z "$ac_c_werror_flag"
16296                          || test ! -s conftest.err'
16297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16298   (eval $ac_try) 2>&5
16299   ac_status=$?
16300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301   (exit $ac_status); }; } &&
16302          { ac_try='test -s conftest.$ac_objext'
16303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16304   (eval $ac_try) 2>&5
16305   ac_status=$?
16306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307   (exit $ac_status); }; }; then
16308   ac_header_compiler=yes
16309 else
16310   echo "$as_me: failed program was:" >&5
16311 sed 's/^/| /' conftest.$ac_ext >&5
16312
16313 ac_header_compiler=no
16314 fi
16315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16316 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16317 echo "${ECHO_T}$ac_header_compiler" >&6
16318
16319 # Is the header present?
16320 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16321 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16322 cat >conftest.$ac_ext <<_ACEOF
16323 /* confdefs.h.  */
16324 _ACEOF
16325 cat confdefs.h >>conftest.$ac_ext
16326 cat >>conftest.$ac_ext <<_ACEOF
16327 /* end confdefs.h.  */
16328 #include <$ac_header>
16329 _ACEOF
16330 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16331   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16332   ac_status=$?
16333   grep -v '^ *+' conftest.er1 >conftest.err
16334   rm -f conftest.er1
16335   cat conftest.err >&5
16336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337   (exit $ac_status); } >/dev/null; then
16338   if test -s conftest.err; then
16339     ac_cpp_err=$ac_c_preproc_warn_flag
16340     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16341   else
16342     ac_cpp_err=
16343   fi
16344 else
16345   ac_cpp_err=yes
16346 fi
16347 if test -z "$ac_cpp_err"; then
16348   ac_header_preproc=yes
16349 else
16350   echo "$as_me: failed program was:" >&5
16351 sed 's/^/| /' conftest.$ac_ext >&5
16352
16353   ac_header_preproc=no
16354 fi
16355 rm -f conftest.err conftest.$ac_ext
16356 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16357 echo "${ECHO_T}$ac_header_preproc" >&6
16358
16359 # So?  What about this header?
16360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16361   yes:no: )
16362     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16363 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16364     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16365 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16366     ac_header_preproc=yes
16367     ;;
16368   no:yes:* )
16369     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16370 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16371     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16372 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16373     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16374 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16375     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16376 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16377     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16378 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16379     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16380 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16381     (
16382       cat <<\_ASBOX
16383 ## ------------------------------- ##
16384 ## Report this to root@mput.dip.jp ##
16385 ## ------------------------------- ##
16386 _ASBOX
16387     ) |
16388       sed "s/^/$as_me: WARNING:     /" >&2
16389     ;;
16390 esac
16391 echo "$as_me:$LINENO: checking for $ac_header" >&5
16392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16394   echo $ECHO_N "(cached) $ECHO_C" >&6
16395 else
16396   eval "$as_ac_Header=\$ac_header_preproc"
16397 fi
16398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16399 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16400
16401 fi
16402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16403   cat >>confdefs.h <<_ACEOF
16404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16405 _ACEOF
16406
16407 fi
16408
16409 done
16410
16411    ;; esac
16412 fi;
16413 case "x$enable_slang" in
16414 xyes)
16415   cat >> confdefs.h <<EOF
16416 #define IA_SLANG 1
16417 EOF
16418
16419
16420
16421 if true; then
16422   ENABLE_SLANG_TRUE=
16423   ENABLE_SLANG_FALSE='#'
16424 else
16425   ENABLE_SLANG_TRUE='#'
16426   ENABLE_SLANG_FALSE=
16427 fi
16428
16429    LIBS="$LIBS -lslang"
16430     INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
16431
16432   ;;
16433 xdynamic)
16434   dynamic_targets="$dynamic_targets interface_s.\$(so)"
16435    s_so_libs="-lslang"
16436     echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
16437 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6
16438 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
16439   echo $ECHO_N "(cached) $ECHO_C" >&6
16440 else
16441   ac_check_lib_save_LIBS=$LIBS
16442 LIBS="-ltermcap  $LIBS"
16443 cat >conftest.$ac_ext <<_ACEOF
16444 /* confdefs.h.  */
16445 _ACEOF
16446 cat confdefs.h >>conftest.$ac_ext
16447 cat >>conftest.$ac_ext <<_ACEOF
16448 /* end confdefs.h.  */
16449
16450 /* Override any gcc2 internal prototype to avoid an error.  */
16451 #ifdef __cplusplus
16452 extern "C"
16453 #endif
16454 /* We use char because int might match the return type of a gcc2
16455    builtin and then its argument prototype would still apply.  */
16456 char initscr ();
16457 int
16458 main ()
16459 {
16460 initscr ();
16461   ;
16462   return 0;
16463 }
16464 _ACEOF
16465 rm -f conftest.$ac_objext conftest$ac_exeext
16466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16467   (eval $ac_link) 2>conftest.er1
16468   ac_status=$?
16469   grep -v '^ *+' conftest.er1 >conftest.err
16470   rm -f conftest.er1
16471   cat conftest.err >&5
16472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473   (exit $ac_status); } &&
16474          { ac_try='test -z "$ac_c_werror_flag"
16475                          || test ! -s conftest.err'
16476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16477   (eval $ac_try) 2>&5
16478   ac_status=$?
16479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480   (exit $ac_status); }; } &&
16481          { ac_try='test -s conftest$ac_exeext'
16482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16483   (eval $ac_try) 2>&5
16484   ac_status=$?
16485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486   (exit $ac_status); }; }; then
16487   ac_cv_lib_termcap_initscr=yes
16488 else
16489   echo "$as_me: failed program was:" >&5
16490 sed 's/^/| /' conftest.$ac_ext >&5
16491
16492 ac_cv_lib_termcap_initscr=no
16493 fi
16494 rm -f conftest.err conftest.$ac_objext \
16495       conftest$ac_exeext conftest.$ac_ext
16496 LIBS=$ac_check_lib_save_LIBS
16497 fi
16498 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
16499 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6
16500 if test $ac_cv_lib_termcap_initscr = yes; then
16501   s_so_libs="$s_so_libs -ltermcap"
16502 fi
16503
16504
16505   ;;
16506 *)
16507
16508   ;;
16509 esac
16510
16511
16512
16513
16514
16515 if false; then
16516   ENABLE_MOTIF_TRUE=
16517   ENABLE_MOTIF_FALSE='#'
16518 else
16519   ENABLE_MOTIF_TRUE='#'
16520   ENABLE_MOTIF_FALSE=
16521 fi
16522
16523 # Check whether --enable-motif or --disable-motif was given.
16524 if test "${enable_motif+set}" = set; then
16525   enableval="$enable_motif"
16526   case "x$enable_motif" in xyes|xdynamic)  if test "x$with_x" != xyes; then
16527         { { echo "$as_me:$LINENO: error: motif: --with-x option must be specified" >&5
16528 echo "$as_me: error: motif: --with-x option must be specified" >&2;}
16529    { (exit 1); exit 1; }; }
16530     fi
16531     if test "x$have_xm" != xyes; then
16532       { echo "$as_me:$LINENO: WARNING: Motif library is not found." >&5
16533 echo "$as_me: WARNING: Motif library is not found." >&2;}
16534       enable_motif=no
16535     fi
16536    ;; esac
16537 fi;
16538 case "x$enable_motif" in
16539 xyes)
16540   cat >> confdefs.h <<EOF
16541 #define IA_MOTIF 1
16542 EOF
16543
16544
16545
16546 if true; then
16547   ENABLE_MOTIF_TRUE=
16548   ENABLE_MOTIF_FALSE='#'
16549 else
16550   ENABLE_MOTIF_TRUE='#'
16551   ENABLE_MOTIF_FALSE=
16552 fi
16553
16554    lib_xm_opt=-lXm
16555     lib_xt_opt=-lXt
16556     lib_xext_opt=-lXext
16557     if test "x$have_xprelibs" = xyes; then
16558         lib_xprelibs_opt='-lSM -lICE'
16559     fi
16560     INTERFACE_SRCS="$INTERFACE_SRCS motif_c.c motif_i.c motif_p.c"
16561
16562   ;;
16563 xdynamic)
16564   dynamic_targets="$dynamic_targets interface_m.\$(so)"
16565    if test x$have_xprelibs = xyes; then
16566       m_so_libs="-lXext -lSM -lICE"
16567     fi
16568     m_so_libs="$ldflags_x_opt -lXm -lXt $m_so_libs -lX11"
16569
16570   ;;
16571 *)
16572
16573   ;;
16574 esac
16575
16576
16577
16578
16579
16580 if false; then
16581   ENABLE_TCLTK_TRUE=
16582   ENABLE_TCLTK_FALSE='#'
16583 else
16584   ENABLE_TCLTK_TRUE='#'
16585   ENABLE_TCLTK_FALSE=
16586 fi
16587
16588 # Check whether --enable-tcltk or --disable-tcltk was given.
16589 if test "${enable_tcltk+set}" = set; then
16590   enableval="$enable_tcltk"
16591   case "x$enable_tcltk" in xyes|xdynamic)  if test "x$with_x" != xyes; then
16592         { { echo "$as_me:$LINENO: error: tcltk: --with-x option must be specified" >&5
16593 echo "$as_me: error: tcltk: --with-x option must be specified" >&2;}
16594    { (exit 1); exit 1; }; }
16595     fi
16596
16597         KEEPCPPFLAGS=$CPPFLAGS
16598     KEEPLDFLAGS=$LDFLAGS
16599     KEEPLIBS=$LIBS
16600
16601     CPPFLAGS="$tcl_include_dir $tk_includes $CPPFLAGS"
16602     LDFLAGS="$tcl_libdir $tk_libdir $LDFLAGS"
16603     LIBS="$LIBS $lib_dl_opt"
16604
16605     tcl_lib=
16606     tk_lib=
16607     for l in tcl tcl8.4 tcl8.3 tcl8.0jp tcl7.6jp tcl80jp tcl76jp tcl8.0 tcl7.6 tcl80 tcl76; do
16608       case "x$tcl_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tcl_Init" | $as_tr_sh`
16609 echo "$as_me:$LINENO: checking for Tcl_Init in -l$l" >&5
16610 echo $ECHO_N "checking for Tcl_Init in -l$l... $ECHO_C" >&6
16611 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16612   echo $ECHO_N "(cached) $ECHO_C" >&6
16613 else
16614   ac_check_lib_save_LIBS=$LIBS
16615 LIBS="-l$l  $LIBS"
16616 cat >conftest.$ac_ext <<_ACEOF
16617 /* confdefs.h.  */
16618 _ACEOF
16619 cat confdefs.h >>conftest.$ac_ext
16620 cat >>conftest.$ac_ext <<_ACEOF
16621 /* end confdefs.h.  */
16622
16623 /* Override any gcc2 internal prototype to avoid an error.  */
16624 #ifdef __cplusplus
16625 extern "C"
16626 #endif
16627 /* We use char because int might match the return type of a gcc2
16628    builtin and then its argument prototype would still apply.  */
16629 char Tcl_Init ();
16630 int
16631 main ()
16632 {
16633 Tcl_Init ();
16634   ;
16635   return 0;
16636 }
16637 _ACEOF
16638 rm -f conftest.$ac_objext conftest$ac_exeext
16639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16640   (eval $ac_link) 2>conftest.er1
16641   ac_status=$?
16642   grep -v '^ *+' conftest.er1 >conftest.err
16643   rm -f conftest.er1
16644   cat conftest.err >&5
16645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646   (exit $ac_status); } &&
16647          { ac_try='test -z "$ac_c_werror_flag"
16648                          || test ! -s conftest.err'
16649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16650   (eval $ac_try) 2>&5
16651   ac_status=$?
16652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653   (exit $ac_status); }; } &&
16654          { ac_try='test -s conftest$ac_exeext'
16655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16656   (eval $ac_try) 2>&5
16657   ac_status=$?
16658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659   (exit $ac_status); }; }; then
16660   eval "$as_ac_Lib=yes"
16661 else
16662   echo "$as_me: failed program was:" >&5
16663 sed 's/^/| /' conftest.$ac_ext >&5
16664
16665 eval "$as_ac_Lib=no"
16666 fi
16667 rm -f conftest.err conftest.$ac_objext \
16668       conftest$ac_exeext conftest.$ac_ext
16669 LIBS=$ac_check_lib_save_LIBS
16670 fi
16671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16672 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16673 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16674   tcl_lib=-l$l
16675 fi
16676 ;; esac
16677     done
16678     LIBS="$LIBS $tcl_lib"
16679     for l in tk tk8.4 tk8.3 tk8.0jp tk4.2jp tk80jp tk42jp tk8.0 tk4.2 tk80 tk42; do
16680       case "x$tk_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tk_Init" | $as_tr_sh`
16681 echo "$as_me:$LINENO: checking for Tk_Init in -l$l" >&5
16682 echo $ECHO_N "checking for Tk_Init in -l$l... $ECHO_C" >&6
16683 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16684   echo $ECHO_N "(cached) $ECHO_C" >&6
16685 else
16686   ac_check_lib_save_LIBS=$LIBS
16687 LIBS="-l$l  $LIBS"
16688 cat >conftest.$ac_ext <<_ACEOF
16689 /* confdefs.h.  */
16690 _ACEOF
16691 cat confdefs.h >>conftest.$ac_ext
16692 cat >>conftest.$ac_ext <<_ACEOF
16693 /* end confdefs.h.  */
16694
16695 /* Override any gcc2 internal prototype to avoid an error.  */
16696 #ifdef __cplusplus
16697 extern "C"
16698 #endif
16699 /* We use char because int might match the return type of a gcc2
16700    builtin and then its argument prototype would still apply.  */
16701 char Tk_Init ();
16702 int
16703 main ()
16704 {
16705 Tk_Init ();
16706   ;
16707   return 0;
16708 }
16709 _ACEOF
16710 rm -f conftest.$ac_objext conftest$ac_exeext
16711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16712   (eval $ac_link) 2>conftest.er1
16713   ac_status=$?
16714   grep -v '^ *+' conftest.er1 >conftest.err
16715   rm -f conftest.er1
16716   cat conftest.err >&5
16717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718   (exit $ac_status); } &&
16719          { ac_try='test -z "$ac_c_werror_flag"
16720                          || test ! -s conftest.err'
16721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722   (eval $ac_try) 2>&5
16723   ac_status=$?
16724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725   (exit $ac_status); }; } &&
16726          { ac_try='test -s conftest$ac_exeext'
16727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728   (eval $ac_try) 2>&5
16729   ac_status=$?
16730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731   (exit $ac_status); }; }; then
16732   eval "$as_ac_Lib=yes"
16733 else
16734   echo "$as_me: failed program was:" >&5
16735 sed 's/^/| /' conftest.$ac_ext >&5
16736
16737 eval "$as_ac_Lib=no"
16738 fi
16739 rm -f conftest.err conftest.$ac_objext \
16740       conftest$ac_exeext conftest.$ac_ext
16741 LIBS=$ac_check_lib_save_LIBS
16742 fi
16743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16744 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16745 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16746   tk_lib=-l$l
16747 fi
16748 ;; esac
16749     done
16750
16751     LIBS=$KEEPLIBS
16752     if test "x$tcl_lib" = x -o "x$tk_lib" = x; then
16753       CPPFLAGS=$KEEPCPPFLAGS
16754       LDFLAGS=$KEEPLDFLAGS
16755       enable_tcltk=no
16756       { echo "$as_me:$LINENO: WARNING: tcl/tk is not enable" >&5
16757 echo "$as_me: WARNING: tcl/tk is not enable" >&2;}
16758     else
16759       tcltk_dep='tclIndex'
16760     fi
16761    ;; esac
16762 fi;
16763 case "x$enable_tcltk" in
16764 xyes)
16765   cat >> confdefs.h <<EOF
16766 #define IA_TCLTK 1
16767 EOF
16768
16769
16770
16771 if true; then
16772   ENABLE_TCLTK_TRUE=
16773   ENABLE_TCLTK_FALSE='#'
16774 else
16775   ENABLE_TCLTK_TRUE='#'
16776   ENABLE_TCLTK_FALSE=
16777 fi
16778
16779    LIBS=`echo $LIBS | sed "s/-lX11/$tk_lib $tcl_lib -lX11/"`
16780     case "$target" in
16781       *-*-bsdi*)
16782         EXTRALIBS="$EXTRALIBS -lipc"
16783         ;;
16784     esac
16785     INTERFACE_SRCS="$INTERFACE_SRCS tk_c.c"
16786
16787   ;;
16788 xdynamic)
16789   dynamic_targets="$dynamic_targets interface_k.\$(so)"
16790    k_so_libs="$tcl_libdir $tk_libdir $tcl_lib $tk_lib $lib_dl_opt"
16791     case "$target" in
16792       *-*-bsdi*)
16793         k_so_libs="$k_so_libs -lipc"
16794         ;;
16795     esac
16796     k_so_libs="$k_so_libs -lX11 -lm"
16797
16798   ;;
16799 *)
16800
16801   ;;
16802 esac
16803
16804
16805
16806
16807 if test "x$enable_tcltk" = "xdynamic"; then
16808   ENABLE_DYNAMIC_TCLTK_TRUE=
16809   ENABLE_DYNAMIC_TCLTK_FALSE='#'
16810 else
16811   ENABLE_DYNAMIC_TCLTK_TRUE='#'
16812   ENABLE_DYNAMIC_TCLTK_FALSE=
16813 fi
16814
16815
16816
16817
16818 if false; then
16819   ENABLE_EMACS_TRUE=
16820   ENABLE_EMACS_FALSE='#'
16821 else
16822   ENABLE_EMACS_TRUE='#'
16823   ENABLE_EMACS_FALSE=
16824 fi
16825
16826 # Check whether --enable-emacs or --disable-emacs was given.
16827 if test "${enable_emacs+set}" = set; then
16828   enableval="$enable_emacs"
16829   case "x$enable_emacs" in xyes|xdynamic)  ;; esac
16830 fi;
16831 case "x$enable_emacs" in
16832 xyes)
16833   cat >> confdefs.h <<EOF
16834 #define IA_EMACS 1
16835 EOF
16836
16837
16838
16839 if true; then
16840   ENABLE_EMACS_TRUE=
16841   ENABLE_EMACS_FALSE='#'
16842 else
16843   ENABLE_EMACS_TRUE='#'
16844   ENABLE_EMACS_FALSE=
16845 fi
16846
16847    ELFILES="$ELFILES timidity.el"
16848     INTERFACE_SRCS="$INTERFACE_SRCS emacs_c.c"
16849
16850   ;;
16851 xdynamic)
16852   dynamic_targets="$dynamic_targets interface_e.\$(so)"
16853    ELFILES="$ELFILES timidity.el"
16854   ;;
16855 *)
16856
16857   ;;
16858 esac
16859
16860
16861
16862
16863
16864 if false; then
16865   ENABLE_VT100_TRUE=
16866   ENABLE_VT100_FALSE='#'
16867 else
16868   ENABLE_VT100_TRUE='#'
16869   ENABLE_VT100_FALSE=
16870 fi
16871
16872 # Check whether --enable-vt100 or --disable-vt100 was given.
16873 if test "${enable_vt100+set}" = set; then
16874   enableval="$enable_vt100"
16875   case "x$enable_vt100" in xyes|xdynamic)  ;; esac
16876 fi;
16877 case "x$enable_vt100" in
16878 xyes)
16879   cat >> confdefs.h <<EOF
16880 #define IA_VT100 1
16881 EOF
16882
16883
16884
16885 if true; then
16886   ENABLE_VT100_TRUE=
16887   ENABLE_VT100_FALSE='#'
16888 else
16889   ENABLE_VT100_TRUE='#'
16890   ENABLE_VT100_FALSE=
16891 fi
16892
16893    INTERFACE_SRCS="$INTERFACE_SRCS vt100_c.c vt100.c"
16894   ;;
16895 xdynamic)
16896   dynamic_targets="$dynamic_targets interface_T.\$(so)"
16897
16898   ;;
16899 *)
16900
16901   ;;
16902 esac
16903
16904
16905
16906
16907
16908 if false; then
16909   ENABLE_XAW_TRUE=
16910   ENABLE_XAW_FALSE='#'
16911 else
16912   ENABLE_XAW_TRUE='#'
16913   ENABLE_XAW_FALSE=
16914 fi
16915
16916 # Check whether --enable-xaw or --disable-xaw was given.
16917 if test "${enable_xaw+set}" = set; then
16918   enableval="$enable_xaw"
16919   case "x$enable_xaw" in xyes|xdynamic)  if test "x$with_x" != xyes; then
16920         { { echo "$as_me:$LINENO: error: xaw: --with-x option must be specified" >&5
16921 echo "$as_me: error: xaw: --with-x option must be specified" >&2;}
16922    { (exit 1); exit 1; }; }
16923     fi
16924     if test "x$have_xaw" != "xyes" -a "x$have_xaw" != "x3d"; then
16925       { echo "$as_me:$LINENO: WARNING: X Athena Widget library is not found." >&5
16926 echo "$as_me: WARNING: X Athena Widget library is not found." >&2;}
16927       enable_xaw=no
16928     fi  ;; esac
16929 fi;
16930 case "x$enable_xaw" in
16931 xyes)
16932   cat >> confdefs.h <<EOF
16933 #define IA_XAW 1
16934 EOF
16935
16936
16937
16938 if true; then
16939   ENABLE_XAW_TRUE=
16940   ENABLE_XAW_FALSE='#'
16941 else
16942   ENABLE_XAW_TRUE='#'
16943   ENABLE_XAW_FALSE=
16944 fi
16945
16946        if test "x$have_xext" = xyes; then
16947       lib_xext_opt=-lXext
16948     fi
16949     if test "x$have_xprelibs" = xyes; then
16950       lib_xprelibs_opt='-lSM -lICE'
16951     fi
16952     lib_xmu_opt=-lXmu
16953     lib_xt_opt=-lXt
16954     if test "x$have_xaw" = x3d; then
16955
16956 cat >>confdefs.h <<\_ACEOF
16957 #define XAW3D 1
16958 _ACEOF
16959
16960       lib_xaw_opt=-lXaw3d
16961     else
16962       lib_xaw_opt=-lXaw
16963     fi
16964     INTERFACE_SRCS="$INTERFACE_SRCS xaw_c.c xaw_i.c"
16965
16966   ;;
16967 xdynamic)
16968   dynamic_targets="$dynamic_targets interface_a.\$(so)"
16969    if test "x$have_xext" = xyes; then
16970       a_so_libs="-lXext -lX11"
16971     else
16972       a_so_libs="-lX11"
16973     fi
16974     case "$target" in
16975       *darwin*)
16976         a_so_libs="$a_so_libs -lcc_dynamic"
16977         ;;
16978     esac
16979     if test "x$have_xprelibs" = xyes; then
16980       a_so_libs="-lSM -lICE $a_so_libs"
16981     fi
16982     if test "x$have_xaw" = xyes; then
16983       a_so_libs="-lXaw -lXmu -lXt $a_so_libs"
16984     elif test "x$have_xaw" = x3d; then
16985
16986 cat >>confdefs.h <<\_ACEOF
16987 #define XAW3D 1
16988 _ACEOF
16989
16990       a_so_libs="-lXaw3d -lXmu -lXt $a_so_libs"
16991     fi
16992     a_so_libs="$ldflags_x_opt $a_so_libs"
16993
16994   ;;
16995 *)
16996
16997   ;;
16998 esac
16999
17000
17001
17002
17003 if test "x$enable_xaw" = "xdynamic"; then
17004   ENABLE_DYNAMIC_XAW_TRUE=
17005   ENABLE_DYNAMIC_XAW_FALSE='#'
17006 else
17007   ENABLE_DYNAMIC_XAW_TRUE='#'
17008   ENABLE_DYNAMIC_XAW_FALSE=
17009 fi
17010
17011
17012
17013
17014 if false; then
17015   ENABLE_XSKIN_TRUE=
17016   ENABLE_XSKIN_FALSE='#'
17017 else
17018   ENABLE_XSKIN_TRUE='#'
17019   ENABLE_XSKIN_FALSE=
17020 fi
17021
17022 # Check whether --enable-xskin or --disable-xskin was given.
17023 if test "${enable_xskin+set}" = set; then
17024   enableval="$enable_xskin"
17025   case "x$enable_xskin" in xyes|xdynamic)  if test "x$with_x" != xyes; then
17026         { { echo "$as_me:$LINENO: error: xskin: --with-x option must be specified" >&5
17027 echo "$as_me: error: xskin: --with-x option must be specified" >&2;}
17028    { (exit 1); exit 1; }; }
17029     fi
17030    ;; esac
17031 fi;
17032 case "x$enable_xskin" in
17033 xyes)
17034   cat >> confdefs.h <<EOF
17035 #define IA_XSKIN 1
17036 EOF
17037
17038
17039
17040 if true; then
17041   ENABLE_XSKIN_TRUE=
17042   ENABLE_XSKIN_FALSE='#'
17043 else
17044   ENABLE_XSKIN_TRUE='#'
17045   ENABLE_XSKIN_FALSE=
17046 fi
17047
17048    INTERFACE_SRCS="$INTERFACE_SRCS xskin_c.c xskin_i.c xskin_loadBMP.c xskin_spectrum.c"
17049   ;;
17050 xdynamic)
17051   dynamic_targets="$dynamic_targets interface_i.\$(so)"
17052    i_so_libs="$ldflags_x_opt -lX11"
17053   ;;
17054 *)
17055
17056   ;;
17057 esac
17058
17059
17060
17061
17062
17063 if false; then
17064   ENABLE_GTK_TRUE=
17065   ENABLE_GTK_FALSE='#'
17066 else
17067   ENABLE_GTK_TRUE='#'
17068   ENABLE_GTK_FALSE=
17069 fi
17070
17071 # Check whether --enable-gtk or --disable-gtk was given.
17072 if test "${enable_gtk+set}" = set; then
17073   enableval="$enable_gtk"
17074   case "x$enable_gtk" in xyes|xdynamic)  # Check whether --enable-gtktest or --disable-gtktest was given.
17075 if test "${enable_gtktest+set}" = set; then
17076   enableval="$enable_gtktest"
17077
17078 else
17079   enable_gtktest=yes
17080 fi;
17081
17082   pkg_config_args=gtk+-2.0
17083   for module in .
17084   do
17085       case "$module" in
17086          gthread)
17087              pkg_config_args="$pkg_config_args gthread-2.0"
17088          ;;
17089       esac
17090   done
17091
17092   no_gtk=""
17093
17094   # Extract the first word of "pkg-config", so it can be a program name with args.
17095 set dummy pkg-config; ac_word=$2
17096 echo "$as_me:$LINENO: checking for $ac_word" >&5
17097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17098 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
17099   echo $ECHO_N "(cached) $ECHO_C" >&6
17100 else
17101   case $PKG_CONFIG in
17102   [\\/]* | ?:[\\/]*)
17103   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17104   ;;
17105   *)
17106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17107 for as_dir in $PATH
17108 do
17109   IFS=$as_save_IFS
17110   test -z "$as_dir" && as_dir=.
17111   for ac_exec_ext in '' $ac_executable_extensions; do
17112   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17113     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17115     break 2
17116   fi
17117 done
17118 done
17119
17120   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17121   ;;
17122 esac
17123 fi
17124 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17125
17126 if test -n "$PKG_CONFIG"; then
17127   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
17128 echo "${ECHO_T}$PKG_CONFIG" >&6
17129 else
17130   echo "$as_me:$LINENO: result: no" >&5
17131 echo "${ECHO_T}no" >&6
17132 fi
17133
17134
17135   if test x$PKG_CONFIG != xno ; then
17136     if pkg-config --atleast-pkgconfig-version 0.7 ; then
17137       :
17138     else
17139       echo *** pkg-config too old; version 0.7 or better required.
17140       no_gtk=yes
17141       PKG_CONFIG=no
17142     fi
17143   else
17144     no_gtk=yes
17145   fi
17146
17147   min_gtk_version=2.0.0
17148   echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
17149 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
17150
17151   if test x$PKG_CONFIG != xno ; then
17152     ## don't try to run the test against uninstalled libtool libs
17153     if $PKG_CONFIG --uninstalled $pkg_config_args; then
17154           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
17155           enable_gtktest=no
17156     fi
17157
17158     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
17159           :
17160     else
17161           no_gtk=yes
17162     fi
17163   fi
17164
17165   if test x"$no_gtk" = x ; then
17166     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
17167     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
17168     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
17169            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17170     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
17171            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17172     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
17173            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17174     if test "x$enable_gtktest" = "xyes" ; then
17175       ac_save_CFLAGS="$CFLAGS"
17176       ac_save_LIBS="$LIBS"
17177       CFLAGS="$CFLAGS $GTK_CFLAGS"
17178       LIBS="$GTK_LIBS $LIBS"
17179       rm -f conf.gtktest
17180       if test "$cross_compiling" = yes; then
17181   echo $ac_n "cross compiling; assumed OK... $ac_c"
17182 else
17183   cat >conftest.$ac_ext <<_ACEOF
17184 /* confdefs.h.  */
17185 _ACEOF
17186 cat confdefs.h >>conftest.$ac_ext
17187 cat >>conftest.$ac_ext <<_ACEOF
17188 /* end confdefs.h.  */
17189
17190 #include <gtk/gtk.h>
17191 #include <stdio.h>
17192 #include <stdlib.h>
17193
17194 int
17195 main ()
17196 {
17197   int major, minor, micro;
17198   char *tmp_version;
17199
17200   system ("touch conf.gtktest");
17201
17202   /* HP/UX 9 (%@#!) writes to sscanf strings */
17203   tmp_version = g_strdup("$min_gtk_version");
17204   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
17205      printf("%s, bad version string\n", "$min_gtk_version");
17206      exit(1);
17207    }
17208
17209   if ((gtk_major_version != $gtk_config_major_version) ||
17210       (gtk_minor_version != $gtk_config_minor_version) ||
17211       (gtk_micro_version != $gtk_config_micro_version))
17212     {
17213       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
17214              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
17215              gtk_major_version, gtk_minor_version, gtk_micro_version);
17216       printf ("*** was found! If pkg-config was correct, then it is best\n");
17217       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
17218       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17219       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17220       printf("*** required on your system.\n");
17221       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
17222       printf("*** to point to the correct configuration files\n");
17223     }
17224   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
17225            (gtk_minor_version != GTK_MINOR_VERSION) ||
17226            (gtk_micro_version != GTK_MICRO_VERSION))
17227     {
17228       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
17229              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
17230       printf("*** library (version %d.%d.%d)\n",
17231              gtk_major_version, gtk_minor_version, gtk_micro_version);
17232     }
17233   else
17234     {
17235       if ((gtk_major_version > major) ||
17236         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
17237         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
17238       {
17239         return 0;
17240        }
17241      else
17242       {
17243         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
17244                gtk_major_version, gtk_minor_version, gtk_micro_version);
17245         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
17246                major, minor, micro);
17247         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
17248         printf("***\n");
17249         printf("*** If you have already installed a sufficiently new version, this error\n");
17250         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
17251         printf("*** being found. The easiest way to fix this is to remove the old version\n");
17252         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
17253         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
17254         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17255         printf("*** so that the correct libraries are found at run-time))\n");
17256       }
17257     }
17258   return 1;
17259 }
17260
17261 _ACEOF
17262 rm -f conftest$ac_exeext
17263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17264   (eval $ac_link) 2>&5
17265   ac_status=$?
17266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269   (eval $ac_try) 2>&5
17270   ac_status=$?
17271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272   (exit $ac_status); }; }; then
17273   :
17274 else
17275   echo "$as_me: program exited with status $ac_status" >&5
17276 echo "$as_me: failed program was:" >&5
17277 sed 's/^/| /' conftest.$ac_ext >&5
17278
17279 ( exit $ac_status )
17280 no_gtk=yes
17281 fi
17282 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17283 fi
17284        CFLAGS="$ac_save_CFLAGS"
17285        LIBS="$ac_save_LIBS"
17286      fi
17287   fi
17288   if test "x$no_gtk" = x ; then
17289      echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
17290 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
17291
17292 cat >>confdefs.h <<\_ACEOF
17293 #define HAVE_GTK_2 1
17294 _ACEOF
17295
17296   else
17297      echo "$as_me:$LINENO: result: no" >&5
17298 echo "${ECHO_T}no" >&6
17299      if test "$PKG_CONFIG" = "no" ; then
17300        echo "*** A new enough version of pkg-config was not found."
17301        echo "*** See http://pkgconfig.sourceforge.net"
17302      else
17303        if test -f conf.gtktest ; then
17304         :
17305        else
17306           echo "*** Could not run GTK+ test program, checking why..."
17307           ac_save_CFLAGS="$CFLAGS"
17308           ac_save_LIBS="$LIBS"
17309           CFLAGS="$CFLAGS $GTK_CFLAGS"
17310           LIBS="$LIBS $GTK_LIBS"
17311           cat >conftest.$ac_ext <<_ACEOF
17312 /* confdefs.h.  */
17313 _ACEOF
17314 cat confdefs.h >>conftest.$ac_ext
17315 cat >>conftest.$ac_ext <<_ACEOF
17316 /* end confdefs.h.  */
17317
17318 #include <gtk/gtk.h>
17319 #include <stdio.h>
17320
17321 int
17322 main ()
17323 {
17324  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
17325   ;
17326   return 0;
17327 }
17328 _ACEOF
17329 rm -f conftest.$ac_objext conftest$ac_exeext
17330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17331   (eval $ac_link) 2>conftest.er1
17332   ac_status=$?
17333   grep -v '^ *+' conftest.er1 >conftest.err
17334   rm -f conftest.er1
17335   cat conftest.err >&5
17336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337   (exit $ac_status); } &&
17338          { ac_try='test -z "$ac_c_werror_flag"
17339                          || test ! -s conftest.err'
17340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17341   (eval $ac_try) 2>&5
17342   ac_status=$?
17343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344   (exit $ac_status); }; } &&
17345          { ac_try='test -s conftest$ac_exeext'
17346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17347   (eval $ac_try) 2>&5
17348   ac_status=$?
17349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350   (exit $ac_status); }; }; then
17351    echo "*** The test program compiled, but did not run. This usually means"
17352           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
17353           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
17354           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17355           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
17356           echo "*** is required on your system"
17357           echo "***"
17358           echo "*** If you have an old version installed, it is best to remove it, although"
17359           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17360 else
17361   echo "$as_me: failed program was:" >&5
17362 sed 's/^/| /' conftest.$ac_ext >&5
17363
17364  echo "*** The test program failed to compile or link. See the file config.log for the"
17365           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
17366 fi
17367 rm -f conftest.err conftest.$ac_objext \
17368       conftest$ac_exeext conftest.$ac_ext
17369           CFLAGS="$ac_save_CFLAGS"
17370           LIBS="$ac_save_LIBS"
17371        fi
17372      fi
17373      GTK_CFLAGS=""
17374      GTK_LIBS=""
17375
17376 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
17377 if test "${with_gtk_prefix+set}" = set; then
17378   withval="$with_gtk_prefix"
17379   gtk_config_prefix="$withval"
17380 else
17381   gtk_config_prefix=""
17382 fi;
17383
17384 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
17385 if test "${with_gtk_exec_prefix+set}" = set; then
17386   withval="$with_gtk_exec_prefix"
17387   gtk_config_exec_prefix="$withval"
17388 else
17389   gtk_config_exec_prefix=""
17390 fi;
17391 # Check whether --enable-gtktest or --disable-gtktest was given.
17392 if test "${enable_gtktest+set}" = set; then
17393   enableval="$enable_gtktest"
17394
17395 else
17396   enable_gtktest=yes
17397 fi;
17398
17399   for module in .
17400   do
17401       case "$module" in
17402          gthread)
17403              gtk_config_args="$gtk_config_args gthread"
17404          ;;
17405       esac
17406   done
17407
17408   if test x$gtk_config_exec_prefix != x ; then
17409      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
17410      if test x${GTK_CONFIG+set} != xset ; then
17411         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
17412      fi
17413   fi
17414   if test x$gtk_config_prefix != x ; then
17415      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
17416      if test x${GTK_CONFIG+set} != xset ; then
17417         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
17418      fi
17419   fi
17420
17421   # Extract the first word of "gtk-config", so it can be a program name with args.
17422 set dummy gtk-config; ac_word=$2
17423 echo "$as_me:$LINENO: checking for $ac_word" >&5
17424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17425 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
17426   echo $ECHO_N "(cached) $ECHO_C" >&6
17427 else
17428   case $GTK_CONFIG in
17429   [\\/]* | ?:[\\/]*)
17430   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
17431   ;;
17432   *)
17433   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17434 for as_dir in $PATH
17435 do
17436   IFS=$as_save_IFS
17437   test -z "$as_dir" && as_dir=.
17438   for ac_exec_ext in '' $ac_executable_extensions; do
17439   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17440     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17442     break 2
17443   fi
17444 done
17445 done
17446
17447   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
17448   ;;
17449 esac
17450 fi
17451 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
17452
17453 if test -n "$GTK_CONFIG"; then
17454   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
17455 echo "${ECHO_T}$GTK_CONFIG" >&6
17456 else
17457   echo "$as_me:$LINENO: result: no" >&5
17458 echo "${ECHO_T}no" >&6
17459 fi
17460
17461   min_gtk_version=1.1.3
17462   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
17463 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
17464   no_gtk=""
17465   if test "$GTK_CONFIG" = "no" ; then
17466     no_gtk=yes
17467   else
17468     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
17469     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
17470     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
17471            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17472     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
17473            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17474     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
17475            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17476     if test "x$enable_gtktest" = "xyes" ; then
17477       ac_save_CFLAGS="$CFLAGS"
17478       ac_save_LIBS="$LIBS"
17479       CFLAGS="$CFLAGS $GTK_CFLAGS"
17480       LIBS="$GTK_LIBS $LIBS"
17481       rm -f conf.gtktest
17482       if test "$cross_compiling" = yes; then
17483   echo $ac_n "cross compiling; assumed OK... $ac_c"
17484 else
17485   cat >conftest.$ac_ext <<_ACEOF
17486 /* confdefs.h.  */
17487 _ACEOF
17488 cat confdefs.h >>conftest.$ac_ext
17489 cat >>conftest.$ac_ext <<_ACEOF
17490 /* end confdefs.h.  */
17491
17492 #include <gtk/gtk.h>
17493 #include <stdio.h>
17494 #include <stdlib.h>
17495
17496 int
17497 main ()
17498 {
17499   int major, minor, micro;
17500   char *tmp_version;
17501
17502   system ("touch conf.gtktest");
17503
17504   /* HP/UX 9 (%@#!) writes to sscanf strings */
17505   tmp_version = g_strdup("$min_gtk_version");
17506   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
17507      printf("%s, bad version string\n", "$min_gtk_version");
17508      exit(1);
17509    }
17510
17511   if ((gtk_major_version != $gtk_config_major_version) ||
17512       (gtk_minor_version != $gtk_config_minor_version) ||
17513       (gtk_micro_version != $gtk_config_micro_version))
17514     {
17515       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
17516              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
17517              gtk_major_version, gtk_minor_version, gtk_micro_version);
17518       printf ("*** was found! If gtk-config was correct, then it is best\n");
17519       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
17520       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17521       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17522       printf("*** required on your system.\n");
17523       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
17524       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
17525       printf("*** before re-running configure\n");
17526     }
17527 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
17528   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
17529            (gtk_minor_version != GTK_MINOR_VERSION) ||
17530            (gtk_micro_version != GTK_MICRO_VERSION))
17531     {
17532       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
17533              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
17534       printf("*** library (version %d.%d.%d)\n",
17535              gtk_major_version, gtk_minor_version, gtk_micro_version);
17536     }
17537 #endif /* defined (GTK_MAJOR_VERSION) ... */
17538   else
17539     {
17540       if ((gtk_major_version > major) ||
17541         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
17542         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
17543       {
17544         return 0;
17545        }
17546      else
17547       {
17548         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
17549                gtk_major_version, gtk_minor_version, gtk_micro_version);
17550         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
17551                major, minor, micro);
17552         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
17553         printf("***\n");
17554         printf("*** If you have already installed a sufficiently new version, this error\n");
17555         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
17556         printf("*** being found. The easiest way to fix this is to remove the old version\n");
17557         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
17558         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
17559         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17560         printf("*** so that the correct libraries are found at run-time))\n");
17561       }
17562     }
17563   return 1;
17564 }
17565
17566 _ACEOF
17567 rm -f conftest$ac_exeext
17568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17569   (eval $ac_link) 2>&5
17570   ac_status=$?
17571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17574   (eval $ac_try) 2>&5
17575   ac_status=$?
17576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577   (exit $ac_status); }; }; then
17578   :
17579 else
17580   echo "$as_me: program exited with status $ac_status" >&5
17581 echo "$as_me: failed program was:" >&5
17582 sed 's/^/| /' conftest.$ac_ext >&5
17583
17584 ( exit $ac_status )
17585 no_gtk=yes
17586 fi
17587 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17588 fi
17589        CFLAGS="$ac_save_CFLAGS"
17590        LIBS="$ac_save_LIBS"
17591      fi
17592   fi
17593   if test "x$no_gtk" = x ; then
17594      echo "$as_me:$LINENO: result: yes" >&5
17595 echo "${ECHO_T}yes" >&6
17596      :
17597   else
17598      echo "$as_me:$LINENO: result: no" >&5
17599 echo "${ECHO_T}no" >&6
17600      if test "$GTK_CONFIG" = "no" ; then
17601        echo "*** The gtk-config script installed by GTK could not be found"
17602        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
17603        echo "*** your path, or set the GTK_CONFIG environment variable to the"
17604        echo "*** full path to gtk-config."
17605      else
17606        if test -f conf.gtktest ; then
17607         :
17608        else
17609           echo "*** Could not run GTK test program, checking why..."
17610           CFLAGS="$CFLAGS $GTK_CFLAGS"
17611           LIBS="$LIBS $GTK_LIBS"
17612           cat >conftest.$ac_ext <<_ACEOF
17613 /* confdefs.h.  */
17614 _ACEOF
17615 cat confdefs.h >>conftest.$ac_ext
17616 cat >>conftest.$ac_ext <<_ACEOF
17617 /* end confdefs.h.  */
17618
17619 #include <gtk/gtk.h>
17620 #include <stdio.h>
17621
17622 int
17623 main ()
17624 {
17625  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
17626   ;
17627   return 0;
17628 }
17629 _ACEOF
17630 rm -f conftest.$ac_objext conftest$ac_exeext
17631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17632   (eval $ac_link) 2>conftest.er1
17633   ac_status=$?
17634   grep -v '^ *+' conftest.er1 >conftest.err
17635   rm -f conftest.er1
17636   cat conftest.err >&5
17637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638   (exit $ac_status); } &&
17639          { ac_try='test -z "$ac_c_werror_flag"
17640                          || test ! -s conftest.err'
17641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17642   (eval $ac_try) 2>&5
17643   ac_status=$?
17644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645   (exit $ac_status); }; } &&
17646          { ac_try='test -s conftest$ac_exeext'
17647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17648   (eval $ac_try) 2>&5
17649   ac_status=$?
17650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651   (exit $ac_status); }; }; then
17652    echo "*** The test program compiled, but did not run. This usually means"
17653           echo "*** that the run-time linker is not finding GTK or finding the wrong"
17654           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
17655           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17656           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
17657           echo "*** is required on your system"
17658           echo "***"
17659           echo "*** If you have an old version installed, it is best to remove it, although"
17660           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17661           echo "***"
17662           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
17663           echo "*** came with the system with the command"
17664           echo "***"
17665           echo "***    rpm --erase --nodeps gtk gtk-devel"
17666 else
17667   echo "$as_me: failed program was:" >&5
17668 sed 's/^/| /' conftest.$ac_ext >&5
17669
17670  echo "*** The test program failed to compile or link. See the file config.log for the"
17671           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
17672           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
17673           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
17674 fi
17675 rm -f conftest.err conftest.$ac_objext \
17676       conftest$ac_exeext conftest.$ac_ext
17677           CFLAGS="$ac_save_CFLAGS"
17678           LIBS="$ac_save_LIBS"
17679        fi
17680      fi
17681      GTK_CFLAGS=""
17682      GTK_LIBS=""
17683      enable_gtk=no
17684   fi
17685
17686
17687   rm -f conf.gtktest
17688
17689   fi
17690
17691
17692   rm -f conf.gtktest
17693   ;; esac
17694 fi;
17695 case "x$enable_gtk" in
17696 xyes)
17697   cat >> confdefs.h <<EOF
17698 #define IA_GTK 1
17699 EOF
17700
17701
17702
17703 if true; then
17704   ENABLE_GTK_TRUE=
17705   ENABLE_GTK_FALSE='#'
17706 else
17707   ENABLE_GTK_TRUE='#'
17708   ENABLE_GTK_FALSE=
17709 fi
17710
17711    LIBS="$LIBS $GTK_LIBS"
17712     for f in $GTK_CFLAGS; do
17713     case ".$f" in
17714         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
17715         *)              CFLAGS="$CPPFLAGS $f" ;;
17716     esac
17717 done
17718
17719     INTERFACE_SRCS="$INTERFACE_SRCS gtk_c.c gtk_i.c gtk_p.c"
17720
17721   ;;
17722 xdynamic)
17723   dynamic_targets="$dynamic_targets interface_g.\$(so)"
17724    if test "x$GCC" = xyes; then
17725                 for i in $GTK_LIBS; do
17726             case "x$i" in
17727                 x-rdynamic) ;;
17728                 *) g_so_libs="$g_so_libs $i" ;;
17729             esac
17730         done
17731     else
17732         g_so_libs="$GTK_LIBS"
17733     fi
17734     for f in $GTK_CFLAGS; do
17735     case ".$f" in
17736         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
17737         *)              CFLAGS="$CPPFLAGS $f" ;;
17738     esac
17739 done
17740
17741   ;;
17742 *)
17743
17744   ;;
17745 esac
17746
17747
17748
17749
17750
17751 if false; then
17752   ENABLE_SERVER_TRUE=
17753   ENABLE_SERVER_FALSE='#'
17754 else
17755   ENABLE_SERVER_TRUE='#'
17756   ENABLE_SERVER_FALSE=
17757 fi
17758
17759 # Check whether --enable-server or --disable-server was given.
17760 if test "${enable_server+set}" = set; then
17761   enableval="$enable_server"
17762   case "x$enable_server" in xyes|xdynamic)  ;; esac
17763 fi;
17764 case "x$enable_server" in
17765 xyes)
17766   cat >> confdefs.h <<EOF
17767 #define IA_SERVER 1
17768 EOF
17769
17770
17771
17772 if true; then
17773   ENABLE_SERVER_TRUE=
17774   ENABLE_SERVER_FALSE='#'
17775 else
17776   ENABLE_SERVER_TRUE='#'
17777   ENABLE_SERVER_FALSE=
17778 fi
17779
17780    INTERFACE_SRCS="$INTERFACE_SRCS server_c.c"
17781
17782 for ac_header in sys/soundcard.h
17783 do
17784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17786   echo "$as_me:$LINENO: checking for $ac_header" >&5
17787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17789   echo $ECHO_N "(cached) $ECHO_C" >&6
17790 fi
17791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17793 else
17794   # Is the header compilable?
17795 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17797 cat >conftest.$ac_ext <<_ACEOF
17798 /* confdefs.h.  */
17799 _ACEOF
17800 cat confdefs.h >>conftest.$ac_ext
17801 cat >>conftest.$ac_ext <<_ACEOF
17802 /* end confdefs.h.  */
17803 $ac_includes_default
17804 #include <$ac_header>
17805 _ACEOF
17806 rm -f conftest.$ac_objext
17807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17808   (eval $ac_compile) 2>conftest.er1
17809   ac_status=$?
17810   grep -v '^ *+' conftest.er1 >conftest.err
17811   rm -f conftest.er1
17812   cat conftest.err >&5
17813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814   (exit $ac_status); } &&
17815          { ac_try='test -z "$ac_c_werror_flag"
17816                          || test ! -s conftest.err'
17817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17818   (eval $ac_try) 2>&5
17819   ac_status=$?
17820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821   (exit $ac_status); }; } &&
17822          { ac_try='test -s conftest.$ac_objext'
17823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17824   (eval $ac_try) 2>&5
17825   ac_status=$?
17826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827   (exit $ac_status); }; }; then
17828   ac_header_compiler=yes
17829 else
17830   echo "$as_me: failed program was:" >&5
17831 sed 's/^/| /' conftest.$ac_ext >&5
17832
17833 ac_header_compiler=no
17834 fi
17835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17836 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17837 echo "${ECHO_T}$ac_header_compiler" >&6
17838
17839 # Is the header present?
17840 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17841 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17842 cat >conftest.$ac_ext <<_ACEOF
17843 /* confdefs.h.  */
17844 _ACEOF
17845 cat confdefs.h >>conftest.$ac_ext
17846 cat >>conftest.$ac_ext <<_ACEOF
17847 /* end confdefs.h.  */
17848 #include <$ac_header>
17849 _ACEOF
17850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17851   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17852   ac_status=$?
17853   grep -v '^ *+' conftest.er1 >conftest.err
17854   rm -f conftest.er1
17855   cat conftest.err >&5
17856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857   (exit $ac_status); } >/dev/null; then
17858   if test -s conftest.err; then
17859     ac_cpp_err=$ac_c_preproc_warn_flag
17860     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17861   else
17862     ac_cpp_err=
17863   fi
17864 else
17865   ac_cpp_err=yes
17866 fi
17867 if test -z "$ac_cpp_err"; then
17868   ac_header_preproc=yes
17869 else
17870   echo "$as_me: failed program was:" >&5
17871 sed 's/^/| /' conftest.$ac_ext >&5
17872
17873   ac_header_preproc=no
17874 fi
17875 rm -f conftest.err conftest.$ac_ext
17876 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17877 echo "${ECHO_T}$ac_header_preproc" >&6
17878
17879 # So?  What about this header?
17880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17881   yes:no: )
17882     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17884     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17886     ac_header_preproc=yes
17887     ;;
17888   no:yes:* )
17889     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17891     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17892 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17893     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17894 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17895     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17896 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17897     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17899     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17900 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17901     (
17902       cat <<\_ASBOX
17903 ## ------------------------------- ##
17904 ## Report this to root@mput.dip.jp ##
17905 ## ------------------------------- ##
17906 _ASBOX
17907     ) |
17908       sed "s/^/$as_me: WARNING:     /" >&2
17909     ;;
17910 esac
17911 echo "$as_me:$LINENO: checking for $ac_header" >&5
17912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17914   echo $ECHO_N "(cached) $ECHO_C" >&6
17915 else
17916   eval "$as_ac_Header=\$ac_header_preproc"
17917 fi
17918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17920
17921 fi
17922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17923   cat >>confdefs.h <<_ACEOF
17924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17925 _ACEOF
17926
17927 fi
17928
17929 done
17930
17931
17932   ;;
17933 xdynamic)
17934   dynamic_targets="$dynamic_targets interface_r.\$(so)"
17935
17936   ;;
17937 *)
17938
17939   ;;
17940 esac
17941
17942
17943
17944
17945
17946 if false; then
17947   ENABLE_ALSASEQ_TRUE=
17948   ENABLE_ALSASEQ_FALSE='#'
17949 else
17950   ENABLE_ALSASEQ_TRUE='#'
17951   ENABLE_ALSASEQ_FALSE=
17952 fi
17953
17954 # Check whether --enable-alsaseq or --disable-alsaseq was given.
17955 if test "${enable_alsaseq+set}" = set; then
17956   enableval="$enable_alsaseq"
17957   case "x$enable_alsaseq" in xyes|xdynamic)  ;; esac
17958 fi;
17959 case "x$enable_alsaseq" in
17960 xyes)
17961   cat >> confdefs.h <<EOF
17962 #define IA_ALSASEQ 1
17963 EOF
17964
17965
17966
17967 if true; then
17968   ENABLE_ALSASEQ_TRUE=
17969   ENABLE_ALSASEQ_FALSE='#'
17970 else
17971   ENABLE_ALSASEQ_TRUE='#'
17972   ENABLE_ALSASEQ_FALSE=
17973 fi
17974
17975    INTERFACE_SRCS="$INTERFACE_SRCS alsaseq_c.c"
17976     alsa_save_CFLAGS="$CFLAGS"
17977 alsa_save_LDFLAGS="$LDFLAGS"
17978 alsa_save_LIBS="$LIBS"
17979 alsa_found=yes
17980
17981
17982 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
17983 if test "${with_alsa_prefix+set}" = set; then
17984   withval="$with_alsa_prefix"
17985   alsa_prefix="$withval"
17986 else
17987   alsa_prefix=""
17988 fi;
17989
17990
17991 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
17992 if test "${with_alsa_inc_prefix+set}" = set; then
17993   withval="$with_alsa_inc_prefix"
17994   alsa_inc_prefix="$withval"
17995 else
17996   alsa_inc_prefix=""
17997 fi;
17998
17999 # Check whether --enable-alsatest or --disable-alsatest was given.
18000 if test "${enable_alsatest+set}" = set; then
18001   enableval="$enable_alsatest"
18002   enable_alsatest=no
18003 else
18004   enable_alsatest=yes
18005 fi;
18006
18007 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
18008 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
18009 if test "$alsa_inc_prefix" != "" ; then
18010         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
18011         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
18012 fi
18013 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
18014 echo "${ECHO_T}$ALSA_CFLAGS" >&6
18015
18016 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
18017 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
18018 if test "$alsa_prefix" != "" ; then
18019         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
18020         LDFLAGS="$LDFLAGS $ALSA_LIBS"
18021 fi
18022
18023 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
18024 LIBS=`echo $LIBS | sed 's/-lm//'`
18025 LIBS=`echo $LIBS | sed 's/-ldl//'`
18026 LIBS=`echo $LIBS | sed 's/-lpthread//'`
18027 LIBS=`echo $LIBS | sed 's/  //'`
18028 LIBS="$ALSA_LIBS $LIBS"
18029 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
18030 echo "${ECHO_T}$ALSA_LIBS" >&6
18031
18032 min_alsa_version=0.1.1
18033 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
18034 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
18035 no_alsa=""
18036     alsa_min_major_version=`echo $min_alsa_version | \
18037            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
18038     alsa_min_minor_version=`echo $min_alsa_version | \
18039            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
18040     alsa_min_micro_version=`echo $min_alsa_version | \
18041            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
18042
18043
18044
18045
18046 ac_ext=c
18047 ac_cpp='$CPP $CPPFLAGS'
18048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18051
18052 cat >conftest.$ac_ext <<_ACEOF
18053 /* confdefs.h.  */
18054 _ACEOF
18055 cat confdefs.h >>conftest.$ac_ext
18056 cat >>conftest.$ac_ext <<_ACEOF
18057 /* end confdefs.h.  */
18058
18059 #include <alsa/asoundlib.h>
18060
18061 int
18062 main ()
18063 {
18064
18065 /* ensure backward compatibility */
18066 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
18067 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
18068 #endif
18069 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
18070 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
18071 #endif
18072 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
18073 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
18074 #endif
18075
18076 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
18077   exit(0);
18078 #  else
18079 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
18080 #       error not present
18081 #    endif
18082
18083 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
18084   exit(0);
18085 #   else
18086 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
18087 #          error not present
18088 #      endif
18089
18090 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
18091 #        error not present
18092 #      endif
18093 #    endif
18094 #  endif
18095 exit(0);
18096
18097   ;
18098   return 0;
18099 }
18100 _ACEOF
18101 rm -f conftest.$ac_objext
18102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18103   (eval $ac_compile) 2>conftest.er1
18104   ac_status=$?
18105   grep -v '^ *+' conftest.er1 >conftest.err
18106   rm -f conftest.er1
18107   cat conftest.err >&5
18108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109   (exit $ac_status); } &&
18110          { ac_try='test -z "$ac_c_werror_flag"
18111                          || test ! -s conftest.err'
18112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18113   (eval $ac_try) 2>&5
18114   ac_status=$?
18115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116   (exit $ac_status); }; } &&
18117          { ac_try='test -s conftest.$ac_objext'
18118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18119   (eval $ac_try) 2>&5
18120   ac_status=$?
18121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122   (exit $ac_status); }; }; then
18123   echo "$as_me:$LINENO: result: found." >&5
18124 echo "${ECHO_T}found." >&6
18125 else
18126   echo "$as_me: failed program was:" >&5
18127 sed 's/^/| /' conftest.$ac_ext >&5
18128
18129 cat >conftest.$ac_ext <<_ACEOF
18130 /* confdefs.h.  */
18131 _ACEOF
18132 cat confdefs.h >>conftest.$ac_ext
18133 cat >>conftest.$ac_ext <<_ACEOF
18134 /* end confdefs.h.  */
18135
18136 #include <sys/asoundlib.h>
18137
18138 int
18139 main ()
18140 {
18141
18142 /* ensure backward compatibility */
18143 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
18144 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
18145 #endif
18146 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
18147 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
18148 #endif
18149 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
18150 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
18151 #endif
18152
18153 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
18154   exit(0);
18155 #  else
18156 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
18157 #       error not present
18158 #    endif
18159
18160 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
18161   exit(0);
18162 #   else
18163 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
18164 #          error not present
18165 #      endif
18166
18167 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
18168 #        error not present
18169 #      endif
18170 #    endif
18171 #  endif
18172 exit(0);
18173
18174   ;
18175   return 0;
18176 }
18177 _ACEOF
18178 rm -f conftest.$ac_objext
18179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18180   (eval $ac_compile) 2>conftest.er1
18181   ac_status=$?
18182   grep -v '^ *+' conftest.er1 >conftest.err
18183   rm -f conftest.er1
18184   cat conftest.err >&5
18185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186   (exit $ac_status); } &&
18187          { ac_try='test -z "$ac_c_werror_flag"
18188                          || test ! -s conftest.err'
18189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18190   (eval $ac_try) 2>&5
18191   ac_status=$?
18192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193   (exit $ac_status); }; } &&
18194          { ac_try='test -s conftest.$ac_objext'
18195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18196   (eval $ac_try) 2>&5
18197   ac_status=$?
18198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199   (exit $ac_status); }; }; then
18200   echo "$as_me:$LINENO: result: found." >&5
18201 echo "${ECHO_T}found." >&6
18202 else
18203   echo "$as_me: failed program was:" >&5
18204 sed 's/^/| /' conftest.$ac_ext >&5
18205
18206 echo "$as_me:$LINENO: result: not present." >&5
18207 echo "${ECHO_T}not present." >&6
18208    echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
18209 echo "${ECHO_T}libasound was not found anywhere." >&6
18210    alsa_found=no
18211 fi
18212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18213    echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
18214 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
18215
18216 fi
18217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18218 ac_ext=c
18219 ac_cpp='$CPP $CPPFLAGS'
18220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18223
18224
18225
18226 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
18227 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
18228 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
18229   echo $ECHO_N "(cached) $ECHO_C" >&6
18230 else
18231   ac_check_lib_save_LIBS=$LIBS
18232 LIBS="-lasound  $LIBS"
18233 cat >conftest.$ac_ext <<_ACEOF
18234 /* confdefs.h.  */
18235 _ACEOF
18236 cat confdefs.h >>conftest.$ac_ext
18237 cat >>conftest.$ac_ext <<_ACEOF
18238 /* end confdefs.h.  */
18239
18240 /* Override any gcc2 internal prototype to avoid an error.  */
18241 #ifdef __cplusplus
18242 extern "C"
18243 #endif
18244 /* We use char because int might match the return type of a gcc2
18245    builtin and then its argument prototype would still apply.  */
18246 char snd_ctl_open ();
18247 int
18248 main ()
18249 {
18250 snd_ctl_open ();
18251   ;
18252   return 0;
18253 }
18254 _ACEOF
18255 rm -f conftest.$ac_objext conftest$ac_exeext
18256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18257   (eval $ac_link) 2>conftest.er1
18258   ac_status=$?
18259   grep -v '^ *+' conftest.er1 >conftest.err
18260   rm -f conftest.er1
18261   cat conftest.err >&5
18262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263   (exit $ac_status); } &&
18264          { ac_try='test -z "$ac_c_werror_flag"
18265                          || test ! -s conftest.err'
18266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18267   (eval $ac_try) 2>&5
18268   ac_status=$?
18269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270   (exit $ac_status); }; } &&
18271          { ac_try='test -s conftest$ac_exeext'
18272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18273   (eval $ac_try) 2>&5
18274   ac_status=$?
18275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276   (exit $ac_status); }; }; then
18277   ac_cv_lib_asound_snd_ctl_open=yes
18278 else
18279   echo "$as_me: failed program was:" >&5
18280 sed 's/^/| /' conftest.$ac_ext >&5
18281
18282 ac_cv_lib_asound_snd_ctl_open=no
18283 fi
18284 rm -f conftest.err conftest.$ac_objext \
18285       conftest$ac_exeext conftest.$ac_ext
18286 LIBS=$ac_check_lib_save_LIBS
18287 fi
18288 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
18289 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
18290 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
18291   cat >>confdefs.h <<_ACEOF
18292 #define HAVE_LIBASOUND 1
18293 _ACEOF
18294
18295   LIBS="-lasound $LIBS"
18296
18297 else
18298   echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
18299 echo "${ECHO_T}No linkable libasound was found." >&6
18300    alsa_found=no
18301
18302 fi
18303
18304
18305 if test "x$alsa_found" = "xyes" ; then
18306    :
18307    LIBS=`echo $LIBS | sed 's/-lasound//g'`
18308    LIBS=`echo $LIBS | sed 's/  //'`
18309    LIBS="-lasound $LIBS"
18310 else
18311    :
18312    CFLAGS="$alsa_save_CFLAGS"
18313    LDFLAGS="$alsa_save_LDFLAGS"
18314    LIBS="$alsa_save_LIBS"
18315    ALSA_CFLAGS=""
18316    ALSA_LIBS=""
18317 fi
18318
18319
18320
18321
18322
18323   ;;
18324 xdynamic)
18325   dynamic_targets="$dynamic_targets interface_A.\$(so)"
18326
18327   ;;
18328 *)
18329
18330   ;;
18331 esac
18332
18333
18334
18335
18336
18337 if false; then
18338   ENABLE_WINSYN_TRUE=
18339   ENABLE_WINSYN_FALSE='#'
18340 else
18341   ENABLE_WINSYN_TRUE='#'
18342   ENABLE_WINSYN_FALSE=
18343 fi
18344
18345 # Check whether --enable-winsyn or --disable-winsyn was given.
18346 if test "${enable_winsyn+set}" = set; then
18347   enableval="$enable_winsyn"
18348   case "x$enable_winsyn" in xyes|xdynamic)  ;; esac
18349 fi;
18350 case "x$enable_winsyn" in
18351 xyes)
18352   cat >> confdefs.h <<EOF
18353 #define IA_WINSYN 1
18354 EOF
18355
18356
18357
18358 if true; then
18359   ENABLE_WINSYN_TRUE=
18360   ENABLE_WINSYN_FALSE='#'
18361 else
18362   ENABLE_WINSYN_TRUE='#'
18363   ENABLE_WINSYN_FALSE=
18364 fi
18365
18366    INTERFACE_SRCS="$INTERFACE_SRCS winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
18367   ;;
18368 xdynamic)
18369   dynamic_targets="$dynamic_targets interface_W.\$(so)"
18370
18371   ;;
18372 *)
18373
18374   ;;
18375 esac
18376
18377
18378
18379
18380
18381 if false; then
18382   ENABLE_PORTMIDISYN_TRUE=
18383   ENABLE_PORTMIDISYN_FALSE='#'
18384 else
18385   ENABLE_PORTMIDISYN_TRUE='#'
18386   ENABLE_PORTMIDISYN_FALSE=
18387 fi
18388
18389 # Check whether --enable-portmidisyn or --disable-portmidisyn was given.
18390 if test "${enable_portmidisyn+set}" = set; then
18391   enableval="$enable_portmidisyn"
18392   case "x$enable_portmidisyn" in xyes|xdynamic)  ;; esac
18393 fi;
18394 case "x$enable_portmidisyn" in
18395 xyes)
18396   cat >> confdefs.h <<EOF
18397 #define IA_PORTMIDISYN 1
18398 EOF
18399
18400
18401
18402 if true; then
18403   ENABLE_PORTMIDISYN_TRUE=
18404   ENABLE_PORTMIDISYN_FALSE='#'
18405 else
18406   ENABLE_PORTMIDISYN_TRUE='#'
18407   ENABLE_PORTMIDISYN_FALSE=
18408 fi
18409
18410    INTERFACE_SRCS="$INTERFACE_SRCS portmidisyn_c.c rtsyn_common.c rtsyn_portmidi.c"
18411   ;;
18412 xdynamic)
18413   dynamic_targets="$dynamic_targets interface_P.\$(so)"
18414
18415   ;;
18416 *)
18417
18418   ;;
18419 esac
18420
18421
18422
18423
18424
18425 if false; then
18426   ENABLE_W32G_SYN_TRUE=
18427   ENABLE_W32G_SYN_FALSE='#'
18428 else
18429   ENABLE_W32G_SYN_TRUE='#'
18430   ENABLE_W32G_SYN_FALSE=
18431 fi
18432
18433 # Check whether --enable-winsyng or --disable-winsyng was given.
18434 if test "${enable_winsyng+set}" = set; then
18435   enableval="$enable_winsyng"
18436   case "x$enable_winsyng" in xyes|xdynamic)  ;; esac
18437 fi;
18438 case "x$enable_winsyng" in
18439 xyes)
18440   cat >> confdefs.h <<EOF
18441 #define IA_W32G_SYN 1
18442 EOF
18443
18444
18445
18446 if true; then
18447   ENABLE_W32G_SYN_TRUE=
18448   ENABLE_W32G_SYN_FALSE='#'
18449 else
18450   ENABLE_W32G_SYN_TRUE='#'
18451   ENABLE_W32G_SYN_FALSE=
18452 fi
18453
18454
18455   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes; then
18456     INTERFACE_SRCS="$INTERFACE_SRCS w32g_ini.c w32g_pref.c w32g_syn.c w32g_utl.c winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
18457     lib_w32gui_opt='gdi32.lib comctl32.lib comdlg32.lib ole32.lib'
18458     lib_user32_opt='user32.lib'
18459     if test "x$VCPP" = xyes; then
18460           VCPP_LDFLAGS="$VCPP_LDFLAGS -subsystem:windows "
18461         fi
18462         if test "x$BORLANDC" = xyes; then
18463           BORLANDC_START='C0W32.OBJ'
18464           CFLAGS="$CFLAGS -tW"
18465           lib_w32gui_opt="-aa $lib_w32gui_opt"
18466         fi
18467         if test "x$WATCOM_C" = xyes; then
18468           CFLAGS="$CFLAGS -bw"
18469           WATCOM_LDFLAGS="$WATCOM_LDFLAGS SYS nt_win"
18470         fi
18471   else
18472         lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
18473     lib_user32_opt='-luser32'
18474     LDFLAGS="-mwindows $LDFLAGS"
18475     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"
18476   fi
18477
18478   ;;
18479 xdynamic)
18480   dynamic_targets="$dynamic_targets interface_W.\$(so)"
18481
18482   ;;
18483 *)
18484
18485   ;;
18486 esac
18487
18488
18489
18490
18491
18492
18493 if false; then
18494   ENABLE_W32GUI_TRUE=
18495   ENABLE_W32GUI_FALSE='#'
18496 else
18497   ENABLE_W32GUI_TRUE='#'
18498   ENABLE_W32GUI_FALSE=
18499 fi
18500
18501 # Check whether --enable-w32gui or --disable-w32gui was given.
18502 if test "${enable_w32gui+set}" = set; then
18503   enableval="$enable_w32gui"
18504   case "x$enable_w32gui" in xyes|xdynamic)  ;; esac
18505 fi;
18506 case "x$enable_w32gui" in
18507 xyes)
18508   cat >> confdefs.h <<EOF
18509 #define IA_W32GUI 1
18510 EOF
18511
18512
18513
18514 if true; then
18515   ENABLE_W32GUI_TRUE=
18516   ENABLE_W32GUI_FALSE='#'
18517 else
18518   ENABLE_W32GUI_TRUE='#'
18519   ENABLE_W32GUI_FALSE=
18520 fi
18521
18522
18523   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes; then
18524         INTERFACE_SRCS="$INTERFACE_SRCS w32g_c.c w32g_ini.c w32g_i.c w32g_playlist.c w32g_utl.c w32g_pref.c w32g_subwin.c w32g_subwin2.c w32g_subwin3.c w32g_ut2.c w32g_dib.c  wrdt_w32g.c w32g_mag.c"
18525     lib_w32gui_opt='gdi32.lib comctl32.lib comdlg32.lib ole32.lib'
18526     lib_user32_opt='user32.lib'
18527     if test "x$VCPP" = xyes; then
18528           VCPP_LDFLAGS="$VCPP_LDFLAGS -subsystem:windows "
18529         fi
18530         if test "x$BORLANDC" = xyes; then
18531           BORLANDC_START='C0W32.OBJ'
18532           CFLAGS="$CFLAGS -tW"
18533           lib_w32gui_opt="-aa $lib_w32gui_opt"
18534         fi
18535         if test "x$WATCOM_C" = xyes; then
18536           CFLAGS="$CFLAGS -bw"
18537           WATCOM_LDFLAGS="$WATCOM_LDFLAGS SYS nt_win"
18538         fi
18539   else
18540     lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
18541     lib_user32_opt='-luser32'
18542     LDFLAGS="-mwindows $LDFLAGS"
18543     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"
18544   fi
18545
18546   ;;
18547 xdynamic)
18548   dynamic_targets="$dynamic_targets interface_w.\$(so)"
18549
18550   ;;
18551 *)
18552
18553   ;;
18554 esac
18555
18556
18557
18558
18559
18560 if false; then
18561   ENABLE_PLUGIN_TRUE=
18562   ENABLE_PLUGIN_FALSE='#'
18563 else
18564   ENABLE_PLUGIN_TRUE='#'
18565   ENABLE_PLUGIN_FALSE=
18566 fi
18567
18568 # Check whether --enable-ump or --disable-ump was given.
18569 if test "${enable_ump+set}" = set; then
18570   enableval="$enable_ump"
18571   case "x$enable_ump" in xyes|xdynamic)  if test ! -d ump; then
18572         { { echo "$as_me:$LINENO: error: UMP Package is not exists.  Can't configure it." >&5
18573 echo "$as_me: error: UMP Package is not exists.  Can't configure it." >&2;}
18574    { (exit 1); exit 1; }; }
18575     fi
18576     if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18577   echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
18578 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
18579 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18580   echo $ECHO_N "(cached) $ECHO_C" >&6
18581 fi
18582 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
18583 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
18584 else
18585   # Is the header compilable?
18586 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
18587 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
18588 cat >conftest.$ac_ext <<_ACEOF
18589 /* confdefs.h.  */
18590 _ACEOF
18591 cat confdefs.h >>conftest.$ac_ext
18592 cat >>conftest.$ac_ext <<_ACEOF
18593 /* end confdefs.h.  */
18594 $ac_includes_default
18595 #include <X11/xpm.h>
18596 _ACEOF
18597 rm -f conftest.$ac_objext
18598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18599   (eval $ac_compile) 2>conftest.er1
18600   ac_status=$?
18601   grep -v '^ *+' conftest.er1 >conftest.err
18602   rm -f conftest.er1
18603   cat conftest.err >&5
18604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605   (exit $ac_status); } &&
18606          { ac_try='test -z "$ac_c_werror_flag"
18607                          || test ! -s conftest.err'
18608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18609   (eval $ac_try) 2>&5
18610   ac_status=$?
18611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612   (exit $ac_status); }; } &&
18613          { ac_try='test -s conftest.$ac_objext'
18614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18615   (eval $ac_try) 2>&5
18616   ac_status=$?
18617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618   (exit $ac_status); }; }; then
18619   ac_header_compiler=yes
18620 else
18621   echo "$as_me: failed program was:" >&5
18622 sed 's/^/| /' conftest.$ac_ext >&5
18623
18624 ac_header_compiler=no
18625 fi
18626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18627 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18628 echo "${ECHO_T}$ac_header_compiler" >&6
18629
18630 # Is the header present?
18631 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
18632 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
18633 cat >conftest.$ac_ext <<_ACEOF
18634 /* confdefs.h.  */
18635 _ACEOF
18636 cat confdefs.h >>conftest.$ac_ext
18637 cat >>conftest.$ac_ext <<_ACEOF
18638 /* end confdefs.h.  */
18639 #include <X11/xpm.h>
18640 _ACEOF
18641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18642   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18643   ac_status=$?
18644   grep -v '^ *+' conftest.er1 >conftest.err
18645   rm -f conftest.er1
18646   cat conftest.err >&5
18647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648   (exit $ac_status); } >/dev/null; then
18649   if test -s conftest.err; then
18650     ac_cpp_err=$ac_c_preproc_warn_flag
18651     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18652   else
18653     ac_cpp_err=
18654   fi
18655 else
18656   ac_cpp_err=yes
18657 fi
18658 if test -z "$ac_cpp_err"; then
18659   ac_header_preproc=yes
18660 else
18661   echo "$as_me: failed program was:" >&5
18662 sed 's/^/| /' conftest.$ac_ext >&5
18663
18664   ac_header_preproc=no
18665 fi
18666 rm -f conftest.err conftest.$ac_ext
18667 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18668 echo "${ECHO_T}$ac_header_preproc" >&6
18669
18670 # So?  What about this header?
18671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18672   yes:no: )
18673     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
18674 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18675     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
18676 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
18677     ac_header_preproc=yes
18678     ;;
18679   no:yes:* )
18680     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
18681 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
18682     { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&5
18683 echo "$as_me: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&2;}
18684     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
18685 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
18686     { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&5
18687 echo "$as_me: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
18688     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
18689 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
18690     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
18691 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
18692     (
18693       cat <<\_ASBOX
18694 ## ------------------------------- ##
18695 ## Report this to root@mput.dip.jp ##
18696 ## ------------------------------- ##
18697 _ASBOX
18698     ) |
18699       sed "s/^/$as_me: WARNING:     /" >&2
18700     ;;
18701 esac
18702 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
18703 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
18704 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18705   echo $ECHO_N "(cached) $ECHO_C" >&6
18706 else
18707   ac_cv_header_X11_xpm_h=$ac_header_preproc
18708 fi
18709 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
18710 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
18711
18712 fi
18713 if test $ac_cv_header_X11_xpm_h = yes; then
18714   :
18715 else
18716   { { echo "$as_me:$LINENO: error: UMP Package needs xpm.h, but could not find it." >&5
18717 echo "$as_me: error: UMP Package needs xpm.h, but could not find it." >&2;}
18718    { (exit 1); exit 1; }; }
18719 fi
18720
18721
18722     echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
18723 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
18724 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
18725   echo $ECHO_N "(cached) $ECHO_C" >&6
18726 else
18727   ac_check_lib_save_LIBS=$LIBS
18728 LIBS="-lXpm  $LIBS"
18729 cat >conftest.$ac_ext <<_ACEOF
18730 /* confdefs.h.  */
18731 _ACEOF
18732 cat confdefs.h >>conftest.$ac_ext
18733 cat >>conftest.$ac_ext <<_ACEOF
18734 /* end confdefs.h.  */
18735
18736 /* Override any gcc2 internal prototype to avoid an error.  */
18737 #ifdef __cplusplus
18738 extern "C"
18739 #endif
18740 /* We use char because int might match the return type of a gcc2
18741    builtin and then its argument prototype would still apply.  */
18742 char XpmCreatePixmapFromData ();
18743 int
18744 main ()
18745 {
18746 XpmCreatePixmapFromData ();
18747   ;
18748   return 0;
18749 }
18750 _ACEOF
18751 rm -f conftest.$ac_objext conftest$ac_exeext
18752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18753   (eval $ac_link) 2>conftest.er1
18754   ac_status=$?
18755   grep -v '^ *+' conftest.er1 >conftest.err
18756   rm -f conftest.er1
18757   cat conftest.err >&5
18758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759   (exit $ac_status); } &&
18760          { ac_try='test -z "$ac_c_werror_flag"
18761                          || test ! -s conftest.err'
18762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18763   (eval $ac_try) 2>&5
18764   ac_status=$?
18765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766   (exit $ac_status); }; } &&
18767          { ac_try='test -s conftest$ac_exeext'
18768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18769   (eval $ac_try) 2>&5
18770   ac_status=$?
18771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772   (exit $ac_status); }; }; then
18773   ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
18774 else
18775   echo "$as_me: failed program was:" >&5
18776 sed 's/^/| /' conftest.$ac_ext >&5
18777
18778 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
18779 fi
18780 rm -f conftest.err conftest.$ac_objext \
18781       conftest$ac_exeext conftest.$ac_ext
18782 LIBS=$ac_check_lib_save_LIBS
18783 fi
18784 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
18785 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
18786 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
18787   :
18788 else
18789   { { echo "$as_me:$LINENO: error: UMP Package needs libXpm.a, but could not find it." >&5
18790 echo "$as_me: error: UMP Package needs libXpm.a, but could not find it." >&2;}
18791    { (exit 1); exit 1; }; }
18792 fi
18793
18794     if test "x$have_xext" = xyes; then
18795       lib_xext_opt=-lXext
18796     fi
18797     if test "x$have_xprelibs" = xyes; then
18798       lib_xprelibs_opt='-lSM -lICE'
18799     fi
18800     lib_xmu_opt=-lXmu
18801     lib_xt_opt=-lXt
18802    ;; esac
18803 fi;
18804 case "x$enable_ump" in
18805 xyes)
18806   cat >> confdefs.h <<EOF
18807 #define IA_PLUGIN 1
18808 EOF
18809
18810
18811
18812 if true; then
18813   ENABLE_PLUGIN_TRUE=
18814   ENABLE_PLUGIN_FALSE='#'
18815 else
18816   ENABLE_PLUGIN_TRUE='#'
18817   ENABLE_PLUGIN_FALSE=
18818 fi
18819
18820
18821   ;;
18822 xdynamic)
18823   dynamic_targets="$dynamic_targets interface_p.\$(so)"
18824
18825   ;;
18826 *)
18827
18828   ;;
18829 esac
18830
18831
18832
18833
18834 # Check whether --enable-offix or --disable-offix was given.
18835 if test "${enable_offix+set}" = set; then
18836   enableval="$enable_offix"
18837    if test "$enableval" = "yes"; then
18838       KEEPCPPFLAGS=$CPPFLAGS
18839       KEEPLIBS=$LIBS
18840       KEEPLDFLAGS=$LDFLAGS
18841       CPPFLAGS="$CPPFLAGS $offix_include_dir"
18842       LDFLAGS="$LDFLAGS $offix_lib_dir"
18843       LIBS="$LIBS $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11"
18844       echo "$as_me:$LINENO: checking for DndInitialize in -lDnd" >&5
18845 echo $ECHO_N "checking for DndInitialize in -lDnd... $ECHO_C" >&6
18846 if test "${ac_cv_lib_Dnd_DndInitialize+set}" = set; then
18847   echo $ECHO_N "(cached) $ECHO_C" >&6
18848 else
18849   ac_check_lib_save_LIBS=$LIBS
18850 LIBS="-lDnd  $LIBS"
18851 cat >conftest.$ac_ext <<_ACEOF
18852 /* confdefs.h.  */
18853 _ACEOF
18854 cat confdefs.h >>conftest.$ac_ext
18855 cat >>conftest.$ac_ext <<_ACEOF
18856 /* end confdefs.h.  */
18857
18858 /* Override any gcc2 internal prototype to avoid an error.  */
18859 #ifdef __cplusplus
18860 extern "C"
18861 #endif
18862 /* We use char because int might match the return type of a gcc2
18863    builtin and then its argument prototype would still apply.  */
18864 char DndInitialize ();
18865 int
18866 main ()
18867 {
18868 DndInitialize ();
18869   ;
18870   return 0;
18871 }
18872 _ACEOF
18873 rm -f conftest.$ac_objext conftest$ac_exeext
18874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18875   (eval $ac_link) 2>conftest.er1
18876   ac_status=$?
18877   grep -v '^ *+' conftest.er1 >conftest.err
18878   rm -f conftest.er1
18879   cat conftest.err >&5
18880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881   (exit $ac_status); } &&
18882          { ac_try='test -z "$ac_c_werror_flag"
18883                          || test ! -s conftest.err'
18884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18885   (eval $ac_try) 2>&5
18886   ac_status=$?
18887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888   (exit $ac_status); }; } &&
18889          { ac_try='test -s conftest$ac_exeext'
18890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18891   (eval $ac_try) 2>&5
18892   ac_status=$?
18893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894   (exit $ac_status); }; }; then
18895   ac_cv_lib_Dnd_DndInitialize=yes
18896 else
18897   echo "$as_me: failed program was:" >&5
18898 sed 's/^/| /' conftest.$ac_ext >&5
18899
18900 ac_cv_lib_Dnd_DndInitialize=no
18901 fi
18902 rm -f conftest.err conftest.$ac_objext \
18903       conftest$ac_exeext conftest.$ac_ext
18904 LIBS=$ac_check_lib_save_LIBS
18905 fi
18906 echo "$as_me:$LINENO: result: $ac_cv_lib_Dnd_DndInitialize" >&5
18907 echo "${ECHO_T}$ac_cv_lib_Dnd_DndInitialize" >&6
18908 if test $ac_cv_lib_Dnd_DndInitialize = yes; then
18909
18910         LIBS=$KEEPLIBS
18911         lib_offix_opt="-lDnd"
18912
18913 cat >>confdefs.h <<\_ACEOF
18914 #define OFFIX 1
18915 _ACEOF
18916
18917
18918 else
18919    LDFLAGS=$KEEPLDFLAGS
18920         CPPFLAGS=$KEEPCPPFLAGS
18921         LIBS=$KEEPLIBS
18922
18923 fi
18924
18925     fi
18926
18927 fi;
18928
18929 # Check whether --enable-network or --disable-network was given.
18930 if test "${enable_network+set}" = set; then
18931   enableval="$enable_network"
18932    if test "$enableval" = "yes"; then
18933
18934 cat >>confdefs.h <<\_ACEOF
18935 #define SUPPORT_SOCKET 1
18936 _ACEOF
18937
18938     fi
18939 fi;
18940
18941
18942 if test "x$enable_network" = "xyes"; then
18943   ENABLE_NETWORK_TRUE=
18944   ENABLE_NETWORK_FALSE='#'
18945 else
18946   ENABLE_NETWORK_TRUE='#'
18947   ENABLE_NETWORK_FALSE=
18948 fi
18949
18950
18951 # Check whether --enable-spectrogram or --disable-spectrogram was given.
18952 if test "${enable_spectrogram+set}" = set; then
18953   enableval="$enable_spectrogram"
18954    if test "$enableval" = "yes"; then
18955       if test "x$with_x" != xyes; then
18956         { { echo "$as_me:$LINENO: error: spectrogram: --with-x option must be specified" >&5
18957 echo "$as_me: error: spectrogram: --with-x option must be specified" >&2;}
18958    { (exit 1); exit 1; }; }
18959       fi
18960
18961 cat >>confdefs.h <<\_ACEOF
18962 #define SUPPORT_SOUNDSPEC 1
18963 _ACEOF
18964
18965     fi
18966 fi;
18967
18968
18969 if test "x$enable_spectrogram" = "xyes"; then
18970   ENABLE_SOUND_SPEC_TRUE=
18971   ENABLE_SOUND_SPEC_FALSE='#'
18972 else
18973   ENABLE_SOUND_SPEC_TRUE='#'
18974   ENABLE_SOUND_SPEC_FALSE=
18975 fi
18976
18977
18978 # Check whether --enable-spline or --disable-spline was given.
18979 if test "${enable_spline+set}" = set; then
18980   enableval="$enable_spline"
18981    case "x$enableval" in
18982       xlinear)
18983
18984 cat >>confdefs.h <<\_ACEOF
18985 #define DEFAULT_RESAMPLATION resample_linear
18986 _ACEOF
18987
18988         ;;
18989       xcubic)
18990
18991 cat >>confdefs.h <<\_ACEOF
18992 #define DEFAULT_RESAMPLATION resample_cspline
18993 _ACEOF
18994
18995         ;;
18996       xlagrange)
18997
18998 cat >>confdefs.h <<\_ACEOF
18999 #define DEFAULT_RESAMPLATION resample_lagrange
19000 _ACEOF
19001
19002         ;;
19003       xnewton)
19004
19005 cat >>confdefs.h <<\_ACEOF
19006 #define DEFAULT_RESAMPLATION resample_newton
19007 _ACEOF
19008
19009         ;;
19010       xgauss)
19011
19012 cat >>confdefs.h <<\_ACEOF
19013 #define DEFAULT_RESAMPLATION resample_gauss
19014 _ACEOF
19015
19016         ;;
19017       xno)
19018
19019 cat >>confdefs.h <<\_ACEOF
19020 #define DEFAULT_RESAMPLATION resample_none
19021 _ACEOF
19022
19023         ;;
19024       *)
19025         { { echo "$as_me:$LINENO: error: Invalid method of --enable-spline" >&5
19026 echo "$as_me: error: Invalid method of --enable-spline" >&2;}
19027    { (exit 1); exit 1; }; }
19028         ;;
19029     esac
19030 fi;
19031
19032 # Check whether --enable-wrd or --disable-wrd was given.
19033 if test "${enable_wrd+set}" = set; then
19034   enableval="$enable_wrd"
19035    if test "$enableval" = "yes"; then
19036       if test "x$with_x" != xyes; then
19037         { { echo "$as_me:$LINENO: error: wrd: --with-x option must be specified" >&5
19038 echo "$as_me: error: wrd: --with-x option must be specified" >&2;}
19039    { (exit 1); exit 1; }; }
19040       fi
19041
19042 cat >>confdefs.h <<\_ACEOF
19043 #define WRDT_X 1
19044 _ACEOF
19045
19046       enable_sherry_wrd=yes
19047       echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
19048 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
19049 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
19050   echo $ECHO_N "(cached) $ECHO_C" >&6
19051 else
19052   ac_check_lib_save_LIBS=$LIBS
19053 LIBS="-lz  $LIBS"
19054 cat >conftest.$ac_ext <<_ACEOF
19055 /* confdefs.h.  */
19056 _ACEOF
19057 cat confdefs.h >>conftest.$ac_ext
19058 cat >>conftest.$ac_ext <<_ACEOF
19059 /* end confdefs.h.  */
19060
19061 /* Override any gcc2 internal prototype to avoid an error.  */
19062 #ifdef __cplusplus
19063 extern "C"
19064 #endif
19065 /* We use char because int might match the return type of a gcc2
19066    builtin and then its argument prototype would still apply.  */
19067 char zlibVersion ();
19068 int
19069 main ()
19070 {
19071 zlibVersion ();
19072   ;
19073   return 0;
19074 }
19075 _ACEOF
19076 rm -f conftest.$ac_objext conftest$ac_exeext
19077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19078   (eval $ac_link) 2>conftest.er1
19079   ac_status=$?
19080   grep -v '^ *+' conftest.er1 >conftest.err
19081   rm -f conftest.er1
19082   cat conftest.err >&5
19083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084   (exit $ac_status); } &&
19085          { ac_try='test -z "$ac_c_werror_flag"
19086                          || test ! -s conftest.err'
19087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19088   (eval $ac_try) 2>&5
19089   ac_status=$?
19090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091   (exit $ac_status); }; } &&
19092          { ac_try='test -s conftest$ac_exeext'
19093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19094   (eval $ac_try) 2>&5
19095   ac_status=$?
19096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097   (exit $ac_status); }; }; then
19098   ac_cv_lib_z_zlibVersion=yes
19099 else
19100   echo "$as_me: failed program was:" >&5
19101 sed 's/^/| /' conftest.$ac_ext >&5
19102
19103 ac_cv_lib_z_zlibVersion=no
19104 fi
19105 rm -f conftest.err conftest.$ac_objext \
19106       conftest$ac_exeext conftest.$ac_ext
19107 LIBS=$ac_check_lib_save_LIBS
19108 fi
19109 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
19110 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
19111 if test $ac_cv_lib_z_zlibVersion = yes; then
19112   :
19113 else
19114   enable_sherry_wrd=no
19115 fi
19116
19117       if test "${ac_cv_header_png_h+set}" = set; then
19118   echo "$as_me:$LINENO: checking for png.h" >&5
19119 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19120 if test "${ac_cv_header_png_h+set}" = set; then
19121   echo $ECHO_N "(cached) $ECHO_C" >&6
19122 fi
19123 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19124 echo "${ECHO_T}$ac_cv_header_png_h" >&6
19125 else
19126   # Is the header compilable?
19127 echo "$as_me:$LINENO: checking png.h usability" >&5
19128 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
19129 cat >conftest.$ac_ext <<_ACEOF
19130 /* confdefs.h.  */
19131 _ACEOF
19132 cat confdefs.h >>conftest.$ac_ext
19133 cat >>conftest.$ac_ext <<_ACEOF
19134 /* end confdefs.h.  */
19135 $ac_includes_default
19136 #include <png.h>
19137 _ACEOF
19138 rm -f conftest.$ac_objext
19139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19140   (eval $ac_compile) 2>conftest.er1
19141   ac_status=$?
19142   grep -v '^ *+' conftest.er1 >conftest.err
19143   rm -f conftest.er1
19144   cat conftest.err >&5
19145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146   (exit $ac_status); } &&
19147          { ac_try='test -z "$ac_c_werror_flag"
19148                          || test ! -s conftest.err'
19149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19150   (eval $ac_try) 2>&5
19151   ac_status=$?
19152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153   (exit $ac_status); }; } &&
19154          { ac_try='test -s conftest.$ac_objext'
19155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19156   (eval $ac_try) 2>&5
19157   ac_status=$?
19158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159   (exit $ac_status); }; }; then
19160   ac_header_compiler=yes
19161 else
19162   echo "$as_me: failed program was:" >&5
19163 sed 's/^/| /' conftest.$ac_ext >&5
19164
19165 ac_header_compiler=no
19166 fi
19167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19168 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19169 echo "${ECHO_T}$ac_header_compiler" >&6
19170
19171 # Is the header present?
19172 echo "$as_me:$LINENO: checking png.h presence" >&5
19173 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
19174 cat >conftest.$ac_ext <<_ACEOF
19175 /* confdefs.h.  */
19176 _ACEOF
19177 cat confdefs.h >>conftest.$ac_ext
19178 cat >>conftest.$ac_ext <<_ACEOF
19179 /* end confdefs.h.  */
19180 #include <png.h>
19181 _ACEOF
19182 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19183   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19184   ac_status=$?
19185   grep -v '^ *+' conftest.er1 >conftest.err
19186   rm -f conftest.er1
19187   cat conftest.err >&5
19188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189   (exit $ac_status); } >/dev/null; then
19190   if test -s conftest.err; then
19191     ac_cpp_err=$ac_c_preproc_warn_flag
19192     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19193   else
19194     ac_cpp_err=
19195   fi
19196 else
19197   ac_cpp_err=yes
19198 fi
19199 if test -z "$ac_cpp_err"; then
19200   ac_header_preproc=yes
19201 else
19202   echo "$as_me: failed program was:" >&5
19203 sed 's/^/| /' conftest.$ac_ext >&5
19204
19205   ac_header_preproc=no
19206 fi
19207 rm -f conftest.err conftest.$ac_ext
19208 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19209 echo "${ECHO_T}$ac_header_preproc" >&6
19210
19211 # So?  What about this header?
19212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19213   yes:no: )
19214     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
19215 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19216     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
19217 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
19218     ac_header_preproc=yes
19219     ;;
19220   no:yes:* )
19221     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
19222 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
19223     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
19224 echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
19225     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
19226 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
19227     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
19228 echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19229     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
19230 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
19231     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
19232 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
19233     (
19234       cat <<\_ASBOX
19235 ## ------------------------------- ##
19236 ## Report this to root@mput.dip.jp ##
19237 ## ------------------------------- ##
19238 _ASBOX
19239     ) |
19240       sed "s/^/$as_me: WARNING:     /" >&2
19241     ;;
19242 esac
19243 echo "$as_me:$LINENO: checking for png.h" >&5
19244 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19245 if test "${ac_cv_header_png_h+set}" = set; then
19246   echo $ECHO_N "(cached) $ECHO_C" >&6
19247 else
19248   ac_cv_header_png_h=$ac_header_preproc
19249 fi
19250 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19251 echo "${ECHO_T}$ac_cv_header_png_h" >&6
19252
19253 fi
19254 if test $ac_cv_header_png_h = yes; then
19255   :
19256 else
19257   enable_sherry_wrd=no
19258 fi
19259
19260
19261       echo "$as_me:$LINENO: checking for png_init_io in -lpng" >&5
19262 echo $ECHO_N "checking for png_init_io in -lpng... $ECHO_C" >&6
19263 if test "${ac_cv_lib_png_png_init_io+set}" = set; then
19264   echo $ECHO_N "(cached) $ECHO_C" >&6
19265 else
19266   ac_check_lib_save_LIBS=$LIBS
19267 LIBS="-lpng -lz $LIBS"
19268 cat >conftest.$ac_ext <<_ACEOF
19269 /* confdefs.h.  */
19270 _ACEOF
19271 cat confdefs.h >>conftest.$ac_ext
19272 cat >>conftest.$ac_ext <<_ACEOF
19273 /* end confdefs.h.  */
19274
19275 /* Override any gcc2 internal prototype to avoid an error.  */
19276 #ifdef __cplusplus
19277 extern "C"
19278 #endif
19279 /* We use char because int might match the return type of a gcc2
19280    builtin and then its argument prototype would still apply.  */
19281 char png_init_io ();
19282 int
19283 main ()
19284 {
19285 png_init_io ();
19286   ;
19287   return 0;
19288 }
19289 _ACEOF
19290 rm -f conftest.$ac_objext conftest$ac_exeext
19291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19292   (eval $ac_link) 2>conftest.er1
19293   ac_status=$?
19294   grep -v '^ *+' conftest.er1 >conftest.err
19295   rm -f conftest.er1
19296   cat conftest.err >&5
19297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298   (exit $ac_status); } &&
19299          { ac_try='test -z "$ac_c_werror_flag"
19300                          || test ! -s conftest.err'
19301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302   (eval $ac_try) 2>&5
19303   ac_status=$?
19304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305   (exit $ac_status); }; } &&
19306          { ac_try='test -s conftest$ac_exeext'
19307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19308   (eval $ac_try) 2>&5
19309   ac_status=$?
19310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311   (exit $ac_status); }; }; then
19312   ac_cv_lib_png_png_init_io=yes
19313 else
19314   echo "$as_me: failed program was:" >&5
19315 sed 's/^/| /' conftest.$ac_ext >&5
19316
19317 ac_cv_lib_png_png_init_io=no
19318 fi
19319 rm -f conftest.err conftest.$ac_objext \
19320       conftest$ac_exeext conftest.$ac_ext
19321 LIBS=$ac_check_lib_save_LIBS
19322 fi
19323 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_init_io" >&5
19324 echo "${ECHO_T}$ac_cv_lib_png_png_init_io" >&6
19325 if test $ac_cv_lib_png_png_init_io = yes; then
19326   :
19327 else
19328   enable_sherry_wrd=no
19329 fi
19330
19331       if test "$enable_sherry_wrd" = yes; then
19332
19333 cat >>confdefs.h <<\_ACEOF
19334 #define ENABLE_SHERRY 1
19335 _ACEOF
19336
19337         lib_zip_opt=-lz
19338         lib_png_opt=-lpng
19339       else
19340          { echo "$as_me:$LINENO: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&5
19341 echo "$as_me: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&2;}
19342       fi
19343       if test "x$have_xext" = xyes; then
19344         lib_xext_opt=-lXext
19345       fi
19346     fi
19347 fi;
19348
19349
19350
19351 #
19352 # Finish up
19353 #
19354
19355
19356
19357 if test "x$enable_wrd" = "xyes"; then
19358   ENABLE_WRD_TRUE=
19359   ENABLE_WRD_FALSE='#'
19360 else
19361   ENABLE_WRD_TRUE='#'
19362   ENABLE_WRD_FALSE=
19363 fi
19364
19365
19366
19367 if test "x$CYGNUS" = xyes; then
19368   CYGNUS_TRUE=
19369   CYGNUS_FALSE='#'
19370 else
19371   CYGNUS_TRUE='#'
19372   CYGNUS_FALSE=
19373 fi
19374
19375
19376
19377 if test "x$MSYS" = xyes; then
19378   MSYS_TRUE=
19379   MSYS_FALSE='#'
19380 else
19381   MSYS_TRUE='#'
19382   MSYS_FALSE=
19383 fi
19384
19385
19386
19387 if test "x$VCPP" = xyes; then
19388   VCPP_TRUE=
19389   VCPP_FALSE='#'
19390 else
19391   VCPP_TRUE='#'
19392   VCPP_FALSE=
19393 fi
19394
19395
19396
19397 if test "x$BORLANDC" = xyes; then
19398   BORLANDC_TRUE=
19399   BORLANDC_FALSE='#'
19400 else
19401   BORLANDC_TRUE='#'
19402   BORLANDC_FALSE=
19403 fi
19404
19405
19406
19407 if test "x$WATCOM_C" = xyes; then
19408   WATCOM_C_TRUE=
19409   WATCOM_C_FALSE='#'
19410 else
19411   WATCOM_C_TRUE='#'
19412   WATCOM_C_FALSE=
19413 fi
19414
19415
19416
19417
19418 if test "x$W32READDIR" = "xyes"; then
19419   W32READDIR_TRUE=
19420   W32READDIR_FALSE='#'
19421 else
19422   W32READDIR_TRUE='#'
19423   W32READDIR_FALSE=
19424 fi
19425
19426
19427 rm -f wordtmp >/dev/null 2>&1
19428 val=''
19429 for f in $LDFLAGS; do
19430   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19431   :
19432 else
19433   echo $f >>wordtmp; val="$val $f"
19434 fi
19435
19436 done
19437 LDFLAGS="$val"
19438 rm -f wordtmp >/dev/null 2>&1
19439
19440 rm -f wordtmp >/dev/null 2>&1
19441 val=''
19442 for f in $SHLDFLAGS; do
19443   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19444   :
19445 else
19446   echo $f >>wordtmp; val="$val $f"
19447 fi
19448
19449 done
19450 SHLDFLAGS="$val"
19451 rm -f wordtmp >/dev/null 2>&1
19452
19453 rm -f wordtmp >/dev/null 2>&1
19454 val=''
19455 for f in $EXTRACFLAGS $CFLAGS; do
19456   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19457   :
19458 else
19459   echo $f >>wordtmp; val="$val $f"
19460 fi
19461
19462 done
19463 CFLAGS="$val"
19464 rm -f wordtmp >/dev/null 2>&1
19465
19466 rm -f wordtmp >/dev/null 2>&1
19467 val=''
19468 for f in $CPPFLAGS $EXTRADEFS; do
19469   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19470   :
19471 else
19472   echo $f >>wordtmp; val="$val $f"
19473 fi
19474
19475 done
19476 CPPFLAGS="$val"
19477 rm -f wordtmp >/dev/null 2>&1
19478
19479
19480 if test "x$oss_device" != x; then
19481
19482 cat >>confdefs.h <<_ACEOF
19483 #define OSS_DEVICE "$oss_device"
19484 _ACEOF
19485
19486 fi
19487
19488 if test "x$TIMIDITY_OUTPUT_ID" != x; then
19489
19490 cat >>confdefs.h <<_ACEOF
19491 #define TIMIDITY_OUTPUT_ID "$TIMIDITY_OUTPUT_ID"
19492 _ACEOF
19493
19494 fi
19495
19496 if test "x$with_x" = xyes; then
19497     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/"`
19498 fi
19499 LIBS="$LIBS $lib_dl_opt $lib_png_opt $lib_zip_opt $lib_user32_opt $lib_w32gui_opt $EXTRALIBS"
19500 SHLD="$SHLD $SHLDFLAGS"
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518
19519
19520
19521
19522
19523
19524                                                                                                                                                                                     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"
19525
19526 cat >confcache <<\_ACEOF
19527 # This file is a shell script that caches the results of configure
19528 # tests run on this system so they can be shared between configure
19529 # scripts and configure runs, see configure's option --config-cache.
19530 # It is not useful on other systems.  If it contains results you don't
19531 # want to keep, you may remove or edit it.
19532 #
19533 # config.status only pays attention to the cache file if you give it
19534 # the --recheck option to rerun configure.
19535 #
19536 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19537 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19538 # following values.
19539
19540 _ACEOF
19541
19542 # The following way of writing the cache mishandles newlines in values,
19543 # but we know of no workaround that is simple, portable, and efficient.
19544 # So, don't put newlines in cache variables' values.
19545 # Ultrix sh set writes to stderr and can't be redirected directly,
19546 # and sets the high bit in the cache file unless we assign to the vars.
19547 {
19548   (set) 2>&1 |
19549     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19550     *ac_space=\ *)
19551       # `set' does not quote correctly, so add quotes (double-quote
19552       # substitution turns \\\\ into \\, and sed turns \\ into \).
19553       sed -n \
19554         "s/'/'\\\\''/g;
19555           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19556       ;;
19557     *)
19558       # `set' quotes correctly as required by POSIX, so do not add quotes.
19559       sed -n \
19560         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19561       ;;
19562     esac;
19563 } |
19564   sed '
19565      t clear
19566      : clear
19567      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19568      t end
19569      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19570      : end' >>confcache
19571 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19572   if test -w $cache_file; then
19573     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19574     cat confcache >$cache_file
19575   else
19576     echo "not updating unwritable cache $cache_file"
19577   fi
19578 fi
19579 rm -f confcache
19580
19581 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19582 # Let make expand exec_prefix.
19583 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19584
19585 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19586 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19587 # trailing colons and then remove the whole line if VPATH becomes empty
19588 # (actually we leave an empty line to preserve line numbers).
19589 if test "x$srcdir" = x.; then
19590   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19591 s/:*\$(srcdir):*/:/;
19592 s/:*\${srcdir}:*/:/;
19593 s/:*@srcdir@:*/:/;
19594 s/^\([^=]*=[     ]*\):*/\1/;
19595 s/:*$//;
19596 s/^[^=]*=[       ]*$//;
19597 }'
19598 fi
19599
19600 DEFS=-DHAVE_CONFIG_H
19601
19602 ac_libobjs=
19603 ac_ltlibobjs=
19604 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19605   # 1. Remove the extension, and $U if already installed.
19606   ac_i=`echo "$ac_i" |
19607          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19608   # 2. Add them.
19609   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19610   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19611 done
19612 LIBOBJS=$ac_libobjs
19613
19614 LTLIBOBJS=$ac_ltlibobjs
19615
19616
19617 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19618   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19619 Usually this means the macro was only invoked conditionally." >&5
19620 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19621 Usually this means the macro was only invoked conditionally." >&2;}
19622    { (exit 1); exit 1; }; }
19623 fi
19624 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19625   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19626 Usually this means the macro was only invoked conditionally." >&5
19627 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19628 Usually this means the macro was only invoked conditionally." >&2;}
19629    { (exit 1); exit 1; }; }
19630 fi
19631 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19632   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19633 Usually this means the macro was only invoked conditionally." >&5
19634 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19635 Usually this means the macro was only invoked conditionally." >&2;}
19636    { (exit 1); exit 1; }; }
19637 fi
19638 if test -z "${NEEDGETOPT_TRUE}" && test -z "${NEEDGETOPT_FALSE}"; then
19639   { { echo "$as_me:$LINENO: error: conditional \"NEEDGETOPT\" was never defined.
19640 Usually this means the macro was only invoked conditionally." >&5
19641 echo "$as_me: error: conditional \"NEEDGETOPT\" was never defined.
19642 Usually this means the macro was only invoked conditionally." >&2;}
19643    { (exit 1); exit 1; }; }
19644 fi
19645 if test -z "${NEEDDLOPEN_TRUE}" && test -z "${NEEDDLOPEN_FALSE}"; then
19646   { { echo "$as_me:$LINENO: error: conditional \"NEEDDLOPEN\" was never defined.
19647 Usually this means the macro was only invoked conditionally." >&5
19648 echo "$as_me: error: conditional \"NEEDDLOPEN\" was never defined.
19649 Usually this means the macro was only invoked conditionally." >&2;}
19650    { (exit 1); exit 1; }; }
19651 fi
19652 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
19653   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
19654 Usually this means the macro was only invoked conditionally." >&5
19655 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
19656 Usually this means the macro was only invoked conditionally." >&2;}
19657    { (exit 1); exit 1; }; }
19658 fi
19659 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
19660   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
19661 Usually this means the macro was only invoked conditionally." >&5
19662 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
19663 Usually this means the macro was only invoked conditionally." >&2;}
19664    { (exit 1); exit 1; }; }
19665 fi
19666 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
19667   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
19668 Usually this means the macro was only invoked conditionally." >&5
19669 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
19670 Usually this means the macro was only invoked conditionally." >&2;}
19671    { (exit 1); exit 1; }; }
19672 fi
19673 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
19674   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
19675 Usually this means the macro was only invoked conditionally." >&5
19676 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
19677 Usually this means the macro was only invoked conditionally." >&2;}
19678    { (exit 1); exit 1; }; }
19679 fi
19680 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
19681   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
19682 Usually this means the macro was only invoked conditionally." >&5
19683 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
19684 Usually this means the macro was only invoked conditionally." >&2;}
19685    { (exit 1); exit 1; }; }
19686 fi
19687 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
19688   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
19689 Usually this means the macro was only invoked conditionally." >&5
19690 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
19691 Usually this means the macro was only invoked conditionally." >&2;}
19692    { (exit 1); exit 1; }; }
19693 fi
19694 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
19695   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
19696 Usually this means the macro was only invoked conditionally." >&5
19697 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
19698 Usually this means the macro was only invoked conditionally." >&2;}
19699    { (exit 1); exit 1; }; }
19700 fi
19701 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
19702   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
19703 Usually this means the macro was only invoked conditionally." >&5
19704 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
19705 Usually this means the macro was only invoked conditionally." >&2;}
19706    { (exit 1); exit 1; }; }
19707 fi
19708 if test -z "${ENABLE_DYNAMIC_TCLTK_TRUE}" && test -z "${ENABLE_DYNAMIC_TCLTK_FALSE}"; then
19709   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
19710 Usually this means the macro was only invoked conditionally." >&5
19711 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
19712 Usually this means the macro was only invoked conditionally." >&2;}
19713    { (exit 1); exit 1; }; }
19714 fi
19715 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
19716   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
19717 Usually this means the macro was only invoked conditionally." >&5
19718 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
19719 Usually this means the macro was only invoked conditionally." >&2;}
19720    { (exit 1); exit 1; }; }
19721 fi
19722 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
19723   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
19724 Usually this means the macro was only invoked conditionally." >&5
19725 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
19726 Usually this means the macro was only invoked conditionally." >&2;}
19727    { (exit 1); exit 1; }; }
19728 fi
19729 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
19730   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
19731 Usually this means the macro was only invoked conditionally." >&5
19732 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
19733 Usually this means the macro was only invoked conditionally." >&2;}
19734    { (exit 1); exit 1; }; }
19735 fi
19736 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
19737   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
19738 Usually this means the macro was only invoked conditionally." >&5
19739 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
19740 Usually this means the macro was only invoked conditionally." >&2;}
19741    { (exit 1); exit 1; }; }
19742 fi
19743 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
19744   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
19745 Usually this means the macro was only invoked conditionally." >&5
19746 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
19747 Usually this means the macro was only invoked conditionally." >&2;}
19748    { (exit 1); exit 1; }; }
19749 fi
19750 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
19751   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
19752 Usually this means the macro was only invoked conditionally." >&5
19753 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
19754 Usually this means the macro was only invoked conditionally." >&2;}
19755    { (exit 1); exit 1; }; }
19756 fi
19757 if test -z "${ENABLE_DYNAMIC_XAW_TRUE}" && test -z "${ENABLE_DYNAMIC_XAW_FALSE}"; then
19758   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
19759 Usually this means the macro was only invoked conditionally." >&5
19760 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
19761 Usually this means the macro was only invoked conditionally." >&2;}
19762    { (exit 1); exit 1; }; }
19763 fi
19764 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
19765   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
19766 Usually this means the macro was only invoked conditionally." >&5
19767 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
19768 Usually this means the macro was only invoked conditionally." >&2;}
19769    { (exit 1); exit 1; }; }
19770 fi
19771 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
19772   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
19773 Usually this means the macro was only invoked conditionally." >&5
19774 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
19775 Usually this means the macro was only invoked conditionally." >&2;}
19776    { (exit 1); exit 1; }; }
19777 fi
19778 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
19779   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
19780 Usually this means the macro was only invoked conditionally." >&5
19781 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
19782 Usually this means the macro was only invoked conditionally." >&2;}
19783    { (exit 1); exit 1; }; }
19784 fi
19785 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
19786   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
19787 Usually this means the macro was only invoked conditionally." >&5
19788 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
19789 Usually this means the macro was only invoked conditionally." >&2;}
19790    { (exit 1); exit 1; }; }
19791 fi
19792 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
19793   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
19794 Usually this means the macro was only invoked conditionally." >&5
19795 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
19796 Usually this means the macro was only invoked conditionally." >&2;}
19797    { (exit 1); exit 1; }; }
19798 fi
19799 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
19800   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
19801 Usually this means the macro was only invoked conditionally." >&5
19802 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
19803 Usually this means the macro was only invoked conditionally." >&2;}
19804    { (exit 1); exit 1; }; }
19805 fi
19806 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
19807   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19808 Usually this means the macro was only invoked conditionally." >&5
19809 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19810 Usually this means the macro was only invoked conditionally." >&2;}
19811    { (exit 1); exit 1; }; }
19812 fi
19813 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
19814   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19815 Usually this means the macro was only invoked conditionally." >&5
19816 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19817 Usually this means the macro was only invoked conditionally." >&2;}
19818    { (exit 1); exit 1; }; }
19819 fi
19820 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
19821   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
19822 Usually this means the macro was only invoked conditionally." >&5
19823 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
19824 Usually this means the macro was only invoked conditionally." >&2;}
19825    { (exit 1); exit 1; }; }
19826 fi
19827 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
19828   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
19829 Usually this means the macro was only invoked conditionally." >&5
19830 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
19831 Usually this means the macro was only invoked conditionally." >&2;}
19832    { (exit 1); exit 1; }; }
19833 fi
19834 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
19835   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19836 Usually this means the macro was only invoked conditionally." >&5
19837 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19838 Usually this means the macro was only invoked conditionally." >&2;}
19839    { (exit 1); exit 1; }; }
19840 fi
19841 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
19842   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19843 Usually this means the macro was only invoked conditionally." >&5
19844 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19845 Usually this means the macro was only invoked conditionally." >&2;}
19846    { (exit 1); exit 1; }; }
19847 fi
19848 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
19849   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19850 Usually this means the macro was only invoked conditionally." >&5
19851 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19852 Usually this means the macro was only invoked conditionally." >&2;}
19853    { (exit 1); exit 1; }; }
19854 fi
19855 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
19856   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19857 Usually this means the macro was only invoked conditionally." >&5
19858 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19859 Usually this means the macro was only invoked conditionally." >&2;}
19860    { (exit 1); exit 1; }; }
19861 fi
19862 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
19863   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
19864 Usually this means the macro was only invoked conditionally." >&5
19865 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
19866 Usually this means the macro was only invoked conditionally." >&2;}
19867    { (exit 1); exit 1; }; }
19868 fi
19869 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
19870   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
19871 Usually this means the macro was only invoked conditionally." >&5
19872 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
19873 Usually this means the macro was only invoked conditionally." >&2;}
19874    { (exit 1); exit 1; }; }
19875 fi
19876 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
19877   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
19878 Usually this means the macro was only invoked conditionally." >&5
19879 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
19880 Usually this means the macro was only invoked conditionally." >&2;}
19881    { (exit 1); exit 1; }; }
19882 fi
19883 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
19884   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
19885 Usually this means the macro was only invoked conditionally." >&5
19886 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
19887 Usually this means the macro was only invoked conditionally." >&2;}
19888    { (exit 1); exit 1; }; }
19889 fi
19890 if test -z "${ENABLE_NETWORK_TRUE}" && test -z "${ENABLE_NETWORK_FALSE}"; then
19891   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NETWORK\" was never defined.
19892 Usually this means the macro was only invoked conditionally." >&5
19893 echo "$as_me: error: conditional \"ENABLE_NETWORK\" was never defined.
19894 Usually this means the macro was only invoked conditionally." >&2;}
19895    { (exit 1); exit 1; }; }
19896 fi
19897 if test -z "${ENABLE_SOUND_SPEC_TRUE}" && test -z "${ENABLE_SOUND_SPEC_FALSE}"; then
19898   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
19899 Usually this means the macro was only invoked conditionally." >&5
19900 echo "$as_me: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
19901 Usually this means the macro was only invoked conditionally." >&2;}
19902    { (exit 1); exit 1; }; }
19903 fi
19904 if test -z "${ENABLE_WRD_TRUE}" && test -z "${ENABLE_WRD_FALSE}"; then
19905   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WRD\" was never defined.
19906 Usually this means the macro was only invoked conditionally." >&5
19907 echo "$as_me: error: conditional \"ENABLE_WRD\" was never defined.
19908 Usually this means the macro was only invoked conditionally." >&2;}
19909    { (exit 1); exit 1; }; }
19910 fi
19911 if test -z "${CYGNUS_TRUE}" && test -z "${CYGNUS_FALSE}"; then
19912   { { echo "$as_me:$LINENO: error: conditional \"CYGNUS\" was never defined.
19913 Usually this means the macro was only invoked conditionally." >&5
19914 echo "$as_me: error: conditional \"CYGNUS\" was never defined.
19915 Usually this means the macro was only invoked conditionally." >&2;}
19916    { (exit 1); exit 1; }; }
19917 fi
19918 if test -z "${MSYS_TRUE}" && test -z "${MSYS_FALSE}"; then
19919   { { echo "$as_me:$LINENO: error: conditional \"MSYS\" was never defined.
19920 Usually this means the macro was only invoked conditionally." >&5
19921 echo "$as_me: error: conditional \"MSYS\" was never defined.
19922 Usually this means the macro was only invoked conditionally." >&2;}
19923    { (exit 1); exit 1; }; }
19924 fi
19925 if test -z "${VCPP_TRUE}" && test -z "${VCPP_FALSE}"; then
19926   { { echo "$as_me:$LINENO: error: conditional \"VCPP\" was never defined.
19927 Usually this means the macro was only invoked conditionally." >&5
19928 echo "$as_me: error: conditional \"VCPP\" was never defined.
19929 Usually this means the macro was only invoked conditionally." >&2;}
19930    { (exit 1); exit 1; }; }
19931 fi
19932 if test -z "${BORLANDC_TRUE}" && test -z "${BORLANDC_FALSE}"; then
19933   { { echo "$as_me:$LINENO: error: conditional \"BORLANDC\" was never defined.
19934 Usually this means the macro was only invoked conditionally." >&5
19935 echo "$as_me: error: conditional \"BORLANDC\" was never defined.
19936 Usually this means the macro was only invoked conditionally." >&2;}
19937    { (exit 1); exit 1; }; }
19938 fi
19939 if test -z "${WATCOM_C_TRUE}" && test -z "${WATCOM_C_FALSE}"; then
19940   { { echo "$as_me:$LINENO: error: conditional \"WATCOM_C\" was never defined.
19941 Usually this means the macro was only invoked conditionally." >&5
19942 echo "$as_me: error: conditional \"WATCOM_C\" was never defined.
19943 Usually this means the macro was only invoked conditionally." >&2;}
19944    { (exit 1); exit 1; }; }
19945 fi
19946 if test -z "${W32READDIR_TRUE}" && test -z "${W32READDIR_FALSE}"; then
19947   { { echo "$as_me:$LINENO: error: conditional \"W32READDIR\" was never defined.
19948 Usually this means the macro was only invoked conditionally." >&5
19949 echo "$as_me: error: conditional \"W32READDIR\" was never defined.
19950 Usually this means the macro was only invoked conditionally." >&2;}
19951    { (exit 1); exit 1; }; }
19952 fi
19953
19954 : ${CONFIG_STATUS=./config.status}
19955 ac_clean_files_save=$ac_clean_files
19956 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19957 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19958 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19959 cat >$CONFIG_STATUS <<_ACEOF
19960 #! $SHELL
19961 # Generated by $as_me.
19962 # Run this file to recreate the current configuration.
19963 # Compiler output produced by configure, useful for debugging
19964 # configure, is in config.log if it exists.
19965
19966 debug=false
19967 ac_cs_recheck=false
19968 ac_cs_silent=false
19969 SHELL=\${CONFIG_SHELL-$SHELL}
19970 _ACEOF
19971
19972 cat >>$CONFIG_STATUS <<\_ACEOF
19973 ## --------------------- ##
19974 ## M4sh Initialization.  ##
19975 ## --------------------- ##
19976
19977 # Be Bourne compatible
19978 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19979   emulate sh
19980   NULLCMD=:
19981   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19982   # is contrary to our usage.  Disable this feature.
19983   alias -g '${1+"$@"}'='"$@"'
19984 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19985   set -o posix
19986 fi
19987 DUALCASE=1; export DUALCASE # for MKS sh
19988
19989 # Support unset when possible.
19990 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19991   as_unset=unset
19992 else
19993   as_unset=false
19994 fi
19995
19996
19997 # Work around bugs in pre-3.0 UWIN ksh.
19998 $as_unset ENV MAIL MAILPATH
19999 PS1='$ '
20000 PS2='> '
20001 PS4='+ '
20002
20003 # NLS nuisances.
20004 for as_var in \
20005   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20006   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20007   LC_TELEPHONE LC_TIME
20008 do
20009   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20010     eval $as_var=C; export $as_var
20011   else
20012     $as_unset $as_var
20013   fi
20014 done
20015
20016 # Required to use basename.
20017 if expr a : '\(a\)' >/dev/null 2>&1; then
20018   as_expr=expr
20019 else
20020   as_expr=false
20021 fi
20022
20023 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20024   as_basename=basename
20025 else
20026   as_basename=false
20027 fi
20028
20029
20030 # Name of the executable.
20031 as_me=`$as_basename "$0" ||
20032 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20033          X"$0" : 'X\(//\)$' \| \
20034          X"$0" : 'X\(/\)$' \| \
20035          .     : '\(.\)' 2>/dev/null ||
20036 echo X/"$0" |
20037     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20038           /^X\/\(\/\/\)$/{ s//\1/; q; }
20039           /^X\/\(\/\).*/{ s//\1/; q; }
20040           s/.*/./; q'`
20041
20042
20043 # PATH needs CR, and LINENO needs CR and PATH.
20044 # Avoid depending upon Character Ranges.
20045 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20046 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20047 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20048 as_cr_digits='0123456789'
20049 as_cr_alnum=$as_cr_Letters$as_cr_digits
20050
20051 # The user is always right.
20052 if test "${PATH_SEPARATOR+set}" != set; then
20053   echo "#! /bin/sh" >conf$$.sh
20054   echo  "exit 0"   >>conf$$.sh
20055   chmod +x conf$$.sh
20056   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20057     PATH_SEPARATOR=';'
20058   else
20059     PATH_SEPARATOR=:
20060   fi
20061   rm -f conf$$.sh
20062 fi
20063
20064
20065   as_lineno_1=$LINENO
20066   as_lineno_2=$LINENO
20067   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20068   test "x$as_lineno_1" != "x$as_lineno_2" &&
20069   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20070   # Find who we are.  Look in the path if we contain no path at all
20071   # relative or not.
20072   case $0 in
20073     *[\\/]* ) as_myself=$0 ;;
20074     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20075 for as_dir in $PATH
20076 do
20077   IFS=$as_save_IFS
20078   test -z "$as_dir" && as_dir=.
20079   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20080 done
20081
20082        ;;
20083   esac
20084   # We did not find ourselves, most probably we were run as `sh COMMAND'
20085   # in which case we are not to be found in the path.
20086   if test "x$as_myself" = x; then
20087     as_myself=$0
20088   fi
20089   if test ! -f "$as_myself"; then
20090     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20091 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20092    { (exit 1); exit 1; }; }
20093   fi
20094   case $CONFIG_SHELL in
20095   '')
20096     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20097 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20098 do
20099   IFS=$as_save_IFS
20100   test -z "$as_dir" && as_dir=.
20101   for as_base in sh bash ksh sh5; do
20102          case $as_dir in
20103          /*)
20104            if ("$as_dir/$as_base" -c '
20105   as_lineno_1=$LINENO
20106   as_lineno_2=$LINENO
20107   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20108   test "x$as_lineno_1" != "x$as_lineno_2" &&
20109   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20110              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20111              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20112              CONFIG_SHELL=$as_dir/$as_base
20113              export CONFIG_SHELL
20114              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20115            fi;;
20116          esac
20117        done
20118 done
20119 ;;
20120   esac
20121
20122   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20123   # uniformly replaced by the line number.  The first 'sed' inserts a
20124   # line-number line before each line; the second 'sed' does the real
20125   # work.  The second script uses 'N' to pair each line-number line
20126   # with the numbered line, and appends trailing '-' during
20127   # substitution so that $LINENO is not a special case at line end.
20128   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20129   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20130   sed '=' <$as_myself |
20131     sed '
20132       N
20133       s,$,-,
20134       : loop
20135       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20136       t loop
20137       s,-$,,
20138       s,^['$as_cr_digits']*\n,,
20139     ' >$as_me.lineno &&
20140   chmod +x $as_me.lineno ||
20141     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20142 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20143    { (exit 1); exit 1; }; }
20144
20145   # Don't try to exec as it changes $[0], causing all sort of problems
20146   # (the dirname of $[0] is not the place where we might find the
20147   # original and so on.  Autoconf is especially sensible to this).
20148   . ./$as_me.lineno
20149   # Exit status is that of the last command.
20150   exit
20151 }
20152
20153
20154 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20155   *c*,-n*) ECHO_N= ECHO_C='
20156 ' ECHO_T='      ' ;;
20157   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20158   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20159 esac
20160
20161 if expr a : '\(a\)' >/dev/null 2>&1; then
20162   as_expr=expr
20163 else
20164   as_expr=false
20165 fi
20166
20167 rm -f conf$$ conf$$.exe conf$$.file
20168 echo >conf$$.file
20169 if ln -s conf$$.file conf$$ 2>/dev/null; then
20170   # We could just check for DJGPP; but this test a) works b) is more generic
20171   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20172   if test -f conf$$.exe; then
20173     # Don't use ln at all; we don't have any links
20174     as_ln_s='cp -p'
20175   else
20176     as_ln_s='ln -s'
20177   fi
20178 elif ln conf$$.file conf$$ 2>/dev/null; then
20179   as_ln_s=ln
20180 else
20181   as_ln_s='cp -p'
20182 fi
20183 rm -f conf$$ conf$$.exe conf$$.file
20184
20185 if mkdir -p . 2>/dev/null; then
20186   as_mkdir_p=:
20187 else
20188   test -d ./-p && rmdir ./-p
20189   as_mkdir_p=false
20190 fi
20191
20192 as_executable_p="test -f"
20193
20194 # Sed expression to map a string onto a valid CPP name.
20195 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20196
20197 # Sed expression to map a string onto a valid variable name.
20198 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20199
20200
20201 # IFS
20202 # We need space, tab and new line, in precisely that order.
20203 as_nl='
20204 '
20205 IFS="   $as_nl"
20206
20207 # CDPATH.
20208 $as_unset CDPATH
20209
20210 exec 6>&1
20211
20212 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20213 # report actual input values of CONFIG_FILES etc. instead of their
20214 # values after options handling.  Logging --version etc. is OK.
20215 exec 5>>config.log
20216 {
20217   echo
20218   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20219 ## Running $as_me. ##
20220 _ASBOX
20221 } >&5
20222 cat >&5 <<_CSEOF
20223
20224 This file was extended by TiMidity++ $as_me 2.13.1, which was
20225 generated by GNU Autoconf 2.59.  Invocation command line was
20226
20227   CONFIG_FILES    = $CONFIG_FILES
20228   CONFIG_HEADERS  = $CONFIG_HEADERS
20229   CONFIG_LINKS    = $CONFIG_LINKS
20230   CONFIG_COMMANDS = $CONFIG_COMMANDS
20231   $ $0 $@
20232
20233 _CSEOF
20234 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20235 echo >&5
20236 _ACEOF
20237
20238 # Files that config.status was made for.
20239 if test -n "$ac_config_files"; then
20240   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20241 fi
20242
20243 if test -n "$ac_config_headers"; then
20244   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20245 fi
20246
20247 if test -n "$ac_config_links"; then
20248   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20249 fi
20250
20251 if test -n "$ac_config_commands"; then
20252   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20253 fi
20254
20255 cat >>$CONFIG_STATUS <<\_ACEOF
20256
20257 ac_cs_usage="\
20258 \`$as_me' instantiates files from templates according to the
20259 current configuration.
20260
20261 Usage: $0 [OPTIONS] [FILE]...
20262
20263   -h, --help       print this help, then exit
20264   -V, --version    print version number, then exit
20265   -q, --quiet      do not print progress messages
20266   -d, --debug      don't remove temporary files
20267       --recheck    update $as_me by reconfiguring in the same conditions
20268   --file=FILE[:TEMPLATE]
20269                    instantiate the configuration file FILE
20270   --header=FILE[:TEMPLATE]
20271                    instantiate the configuration header FILE
20272
20273 Configuration files:
20274 $config_files
20275
20276 Configuration headers:
20277 $config_headers
20278
20279 Configuration commands:
20280 $config_commands
20281
20282 Report bugs to <bug-autoconf@gnu.org>."
20283 _ACEOF
20284
20285 cat >>$CONFIG_STATUS <<_ACEOF
20286 ac_cs_version="\\
20287 TiMidity++ config.status 2.13.1
20288 configured by $0, generated by GNU Autoconf 2.59,
20289   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20290
20291 Copyright (C) 2003 Free Software Foundation, Inc.
20292 This config.status script is free software; the Free Software Foundation
20293 gives unlimited permission to copy, distribute and modify it."
20294 srcdir=$srcdir
20295 INSTALL="$INSTALL"
20296 _ACEOF
20297
20298 cat >>$CONFIG_STATUS <<\_ACEOF
20299 # If no file are specified by the user, then we need to provide default
20300 # value.  By we need to know if files were specified by the user.
20301 ac_need_defaults=:
20302 while test $# != 0
20303 do
20304   case $1 in
20305   --*=*)
20306     ac_option=`expr "x$1" : 'x\([^=]*\)='`
20307     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20308     ac_shift=:
20309     ;;
20310   -*)
20311     ac_option=$1
20312     ac_optarg=$2
20313     ac_shift=shift
20314     ;;
20315   *) # This is not an option, so the user has probably given explicit
20316      # arguments.
20317      ac_option=$1
20318      ac_need_defaults=false;;
20319   esac
20320
20321   case $ac_option in
20322   # Handling of the options.
20323 _ACEOF
20324 cat >>$CONFIG_STATUS <<\_ACEOF
20325   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20326     ac_cs_recheck=: ;;
20327   --version | --vers* | -V )
20328     echo "$ac_cs_version"; exit 0 ;;
20329   --he | --h)
20330     # Conflict between --help and --header
20331     { { echo "$as_me:$LINENO: error: ambiguous option: $1
20332 Try \`$0 --help' for more information." >&5
20333 echo "$as_me: error: ambiguous option: $1
20334 Try \`$0 --help' for more information." >&2;}
20335    { (exit 1); exit 1; }; };;
20336   --help | --hel | -h )
20337     echo "$ac_cs_usage"; exit 0 ;;
20338   --debug | --d* | -d )
20339     debug=: ;;
20340   --file | --fil | --fi | --f )
20341     $ac_shift
20342     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20343     ac_need_defaults=false;;
20344   --header | --heade | --head | --hea )
20345     $ac_shift
20346     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20347     ac_need_defaults=false;;
20348   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20349   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20350     ac_cs_silent=: ;;
20351
20352   # This is an error.
20353   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20354 Try \`$0 --help' for more information." >&5
20355 echo "$as_me: error: unrecognized option: $1
20356 Try \`$0 --help' for more information." >&2;}
20357    { (exit 1); exit 1; }; } ;;
20358
20359   *) ac_config_targets="$ac_config_targets $1" ;;
20360
20361   esac
20362   shift
20363 done
20364
20365 ac_configure_extra_args=
20366
20367 if $ac_cs_silent; then
20368   exec 6>/dev/null
20369   ac_configure_extra_args="$ac_configure_extra_args --silent"
20370 fi
20371
20372 _ACEOF
20373 cat >>$CONFIG_STATUS <<_ACEOF
20374 if \$ac_cs_recheck; then
20375   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20376   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20377 fi
20378
20379 _ACEOF
20380
20381 cat >>$CONFIG_STATUS <<_ACEOF
20382 #
20383 # INIT-COMMANDS section.
20384 #
20385
20386 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20387
20388 _ACEOF
20389
20390
20391
20392 cat >>$CONFIG_STATUS <<\_ACEOF
20393 for ac_config_target in $ac_config_targets
20394 do
20395   case "$ac_config_target" in
20396   # Handling of arguments.
20397   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20398   "autoconf/Makefile" ) CONFIG_FILES="$CONFIG_FILES autoconf/Makefile" ;;
20399   "common.makefile" ) CONFIG_FILES="$CONFIG_FILES common.makefile" ;;
20400   "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
20401   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20402   "doc/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
20403   "doc/ja_JP.eucJP/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/ja_JP.eucJP/Makefile" ;;
20404   "interface/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
20405   "interface/motif_bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/motif_bitmaps/Makefile" ;;
20406   "interface/bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/bitmaps/Makefile" ;;
20407   "interface/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/pixmaps/Makefile" ;;
20408   "libarc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libarc/Makefile" ;;
20409   "libunimod/Makefile" ) CONFIG_FILES="$CONFIG_FILES libunimod/Makefile" ;;
20410   "timidity/Makefile" ) CONFIG_FILES="$CONFIG_FILES timidity/Makefile" ;;
20411   "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
20412   "script/Makefile" ) CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
20413   "TiMidity.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity.ad" ;;
20414   "TiMidity-uj.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity-uj.ad" ;;
20415   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20416   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20417   "interface.h" ) CONFIG_HEADERS="$CONFIG_HEADERS interface.h" ;;
20418   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20419 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20420    { (exit 1); exit 1; }; };;
20421   esac
20422 done
20423
20424 # If the user did not use the arguments to specify the items to instantiate,
20425 # then the envvar interface is used.  Set only those that are not.
20426 # We use the long form for the default assignment because of an extremely
20427 # bizarre bug on SunOS 4.1.3.
20428 if $ac_need_defaults; then
20429   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20430   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20431   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20432 fi
20433
20434 # Have a temporary directory for convenience.  Make it in the build tree
20435 # simply because there is no reason to put it here, and in addition,
20436 # creating and moving files from /tmp can sometimes cause problems.
20437 # Create a temporary directory, and hook for its removal unless debugging.
20438 $debug ||
20439 {
20440   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20441   trap '{ (exit 1); exit 1; }' 1 2 13 15
20442 }
20443
20444 # Create a (secure) tmp directory for tmp files.
20445
20446 {
20447   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20448   test -n "$tmp" && test -d "$tmp"
20449 }  ||
20450 {
20451   tmp=./confstat$$-$RANDOM
20452   (umask 077 && mkdir $tmp)
20453 } ||
20454 {
20455    echo "$me: cannot create a temporary directory in ." >&2
20456    { (exit 1); exit 1; }
20457 }
20458
20459 _ACEOF
20460
20461 cat >>$CONFIG_STATUS <<_ACEOF
20462
20463 #
20464 # CONFIG_FILES section.
20465 #
20466
20467 # No need to generate the scripts if there are no CONFIG_FILES.
20468 # This happens for instance when ./config.status config.h
20469 if test -n "\$CONFIG_FILES"; then
20470   # Protect against being on the right side of a sed subst in config.status.
20471   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20472    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20473 s,@SHELL@,$SHELL,;t t
20474 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20475 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20476 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20477 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20478 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20479 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20480 s,@exec_prefix@,$exec_prefix,;t t
20481 s,@prefix@,$prefix,;t t
20482 s,@program_transform_name@,$program_transform_name,;t t
20483 s,@bindir@,$bindir,;t t
20484 s,@sbindir@,$sbindir,;t t
20485 s,@libexecdir@,$libexecdir,;t t
20486 s,@datadir@,$datadir,;t t
20487 s,@sysconfdir@,$sysconfdir,;t t
20488 s,@sharedstatedir@,$sharedstatedir,;t t
20489 s,@localstatedir@,$localstatedir,;t t
20490 s,@libdir@,$libdir,;t t
20491 s,@includedir@,$includedir,;t t
20492 s,@oldincludedir@,$oldincludedir,;t t
20493 s,@infodir@,$infodir,;t t
20494 s,@mandir@,$mandir,;t t
20495 s,@build_alias@,$build_alias,;t t
20496 s,@host_alias@,$host_alias,;t t
20497 s,@target_alias@,$target_alias,;t t
20498 s,@DEFS@,$DEFS,;t t
20499 s,@ECHO_C@,$ECHO_C,;t t
20500 s,@ECHO_N@,$ECHO_N,;t t
20501 s,@ECHO_T@,$ECHO_T,;t t
20502 s,@LIBS@,$LIBS,;t t
20503 s,@build@,$build,;t t
20504 s,@build_cpu@,$build_cpu,;t t
20505 s,@build_vendor@,$build_vendor,;t t
20506 s,@build_os@,$build_os,;t t
20507 s,@host@,$host,;t t
20508 s,@host_cpu@,$host_cpu,;t t
20509 s,@host_vendor@,$host_vendor,;t t
20510 s,@host_os@,$host_os,;t t
20511 s,@target@,$target,;t t
20512 s,@target_cpu@,$target_cpu,;t t
20513 s,@target_vendor@,$target_vendor,;t t
20514 s,@target_os@,$target_os,;t t
20515 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20516 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20517 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20518 s,@CYGPATH_W@,$CYGPATH_W,;t t
20519 s,@PACKAGE@,$PACKAGE,;t t
20520 s,@VERSION@,$VERSION,;t t
20521 s,@ACLOCAL@,$ACLOCAL,;t t
20522 s,@AUTOCONF@,$AUTOCONF,;t t
20523 s,@AUTOMAKE@,$AUTOMAKE,;t t
20524 s,@AUTOHEADER@,$AUTOHEADER,;t t
20525 s,@MAKEINFO@,$MAKEINFO,;t t
20526 s,@AMTAR@,$AMTAR,;t t
20527 s,@install_sh@,$install_sh,;t t
20528 s,@STRIP@,$STRIP,;t t
20529 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20530 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20531 s,@AWK@,$AWK,;t t
20532 s,@SET_MAKE@,$SET_MAKE,;t t
20533 s,@am__leading_dot@,$am__leading_dot,;t t
20534 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20535 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20536 s,@MAINT@,$MAINT,;t t
20537 s,@EMACS@,$EMACS,;t t
20538 s,@lispdir@,$lispdir,;t t
20539 s,@CC@,$CC,;t t
20540 s,@CFLAGS@,$CFLAGS,;t t
20541 s,@LDFLAGS@,$LDFLAGS,;t t
20542 s,@CPPFLAGS@,$CPPFLAGS,;t t
20543 s,@ac_ct_CC@,$ac_ct_CC,;t t
20544 s,@EXEEXT@,$EXEEXT,;t t
20545 s,@OBJEXT@,$OBJEXT,;t t
20546 s,@DEPDIR@,$DEPDIR,;t t
20547 s,@am__include@,$am__include,;t t
20548 s,@am__quote@,$am__quote,;t t
20549 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20550 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20551 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20552 s,@CCDEPMODE@,$CCDEPMODE,;t t
20553 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20554 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20555 s,@CPP@,$CPP,;t t
20556 s,@EGREP@,$EGREP,;t t
20557 s,@RANLIB@,$RANLIB,;t t
20558 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20559 s,@LN_S@,$LN_S,;t t
20560 s,@X_CFLAGS@,$X_CFLAGS,;t t
20561 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20562 s,@X_LIBS@,$X_LIBS,;t t
20563 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20564 s,@LIBOBJS@,$LIBOBJS,;t t
20565 s,@NEEDGETOPT_TRUE@,$NEEDGETOPT_TRUE,;t t
20566 s,@NEEDGETOPT_FALSE@,$NEEDGETOPT_FALSE,;t t
20567 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
20568 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
20569 s,@ARTS_CONFIG@,$ARTS_CONFIG,;t t
20570 s,@ARTS_CFLAGS@,$ARTS_CFLAGS,;t t
20571 s,@ARTS_LIBS@,$ARTS_LIBS,;t t
20572 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
20573 s,@ESD_CFLAGS@,$ESD_CFLAGS,;t t
20574 s,@ESD_LIBS@,$ESD_LIBS,;t t
20575 s,@AO_CFLAGS@,$AO_CFLAGS,;t t
20576 s,@AO_LIBS@,$AO_LIBS,;t t
20577 s,@VORBIS_CFLAGS@,$VORBIS_CFLAGS,;t t
20578 s,@VORBIS_LIBS@,$VORBIS_LIBS,;t t
20579 s,@VORBISFILE_LIBS@,$VORBISFILE_LIBS,;t t
20580 s,@VORBISENC_LIBS@,$VORBISENC_LIBS,;t t
20581 s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t
20582 s,@OGG_LIBS@,$OGG_LIBS,;t t
20583 s,@LIBFLAC_CFLAGS@,$LIBFLAC_CFLAGS,;t t
20584 s,@LIBFLAC_LIBS@,$LIBFLAC_LIBS,;t t
20585 s,@LIBOGGFLAC_CFLAGS@,$LIBOGGFLAC_CFLAGS,;t t
20586 s,@LIBOGGFLAC_LIBS@,$LIBOGGFLAC_LIBS,;t t
20587 s,@NEEDDLOPEN_TRUE@,$NEEDDLOPEN_TRUE,;t t
20588 s,@NEEDDLOPEN_FALSE@,$NEEDDLOPEN_FALSE,;t t
20589 s,@ENABLE_NCURSES_TRUE@,$ENABLE_NCURSES_TRUE,;t t
20590 s,@ENABLE_NCURSES_FALSE@,$ENABLE_NCURSES_FALSE,;t t
20591 s,@n_so_libs@,$n_so_libs,;t t
20592 s,@ENABLE_SLANG_TRUE@,$ENABLE_SLANG_TRUE,;t t
20593 s,@ENABLE_SLANG_FALSE@,$ENABLE_SLANG_FALSE,;t t
20594 s,@s_so_libs@,$s_so_libs,;t t
20595 s,@ENABLE_MOTIF_TRUE@,$ENABLE_MOTIF_TRUE,;t t
20596 s,@ENABLE_MOTIF_FALSE@,$ENABLE_MOTIF_FALSE,;t t
20597 s,@m_so_libs@,$m_so_libs,;t t
20598 s,@ENABLE_TCLTK_TRUE@,$ENABLE_TCLTK_TRUE,;t t
20599 s,@ENABLE_TCLTK_FALSE@,$ENABLE_TCLTK_FALSE,;t t
20600 s,@k_so_libs@,$k_so_libs,;t t
20601 s,@ENABLE_DYNAMIC_TCLTK_TRUE@,$ENABLE_DYNAMIC_TCLTK_TRUE,;t t
20602 s,@ENABLE_DYNAMIC_TCLTK_FALSE@,$ENABLE_DYNAMIC_TCLTK_FALSE,;t t
20603 s,@ENABLE_EMACS_TRUE@,$ENABLE_EMACS_TRUE,;t t
20604 s,@ENABLE_EMACS_FALSE@,$ENABLE_EMACS_FALSE,;t t
20605 s,@e_so_libs@,$e_so_libs,;t t
20606 s,@ENABLE_VT100_TRUE@,$ENABLE_VT100_TRUE,;t t
20607 s,@ENABLE_VT100_FALSE@,$ENABLE_VT100_FALSE,;t t
20608 s,@T_so_libs@,$T_so_libs,;t t
20609 s,@ENABLE_XAW_TRUE@,$ENABLE_XAW_TRUE,;t t
20610 s,@ENABLE_XAW_FALSE@,$ENABLE_XAW_FALSE,;t t
20611 s,@a_so_libs@,$a_so_libs,;t t
20612 s,@ENABLE_DYNAMIC_XAW_TRUE@,$ENABLE_DYNAMIC_XAW_TRUE,;t t
20613 s,@ENABLE_DYNAMIC_XAW_FALSE@,$ENABLE_DYNAMIC_XAW_FALSE,;t t
20614 s,@ENABLE_XSKIN_TRUE@,$ENABLE_XSKIN_TRUE,;t t
20615 s,@ENABLE_XSKIN_FALSE@,$ENABLE_XSKIN_FALSE,;t t
20616 s,@i_so_libs@,$i_so_libs,;t t
20617 s,@ENABLE_GTK_TRUE@,$ENABLE_GTK_TRUE,;t t
20618 s,@ENABLE_GTK_FALSE@,$ENABLE_GTK_FALSE,;t t
20619 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20620 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
20621 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
20622 s,@GTK_LIBS@,$GTK_LIBS,;t t
20623 s,@g_so_libs@,$g_so_libs,;t t
20624 s,@ENABLE_SERVER_TRUE@,$ENABLE_SERVER_TRUE,;t t
20625 s,@ENABLE_SERVER_FALSE@,$ENABLE_SERVER_FALSE,;t t
20626 s,@r_so_libs@,$r_so_libs,;t t
20627 s,@ENABLE_ALSASEQ_TRUE@,$ENABLE_ALSASEQ_TRUE,;t t
20628 s,@ENABLE_ALSASEQ_FALSE@,$ENABLE_ALSASEQ_FALSE,;t t
20629 s,@A_so_libs@,$A_so_libs,;t t
20630 s,@ENABLE_WINSYN_TRUE@,$ENABLE_WINSYN_TRUE,;t t
20631 s,@ENABLE_WINSYN_FALSE@,$ENABLE_WINSYN_FALSE,;t t
20632 s,@W_so_libs@,$W_so_libs,;t t
20633 s,@ENABLE_PORTMIDISYN_TRUE@,$ENABLE_PORTMIDISYN_TRUE,;t t
20634 s,@ENABLE_PORTMIDISYN_FALSE@,$ENABLE_PORTMIDISYN_FALSE,;t t
20635 s,@P_so_libs@,$P_so_libs,;t t
20636 s,@ENABLE_W32G_SYN_TRUE@,$ENABLE_W32G_SYN_TRUE,;t t
20637 s,@ENABLE_W32G_SYN_FALSE@,$ENABLE_W32G_SYN_FALSE,;t t
20638 s,@ENABLE_W32GUI_TRUE@,$ENABLE_W32GUI_TRUE,;t t
20639 s,@ENABLE_W32GUI_FALSE@,$ENABLE_W32GUI_FALSE,;t t
20640 s,@w_so_libs@,$w_so_libs,;t t
20641 s,@ENABLE_PLUGIN_TRUE@,$ENABLE_PLUGIN_TRUE,;t t
20642 s,@ENABLE_PLUGIN_FALSE@,$ENABLE_PLUGIN_FALSE,;t t
20643 s,@p_so_libs@,$p_so_libs,;t t
20644 s,@ENABLE_NETWORK_TRUE@,$ENABLE_NETWORK_TRUE,;t t
20645 s,@ENABLE_NETWORK_FALSE@,$ENABLE_NETWORK_FALSE,;t t
20646 s,@ENABLE_SOUND_SPEC_TRUE@,$ENABLE_SOUND_SPEC_TRUE,;t t
20647 s,@ENABLE_SOUND_SPEC_FALSE@,$ENABLE_SOUND_SPEC_FALSE,;t t
20648 s,@ENABLE_WRD_TRUE@,$ENABLE_WRD_TRUE,;t t
20649 s,@ENABLE_WRD_FALSE@,$ENABLE_WRD_FALSE,;t t
20650 s,@CYGNUS_TRUE@,$CYGNUS_TRUE,;t t
20651 s,@CYGNUS_FALSE@,$CYGNUS_FALSE,;t t
20652 s,@MSYS_TRUE@,$MSYS_TRUE,;t t
20653 s,@MSYS_FALSE@,$MSYS_FALSE,;t t
20654 s,@VCPP_TRUE@,$VCPP_TRUE,;t t
20655 s,@VCPP_FALSE@,$VCPP_FALSE,;t t
20656 s,@BORLANDC_TRUE@,$BORLANDC_TRUE,;t t
20657 s,@BORLANDC_FALSE@,$BORLANDC_FALSE,;t t
20658 s,@WATCOM_C_TRUE@,$WATCOM_C_TRUE,;t t
20659 s,@WATCOM_C_FALSE@,$WATCOM_C_FALSE,;t t
20660 s,@W32READDIR_TRUE@,$W32READDIR_TRUE,;t t
20661 s,@W32READDIR_FALSE@,$W32READDIR_FALSE,;t t
20662 s,@BORLANDC_START@,$BORLANDC_START,;t t
20663 s,@BORLANDC_LDFLAGS@,$BORLANDC_LDFLAGS,;t t
20664 s,@timidity_LDFLAGS@,$timidity_LDFLAGS,;t t
20665 s,@WATCOM_LDFLAGS@,$WATCOM_LDFLAGS,;t t
20666 s,@VCPP_LDFLAGS@,$VCPP_LDFLAGS,;t t
20667 s,@SYSEXTRAS@,$SYSEXTRAS,;t t
20668 s,@EXTRALIBS@,$EXTRALIBS,;t t
20669 s,@NETSRCS@,$NETSRCS,;t t
20670 s,@ELFILES@,$ELFILES,;t t
20671 s,@SHLD@,$SHLD,;t t
20672 s,@SHCFLAGS@,$SHCFLAGS,;t t
20673 s,@dynamic_targets@,$dynamic_targets,;t t
20674 s,@so@,$so,;t t
20675 s,@WISH@,$WISH,;t t
20676 s,@tcltk_dep@,$tcltk_dep,;t t
20677 s,@INTERFACE_SRCS@,$INTERFACE_SRCS,;t t
20678 s,@pkgdatadir@,$pkgdatadir,;t t
20679 s,@pkglibdir@,$pkglibdir,;t t
20680 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20681 CEOF
20682
20683 _ACEOF
20684
20685   cat >>$CONFIG_STATUS <<\_ACEOF
20686   # Split the substitutions into bite-sized pieces for seds with
20687   # small command number limits, like on Digital OSF/1 and HP-UX.
20688   ac_max_sed_lines=48
20689   ac_sed_frag=1 # Number of current file.
20690   ac_beg=1 # First line for current file.
20691   ac_end=$ac_max_sed_lines # Line after last line for current file.
20692   ac_more_lines=:
20693   ac_sed_cmds=
20694   while $ac_more_lines; do
20695     if test $ac_beg -gt 1; then
20696       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20697     else
20698       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20699     fi
20700     if test ! -s $tmp/subs.frag; then
20701       ac_more_lines=false
20702     else
20703       # The purpose of the label and of the branching condition is to
20704       # speed up the sed processing (if there are no `@' at all, there
20705       # is no need to browse any of the substitutions).
20706       # These are the two extra sed commands mentioned above.
20707       (echo ':t
20708   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20709       if test -z "$ac_sed_cmds"; then
20710         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20711       else
20712         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20713       fi
20714       ac_sed_frag=`expr $ac_sed_frag + 1`
20715       ac_beg=$ac_end
20716       ac_end=`expr $ac_end + $ac_max_sed_lines`
20717     fi
20718   done
20719   if test -z "$ac_sed_cmds"; then
20720     ac_sed_cmds=cat
20721   fi
20722 fi # test -n "$CONFIG_FILES"
20723
20724 _ACEOF
20725 cat >>$CONFIG_STATUS <<\_ACEOF
20726 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20727   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20728   case $ac_file in
20729   - | *:- | *:-:* ) # input from stdin
20730         cat >$tmp/stdin
20731         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20732         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20733   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20734         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20735   * )   ac_file_in=$ac_file.in ;;
20736   esac
20737
20738   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20739   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20740 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20741          X"$ac_file" : 'X\(//\)[^/]' \| \
20742          X"$ac_file" : 'X\(//\)$' \| \
20743          X"$ac_file" : 'X\(/\)' \| \
20744          .     : '\(.\)' 2>/dev/null ||
20745 echo X"$ac_file" |
20746     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20747           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20748           /^X\(\/\/\)$/{ s//\1/; q; }
20749           /^X\(\/\).*/{ s//\1/; q; }
20750           s/.*/./; q'`
20751   { if $as_mkdir_p; then
20752     mkdir -p "$ac_dir"
20753   else
20754     as_dir="$ac_dir"
20755     as_dirs=
20756     while test ! -d "$as_dir"; do
20757       as_dirs="$as_dir $as_dirs"
20758       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20759 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20760          X"$as_dir" : 'X\(//\)[^/]' \| \
20761          X"$as_dir" : 'X\(//\)$' \| \
20762          X"$as_dir" : 'X\(/\)' \| \
20763          .     : '\(.\)' 2>/dev/null ||
20764 echo X"$as_dir" |
20765     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20766           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20767           /^X\(\/\/\)$/{ s//\1/; q; }
20768           /^X\(\/\).*/{ s//\1/; q; }
20769           s/.*/./; q'`
20770     done
20771     test ! -n "$as_dirs" || mkdir $as_dirs
20772   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20773 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20774    { (exit 1); exit 1; }; }; }
20775
20776   ac_builddir=.
20777
20778 if test "$ac_dir" != .; then
20779   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20780   # A "../" for each directory in $ac_dir_suffix.
20781   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20782 else
20783   ac_dir_suffix= ac_top_builddir=
20784 fi
20785
20786 case $srcdir in
20787   .)  # No --srcdir option.  We are building in place.
20788     ac_srcdir=.
20789     if test -z "$ac_top_builddir"; then
20790        ac_top_srcdir=.
20791     else
20792        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20793     fi ;;
20794   [\\/]* | ?:[\\/]* )  # Absolute path.
20795     ac_srcdir=$srcdir$ac_dir_suffix;
20796     ac_top_srcdir=$srcdir ;;
20797   *) # Relative path.
20798     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20799     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20800 esac
20801
20802 # Do not use `cd foo && pwd` to compute absolute paths, because
20803 # the directories may not exist.
20804 case `pwd` in
20805 .) ac_abs_builddir="$ac_dir";;
20806 *)
20807   case "$ac_dir" in
20808   .) ac_abs_builddir=`pwd`;;
20809   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20810   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20811   esac;;
20812 esac
20813 case $ac_abs_builddir in
20814 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20815 *)
20816   case ${ac_top_builddir}. in
20817   .) ac_abs_top_builddir=$ac_abs_builddir;;
20818   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20819   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20820   esac;;
20821 esac
20822 case $ac_abs_builddir in
20823 .) ac_abs_srcdir=$ac_srcdir;;
20824 *)
20825   case $ac_srcdir in
20826   .) ac_abs_srcdir=$ac_abs_builddir;;
20827   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20828   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20829   esac;;
20830 esac
20831 case $ac_abs_builddir in
20832 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20833 *)
20834   case $ac_top_srcdir in
20835   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20836   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20837   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20838   esac;;
20839 esac
20840
20841
20842   case $INSTALL in
20843   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20844   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20845   esac
20846
20847   if test x"$ac_file" != x-; then
20848     { echo "$as_me:$LINENO: creating $ac_file" >&5
20849 echo "$as_me: creating $ac_file" >&6;}
20850     rm -f "$ac_file"
20851   fi
20852   # Let's still pretend it is `configure' which instantiates (i.e., don't
20853   # use $as_me), people would be surprised to read:
20854   #    /* config.h.  Generated by config.status.  */
20855   if test x"$ac_file" = x-; then
20856     configure_input=
20857   else
20858     configure_input="$ac_file.  "
20859   fi
20860   configure_input=$configure_input"Generated from `echo $ac_file_in |
20861                                      sed 's,.*/,,'` by configure."
20862
20863   # First look for the input files in the build tree, otherwise in the
20864   # src tree.
20865   ac_file_inputs=`IFS=:
20866     for f in $ac_file_in; do
20867       case $f in
20868       -) echo $tmp/stdin ;;
20869       [\\/$]*)
20870          # Absolute (can't be DOS-style, as IFS=:)
20871          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20872 echo "$as_me: error: cannot find input file: $f" >&2;}
20873    { (exit 1); exit 1; }; }
20874          echo "$f";;
20875       *) # Relative
20876          if test -f "$f"; then
20877            # Build tree
20878            echo "$f"
20879          elif test -f "$srcdir/$f"; then
20880            # Source tree
20881            echo "$srcdir/$f"
20882          else
20883            # /dev/null tree
20884            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20885 echo "$as_me: error: cannot find input file: $f" >&2;}
20886    { (exit 1); exit 1; }; }
20887          fi;;
20888       esac
20889     done` || { (exit 1); exit 1; }
20890 _ACEOF
20891 cat >>$CONFIG_STATUS <<_ACEOF
20892   sed "$ac_vpsub
20893 $extrasub
20894 _ACEOF
20895 cat >>$CONFIG_STATUS <<\_ACEOF
20896 :t
20897 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20898 s,@configure_input@,$configure_input,;t t
20899 s,@srcdir@,$ac_srcdir,;t t
20900 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20901 s,@top_srcdir@,$ac_top_srcdir,;t t
20902 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20903 s,@builddir@,$ac_builddir,;t t
20904 s,@abs_builddir@,$ac_abs_builddir,;t t
20905 s,@top_builddir@,$ac_top_builddir,;t t
20906 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20907 s,@INSTALL@,$ac_INSTALL,;t t
20908 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20909   rm -f $tmp/stdin
20910   if test x"$ac_file" != x-; then
20911     mv $tmp/out $ac_file
20912   else
20913     cat $tmp/out
20914     rm -f $tmp/out
20915   fi
20916
20917 done
20918 _ACEOF
20919 cat >>$CONFIG_STATUS <<\_ACEOF
20920
20921 #
20922 # CONFIG_HEADER section.
20923 #
20924
20925 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20926 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20927 #
20928 # ac_d sets the value in "#define NAME VALUE" lines.
20929 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
20930 ac_dB='[         ].*$,\1#\2'
20931 ac_dC=' '
20932 ac_dD=',;t'
20933 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20934 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20935 ac_uB='$,\1#\2define\3'
20936 ac_uC=' '
20937 ac_uD=',;t'
20938
20939 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20940   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20941   case $ac_file in
20942   - | *:- | *:-:* ) # input from stdin
20943         cat >$tmp/stdin
20944         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20945         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20946   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20947         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20948   * )   ac_file_in=$ac_file.in ;;
20949   esac
20950
20951   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20952 echo "$as_me: creating $ac_file" >&6;}
20953
20954   # First look for the input files in the build tree, otherwise in the
20955   # src tree.
20956   ac_file_inputs=`IFS=:
20957     for f in $ac_file_in; do
20958       case $f in
20959       -) echo $tmp/stdin ;;
20960       [\\/$]*)
20961          # Absolute (can't be DOS-style, as IFS=:)
20962          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20963 echo "$as_me: error: cannot find input file: $f" >&2;}
20964    { (exit 1); exit 1; }; }
20965          # Do quote $f, to prevent DOS paths from being IFS'd.
20966          echo "$f";;
20967       *) # Relative
20968          if test -f "$f"; then
20969            # Build tree
20970            echo "$f"
20971          elif test -f "$srcdir/$f"; then
20972            # Source tree
20973            echo "$srcdir/$f"
20974          else
20975            # /dev/null tree
20976            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20977 echo "$as_me: error: cannot find input file: $f" >&2;}
20978    { (exit 1); exit 1; }; }
20979          fi;;
20980       esac
20981     done` || { (exit 1); exit 1; }
20982   # Remove the trailing spaces.
20983   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
20984
20985 _ACEOF
20986
20987 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20988 # `conftest.undefs', that substitutes the proper values into
20989 # config.h.in to produce config.h.  The first handles `#define'
20990 # templates, and the second `#undef' templates.
20991 # And first: Protect against being on the right side of a sed subst in
20992 # config.status.  Protect against being in an unquoted here document
20993 # in config.status.
20994 rm -f conftest.defines conftest.undefs
20995 # Using a here document instead of a string reduces the quoting nightmare.
20996 # Putting comments in sed scripts is not portable.
20997 #
20998 # `end' is used to avoid that the second main sed command (meant for
20999 # 0-ary CPP macros) applies to n-ary macro definitions.
21000 # See the Autoconf documentation for `clear'.
21001 cat >confdef2sed.sed <<\_ACEOF
21002 s/[\\&,]/\\&/g
21003 s,[\\$`],\\&,g
21004 t clear
21005 : clear
21006 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21007 t end
21008 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21009 : end
21010 _ACEOF
21011 # If some macros were called several times there might be several times
21012 # the same #defines, which is useless.  Nevertheless, we may not want to
21013 # sort them, since we want the *last* AC-DEFINE to be honored.
21014 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21015 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21016 rm -f confdef2sed.sed
21017
21018 # This sed command replaces #undef with comments.  This is necessary, for
21019 # example, in the case of _POSIX_SOURCE, which is predefined and required
21020 # on some systems where configure will not decide to define it.
21021 cat >>conftest.undefs <<\_ACEOF
21022 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21023 _ACEOF
21024
21025 # Break up conftest.defines because some shells have a limit on the size
21026 # of here documents, and old seds have small limits too (100 cmds).
21027 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21028 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21029 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21030 echo '  :' >>$CONFIG_STATUS
21031 rm -f conftest.tail
21032 while grep . conftest.defines >/dev/null
21033 do
21034   # Write a limited-size here document to $tmp/defines.sed.
21035   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21036   # Speed up: don't consider the non `#define' lines.
21037   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
21038   # Work around the forget-to-reset-the-flag bug.
21039   echo 't clr' >>$CONFIG_STATUS
21040   echo ': clr' >>$CONFIG_STATUS
21041   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21042   echo 'CEOF
21043   sed -f $tmp/defines.sed $tmp/in >$tmp/out
21044   rm -f $tmp/in
21045   mv $tmp/out $tmp/in
21046 ' >>$CONFIG_STATUS
21047   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21048   rm -f conftest.defines
21049   mv conftest.tail conftest.defines
21050 done
21051 rm -f conftest.defines
21052 echo '  fi # grep' >>$CONFIG_STATUS
21053 echo >>$CONFIG_STATUS
21054
21055 # Break up conftest.undefs because some shells have a limit on the size
21056 # of here documents, and old seds have small limits too (100 cmds).
21057 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21058 rm -f conftest.tail
21059 while grep . conftest.undefs >/dev/null
21060 do
21061   # Write a limited-size here document to $tmp/undefs.sed.
21062   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21063   # Speed up: don't consider the non `#undef'
21064   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
21065   # Work around the forget-to-reset-the-flag bug.
21066   echo 't clr' >>$CONFIG_STATUS
21067   echo ': clr' >>$CONFIG_STATUS
21068   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21069   echo 'CEOF
21070   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21071   rm -f $tmp/in
21072   mv $tmp/out $tmp/in
21073 ' >>$CONFIG_STATUS
21074   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21075   rm -f conftest.undefs
21076   mv conftest.tail conftest.undefs
21077 done
21078 rm -f conftest.undefs
21079
21080 cat >>$CONFIG_STATUS <<\_ACEOF
21081   # Let's still pretend it is `configure' which instantiates (i.e., don't
21082   # use $as_me), people would be surprised to read:
21083   #    /* config.h.  Generated by config.status.  */
21084   if test x"$ac_file" = x-; then
21085     echo "/* Generated by configure.  */" >$tmp/config.h
21086   else
21087     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21088   fi
21089   cat $tmp/in >>$tmp/config.h
21090   rm -f $tmp/in
21091   if test x"$ac_file" != x-; then
21092     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21093       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21094 echo "$as_me: $ac_file is unchanged" >&6;}
21095     else
21096       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21097 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21098          X"$ac_file" : 'X\(//\)[^/]' \| \
21099          X"$ac_file" : 'X\(//\)$' \| \
21100          X"$ac_file" : 'X\(/\)' \| \
21101          .     : '\(.\)' 2>/dev/null ||
21102 echo X"$ac_file" |
21103     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21104           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21105           /^X\(\/\/\)$/{ s//\1/; q; }
21106           /^X\(\/\).*/{ s//\1/; q; }
21107           s/.*/./; q'`
21108       { if $as_mkdir_p; then
21109     mkdir -p "$ac_dir"
21110   else
21111     as_dir="$ac_dir"
21112     as_dirs=
21113     while test ! -d "$as_dir"; do
21114       as_dirs="$as_dir $as_dirs"
21115       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21116 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21117          X"$as_dir" : 'X\(//\)[^/]' \| \
21118          X"$as_dir" : 'X\(//\)$' \| \
21119          X"$as_dir" : 'X\(/\)' \| \
21120          .     : '\(.\)' 2>/dev/null ||
21121 echo X"$as_dir" |
21122     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21123           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21124           /^X\(\/\/\)$/{ s//\1/; q; }
21125           /^X\(\/\).*/{ s//\1/; q; }
21126           s/.*/./; q'`
21127     done
21128     test ! -n "$as_dirs" || mkdir $as_dirs
21129   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21130 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21131    { (exit 1); exit 1; }; }; }
21132
21133       rm -f $ac_file
21134       mv $tmp/config.h $ac_file
21135     fi
21136   else
21137     cat $tmp/config.h
21138     rm -f $tmp/config.h
21139   fi
21140 # Compute $ac_file's index in $config_headers.
21141 _am_stamp_count=1
21142 for _am_header in $config_headers :; do
21143   case $_am_header in
21144     $ac_file | $ac_file:* )
21145       break ;;
21146     * )
21147       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21148   esac
21149 done
21150 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21151 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21152          X$ac_file : 'X\(//\)[^/]' \| \
21153          X$ac_file : 'X\(//\)$' \| \
21154          X$ac_file : 'X\(/\)' \| \
21155          .     : '\(.\)' 2>/dev/null ||
21156 echo X$ac_file |
21157     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21158           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21159           /^X\(\/\/\)$/{ s//\1/; q; }
21160           /^X\(\/\).*/{ s//\1/; q; }
21161           s/.*/./; q'`/stamp-h$_am_stamp_count
21162 done
21163 _ACEOF
21164 cat >>$CONFIG_STATUS <<\_ACEOF
21165
21166 #
21167 # CONFIG_COMMANDS section.
21168 #
21169 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21170   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21171   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21172   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21173 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21174          X"$ac_dest" : 'X\(//\)[^/]' \| \
21175          X"$ac_dest" : 'X\(//\)$' \| \
21176          X"$ac_dest" : 'X\(/\)' \| \
21177          .     : '\(.\)' 2>/dev/null ||
21178 echo X"$ac_dest" |
21179     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21180           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21181           /^X\(\/\/\)$/{ s//\1/; q; }
21182           /^X\(\/\).*/{ s//\1/; q; }
21183           s/.*/./; q'`
21184   { if $as_mkdir_p; then
21185     mkdir -p "$ac_dir"
21186   else
21187     as_dir="$ac_dir"
21188     as_dirs=
21189     while test ! -d "$as_dir"; do
21190       as_dirs="$as_dir $as_dirs"
21191       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21192 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21193          X"$as_dir" : 'X\(//\)[^/]' \| \
21194          X"$as_dir" : 'X\(//\)$' \| \
21195          X"$as_dir" : 'X\(/\)' \| \
21196          .     : '\(.\)' 2>/dev/null ||
21197 echo X"$as_dir" |
21198     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21199           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21200           /^X\(\/\/\)$/{ s//\1/; q; }
21201           /^X\(\/\).*/{ s//\1/; q; }
21202           s/.*/./; q'`
21203     done
21204     test ! -n "$as_dirs" || mkdir $as_dirs
21205   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21206 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21207    { (exit 1); exit 1; }; }; }
21208
21209   ac_builddir=.
21210
21211 if test "$ac_dir" != .; then
21212   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21213   # A "../" for each directory in $ac_dir_suffix.
21214   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21215 else
21216   ac_dir_suffix= ac_top_builddir=
21217 fi
21218
21219 case $srcdir in
21220   .)  # No --srcdir option.  We are building in place.
21221     ac_srcdir=.
21222     if test -z "$ac_top_builddir"; then
21223        ac_top_srcdir=.
21224     else
21225        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21226     fi ;;
21227   [\\/]* | ?:[\\/]* )  # Absolute path.
21228     ac_srcdir=$srcdir$ac_dir_suffix;
21229     ac_top_srcdir=$srcdir ;;
21230   *) # Relative path.
21231     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21232     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21233 esac
21234
21235 # Do not use `cd foo && pwd` to compute absolute paths, because
21236 # the directories may not exist.
21237 case `pwd` in
21238 .) ac_abs_builddir="$ac_dir";;
21239 *)
21240   case "$ac_dir" in
21241   .) ac_abs_builddir=`pwd`;;
21242   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21243   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21244   esac;;
21245 esac
21246 case $ac_abs_builddir in
21247 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21248 *)
21249   case ${ac_top_builddir}. in
21250   .) ac_abs_top_builddir=$ac_abs_builddir;;
21251   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21252   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21253   esac;;
21254 esac
21255 case $ac_abs_builddir in
21256 .) ac_abs_srcdir=$ac_srcdir;;
21257 *)
21258   case $ac_srcdir in
21259   .) ac_abs_srcdir=$ac_abs_builddir;;
21260   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21261   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21262   esac;;
21263 esac
21264 case $ac_abs_builddir in
21265 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21266 *)
21267   case $ac_top_srcdir in
21268   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21269   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21270   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21271   esac;;
21272 esac
21273
21274
21275   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21276 echo "$as_me: executing $ac_dest commands" >&6;}
21277   case $ac_dest in
21278     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21279   # Strip MF so we end up with the name of the file.
21280   mf=`echo "$mf" | sed -e 's/:.*$//'`
21281   # Check whether this is an Automake generated Makefile or not.
21282   # We used to match only the files named `Makefile.in', but
21283   # some people rename them; so instead we look at the file content.
21284   # Grep'ing the first line is not enough: some people post-process
21285   # each Makefile.in and add a new line on top of each file to say so.
21286   # So let's grep whole file.
21287   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21288     dirpart=`(dirname "$mf") 2>/dev/null ||
21289 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21290          X"$mf" : 'X\(//\)[^/]' \| \
21291          X"$mf" : 'X\(//\)$' \| \
21292          X"$mf" : 'X\(/\)' \| \
21293          .     : '\(.\)' 2>/dev/null ||
21294 echo X"$mf" |
21295     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21296           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21297           /^X\(\/\/\)$/{ s//\1/; q; }
21298           /^X\(\/\).*/{ s//\1/; q; }
21299           s/.*/./; q'`
21300   else
21301     continue
21302   fi
21303   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
21304   # Extract the definition of DEP_FILES from the Makefile without
21305   # running `make'.
21306   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
21307   test -z "$DEPDIR" && continue
21308   # When using ansi2knr, U may be empty or an underscore; expand it
21309   U=`sed -n -e '/^U = / s///p' < "$mf"`
21310   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
21311   # We invoke sed twice because it is the simplest approach to
21312   # changing $(DEPDIR) to its actual value in the expansion.
21313   for file in `sed -n -e '
21314     /^DEP_FILES = .*\\\\$/ {
21315       s/^DEP_FILES = //
21316       :loop
21317         s/\\\\$//
21318         p
21319         n
21320         /\\\\$/ b loop
21321       p
21322     }
21323     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
21324        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21325     # Make sure the directory exists.
21326     test -f "$dirpart/$file" && continue
21327     fdir=`(dirname "$file") 2>/dev/null ||
21328 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21329          X"$file" : 'X\(//\)[^/]' \| \
21330          X"$file" : 'X\(//\)$' \| \
21331          X"$file" : 'X\(/\)' \| \
21332          .     : '\(.\)' 2>/dev/null ||
21333 echo X"$file" |
21334     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21335           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21336           /^X\(\/\/\)$/{ s//\1/; q; }
21337           /^X\(\/\).*/{ s//\1/; q; }
21338           s/.*/./; q'`
21339     { if $as_mkdir_p; then
21340     mkdir -p $dirpart/$fdir
21341   else
21342     as_dir=$dirpart/$fdir
21343     as_dirs=
21344     while test ! -d "$as_dir"; do
21345       as_dirs="$as_dir $as_dirs"
21346       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21348          X"$as_dir" : 'X\(//\)[^/]' \| \
21349          X"$as_dir" : 'X\(//\)$' \| \
21350          X"$as_dir" : 'X\(/\)' \| \
21351          .     : '\(.\)' 2>/dev/null ||
21352 echo X"$as_dir" |
21353     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21354           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21355           /^X\(\/\/\)$/{ s//\1/; q; }
21356           /^X\(\/\).*/{ s//\1/; q; }
21357           s/.*/./; q'`
21358     done
21359     test ! -n "$as_dirs" || mkdir $as_dirs
21360   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21361 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21362    { (exit 1); exit 1; }; }; }
21363
21364     # echo "creating $dirpart/$file"
21365     echo '# dummy' > "$dirpart/$file"
21366   done
21367 done
21368  ;;
21369   esac
21370 done
21371 _ACEOF
21372
21373 cat >>$CONFIG_STATUS <<\_ACEOF
21374
21375 { (exit 0); exit 0; }
21376 _ACEOF
21377 chmod +x $CONFIG_STATUS
21378 ac_clean_files=$ac_clean_files_save
21379
21380
21381 # configure is writing to config.log, and then calls config.status.
21382 # config.status does its own redirection, appending to config.log.
21383 # Unfortunately, on DOS this fails, as config.log is still kept open
21384 # by configure, so config.status won't be able to write to it; its
21385 # output is simply discarded.  So we exec the FD to /dev/null,
21386 # effectively closing config.log, so it can be properly (re)opened and
21387 # appended to by config.status.  When coming back to configure, we
21388 # need to make the FD available again.
21389 if test "$no_create" != yes; then
21390   ac_cs_success=:
21391   ac_config_status_args=
21392   test "$silent" = yes &&
21393     ac_config_status_args="$ac_config_status_args --quiet"
21394   exec 5>/dev/null
21395   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21396   exec 5>>config.log
21397   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21398   # would make configure fail if this is the last instruction.
21399   $ac_cs_success || { (exit 1); exit 1; }
21400 fi
21401