OSDN Git Service

Dynamic runtime library must be used with Open Watcom
[timidity41/timidity41.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for TiMidity++ current.
4 #
5 # Report bugs to <root@mput.dip.jp>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete.  It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='TiMidity++'
271 PACKAGE_TARNAME='TiMidity++'
272 PACKAGE_VERSION='current'
273 PACKAGE_STRING='TiMidity++ current'
274 PACKAGE_BUGREPORT='root@mput.dip.jp'
275
276 ac_unique_file="timidity/timidity.c"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 #  include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 #  include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 #  include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
313
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT EMACS lispdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP RANLIB ac_ct_RANLIB LN_S X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS NEEDGETOPT_TRUE NEEDGETOPT_FALSE ALSA_CFLAGS ALSA_LIBS ARTS_CONFIG ARTS_CFLAGS ARTS_LIBS ESD_CONFIG ESD_CFLAGS ESD_LIBS AO_CFLAGS AO_LIBS VORBIS_CFLAGS VORBIS_LIBS VORBISFILE_LIBS VORBISENC_LIBS OGG_CFLAGS OGG_LIBS LIBFLAC_CFLAGS LIBFLAC_LIBS LIBOGGFLAC_CFLAGS LIBOGGFLAC_LIBS NEEDDLOPEN_TRUE NEEDDLOPEN_FALSE ENABLE_NCURSES_TRUE ENABLE_NCURSES_FALSE n_so_libs ENABLE_SLANG_TRUE ENABLE_SLANG_FALSE s_so_libs ENABLE_MOTIF_TRUE ENABLE_MOTIF_FALSE m_so_libs ENABLE_TCLTK_TRUE ENABLE_TCLTK_FALSE k_so_libs ENABLE_DYNAMIC_TCLTK_TRUE ENABLE_DYNAMIC_TCLTK_FALSE ENABLE_EMACS_TRUE ENABLE_EMACS_FALSE e_so_libs ENABLE_VT100_TRUE ENABLE_VT100_FALSE T_so_libs ENABLE_XAW_TRUE ENABLE_XAW_FALSE a_so_libs ENABLE_DYNAMIC_XAW_TRUE ENABLE_DYNAMIC_XAW_FALSE ENABLE_XSKIN_TRUE ENABLE_XSKIN_FALSE i_so_libs ENABLE_GTK_TRUE ENABLE_GTK_FALSE 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_TRUE WATCOM_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++ current to adapt to many kinds of systems.
784
785 Usage: $0 [OPTION]... [VAR=VALUE]...
786
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE.  See below for descriptions of some of the useful variables.
789
790 Defaults for the options are specified in brackets.
791
792 Configuration:
793   -h, --help              display this help and exit
794       --help=short        display options specific to this package
795       --help=recursive    display the short help of all the included packages
796   -V, --version           display version information and exit
797   -q, --quiet, --silent   do not print \`checking...' messages
798       --cache-file=FILE   cache test results in FILE [disabled]
799   -C, --config-cache      alias for \`--cache-file=config.cache'
800   -n, --no-create         do not create output files
801       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
802
803 _ACEOF
804
805   cat <<_ACEOF
806 Installation directories:
807   --prefix=PREFIX         install architecture-independent files in PREFIX
808                           [$ac_default_prefix]
809   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
810                           [PREFIX]
811
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
816
817 For better control, use the options below.
818
819 Fine tuning of the installation directories:
820   --bindir=DIR           user executables [EPREFIX/bin]
821   --sbindir=DIR          system admin executables [EPREFIX/sbin]
822   --libexecdir=DIR       program executables [EPREFIX/libexec]
823   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
824   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
825   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
826   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
827   --libdir=DIR           object code libraries [EPREFIX/lib]
828   --includedir=DIR       C header files [PREFIX/include]
829   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
830   --infodir=DIR          info documentation [PREFIX/info]
831   --mandir=DIR           man documentation [PREFIX/man]
832 _ACEOF
833
834   cat <<\_ACEOF
835
836 Program names:
837   --program-prefix=PREFIX            prepend PREFIX to installed program names
838   --program-suffix=SUFFIX            append SUFFIX to installed program names
839   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
840
841 X features:
842   --x-includes=DIR    X include files are in DIR
843   --x-libraries=DIR   X library files are in DIR
844
845 System types:
846   --build=BUILD     configure for building on BUILD [guessed]
847   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
848   --target=TARGET   configure for building compilers for TARGET [HOST]
849 _ACEOF
850 fi
851
852 if test -n "$ac_init_help"; then
853   case $ac_init_help in
854      short | recursive ) echo "Configuration of TiMidity++ current:";;
855    esac
856   cat <<\_ACEOF
857
858 Optional Features:
859   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
860   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
861   --enable-maintainer-mode enable make rules and dependencies not useful
862                           (and sometimes confusing) to the casual installer
863   --enable-debug          Build a debugging version.
864   --disable-dependency-tracking Speeds up one-time builds
865   --enable-dependency-tracking  Do not reject slow dependency extractors
866   --enable-audio=mode_list Enable audio (Specify comma separated mode list):
867                               default:   Automatically select audio device.
868                               oss:       OSS /dev/dsp
869                               sun:       SunOS /dev/audio
870                               hpux:      HPUX /dev/audio
871                               irix:      IRIX audio library
872                               mme:       OSF/1 MME
873                               sb_dsp:    BSD/OS 2.0 /dev/sb_dsp
874                               w32:       Windows MMS
875                               darwin:    Darwin CoreAudio
876                               alsa:      ALSA pcm device
877                               alib:      HPUX network audio (Alib)
878                               nas:       NAS - Network Audio System
879                               arts:      aRts
880                               esd:       EsounD - Enlightened Sound Daemon
881                               portaudio: PortAudio
882                               jack:      JACK
883                               ao:        Libao
884                               vorbis:    Ogg Vorbis
885                               flac:      FLAC / OggFLAC
886                               speex:     Ogg Speex
887                               gogo:      MP3 GOGO (Only Windows is supported)
888   --disable-alsatest      Do not try to compile and run a test Alsa program
889   --disable-artstest       Do not try to compile and run a test ARTS program
890   --disable-esdtest       Do not try to compile and run a test ESD program
891   --disable-aotest       Do not try to compile and run a test ao program
892   --disable-oggtest       Do not try to compile and run a test Ogg program
893   --disable-vorbistest       Do not try to compile and run a test Vorbis program
894   --disable-libFLACtest       Do not try to compile and run a test libFLAC program
895   --disable-libOggFLACtest       Do not try to compile and run a test libOggFLAC program
896   --enable-interface=interface_list
897                           Comma separated interface list
898   --enable-dynamic        Enable dynamic link interface   (default is no)
899   --enable-dynamic=dynamic_list
900                           Comma separated dynamic interface list
901   --enable-ncurses        Enable ncurses interface        (default is no)
902   --enable-slang          Enable slang interface          (default is no)
903   --enable-motif          Enable motif interface          (default is no)
904   --enable-tcltk          Enable tcltk interface          (default is no)
905   --enable-emacs          Enable emacs interface          (default is no)
906   --enable-vt100          Enable VT100 interface          (default is no)
907   --enable-xaw            Enable athena interface         (default is no)
908   --enable-xskin          Enable X skin interface         (default is no)
909   --enable-gtk            Enable GTK+ interface           (default is no)
910   --disable-gtktest       do not try to compile and run a test GTK+ program
911   --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 current
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 current, 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='current'
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=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=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" != "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" != 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" != 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" != "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 for ac_func in \
10775   alarm \
10776   dup2 \
10777   floor \
10778   getcwd \
10779   getopt \
10780   gethostbyname \
10781   gettimeofday \
10782   getwd \
10783   isatty \
10784   memchr \
10785   memmove \
10786   memset \
10787   modf \
10788   munmap \
10789   popen \
10790   pow \
10791   select \
10792   signal \
10793   socket \
10794   sleep \
10795   vsnprintf \
10796   snprintf \
10797   sqrt \
10798   strchr \
10799   strdup \
10800   strstr \
10801   strerror \
10802   strcasecmp \
10803   strncasecmp \
10804   strrchr \
10805   strstr \
10806   strtol \
10807   usleep
10808 do
10809 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10810 echo "$as_me:$LINENO: checking for $ac_func" >&5
10811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10812 if eval "test \"\${$as_ac_var+set}\" = set"; then
10813   echo $ECHO_N "(cached) $ECHO_C" >&6
10814 else
10815   cat >conftest.$ac_ext <<_ACEOF
10816 /* confdefs.h.  */
10817 _ACEOF
10818 cat confdefs.h >>conftest.$ac_ext
10819 cat >>conftest.$ac_ext <<_ACEOF
10820 /* end confdefs.h.  */
10821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10822    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10823 #define $ac_func innocuous_$ac_func
10824
10825 /* System header to define __stub macros and hopefully few prototypes,
10826     which can conflict with char $ac_func (); below.
10827     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10828     <limits.h> exists even on freestanding compilers.  */
10829
10830 #ifdef __STDC__
10831 # include <limits.h>
10832 #else
10833 # include <assert.h>
10834 #endif
10835
10836 #undef $ac_func
10837
10838 /* Override any gcc2 internal prototype to avoid an error.  */
10839 #ifdef __cplusplus
10840 extern "C"
10841 {
10842 #endif
10843 /* We use char because int might match the return type of a gcc2
10844    builtin and then its argument prototype would still apply.  */
10845 char $ac_func ();
10846 /* The GNU C library defines this for functions which it implements
10847     to always fail with ENOSYS.  Some functions are actually named
10848     something starting with __ and the normal name is an alias.  */
10849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10850 choke me
10851 #else
10852 char (*f) () = $ac_func;
10853 #endif
10854 #ifdef __cplusplus
10855 }
10856 #endif
10857
10858 int
10859 main ()
10860 {
10861 return f != $ac_func;
10862   ;
10863   return 0;
10864 }
10865 _ACEOF
10866 rm -f conftest.$ac_objext conftest$ac_exeext
10867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10868   (eval $ac_link) 2>conftest.er1
10869   ac_status=$?
10870   grep -v '^ *+' conftest.er1 >conftest.err
10871   rm -f conftest.er1
10872   cat conftest.err >&5
10873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874   (exit $ac_status); } &&
10875          { ac_try='test -z "$ac_c_werror_flag"
10876                          || test ! -s conftest.err'
10877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10878   (eval $ac_try) 2>&5
10879   ac_status=$?
10880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881   (exit $ac_status); }; } &&
10882          { ac_try='test -s conftest$ac_exeext'
10883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10884   (eval $ac_try) 2>&5
10885   ac_status=$?
10886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887   (exit $ac_status); }; }; then
10888   eval "$as_ac_var=yes"
10889 else
10890   echo "$as_me: failed program was:" >&5
10891 sed 's/^/| /' conftest.$ac_ext >&5
10892
10893 eval "$as_ac_var=no"
10894 fi
10895 rm -f conftest.err conftest.$ac_objext \
10896       conftest$ac_exeext conftest.$ac_ext
10897 fi
10898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10899 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10900 if test `eval echo '${'$as_ac_var'}'` = yes; then
10901   cat >>confdefs.h <<_ACEOF
10902 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10903 _ACEOF
10904
10905 fi
10906 done
10907
10908 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM" = xyes; then
10909   cat >>confdefs.h <<\_ACEOF
10910 #define RETSIGTYPE int
10911 _ACEOF
10912
10913   cat >>confdefs.h <<\_ACEOF
10914 #define HAVE_GETCWD int
10915 _ACEOF
10916
10917   cat >>confdefs.h <<\_ACEOF
10918 #define HAVE_GETHOSTBYNAME 1
10919 _ACEOF
10920
10921   cat >>confdefs.h <<\_ACEOF
10922 #define HAVE_POPEN 1
10923 _ACEOF
10924
10925
10926 cat >>confdefs.h <<\_ACEOF
10927 #define popen _popen
10928 _ACEOF
10929
10930
10931 cat >>confdefs.h <<\_ACEOF
10932 #define pclose _pclose
10933 _ACEOF
10934
10935   cat >>confdefs.h <<\_ACEOF
10936 #define HAVE_SELECT 1
10937 _ACEOF
10938
10939   cat >>confdefs.h <<\_ACEOF
10940 #define HAVE_SNPRINTF 1
10941 _ACEOF
10942
10943   cat >>confdefs.h <<\_ACEOF
10944 #define HAVE_STRDUP 1
10945 _ACEOF
10946
10947   cat >>confdefs.h <<\_ACEOF
10948 #define HAVE_STRERROR 1
10949 _ACEOF
10950
10951   cat >>confdefs.h <<\_ACEOF
10952 #define HAVE_STRNCASECMP 1
10953 _ACEOF
10954
10955   cat >>confdefs.h <<\_ACEOF
10956 #define HAVE_STRSTR 1
10957 _ACEOF
10958
10959
10960 cat >>confdefs.h <<\_ACEOF
10961 #define snprintf _snprintf
10962 _ACEOF
10963
10964   cat >>confdefs.h <<\_ACEOF
10965 #define HAVE_SOCKET 1
10966 _ACEOF
10967
10968   cat >>confdefs.h <<\_ACEOF
10969 #define HAVE_VSNPRINTF 1
10970 _ACEOF
10971
10972
10973 cat >>confdefs.h <<\_ACEOF
10974 #define vsnprintf _vsnprintf
10975 _ACEOF
10976
10977
10978 cat >>confdefs.h <<\_ACEOF
10979 #define TIMID_VERSION $(PACKAGE_VERSION)
10980 _ACEOF
10981
10982
10983 cat >>confdefs.h <<\_ACEOF
10984 #define DEFAULT_PATH ".\\"
10985 _ACEOF
10986
10987 fi
10988
10989 echo "$as_me:$LINENO: checking for getopt_long" >&5
10990 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
10991 if test "${ac_cv_func_getopt_long+set}" = set; then
10992   echo $ECHO_N "(cached) $ECHO_C" >&6
10993 else
10994   cat >conftest.$ac_ext <<_ACEOF
10995 /* confdefs.h.  */
10996 _ACEOF
10997 cat confdefs.h >>conftest.$ac_ext
10998 cat >>conftest.$ac_ext <<_ACEOF
10999 /* end confdefs.h.  */
11000 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
11001    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11002 #define getopt_long innocuous_getopt_long
11003
11004 /* System header to define __stub macros and hopefully few prototypes,
11005     which can conflict with char getopt_long (); below.
11006     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11007     <limits.h> exists even on freestanding compilers.  */
11008
11009 #ifdef __STDC__
11010 # include <limits.h>
11011 #else
11012 # include <assert.h>
11013 #endif
11014
11015 #undef getopt_long
11016
11017 /* Override any gcc2 internal prototype to avoid an error.  */
11018 #ifdef __cplusplus
11019 extern "C"
11020 {
11021 #endif
11022 /* We use char because int might match the return type of a gcc2
11023    builtin and then its argument prototype would still apply.  */
11024 char getopt_long ();
11025 /* The GNU C library defines this for functions which it implements
11026     to always fail with ENOSYS.  Some functions are actually named
11027     something starting with __ and the normal name is an alias.  */
11028 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
11029 choke me
11030 #else
11031 char (*f) () = getopt_long;
11032 #endif
11033 #ifdef __cplusplus
11034 }
11035 #endif
11036
11037 int
11038 main ()
11039 {
11040 return f != getopt_long;
11041   ;
11042   return 0;
11043 }
11044 _ACEOF
11045 rm -f conftest.$ac_objext conftest$ac_exeext
11046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11047   (eval $ac_link) 2>conftest.er1
11048   ac_status=$?
11049   grep -v '^ *+' conftest.er1 >conftest.err
11050   rm -f conftest.er1
11051   cat conftest.err >&5
11052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053   (exit $ac_status); } &&
11054          { ac_try='test -z "$ac_c_werror_flag"
11055                          || test ! -s conftest.err'
11056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11057   (eval $ac_try) 2>&5
11058   ac_status=$?
11059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060   (exit $ac_status); }; } &&
11061          { ac_try='test -s conftest$ac_exeext'
11062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11063   (eval $ac_try) 2>&5
11064   ac_status=$?
11065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066   (exit $ac_status); }; }; then
11067   ac_cv_func_getopt_long=yes
11068 else
11069   echo "$as_me: failed program was:" >&5
11070 sed 's/^/| /' conftest.$ac_ext >&5
11071
11072 ac_cv_func_getopt_long=no
11073 fi
11074 rm -f conftest.err conftest.$ac_objext \
11075       conftest$ac_exeext conftest.$ac_ext
11076 fi
11077 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
11078 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
11079 if test $ac_cv_func_getopt_long = yes; then
11080
11081 cat >>confdefs.h <<\_ACEOF
11082 #define HAVE_GETOPT_LONG 1
11083 _ACEOF
11084
11085          tm_cv_needgetopt="no"
11086 else
11087   tm_cv_needgetopt="yes"
11088 fi
11089
11090
11091
11092 if test "x$tm_cv_needgetopt" = "xyes"; then
11093   NEEDGETOPT_TRUE=
11094   NEEDGETOPT_FALSE='#'
11095 else
11096   NEEDGETOPT_TRUE='#'
11097   NEEDGETOPT_FALSE=
11098 fi
11099
11100
11101 # Checks on cygnus and MYSYS
11102 if test "x$CYGNUS" = xyes || test "x$MSYS" = xyes; then
11103   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
11104   *yes*)
11105     echo "$as_me:$LINENO: checking for opendir" >&5
11106 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
11107 if test "${ac_cv_func_opendir+set}" = set; then
11108   echo $ECHO_N "(cached) $ECHO_C" >&6
11109 else
11110   cat >conftest.$ac_ext <<_ACEOF
11111 /* confdefs.h.  */
11112 _ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h.  */
11116 /* Define opendir to an innocuous variant, in case <limits.h> declares opendir.
11117    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11118 #define opendir innocuous_opendir
11119
11120 /* System header to define __stub macros and hopefully few prototypes,
11121     which can conflict with char opendir (); below.
11122     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11123     <limits.h> exists even on freestanding compilers.  */
11124
11125 #ifdef __STDC__
11126 # include <limits.h>
11127 #else
11128 # include <assert.h>
11129 #endif
11130
11131 #undef opendir
11132
11133 /* Override any gcc2 internal prototype to avoid an error.  */
11134 #ifdef __cplusplus
11135 extern "C"
11136 {
11137 #endif
11138 /* We use char because int might match the return type of a gcc2
11139    builtin and then its argument prototype would still apply.  */
11140 char opendir ();
11141 /* The GNU C library defines this for functions which it implements
11142     to always fail with ENOSYS.  Some functions are actually named
11143     something starting with __ and the normal name is an alias.  */
11144 #if defined (__stub_opendir) || defined (__stub___opendir)
11145 choke me
11146 #else
11147 char (*f) () = opendir;
11148 #endif
11149 #ifdef __cplusplus
11150 }
11151 #endif
11152
11153 int
11154 main ()
11155 {
11156 return f != opendir;
11157   ;
11158   return 0;
11159 }
11160 _ACEOF
11161 rm -f conftest.$ac_objext conftest$ac_exeext
11162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11163   (eval $ac_link) 2>conftest.er1
11164   ac_status=$?
11165   grep -v '^ *+' conftest.er1 >conftest.err
11166   rm -f conftest.er1
11167   cat conftest.err >&5
11168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169   (exit $ac_status); } &&
11170          { ac_try='test -z "$ac_c_werror_flag"
11171                          || test ! -s conftest.err'
11172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11173   (eval $ac_try) 2>&5
11174   ac_status=$?
11175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176   (exit $ac_status); }; } &&
11177          { ac_try='test -s conftest$ac_exeext'
11178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11179   (eval $ac_try) 2>&5
11180   ac_status=$?
11181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182   (exit $ac_status); }; }; then
11183   ac_cv_func_opendir=yes
11184 else
11185   echo "$as_me: failed program was:" >&5
11186 sed 's/^/| /' conftest.$ac_ext >&5
11187
11188 ac_cv_func_opendir=no
11189 fi
11190 rm -f conftest.err conftest.$ac_objext \
11191       conftest$ac_exeext conftest.$ac_ext
11192 fi
11193 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
11194 echo "${ECHO_T}$ac_cv_func_opendir" >&6
11195 if test $ac_cv_func_opendir = yes; then
11196   :
11197 else
11198    EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11199     W32READDIR=yes
11200 fi
11201
11202     ;;
11203   *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11204     W32READDIR=yes
11205     ;;
11206   esac
11207   if test "x$enable_network" = "xyes"; then
11208         if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM" = xyes; then
11209       EXTRALIBS="$EXTRALIBS  wsock32.lib"
11210       EXTRADEFS="$EXTRADEFS -DWINSOCK"
11211     else
11212       echo "$as_me:$LINENO: checking for socket" >&5
11213 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11214 if test "${ac_cv_func_socket+set}" = set; then
11215   echo $ECHO_N "(cached) $ECHO_C" >&6
11216 else
11217   cat >conftest.$ac_ext <<_ACEOF
11218 /* confdefs.h.  */
11219 _ACEOF
11220 cat confdefs.h >>conftest.$ac_ext
11221 cat >>conftest.$ac_ext <<_ACEOF
11222 /* end confdefs.h.  */
11223 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
11224    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11225 #define socket innocuous_socket
11226
11227 /* System header to define __stub macros and hopefully few prototypes,
11228     which can conflict with char socket (); below.
11229     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11230     <limits.h> exists even on freestanding compilers.  */
11231
11232 #ifdef __STDC__
11233 # include <limits.h>
11234 #else
11235 # include <assert.h>
11236 #endif
11237
11238 #undef socket
11239
11240 /* Override any gcc2 internal prototype to avoid an error.  */
11241 #ifdef __cplusplus
11242 extern "C"
11243 {
11244 #endif
11245 /* We use char because int might match the return type of a gcc2
11246    builtin and then its argument prototype would still apply.  */
11247 char socket ();
11248 /* The GNU C library defines this for functions which it implements
11249     to always fail with ENOSYS.  Some functions are actually named
11250     something starting with __ and the normal name is an alias.  */
11251 #if defined (__stub_socket) || defined (__stub___socket)
11252 choke me
11253 #else
11254 char (*f) () = socket;
11255 #endif
11256 #ifdef __cplusplus
11257 }
11258 #endif
11259
11260 int
11261 main ()
11262 {
11263 return f != socket;
11264   ;
11265   return 0;
11266 }
11267 _ACEOF
11268 rm -f conftest.$ac_objext conftest$ac_exeext
11269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11270   (eval $ac_link) 2>conftest.er1
11271   ac_status=$?
11272   grep -v '^ *+' conftest.er1 >conftest.err
11273   rm -f conftest.er1
11274   cat conftest.err >&5
11275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276   (exit $ac_status); } &&
11277          { ac_try='test -z "$ac_c_werror_flag"
11278                          || test ! -s conftest.err'
11279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11280   (eval $ac_try) 2>&5
11281   ac_status=$?
11282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283   (exit $ac_status); }; } &&
11284          { ac_try='test -s conftest$ac_exeext'
11285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286   (eval $ac_try) 2>&5
11287   ac_status=$?
11288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289   (exit $ac_status); }; }; then
11290   ac_cv_func_socket=yes
11291 else
11292   echo "$as_me: failed program was:" >&5
11293 sed 's/^/| /' conftest.$ac_ext >&5
11294
11295 ac_cv_func_socket=no
11296 fi
11297 rm -f conftest.err conftest.$ac_objext \
11298       conftest$ac_exeext conftest.$ac_ext
11299 fi
11300 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
11301 echo "${ECHO_T}$ac_cv_func_socket" >&6
11302 if test $ac_cv_func_socket = yes; then
11303   :
11304 else
11305   echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
11306 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6
11307 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
11308 if eval "test \"\${wapi_cv_lib_$ac_lib_var+set}\" = set"; then
11309   echo $ECHO_N "(cached) $ECHO_C" >&6
11310 else
11311   ac_save_LIBS="$LIBS"
11312 LIBS="-lwsock32  $LIBS"
11313 cat >conftest.$ac_ext <<_ACEOF
11314 /* confdefs.h.  */
11315 _ACEOF
11316 cat confdefs.h >>conftest.$ac_ext
11317 cat >>conftest.$ac_ext <<_ACEOF
11318 /* end confdefs.h.  */
11319 #include <windows.h>
11320 #include <winsock.h>
11321
11322 int
11323 main ()
11324 {
11325 WSAStartup(0,0);
11326   ;
11327   return 0;
11328 }
11329 _ACEOF
11330 rm -f conftest.$ac_objext conftest$ac_exeext
11331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11332   (eval $ac_link) 2>conftest.er1
11333   ac_status=$?
11334   grep -v '^ *+' conftest.er1 >conftest.err
11335   rm -f conftest.er1
11336   cat conftest.err >&5
11337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338   (exit $ac_status); } &&
11339          { ac_try='test -z "$ac_c_werror_flag"
11340                          || test ! -s conftest.err'
11341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342   (eval $ac_try) 2>&5
11343   ac_status=$?
11344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345   (exit $ac_status); }; } &&
11346          { ac_try='test -s conftest$ac_exeext'
11347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11348   (eval $ac_try) 2>&5
11349   ac_status=$?
11350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351   (exit $ac_status); }; }; then
11352   eval "wapi_cv_lib_$ac_lib_var=yes"
11353 else
11354   echo "$as_me: failed program was:" >&5
11355 sed 's/^/| /' conftest.$ac_ext >&5
11356
11357 eval "wapi_cv_lib_$ac_lib_var=no"
11358 fi
11359 rm -f conftest.err conftest.$ac_objext \
11360       conftest$ac_exeext conftest.$ac_ext
11361 LIBS="$ac_save_LIBS"
11362
11363 fi
11364 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
11365   echo "$as_me:$LINENO: result: yes" >&5
11366 echo "${ECHO_T}yes" >&6
11367    EXTRALIBS="$EXTRALIBS -lwsock32"
11368           EXTRADEFS="$EXTRADEFS -DWINSOCK"
11369
11370 else
11371   echo "$as_me:$LINENO: result: no" >&5
11372 echo "${ECHO_T}no" >&6
11373 fi
11374
11375
11376 fi
11377
11378     fi
11379   fi
11380 fi
11381
11382 # Checks on extra paths
11383
11384
11385 # Check whether --with-tcl-includes or --without-tcl-includes was given.
11386 if test "${with_tcl_includes+set}" = set; then
11387   withval="$with_tcl_includes"
11388    if test ! -d $withval; then
11389       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11390 echo "$as_me: WARNING: $withval is not found." >&2;}
11391     fi
11392     tcl_include_dir="-I$withval"
11393
11394 fi;
11395
11396 # Check whether --with-tcl-libs or --without-tcl-libs was given.
11397 if test "${with_tcl_libs+set}" = set; then
11398   withval="$with_tcl_libs"
11399    if test ! -d $withval; then
11400       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11401 echo "$as_me: WARNING: $withval is not found." >&2;}
11402     fi
11403     tcl_libdir="-L$withval"
11404 fi;
11405
11406 # Check whether --with-tk-includes or --without-tk-includes was given.
11407 if test "${with_tk_includes+set}" = set; then
11408   withval="$with_tk_includes"
11409    if test ! -d $withval; then
11410       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11411 echo "$as_me: WARNING: $withval is not found." >&2;}
11412     fi
11413     tk_includes="-I$withval"
11414 fi;
11415
11416 # Check whether --with-tk-libs or --without-tk-libs was given.
11417 if test "${with_tk_libs+set}" = set; then
11418   withval="$with_tk_libs"
11419    if test ! -d $withval; then
11420       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11421 echo "$as_me: WARNING: $withval is not found." >&2;}
11422     fi
11423     tk_libdir="-L$withval"
11424 fi;
11425
11426
11427 # Check whether --with-offix-includes or --without-offix-includes was given.
11428 if test "${with_offix_includes+set}" = set; then
11429   withval="$with_offix_includes"
11430    if test ! -d $withval; then
11431       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11432 echo "$as_me: WARNING: $withval is not found." >&2;}
11433     fi
11434     offix_include_dir="-I$withval"
11435 fi;
11436
11437 # Check whether --with-offix-libs or --without-offix-libs was given.
11438 if test "${with_offix_libs+set}" = set; then
11439   withval="$with_offix_libs"
11440    if test ! -d $withval; then
11441       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11442 echo "$as_me: WARNING: $withval is not found." >&2;}
11443     fi
11444     offix_lib_dir="-L$withval"
11445 fi;
11446
11447
11448 #
11449 # audio section
11450 #
11451
11452 audio_targets='default oss alsa sun hpux irix mme sb_dsp w32 alib nas arts esd vorbis flac gogo portaudio jack ao'
11453
11454
11455 # Check whether --with-nas-library or --without-nas-library was given.
11456 if test "${with_nas_library+set}" = set; then
11457   withval="$with_nas_library"
11458
11459 fi;
11460
11461 # Check whether --with-nas-includes or --without-nas-includes was given.
11462 if test "${with_nas_includes+set}" = set; then
11463   withval="$with_nas_includes"
11464
11465 fi;
11466
11467
11468 # Check whether --enable-audio or --disable-audio was given.
11469 if test "${enable_audio+set}" = set; then
11470   enableval="$enable_audio"
11471    enable_audio=$enableval
11472     have_audio_opt=yes
11473 else
11474    enable_audio=yes
11475     have_audio_opt=no
11476 fi;
11477
11478 test "x$enable_audio" = xyes && enable_audio=default
11479
11480 if test "x$enable_audio" != xno; then
11481   for i in `echo $enable_audio | sed 's/,/ /g'`; do
11482     eval "au_enable_$i=yes"
11483   done
11484 fi
11485
11486 DEFAULT_PLAYMODE=
11487
11488 # Check whether --with-default-output or --without-default-output was given.
11489 if test "${with_default_output+set}" = set; then
11490   withval="$with_default_output"
11491    if test "$enable_audio" != no; then
11492     DEFAULT_PLAYMODE=$withval
11493     eval "au_enable_$DEFAULT_PLAYMODE=yes"
11494   else
11495     { echo "$as_me:$LINENO: WARNING: --with-default-output=$withval: audio is not enabled" >&5
11496 echo "$as_me: WARNING: --with-default-output=$withval: audio is not enabled" >&2;}
11497   fi
11498 fi;
11499
11500
11501 if test "x$au_enable_default" = xyes; then
11502   case "$target" in
11503   *-*-linux*|*-*-freebsd*)
11504     au_enable_oss=yes
11505     ;;
11506   *-*-bsdi2.0)
11507     au_enable_sb_dsp=yes
11508     ;;
11509   *-*-bsdi2.1|*-*-bsdi3.?|*-*-bsdi4.?)
11510     au_enable_oss=yes
11511     ;;
11512   *-*-hpux*)
11513     au_enable_hpux=yes
11514     ;;
11515   *-dec-*)
11516     au_enable_mme=yes
11517     ;;
11518   *irix*)
11519     au_enable_irix=yes
11520     ;;
11521   *-*-sunos4*)
11522     au_enable_sun=yes
11523     ;;
11524   *-*-solaris*)
11525     au_enable_sun=yes
11526     ;;
11527   *-*-netbsd*)
11528     au_enable_sun=yes
11529     ;;
11530   *-*-cygwin*)
11531     au_enable_w32=yes
11532     ;;
11533   *-*-mingw*)
11534     au_enable_w32=yes
11535     ;;
11536   *-*-darwin*)
11537     au_enable_darwin=yes
11538     ;;
11539   *)
11540     { echo "$as_me:$LINENO: WARNING: No --enable-audio=default audio for $target" >&5
11541 echo "$as_me: WARNING: No --enable-audio=default audio for $target" >&2;}
11542     ;;
11543   esac
11544 fi
11545
11546
11547 # Each audio mode's configurations
11548 echo "$as_me:$LINENO: checking enable_audio=oss" >&5
11549 echo $ECHO_N "checking enable_audio=oss... $ECHO_C" >&6
11550 if test "x$au_enable_oss" = xyes; then
11551   EXTRADEFS="$EXTRADEFS -DAU_OSS"
11552   SYSEXTRAS="$SYSEXTRAS oss_a.c"
11553   if test "x$ac_cv_header_sys_soundcard_h" = xyes; then
11554     echo "$as_me:$LINENO: result: yes - <sys/soundcard.h>" >&5
11555 echo "${ECHO_T}yes - <sys/soundcard.h>" >&6
11556   else
11557     case "$target" in
11558       *linux*|*freebsd*)
11559                 echo "$as_me:$LINENO: result: yes" >&5
11560 echo "${ECHO_T}yes" >&6
11561         ;;
11562       *)
11563         if test "x$ac_cv_header_soundcard_h" = xyes; then
11564           echo "$as_me:$LINENO: result: yes - <soundcard.h>" >&5
11565 echo "${ECHO_T}yes - <soundcard.h>" >&6
11566         else
11567           { echo "$as_me:$LINENO: WARNING: <sys/soundcard.h> is not found" >&5
11568 echo "$as_me: WARNING: <sys/soundcard.h> is not found" >&2;}
11569         fi
11570         ;;
11571     esac
11572   fi
11573
11574 echo "$as_me:$LINENO: checking for open in -lossaudio" >&5
11575 echo $ECHO_N "checking for open in -lossaudio... $ECHO_C" >&6
11576 if test "${ac_cv_lib_ossaudio_open+set}" = set; then
11577   echo $ECHO_N "(cached) $ECHO_C" >&6
11578 else
11579   ac_check_lib_save_LIBS=$LIBS
11580 LIBS="-lossaudio  $LIBS"
11581 cat >conftest.$ac_ext <<_ACEOF
11582 /* confdefs.h.  */
11583 _ACEOF
11584 cat confdefs.h >>conftest.$ac_ext
11585 cat >>conftest.$ac_ext <<_ACEOF
11586 /* end confdefs.h.  */
11587
11588 /* Override any gcc2 internal prototype to avoid an error.  */
11589 #ifdef __cplusplus
11590 extern "C"
11591 #endif
11592 /* We use char because int might match the return type of a gcc2
11593    builtin and then its argument prototype would still apply.  */
11594 char open ();
11595 int
11596 main ()
11597 {
11598 open ();
11599   ;
11600   return 0;
11601 }
11602 _ACEOF
11603 rm -f conftest.$ac_objext conftest$ac_exeext
11604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11605   (eval $ac_link) 2>conftest.er1
11606   ac_status=$?
11607   grep -v '^ *+' conftest.er1 >conftest.err
11608   rm -f conftest.er1
11609   cat conftest.err >&5
11610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611   (exit $ac_status); } &&
11612          { ac_try='test -z "$ac_c_werror_flag"
11613                          || test ! -s conftest.err'
11614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615   (eval $ac_try) 2>&5
11616   ac_status=$?
11617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618   (exit $ac_status); }; } &&
11619          { ac_try='test -s conftest$ac_exeext'
11620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11621   (eval $ac_try) 2>&5
11622   ac_status=$?
11623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624   (exit $ac_status); }; }; then
11625   ac_cv_lib_ossaudio_open=yes
11626 else
11627   echo "$as_me: failed program was:" >&5
11628 sed 's/^/| /' conftest.$ac_ext >&5
11629
11630 ac_cv_lib_ossaudio_open=no
11631 fi
11632 rm -f conftest.err conftest.$ac_objext \
11633       conftest$ac_exeext conftest.$ac_ext
11634 LIBS=$ac_check_lib_save_LIBS
11635 fi
11636 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_open" >&5
11637 echo "${ECHO_T}$ac_cv_lib_ossaudio_open" >&6
11638 if test $ac_cv_lib_ossaudio_open = yes; then
11639   cat >>confdefs.h <<_ACEOF
11640 #define HAVE_LIBOSSAUDIO 1
11641 _ACEOF
11642
11643   LIBS="-lossaudio $LIBS"
11644
11645 fi
11646
11647
11648     case "$target" in
11649     *openbsd*)
11650       if test ! -e "/dev/dsp"; then
11651         oss_device=/dev/audio
11652       fi
11653       ;;
11654   esac
11655 else
11656   echo "$as_me:$LINENO: result: no" >&5
11657 echo "${ECHO_T}no" >&6
11658 fi
11659
11660 echo "$as_me:$LINENO: checking enable_audio=sun" >&5
11661 echo $ECHO_N "checking enable_audio=sun... $ECHO_C" >&6
11662 if test "x$au_enable_sun" = xyes; then
11663   case "$target" in
11664     *-*-sunos4*)
11665       if test -f /usr/demo/SOUND/libaudio.a; then
11666         EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/libaudio.a"
11667         echo "$as_me:$LINENO: result: yes" >&5
11668 echo "${ECHO_T}yes" >&6
11669       else
11670         echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11671 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11672       fi
11673       ;;
11674     *-*-solaris*)
11675       if test -f /usr/demo/SOUND/lib/libaudio.a; then
11676         EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/lib/libaudio.a"
11677         echo "$as_me:$LINENO: result: yes" >&5
11678 echo "${ECHO_T}yes" >&6
11679       else
11680         echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
11681 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6
11682       fi
11683       ;;
11684     *)   echo "$as_me:$LINENO: result: yes" >&5
11685 echo "${ECHO_T}yes" >&6
11686       ;;
11687   esac
11688   EXTRADEFS="$EXTRADEFS -DAU_SUN"
11689   SYSEXTRAS="$SYSEXTRAS sun_a.c"
11690 else
11691   echo "$as_me:$LINENO: result: no" >&5
11692 echo "${ECHO_T}no" >&6
11693 fi
11694
11695 echo "$as_me:$LINENO: checking enable_audio=hpux" >&5
11696 echo $ECHO_N "checking enable_audio=hpux... $ECHO_C" >&6
11697 if test "x$au_enable_hpux" = xyes; then
11698   case "$target" in
11699     *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
11700 echo "${ECHO_T}yes" >&6 ;;
11701     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11702 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11703   esac
11704   EXTRADEFS="$EXTRADEFS -DAU_HPUX_AUDIO"
11705   SYSEXTRAS="$SYSEXTRAS hpux_d_a.c"
11706 else
11707   echo "$as_me:$LINENO: result: no" >&5
11708 echo "${ECHO_T}no" >&6
11709 fi
11710
11711 echo "$as_me:$LINENO: checking enable_audio=irix" >&5
11712 echo $ECHO_N "checking enable_audio=irix... $ECHO_C" >&6
11713 if test "x$au_enable_irix" = xyes; then
11714   case "$target" in
11715     *-sgi-irix5*|*-sgi-irix6.2)
11716       EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_OLDAL"
11717       echo "$as_me:$LINENO: result: yes" >&5
11718 echo "${ECHO_T}yes" >&6
11719       ;;
11720     *-sgi-irix6*)
11721       EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_NEWAL"
11722       echo "$as_me:$LINENO: result: yes" >&5
11723 echo "${ECHO_T}yes" >&6
11724       ;;
11725     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11726 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11727   esac
11728   SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_al.c"
11729   EXTRALIBS="$EXTRASLIBS -laudio"
11730 else
11731   echo "$as_me:$LINENO: result: no" >&5
11732 echo "${ECHO_T}no" >&6
11733 fi
11734
11735 echo "$as_me:$LINENO: checking enable_audio=mme" >&5
11736 echo $ECHO_N "checking enable_audio=mme... $ECHO_C" >&6
11737 if test "x$au_enable_mme" = xyes; then
11738   case "$target" in
11739     *-dec-*) echo "$as_me:$LINENO: result: yes" >&5
11740 echo "${ECHO_T}yes" >&6 ;;
11741     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11742 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11743   esac
11744   EXTRADEFS="$EXTRADEFS -DAU_DEC -DAU_AUDRIV"
11745   SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_mme.c"
11746   CPPFLAGS="$CPPFLAGS -I/usr/opt/MME210/include"
11747   EXTRALIBS="$EXTRALIBS /usr/opt/MME220/lib/libmme.a"
11748 else
11749   echo "$as_me:$LINENO: result: no" >&5
11750 echo "${ECHO_T}no" >&6
11751 fi
11752
11753 echo "$as_me:$LINENO: checking enable_audio=sb_dsp" >&5
11754 echo $ECHO_N "checking enable_audio=sb_dsp... $ECHO_C" >&6
11755 if test "x$au_enable_sb_dsp" = xyes; then
11756   case "$target" in
11757     *-*-bsdi2.0) echo "$as_me:$LINENO: result: yes" >&5
11758 echo "${ECHO_T}yes" >&6 ;;
11759     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11760 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
11761   esac
11762   EXTRADEFS="$EXTRADEFS -DAU_BSDI -DDEFAULT_RATE=22500"
11763   SYSEXTRAS="$SYSEXTRAS bsd20_a.c"
11764 else
11765   echo "$as_me:$LINENO: result: no" >&5
11766 echo "${ECHO_T}no" >&6
11767 fi
11768
11769 echo "$as_me:$LINENO: checking enable_audio=w32" >&5
11770 echo $ECHO_N "checking enable_audio=w32... $ECHO_C" >&6
11771 if test "x$au_enable_w32" = xyes; then
11772   case "$target" in
11773     *-*-cygwin*)
11774      echo "$as_me:$LINENO: result: yes" >&5
11775 echo "${ECHO_T}yes" >&6
11776      ;;
11777     *-*-mingw32)
11778      echo "$as_me:$LINENO: result: yes" >&5
11779 echo "${ECHO_T}yes" >&6
11780      ;;
11781     *)
11782      { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11783 echo "$as_me: WARNING: may not work on $target" >&2;}
11784      ;;
11785   esac
11786   SYSEXTRAS="$SYSEXTRAS w32_a.c"
11787   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM" = xyes; then
11788         EXTRALIBS="$EXTRALIBS winmm.lib"
11789   else
11790     EXTRALIBS="$EXTRALIBS -lwinmm"
11791   fi
11792   EXTRADEFS="$EXTRADEFS -DAU_W32"
11793 else
11794   echo "$as_me:$LINENO: result: no" >&5
11795 echo "${ECHO_T}no" >&6
11796 fi
11797
11798 echo "$as_me:$LINENO: checking enable_audio=darwin" >&5
11799 echo $ECHO_N "checking enable_audio=darwin... $ECHO_C" >&6
11800 if test "x$au_enable_darwin" = xyes; then
11801   EXTRADEFS="$EXTRADEFS -DAU_DARWIN"
11802   SYSEXTRAS="$SYSEXTRAS darwin_a.c"
11803   EXTRALIBS="$EXTRALIBS -framework CoreAudio"
11804     case "$target" in
11805     *-*-darwin*)
11806      echo "$as_me:$LINENO: result: yes" >&5
11807 echo "${ECHO_T}yes" >&6;;
11808    *)
11809      { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
11810 echo "$as_me: WARNING: may not work on $target" >&2;}
11811      ;;
11812   esac
11813 else
11814   echo "$as_me:$LINENO: result: no" >&5
11815 echo "${ECHO_T}no" >&6
11816 fi
11817
11818
11819 echo "$as_me:$LINENO: checking enable_audio=alsa" >&5
11820 echo $ECHO_N "checking enable_audio=alsa... $ECHO_C" >&6
11821 if test "x$au_enable_alsa" = xyes; then
11822   echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
11823 echo "${ECHO_T}yes, configuring alsa" >&6
11824   KEEPCFLAGS=$CFLAGS
11825   KEEPLIBS=$LIBS
11826   KEEPLDFLAGS=$LDFLAGS
11827   alsa_save_CFLAGS="$CFLAGS"
11828 alsa_save_LDFLAGS="$LDFLAGS"
11829 alsa_save_LIBS="$LIBS"
11830 alsa_found=yes
11831
11832
11833 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
11834 if test "${with_alsa_prefix+set}" = set; then
11835   withval="$with_alsa_prefix"
11836   alsa_prefix="$withval"
11837 else
11838   alsa_prefix=""
11839 fi;
11840
11841
11842 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
11843 if test "${with_alsa_inc_prefix+set}" = set; then
11844   withval="$with_alsa_inc_prefix"
11845   alsa_inc_prefix="$withval"
11846 else
11847   alsa_inc_prefix=""
11848 fi;
11849
11850 # Check whether --enable-alsatest or --disable-alsatest was given.
11851 if test "${enable_alsatest+set}" = set; then
11852   enableval="$enable_alsatest"
11853   enable_alsatest=no
11854 else
11855   enable_alsatest=yes
11856 fi;
11857
11858 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
11859 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
11860 if test "$alsa_inc_prefix" != "" ; then
11861         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
11862         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
11863 fi
11864 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
11865 echo "${ECHO_T}$ALSA_CFLAGS" >&6
11866
11867 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
11868 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
11869 if test "$alsa_prefix" != "" ; then
11870         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
11871         LDFLAGS="$LDFLAGS $ALSA_LIBS"
11872 fi
11873
11874 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
11875 LIBS=`echo $LIBS | sed 's/-lm//'`
11876 LIBS=`echo $LIBS | sed 's/-ldl//'`
11877 LIBS=`echo $LIBS | sed 's/-lpthread//'`
11878 LIBS=`echo $LIBS | sed 's/  //'`
11879 LIBS="$ALSA_LIBS $LIBS"
11880 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
11881 echo "${ECHO_T}$ALSA_LIBS" >&6
11882
11883 min_alsa_version=0.1.1
11884 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
11885 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
11886 no_alsa=""
11887     alsa_min_major_version=`echo $min_alsa_version | \
11888            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11889     alsa_min_minor_version=`echo $min_alsa_version | \
11890            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11891     alsa_min_micro_version=`echo $min_alsa_version | \
11892            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11893
11894
11895
11896
11897 ac_ext=c
11898 ac_cpp='$CPP $CPPFLAGS'
11899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11902
11903 cat >conftest.$ac_ext <<_ACEOF
11904 /* confdefs.h.  */
11905 _ACEOF
11906 cat confdefs.h >>conftest.$ac_ext
11907 cat >>conftest.$ac_ext <<_ACEOF
11908 /* end confdefs.h.  */
11909
11910 #include <alsa/asoundlib.h>
11911
11912 int
11913 main ()
11914 {
11915
11916 /* ensure backward compatibility */
11917 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
11918 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
11919 #endif
11920 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
11921 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
11922 #endif
11923 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
11924 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
11925 #endif
11926
11927 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
11928   exit(0);
11929 #  else
11930 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
11931 #       error not present
11932 #    endif
11933
11934 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
11935   exit(0);
11936 #   else
11937 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
11938 #          error not present
11939 #      endif
11940
11941 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
11942 #        error not present
11943 #      endif
11944 #    endif
11945 #  endif
11946 exit(0);
11947
11948   ;
11949   return 0;
11950 }
11951 _ACEOF
11952 rm -f conftest.$ac_objext
11953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11954   (eval $ac_compile) 2>conftest.er1
11955   ac_status=$?
11956   grep -v '^ *+' conftest.er1 >conftest.err
11957   rm -f conftest.er1
11958   cat conftest.err >&5
11959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960   (exit $ac_status); } &&
11961          { ac_try='test -z "$ac_c_werror_flag"
11962                          || test ! -s conftest.err'
11963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11964   (eval $ac_try) 2>&5
11965   ac_status=$?
11966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967   (exit $ac_status); }; } &&
11968          { ac_try='test -s conftest.$ac_objext'
11969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11970   (eval $ac_try) 2>&5
11971   ac_status=$?
11972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973   (exit $ac_status); }; }; then
11974   echo "$as_me:$LINENO: result: found." >&5
11975 echo "${ECHO_T}found." >&6
11976 else
11977   echo "$as_me: failed program was:" >&5
11978 sed 's/^/| /' conftest.$ac_ext >&5
11979
11980 cat >conftest.$ac_ext <<_ACEOF
11981 /* confdefs.h.  */
11982 _ACEOF
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h.  */
11986
11987 #include <sys/asoundlib.h>
11988
11989 int
11990 main ()
11991 {
11992
11993 /* ensure backward compatibility */
11994 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
11995 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
11996 #endif
11997 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
11998 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
11999 #endif
12000 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12001 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12002 #endif
12003
12004 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
12005   exit(0);
12006 #  else
12007 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
12008 #       error not present
12009 #    endif
12010
12011 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
12012   exit(0);
12013 #   else
12014 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
12015 #          error not present
12016 #      endif
12017
12018 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12019 #        error not present
12020 #      endif
12021 #    endif
12022 #  endif
12023 exit(0);
12024
12025   ;
12026   return 0;
12027 }
12028 _ACEOF
12029 rm -f conftest.$ac_objext
12030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12031   (eval $ac_compile) 2>conftest.er1
12032   ac_status=$?
12033   grep -v '^ *+' conftest.er1 >conftest.err
12034   rm -f conftest.er1
12035   cat conftest.err >&5
12036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037   (exit $ac_status); } &&
12038          { ac_try='test -z "$ac_c_werror_flag"
12039                          || test ! -s conftest.err'
12040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12041   (eval $ac_try) 2>&5
12042   ac_status=$?
12043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044   (exit $ac_status); }; } &&
12045          { ac_try='test -s conftest.$ac_objext'
12046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12047   (eval $ac_try) 2>&5
12048   ac_status=$?
12049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050   (exit $ac_status); }; }; then
12051   echo "$as_me:$LINENO: result: found." >&5
12052 echo "${ECHO_T}found." >&6
12053 else
12054   echo "$as_me: failed program was:" >&5
12055 sed 's/^/| /' conftest.$ac_ext >&5
12056
12057 echo "$as_me:$LINENO: result: not present." >&5
12058 echo "${ECHO_T}not present." >&6
12059    echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
12060 echo "${ECHO_T}libasound was not found anywhere." >&6
12061    alsa_found=no
12062 fi
12063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12064    echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
12065 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
12066
12067 fi
12068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12069 ac_ext=c
12070 ac_cpp='$CPP $CPPFLAGS'
12071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12074
12075
12076
12077 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
12078 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
12079 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
12080   echo $ECHO_N "(cached) $ECHO_C" >&6
12081 else
12082   ac_check_lib_save_LIBS=$LIBS
12083 LIBS="-lasound  $LIBS"
12084 cat >conftest.$ac_ext <<_ACEOF
12085 /* confdefs.h.  */
12086 _ACEOF
12087 cat confdefs.h >>conftest.$ac_ext
12088 cat >>conftest.$ac_ext <<_ACEOF
12089 /* end confdefs.h.  */
12090
12091 /* Override any gcc2 internal prototype to avoid an error.  */
12092 #ifdef __cplusplus
12093 extern "C"
12094 #endif
12095 /* We use char because int might match the return type of a gcc2
12096    builtin and then its argument prototype would still apply.  */
12097 char snd_ctl_open ();
12098 int
12099 main ()
12100 {
12101 snd_ctl_open ();
12102   ;
12103   return 0;
12104 }
12105 _ACEOF
12106 rm -f conftest.$ac_objext conftest$ac_exeext
12107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12108   (eval $ac_link) 2>conftest.er1
12109   ac_status=$?
12110   grep -v '^ *+' conftest.er1 >conftest.err
12111   rm -f conftest.er1
12112   cat conftest.err >&5
12113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114   (exit $ac_status); } &&
12115          { ac_try='test -z "$ac_c_werror_flag"
12116                          || test ! -s conftest.err'
12117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118   (eval $ac_try) 2>&5
12119   ac_status=$?
12120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121   (exit $ac_status); }; } &&
12122          { ac_try='test -s conftest$ac_exeext'
12123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124   (eval $ac_try) 2>&5
12125   ac_status=$?
12126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127   (exit $ac_status); }; }; then
12128   ac_cv_lib_asound_snd_ctl_open=yes
12129 else
12130   echo "$as_me: failed program was:" >&5
12131 sed 's/^/| /' conftest.$ac_ext >&5
12132
12133 ac_cv_lib_asound_snd_ctl_open=no
12134 fi
12135 rm -f conftest.err conftest.$ac_objext \
12136       conftest$ac_exeext conftest.$ac_ext
12137 LIBS=$ac_check_lib_save_LIBS
12138 fi
12139 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
12140 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
12141 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
12142   cat >>confdefs.h <<_ACEOF
12143 #define HAVE_LIBASOUND 1
12144 _ACEOF
12145
12146   LIBS="-lasound $LIBS"
12147
12148 else
12149   echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
12150 echo "${ECHO_T}No linkable libasound was found." >&6
12151    alsa_found=no
12152
12153 fi
12154
12155
12156 if test "x$alsa_found" = "xyes" ; then
12157    :
12158    LIBS=`echo $LIBS | sed 's/-lasound//g'`
12159    LIBS=`echo $LIBS | sed 's/  //'`
12160    LIBS="-lasound $LIBS"
12161 else
12162    :
12163    CFLAGS="$alsa_save_CFLAGS"
12164    LDFLAGS="$alsa_save_LDFLAGS"
12165    LIBS="$alsa_save_LIBS"
12166    ALSA_CFLAGS=""
12167    ALSA_LIBS=""
12168 fi
12169
12170
12171
12172
12173   if test "x$alsa_found" = "xyes" ; then
12174         EXTRADEFS="$EXTRADEFS -DAU_ALSA"
12175     SYSEXTRAS="$SYSEXTRAS alsa_a.c"
12176     for f in $ALSA_CFLAGS; do
12177     case ".$f" in
12178         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
12179         *)              CFLAGS="$CPPFLAGS $f" ;;
12180     esac
12181 done
12182
12183     LIBS="$LIBS $ALSA_LIBS"
12184
12185 for ac_func in snd_seq_port_info_set_timestamping
12186 do
12187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12188 echo "$as_me:$LINENO: checking for $ac_func" >&5
12189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12190 if eval "test \"\${$as_ac_var+set}\" = set"; then
12191   echo $ECHO_N "(cached) $ECHO_C" >&6
12192 else
12193   cat >conftest.$ac_ext <<_ACEOF
12194 /* confdefs.h.  */
12195 _ACEOF
12196 cat confdefs.h >>conftest.$ac_ext
12197 cat >>conftest.$ac_ext <<_ACEOF
12198 /* end confdefs.h.  */
12199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12200    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12201 #define $ac_func innocuous_$ac_func
12202
12203 /* System header to define __stub macros and hopefully few prototypes,
12204     which can conflict with char $ac_func (); below.
12205     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12206     <limits.h> exists even on freestanding compilers.  */
12207
12208 #ifdef __STDC__
12209 # include <limits.h>
12210 #else
12211 # include <assert.h>
12212 #endif
12213
12214 #undef $ac_func
12215
12216 /* Override any gcc2 internal prototype to avoid an error.  */
12217 #ifdef __cplusplus
12218 extern "C"
12219 {
12220 #endif
12221 /* We use char because int might match the return type of a gcc2
12222    builtin and then its argument prototype would still apply.  */
12223 char $ac_func ();
12224 /* The GNU C library defines this for functions which it implements
12225     to always fail with ENOSYS.  Some functions are actually named
12226     something starting with __ and the normal name is an alias.  */
12227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12228 choke me
12229 #else
12230 char (*f) () = $ac_func;
12231 #endif
12232 #ifdef __cplusplus
12233 }
12234 #endif
12235
12236 int
12237 main ()
12238 {
12239 return f != $ac_func;
12240   ;
12241   return 0;
12242 }
12243 _ACEOF
12244 rm -f conftest.$ac_objext conftest$ac_exeext
12245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12246   (eval $ac_link) 2>conftest.er1
12247   ac_status=$?
12248   grep -v '^ *+' conftest.er1 >conftest.err
12249   rm -f conftest.er1
12250   cat conftest.err >&5
12251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252   (exit $ac_status); } &&
12253          { ac_try='test -z "$ac_c_werror_flag"
12254                          || test ! -s conftest.err'
12255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12256   (eval $ac_try) 2>&5
12257   ac_status=$?
12258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259   (exit $ac_status); }; } &&
12260          { ac_try='test -s conftest$ac_exeext'
12261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12262   (eval $ac_try) 2>&5
12263   ac_status=$?
12264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265   (exit $ac_status); }; }; then
12266   eval "$as_ac_var=yes"
12267 else
12268   echo "$as_me: failed program was:" >&5
12269 sed 's/^/| /' conftest.$ac_ext >&5
12270
12271 eval "$as_ac_var=no"
12272 fi
12273 rm -f conftest.err conftest.$ac_objext \
12274       conftest$ac_exeext conftest.$ac_ext
12275 fi
12276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12277 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12278 if test `eval echo '${'$as_ac_var'}'` = yes; then
12279   cat >>confdefs.h <<_ACEOF
12280 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12281 _ACEOF
12282
12283 fi
12284 done
12285
12286   else
12287     { echo "$as_me:$LINENO: WARNING: Couldn't configure alsa." >&5
12288 echo "$as_me: WARNING: Couldn't configure alsa." >&2;}
12289     CFLAGS=$KEEPCFLAGS
12290     LIBS=$KEEPLIBS
12291     LDFLAGS=$KEEPLDFLAGS
12292   fi
12293 else
12294   echo "$as_me:$LINENO: result: no" >&5
12295 echo "${ECHO_T}no" >&6
12296 fi
12297
12298 echo "$as_me:$LINENO: checking enable_audio=alib" >&5
12299 echo $ECHO_N "checking enable_audio=alib... $ECHO_C" >&6
12300 if test "x$au_enable_alib" = xyes; then
12301   case "$target" in
12302     *-*-hpux*) echo "$as_me:$LINENO: result: yes" >&5
12303 echo "${ECHO_T}yes" >&6 ;;
12304     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12305 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12306   esac
12307   SYSEXTRAS="$SYSEXTRAS hpux_a.c"
12308   EXTRADEFS="$EXTRADEFS -DAU_HPUX_ALIB"
12309   if test -d /opt/audio/include; then
12310     CPPFLAGS="$CPPFLAGS -I/opt/audio/include"
12311   fi
12312   if test -d /opt/audio/lib; then
12313     EXTRALIBS="$EXTRALIBS -L/opt/audio/lib"
12314   fi
12315   EXTRALIBS="$EXTRALIBS -lAlib"
12316 else
12317   echo "$as_me:$LINENO: result: no" >&5
12318 echo "${ECHO_T}no" >&6
12319 fi
12320
12321 echo "$as_me:$LINENO: checking enable_audio=nas" >&5
12322 echo $ECHO_N "checking enable_audio=nas... $ECHO_C" >&6
12323 if test "x$au_enable_nas" = xyes; then
12324   if test "x$with_x" != xyes; then
12325     { { echo "$as_me:$LINENO: error: nas: --with-x option must be specified" >&5
12326 echo "$as_me: error: nas: --with-x option must be specified" >&2;}
12327    { (exit 1); exit 1; }; }
12328   fi
12329   EXTRADEFS="$EXTRADEFS -DAU_NAS"
12330   SYSEXTRAS="$SYSEXTRAS nas_a.c"
12331
12332
12333   if test "x$with_nas_library" != x; then
12334     echo "$as_me:$LINENO: result: $with_nas_library" >&5
12335 echo "${ECHO_T}$with_nas_library" >&6;
12336     EXTRALIBS="$EXTRALIBS $with_nas_library"
12337   else
12338     echo "$as_me:$LINENO: result: " >&5
12339 echo "${ECHO_T}" >&6
12340     echo "$as_me:$LINENO: checking for library containing AuOpenServer" >&5
12341 echo $ECHO_N "checking for library containing AuOpenServer... $ECHO_C" >&6
12342 if test "${timidity_cv_search_AuOpenServer+set}" = set; then
12343   echo $ECHO_N "(cached) $ECHO_C" >&6
12344 else
12345   ac_func_search_save_LIBS="$LIBS"
12346 timidity_cv_search_AuOpenServer="no"
12347 for i in $x_libraries/libaudio.a \
12348          /usr/lib/libaudio.so \
12349          /usr/lib/libaudio.a ; do
12350   LIBS="$i  $ac_func_search_save_LIBS"
12351   cat >conftest.$ac_ext <<_ACEOF
12352 /* confdefs.h.  */
12353 _ACEOF
12354 cat confdefs.h >>conftest.$ac_ext
12355 cat >>conftest.$ac_ext <<_ACEOF
12356 /* end confdefs.h.  */
12357
12358 /* Override any gcc2 internal prototype to avoid an error.  */
12359 #ifdef __cplusplus
12360 extern "C"
12361 #endif
12362 /* We use char because int might match the return type of a gcc2
12363    builtin and then its argument prototype would still apply.  */
12364 char AuOpenServer ();
12365 int
12366 main ()
12367 {
12368 AuOpenServer ();
12369   ;
12370   return 0;
12371 }
12372 _ACEOF
12373 rm -f conftest.$ac_objext conftest$ac_exeext
12374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12375   (eval $ac_link) 2>conftest.er1
12376   ac_status=$?
12377   grep -v '^ *+' conftest.er1 >conftest.err
12378   rm -f conftest.er1
12379   cat conftest.err >&5
12380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381   (exit $ac_status); } &&
12382          { ac_try='test -z "$ac_c_werror_flag"
12383                          || test ! -s conftest.err'
12384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12385   (eval $ac_try) 2>&5
12386   ac_status=$?
12387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388   (exit $ac_status); }; } &&
12389          { ac_try='test -s conftest$ac_exeext'
12390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12391   (eval $ac_try) 2>&5
12392   ac_status=$?
12393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394   (exit $ac_status); }; }; then
12395   timidity_cv_search_AuOpenServer="$i"; break
12396 else
12397   echo "$as_me: failed program was:" >&5
12398 sed 's/^/| /' conftest.$ac_ext >&5
12399
12400 fi
12401 rm -f conftest.err conftest.$ac_objext \
12402       conftest$ac_exeext conftest.$ac_ext
12403 done
12404 LIBS="$ac_func_search_save_LIBS"
12405 fi
12406 echo "$as_me:$LINENO: result: $timidity_cv_search_AuOpenServer" >&5
12407 echo "${ECHO_T}$timidity_cv_search_AuOpenServer" >&6
12408 if test "$timidity_cv_search_AuOpenServer" != "no"; then
12409    echo "$as_me:$LINENO: result: NAS: $timidity_cv_search_AuOpenServer" >&5
12410 echo "${ECHO_T}NAS: $timidity_cv_search_AuOpenServer" >&6
12411           EXTRALIBS="$EXTRALIBS $timidity_cv_search_AuOpenServer"
12412 else :
12413   { echo "$as_me:$LINENO: WARNING: NAS library is not found." >&5
12414 echo "$as_me: WARNING: NAS library is not found." >&2;}
12415 fi
12416   fi
12417   test "x$with_nas_includes" != x && CPPFLAGS="$CPPFLAGS -I$with_nas_includes"
12418   lib_xt_opt=-lXt
12419   if test "x$have_xext" = xyes; then
12420     lib_xext_opt=-lXext
12421   fi
12422   if test "x$have_xprelibs" = xyes; then
12423     lib_xprelibs_opt='-lSM -lICE'
12424   fi
12425 else
12426   echo "$as_me:$LINENO: result: no" >&5
12427 echo "${ECHO_T}no" >&6
12428 fi
12429
12430 echo "$as_me:$LINENO: checking enable_audio=arts" >&5
12431 echo $ECHO_N "checking enable_audio=arts... $ECHO_C" >&6
12432 if test "x$au_enable_arts" = xyes; then
12433   echo "$as_me:$LINENO: result: yes, configuring aRts" >&5
12434 echo "${ECHO_T}yes, configuring aRts" >&6
12435   KEEPCFLAGS=$CFLAGS
12436   KEEPLIBS=$LIBS
12437   KEEPLDFLAGS=$LDFLAGS
12438
12439 # Check whether --with-arts-prefix or --without-arts-prefix was given.
12440 if test "${with_arts_prefix+set}" = set; then
12441   withval="$with_arts_prefix"
12442   arts_prefix="$withval"
12443 else
12444   arts_prefix=""
12445 fi;
12446 # Check whether --enable-artstest or --disable-artstest was given.
12447 if test "${enable_artstest+set}" = set; then
12448   enableval="$enable_artstest"
12449
12450 else
12451   enable_artstest=yes
12452 fi;
12453
12454   if test x$arts_prefix != x ; then
12455      arts_args="$arts_args --prefix=$arts_prefix"
12456      if test x${ARTS_CONFIG+set} != xset ; then
12457         ARTS_CONFIG=$arts_prefix/bin/artsc-config
12458      fi
12459   fi
12460
12461   # Extract the first word of "artsc-config", so it can be a program name with args.
12462 set dummy artsc-config; ac_word=$2
12463 echo "$as_me:$LINENO: checking for $ac_word" >&5
12464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12465 if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
12466   echo $ECHO_N "(cached) $ECHO_C" >&6
12467 else
12468   case $ARTS_CONFIG in
12469   [\\/]* | ?:[\\/]*)
12470   ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
12471   ;;
12472   *)
12473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12474 for as_dir in $PATH
12475 do
12476   IFS=$as_save_IFS
12477   test -z "$as_dir" && as_dir=.
12478   for ac_exec_ext in '' $ac_executable_extensions; do
12479   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12480     ac_cv_path_ARTS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12482     break 2
12483   fi
12484 done
12485 done
12486
12487   test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
12488   ;;
12489 esac
12490 fi
12491 ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
12492
12493 if test -n "$ARTS_CONFIG"; then
12494   echo "$as_me:$LINENO: result: $ARTS_CONFIG" >&5
12495 echo "${ECHO_T}$ARTS_CONFIG" >&6
12496 else
12497   echo "$as_me:$LINENO: result: no" >&5
12498 echo "${ECHO_T}no" >&6
12499 fi
12500
12501   min_arts_version=0.9.5
12502   echo "$as_me:$LINENO: checking for ARTS - version >= $min_arts_version" >&5
12503 echo $ECHO_N "checking for ARTS - version >= $min_arts_version... $ECHO_C" >&6
12504   no_arts=""
12505   if test "$ARTS_CONFIG" = "no" ; then
12506     no_arts=yes
12507   else
12508     ARTS_CFLAGS=`$ARTS_CONFIG $artsconf_args --cflags`
12509     ARTS_LIBS=`$ARTS_CONFIG $artsconf_args --libs`
12510
12511     arts_major_version=`$ARTS_CONFIG $arts_args --version | \
12512            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12513     arts_minor_version=`$ARTS_CONFIG $arts_args --version | \
12514            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12515     arts_micro_version=`$ARTS_CONFIG $arts_config_args --version | \
12516            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12517     if test "x$enable_artstest" = "xyes" ; then
12518       ac_save_CFLAGS="$CFLAGS"
12519       ac_save_LIBS="$LIBS"
12520       CFLAGS="$CFLAGS $ARTS_CFLAGS"
12521       LIBS="$LIBS $ARTS_LIBS"
12522       rm -f conf.artstest
12523       if test "$cross_compiling" = yes; then
12524   echo $ac_n "cross compiling; assumed OK... $ac_c"
12525 else
12526   cat >conftest.$ac_ext <<_ACEOF
12527 /* confdefs.h.  */
12528 _ACEOF
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h.  */
12532
12533 #include <stdio.h>
12534 #include <stdlib.h>
12535 #include <string.h>
12536 #include <artsc.h>
12537
12538 char*
12539 my_strdup (char *str)
12540 {
12541   char *new_str;
12542
12543   if (str)
12544     {
12545       new_str = malloc ((strlen (str) + 1) * sizeof(char));
12546       strcpy (new_str, str);
12547     }
12548   else
12549     new_str = NULL;
12550
12551   return new_str;
12552 }
12553
12554 int main ()
12555 {
12556   int major, minor, micro;
12557   char *tmp_version;
12558
12559   system ("touch conf.artstest");
12560
12561   /* HP/UX 9 (%@#!) writes to sscanf strings */
12562   tmp_version = my_strdup("$min_arts_version");
12563   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12564      printf("%s, bad version string\n", "$min_arts_version");
12565      exit(1);
12566    }
12567
12568    if (($arts_major_version > major) ||
12569       (($arts_major_version == major) && ($arts_minor_version > minor)) ||
12570       (($arts_major_version == major) && ($arts_minor_version == minor) && ($arts_micro_version >= micro)))
12571     {
12572       return 0;
12573     }
12574   else
12575     {
12576       printf("\n*** 'artsc-config --version' returned %d.%d.%d, but the minimum version\n", $arts_major_version, $arts_minor_version, $arts_micro_version);
12577       printf("*** of ARTS required is %d.%d.%d. If artsc-config is correct, then it is\n", major, minor, micro);
12578       printf("*** best to upgrade to the required version.\n");
12579       printf("*** If artsc-config was wrong, set the environment variable ARTS_CONFIG\n");
12580       printf("*** to point to the correct copy of artsc-config, and remove the file\n");
12581       printf("*** config.cache before re-running configure\n");
12582       return 1;
12583     }
12584 }
12585
12586
12587 _ACEOF
12588 rm -f conftest$ac_exeext
12589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12590   (eval $ac_link) 2>&5
12591   ac_status=$?
12592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595   (eval $ac_try) 2>&5
12596   ac_status=$?
12597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598   (exit $ac_status); }; }; then
12599   :
12600 else
12601   echo "$as_me: program exited with status $ac_status" >&5
12602 echo "$as_me: failed program was:" >&5
12603 sed 's/^/| /' conftest.$ac_ext >&5
12604
12605 ( exit $ac_status )
12606 no_arts=yes
12607 fi
12608 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12609 fi
12610        CFLAGS="$ac_save_CFLAGS"
12611        LIBS="$ac_save_LIBS"
12612      fi
12613   fi
12614   if test "x$no_arts" = x ; then
12615      echo "$as_me:$LINENO: result: yes" >&5
12616 echo "${ECHO_T}yes" >&6
12617      :
12618   else
12619      echo "$as_me:$LINENO: result: no" >&5
12620 echo "${ECHO_T}no" >&6
12621      if test "$ARTS_CONFIG" = "no" ; then
12622        echo "*** The artsc-config script installed by ARTS could not be found"
12623        echo "*** If ARTS was installed in PREFIX, make sure PREFIX/bin is in"
12624        echo "*** your path, or set the ARTS_CONFIG environment variable to the"
12625        echo "*** full path to artsc-config."
12626      else
12627        if test -f conf.artstest ; then
12628         :
12629        else
12630           echo "*** Could not run ARTS test program, checking why..."
12631           CFLAGS="$CFLAGS $ARTS_CFLAGS"
12632           LIBS="$LIBS $ARTS_LIBS"
12633           cat >conftest.$ac_ext <<_ACEOF
12634 /* confdefs.h.  */
12635 _ACEOF
12636 cat confdefs.h >>conftest.$ac_ext
12637 cat >>conftest.$ac_ext <<_ACEOF
12638 /* end confdefs.h.  */
12639
12640 #include <stdio.h>
12641 #include <artsc.h>
12642
12643 int
12644 main ()
12645 {
12646  return 0;
12647   ;
12648   return 0;
12649 }
12650 _ACEOF
12651 rm -f conftest.$ac_objext conftest$ac_exeext
12652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12653   (eval $ac_link) 2>conftest.er1
12654   ac_status=$?
12655   grep -v '^ *+' conftest.er1 >conftest.err
12656   rm -f conftest.er1
12657   cat conftest.err >&5
12658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659   (exit $ac_status); } &&
12660          { ac_try='test -z "$ac_c_werror_flag"
12661                          || test ! -s conftest.err'
12662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663   (eval $ac_try) 2>&5
12664   ac_status=$?
12665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666   (exit $ac_status); }; } &&
12667          { ac_try='test -s conftest$ac_exeext'
12668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12669   (eval $ac_try) 2>&5
12670   ac_status=$?
12671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672   (exit $ac_status); }; }; then
12673    echo "*** The test program compiled, but did not run. This usually means"
12674           echo "*** that the run-time linker is not finding ARTS or finding the wrong"
12675           echo "*** version of ARTS. If it is not finding ARTS, you'll need to set your"
12676           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12677           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12678           echo "*** is required on your system"
12679           echo "***"
12680           echo "*** If you have an old version installed, it is best to remove it, although"
12681           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12682 else
12683   echo "$as_me: failed program was:" >&5
12684 sed 's/^/| /' conftest.$ac_ext >&5
12685
12686  echo "*** The test program failed to compile or link. See the file config.log for the"
12687           echo "*** exact error that occured. This usually means ARTS was incorrectly installed"
12688           echo "*** or that you have moved ARTS since it was installed. In the latter case, you"
12689           echo "*** may want to edit the arts-config script: $ARTS_CONFIG"
12690 fi
12691 rm -f conftest.err conftest.$ac_objext \
12692       conftest$ac_exeext conftest.$ac_ext
12693           CFLAGS="$ac_save_CFLAGS"
12694           LIBS="$ac_save_LIBS"
12695        fi
12696      fi
12697      ARTS_CFLAGS=""
12698      ARTS_LIBS=""
12699      :
12700   fi
12701
12702
12703   rm -f conf.artstest
12704
12705   CFLAGS=$KEEPCFLAGS
12706   LIBS=$KEEPLIBS
12707   LDFLAGS=$KEEPLDFLAGS
12708   if test "x$no_arts" = x; then
12709         EXTRADEFS="$EXTRADEFS -DAU_ARTS"
12710     SYSEXTRAS="$SYSEXTRAS aRts_a.c"
12711     for f in $ARTS_CFLAGS; do
12712     case ".$f" in
12713         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
12714         *)              CFLAGS="$CPPFLAGS $f" ;;
12715     esac
12716 done
12717
12718     LIBS="$LIBS $ARTS_LIBS"
12719   else
12720     { echo "$as_me:$LINENO: WARNING: aRts: Couldn't configure" >&5
12721 echo "$as_me: WARNING: aRts: Couldn't configure" >&2;}
12722   fi
12723 else
12724   echo "$as_me:$LINENO: result: no" >&5
12725 echo "${ECHO_T}no" >&6
12726 fi
12727
12728 echo "$as_me:$LINENO: checking enable_audio=esd" >&5
12729 echo $ECHO_N "checking enable_audio=esd... $ECHO_C" >&6
12730 if test "x$au_enable_esd" = xyes; then
12731   echo "$as_me:$LINENO: result: yes, configuring esd" >&5
12732 echo "${ECHO_T}yes, configuring esd" >&6
12733   KEEPCFLAGS=$CFLAGS
12734   KEEPLIBS=$LIBS
12735   KEEPLDFLAGS=$LDFLAGS
12736
12737 # Check whether --with-esd-prefix or --without-esd-prefix was given.
12738 if test "${with_esd_prefix+set}" = set; then
12739   withval="$with_esd_prefix"
12740   esd_prefix="$withval"
12741 else
12742   esd_prefix=""
12743 fi;
12744
12745 # Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given.
12746 if test "${with_esd_exec_prefix+set}" = set; then
12747   withval="$with_esd_exec_prefix"
12748   esd_exec_prefix="$withval"
12749 else
12750   esd_exec_prefix=""
12751 fi;
12752 # Check whether --enable-esdtest or --disable-esdtest was given.
12753 if test "${enable_esdtest+set}" = set; then
12754   enableval="$enable_esdtest"
12755
12756 else
12757   enable_esdtest=yes
12758 fi;
12759
12760   if test x$esd_exec_prefix != x ; then
12761      esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
12762      if test x${ESD_CONFIG+set} != xset ; then
12763         ESD_CONFIG=$esd_exec_prefix/bin/esd-config
12764      fi
12765   fi
12766   if test x$esd_prefix != x ; then
12767      esd_args="$esd_args --prefix=$esd_prefix"
12768      if test x${ESD_CONFIG+set} != xset ; then
12769         ESD_CONFIG=$esd_prefix/bin/esd-config
12770      fi
12771   fi
12772
12773   # Extract the first word of "esd-config", so it can be a program name with args.
12774 set dummy esd-config; ac_word=$2
12775 echo "$as_me:$LINENO: checking for $ac_word" >&5
12776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12777 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
12778   echo $ECHO_N "(cached) $ECHO_C" >&6
12779 else
12780   case $ESD_CONFIG in
12781   [\\/]* | ?:[\\/]*)
12782   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
12783   ;;
12784   *)
12785   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12786 for as_dir in $PATH
12787 do
12788   IFS=$as_save_IFS
12789   test -z "$as_dir" && as_dir=.
12790   for ac_exec_ext in '' $ac_executable_extensions; do
12791   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12792     ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12794     break 2
12795   fi
12796 done
12797 done
12798
12799   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
12800   ;;
12801 esac
12802 fi
12803 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
12804
12805 if test -n "$ESD_CONFIG"; then
12806   echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
12807 echo "${ECHO_T}$ESD_CONFIG" >&6
12808 else
12809   echo "$as_me:$LINENO: result: no" >&5
12810 echo "${ECHO_T}no" >&6
12811 fi
12812
12813   min_esd_version=0.2.7
12814   echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
12815 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6
12816   no_esd=""
12817   if test "$ESD_CONFIG" = "no" ; then
12818     no_esd=yes
12819   else
12820
12821
12822     ac_ext=c
12823 ac_cpp='$CPP $CPPFLAGS'
12824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12827
12828     ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
12829     ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
12830
12831     esd_major_version=`$ESD_CONFIG $esd_args --version | \
12832            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12833     esd_minor_version=`$ESD_CONFIG $esd_args --version | \
12834            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12835     esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
12836            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12837     if test "x$enable_esdtest" = "xyes" ; then
12838       ac_save_CFLAGS="$CFLAGS"
12839       ac_save_LIBS="$LIBS"
12840       CFLAGS="$CFLAGS $ESD_CFLAGS"
12841       LIBS="$LIBS $ESD_LIBS"
12842       rm -f conf.esdtest
12843       if test "$cross_compiling" = yes; then
12844   echo $ac_n "cross compiling; assumed OK... $ac_c"
12845 else
12846   cat >conftest.$ac_ext <<_ACEOF
12847 /* confdefs.h.  */
12848 _ACEOF
12849 cat confdefs.h >>conftest.$ac_ext
12850 cat >>conftest.$ac_ext <<_ACEOF
12851 /* end confdefs.h.  */
12852
12853 #include <stdio.h>
12854 #include <stdlib.h>
12855 #include <string.h>
12856 #include <esd.h>
12857
12858 char*
12859 my_strdup (char *str)
12860 {
12861   char *new_str;
12862
12863   if (str)
12864     {
12865       new_str = malloc ((strlen (str) + 1) * sizeof(char));
12866       strcpy (new_str, str);
12867     }
12868   else
12869     new_str = NULL;
12870
12871   return new_str;
12872 }
12873
12874 int main ()
12875 {
12876   int major, minor, micro;
12877   char *tmp_version;
12878
12879   system ("touch conf.esdtest");
12880
12881   /* HP/UX 9 (%@#!) writes to sscanf strings */
12882   tmp_version = my_strdup("$min_esd_version");
12883   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12884      printf("%s, bad version string\n", "$min_esd_version");
12885      exit(1);
12886    }
12887
12888    if (($esd_major_version > major) ||
12889       (($esd_major_version == major) && ($esd_minor_version > minor)) ||
12890       (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
12891     {
12892       return 0;
12893     }
12894   else
12895     {
12896       printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
12897       printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
12898       printf("*** best to upgrade to the required version.\n");
12899       printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
12900       printf("*** to point to the correct copy of esd-config, and remove the file\n");
12901       printf("*** config.cache before re-running configure\n");
12902       return 1;
12903     }
12904 }
12905
12906
12907 _ACEOF
12908 rm -f conftest$ac_exeext
12909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12910   (eval $ac_link) 2>&5
12911   ac_status=$?
12912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915   (eval $ac_try) 2>&5
12916   ac_status=$?
12917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918   (exit $ac_status); }; }; then
12919   :
12920 else
12921   echo "$as_me: program exited with status $ac_status" >&5
12922 echo "$as_me: failed program was:" >&5
12923 sed 's/^/| /' conftest.$ac_ext >&5
12924
12925 ( exit $ac_status )
12926 no_esd=yes
12927 fi
12928 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12929 fi
12930        CFLAGS="$ac_save_CFLAGS"
12931        LIBS="$ac_save_LIBS"
12932        ac_ext=c
12933 ac_cpp='$CPP $CPPFLAGS'
12934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12937
12938      fi
12939   fi
12940   if test "x$no_esd" = x ; then
12941      echo "$as_me:$LINENO: result: yes" >&5
12942 echo "${ECHO_T}yes" >&6
12943      :
12944   else
12945      echo "$as_me:$LINENO: result: no" >&5
12946 echo "${ECHO_T}no" >&6
12947      if test "$ESD_CONFIG" = "no" ; then
12948        echo "*** The esd-config script installed by ESD could not be found"
12949        echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
12950        echo "*** your path, or set the ESD_CONFIG environment variable to the"
12951        echo "*** full path to esd-config."
12952      else
12953        if test -f conf.esdtest ; then
12954         :
12955        else
12956           echo "*** Could not run ESD test program, checking why..."
12957           CFLAGS="$CFLAGS $ESD_CFLAGS"
12958           LIBS="$LIBS $ESD_LIBS"
12959
12960
12961           ac_ext=c
12962 ac_cpp='$CPP $CPPFLAGS'
12963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12966
12967           cat >conftest.$ac_ext <<_ACEOF
12968 /* confdefs.h.  */
12969 _ACEOF
12970 cat confdefs.h >>conftest.$ac_ext
12971 cat >>conftest.$ac_ext <<_ACEOF
12972 /* end confdefs.h.  */
12973
12974 #include <stdio.h>
12975 #include <esd.h>
12976
12977 int
12978 main ()
12979 {
12980  return 0;
12981   ;
12982   return 0;
12983 }
12984 _ACEOF
12985 rm -f conftest.$ac_objext conftest$ac_exeext
12986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12987   (eval $ac_link) 2>conftest.er1
12988   ac_status=$?
12989   grep -v '^ *+' conftest.er1 >conftest.err
12990   rm -f conftest.er1
12991   cat conftest.err >&5
12992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993   (exit $ac_status); } &&
12994          { ac_try='test -z "$ac_c_werror_flag"
12995                          || test ! -s conftest.err'
12996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997   (eval $ac_try) 2>&5
12998   ac_status=$?
12999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000   (exit $ac_status); }; } &&
13001          { ac_try='test -s conftest$ac_exeext'
13002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13003   (eval $ac_try) 2>&5
13004   ac_status=$?
13005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006   (exit $ac_status); }; }; then
13007    echo "*** The test program compiled, but did not run. This usually means"
13008           echo "*** that the run-time linker is not finding ESD or finding the wrong"
13009           echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
13010           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13011           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13012           echo "*** is required on your system"
13013           echo "***"
13014           echo "*** If you have an old version installed, it is best to remove it, although"
13015           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13016 else
13017   echo "$as_me: failed program was:" >&5
13018 sed 's/^/| /' conftest.$ac_ext >&5
13019
13020  echo "*** The test program failed to compile or link. See the file config.log for the"
13021           echo "*** exact error that occured. This usually means ESD was incorrectly installed"
13022           echo "*** or that you have moved ESD since it was installed. In the latter case, you"
13023           echo "*** may want to edit the esd-config script: $ESD_CONFIG"
13024 fi
13025 rm -f conftest.err conftest.$ac_objext \
13026       conftest$ac_exeext conftest.$ac_ext
13027           CFLAGS="$ac_save_CFLAGS"
13028           LIBS="$ac_save_LIBS"
13029           ac_ext=c
13030 ac_cpp='$CPP $CPPFLAGS'
13031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13034
13035        fi
13036      fi
13037      ESD_CFLAGS=""
13038      ESD_LIBS=""
13039      :
13040   fi
13041
13042
13043   rm -f conf.esdtest
13044
13045   CFLAGS=$KEEPCFLAGS
13046   LIBS=$KEEPLIBS
13047   LDFLAGS=$KEEPLDFLAGS
13048   if test "x$no_esd" = x; then
13049         EXTRADEFS="$EXTRADEFS -DAU_ESD"
13050     SYSEXTRAS="$SYSEXTRAS esd_a.c"
13051     for f in $ESD_CFLAGS; do
13052     case ".$f" in
13053         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
13054         *)              CFLAGS="$CPPFLAGS $f" ;;
13055     esac
13056 done
13057
13058     LIBS="$LIBS $ESD_LIBS"
13059   else
13060     { echo "$as_me:$LINENO: WARNING: EsounD: Couldn't configure" >&5
13061 echo "$as_me: WARNING: EsounD: Couldn't configure" >&2;}
13062   fi
13063 else
13064   echo "$as_me:$LINENO: result: no" >&5
13065 echo "${ECHO_T}no" >&6
13066 fi
13067
13068 echo "$as_me:$LINENO: checking enable_audio=portaudio" >&5
13069 echo $ECHO_N "checking enable_audio=portaudio... $ECHO_C" >&6
13070 if test "x$au_enable_portaudio" = xyes; then
13071   echo "$as_me:$LINENO: result: yes" >&5
13072 echo "${ECHO_T}yes" >&6
13073   if test "x$CYGNUS" = xyes ||test "x$MSYS" = xyes; then
13074         SYSEXTRAS="$SYSEXTRAS portaudio_a.c w32_portaudio_dll.c"
13075         EXTRALIBS="$EXTRALIBS -lportaudio"
13076         EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO -DAU_PORTAUDIO_DLL"
13077   else
13078         SYSEXTRAS="$SYSEXTRAS portaudio_a.c"
13079         EXTRALIBS="$EXTRALIBS -lportaudio"
13080         EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO"
13081   fi
13082 else
13083   echo "$as_me:$LINENO: result: no" >&5
13084 echo "${ECHO_T}no" >&6
13085 fi
13086
13087 echo "$as_me:$LINENO: checking enable_audio=jack" >&5
13088 echo $ECHO_N "checking enable_audio=jack... $ECHO_C" >&6
13089 if test "x$au_enable_jack" = xyes; then
13090   echo "$as_me:$LINENO: result: yes" >&5
13091 echo "${ECHO_T}yes" >&6
13092   SYSEXTRAS="$SYSEXTRAS jack_a.c"
13093   EXTRALIBS="$EXTRALIBS $(pkg-config --libs jack)"
13094   EXTRADEFS="$EXTRADEFS -DAU_JACK $(pkg-config --cflags jack)"
13095 else
13096   echo "$as_me:$LINENO: result: no" >&5
13097 echo "${ECHO_T}no" >&6
13098 fi
13099
13100 echo "$as_me:$LINENO: checking enable_audio=ao" >&5
13101 echo $ECHO_N "checking enable_audio=ao... $ECHO_C" >&6
13102 if test "x$au_enable_ao" = xyes; then
13103   echo "$as_me:$LINENO: result: yes, configuring ao" >&5
13104 echo "${ECHO_T}yes, configuring ao" >&6
13105
13106 # Check whether --with-ao or --without-ao was given.
13107 if test "${with_ao+set}" = set; then
13108   withval="$with_ao"
13109   ao_prefix="$withval"
13110 else
13111   ao_prefix=""
13112 fi;
13113
13114 # Check whether --with-ao-libraries or --without-ao-libraries was given.
13115 if test "${with_ao_libraries+set}" = set; then
13116   withval="$with_ao_libraries"
13117   ao_libraries="$withval"
13118 else
13119   ao_libraries=""
13120 fi;
13121
13122 # Check whether --with-ao-includes or --without-ao-includes was given.
13123 if test "${with_ao_includes+set}" = set; then
13124   withval="$with_ao_includes"
13125   ao_includes="$withval"
13126 else
13127   ao_includes=""
13128 fi;
13129 # Check whether --enable-aotest or --disable-aotest was given.
13130 if test "${enable_aotest+set}" = set; then
13131   enableval="$enable_aotest"
13132
13133 else
13134   enable_aotest=yes
13135 fi;
13136
13137
13138   if test "x$ao_libraries" != "x" ; then
13139     AO_LIBS="-L$ao_libraries"
13140   elif test "x$ao_prefix" != "x"; then
13141     AO_LIBS="-L$ao_prefix/lib"
13142   elif test "x$prefix" != "xNONE"; then
13143     AO_LIBS="-L$prefix/lib"
13144   fi
13145
13146   if test "x$ao_includes" != "x" ; then
13147     AO_CFLAGS="-I$ao_includes"
13148   elif test "x$ao_prefix" != "x"; then
13149     AO_CFLAGS="-I$ao_prefix/include"
13150   elif test "x$prefix" != "xNONE"; then
13151     AO_CFLAGS="-I$prefix/include"
13152   fi
13153
13154   # see where dl* and friends live
13155
13156 for ac_func in dlopen
13157 do
13158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13159 echo "$as_me:$LINENO: checking for $ac_func" >&5
13160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13161 if eval "test \"\${$as_ac_var+set}\" = set"; then
13162   echo $ECHO_N "(cached) $ECHO_C" >&6
13163 else
13164   cat >conftest.$ac_ext <<_ACEOF
13165 /* confdefs.h.  */
13166 _ACEOF
13167 cat confdefs.h >>conftest.$ac_ext
13168 cat >>conftest.$ac_ext <<_ACEOF
13169 /* end confdefs.h.  */
13170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13171    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13172 #define $ac_func innocuous_$ac_func
13173
13174 /* System header to define __stub macros and hopefully few prototypes,
13175     which can conflict with char $ac_func (); below.
13176     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13177     <limits.h> exists even on freestanding compilers.  */
13178
13179 #ifdef __STDC__
13180 # include <limits.h>
13181 #else
13182 # include <assert.h>
13183 #endif
13184
13185 #undef $ac_func
13186
13187 /* Override any gcc2 internal prototype to avoid an error.  */
13188 #ifdef __cplusplus
13189 extern "C"
13190 {
13191 #endif
13192 /* We use char because int might match the return type of a gcc2
13193    builtin and then its argument prototype would still apply.  */
13194 char $ac_func ();
13195 /* The GNU C library defines this for functions which it implements
13196     to always fail with ENOSYS.  Some functions are actually named
13197     something starting with __ and the normal name is an alias.  */
13198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13199 choke me
13200 #else
13201 char (*f) () = $ac_func;
13202 #endif
13203 #ifdef __cplusplus
13204 }
13205 #endif
13206
13207 int
13208 main ()
13209 {
13210 return f != $ac_func;
13211   ;
13212   return 0;
13213 }
13214 _ACEOF
13215 rm -f conftest.$ac_objext conftest$ac_exeext
13216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13217   (eval $ac_link) 2>conftest.er1
13218   ac_status=$?
13219   grep -v '^ *+' conftest.er1 >conftest.err
13220   rm -f conftest.er1
13221   cat conftest.err >&5
13222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223   (exit $ac_status); } &&
13224          { ac_try='test -z "$ac_c_werror_flag"
13225                          || test ! -s conftest.err'
13226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13227   (eval $ac_try) 2>&5
13228   ac_status=$?
13229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230   (exit $ac_status); }; } &&
13231          { ac_try='test -s conftest$ac_exeext'
13232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13233   (eval $ac_try) 2>&5
13234   ac_status=$?
13235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236   (exit $ac_status); }; }; then
13237   eval "$as_ac_var=yes"
13238 else
13239   echo "$as_me: failed program was:" >&5
13240 sed 's/^/| /' conftest.$ac_ext >&5
13241
13242 eval "$as_ac_var=no"
13243 fi
13244 rm -f conftest.err conftest.$ac_objext \
13245       conftest$ac_exeext conftest.$ac_ext
13246 fi
13247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13248 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13249 if test `eval echo '${'$as_ac_var'}'` = yes; then
13250   cat >>confdefs.h <<_ACEOF
13251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13252 _ACEOF
13253  AO_DL_LIBS=""
13254 else
13255
13256     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13257 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13258 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13259   echo $ECHO_N "(cached) $ECHO_C" >&6
13260 else
13261   ac_check_lib_save_LIBS=$LIBS
13262 LIBS="-ldl  $LIBS"
13263 cat >conftest.$ac_ext <<_ACEOF
13264 /* confdefs.h.  */
13265 _ACEOF
13266 cat confdefs.h >>conftest.$ac_ext
13267 cat >>conftest.$ac_ext <<_ACEOF
13268 /* end confdefs.h.  */
13269
13270 /* Override any gcc2 internal prototype to avoid an error.  */
13271 #ifdef __cplusplus
13272 extern "C"
13273 #endif
13274 /* We use char because int might match the return type of a gcc2
13275    builtin and then its argument prototype would still apply.  */
13276 char dlopen ();
13277 int
13278 main ()
13279 {
13280 dlopen ();
13281   ;
13282   return 0;
13283 }
13284 _ACEOF
13285 rm -f conftest.$ac_objext conftest$ac_exeext
13286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13287   (eval $ac_link) 2>conftest.er1
13288   ac_status=$?
13289   grep -v '^ *+' conftest.er1 >conftest.err
13290   rm -f conftest.er1
13291   cat conftest.err >&5
13292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293   (exit $ac_status); } &&
13294          { ac_try='test -z "$ac_c_werror_flag"
13295                          || test ! -s conftest.err'
13296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297   (eval $ac_try) 2>&5
13298   ac_status=$?
13299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300   (exit $ac_status); }; } &&
13301          { ac_try='test -s conftest$ac_exeext'
13302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303   (eval $ac_try) 2>&5
13304   ac_status=$?
13305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306   (exit $ac_status); }; }; then
13307   ac_cv_lib_dl_dlopen=yes
13308 else
13309   echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13311
13312 ac_cv_lib_dl_dlopen=no
13313 fi
13314 rm -f conftest.err conftest.$ac_objext \
13315       conftest$ac_exeext conftest.$ac_ext
13316 LIBS=$ac_check_lib_save_LIBS
13317 fi
13318 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13319 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13320 if test $ac_cv_lib_dl_dlopen = yes; then
13321   AO_DL_LIBS="-ldl"
13322 else
13323
13324       { echo "$as_me:$LINENO: WARNING: could not find dlopen() needed by libao sound drivers
13325       your system may not be supported." >&5
13326 echo "$as_me: WARNING: could not find dlopen() needed by libao sound drivers
13327       your system may not be supported." >&2;}
13328
13329 fi
13330
13331
13332 fi
13333 done
13334
13335
13336   AO_LIBS="$AO_LIBS -lao $AO_DL_LIBS"
13337
13338   echo "$as_me:$LINENO: checking for ao" >&5
13339 echo $ECHO_N "checking for ao... $ECHO_C" >&6
13340   no_ao=""
13341
13342
13343   if test "x$enable_aotest" = "xyes" ; then
13344     ac_save_CFLAGS="$CFLAGS"
13345     ac_save_LIBS="$LIBS"
13346     CFLAGS="$CFLAGS $AO_CFLAGS"
13347     LIBS="$LIBS $AO_LIBS"
13348       rm -f conf.aotest
13349       if test "$cross_compiling" = yes; then
13350   echo $ac_n "cross compiling; assumed OK... $ac_c"
13351 else
13352   cat >conftest.$ac_ext <<_ACEOF
13353 /* confdefs.h.  */
13354 _ACEOF
13355 cat confdefs.h >>conftest.$ac_ext
13356 cat >>conftest.$ac_ext <<_ACEOF
13357 /* end confdefs.h.  */
13358
13359 #include <stdio.h>
13360 #include <stdlib.h>
13361 #include <string.h>
13362 #include <ao/ao.h>
13363
13364 int main ()
13365 {
13366   system("touch conf.aotest");
13367   return 0;
13368 }
13369
13370
13371 _ACEOF
13372 rm -f conftest$ac_exeext
13373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13374   (eval $ac_link) 2>&5
13375   ac_status=$?
13376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13379   (eval $ac_try) 2>&5
13380   ac_status=$?
13381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382   (exit $ac_status); }; }; then
13383   :
13384 else
13385   echo "$as_me: program exited with status $ac_status" >&5
13386 echo "$as_me: failed program was:" >&5
13387 sed 's/^/| /' conftest.$ac_ext >&5
13388
13389 ( exit $ac_status )
13390 no_ao=yes
13391 fi
13392 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13393 fi
13394        CFLAGS="$ac_save_CFLAGS"
13395        LIBS="$ac_save_LIBS"
13396   fi
13397
13398   if test "x$no_ao" = "x" ; then
13399      echo "$as_me:$LINENO: result: yes" >&5
13400 echo "${ECHO_T}yes" >&6
13401      :
13402   else
13403      echo "$as_me:$LINENO: result: no" >&5
13404 echo "${ECHO_T}no" >&6
13405      if test -f conf.aotest ; then
13406        :
13407      else
13408        echo "*** Could not run ao test program, checking why..."
13409        CFLAGS="$CFLAGS $AO_CFLAGS"
13410        LIBS="$LIBS $AO_LIBS"
13411        cat >conftest.$ac_ext <<_ACEOF
13412 /* confdefs.h.  */
13413 _ACEOF
13414 cat confdefs.h >>conftest.$ac_ext
13415 cat >>conftest.$ac_ext <<_ACEOF
13416 /* end confdefs.h.  */
13417
13418 #include <stdio.h>
13419 #include <ao/ao.h>
13420
13421 int
13422 main ()
13423 {
13424  return 0;
13425   ;
13426   return 0;
13427 }
13428 _ACEOF
13429 rm -f conftest.$ac_objext conftest$ac_exeext
13430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13431   (eval $ac_link) 2>conftest.er1
13432   ac_status=$?
13433   grep -v '^ *+' conftest.er1 >conftest.err
13434   rm -f conftest.er1
13435   cat conftest.err >&5
13436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437   (exit $ac_status); } &&
13438          { ac_try='test -z "$ac_c_werror_flag"
13439                          || test ! -s conftest.err'
13440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13441   (eval $ac_try) 2>&5
13442   ac_status=$?
13443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444   (exit $ac_status); }; } &&
13445          { ac_try='test -s conftest$ac_exeext'
13446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13447   (eval $ac_try) 2>&5
13448   ac_status=$?
13449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450   (exit $ac_status); }; }; then
13451    echo "*** The test program compiled, but did not run. This usually means"
13452        echo "*** that the run-time linker is not finding ao or finding the wrong"
13453        echo "*** version of ao. If it is not finding ao, you'll need to set your"
13454        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13455        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13456        echo "*** is required on your system"
13457        echo "***"
13458        echo "*** If you have an old version installed, it is best to remove it, although"
13459        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13460 else
13461   echo "$as_me: failed program was:" >&5
13462 sed 's/^/| /' conftest.$ac_ext >&5
13463
13464  echo "*** The test program failed to compile or link. See the file config.log for the"
13465        echo "*** exact error that occured. This usually means ao was incorrectly installed"
13466        echo "*** or that you have moved ao since it was installed."
13467 fi
13468 rm -f conftest.err conftest.$ac_objext \
13469       conftest$ac_exeext conftest.$ac_ext
13470        CFLAGS="$ac_save_CFLAGS"
13471        LIBS="$ac_save_LIBS"
13472      fi
13473      AO_CFLAGS=""
13474      AO_LIBS=""
13475      :
13476   fi
13477
13478
13479   rm -f conf.aotest
13480
13481   if test "x$no_ao" = "x" ; then
13482     # AC_MSG_RESULT(yes)
13483     EXTRADEFS="$EXTRADEFS -DAU_AO"
13484     SYSEXTRAS="$SYSEXTRAS ao_a.c"
13485     for f in $AO_CFLAGS; do
13486     case ".$f" in
13487         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
13488         *)              CFLAGS="$CPPFLAGS $f" ;;
13489     esac
13490 done
13491
13492     LIBS="$LIBS $AO_LIBS"
13493   else
13494     { echo "$as_me:$LINENO: WARNING: Couldn't configure libao." >&5
13495 echo "$as_me: WARNING: Couldn't configure libao." >&2;}
13496   fi
13497 else
13498   echo "$as_me:$LINENO: result: no" >&5
13499 echo "${ECHO_T}no" >&6
13500 fi
13501
13502 echo "$as_me:$LINENO: checking enable_audio=vorbis" >&5
13503 echo $ECHO_N "checking enable_audio=vorbis... $ECHO_C" >&6
13504 if test "x$au_enable_vorbis" = xyes; then
13505   echo "$as_me:$LINENO: result: yes, configuring vorbis" >&5
13506 echo "${ECHO_T}yes, configuring vorbis" >&6
13507
13508 # Check whether --with-ogg or --without-ogg was given.
13509 if test "${with_ogg+set}" = set; then
13510   withval="$with_ogg"
13511   ogg_prefix="$withval"
13512 else
13513   ogg_prefix=""
13514 fi;
13515
13516 # Check whether --with-ogg-libraries or --without-ogg-libraries was given.
13517 if test "${with_ogg_libraries+set}" = set; then
13518   withval="$with_ogg_libraries"
13519   ogg_libraries="$withval"
13520 else
13521   ogg_libraries=""
13522 fi;
13523
13524 # Check whether --with-ogg-includes or --without-ogg-includes was given.
13525 if test "${with_ogg_includes+set}" = set; then
13526   withval="$with_ogg_includes"
13527   ogg_includes="$withval"
13528 else
13529   ogg_includes=""
13530 fi;
13531 # Check whether --enable-oggtest or --disable-oggtest was given.
13532 if test "${enable_oggtest+set}" = set; then
13533   enableval="$enable_oggtest"
13534
13535 else
13536   enable_oggtest=yes
13537 fi;
13538
13539   if test "x$ogg_libraries" != "x" ; then
13540     OGG_LIBS="-L$ogg_libraries"
13541   elif test "x$ogg_prefix" != "x" ; then
13542     OGG_LIBS="-L$ogg_prefix/lib"
13543   elif test "x$prefix" != "xNONE" ; then
13544     OGG_LIBS="-L$prefix/lib"
13545   fi
13546
13547   OGG_LIBS="$OGG_LIBS -logg"
13548
13549   if test "x$ogg_includes" != "x" ; then
13550     OGG_CFLAGS="-I$ogg_includes"
13551   elif test "x$ogg_prefix" != "x" ; then
13552     OGG_CFLAGS="-I$ogg_prefix/include"
13553   elif test "x$prefix" != "xNONE"; then
13554     OGG_CFLAGS="-I$prefix/include"
13555   fi
13556
13557   echo "$as_me:$LINENO: checking for Ogg" >&5
13558 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6
13559   no_ogg=""
13560
13561
13562   if test "x$enable_oggtest" = "xyes" ; then
13563     ac_save_CFLAGS="$CFLAGS"
13564     ac_save_LIBS="$LIBS"
13565     CFLAGS="$CFLAGS $OGG_CFLAGS"
13566     LIBS="$LIBS $OGG_LIBS"
13567       rm -f conf.oggtest
13568       if test "$cross_compiling" = yes; then
13569   echo $ac_n "cross compiling; assumed OK... $ac_c"
13570 else
13571   cat >conftest.$ac_ext <<_ACEOF
13572 /* confdefs.h.  */
13573 _ACEOF
13574 cat confdefs.h >>conftest.$ac_ext
13575 cat >>conftest.$ac_ext <<_ACEOF
13576 /* end confdefs.h.  */
13577
13578 #include <stdio.h>
13579 #include <stdlib.h>
13580 #include <string.h>
13581 #include <ogg/ogg.h>
13582
13583 int main ()
13584 {
13585   system("touch conf.oggtest");
13586   return 0;
13587 }
13588
13589
13590 _ACEOF
13591 rm -f conftest$ac_exeext
13592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13593   (eval $ac_link) 2>&5
13594   ac_status=$?
13595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13598   (eval $ac_try) 2>&5
13599   ac_status=$?
13600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601   (exit $ac_status); }; }; then
13602   :
13603 else
13604   echo "$as_me: program exited with status $ac_status" >&5
13605 echo "$as_me: failed program was:" >&5
13606 sed 's/^/| /' conftest.$ac_ext >&5
13607
13608 ( exit $ac_status )
13609 no_ogg=yes
13610 fi
13611 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13612 fi
13613        CFLAGS="$ac_save_CFLAGS"
13614        LIBS="$ac_save_LIBS"
13615   fi
13616
13617   if test "x$no_ogg" = "x" ; then
13618      echo "$as_me:$LINENO: result: yes" >&5
13619 echo "${ECHO_T}yes" >&6
13620
13621
13622 # Check whether --with-vorbis or --without-vorbis was given.
13623 if test "${with_vorbis+set}" = set; then
13624   withval="$with_vorbis"
13625   vorbis_prefix="$withval"
13626 else
13627   vorbis_prefix=""
13628 fi;
13629
13630 # Check whether --with-vorbis-libraries or --without-vorbis-libraries was given.
13631 if test "${with_vorbis_libraries+set}" = set; then
13632   withval="$with_vorbis_libraries"
13633   vorbis_libraries="$withval"
13634 else
13635   vorbis_libraries=""
13636 fi;
13637
13638 # Check whether --with-vorbis-includes or --without-vorbis-includes was given.
13639 if test "${with_vorbis_includes+set}" = set; then
13640   withval="$with_vorbis_includes"
13641   vorbis_includes="$withval"
13642 else
13643   vorbis_includes=""
13644 fi;
13645 # Check whether --enable-vorbistest or --disable-vorbistest was given.
13646 if test "${enable_vorbistest+set}" = set; then
13647   enableval="$enable_vorbistest"
13648
13649 else
13650   enable_vorbistest=yes
13651 fi;
13652
13653   if test "x$vorbis_libraries" != "x" ; then
13654     VORBIS_LIBS="-L$vorbis_libraries"
13655   elif test "x$vorbis_prefix" != "x" ; then
13656     VORBIS_LIBS="-L$vorbis_prefix/lib"
13657   elif test "x$prefix" != "xNONE"; then
13658     VORBIS_LIBS="-L$prefix/lib"
13659   fi
13660
13661   VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
13662   VORBISFILE_LIBS="-lvorbisfile"
13663   VORBISENC_LIBS="-lvorbisenc"
13664
13665   if test "x$vorbis_includes" != "x" ; then
13666     VORBIS_CFLAGS="-I$vorbis_includes"
13667   elif test "x$vorbis_prefix" != "x" ; then
13668     VORBIS_CFLAGS="-I$vorbis_prefix/include"
13669   elif test "x$prefix" != "xNONE"; then
13670     VORBIS_CFLAGS="-I$prefix/include"
13671   fi
13672
13673
13674   echo "$as_me:$LINENO: checking for Vorbis" >&5
13675 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6
13676   no_vorbis=""
13677
13678
13679   if test "x$enable_vorbistest" = "xyes" ; then
13680     ac_save_CFLAGS="$CFLAGS"
13681     ac_save_LIBS="$LIBS"
13682     CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
13683     LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
13684       rm -f conf.vorbistest
13685       if test "$cross_compiling" = yes; then
13686   echo $ac_n "cross compiling; assumed OK... $ac_c"
13687 else
13688   cat >conftest.$ac_ext <<_ACEOF
13689 /* confdefs.h.  */
13690 _ACEOF
13691 cat confdefs.h >>conftest.$ac_ext
13692 cat >>conftest.$ac_ext <<_ACEOF
13693 /* end confdefs.h.  */
13694
13695 #include <stdio.h>
13696 #include <stdlib.h>
13697 #include <string.h>
13698 #include <vorbis/codec.h>
13699
13700 int main ()
13701 {
13702   system("touch conf.vorbistest");
13703   return 0;
13704 }
13705
13706
13707 _ACEOF
13708 rm -f conftest$ac_exeext
13709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13710   (eval $ac_link) 2>&5
13711   ac_status=$?
13712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13715   (eval $ac_try) 2>&5
13716   ac_status=$?
13717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718   (exit $ac_status); }; }; then
13719   :
13720 else
13721   echo "$as_me: program exited with status $ac_status" >&5
13722 echo "$as_me: failed program was:" >&5
13723 sed 's/^/| /' conftest.$ac_ext >&5
13724
13725 ( exit $ac_status )
13726 no_vorbis=yes
13727 fi
13728 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13729 fi
13730        CFLAGS="$ac_save_CFLAGS"
13731        LIBS="$ac_save_LIBS"
13732   fi
13733
13734   if test "x$no_vorbis" = "x" ; then
13735      echo "$as_me:$LINENO: result: yes" >&5
13736 echo "${ECHO_T}yes" >&6
13737
13738       have_vorbis=yes
13739       SYSEXTRAS="$SYSEXTRAS vorbis_a.c"
13740       EXTRADEFS="$EXTRADEFS -DAU_VORBIS $OGG_CFLAGS $VORBIS_CFLAGS"
13741       EXTRALIBS="$EXTRALIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
13742       if test "x$CYGNUS" = "xyes"; then
13743       EXTRADEFS="-DAU_VORBIS_DLL $EXTRADEFS"
13744           SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
13745       fi
13746       if test "x$MSYS" = "xyes"; then
13747       EXTRADEFS="-DAU_VORBIS_DLL $EXTRADEFS"
13748           SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
13749       fi
13750
13751   else
13752      echo "$as_me:$LINENO: result: no" >&5
13753 echo "${ECHO_T}no" >&6
13754      if test -f conf.vorbistest ; then
13755        :
13756      else
13757        echo "*** Could not run Vorbis test program, checking why..."
13758        CFLAGS="$CFLAGS $VORBIS_CFLAGS"
13759        LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
13760        cat >conftest.$ac_ext <<_ACEOF
13761 /* confdefs.h.  */
13762 _ACEOF
13763 cat confdefs.h >>conftest.$ac_ext
13764 cat >>conftest.$ac_ext <<_ACEOF
13765 /* end confdefs.h.  */
13766
13767 #include <stdio.h>
13768 #include <vorbis/codec.h>
13769
13770 int
13771 main ()
13772 {
13773  return 0;
13774   ;
13775   return 0;
13776 }
13777 _ACEOF
13778 rm -f conftest.$ac_objext conftest$ac_exeext
13779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13780   (eval $ac_link) 2>conftest.er1
13781   ac_status=$?
13782   grep -v '^ *+' conftest.er1 >conftest.err
13783   rm -f conftest.er1
13784   cat conftest.err >&5
13785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786   (exit $ac_status); } &&
13787          { ac_try='test -z "$ac_c_werror_flag"
13788                          || test ! -s conftest.err'
13789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790   (eval $ac_try) 2>&5
13791   ac_status=$?
13792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793   (exit $ac_status); }; } &&
13794          { ac_try='test -s conftest$ac_exeext'
13795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13796   (eval $ac_try) 2>&5
13797   ac_status=$?
13798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799   (exit $ac_status); }; }; then
13800    echo "*** The test program compiled, but did not run. This usually means"
13801        echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
13802        echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
13803        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13804        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13805        echo "*** is required on your system"
13806        echo "***"
13807        echo "*** If you have an old version installed, it is best to remove it, although"
13808        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13809 else
13810   echo "$as_me: failed program was:" >&5
13811 sed 's/^/| /' conftest.$ac_ext >&5
13812
13813  echo "*** The test program failed to compile or link. See the file config.log for the"
13814        echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
13815        echo "*** or that you have moved Vorbis since it was installed."
13816 fi
13817 rm -f conftest.err conftest.$ac_objext \
13818       conftest$ac_exeext conftest.$ac_ext
13819        CFLAGS="$ac_save_CFLAGS"
13820        LIBS="$ac_save_LIBS"
13821      fi
13822      VORBIS_CFLAGS=""
13823      VORBIS_LIBS=""
13824      VORBISFILE_LIBS=""
13825      VORBISENC_LIBS=""
13826
13827       { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis, but ogg is there (???)" >&5
13828 echo "$as_me: WARNING: Unable to configure vorbis, but ogg is there (???)" >&2;}
13829
13830   fi
13831
13832
13833
13834
13835   rm -f conf.vorbistest
13836
13837
13838   else
13839      echo "$as_me:$LINENO: result: no" >&5
13840 echo "${ECHO_T}no" >&6
13841      if test -f conf.oggtest ; then
13842        :
13843      else
13844        echo "*** Could not run Ogg test program, checking why..."
13845        CFLAGS="$CFLAGS $OGG_CFLAGS"
13846        LIBS="$LIBS $OGG_LIBS"
13847        cat >conftest.$ac_ext <<_ACEOF
13848 /* confdefs.h.  */
13849 _ACEOF
13850 cat confdefs.h >>conftest.$ac_ext
13851 cat >>conftest.$ac_ext <<_ACEOF
13852 /* end confdefs.h.  */
13853
13854 #include <stdio.h>
13855 #include <ogg/ogg.h>
13856
13857 int
13858 main ()
13859 {
13860  return 0;
13861   ;
13862   return 0;
13863 }
13864 _ACEOF
13865 rm -f conftest.$ac_objext conftest$ac_exeext
13866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13867   (eval $ac_link) 2>conftest.er1
13868   ac_status=$?
13869   grep -v '^ *+' conftest.er1 >conftest.err
13870   rm -f conftest.er1
13871   cat conftest.err >&5
13872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873   (exit $ac_status); } &&
13874          { ac_try='test -z "$ac_c_werror_flag"
13875                          || test ! -s conftest.err'
13876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13877   (eval $ac_try) 2>&5
13878   ac_status=$?
13879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880   (exit $ac_status); }; } &&
13881          { ac_try='test -s conftest$ac_exeext'
13882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883   (eval $ac_try) 2>&5
13884   ac_status=$?
13885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886   (exit $ac_status); }; }; then
13887    echo "*** The test program compiled, but did not run. This usually means"
13888        echo "*** that the run-time linker is not finding Ogg or finding the wrong"
13889        echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
13890        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13891        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13892        echo "*** is required on your system"
13893        echo "***"
13894        echo "*** If you have an old version installed, it is best to remove it, although"
13895        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13896 else
13897   echo "$as_me: failed program was:" >&5
13898 sed 's/^/| /' conftest.$ac_ext >&5
13899
13900  echo "*** The test program failed to compile or link. See the file config.log for the"
13901        echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
13902        echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
13903        echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
13904 fi
13905 rm -f conftest.err conftest.$ac_objext \
13906       conftest$ac_exeext conftest.$ac_ext
13907        CFLAGS="$ac_save_CFLAGS"
13908        LIBS="$ac_save_LIBS"
13909      fi
13910      OGG_CFLAGS=""
13911      OGG_LIBS=""
13912
13913     { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis!" >&5
13914 echo "$as_me: WARNING: Unable to configure vorbis!" >&2;}
13915     have_vorbis=no
13916
13917   fi
13918
13919
13920   rm -f conf.oggtest
13921
13922 else
13923   echo "$as_me:$LINENO: result: no" >&5
13924 echo "${ECHO_T}no" >&6
13925 fi
13926
13927 if test "x$CYGNUS" = xyes || test "x$MSYS" = xyes ; then
13928   echo "$as_me:$LINENO: checking enable_audio=flac" >&5
13929 echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6
13930   if test "x$au_enable_flac" = xyes; then
13931     echo "$as_me:$LINENO: result: yes, configuring flac" >&5
13932 echo "${ECHO_T}yes, configuring flac" >&6
13933     SYSEXTRAS="$SYSEXTRAS flac_a.c w32_libFLAC_dll.c w32_libOggFLAC_dll.c"
13934
13935 # Check whether --with-libFLAC or --without-libFLAC was given.
13936 if test "${with_libFLAC+set}" = set; then
13937   withval="$with_libFLAC"
13938   libFLAC_prefix="$withval"
13939 else
13940   libFLAC_prefix=""
13941 fi;
13942
13943 # Check whether --with-libFLAC-libraries or --without-libFLAC-libraries was given.
13944 if test "${with_libFLAC_libraries+set}" = set; then
13945   withval="$with_libFLAC_libraries"
13946   libFLAC_libraries="$withval"
13947 else
13948   libFLAC_libraries=""
13949 fi;
13950
13951 # Check whether --with-libFLAC-includes or --without-libFLAC-includes was given.
13952 if test "${with_libFLAC_includes+set}" = set; then
13953   withval="$with_libFLAC_includes"
13954   libFLAC_includes="$withval"
13955 else
13956   libFLAC_includes=""
13957 fi;
13958 # Check whether --enable-libFLACtest or --disable-libFLACtest was given.
13959 if test "${enable_libFLACtest+set}" = set; then
13960   enableval="$enable_libFLACtest"
13961
13962 else
13963   enable_libFLACtest=yes
13964 fi;
13965
13966   if test "x$libFLAC_libraries" != "x" ; then
13967     LIBFLAC_LIBS="-L$libFLAC_libraries"
13968   elif test "x$libFLAC_prefix" != "x" ; then
13969     LIBFLAC_LIBS="-L$libFLAC_prefix/lib"
13970   elif test "x$prefix" != "xNONE" ; then
13971     LIBFLAC_LIBS="-L$prefix/lib"
13972   fi
13973
13974   LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm"
13975
13976   if test "x$libFLAC_includes" != "x" ; then
13977     LIBFLAC_CFLAGS="-I$libFLAC_includes"
13978   elif test "x$libFLAC_prefix" != "x" ; then
13979     LIBFLAC_CFLAGS="-I$libFLAC_prefix/include"
13980   elif test "$prefix" != "xNONE"; then
13981     LIBFLAC_CFLAGS="-I$prefix/include"
13982   fi
13983
13984   echo "$as_me:$LINENO: checking for libFLAC" >&5
13985 echo $ECHO_N "checking for libFLAC... $ECHO_C" >&6
13986   no_libFLAC=""
13987
13988
13989   if test "x$enable_libFLACtest" = "xyes" ; then
13990     ac_save_CFLAGS="$CFLAGS"
13991     ac_save_CXXFLAGS="$CXXFLAGS"
13992     ac_save_LIBS="$LIBS"
13993     CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
13994     CXXFLAGS="$CXXFLAGS $LIBFLAC_CFLAGS"
13995     LIBS="$LIBS $LIBFLAC_LIBS"
13996       rm -f conf.libFLACtest
13997       if test "$cross_compiling" = yes; then
13998   echo $ac_n "cross compiling; assumed OK... $ac_c"
13999 else
14000   cat >conftest.$ac_ext <<_ACEOF
14001 /* confdefs.h.  */
14002 _ACEOF
14003 cat confdefs.h >>conftest.$ac_ext
14004 cat >>conftest.$ac_ext <<_ACEOF
14005 /* end confdefs.h.  */
14006
14007 #include <stdio.h>
14008 #include <stdlib.h>
14009 #include <string.h>
14010 #include <FLAC/format.h>
14011
14012 int main ()
14013 {
14014   system("touch conf.libFLACtest");
14015   return 0;
14016 }
14017
14018
14019 _ACEOF
14020 rm -f conftest$ac_exeext
14021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14022   (eval $ac_link) 2>&5
14023   ac_status=$?
14024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027   (eval $ac_try) 2>&5
14028   ac_status=$?
14029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030   (exit $ac_status); }; }; then
14031   :
14032 else
14033   echo "$as_me: program exited with status $ac_status" >&5
14034 echo "$as_me: failed program was:" >&5
14035 sed 's/^/| /' conftest.$ac_ext >&5
14036
14037 ( exit $ac_status )
14038 no_libFLAC=yes
14039 fi
14040 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14041 fi
14042        CFLAGS="$ac_save_CFLAGS"
14043        LIBS="$ac_save_LIBS"
14044   fi
14045
14046   if test "x$no_libFLAC" = "x" ; then
14047      echo "$as_me:$LINENO: result: yes" >&5
14048 echo "${ECHO_T}yes" >&6
14049
14050       EXTRADEFS="$EXTRADEFS -DAU_FLAC -DAU_FLAC_DLL"
14051       for f in $LIBFLAC_CFLAGS; do
14052     case ".$f" in
14053         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14054         *)              CFLAGS="$CPPFLAGS $f" ;;
14055     esac
14056 done
14057
14058       LIBS="$LIBS $LIBFLAC_LIBS"
14059
14060   else
14061      echo "$as_me:$LINENO: result: no" >&5
14062 echo "${ECHO_T}no" >&6
14063      if test -f conf.libFLACtest ; then
14064        :
14065      else
14066        echo "*** Could not run libFLAC test program, checking why..."
14067        CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14068        LIBS="$LIBS $LIBFLAC_LIBS"
14069        cat >conftest.$ac_ext <<_ACEOF
14070 /* confdefs.h.  */
14071 _ACEOF
14072 cat confdefs.h >>conftest.$ac_ext
14073 cat >>conftest.$ac_ext <<_ACEOF
14074 /* end confdefs.h.  */
14075
14076 #include <stdio.h>
14077 #include <FLAC/format.h>
14078
14079 int
14080 main ()
14081 {
14082  return 0;
14083   ;
14084   return 0;
14085 }
14086 _ACEOF
14087 rm -f conftest.$ac_objext conftest$ac_exeext
14088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14089   (eval $ac_link) 2>conftest.er1
14090   ac_status=$?
14091   grep -v '^ *+' conftest.er1 >conftest.err
14092   rm -f conftest.er1
14093   cat conftest.err >&5
14094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095   (exit $ac_status); } &&
14096          { ac_try='test -z "$ac_c_werror_flag"
14097                          || test ! -s conftest.err'
14098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099   (eval $ac_try) 2>&5
14100   ac_status=$?
14101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102   (exit $ac_status); }; } &&
14103          { ac_try='test -s conftest$ac_exeext'
14104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14105   (eval $ac_try) 2>&5
14106   ac_status=$?
14107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108   (exit $ac_status); }; }; then
14109    echo "*** The test program compiled, but did not run. This usually means"
14110        echo "*** that the run-time linker is not finding libFLAC or finding the wrong"
14111        echo "*** version of libFLAC. If it is not finding libFLAC, you'll need to set your"
14112        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14113        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14114        echo "*** is required on your system"
14115        echo "***"
14116        echo "*** If you have an old version installed, it is best to remove it, although"
14117        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14118 else
14119   echo "$as_me: failed program was:" >&5
14120 sed 's/^/| /' conftest.$ac_ext >&5
14121
14122  echo "*** The test program failed to compile or link. See the file config.log for the"
14123        echo "*** exact error that occured. This usually means libFLAC was incorrectly installed"
14124        echo "*** or that you have moved libFLAC since it was installed. In the latter case, you"
14125        echo "*** may want to edit the libFLAC-config script: $LIBFLAC_CONFIG"
14126 fi
14127 rm -f conftest.err conftest.$ac_objext \
14128       conftest$ac_exeext conftest.$ac_ext
14129        CFLAGS="$ac_save_CFLAGS"
14130        LIBS="$ac_save_LIBS"
14131      fi
14132      LIBFLAC_CFLAGS=""
14133      LIBFLAC_LIBS=""
14134      :
14135   fi
14136
14137
14138   rm -f conf.libFLACtest
14139
14140
14141 # Check whether --with-libOggFLAC or --without-libOggFLAC was given.
14142 if test "${with_libOggFLAC+set}" = set; then
14143   withval="$with_libOggFLAC"
14144   libOggFLAC_prefix="$withval"
14145 else
14146   libOggFLAC_prefix=""
14147 fi;
14148
14149 # Check whether --with-libOggFLAC-libraries or --without-libOggFLAC-libraries was given.
14150 if test "${with_libOggFLAC_libraries+set}" = set; then
14151   withval="$with_libOggFLAC_libraries"
14152   libOggFLAC_libraries="$withval"
14153 else
14154   libOggFLAC_libraries=""
14155 fi;
14156
14157 # Check whether --with-libOggFLAC-includes or --without-libOggFLAC-includes was given.
14158 if test "${with_libOggFLAC_includes+set}" = set; then
14159   withval="$with_libOggFLAC_includes"
14160   libOggFLAC_includes="$withval"
14161 else
14162   libOggFLAC_includes=""
14163 fi;
14164 # Check whether --enable-libOggFLACtest or --disable-libOggFLACtest was given.
14165 if test "${enable_libOggFLACtest+set}" = set; then
14166   enableval="$enable_libOggFLACtest"
14167
14168 else
14169   enable_libOggFLACtest=yes
14170 fi;
14171
14172   if test "x$libOggFLAC_libraries" != "x" ; then
14173     LIBOGGFLAC_LIBS="-L$libOggFLAC_libraries"
14174   elif test "x$libOggFLAC_prefix" != "x" ; then
14175     LIBOGGFLAC_LIBS="-L$libOggFLAC_prefix/lib"
14176   elif test "x$prefix" != "xNONE" ; then
14177     LIBOGGFLAC_LIBS="-L$prefix/lib"
14178   fi
14179
14180   LIBOGGFLAC_LIBS="$LIBOGGFLAC_LIBS -lOggFLAC -lFLAC -lm"
14181
14182   if test "x$libOggFLAC_includes" != "x" ; then
14183     LIBOGGFLAC_CFLAGS="-I$libOggFLAC_includes"
14184   elif test "x$libOggFLAC_prefix" != "x" ; then
14185     LIBOGGFLAC_CFLAGS="-I$libOggFLAC_prefix/include"
14186   elif test "$prefix" != "xNONE"; then
14187     LIBOGGFLAC_CFLAGS="-I$prefix/include"
14188   fi
14189
14190   echo "$as_me:$LINENO: checking for libOggFLAC" >&5
14191 echo $ECHO_N "checking for libOggFLAC... $ECHO_C" >&6
14192   no_libOggFLAC=""
14193
14194
14195   if test "x$enable_libOggFLACtest" = "xyes" ; then
14196     ac_save_CFLAGS="$CFLAGS"
14197     ac_save_CXXFLAGS="$CXXFLAGS"
14198     ac_save_LIBS="$LIBS"
14199     CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14200     CXXFLAGS="$CXXFLAGS $LIBOGGFLAC_CFLAGS"
14201     LIBS="$LIBS $LIBOGGFLAC_LIBS"
14202       rm -f conf.libOggFLACtest
14203       if test "$cross_compiling" = yes; then
14204   echo $ac_n "cross compiling; assumed OK... $ac_c"
14205 else
14206   cat >conftest.$ac_ext <<_ACEOF
14207 /* confdefs.h.  */
14208 _ACEOF
14209 cat confdefs.h >>conftest.$ac_ext
14210 cat >>conftest.$ac_ext <<_ACEOF
14211 /* end confdefs.h.  */
14212
14213 #include <stdio.h>
14214 #include <stdlib.h>
14215 #include <string.h>
14216 #include <OggFLAC/stream_decoder.h>
14217
14218 int main ()
14219 {
14220   system("touch conf.libOggFLACtest");
14221   return 0;
14222 }
14223
14224
14225 _ACEOF
14226 rm -f conftest$ac_exeext
14227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14228   (eval $ac_link) 2>&5
14229   ac_status=$?
14230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233   (eval $ac_try) 2>&5
14234   ac_status=$?
14235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236   (exit $ac_status); }; }; then
14237   :
14238 else
14239   echo "$as_me: program exited with status $ac_status" >&5
14240 echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.$ac_ext >&5
14242
14243 ( exit $ac_status )
14244 no_libOggFLAC=yes
14245 fi
14246 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14247 fi
14248        CFLAGS="$ac_save_CFLAGS"
14249        LIBS="$ac_save_LIBS"
14250   fi
14251
14252   if test "x$no_libOggFLAC" = "x" ; then
14253      echo "$as_me:$LINENO: result: yes" >&5
14254 echo "${ECHO_T}yes" >&6
14255
14256       EXTRADEFS="$EXTRADEFS -DAU_OGGFLAC -DAU_OGGFLAC_DLL"
14257       for f in $LIBOGGFLAC_CFLAGS; do
14258     case ".$f" in
14259         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14260         *)              CFLAGS="$CPPFLAGS $f" ;;
14261     esac
14262 done
14263
14264       LIBS="$LIBS $LIBOGGFLAC_LIBS"
14265
14266   else
14267      echo "$as_me:$LINENO: result: no" >&5
14268 echo "${ECHO_T}no" >&6
14269      if test -f conf.libOggFLACtest ; then
14270        :
14271      else
14272        echo "*** Could not run libOggFLAC test program, checking why..."
14273        CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14274        LIBS="$LIBS $LIBOGGFLAC_LIBS"
14275        cat >conftest.$ac_ext <<_ACEOF
14276 /* confdefs.h.  */
14277 _ACEOF
14278 cat confdefs.h >>conftest.$ac_ext
14279 cat >>conftest.$ac_ext <<_ACEOF
14280 /* end confdefs.h.  */
14281
14282 #include <stdio.h>
14283 #include <OggFLAC/stream_decoder.h>
14284
14285 int
14286 main ()
14287 {
14288  return 0;
14289   ;
14290   return 0;
14291 }
14292 _ACEOF
14293 rm -f conftest.$ac_objext conftest$ac_exeext
14294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14295   (eval $ac_link) 2>conftest.er1
14296   ac_status=$?
14297   grep -v '^ *+' conftest.er1 >conftest.err
14298   rm -f conftest.er1
14299   cat conftest.err >&5
14300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301   (exit $ac_status); } &&
14302          { ac_try='test -z "$ac_c_werror_flag"
14303                          || test ! -s conftest.err'
14304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14305   (eval $ac_try) 2>&5
14306   ac_status=$?
14307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308   (exit $ac_status); }; } &&
14309          { ac_try='test -s conftest$ac_exeext'
14310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14311   (eval $ac_try) 2>&5
14312   ac_status=$?
14313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314   (exit $ac_status); }; }; then
14315    echo "*** The test program compiled, but did not run. This usually means"
14316        echo "*** that the run-time linker is not finding libOggFLAC or finding the wrong"
14317        echo "*** version of libOggFLAC. If it is not finding libOggFLAC, you'll need to set your"
14318        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14319        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14320        echo "*** is required on your system"
14321        echo "***"
14322        echo "*** If you have an old version installed, it is best to remove it, although"
14323        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14324 else
14325   echo "$as_me: failed program was:" >&5
14326 sed 's/^/| /' conftest.$ac_ext >&5
14327
14328  echo "*** The test program failed to compile or link. See the file config.log for the"
14329        echo "*** exact error that occured. This usually means libOggFLAC was incorrectly installed"
14330        echo "*** or that you have moved libOggFLAC since it was installed. In the latter case, you"
14331        echo "*** may want to edit the libOggFLAC-config script: $LIBOGGFLAC_CONFIG"
14332 fi
14333 rm -f conftest.err conftest.$ac_objext \
14334       conftest$ac_exeext conftest.$ac_ext
14335        CFLAGS="$ac_save_CFLAGS"
14336        LIBS="$ac_save_LIBS"
14337      fi
14338      LIBOGGFLAC_CFLAGS=""
14339      LIBOGGFLAC_LIBS=""
14340      :
14341   fi
14342
14343
14344   rm -f conf.libOggFLACtest
14345
14346   else
14347     echo "$as_me:$LINENO: result: no" >&5
14348 echo "${ECHO_T}no" >&6
14349   fi
14350 else
14351   echo "$as_me:$LINENO: checking enable_audio=flac" >&5
14352 echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6
14353   if test "x$au_enable_flac" = xyes; then
14354     echo "$as_me:$LINENO: result: yes, configuring flac" >&5
14355 echo "${ECHO_T}yes, configuring flac" >&6
14356     SYSEXTRAS="$SYSEXTRAS flac_a.c"
14357
14358 # Check whether --with-libFLAC or --without-libFLAC was given.
14359 if test "${with_libFLAC+set}" = set; then
14360   withval="$with_libFLAC"
14361   libFLAC_prefix="$withval"
14362 else
14363   libFLAC_prefix=""
14364 fi;
14365
14366 # Check whether --with-libFLAC-libraries or --without-libFLAC-libraries was given.
14367 if test "${with_libFLAC_libraries+set}" = set; then
14368   withval="$with_libFLAC_libraries"
14369   libFLAC_libraries="$withval"
14370 else
14371   libFLAC_libraries=""
14372 fi;
14373
14374 # Check whether --with-libFLAC-includes or --without-libFLAC-includes was given.
14375 if test "${with_libFLAC_includes+set}" = set; then
14376   withval="$with_libFLAC_includes"
14377   libFLAC_includes="$withval"
14378 else
14379   libFLAC_includes=""
14380 fi;
14381 # Check whether --enable-libFLACtest or --disable-libFLACtest was given.
14382 if test "${enable_libFLACtest+set}" = set; then
14383   enableval="$enable_libFLACtest"
14384
14385 else
14386   enable_libFLACtest=yes
14387 fi;
14388
14389   if test "x$libFLAC_libraries" != "x" ; then
14390     LIBFLAC_LIBS="-L$libFLAC_libraries"
14391   elif test "x$libFLAC_prefix" != "x" ; then
14392     LIBFLAC_LIBS="-L$libFLAC_prefix/lib"
14393   elif test "x$prefix" != "xNONE" ; then
14394     LIBFLAC_LIBS="-L$prefix/lib"
14395   fi
14396
14397   LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm"
14398
14399   if test "x$libFLAC_includes" != "x" ; then
14400     LIBFLAC_CFLAGS="-I$libFLAC_includes"
14401   elif test "x$libFLAC_prefix" != "x" ; then
14402     LIBFLAC_CFLAGS="-I$libFLAC_prefix/include"
14403   elif test "$prefix" != "xNONE"; then
14404     LIBFLAC_CFLAGS="-I$prefix/include"
14405   fi
14406
14407   echo "$as_me:$LINENO: checking for libFLAC" >&5
14408 echo $ECHO_N "checking for libFLAC... $ECHO_C" >&6
14409   no_libFLAC=""
14410
14411
14412   if test "x$enable_libFLACtest" = "xyes" ; then
14413     ac_save_CFLAGS="$CFLAGS"
14414     ac_save_CXXFLAGS="$CXXFLAGS"
14415     ac_save_LIBS="$LIBS"
14416     CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14417     CXXFLAGS="$CXXFLAGS $LIBFLAC_CFLAGS"
14418     LIBS="$LIBS $LIBFLAC_LIBS"
14419       rm -f conf.libFLACtest
14420       if test "$cross_compiling" = yes; then
14421   echo $ac_n "cross compiling; assumed OK... $ac_c"
14422 else
14423   cat >conftest.$ac_ext <<_ACEOF
14424 /* confdefs.h.  */
14425 _ACEOF
14426 cat confdefs.h >>conftest.$ac_ext
14427 cat >>conftest.$ac_ext <<_ACEOF
14428 /* end confdefs.h.  */
14429
14430 #include <stdio.h>
14431 #include <stdlib.h>
14432 #include <string.h>
14433 #include <FLAC/format.h>
14434
14435 int main ()
14436 {
14437   system("touch conf.libFLACtest");
14438   return 0;
14439 }
14440
14441
14442 _ACEOF
14443 rm -f conftest$ac_exeext
14444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14445   (eval $ac_link) 2>&5
14446   ac_status=$?
14447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450   (eval $ac_try) 2>&5
14451   ac_status=$?
14452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453   (exit $ac_status); }; }; then
14454   :
14455 else
14456   echo "$as_me: program exited with status $ac_status" >&5
14457 echo "$as_me: failed program was:" >&5
14458 sed 's/^/| /' conftest.$ac_ext >&5
14459
14460 ( exit $ac_status )
14461 no_libFLAC=yes
14462 fi
14463 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14464 fi
14465        CFLAGS="$ac_save_CFLAGS"
14466        LIBS="$ac_save_LIBS"
14467   fi
14468
14469   if test "x$no_libFLAC" = "x" ; then
14470      echo "$as_me:$LINENO: result: yes" >&5
14471 echo "${ECHO_T}yes" >&6
14472
14473       EXTRADEFS="$EXTRADEFS -DAU_FLAC"
14474       for f in $LIBFLAC_CFLAGS; do
14475     case ".$f" in
14476         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14477         *)              CFLAGS="$CPPFLAGS $f" ;;
14478     esac
14479 done
14480
14481       LIBS="$LIBS $LIBFLAC_LIBS"
14482
14483   else
14484      echo "$as_me:$LINENO: result: no" >&5
14485 echo "${ECHO_T}no" >&6
14486      if test -f conf.libFLACtest ; then
14487        :
14488      else
14489        echo "*** Could not run libFLAC test program, checking why..."
14490        CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14491        LIBS="$LIBS $LIBFLAC_LIBS"
14492        cat >conftest.$ac_ext <<_ACEOF
14493 /* confdefs.h.  */
14494 _ACEOF
14495 cat confdefs.h >>conftest.$ac_ext
14496 cat >>conftest.$ac_ext <<_ACEOF
14497 /* end confdefs.h.  */
14498
14499 #include <stdio.h>
14500 #include <FLAC/format.h>
14501
14502 int
14503 main ()
14504 {
14505  return 0;
14506   ;
14507   return 0;
14508 }
14509 _ACEOF
14510 rm -f conftest.$ac_objext conftest$ac_exeext
14511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14512   (eval $ac_link) 2>conftest.er1
14513   ac_status=$?
14514   grep -v '^ *+' conftest.er1 >conftest.err
14515   rm -f conftest.er1
14516   cat conftest.err >&5
14517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518   (exit $ac_status); } &&
14519          { ac_try='test -z "$ac_c_werror_flag"
14520                          || test ! -s conftest.err'
14521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14522   (eval $ac_try) 2>&5
14523   ac_status=$?
14524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525   (exit $ac_status); }; } &&
14526          { ac_try='test -s conftest$ac_exeext'
14527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528   (eval $ac_try) 2>&5
14529   ac_status=$?
14530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531   (exit $ac_status); }; }; then
14532    echo "*** The test program compiled, but did not run. This usually means"
14533        echo "*** that the run-time linker is not finding libFLAC or finding the wrong"
14534        echo "*** version of libFLAC. If it is not finding libFLAC, you'll need to set your"
14535        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14536        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14537        echo "*** is required on your system"
14538        echo "***"
14539        echo "*** If you have an old version installed, it is best to remove it, although"
14540        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14541 else
14542   echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14544
14545  echo "*** The test program failed to compile or link. See the file config.log for the"
14546        echo "*** exact error that occured. This usually means libFLAC was incorrectly installed"
14547        echo "*** or that you have moved libFLAC since it was installed. In the latter case, you"
14548        echo "*** may want to edit the libFLAC-config script: $LIBFLAC_CONFIG"
14549 fi
14550 rm -f conftest.err conftest.$ac_objext \
14551       conftest$ac_exeext conftest.$ac_ext
14552        CFLAGS="$ac_save_CFLAGS"
14553        LIBS="$ac_save_LIBS"
14554      fi
14555      LIBFLAC_CFLAGS=""
14556      LIBFLAC_LIBS=""
14557      :
14558   fi
14559
14560
14561   rm -f conf.libFLACtest
14562
14563
14564 # Check whether --with-libOggFLAC or --without-libOggFLAC was given.
14565 if test "${with_libOggFLAC+set}" = set; then
14566   withval="$with_libOggFLAC"
14567   libOggFLAC_prefix="$withval"
14568 else
14569   libOggFLAC_prefix=""
14570 fi;
14571
14572 # Check whether --with-libOggFLAC-libraries or --without-libOggFLAC-libraries was given.
14573 if test "${with_libOggFLAC_libraries+set}" = set; then
14574   withval="$with_libOggFLAC_libraries"
14575   libOggFLAC_libraries="$withval"
14576 else
14577   libOggFLAC_libraries=""
14578 fi;
14579
14580 # Check whether --with-libOggFLAC-includes or --without-libOggFLAC-includes was given.
14581 if test "${with_libOggFLAC_includes+set}" = set; then
14582   withval="$with_libOggFLAC_includes"
14583   libOggFLAC_includes="$withval"
14584 else
14585   libOggFLAC_includes=""
14586 fi;
14587 # Check whether --enable-libOggFLACtest or --disable-libOggFLACtest was given.
14588 if test "${enable_libOggFLACtest+set}" = set; then
14589   enableval="$enable_libOggFLACtest"
14590
14591 else
14592   enable_libOggFLACtest=yes
14593 fi;
14594
14595   if test "x$libOggFLAC_libraries" != "x" ; then
14596     LIBOGGFLAC_LIBS="-L$libOggFLAC_libraries"
14597   elif test "x$libOggFLAC_prefix" != "x" ; then
14598     LIBOGGFLAC_LIBS="-L$libOggFLAC_prefix/lib"
14599   elif test "x$prefix" != "xNONE" ; then
14600     LIBOGGFLAC_LIBS="-L$prefix/lib"
14601   fi
14602
14603   LIBOGGFLAC_LIBS="$LIBOGGFLAC_LIBS -lOggFLAC -lFLAC -lm"
14604
14605   if test "x$libOggFLAC_includes" != "x" ; then
14606     LIBOGGFLAC_CFLAGS="-I$libOggFLAC_includes"
14607   elif test "x$libOggFLAC_prefix" != "x" ; then
14608     LIBOGGFLAC_CFLAGS="-I$libOggFLAC_prefix/include"
14609   elif test "$prefix" != "xNONE"; then
14610     LIBOGGFLAC_CFLAGS="-I$prefix/include"
14611   fi
14612
14613   echo "$as_me:$LINENO: checking for libOggFLAC" >&5
14614 echo $ECHO_N "checking for libOggFLAC... $ECHO_C" >&6
14615   no_libOggFLAC=""
14616
14617
14618   if test "x$enable_libOggFLACtest" = "xyes" ; then
14619     ac_save_CFLAGS="$CFLAGS"
14620     ac_save_CXXFLAGS="$CXXFLAGS"
14621     ac_save_LIBS="$LIBS"
14622     CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14623     CXXFLAGS="$CXXFLAGS $LIBOGGFLAC_CFLAGS"
14624     LIBS="$LIBS $LIBOGGFLAC_LIBS"
14625       rm -f conf.libOggFLACtest
14626       if test "$cross_compiling" = yes; then
14627   echo $ac_n "cross compiling; assumed OK... $ac_c"
14628 else
14629   cat >conftest.$ac_ext <<_ACEOF
14630 /* confdefs.h.  */
14631 _ACEOF
14632 cat confdefs.h >>conftest.$ac_ext
14633 cat >>conftest.$ac_ext <<_ACEOF
14634 /* end confdefs.h.  */
14635
14636 #include <stdio.h>
14637 #include <stdlib.h>
14638 #include <string.h>
14639 #include <OggFLAC/stream_decoder.h>
14640
14641 int main ()
14642 {
14643   system("touch conf.libOggFLACtest");
14644   return 0;
14645 }
14646
14647
14648 _ACEOF
14649 rm -f conftest$ac_exeext
14650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14651   (eval $ac_link) 2>&5
14652   ac_status=$?
14653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14656   (eval $ac_try) 2>&5
14657   ac_status=$?
14658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659   (exit $ac_status); }; }; then
14660   :
14661 else
14662   echo "$as_me: program exited with status $ac_status" >&5
14663 echo "$as_me: failed program was:" >&5
14664 sed 's/^/| /' conftest.$ac_ext >&5
14665
14666 ( exit $ac_status )
14667 no_libOggFLAC=yes
14668 fi
14669 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14670 fi
14671        CFLAGS="$ac_save_CFLAGS"
14672        LIBS="$ac_save_LIBS"
14673   fi
14674
14675   if test "x$no_libOggFLAC" = "x" ; then
14676      echo "$as_me:$LINENO: result: yes" >&5
14677 echo "${ECHO_T}yes" >&6
14678
14679       EXTRADEFS="$EXTRADEFS -DAU_OGGFLAC"
14680       for f in $LIBOGGFLAC_CFLAGS; do
14681     case ".$f" in
14682         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14683         *)              CFLAGS="$CPPFLAGS $f" ;;
14684     esac
14685 done
14686
14687       LIBS="$LIBS $LIBOGGFLAC_LIBS"
14688
14689   else
14690      echo "$as_me:$LINENO: result: no" >&5
14691 echo "${ECHO_T}no" >&6
14692      if test -f conf.libOggFLACtest ; then
14693        :
14694      else
14695        echo "*** Could not run libOggFLAC test program, checking why..."
14696        CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14697        LIBS="$LIBS $LIBOGGFLAC_LIBS"
14698        cat >conftest.$ac_ext <<_ACEOF
14699 /* confdefs.h.  */
14700 _ACEOF
14701 cat confdefs.h >>conftest.$ac_ext
14702 cat >>conftest.$ac_ext <<_ACEOF
14703 /* end confdefs.h.  */
14704
14705 #include <stdio.h>
14706 #include <OggFLAC/stream_decoder.h>
14707
14708 int
14709 main ()
14710 {
14711  return 0;
14712   ;
14713   return 0;
14714 }
14715 _ACEOF
14716 rm -f conftest.$ac_objext conftest$ac_exeext
14717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14718   (eval $ac_link) 2>conftest.er1
14719   ac_status=$?
14720   grep -v '^ *+' conftest.er1 >conftest.err
14721   rm -f conftest.er1
14722   cat conftest.err >&5
14723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724   (exit $ac_status); } &&
14725          { ac_try='test -z "$ac_c_werror_flag"
14726                          || test ! -s conftest.err'
14727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14728   (eval $ac_try) 2>&5
14729   ac_status=$?
14730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731   (exit $ac_status); }; } &&
14732          { ac_try='test -s conftest$ac_exeext'
14733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734   (eval $ac_try) 2>&5
14735   ac_status=$?
14736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737   (exit $ac_status); }; }; then
14738    echo "*** The test program compiled, but did not run. This usually means"
14739        echo "*** that the run-time linker is not finding libOggFLAC or finding the wrong"
14740        echo "*** version of libOggFLAC. If it is not finding libOggFLAC, you'll need to set your"
14741        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14742        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14743        echo "*** is required on your system"
14744        echo "***"
14745        echo "*** If you have an old version installed, it is best to remove it, although"
14746        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14747 else
14748   echo "$as_me: failed program was:" >&5
14749 sed 's/^/| /' conftest.$ac_ext >&5
14750
14751  echo "*** The test program failed to compile or link. See the file config.log for the"
14752        echo "*** exact error that occured. This usually means libOggFLAC was incorrectly installed"
14753        echo "*** or that you have moved libOggFLAC since it was installed. In the latter case, you"
14754        echo "*** may want to edit the libOggFLAC-config script: $LIBOGGFLAC_CONFIG"
14755 fi
14756 rm -f conftest.err conftest.$ac_objext \
14757       conftest$ac_exeext conftest.$ac_ext
14758        CFLAGS="$ac_save_CFLAGS"
14759        LIBS="$ac_save_LIBS"
14760      fi
14761      LIBOGGFLAC_CFLAGS=""
14762      LIBOGGFLAC_LIBS=""
14763      :
14764   fi
14765
14766
14767   rm -f conf.libOggFLACtest
14768
14769   else
14770     echo "$as_me:$LINENO: result: no" >&5
14771 echo "${ECHO_T}no" >&6
14772   fi
14773 fi
14774 echo "$as_me:$LINENO: checking enable_audio=speex" >&5
14775 echo $ECHO_N "checking enable_audio=speex... $ECHO_C" >&6
14776 if test "x$au_enable_speex" = xyes; then
14777   if test "${have_speex+set}" = set; then
14778   echo $ECHO_N "(cached) $ECHO_C" >&6
14779 else
14780   cat >conftest.$ac_ext <<_ACEOF
14781 /* confdefs.h.  */
14782 _ACEOF
14783 cat confdefs.h >>conftest.$ac_ext
14784 cat >>conftest.$ac_ext <<_ACEOF
14785 /* end confdefs.h.  */
14786
14787   #include <speex.h>
14788   #include <ogg/ogg.h>
14789
14790 int
14791 main ()
14792 {
14793
14794     SpeexBits *dummy;
14795
14796   ;
14797   return 0;
14798 }
14799 _ACEOF
14800 rm -f conftest.$ac_objext conftest$ac_exeext
14801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14802   (eval $ac_link) 2>conftest.er1
14803   ac_status=$?
14804   grep -v '^ *+' conftest.er1 >conftest.err
14805   rm -f conftest.er1
14806   cat conftest.err >&5
14807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808   (exit $ac_status); } &&
14809          { ac_try='test -z "$ac_c_werror_flag"
14810                          || test ! -s conftest.err'
14811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14812   (eval $ac_try) 2>&5
14813   ac_status=$?
14814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815   (exit $ac_status); }; } &&
14816          { ac_try='test -s conftest$ac_exeext'
14817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14818   (eval $ac_try) 2>&5
14819   ac_status=$?
14820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821   (exit $ac_status); }; }; then
14822   have_speex=yes
14823 else
14824   echo "$as_me: failed program was:" >&5
14825 sed 's/^/| /' conftest.$ac_ext >&5
14826
14827 have_speex=no
14828 fi
14829 rm -f conftest.err conftest.$ac_objext \
14830       conftest$ac_exeext conftest.$ac_ext
14831 fi
14832
14833   echo "$as_me:$LINENO: result: $have_speex" >&5
14834 echo "${ECHO_T}$have_speex" >&6
14835   if test "x$have_speex" = xyes; then
14836     SYSEXTRAS="$SYSEXTRAS speex_a.c"
14837     EXTRALIBS="$EXTRALIBS -lspeex -logg"
14838     EXTRADEFS="$EXTRADEFS -DAU_SPEEX"
14839   fi
14840 else
14841   echo "$as_me:$LINENO: result: no" >&5
14842 echo "${ECHO_T}no" >&6
14843 fi
14844
14845 echo "$as_me:$LINENO: checking enable_audio=gogo" >&5
14846 echo $ECHO_N "checking enable_audio=gogo... $ECHO_C" >&6
14847 if test "x$au_enable_gogo" = xyes; then
14848   if test "x$CYGNUS" = "xyes"; then
14849     echo "$as_me:$LINENO: result: yes" >&5
14850 echo "${ECHO_T}yes" >&6
14851   else
14852     if test "x$MSYS" = "xyes"; then
14853     echo "$as_me:$LINENO: result: yes" >&5
14854 echo "${ECHO_T}yes" >&6
14855     else
14856       { echo "$as_me:$LINENO: WARNING: May be gogo is not supported.  You need hack the gogo_a.c" >&5
14857 echo "$as_me: WARNING: May be gogo is not supported.  You need hack the gogo_a.c" >&2;}
14858     fi
14859   fi
14860   have_gogo=yes
14861   SYSEXTRAS="$SYSEXTRAS gogo_a.c w32_gogo.c"
14862   EXTRADEFS="$EXTRADEFS -DAU_GOGO -DAU_GOGO_DLL"
14863   EXTRALIBS="$EXTRALIBS -lgogo"
14864 else
14865   echo "$as_me:$LINENO: result: no" >&5
14866 echo "${ECHO_T}no" >&6
14867 fi
14868
14869 if test "x$au_enable_none" = xyes; then
14870     EXTRADEFS="$EXTRADEFS -DAU_NONE -DAU_AUDRIV"
14871     SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_none.c"
14872 fi
14873 echo "$as_me:$LINENO: checking default output mode" >&5
14874 echo $ECHO_N "checking default output mode... $ECHO_C" >&6
14875 if test "x$DEFAULT_PLAYMODE" = x; then
14876   DEFAULT_PLAYMODE=`echo $enable_audio | sed 's/,.*//'`
14877 fi
14878 case ".$DEFAULT_PLAYMODE" in
14879   .default)  TIMIDITY_OUTPUT_ID=d ;;
14880   .oss)      TIMIDITY_OUTPUT_ID=d ;;
14881   .alsa)     TIMIDITY_OUTPUT_ID=s ;;
14882   .sun)      TIMIDITY_OUTPUT_ID=d ;;
14883   .hpux)     TIMIDITY_OUTPUT_ID=d ;;
14884   .irix)     TIMIDITY_OUTPUT_ID=d ;;
14885   .mme)      TIMIDITY_OUTPUT_ID=d ;;
14886   .sb_dsp)   TIMIDITY_OUTPUT_ID=d ;;
14887   .darwin)   TIMIDITY_OUTPUT_ID=d ;;
14888   .w32)      TIMIDITY_OUTPUT_ID=d ;;
14889   .alib)     TIMIDITY_OUTPUT_ID=A ;;
14890   .nas)      TIMIDITY_OUTPUT_ID=n ;;
14891   .arts)     TIMIDITY_OUTPUT_ID=R ;;
14892   .esd)      TIMIDITY_OUTPUT_ID=e ;;
14893   .portaudio)      TIMIDITY_OUTPUT_ID=p ;;
14894   .wav)      TIMIDITY_OUTPUT_ID=w ;;
14895   .au)       TIMIDITY_OUTPUT_ID=u ;;
14896   .aiff)     TIMIDITY_OUTPUT_ID=a ;;
14897   .list)     TIMIDITY_OUTPUT_ID=l ;;
14898   .vorbis)   TIMIDITY_OUTPUT_ID=v ;;
14899   .flac)     TIMIDITY_OUTPUT_ID=F ;;
14900   .speex)    TIMIDITY_OUTPUT_ID=S ;;
14901   .gogo)     TIMIDITY_OUTPUT_ID=g ;;
14902   .jack)     TIMIDITY_OUTPUT_ID=j ;;
14903   *)         TIMIDITY_OUTPUT_ID= ;;
14904 esac
14905 echo "$as_me:$LINENO: result: $DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&5
14906 echo "${ECHO_T}$DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&6
14907
14908 #
14909 # Interface Section
14910 #
14911
14912 interface_targets='dynamic ncurses slang motif tcltk emacs vt100 xaw xskin gtk alsaseq winsyn winsyng portmidisyng'
14913
14914 # Check whether --enable-interface or --disable-interface was given.
14915 if test "${enable_interface+set}" = set; then
14916   enableval="$enable_interface"
14917    for i in `echo $enableval | sed 's/,/ /g'`; do
14918       eval "enable_$i=yes"
14919     done
14920 fi;
14921
14922 #  Dynamic link configuration
14923 # Check whether --enable-dynamic or --disable-dynamic was given.
14924 if test "${enable_dynamic+set}" = set; then
14925   enableval="$enable_dynamic"
14926        if test "x$enable_dynamic" = xyes; then
14927       enable_dynamic=dynamic
14928     elif test "x$enable_dynamic" != xno; then
14929       for i in `echo $enableval | sed 's/,/ /g'`; do
14930         eval "enable_$i=dynamic"
14931       done
14932     fi
14933 fi;
14934
14935 join_targets=
14936 for i in $interface_targets; do
14937   eval "join_targets=$join_targets\$enable_$i"
14938 done
14939
14940 case ".$join_targets" in
14941 .*dynamic*) NEEDDLOPEN=yes;;
14942 *)          NEEDDLOPEN=no;;
14943 esac
14944
14945 if test "x$GCC" = xyes; then SHCFLAGS="$SHCFLAGS -fPIC"; fi
14946 case "x$enable_ump" in xyes|xdynamic) EXTRACFLAGS="$EXTRACFLAGS -DXP_UNIX $SHCFLAGS";; esac
14947
14948 if test "$NEEDDLOPEN" = "yes"; then
14949   have_dl=no
14950
14951   echo "$as_me:$LINENO: checking for LoadLibrary" >&5
14952 echo $ECHO_N "checking for LoadLibrary... $ECHO_C" >&6
14953 if test "${wapi_cv_func_LoadLibrary+set}" = set; then
14954   echo $ECHO_N "(cached) $ECHO_C" >&6
14955 else
14956   cat >conftest.$ac_ext <<_ACEOF
14957 /* confdefs.h.  */
14958 _ACEOF
14959 cat confdefs.h >>conftest.$ac_ext
14960 cat >>conftest.$ac_ext <<_ACEOF
14961 /* end confdefs.h.  */
14962 #include <windows.h>
14963
14964
14965 int
14966 main ()
14967 {
14968 LoadLibrary(0);
14969   ;
14970   return 0;
14971 }
14972 _ACEOF
14973 rm -f conftest.$ac_objext conftest$ac_exeext
14974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14975   (eval $ac_link) 2>conftest.er1
14976   ac_status=$?
14977   grep -v '^ *+' conftest.er1 >conftest.err
14978   rm -f conftest.er1
14979   cat conftest.err >&5
14980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981   (exit $ac_status); } &&
14982          { ac_try='test -z "$ac_c_werror_flag"
14983                          || test ! -s conftest.err'
14984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14985   (eval $ac_try) 2>&5
14986   ac_status=$?
14987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988   (exit $ac_status); }; } &&
14989          { ac_try='test -s conftest$ac_exeext'
14990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14991   (eval $ac_try) 2>&5
14992   ac_status=$?
14993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994   (exit $ac_status); }; }; then
14995   wapi_cv_func_LoadLibrary=yes
14996 else
14997   echo "$as_me: failed program was:" >&5
14998 sed 's/^/| /' conftest.$ac_ext >&5
14999
15000 wapi_cv_func_LoadLibrary=no
15001 fi
15002 rm -f conftest.err conftest.$ac_objext \
15003       conftest$ac_exeext conftest.$ac_ext
15004 fi
15005
15006 if eval "test \"`echo '$wapi_cv_func_'LoadLibrary`\" = yes"; then
15007   echo "$as_me:$LINENO: result: yes" >&5
15008 echo "${ECHO_T}yes" >&6
15009   have_dl=w32
15010 else
15011   echo "$as_me:$LINENO: result: no" >&5
15012 echo "${ECHO_T}no" >&6
15013 fi
15014
15015   test $wapi_cv_func_LoadLibrary = yes && have_dl=w32
15016
15017   if test "$have_dl" = "no"; then
15018     echo "$as_me:$LINENO: checking for shl_load" >&5
15019 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15020 if test "${ac_cv_func_shl_load+set}" = set; then
15021   echo $ECHO_N "(cached) $ECHO_C" >&6
15022 else
15023   cat >conftest.$ac_ext <<_ACEOF
15024 /* confdefs.h.  */
15025 _ACEOF
15026 cat confdefs.h >>conftest.$ac_ext
15027 cat >>conftest.$ac_ext <<_ACEOF
15028 /* end confdefs.h.  */
15029 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15030    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15031 #define shl_load innocuous_shl_load
15032
15033 /* System header to define __stub macros and hopefully few prototypes,
15034     which can conflict with char shl_load (); below.
15035     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15036     <limits.h> exists even on freestanding compilers.  */
15037
15038 #ifdef __STDC__
15039 # include <limits.h>
15040 #else
15041 # include <assert.h>
15042 #endif
15043
15044 #undef shl_load
15045
15046 /* Override any gcc2 internal prototype to avoid an error.  */
15047 #ifdef __cplusplus
15048 extern "C"
15049 {
15050 #endif
15051 /* We use char because int might match the return type of a gcc2
15052    builtin and then its argument prototype would still apply.  */
15053 char shl_load ();
15054 /* The GNU C library defines this for functions which it implements
15055     to always fail with ENOSYS.  Some functions are actually named
15056     something starting with __ and the normal name is an alias.  */
15057 #if defined (__stub_shl_load) || defined (__stub___shl_load)
15058 choke me
15059 #else
15060 char (*f) () = shl_load;
15061 #endif
15062 #ifdef __cplusplus
15063 }
15064 #endif
15065
15066 int
15067 main ()
15068 {
15069 return f != shl_load;
15070   ;
15071   return 0;
15072 }
15073 _ACEOF
15074 rm -f conftest.$ac_objext conftest$ac_exeext
15075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15076   (eval $ac_link) 2>conftest.er1
15077   ac_status=$?
15078   grep -v '^ *+' conftest.er1 >conftest.err
15079   rm -f conftest.er1
15080   cat conftest.err >&5
15081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082   (exit $ac_status); } &&
15083          { ac_try='test -z "$ac_c_werror_flag"
15084                          || test ! -s conftest.err'
15085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15086   (eval $ac_try) 2>&5
15087   ac_status=$?
15088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089   (exit $ac_status); }; } &&
15090          { ac_try='test -s conftest$ac_exeext'
15091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15092   (eval $ac_try) 2>&5
15093   ac_status=$?
15094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095   (exit $ac_status); }; }; then
15096   ac_cv_func_shl_load=yes
15097 else
15098   echo "$as_me: failed program was:" >&5
15099 sed 's/^/| /' conftest.$ac_ext >&5
15100
15101 ac_cv_func_shl_load=no
15102 fi
15103 rm -f conftest.err conftest.$ac_objext \
15104       conftest$ac_exeext conftest.$ac_ext
15105 fi
15106 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15107 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15108 if test $ac_cv_func_shl_load = yes; then
15109   have_dl=hpux
15110 fi
15111
15112   fi
15113   if test "$have_dl" = "no"; then
15114             echo "$as_me:$LINENO: checking for NSLinkModule" >&5
15115 echo $ECHO_N "checking for NSLinkModule... $ECHO_C" >&6
15116 if test "${ac_cv_func_NSLinkModule+set}" = set; then
15117   echo $ECHO_N "(cached) $ECHO_C" >&6
15118 else
15119   cat >conftest.$ac_ext <<_ACEOF
15120 /* confdefs.h.  */
15121 _ACEOF
15122 cat confdefs.h >>conftest.$ac_ext
15123 cat >>conftest.$ac_ext <<_ACEOF
15124 /* end confdefs.h.  */
15125 /* Define NSLinkModule to an innocuous variant, in case <limits.h> declares NSLinkModule.
15126    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15127 #define NSLinkModule innocuous_NSLinkModule
15128
15129 /* System header to define __stub macros and hopefully few prototypes,
15130     which can conflict with char NSLinkModule (); below.
15131     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15132     <limits.h> exists even on freestanding compilers.  */
15133
15134 #ifdef __STDC__
15135 # include <limits.h>
15136 #else
15137 # include <assert.h>
15138 #endif
15139
15140 #undef NSLinkModule
15141
15142 /* Override any gcc2 internal prototype to avoid an error.  */
15143 #ifdef __cplusplus
15144 extern "C"
15145 {
15146 #endif
15147 /* We use char because int might match the return type of a gcc2
15148    builtin and then its argument prototype would still apply.  */
15149 char NSLinkModule ();
15150 /* The GNU C library defines this for functions which it implements
15151     to always fail with ENOSYS.  Some functions are actually named
15152     something starting with __ and the normal name is an alias.  */
15153 #if defined (__stub_NSLinkModule) || defined (__stub___NSLinkModule)
15154 choke me
15155 #else
15156 char (*f) () = NSLinkModule;
15157 #endif
15158 #ifdef __cplusplus
15159 }
15160 #endif
15161
15162 int
15163 main ()
15164 {
15165 return f != NSLinkModule;
15166   ;
15167   return 0;
15168 }
15169 _ACEOF
15170 rm -f conftest.$ac_objext conftest$ac_exeext
15171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15172   (eval $ac_link) 2>conftest.er1
15173   ac_status=$?
15174   grep -v '^ *+' conftest.er1 >conftest.err
15175   rm -f conftest.er1
15176   cat conftest.err >&5
15177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178   (exit $ac_status); } &&
15179          { ac_try='test -z "$ac_c_werror_flag"
15180                          || test ! -s conftest.err'
15181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15182   (eval $ac_try) 2>&5
15183   ac_status=$?
15184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185   (exit $ac_status); }; } &&
15186          { ac_try='test -s conftest$ac_exeext'
15187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188   (eval $ac_try) 2>&5
15189   ac_status=$?
15190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191   (exit $ac_status); }; }; then
15192   ac_cv_func_NSLinkModule=yes
15193 else
15194   echo "$as_me: failed program was:" >&5
15195 sed 's/^/| /' conftest.$ac_ext >&5
15196
15197 ac_cv_func_NSLinkModule=no
15198 fi
15199 rm -f conftest.err conftest.$ac_objext \
15200       conftest$ac_exeext conftest.$ac_ext
15201 fi
15202 echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5
15203 echo "${ECHO_T}$ac_cv_func_NSLinkModule" >&6
15204 if test $ac_cv_func_NSLinkModule = yes; then
15205   have_dl=dyld
15206 fi
15207
15208   fi
15209   if test "$have_dl" = "no" -a "x$ac_cv_lib_dl_dlopen" = xyes; then
15210     have_dl=dlopen
15211   fi
15212   if test "$have_dl" = "no"; then
15213     echo "$as_me:$LINENO: checking for dlopen" >&5
15214 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
15215 if test "${ac_cv_func_dlopen+set}" = set; then
15216   echo $ECHO_N "(cached) $ECHO_C" >&6
15217 else
15218   cat >conftest.$ac_ext <<_ACEOF
15219 /* confdefs.h.  */
15220 _ACEOF
15221 cat confdefs.h >>conftest.$ac_ext
15222 cat >>conftest.$ac_ext <<_ACEOF
15223 /* end confdefs.h.  */
15224 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15225    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15226 #define dlopen innocuous_dlopen
15227
15228 /* System header to define __stub macros and hopefully few prototypes,
15229     which can conflict with char dlopen (); below.
15230     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15231     <limits.h> exists even on freestanding compilers.  */
15232
15233 #ifdef __STDC__
15234 # include <limits.h>
15235 #else
15236 # include <assert.h>
15237 #endif
15238
15239 #undef dlopen
15240
15241 /* Override any gcc2 internal prototype to avoid an error.  */
15242 #ifdef __cplusplus
15243 extern "C"
15244 {
15245 #endif
15246 /* We use char because int might match the return type of a gcc2
15247    builtin and then its argument prototype would still apply.  */
15248 char dlopen ();
15249 /* The GNU C library defines this for functions which it implements
15250     to always fail with ENOSYS.  Some functions are actually named
15251     something starting with __ and the normal name is an alias.  */
15252 #if defined (__stub_dlopen) || defined (__stub___dlopen)
15253 choke me
15254 #else
15255 char (*f) () = dlopen;
15256 #endif
15257 #ifdef __cplusplus
15258 }
15259 #endif
15260
15261 int
15262 main ()
15263 {
15264 return f != dlopen;
15265   ;
15266   return 0;
15267 }
15268 _ACEOF
15269 rm -f conftest.$ac_objext conftest$ac_exeext
15270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15271   (eval $ac_link) 2>conftest.er1
15272   ac_status=$?
15273   grep -v '^ *+' conftest.er1 >conftest.err
15274   rm -f conftest.er1
15275   cat conftest.err >&5
15276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277   (exit $ac_status); } &&
15278          { ac_try='test -z "$ac_c_werror_flag"
15279                          || test ! -s conftest.err'
15280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15281   (eval $ac_try) 2>&5
15282   ac_status=$?
15283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284   (exit $ac_status); }; } &&
15285          { ac_try='test -s conftest$ac_exeext'
15286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15287   (eval $ac_try) 2>&5
15288   ac_status=$?
15289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290   (exit $ac_status); }; }; then
15291   ac_cv_func_dlopen=yes
15292 else
15293   echo "$as_me: failed program was:" >&5
15294 sed 's/^/| /' conftest.$ac_ext >&5
15295
15296 ac_cv_func_dlopen=no
15297 fi
15298 rm -f conftest.err conftest.$ac_objext \
15299       conftest$ac_exeext conftest.$ac_ext
15300 fi
15301 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15302 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
15303 if test $ac_cv_func_dlopen = yes; then
15304   have_dl=dlopen
15305 fi
15306
15307   fi
15308   if test "$have_dl" = "no"; then
15309     echo "$as_me:$LINENO: checking for dld_init" >&5
15310 echo $ECHO_N "checking for dld_init... $ECHO_C" >&6
15311 if test "${ac_cv_func_dld_init+set}" = set; then
15312   echo $ECHO_N "(cached) $ECHO_C" >&6
15313 else
15314   cat >conftest.$ac_ext <<_ACEOF
15315 /* confdefs.h.  */
15316 _ACEOF
15317 cat confdefs.h >>conftest.$ac_ext
15318 cat >>conftest.$ac_ext <<_ACEOF
15319 /* end confdefs.h.  */
15320 /* Define dld_init to an innocuous variant, in case <limits.h> declares dld_init.
15321    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15322 #define dld_init innocuous_dld_init
15323
15324 /* System header to define __stub macros and hopefully few prototypes,
15325     which can conflict with char dld_init (); below.
15326     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15327     <limits.h> exists even on freestanding compilers.  */
15328
15329 #ifdef __STDC__
15330 # include <limits.h>
15331 #else
15332 # include <assert.h>
15333 #endif
15334
15335 #undef dld_init
15336
15337 /* Override any gcc2 internal prototype to avoid an error.  */
15338 #ifdef __cplusplus
15339 extern "C"
15340 {
15341 #endif
15342 /* We use char because int might match the return type of a gcc2
15343    builtin and then its argument prototype would still apply.  */
15344 char dld_init ();
15345 /* The GNU C library defines this for functions which it implements
15346     to always fail with ENOSYS.  Some functions are actually named
15347     something starting with __ and the normal name is an alias.  */
15348 #if defined (__stub_dld_init) || defined (__stub___dld_init)
15349 choke me
15350 #else
15351 char (*f) () = dld_init;
15352 #endif
15353 #ifdef __cplusplus
15354 }
15355 #endif
15356
15357 int
15358 main ()
15359 {
15360 return f != dld_init;
15361   ;
15362   return 0;
15363 }
15364 _ACEOF
15365 rm -f conftest.$ac_objext conftest$ac_exeext
15366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15367   (eval $ac_link) 2>conftest.er1
15368   ac_status=$?
15369   grep -v '^ *+' conftest.er1 >conftest.err
15370   rm -f conftest.er1
15371   cat conftest.err >&5
15372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373   (exit $ac_status); } &&
15374          { ac_try='test -z "$ac_c_werror_flag"
15375                          || test ! -s conftest.err'
15376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377   (eval $ac_try) 2>&5
15378   ac_status=$?
15379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380   (exit $ac_status); }; } &&
15381          { ac_try='test -s conftest$ac_exeext'
15382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383   (eval $ac_try) 2>&5
15384   ac_status=$?
15385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386   (exit $ac_status); }; }; then
15387   ac_cv_func_dld_init=yes
15388 else
15389   echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15391
15392 ac_cv_func_dld_init=no
15393 fi
15394 rm -f conftest.err conftest.$ac_objext \
15395       conftest$ac_exeext conftest.$ac_ext
15396 fi
15397 echo "$as_me:$LINENO: result: $ac_cv_func_dld_init" >&5
15398 echo "${ECHO_T}$ac_cv_func_dld_init" >&6
15399 if test $ac_cv_func_dld_init = yes; then
15400   have_dl=dld
15401 fi
15402
15403   fi
15404   if test "$have_dl" = "no"; then
15405     echo "$as_me:$LINENO: checking for dld_init in -ldld" >&5
15406 echo $ECHO_N "checking for dld_init in -ldld... $ECHO_C" >&6
15407 if test "${ac_cv_lib_dld_dld_init+set}" = set; then
15408   echo $ECHO_N "(cached) $ECHO_C" >&6
15409 else
15410   ac_check_lib_save_LIBS=$LIBS
15411 LIBS="-ldld  $LIBS"
15412 cat >conftest.$ac_ext <<_ACEOF
15413 /* confdefs.h.  */
15414 _ACEOF
15415 cat confdefs.h >>conftest.$ac_ext
15416 cat >>conftest.$ac_ext <<_ACEOF
15417 /* end confdefs.h.  */
15418
15419 /* Override any gcc2 internal prototype to avoid an error.  */
15420 #ifdef __cplusplus
15421 extern "C"
15422 #endif
15423 /* We use char because int might match the return type of a gcc2
15424    builtin and then its argument prototype would still apply.  */
15425 char dld_init ();
15426 int
15427 main ()
15428 {
15429 dld_init ();
15430   ;
15431   return 0;
15432 }
15433 _ACEOF
15434 rm -f conftest.$ac_objext conftest$ac_exeext
15435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15436   (eval $ac_link) 2>conftest.er1
15437   ac_status=$?
15438   grep -v '^ *+' conftest.er1 >conftest.err
15439   rm -f conftest.er1
15440   cat conftest.err >&5
15441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442   (exit $ac_status); } &&
15443          { ac_try='test -z "$ac_c_werror_flag"
15444                          || test ! -s conftest.err'
15445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446   (eval $ac_try) 2>&5
15447   ac_status=$?
15448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449   (exit $ac_status); }; } &&
15450          { ac_try='test -s conftest$ac_exeext'
15451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15452   (eval $ac_try) 2>&5
15453   ac_status=$?
15454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455   (exit $ac_status); }; }; then
15456   ac_cv_lib_dld_dld_init=yes
15457 else
15458   echo "$as_me: failed program was:" >&5
15459 sed 's/^/| /' conftest.$ac_ext >&5
15460
15461 ac_cv_lib_dld_dld_init=no
15462 fi
15463 rm -f conftest.err conftest.$ac_objext \
15464       conftest$ac_exeext conftest.$ac_ext
15465 LIBS=$ac_check_lib_save_LIBS
15466 fi
15467 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_init" >&5
15468 echo "${ECHO_T}$ac_cv_lib_dld_dld_init" >&6
15469 if test $ac_cv_lib_dld_dld_init = yes; then
15470   have_dl=dld;lib_dl_opt=-ldld
15471 fi
15472
15473   fi
15474
15475   echo "$as_me:$LINENO: checking dynamic link method" >&5
15476 echo $ECHO_N "checking dynamic link method... $ECHO_C" >&6
15477   case "$have_dl" in
15478     dlopen)
15479       echo "$as_me:$LINENO: result: use dl_dlopen.c" >&5
15480 echo "${ECHO_T}use dl_dlopen.c" >&6
15481       SYSEXTRAS="$SYSEXTRAS dl_dlopen.c"
15482       echo "$as_me:$LINENO: checking whether your dlsym() needs a leading underscore" >&5
15483 echo $ECHO_N "checking whether your dlsym() needs a leading underscore... $ECHO_C" >&6
15484 if test "${timidity_cv_func_dlsym_underscore+set}" = set; then
15485   echo $ECHO_N "(cached) $ECHO_C" >&6
15486 else
15487   case "$ac_cv_header_dlfcn_h" in
15488 yes) i_dlfcn=define;;
15489 *)   i_dlfcn=undef;;
15490 esac
15491 cat > dyna.c <<EOM
15492 fred () { }
15493 EOM
15494
15495 cat > fred.c <<EOM
15496 #include <stdio.h>
15497 #$i_dlfcn I_DLFCN
15498 #ifdef I_DLFCN
15499 #include <dlfcn.h>      /* the dynamic linker include file for Sunos/Solaris */
15500 #else
15501 #include <sys/types.h>
15502 #include <nlist.h>
15503 #include <link.h>
15504 #endif
15505
15506 extern int fred() ;
15507
15508 main()
15509 {
15510     void * handle ;
15511     void * symbol ;
15512 #ifndef RTLD_LAZY
15513     int mode = 1 ;
15514 #else
15515     int mode = RTLD_LAZY ;
15516 #endif
15517     handle = dlopen("./dyna.$so", mode) ;
15518     if (handle == NULL) {
15519         printf ("1\n") ;
15520         fflush (stdout) ;
15521         exit(0);
15522     }
15523     symbol = dlsym(handle, "fred") ;
15524     if (symbol == NULL) {
15525         /* try putting a leading underscore */
15526         symbol = dlsym(handle, "_fred") ;
15527         if (symbol == NULL) {
15528             printf ("2\n") ;
15529             fflush (stdout) ;
15530             exit(0);
15531         }
15532         printf ("3\n") ;
15533     }
15534     else
15535         printf ("4\n") ;
15536     fflush (stdout) ;
15537     exit(0);
15538 }
15539 EOM
15540 : Call the object file tmp-dyna.o in case dlext=o.
15541 if ${CC-cc} $CFLAGS $SHCFLAGS $CPPFLAGS -c dyna.c > /dev/null 2>&1 &&
15542         mv dyna.o tmp-dyna.o > /dev/null 2>&1 &&
15543         $SHLD $SHLDFLAGS -o dyna.$so tmp-dyna.o > /dev/null 2>&1 &&
15544         ${CC-cc} -o fred $CFLAGS $CPPFLAGS $LDFLAGS fred.c $LIBS $lib_dl_opt > /dev/null 2>&1; then
15545         xxx=`./fred`
15546         case $xxx in
15547         1)      { echo "$as_me:$LINENO: WARNING: Test program failed using dlopen.  Perhaps you should not use dynamic loading." >&5
15548 echo "$as_me: WARNING: Test program failed using dlopen.  Perhaps you should not use dynamic loading." >&2;}
15549                 ;;
15550         2)      { echo "$as_me:$LINENO: WARNING: Test program failed using dlsym.  Perhaps you should not use dynamic loading." >&5
15551 echo "$as_me: WARNING: Test program failed using dlsym.  Perhaps you should not use dynamic loading." >&2;}
15552                 ;;
15553         3)      timidity_cv_func_dlsym_underscore=yes
15554                 ;;
15555         4)      timidity_cv_func_dlsym_underscore=no
15556                 ;;
15557         esac
15558 else
15559         { echo "$as_me:$LINENO: WARNING: I can't compile and run the test program." >&5
15560 echo "$as_me: WARNING: I can't compile and run the test program." >&2;}
15561 fi
15562 rm -f dyna.c dyna.o dyna.$so tmp-dyna.o fred.c fred.o fred
15563
15564 fi
15565
15566 case "x$timidity_cv_func_dlsym_underscore" in
15567 xyes)
15568 cat >>confdefs.h <<\_ACEOF
15569 #define DLSYM_NEEDS_UNDERSCORE 1
15570 _ACEOF
15571
15572         echo "$as_me:$LINENO: result: yes" >&5
15573 echo "${ECHO_T}yes" >&6
15574         ;;
15575 xno)
15576         echo "$as_me:$LINENO: result: no" >&5
15577 echo "${ECHO_T}no" >&6
15578         ;;
15579 esac
15580
15581       ;;
15582     dld)
15583       echo "$as_me:$LINENO: result: use dl_dld.c" >&5
15584 echo "${ECHO_T}use dl_dld.c" >&6
15585       SYSEXTRAS="$SYSEXTRAS dl_dld.c"
15586       ;;
15587     hpux)
15588       echo "$as_me:$LINENO: result: use dl_hpux.c" >&5
15589 echo "${ECHO_T}use dl_hpux.c" >&6
15590       SYSEXTRAS="$SYSEXTRAS dl_hpux.c"
15591       LDFLAGS="$LDFLAGS -Wl,-E $LDFLAGS"
15592       ;;
15593     w32)
15594       echo "$as_me:$LINENO: result: use dl_w32.c" >&5
15595 echo "${ECHO_T}use dl_w32.c" >&6
15596       SYSEXTRAS="$SYSEXTRAS dl_w32.c"
15597       ;;
15598     dyld)
15599       echo "$as_me:$LINENO: result: use dl_dyld.c" >&5
15600 echo "${ECHO_T}use dl_dyld.c" >&6
15601       SYSEXTRAS="$SYSEXTRAS dl_dyld.c"
15602       ;;
15603     *)
15604       NEEDDLOPEN="no"
15605       { echo "$as_me:$LINENO: WARNING: no method to open a shared object" >&5
15606 echo "$as_me: WARNING: no method to open a shared object" >&2;}
15607       ;;
15608   esac
15609 fi
15610
15611 if test "$NEEDDLOPEN" = "yes"; then
15612   cat >> confdefs.h <<EOF
15613 #define IA_DYNAMIC 1
15614 EOF
15615
15616
15617 cat >>confdefs.h <<_ACEOF
15618 #define SHARED_LIB_EXT ".$so"
15619 _ACEOF
15620
15621       test "x$GCC" = xyes -a "x$timidity_cv_ccoption_rdynamic" = xyes  && timidity_LDFLAGS="-rdynamic"
15622 fi
15623
15624
15625
15626 if test "$NEEDDLOPEN" = "yes"; then
15627   NEEDDLOPEN_TRUE=
15628   NEEDDLOPEN_FALSE='#'
15629 else
15630   NEEDDLOPEN_TRUE='#'
15631   NEEDDLOPEN_FALSE=
15632 fi
15633
15634
15635
15636
15637
15638 if false; then
15639   ENABLE_NCURSES_TRUE=
15640   ENABLE_NCURSES_FALSE='#'
15641 else
15642   ENABLE_NCURSES_TRUE='#'
15643   ENABLE_NCURSES_FALSE=
15644 fi
15645
15646 # Check whether --enable-ncurses or --disable-ncurses was given.
15647 if test "${enable_ncurses+set}" = set; then
15648   enableval="$enable_ncurses"
15649   case "x$enable_ncurses" in xyes|xdynamic)
15650
15651
15652 for ac_header in ncurses.h ncurses/curses.h curses.h
15653 do
15654 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15656   echo "$as_me:$LINENO: checking for $ac_header" >&5
15657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15659   echo $ECHO_N "(cached) $ECHO_C" >&6
15660 fi
15661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15662 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15663 else
15664   # Is the header compilable?
15665 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15667 cat >conftest.$ac_ext <<_ACEOF
15668 /* confdefs.h.  */
15669 _ACEOF
15670 cat confdefs.h >>conftest.$ac_ext
15671 cat >>conftest.$ac_ext <<_ACEOF
15672 /* end confdefs.h.  */
15673 $ac_includes_default
15674 #include <$ac_header>
15675 _ACEOF
15676 rm -f conftest.$ac_objext
15677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15678   (eval $ac_compile) 2>conftest.er1
15679   ac_status=$?
15680   grep -v '^ *+' conftest.er1 >conftest.err
15681   rm -f conftest.er1
15682   cat conftest.err >&5
15683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684   (exit $ac_status); } &&
15685          { ac_try='test -z "$ac_c_werror_flag"
15686                          || test ! -s conftest.err'
15687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15688   (eval $ac_try) 2>&5
15689   ac_status=$?
15690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691   (exit $ac_status); }; } &&
15692          { ac_try='test -s conftest.$ac_objext'
15693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694   (eval $ac_try) 2>&5
15695   ac_status=$?
15696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697   (exit $ac_status); }; }; then
15698   ac_header_compiler=yes
15699 else
15700   echo "$as_me: failed program was:" >&5
15701 sed 's/^/| /' conftest.$ac_ext >&5
15702
15703 ac_header_compiler=no
15704 fi
15705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15706 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15707 echo "${ECHO_T}$ac_header_compiler" >&6
15708
15709 # Is the header present?
15710 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15712 cat >conftest.$ac_ext <<_ACEOF
15713 /* confdefs.h.  */
15714 _ACEOF
15715 cat confdefs.h >>conftest.$ac_ext
15716 cat >>conftest.$ac_ext <<_ACEOF
15717 /* end confdefs.h.  */
15718 #include <$ac_header>
15719 _ACEOF
15720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15721   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15722   ac_status=$?
15723   grep -v '^ *+' conftest.er1 >conftest.err
15724   rm -f conftest.er1
15725   cat conftest.err >&5
15726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727   (exit $ac_status); } >/dev/null; then
15728   if test -s conftest.err; then
15729     ac_cpp_err=$ac_c_preproc_warn_flag
15730     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15731   else
15732     ac_cpp_err=
15733   fi
15734 else
15735   ac_cpp_err=yes
15736 fi
15737 if test -z "$ac_cpp_err"; then
15738   ac_header_preproc=yes
15739 else
15740   echo "$as_me: failed program was:" >&5
15741 sed 's/^/| /' conftest.$ac_ext >&5
15742
15743   ac_header_preproc=no
15744 fi
15745 rm -f conftest.err conftest.$ac_ext
15746 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15747 echo "${ECHO_T}$ac_header_preproc" >&6
15748
15749 # So?  What about this header?
15750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15751   yes:no: )
15752     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15753 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15754     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15755 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15756     ac_header_preproc=yes
15757     ;;
15758   no:yes:* )
15759     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15760 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15761     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15762 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15763     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15764 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15765     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15766 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15767     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15769     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15770 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15771     (
15772       cat <<\_ASBOX
15773 ## ------------------------------- ##
15774 ## Report this to root@mput.dip.jp ##
15775 ## ------------------------------- ##
15776 _ASBOX
15777     ) |
15778       sed "s/^/$as_me: WARNING:     /" >&2
15779     ;;
15780 esac
15781 echo "$as_me:$LINENO: checking for $ac_header" >&5
15782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15784   echo $ECHO_N "(cached) $ECHO_C" >&6
15785 else
15786   eval "$as_ac_Header=\$ac_header_preproc"
15787 fi
15788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15790
15791 fi
15792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15793   cat >>confdefs.h <<_ACEOF
15794 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15795 _ACEOF
15796
15797 fi
15798
15799 done
15800
15801
15802
15803   case "$ac_cv_header_curses_h$ac_cv_header_ncurses_curses_h$ac_cv_header_ncurses_h" in
15804     *yes*);;
15805     *)  for i in /usr/include /usr/local/include; do
15806           if test -f "$i/ncurses/curses.h" -a -f "$i/ncurses/unctrl.h"; then
15807             { echo "$as_me:$LINENO: WARNING: ncurses test is failure.  Please check config.h and common.makefile later" >&5
15808 echo "$as_me: WARNING: ncurses test is failure.  Please check config.h and common.makefile later" >&2;}
15809             CPPFLAGS="$CPPFLAGS -I$i/ncurses"
15810             break
15811           fi
15812         done
15813         ;;
15814     esac
15815
15816     echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
15817 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
15818 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
15819   echo $ECHO_N "(cached) $ECHO_C" >&6
15820 else
15821   ac_check_lib_save_LIBS=$LIBS
15822 LIBS="-lncurses  $LIBS"
15823 cat >conftest.$ac_ext <<_ACEOF
15824 /* confdefs.h.  */
15825 _ACEOF
15826 cat confdefs.h >>conftest.$ac_ext
15827 cat >>conftest.$ac_ext <<_ACEOF
15828 /* end confdefs.h.  */
15829
15830 /* Override any gcc2 internal prototype to avoid an error.  */
15831 #ifdef __cplusplus
15832 extern "C"
15833 #endif
15834 /* We use char because int might match the return type of a gcc2
15835    builtin and then its argument prototype would still apply.  */
15836 char initscr ();
15837 int
15838 main ()
15839 {
15840 initscr ();
15841   ;
15842   return 0;
15843 }
15844 _ACEOF
15845 rm -f conftest.$ac_objext conftest$ac_exeext
15846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15847   (eval $ac_link) 2>conftest.er1
15848   ac_status=$?
15849   grep -v '^ *+' conftest.er1 >conftest.err
15850   rm -f conftest.er1
15851   cat conftest.err >&5
15852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853   (exit $ac_status); } &&
15854          { ac_try='test -z "$ac_c_werror_flag"
15855                          || test ! -s conftest.err'
15856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15857   (eval $ac_try) 2>&5
15858   ac_status=$?
15859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860   (exit $ac_status); }; } &&
15861          { ac_try='test -s conftest$ac_exeext'
15862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15863   (eval $ac_try) 2>&5
15864   ac_status=$?
15865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866   (exit $ac_status); }; }; then
15867   ac_cv_lib_ncurses_initscr=yes
15868 else
15869   echo "$as_me: failed program was:" >&5
15870 sed 's/^/| /' conftest.$ac_ext >&5
15871
15872 ac_cv_lib_ncurses_initscr=no
15873 fi
15874 rm -f conftest.err conftest.$ac_objext \
15875       conftest$ac_exeext conftest.$ac_ext
15876 LIBS=$ac_check_lib_save_LIBS
15877 fi
15878 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
15879 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
15880 if test $ac_cv_lib_ncurses_initscr = yes; then
15881   lib_curses_opt=-lncurses
15882 else
15883         echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lcurses" >&5
15884 echo $ECHO_N "checking for PDC_set_ctrl_break in -lcurses... $ECHO_C" >&6
15885 if test "${ac_cv_lib_curses_PDC_set_ctrl_break+set}" = set; then
15886   echo $ECHO_N "(cached) $ECHO_C" >&6
15887 else
15888   ac_check_lib_save_LIBS=$LIBS
15889 LIBS="-lcurses $lib_user32_test $LIBS"
15890 cat >conftest.$ac_ext <<_ACEOF
15891 /* confdefs.h.  */
15892 _ACEOF
15893 cat confdefs.h >>conftest.$ac_ext
15894 cat >>conftest.$ac_ext <<_ACEOF
15895 /* end confdefs.h.  */
15896
15897 /* Override any gcc2 internal prototype to avoid an error.  */
15898 #ifdef __cplusplus
15899 extern "C"
15900 #endif
15901 /* We use char because int might match the return type of a gcc2
15902    builtin and then its argument prototype would still apply.  */
15903 char PDC_set_ctrl_break ();
15904 int
15905 main ()
15906 {
15907 PDC_set_ctrl_break ();
15908   ;
15909   return 0;
15910 }
15911 _ACEOF
15912 rm -f conftest.$ac_objext conftest$ac_exeext
15913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15914   (eval $ac_link) 2>conftest.er1
15915   ac_status=$?
15916   grep -v '^ *+' conftest.er1 >conftest.err
15917   rm -f conftest.er1
15918   cat conftest.err >&5
15919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920   (exit $ac_status); } &&
15921          { ac_try='test -z "$ac_c_werror_flag"
15922                          || test ! -s conftest.err'
15923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15924   (eval $ac_try) 2>&5
15925   ac_status=$?
15926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927   (exit $ac_status); }; } &&
15928          { ac_try='test -s conftest$ac_exeext'
15929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15930   (eval $ac_try) 2>&5
15931   ac_status=$?
15932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933   (exit $ac_status); }; }; then
15934   ac_cv_lib_curses_PDC_set_ctrl_break=yes
15935 else
15936   echo "$as_me: failed program was:" >&5
15937 sed 's/^/| /' conftest.$ac_ext >&5
15938
15939 ac_cv_lib_curses_PDC_set_ctrl_break=no
15940 fi
15941 rm -f conftest.err conftest.$ac_objext \
15942       conftest$ac_exeext conftest.$ac_ext
15943 LIBS=$ac_check_lib_save_LIBS
15944 fi
15945 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_PDC_set_ctrl_break" >&5
15946 echo "${ECHO_T}$ac_cv_lib_curses_PDC_set_ctrl_break" >&6
15947 if test $ac_cv_lib_curses_PDC_set_ctrl_break = yes; then
15948    lib_curses_opt=-lcurses
15949
15950 cat >>confdefs.h <<\_ACEOF
15951 #define USE_PDCURSES 1
15952 _ACEOF
15953
15954             lib_user32_opt="$lib_user32_test"
15955
15956 else
15957             echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lpdcurses" >&5
15958 echo $ECHO_N "checking for PDC_set_ctrl_break in -lpdcurses... $ECHO_C" >&6
15959 if test "${ac_cv_lib_pdcurses_PDC_set_ctrl_break+set}" = set; then
15960   echo $ECHO_N "(cached) $ECHO_C" >&6
15961 else
15962   ac_check_lib_save_LIBS=$LIBS
15963 LIBS="-lpdcurses  $LIBS"
15964 cat >conftest.$ac_ext <<_ACEOF
15965 /* confdefs.h.  */
15966 _ACEOF
15967 cat confdefs.h >>conftest.$ac_ext
15968 cat >>conftest.$ac_ext <<_ACEOF
15969 /* end confdefs.h.  */
15970
15971 /* Override any gcc2 internal prototype to avoid an error.  */
15972 #ifdef __cplusplus
15973 extern "C"
15974 #endif
15975 /* We use char because int might match the return type of a gcc2
15976    builtin and then its argument prototype would still apply.  */
15977 char PDC_set_ctrl_break ();
15978 int
15979 main ()
15980 {
15981 PDC_set_ctrl_break ();
15982   ;
15983   return 0;
15984 }
15985 _ACEOF
15986 rm -f conftest.$ac_objext conftest$ac_exeext
15987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15988   (eval $ac_link) 2>conftest.er1
15989   ac_status=$?
15990   grep -v '^ *+' conftest.er1 >conftest.err
15991   rm -f conftest.er1
15992   cat conftest.err >&5
15993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994   (exit $ac_status); } &&
15995          { ac_try='test -z "$ac_c_werror_flag"
15996                          || test ! -s conftest.err'
15997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15998   (eval $ac_try) 2>&5
15999   ac_status=$?
16000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001   (exit $ac_status); }; } &&
16002          { ac_try='test -s conftest$ac_exeext'
16003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16004   (eval $ac_try) 2>&5
16005   ac_status=$?
16006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007   (exit $ac_status); }; }; then
16008   ac_cv_lib_pdcurses_PDC_set_ctrl_break=yes
16009 else
16010   echo "$as_me: failed program was:" >&5
16011 sed 's/^/| /' conftest.$ac_ext >&5
16012
16013 ac_cv_lib_pdcurses_PDC_set_ctrl_break=no
16014 fi
16015 rm -f conftest.err conftest.$ac_objext \
16016       conftest$ac_exeext conftest.$ac_ext
16017 LIBS=$ac_check_lib_save_LIBS
16018 fi
16019 echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&5
16020 echo "${ECHO_T}$ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&6
16021 if test $ac_cv_lib_pdcurses_PDC_set_ctrl_break = yes; then
16022    lib_curses_opt=-lpdcurses
16023
16024 cat >>confdefs.h <<\_ACEOF
16025 #define USE_PDCURSES 1
16026 _ACEOF
16027
16028               lib_user32_opt="$lib_user32_test"
16029
16030 else
16031               case "$target" in
16032                 *openbsd*)
16033                   echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
16034 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
16035 if test "${ac_cv_lib_curses_initscr+set}" = set; then
16036   echo $ECHO_N "(cached) $ECHO_C" >&6
16037 else
16038   ac_check_lib_save_LIBS=$LIBS
16039 LIBS="-lcurses  $LIBS"
16040 cat >conftest.$ac_ext <<_ACEOF
16041 /* confdefs.h.  */
16042 _ACEOF
16043 cat confdefs.h >>conftest.$ac_ext
16044 cat >>conftest.$ac_ext <<_ACEOF
16045 /* end confdefs.h.  */
16046
16047 /* Override any gcc2 internal prototype to avoid an error.  */
16048 #ifdef __cplusplus
16049 extern "C"
16050 #endif
16051 /* We use char because int might match the return type of a gcc2
16052    builtin and then its argument prototype would still apply.  */
16053 char initscr ();
16054 int
16055 main ()
16056 {
16057 initscr ();
16058   ;
16059   return 0;
16060 }
16061 _ACEOF
16062 rm -f conftest.$ac_objext conftest$ac_exeext
16063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16064   (eval $ac_link) 2>conftest.er1
16065   ac_status=$?
16066   grep -v '^ *+' conftest.er1 >conftest.err
16067   rm -f conftest.er1
16068   cat conftest.err >&5
16069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070   (exit $ac_status); } &&
16071          { ac_try='test -z "$ac_c_werror_flag"
16072                          || test ! -s conftest.err'
16073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16074   (eval $ac_try) 2>&5
16075   ac_status=$?
16076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077   (exit $ac_status); }; } &&
16078          { ac_try='test -s conftest$ac_exeext'
16079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16080   (eval $ac_try) 2>&5
16081   ac_status=$?
16082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083   (exit $ac_status); }; }; then
16084   ac_cv_lib_curses_initscr=yes
16085 else
16086   echo "$as_me: failed program was:" >&5
16087 sed 's/^/| /' conftest.$ac_ext >&5
16088
16089 ac_cv_lib_curses_initscr=no
16090 fi
16091 rm -f conftest.err conftest.$ac_objext \
16092       conftest$ac_exeext conftest.$ac_ext
16093 LIBS=$ac_check_lib_save_LIBS
16094 fi
16095 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
16096 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
16097 if test $ac_cv_lib_curses_initscr = yes; then
16098   lib_curses_opt=-lcurses
16099 else
16100    { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
16101 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
16102                       enable_ncurses=no
16103 fi
16104
16105                   ;;
16106                 *)
16107                   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM" = xyes; then
16108                     lib_curses_opt=libpdcurses.lib
16109
16110 cat >>confdefs.h <<\_ACEOF
16111 #define USE_PDCURSES 1
16112 _ACEOF
16113
16114                   else
16115                     { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
16116 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
16117                     enable_ncurses=no
16118                   fi
16119                   ;;
16120               esac
16121
16122 fi
16123
16124
16125 fi
16126
16127
16128 fi
16129
16130    ;; esac
16131 fi;
16132 case "x$enable_ncurses" in
16133 xyes)
16134   cat >> confdefs.h <<EOF
16135 #define IA_NCURSES 1
16136 EOF
16137
16138
16139
16140 if true; then
16141   ENABLE_NCURSES_TRUE=
16142   ENABLE_NCURSES_FALSE='#'
16143 else
16144   ENABLE_NCURSES_TRUE='#'
16145   ENABLE_NCURSES_FALSE=
16146 fi
16147
16148    LIBS="$LIBS $lib_curses_opt"
16149     case "$target" in
16150        *-*-freebsd123*)
16151          EXTRALIBS="$EXTRALIBS -lmytinfo"
16152          ;;
16153      esac
16154     INTERFACE_SRCS="$INTERFACE_SRCS ncurs_c.c"
16155
16156   ;;
16157 xdynamic)
16158   dynamic_targets="$dynamic_targets interface_n.\$(so)"
16159    n_so_libs="$lib_curses_opt"
16160     case "$target" in
16161        *-*-freebsd123*)
16162          EXTRALIBS="$EXTRALIBS -lmytinfo"
16163          ;;
16164      esac
16165   ;;
16166 *)
16167
16168   ;;
16169 esac
16170
16171
16172
16173
16174
16175 if false; then
16176   ENABLE_SLANG_TRUE=
16177   ENABLE_SLANG_FALSE='#'
16178 else
16179   ENABLE_SLANG_TRUE='#'
16180   ENABLE_SLANG_FALSE=
16181 fi
16182
16183 # Check whether --enable-slang or --disable-slang was given.
16184 if test "${enable_slang+set}" = set; then
16185   enableval="$enable_slang"
16186   case "x$enable_slang" in xyes|xdynamic)  echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5
16187 echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6
16188 if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then
16189   echo $ECHO_N "(cached) $ECHO_C" >&6
16190 else
16191   ac_check_lib_save_LIBS=$LIBS
16192 LIBS="-lslang  $LIBS"
16193 cat >conftest.$ac_ext <<_ACEOF
16194 /* confdefs.h.  */
16195 _ACEOF
16196 cat confdefs.h >>conftest.$ac_ext
16197 cat >>conftest.$ac_ext <<_ACEOF
16198 /* end confdefs.h.  */
16199
16200 /* Override any gcc2 internal prototype to avoid an error.  */
16201 #ifdef __cplusplus
16202 extern "C"
16203 #endif
16204 /* We use char because int might match the return type of a gcc2
16205    builtin and then its argument prototype would still apply.  */
16206 char SLang_init_tty ();
16207 int
16208 main ()
16209 {
16210 SLang_init_tty ();
16211   ;
16212   return 0;
16213 }
16214 _ACEOF
16215 rm -f conftest.$ac_objext conftest$ac_exeext
16216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16217   (eval $ac_link) 2>conftest.er1
16218   ac_status=$?
16219   grep -v '^ *+' conftest.er1 >conftest.err
16220   rm -f conftest.er1
16221   cat conftest.err >&5
16222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223   (exit $ac_status); } &&
16224          { ac_try='test -z "$ac_c_werror_flag"
16225                          || test ! -s conftest.err'
16226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16227   (eval $ac_try) 2>&5
16228   ac_status=$?
16229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230   (exit $ac_status); }; } &&
16231          { ac_try='test -s conftest$ac_exeext'
16232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16233   (eval $ac_try) 2>&5
16234   ac_status=$?
16235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236   (exit $ac_status); }; }; then
16237   ac_cv_lib_slang_SLang_init_tty=yes
16238 else
16239   echo "$as_me: failed program was:" >&5
16240 sed 's/^/| /' conftest.$ac_ext >&5
16241
16242 ac_cv_lib_slang_SLang_init_tty=no
16243 fi
16244 rm -f conftest.err conftest.$ac_objext \
16245       conftest$ac_exeext conftest.$ac_ext
16246 LIBS=$ac_check_lib_save_LIBS
16247 fi
16248 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5
16249 echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6
16250 if test $ac_cv_lib_slang_SLang_init_tty = yes; then
16251   :
16252 else
16253    enable_slang=no
16254       { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
16255 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
16256
16257 fi
16258
16259
16260
16261 for ac_header in slang/slang.h slang.h
16262 do
16263 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16265   echo "$as_me:$LINENO: checking for $ac_header" >&5
16266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16268   echo $ECHO_N "(cached) $ECHO_C" >&6
16269 fi
16270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16272 else
16273   # Is the header compilable?
16274 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16276 cat >conftest.$ac_ext <<_ACEOF
16277 /* confdefs.h.  */
16278 _ACEOF
16279 cat confdefs.h >>conftest.$ac_ext
16280 cat >>conftest.$ac_ext <<_ACEOF
16281 /* end confdefs.h.  */
16282 $ac_includes_default
16283 #include <$ac_header>
16284 _ACEOF
16285 rm -f conftest.$ac_objext
16286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16287   (eval $ac_compile) 2>conftest.er1
16288   ac_status=$?
16289   grep -v '^ *+' conftest.er1 >conftest.err
16290   rm -f conftest.er1
16291   cat conftest.err >&5
16292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293   (exit $ac_status); } &&
16294          { ac_try='test -z "$ac_c_werror_flag"
16295                          || test ! -s conftest.err'
16296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16297   (eval $ac_try) 2>&5
16298   ac_status=$?
16299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300   (exit $ac_status); }; } &&
16301          { ac_try='test -s conftest.$ac_objext'
16302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16303   (eval $ac_try) 2>&5
16304   ac_status=$?
16305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306   (exit $ac_status); }; }; then
16307   ac_header_compiler=yes
16308 else
16309   echo "$as_me: failed program was:" >&5
16310 sed 's/^/| /' conftest.$ac_ext >&5
16311
16312 ac_header_compiler=no
16313 fi
16314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16315 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16316 echo "${ECHO_T}$ac_header_compiler" >&6
16317
16318 # Is the header present?
16319 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16320 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16321 cat >conftest.$ac_ext <<_ACEOF
16322 /* confdefs.h.  */
16323 _ACEOF
16324 cat confdefs.h >>conftest.$ac_ext
16325 cat >>conftest.$ac_ext <<_ACEOF
16326 /* end confdefs.h.  */
16327 #include <$ac_header>
16328 _ACEOF
16329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16330   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16331   ac_status=$?
16332   grep -v '^ *+' conftest.er1 >conftest.err
16333   rm -f conftest.er1
16334   cat conftest.err >&5
16335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336   (exit $ac_status); } >/dev/null; then
16337   if test -s conftest.err; then
16338     ac_cpp_err=$ac_c_preproc_warn_flag
16339     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16340   else
16341     ac_cpp_err=
16342   fi
16343 else
16344   ac_cpp_err=yes
16345 fi
16346 if test -z "$ac_cpp_err"; then
16347   ac_header_preproc=yes
16348 else
16349   echo "$as_me: failed program was:" >&5
16350 sed 's/^/| /' conftest.$ac_ext >&5
16351
16352   ac_header_preproc=no
16353 fi
16354 rm -f conftest.err conftest.$ac_ext
16355 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16356 echo "${ECHO_T}$ac_header_preproc" >&6
16357
16358 # So?  What about this header?
16359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16360   yes:no: )
16361     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16362 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16363     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16364 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16365     ac_header_preproc=yes
16366     ;;
16367   no:yes:* )
16368     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16369 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16370     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16371 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16372     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16373 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16374     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16375 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16376     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16378     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16379 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16380     (
16381       cat <<\_ASBOX
16382 ## ------------------------------- ##
16383 ## Report this to root@mput.dip.jp ##
16384 ## ------------------------------- ##
16385 _ASBOX
16386     ) |
16387       sed "s/^/$as_me: WARNING:     /" >&2
16388     ;;
16389 esac
16390 echo "$as_me:$LINENO: checking for $ac_header" >&5
16391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16393   echo $ECHO_N "(cached) $ECHO_C" >&6
16394 else
16395   eval "$as_ac_Header=\$ac_header_preproc"
16396 fi
16397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16399
16400 fi
16401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16402   cat >>confdefs.h <<_ACEOF
16403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16404 _ACEOF
16405
16406 fi
16407
16408 done
16409
16410    ;; esac
16411 fi;
16412 case "x$enable_slang" in
16413 xyes)
16414   cat >> confdefs.h <<EOF
16415 #define IA_SLANG 1
16416 EOF
16417
16418
16419
16420 if true; then
16421   ENABLE_SLANG_TRUE=
16422   ENABLE_SLANG_FALSE='#'
16423 else
16424   ENABLE_SLANG_TRUE='#'
16425   ENABLE_SLANG_FALSE=
16426 fi
16427
16428    LIBS="$LIBS -lslang"
16429     INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
16430
16431   ;;
16432 xdynamic)
16433   dynamic_targets="$dynamic_targets interface_s.\$(so)"
16434    s_so_libs="-lslang"
16435     echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
16436 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6
16437 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
16438   echo $ECHO_N "(cached) $ECHO_C" >&6
16439 else
16440   ac_check_lib_save_LIBS=$LIBS
16441 LIBS="-ltermcap  $LIBS"
16442 cat >conftest.$ac_ext <<_ACEOF
16443 /* confdefs.h.  */
16444 _ACEOF
16445 cat confdefs.h >>conftest.$ac_ext
16446 cat >>conftest.$ac_ext <<_ACEOF
16447 /* end confdefs.h.  */
16448
16449 /* Override any gcc2 internal prototype to avoid an error.  */
16450 #ifdef __cplusplus
16451 extern "C"
16452 #endif
16453 /* We use char because int might match the return type of a gcc2
16454    builtin and then its argument prototype would still apply.  */
16455 char initscr ();
16456 int
16457 main ()
16458 {
16459 initscr ();
16460   ;
16461   return 0;
16462 }
16463 _ACEOF
16464 rm -f conftest.$ac_objext conftest$ac_exeext
16465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16466   (eval $ac_link) 2>conftest.er1
16467   ac_status=$?
16468   grep -v '^ *+' conftest.er1 >conftest.err
16469   rm -f conftest.er1
16470   cat conftest.err >&5
16471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472   (exit $ac_status); } &&
16473          { ac_try='test -z "$ac_c_werror_flag"
16474                          || test ! -s conftest.err'
16475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16476   (eval $ac_try) 2>&5
16477   ac_status=$?
16478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479   (exit $ac_status); }; } &&
16480          { ac_try='test -s conftest$ac_exeext'
16481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16482   (eval $ac_try) 2>&5
16483   ac_status=$?
16484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485   (exit $ac_status); }; }; then
16486   ac_cv_lib_termcap_initscr=yes
16487 else
16488   echo "$as_me: failed program was:" >&5
16489 sed 's/^/| /' conftest.$ac_ext >&5
16490
16491 ac_cv_lib_termcap_initscr=no
16492 fi
16493 rm -f conftest.err conftest.$ac_objext \
16494       conftest$ac_exeext conftest.$ac_ext
16495 LIBS=$ac_check_lib_save_LIBS
16496 fi
16497 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
16498 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6
16499 if test $ac_cv_lib_termcap_initscr = yes; then
16500   s_so_libs="$s_so_libs -ltermcap"
16501 fi
16502
16503
16504   ;;
16505 *)
16506
16507   ;;
16508 esac
16509
16510
16511
16512
16513
16514 if false; then
16515   ENABLE_MOTIF_TRUE=
16516   ENABLE_MOTIF_FALSE='#'
16517 else
16518   ENABLE_MOTIF_TRUE='#'
16519   ENABLE_MOTIF_FALSE=
16520 fi
16521
16522 # Check whether --enable-motif or --disable-motif was given.
16523 if test "${enable_motif+set}" = set; then
16524   enableval="$enable_motif"
16525   case "x$enable_motif" in xyes|xdynamic)  if test "x$with_x" != xyes; then
16526         { { echo "$as_me:$LINENO: error: motif: --with-x option must be specified" >&5
16527 echo "$as_me: error: motif: --with-x option must be specified" >&2;}
16528    { (exit 1); exit 1; }; }
16529     fi
16530     if test "x$have_xm" != xyes; then
16531       { echo "$as_me:$LINENO: WARNING: Motif library is not found." >&5
16532 echo "$as_me: WARNING: Motif library is not found." >&2;}
16533       enable_motif=no
16534     fi
16535    ;; esac
16536 fi;
16537 case "x$enable_motif" in
16538 xyes)
16539   cat >> confdefs.h <<EOF
16540 #define IA_MOTIF 1
16541 EOF
16542
16543
16544
16545 if true; then
16546   ENABLE_MOTIF_TRUE=
16547   ENABLE_MOTIF_FALSE='#'
16548 else
16549   ENABLE_MOTIF_TRUE='#'
16550   ENABLE_MOTIF_FALSE=
16551 fi
16552
16553    lib_xm_opt=-lXm
16554     lib_xt_opt=-lXt
16555     lib_xext_opt=-lXext
16556     if test "x$have_xprelibs" = xyes; then
16557         lib_xprelibs_opt='-lSM -lICE'
16558     fi
16559     INTERFACE_SRCS="$INTERFACE_SRCS motif_c.c motif_i.c motif_p.c"
16560
16561   ;;
16562 xdynamic)
16563   dynamic_targets="$dynamic_targets interface_m.\$(so)"
16564    if test x$have_xprelibs = xyes; then
16565       m_so_libs="-lXext -lSM -lICE"
16566     fi
16567     m_so_libs="$ldflags_x_opt -lXm -lXt $m_so_libs -lX11"
16568
16569   ;;
16570 *)
16571
16572   ;;
16573 esac
16574
16575
16576
16577
16578
16579 if false; then
16580   ENABLE_TCLTK_TRUE=
16581   ENABLE_TCLTK_FALSE='#'
16582 else
16583   ENABLE_TCLTK_TRUE='#'
16584   ENABLE_TCLTK_FALSE=
16585 fi
16586
16587 # Check whether --enable-tcltk or --disable-tcltk was given.
16588 if test "${enable_tcltk+set}" = set; then
16589   enableval="$enable_tcltk"
16590   case "x$enable_tcltk" in xyes|xdynamic)  if test "x$with_x" != xyes; then
16591         { { echo "$as_me:$LINENO: error: tcltk: --with-x option must be specified" >&5
16592 echo "$as_me: error: tcltk: --with-x option must be specified" >&2;}
16593    { (exit 1); exit 1; }; }
16594     fi
16595
16596         KEEPCPPFLAGS=$CPPFLAGS
16597     KEEPLDFLAGS=$LDFLAGS
16598     KEEPLIBS=$LIBS
16599
16600     CPPFLAGS="$tcl_include_dir $tk_includes $CPPFLAGS"
16601     LDFLAGS="$tcl_libdir $tk_libdir $LDFLAGS"
16602     LIBS="$LIBS $lib_dl_opt"
16603
16604     tcl_lib=
16605     tk_lib=
16606     for l in tcl tcl8.4 tcl8.3 tcl8.0jp tcl7.6jp tcl80jp tcl76jp tcl8.0 tcl7.6 tcl80 tcl76; do
16607       case "x$tcl_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tcl_Init" | $as_tr_sh`
16608 echo "$as_me:$LINENO: checking for Tcl_Init in -l$l" >&5
16609 echo $ECHO_N "checking for Tcl_Init in -l$l... $ECHO_C" >&6
16610 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16611   echo $ECHO_N "(cached) $ECHO_C" >&6
16612 else
16613   ac_check_lib_save_LIBS=$LIBS
16614 LIBS="-l$l  $LIBS"
16615 cat >conftest.$ac_ext <<_ACEOF
16616 /* confdefs.h.  */
16617 _ACEOF
16618 cat confdefs.h >>conftest.$ac_ext
16619 cat >>conftest.$ac_ext <<_ACEOF
16620 /* end confdefs.h.  */
16621
16622 /* Override any gcc2 internal prototype to avoid an error.  */
16623 #ifdef __cplusplus
16624 extern "C"
16625 #endif
16626 /* We use char because int might match the return type of a gcc2
16627    builtin and then its argument prototype would still apply.  */
16628 char Tcl_Init ();
16629 int
16630 main ()
16631 {
16632 Tcl_Init ();
16633   ;
16634   return 0;
16635 }
16636 _ACEOF
16637 rm -f conftest.$ac_objext conftest$ac_exeext
16638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16639   (eval $ac_link) 2>conftest.er1
16640   ac_status=$?
16641   grep -v '^ *+' conftest.er1 >conftest.err
16642   rm -f conftest.er1
16643   cat conftest.err >&5
16644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645   (exit $ac_status); } &&
16646          { ac_try='test -z "$ac_c_werror_flag"
16647                          || test ! -s conftest.err'
16648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16649   (eval $ac_try) 2>&5
16650   ac_status=$?
16651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652   (exit $ac_status); }; } &&
16653          { ac_try='test -s conftest$ac_exeext'
16654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16655   (eval $ac_try) 2>&5
16656   ac_status=$?
16657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658   (exit $ac_status); }; }; then
16659   eval "$as_ac_Lib=yes"
16660 else
16661   echo "$as_me: failed program was:" >&5
16662 sed 's/^/| /' conftest.$ac_ext >&5
16663
16664 eval "$as_ac_Lib=no"
16665 fi
16666 rm -f conftest.err conftest.$ac_objext \
16667       conftest$ac_exeext conftest.$ac_ext
16668 LIBS=$ac_check_lib_save_LIBS
16669 fi
16670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16671 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16672 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16673   tcl_lib=-l$l
16674 fi
16675 ;; esac
16676     done
16677     LIBS="$LIBS $tcl_lib"
16678     for l in tk tk8.4 tk8.3 tk8.0jp tk4.2jp tk80jp tk42jp tk8.0 tk4.2 tk80 tk42; do
16679       case "x$tk_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tk_Init" | $as_tr_sh`
16680 echo "$as_me:$LINENO: checking for Tk_Init in -l$l" >&5
16681 echo $ECHO_N "checking for Tk_Init in -l$l... $ECHO_C" >&6
16682 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16683   echo $ECHO_N "(cached) $ECHO_C" >&6
16684 else
16685   ac_check_lib_save_LIBS=$LIBS
16686 LIBS="-l$l  $LIBS"
16687 cat >conftest.$ac_ext <<_ACEOF
16688 /* confdefs.h.  */
16689 _ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h.  */
16693
16694 /* Override any gcc2 internal prototype to avoid an error.  */
16695 #ifdef __cplusplus
16696 extern "C"
16697 #endif
16698 /* We use char because int might match the return type of a gcc2
16699    builtin and then its argument prototype would still apply.  */
16700 char Tk_Init ();
16701 int
16702 main ()
16703 {
16704 Tk_Init ();
16705   ;
16706   return 0;
16707 }
16708 _ACEOF
16709 rm -f conftest.$ac_objext conftest$ac_exeext
16710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16711   (eval $ac_link) 2>conftest.er1
16712   ac_status=$?
16713   grep -v '^ *+' conftest.er1 >conftest.err
16714   rm -f conftest.er1
16715   cat conftest.err >&5
16716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717   (exit $ac_status); } &&
16718          { ac_try='test -z "$ac_c_werror_flag"
16719                          || test ! -s conftest.err'
16720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16721   (eval $ac_try) 2>&5
16722   ac_status=$?
16723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724   (exit $ac_status); }; } &&
16725          { ac_try='test -s conftest$ac_exeext'
16726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16727   (eval $ac_try) 2>&5
16728   ac_status=$?
16729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730   (exit $ac_status); }; }; then
16731   eval "$as_ac_Lib=yes"
16732 else
16733   echo "$as_me: failed program was:" >&5
16734 sed 's/^/| /' conftest.$ac_ext >&5
16735
16736 eval "$as_ac_Lib=no"
16737 fi
16738 rm -f conftest.err conftest.$ac_objext \
16739       conftest$ac_exeext conftest.$ac_ext
16740 LIBS=$ac_check_lib_save_LIBS
16741 fi
16742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16743 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16744 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16745   tk_lib=-l$l
16746 fi
16747 ;; esac
16748     done
16749
16750     LIBS=$KEEPLIBS
16751     if test "x$tcl_lib" = x -o "x$tk_lib" = x; then
16752       CPPFLAGS=$KEEPCPPFLAGS
16753       LDFLAGS=$KEEPLDFLAGS
16754       enable_tcltk=no
16755       { echo "$as_me:$LINENO: WARNING: tcl/tk is not enable" >&5
16756 echo "$as_me: WARNING: tcl/tk is not enable" >&2;}
16757     else
16758       tcltk_dep='tclIndex'
16759     fi
16760    ;; esac
16761 fi;
16762 case "x$enable_tcltk" in
16763 xyes)
16764   cat >> confdefs.h <<EOF
16765 #define IA_TCLTK 1
16766 EOF
16767
16768
16769
16770 if true; then
16771   ENABLE_TCLTK_TRUE=
16772   ENABLE_TCLTK_FALSE='#'
16773 else
16774   ENABLE_TCLTK_TRUE='#'
16775   ENABLE_TCLTK_FALSE=
16776 fi
16777
16778    LIBS=`echo $LIBS | sed "s/-lX11/$tk_lib $tcl_lib -lX11/"`
16779     case "$target" in
16780       *-*-bsdi*)
16781         EXTRALIBS="$EXTRALIBS -lipc"
16782         ;;
16783     esac
16784     INTERFACE_SRCS="$INTERFACE_SRCS tk_c.c"
16785
16786   ;;
16787 xdynamic)
16788   dynamic_targets="$dynamic_targets interface_k.\$(so)"
16789    k_so_libs="$tcl_libdir $tk_libdir $tcl_lib $tk_lib $lib_dl_opt"
16790     case "$target" in
16791       *-*-bsdi*)
16792         k_so_libs="$k_so_libs -lipc"
16793         ;;
16794     esac
16795     k_so_libs="$k_so_libs -lX11 -lm"
16796
16797   ;;
16798 *)
16799
16800   ;;
16801 esac
16802
16803
16804
16805
16806 if test "x$enable_tcltk" = "xdynamic"; then
16807   ENABLE_DYNAMIC_TCLTK_TRUE=
16808   ENABLE_DYNAMIC_TCLTK_FALSE='#'
16809 else
16810   ENABLE_DYNAMIC_TCLTK_TRUE='#'
16811   ENABLE_DYNAMIC_TCLTK_FALSE=
16812 fi
16813
16814
16815
16816
16817 if false; then
16818   ENABLE_EMACS_TRUE=
16819   ENABLE_EMACS_FALSE='#'
16820 else
16821   ENABLE_EMACS_TRUE='#'
16822   ENABLE_EMACS_FALSE=
16823 fi
16824
16825 # Check whether --enable-emacs or --disable-emacs was given.
16826 if test "${enable_emacs+set}" = set; then
16827   enableval="$enable_emacs"
16828   case "x$enable_emacs" in xyes|xdynamic)  ;; esac
16829 fi;
16830 case "x$enable_emacs" in
16831 xyes)
16832   cat >> confdefs.h <<EOF
16833 #define IA_EMACS 1
16834 EOF
16835
16836
16837
16838 if true; then
16839   ENABLE_EMACS_TRUE=
16840   ENABLE_EMACS_FALSE='#'
16841 else
16842   ENABLE_EMACS_TRUE='#'
16843   ENABLE_EMACS_FALSE=
16844 fi
16845
16846    ELFILES="$ELFILES timidity.el"
16847     INTERFACE_SRCS="$INTERFACE_SRCS emacs_c.c"
16848
16849   ;;
16850 xdynamic)
16851   dynamic_targets="$dynamic_targets interface_e.\$(so)"
16852    ELFILES="$ELFILES timidity.el"
16853   ;;
16854 *)
16855
16856   ;;
16857 esac
16858
16859
16860
16861
16862
16863 if false; then
16864   ENABLE_VT100_TRUE=
16865   ENABLE_VT100_FALSE='#'
16866 else
16867   ENABLE_VT100_TRUE='#'
16868   ENABLE_VT100_FALSE=
16869 fi
16870
16871 # Check whether --enable-vt100 or --disable-vt100 was given.
16872 if test "${enable_vt100+set}" = set; then
16873   enableval="$enable_vt100"
16874   case "x$enable_vt100" in xyes|xdynamic)  ;; esac
16875 fi;
16876 case "x$enable_vt100" in
16877 xyes)
16878   cat >> confdefs.h <<EOF
16879 #define IA_VT100 1
16880 EOF
16881
16882
16883
16884 if true; then
16885   ENABLE_VT100_TRUE=
16886   ENABLE_VT100_FALSE='#'
16887 else
16888   ENABLE_VT100_TRUE='#'
16889   ENABLE_VT100_FALSE=
16890 fi
16891
16892    INTERFACE_SRCS="$INTERFACE_SRCS vt100_c.c vt100.c"
16893   ;;
16894 xdynamic)
16895   dynamic_targets="$dynamic_targets interface_T.\$(so)"
16896
16897   ;;
16898 *)
16899
16900   ;;
16901 esac
16902
16903
16904
16905
16906
16907 if false; then
16908   ENABLE_XAW_TRUE=
16909   ENABLE_XAW_FALSE='#'
16910 else
16911   ENABLE_XAW_TRUE='#'
16912   ENABLE_XAW_FALSE=
16913 fi
16914
16915 # Check whether --enable-xaw or --disable-xaw was given.
16916 if test "${enable_xaw+set}" = set; then
16917   enableval="$enable_xaw"
16918   case "x$enable_xaw" in xyes|xdynamic)  if test "x$with_x" != xyes; then
16919         { { echo "$as_me:$LINENO: error: xaw: --with-x option must be specified" >&5
16920 echo "$as_me: error: xaw: --with-x option must be specified" >&2;}
16921    { (exit 1); exit 1; }; }
16922     fi
16923     if test "x$have_xaw" != "xyes" -a "x$have_xaw" != "x3d"; then
16924       { echo "$as_me:$LINENO: WARNING: X Athena Widget library is not found." >&5
16925 echo "$as_me: WARNING: X Athena Widget library is not found." >&2;}
16926       enable_xaw=no
16927     fi  ;; esac
16928 fi;
16929 case "x$enable_xaw" in
16930 xyes)
16931   cat >> confdefs.h <<EOF
16932 #define IA_XAW 1
16933 EOF
16934
16935
16936
16937 if true; then
16938   ENABLE_XAW_TRUE=
16939   ENABLE_XAW_FALSE='#'
16940 else
16941   ENABLE_XAW_TRUE='#'
16942   ENABLE_XAW_FALSE=
16943 fi
16944
16945        if test "x$have_xext" = xyes; then
16946       lib_xext_opt=-lXext
16947     fi
16948     if test "x$have_xprelibs" = xyes; then
16949       lib_xprelibs_opt='-lSM -lICE'
16950     fi
16951     lib_xmu_opt=-lXmu
16952     lib_xt_opt=-lXt
16953     if test "x$have_xaw" = x3d; then
16954
16955 cat >>confdefs.h <<\_ACEOF
16956 #define XAW3D 1
16957 _ACEOF
16958
16959       lib_xaw_opt=-lXaw3d
16960     else
16961       lib_xaw_opt=-lXaw
16962     fi
16963     INTERFACE_SRCS="$INTERFACE_SRCS xaw_c.c xaw_i.c"
16964
16965   ;;
16966 xdynamic)
16967   dynamic_targets="$dynamic_targets interface_a.\$(so)"
16968    if test "x$have_xext" = xyes; then
16969       a_so_libs="-lXext -lX11"
16970     else
16971       a_so_libs="-lX11"
16972     fi
16973     case "$target" in
16974       *darwin*)
16975         a_so_libs="$a_so_libs -lcc_dynamic"
16976         ;;
16977     esac
16978     if test "x$have_xprelibs" = xyes; then
16979       a_so_libs="-lSM -lICE $a_so_libs"
16980     fi
16981     if test "x$have_xaw" = xyes; then
16982       a_so_libs="-lXaw -lXmu -lXt $a_so_libs"
16983     elif test "x$have_xaw" = x3d; then
16984
16985 cat >>confdefs.h <<\_ACEOF
16986 #define XAW3D 1
16987 _ACEOF
16988
16989       a_so_libs="-lXaw3d -lXmu -lXt $a_so_libs"
16990     fi
16991     a_so_libs="$ldflags_x_opt $a_so_libs"
16992
16993   ;;
16994 *)
16995
16996   ;;
16997 esac
16998
16999
17000
17001
17002 if test "x$enable_xaw" = "xdynamic"; then
17003   ENABLE_DYNAMIC_XAW_TRUE=
17004   ENABLE_DYNAMIC_XAW_FALSE='#'
17005 else
17006   ENABLE_DYNAMIC_XAW_TRUE='#'
17007   ENABLE_DYNAMIC_XAW_FALSE=
17008 fi
17009
17010
17011
17012
17013 if false; then
17014   ENABLE_XSKIN_TRUE=
17015   ENABLE_XSKIN_FALSE='#'
17016 else
17017   ENABLE_XSKIN_TRUE='#'
17018   ENABLE_XSKIN_FALSE=
17019 fi
17020
17021 # Check whether --enable-xskin or --disable-xskin was given.
17022 if test "${enable_xskin+set}" = set; then
17023   enableval="$enable_xskin"
17024   case "x$enable_xskin" in xyes|xdynamic)  if test "x$with_x" != xyes; then
17025         { { echo "$as_me:$LINENO: error: xskin: --with-x option must be specified" >&5
17026 echo "$as_me: error: xskin: --with-x option must be specified" >&2;}
17027    { (exit 1); exit 1; }; }
17028     fi
17029    ;; esac
17030 fi;
17031 case "x$enable_xskin" in
17032 xyes)
17033   cat >> confdefs.h <<EOF
17034 #define IA_XSKIN 1
17035 EOF
17036
17037
17038
17039 if true; then
17040   ENABLE_XSKIN_TRUE=
17041   ENABLE_XSKIN_FALSE='#'
17042 else
17043   ENABLE_XSKIN_TRUE='#'
17044   ENABLE_XSKIN_FALSE=
17045 fi
17046
17047    INTERFACE_SRCS="$INTERFACE_SRCS xskin_c.c xskin_i.c xskin_loadBMP.c xskin_spectrum.c"
17048   ;;
17049 xdynamic)
17050   dynamic_targets="$dynamic_targets interface_i.\$(so)"
17051    i_so_libs="$ldflags_x_opt -lX11"
17052   ;;
17053 *)
17054
17055   ;;
17056 esac
17057
17058
17059
17060
17061
17062 if false; then
17063   ENABLE_GTK_TRUE=
17064   ENABLE_GTK_FALSE='#'
17065 else
17066   ENABLE_GTK_TRUE='#'
17067   ENABLE_GTK_FALSE=
17068 fi
17069
17070 # Check whether --enable-gtk or --disable-gtk was given.
17071 if test "${enable_gtk+set}" = set; then
17072   enableval="$enable_gtk"
17073   case "x$enable_gtk" in xyes|xdynamic)  # Check whether --enable-gtktest or --disable-gtktest was given.
17074 if test "${enable_gtktest+set}" = set; then
17075   enableval="$enable_gtktest"
17076
17077 else
17078   enable_gtktest=yes
17079 fi;
17080
17081   pkg_config_args=gtk+-2.0
17082   for module in .
17083   do
17084       case "$module" in
17085          gthread)
17086              pkg_config_args="$pkg_config_args gthread-2.0"
17087          ;;
17088       esac
17089   done
17090
17091   no_gtk=""
17092
17093   # Extract the first word of "pkg-config", so it can be a program name with args.
17094 set dummy pkg-config; ac_word=$2
17095 echo "$as_me:$LINENO: checking for $ac_word" >&5
17096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17097 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
17098   echo $ECHO_N "(cached) $ECHO_C" >&6
17099 else
17100   case $PKG_CONFIG in
17101   [\\/]* | ?:[\\/]*)
17102   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17103   ;;
17104   *)
17105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17106 for as_dir in $PATH
17107 do
17108   IFS=$as_save_IFS
17109   test -z "$as_dir" && as_dir=.
17110   for ac_exec_ext in '' $ac_executable_extensions; do
17111   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17112     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17114     break 2
17115   fi
17116 done
17117 done
17118
17119   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17120   ;;
17121 esac
17122 fi
17123 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17124
17125 if test -n "$PKG_CONFIG"; then
17126   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
17127 echo "${ECHO_T}$PKG_CONFIG" >&6
17128 else
17129   echo "$as_me:$LINENO: result: no" >&5
17130 echo "${ECHO_T}no" >&6
17131 fi
17132
17133
17134   if test x$PKG_CONFIG != xno ; then
17135     if pkg-config --atleast-pkgconfig-version 0.7 ; then
17136       :
17137     else
17138       echo *** pkg-config too old; version 0.7 or better required.
17139       no_gtk=yes
17140       PKG_CONFIG=no
17141     fi
17142   else
17143     no_gtk=yes
17144   fi
17145
17146   min_gtk_version=2.0.0
17147   echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
17148 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
17149
17150   if test x$PKG_CONFIG != xno ; then
17151     ## don't try to run the test against uninstalled libtool libs
17152     if $PKG_CONFIG --uninstalled $pkg_config_args; then
17153           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
17154           enable_gtktest=no
17155     fi
17156
17157     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
17158           :
17159     else
17160           no_gtk=yes
17161     fi
17162   fi
17163
17164   if test x"$no_gtk" = x ; then
17165     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
17166     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
17167     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
17168            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17169     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
17170            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17171     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
17172            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17173     if test "x$enable_gtktest" = "xyes" ; then
17174       ac_save_CFLAGS="$CFLAGS"
17175       ac_save_LIBS="$LIBS"
17176       CFLAGS="$CFLAGS $GTK_CFLAGS"
17177       LIBS="$GTK_LIBS $LIBS"
17178       rm -f conf.gtktest
17179       if test "$cross_compiling" = yes; then
17180   echo $ac_n "cross compiling; assumed OK... $ac_c"
17181 else
17182   cat >conftest.$ac_ext <<_ACEOF
17183 /* confdefs.h.  */
17184 _ACEOF
17185 cat confdefs.h >>conftest.$ac_ext
17186 cat >>conftest.$ac_ext <<_ACEOF
17187 /* end confdefs.h.  */
17188
17189 #include <gtk/gtk.h>
17190 #include <stdio.h>
17191 #include <stdlib.h>
17192
17193 int
17194 main ()
17195 {
17196   int major, minor, micro;
17197   char *tmp_version;
17198
17199   system ("touch conf.gtktest");
17200
17201   /* HP/UX 9 (%@#!) writes to sscanf strings */
17202   tmp_version = g_strdup("$min_gtk_version");
17203   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
17204      printf("%s, bad version string\n", "$min_gtk_version");
17205      exit(1);
17206    }
17207
17208   if ((gtk_major_version != $gtk_config_major_version) ||
17209       (gtk_minor_version != $gtk_config_minor_version) ||
17210       (gtk_micro_version != $gtk_config_micro_version))
17211     {
17212       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
17213              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
17214              gtk_major_version, gtk_minor_version, gtk_micro_version);
17215       printf ("*** was found! If pkg-config was correct, then it is best\n");
17216       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
17217       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17218       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17219       printf("*** required on your system.\n");
17220       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
17221       printf("*** to point to the correct configuration files\n");
17222     }
17223   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
17224            (gtk_minor_version != GTK_MINOR_VERSION) ||
17225            (gtk_micro_version != GTK_MICRO_VERSION))
17226     {
17227       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
17228              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
17229       printf("*** library (version %d.%d.%d)\n",
17230              gtk_major_version, gtk_minor_version, gtk_micro_version);
17231     }
17232   else
17233     {
17234       if ((gtk_major_version > major) ||
17235         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
17236         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
17237       {
17238         return 0;
17239        }
17240      else
17241       {
17242         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
17243                gtk_major_version, gtk_minor_version, gtk_micro_version);
17244         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
17245                major, minor, micro);
17246         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
17247         printf("***\n");
17248         printf("*** If you have already installed a sufficiently new version, this error\n");
17249         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
17250         printf("*** being found. The easiest way to fix this is to remove the old version\n");
17251         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
17252         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
17253         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17254         printf("*** so that the correct libraries are found at run-time))\n");
17255       }
17256     }
17257   return 1;
17258 }
17259
17260 _ACEOF
17261 rm -f conftest$ac_exeext
17262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17263   (eval $ac_link) 2>&5
17264   ac_status=$?
17265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17268   (eval $ac_try) 2>&5
17269   ac_status=$?
17270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271   (exit $ac_status); }; }; then
17272   :
17273 else
17274   echo "$as_me: program exited with status $ac_status" >&5
17275 echo "$as_me: failed program was:" >&5
17276 sed 's/^/| /' conftest.$ac_ext >&5
17277
17278 ( exit $ac_status )
17279 no_gtk=yes
17280 fi
17281 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17282 fi
17283        CFLAGS="$ac_save_CFLAGS"
17284        LIBS="$ac_save_LIBS"
17285      fi
17286   fi
17287   if test "x$no_gtk" = x ; then
17288      echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
17289 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
17290
17291 cat >>confdefs.h <<\_ACEOF
17292 #define HAVE_GTK_2 1
17293 _ACEOF
17294
17295   else
17296      echo "$as_me:$LINENO: result: no" >&5
17297 echo "${ECHO_T}no" >&6
17298      if test "$PKG_CONFIG" = "no" ; then
17299        echo "*** A new enough version of pkg-config was not found."
17300        echo "*** See http://pkgconfig.sourceforge.net"
17301      else
17302        if test -f conf.gtktest ; then
17303         :
17304        else
17305           echo "*** Could not run GTK+ test program, checking why..."
17306           ac_save_CFLAGS="$CFLAGS"
17307           ac_save_LIBS="$LIBS"
17308           CFLAGS="$CFLAGS $GTK_CFLAGS"
17309           LIBS="$LIBS $GTK_LIBS"
17310           cat >conftest.$ac_ext <<_ACEOF
17311 /* confdefs.h.  */
17312 _ACEOF
17313 cat confdefs.h >>conftest.$ac_ext
17314 cat >>conftest.$ac_ext <<_ACEOF
17315 /* end confdefs.h.  */
17316
17317 #include <gtk/gtk.h>
17318 #include <stdio.h>
17319
17320 int
17321 main ()
17322 {
17323  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
17324   ;
17325   return 0;
17326 }
17327 _ACEOF
17328 rm -f conftest.$ac_objext conftest$ac_exeext
17329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17330   (eval $ac_link) 2>conftest.er1
17331   ac_status=$?
17332   grep -v '^ *+' conftest.er1 >conftest.err
17333   rm -f conftest.er1
17334   cat conftest.err >&5
17335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336   (exit $ac_status); } &&
17337          { ac_try='test -z "$ac_c_werror_flag"
17338                          || test ! -s conftest.err'
17339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17340   (eval $ac_try) 2>&5
17341   ac_status=$?
17342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343   (exit $ac_status); }; } &&
17344          { ac_try='test -s conftest$ac_exeext'
17345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17346   (eval $ac_try) 2>&5
17347   ac_status=$?
17348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349   (exit $ac_status); }; }; then
17350    echo "*** The test program compiled, but did not run. This usually means"
17351           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
17352           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
17353           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17354           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
17355           echo "*** is required on your system"
17356           echo "***"
17357           echo "*** If you have an old version installed, it is best to remove it, although"
17358           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17359 else
17360   echo "$as_me: failed program was:" >&5
17361 sed 's/^/| /' conftest.$ac_ext >&5
17362
17363  echo "*** The test program failed to compile or link. See the file config.log for the"
17364           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
17365 fi
17366 rm -f conftest.err conftest.$ac_objext \
17367       conftest$ac_exeext conftest.$ac_ext
17368           CFLAGS="$ac_save_CFLAGS"
17369           LIBS="$ac_save_LIBS"
17370        fi
17371      fi
17372      GTK_CFLAGS=""
17373      GTK_LIBS=""
17374
17375 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
17376 if test "${with_gtk_prefix+set}" = set; then
17377   withval="$with_gtk_prefix"
17378   gtk_config_prefix="$withval"
17379 else
17380   gtk_config_prefix=""
17381 fi;
17382
17383 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
17384 if test "${with_gtk_exec_prefix+set}" = set; then
17385   withval="$with_gtk_exec_prefix"
17386   gtk_config_exec_prefix="$withval"
17387 else
17388   gtk_config_exec_prefix=""
17389 fi;
17390 # Check whether --enable-gtktest or --disable-gtktest was given.
17391 if test "${enable_gtktest+set}" = set; then
17392   enableval="$enable_gtktest"
17393
17394 else
17395   enable_gtktest=yes
17396 fi;
17397
17398   for module in .
17399   do
17400       case "$module" in
17401          gthread)
17402              gtk_config_args="$gtk_config_args gthread"
17403          ;;
17404       esac
17405   done
17406
17407   if test x$gtk_config_exec_prefix != x ; then
17408      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
17409      if test x${GTK_CONFIG+set} != xset ; then
17410         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
17411      fi
17412   fi
17413   if test x$gtk_config_prefix != x ; then
17414      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
17415      if test x${GTK_CONFIG+set} != xset ; then
17416         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
17417      fi
17418   fi
17419
17420   # Extract the first word of "gtk-config", so it can be a program name with args.
17421 set dummy gtk-config; ac_word=$2
17422 echo "$as_me:$LINENO: checking for $ac_word" >&5
17423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17424 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
17425   echo $ECHO_N "(cached) $ECHO_C" >&6
17426 else
17427   case $GTK_CONFIG in
17428   [\\/]* | ?:[\\/]*)
17429   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
17430   ;;
17431   *)
17432   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17433 for as_dir in $PATH
17434 do
17435   IFS=$as_save_IFS
17436   test -z "$as_dir" && as_dir=.
17437   for ac_exec_ext in '' $ac_executable_extensions; do
17438   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17439     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17441     break 2
17442   fi
17443 done
17444 done
17445
17446   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
17447   ;;
17448 esac
17449 fi
17450 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
17451
17452 if test -n "$GTK_CONFIG"; then
17453   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
17454 echo "${ECHO_T}$GTK_CONFIG" >&6
17455 else
17456   echo "$as_me:$LINENO: result: no" >&5
17457 echo "${ECHO_T}no" >&6
17458 fi
17459
17460   min_gtk_version=1.1.3
17461   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
17462 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
17463   no_gtk=""
17464   if test "$GTK_CONFIG" = "no" ; then
17465     no_gtk=yes
17466   else
17467     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
17468     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
17469     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
17470            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17471     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
17472            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17473     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
17474            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17475     if test "x$enable_gtktest" = "xyes" ; then
17476       ac_save_CFLAGS="$CFLAGS"
17477       ac_save_LIBS="$LIBS"
17478       CFLAGS="$CFLAGS $GTK_CFLAGS"
17479       LIBS="$GTK_LIBS $LIBS"
17480       rm -f conf.gtktest
17481       if test "$cross_compiling" = yes; then
17482   echo $ac_n "cross compiling; assumed OK... $ac_c"
17483 else
17484   cat >conftest.$ac_ext <<_ACEOF
17485 /* confdefs.h.  */
17486 _ACEOF
17487 cat confdefs.h >>conftest.$ac_ext
17488 cat >>conftest.$ac_ext <<_ACEOF
17489 /* end confdefs.h.  */
17490
17491 #include <gtk/gtk.h>
17492 #include <stdio.h>
17493 #include <stdlib.h>
17494
17495 int
17496 main ()
17497 {
17498   int major, minor, micro;
17499   char *tmp_version;
17500
17501   system ("touch conf.gtktest");
17502
17503   /* HP/UX 9 (%@#!) writes to sscanf strings */
17504   tmp_version = g_strdup("$min_gtk_version");
17505   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
17506      printf("%s, bad version string\n", "$min_gtk_version");
17507      exit(1);
17508    }
17509
17510   if ((gtk_major_version != $gtk_config_major_version) ||
17511       (gtk_minor_version != $gtk_config_minor_version) ||
17512       (gtk_micro_version != $gtk_config_micro_version))
17513     {
17514       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
17515              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
17516              gtk_major_version, gtk_minor_version, gtk_micro_version);
17517       printf ("*** was found! If gtk-config was correct, then it is best\n");
17518       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
17519       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17520       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17521       printf("*** required on your system.\n");
17522       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
17523       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
17524       printf("*** before re-running configure\n");
17525     }
17526 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
17527   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
17528            (gtk_minor_version != GTK_MINOR_VERSION) ||
17529            (gtk_micro_version != GTK_MICRO_VERSION))
17530     {
17531       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
17532              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
17533       printf("*** library (version %d.%d.%d)\n",
17534              gtk_major_version, gtk_minor_version, gtk_micro_version);
17535     }
17536 #endif /* defined (GTK_MAJOR_VERSION) ... */
17537   else
17538     {
17539       if ((gtk_major_version > major) ||
17540         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
17541         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
17542       {
17543         return 0;
17544        }
17545      else
17546       {
17547         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
17548                gtk_major_version, gtk_minor_version, gtk_micro_version);
17549         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
17550                major, minor, micro);
17551         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
17552         printf("***\n");
17553         printf("*** If you have already installed a sufficiently new version, this error\n");
17554         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
17555         printf("*** being found. The easiest way to fix this is to remove the old version\n");
17556         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
17557         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
17558         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17559         printf("*** so that the correct libraries are found at run-time))\n");
17560       }
17561     }
17562   return 1;
17563 }
17564
17565 _ACEOF
17566 rm -f conftest$ac_exeext
17567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17568   (eval $ac_link) 2>&5
17569   ac_status=$?
17570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573   (eval $ac_try) 2>&5
17574   ac_status=$?
17575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576   (exit $ac_status); }; }; then
17577   :
17578 else
17579   echo "$as_me: program exited with status $ac_status" >&5
17580 echo "$as_me: failed program was:" >&5
17581 sed 's/^/| /' conftest.$ac_ext >&5
17582
17583 ( exit $ac_status )
17584 no_gtk=yes
17585 fi
17586 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17587 fi
17588        CFLAGS="$ac_save_CFLAGS"
17589        LIBS="$ac_save_LIBS"
17590      fi
17591   fi
17592   if test "x$no_gtk" = x ; then
17593      echo "$as_me:$LINENO: result: yes" >&5
17594 echo "${ECHO_T}yes" >&6
17595      :
17596   else
17597      echo "$as_me:$LINENO: result: no" >&5
17598 echo "${ECHO_T}no" >&6
17599      if test "$GTK_CONFIG" = "no" ; then
17600        echo "*** The gtk-config script installed by GTK could not be found"
17601        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
17602        echo "*** your path, or set the GTK_CONFIG environment variable to the"
17603        echo "*** full path to gtk-config."
17604      else
17605        if test -f conf.gtktest ; then
17606         :
17607        else
17608           echo "*** Could not run GTK test program, checking why..."
17609           CFLAGS="$CFLAGS $GTK_CFLAGS"
17610           LIBS="$LIBS $GTK_LIBS"
17611           cat >conftest.$ac_ext <<_ACEOF
17612 /* confdefs.h.  */
17613 _ACEOF
17614 cat confdefs.h >>conftest.$ac_ext
17615 cat >>conftest.$ac_ext <<_ACEOF
17616 /* end confdefs.h.  */
17617
17618 #include <gtk/gtk.h>
17619 #include <stdio.h>
17620
17621 int
17622 main ()
17623 {
17624  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
17625   ;
17626   return 0;
17627 }
17628 _ACEOF
17629 rm -f conftest.$ac_objext conftest$ac_exeext
17630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17631   (eval $ac_link) 2>conftest.er1
17632   ac_status=$?
17633   grep -v '^ *+' conftest.er1 >conftest.err
17634   rm -f conftest.er1
17635   cat conftest.err >&5
17636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637   (exit $ac_status); } &&
17638          { ac_try='test -z "$ac_c_werror_flag"
17639                          || test ! -s conftest.err'
17640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17641   (eval $ac_try) 2>&5
17642   ac_status=$?
17643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644   (exit $ac_status); }; } &&
17645          { ac_try='test -s conftest$ac_exeext'
17646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17647   (eval $ac_try) 2>&5
17648   ac_status=$?
17649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650   (exit $ac_status); }; }; then
17651    echo "*** The test program compiled, but did not run. This usually means"
17652           echo "*** that the run-time linker is not finding GTK or finding the wrong"
17653           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
17654           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17655           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
17656           echo "*** is required on your system"
17657           echo "***"
17658           echo "*** If you have an old version installed, it is best to remove it, although"
17659           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17660           echo "***"
17661           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
17662           echo "*** came with the system with the command"
17663           echo "***"
17664           echo "***    rpm --erase --nodeps gtk gtk-devel"
17665 else
17666   echo "$as_me: failed program was:" >&5
17667 sed 's/^/| /' conftest.$ac_ext >&5
17668
17669  echo "*** The test program failed to compile or link. See the file config.log for the"
17670           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
17671           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
17672           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
17673 fi
17674 rm -f conftest.err conftest.$ac_objext \
17675       conftest$ac_exeext conftest.$ac_ext
17676           CFLAGS="$ac_save_CFLAGS"
17677           LIBS="$ac_save_LIBS"
17678        fi
17679      fi
17680      GTK_CFLAGS=""
17681      GTK_LIBS=""
17682      enable_gtk=no
17683   fi
17684
17685
17686   rm -f conf.gtktest
17687
17688   fi
17689
17690
17691   rm -f conf.gtktest
17692   ;; esac
17693 fi;
17694 case "x$enable_gtk" in
17695 xyes)
17696   cat >> confdefs.h <<EOF
17697 #define IA_GTK 1
17698 EOF
17699
17700
17701
17702 if true; then
17703   ENABLE_GTK_TRUE=
17704   ENABLE_GTK_FALSE='#'
17705 else
17706   ENABLE_GTK_TRUE='#'
17707   ENABLE_GTK_FALSE=
17708 fi
17709
17710    LIBS="$LIBS $GTK_LIBS"
17711     for f in $GTK_CFLAGS; do
17712     case ".$f" in
17713         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
17714         *)              CFLAGS="$CPPFLAGS $f" ;;
17715     esac
17716 done
17717
17718     INTERFACE_SRCS="$INTERFACE_SRCS gtk_c.c gtk_i.c gtk_p.c"
17719
17720   ;;
17721 xdynamic)
17722   dynamic_targets="$dynamic_targets interface_g.\$(so)"
17723    if test "x$GCC" = xyes; then
17724                 for i in $GTK_LIBS; do
17725             case "x$i" in
17726                 x-rdynamic) ;;
17727                 *) g_so_libs="$g_so_libs $i" ;;
17728             esac
17729         done
17730     else
17731         g_so_libs="$GTK_LIBS"
17732     fi
17733     for f in $GTK_CFLAGS; do
17734     case ".$f" in
17735         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
17736         *)              CFLAGS="$CPPFLAGS $f" ;;
17737     esac
17738 done
17739
17740   ;;
17741 *)
17742
17743   ;;
17744 esac
17745
17746
17747
17748
17749
17750 if false; then
17751   ENABLE_SERVER_TRUE=
17752   ENABLE_SERVER_FALSE='#'
17753 else
17754   ENABLE_SERVER_TRUE='#'
17755   ENABLE_SERVER_FALSE=
17756 fi
17757
17758 # Check whether --enable-server or --disable-server was given.
17759 if test "${enable_server+set}" = set; then
17760   enableval="$enable_server"
17761   case "x$enable_server" in xyes|xdynamic)  ;; esac
17762 fi;
17763 case "x$enable_server" in
17764 xyes)
17765   cat >> confdefs.h <<EOF
17766 #define IA_SERVER 1
17767 EOF
17768
17769
17770
17771 if true; then
17772   ENABLE_SERVER_TRUE=
17773   ENABLE_SERVER_FALSE='#'
17774 else
17775   ENABLE_SERVER_TRUE='#'
17776   ENABLE_SERVER_FALSE=
17777 fi
17778
17779    INTERFACE_SRCS="$INTERFACE_SRCS server_c.c"
17780
17781 for ac_header in sys/soundcard.h
17782 do
17783 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17785   echo "$as_me:$LINENO: checking for $ac_header" >&5
17786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17788   echo $ECHO_N "(cached) $ECHO_C" >&6
17789 fi
17790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17792 else
17793   # Is the header compilable?
17794 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17796 cat >conftest.$ac_ext <<_ACEOF
17797 /* confdefs.h.  */
17798 _ACEOF
17799 cat confdefs.h >>conftest.$ac_ext
17800 cat >>conftest.$ac_ext <<_ACEOF
17801 /* end confdefs.h.  */
17802 $ac_includes_default
17803 #include <$ac_header>
17804 _ACEOF
17805 rm -f conftest.$ac_objext
17806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17807   (eval $ac_compile) 2>conftest.er1
17808   ac_status=$?
17809   grep -v '^ *+' conftest.er1 >conftest.err
17810   rm -f conftest.er1
17811   cat conftest.err >&5
17812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813   (exit $ac_status); } &&
17814          { ac_try='test -z "$ac_c_werror_flag"
17815                          || test ! -s conftest.err'
17816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17817   (eval $ac_try) 2>&5
17818   ac_status=$?
17819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820   (exit $ac_status); }; } &&
17821          { ac_try='test -s conftest.$ac_objext'
17822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17823   (eval $ac_try) 2>&5
17824   ac_status=$?
17825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826   (exit $ac_status); }; }; then
17827   ac_header_compiler=yes
17828 else
17829   echo "$as_me: failed program was:" >&5
17830 sed 's/^/| /' conftest.$ac_ext >&5
17831
17832 ac_header_compiler=no
17833 fi
17834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17835 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17836 echo "${ECHO_T}$ac_header_compiler" >&6
17837
17838 # Is the header present?
17839 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17840 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17841 cat >conftest.$ac_ext <<_ACEOF
17842 /* confdefs.h.  */
17843 _ACEOF
17844 cat confdefs.h >>conftest.$ac_ext
17845 cat >>conftest.$ac_ext <<_ACEOF
17846 /* end confdefs.h.  */
17847 #include <$ac_header>
17848 _ACEOF
17849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17850   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17851   ac_status=$?
17852   grep -v '^ *+' conftest.er1 >conftest.err
17853   rm -f conftest.er1
17854   cat conftest.err >&5
17855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856   (exit $ac_status); } >/dev/null; then
17857   if test -s conftest.err; then
17858     ac_cpp_err=$ac_c_preproc_warn_flag
17859     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17860   else
17861     ac_cpp_err=
17862   fi
17863 else
17864   ac_cpp_err=yes
17865 fi
17866 if test -z "$ac_cpp_err"; then
17867   ac_header_preproc=yes
17868 else
17869   echo "$as_me: failed program was:" >&5
17870 sed 's/^/| /' conftest.$ac_ext >&5
17871
17872   ac_header_preproc=no
17873 fi
17874 rm -f conftest.err conftest.$ac_ext
17875 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17876 echo "${ECHO_T}$ac_header_preproc" >&6
17877
17878 # So?  What about this header?
17879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17880   yes:no: )
17881     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17883     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17884 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17885     ac_header_preproc=yes
17886     ;;
17887   no:yes:* )
17888     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17890     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17891 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17892     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17893 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17894     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17895 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17896     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17898     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17899 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17900     (
17901       cat <<\_ASBOX
17902 ## ------------------------------- ##
17903 ## Report this to root@mput.dip.jp ##
17904 ## ------------------------------- ##
17905 _ASBOX
17906     ) |
17907       sed "s/^/$as_me: WARNING:     /" >&2
17908     ;;
17909 esac
17910 echo "$as_me:$LINENO: checking for $ac_header" >&5
17911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17913   echo $ECHO_N "(cached) $ECHO_C" >&6
17914 else
17915   eval "$as_ac_Header=\$ac_header_preproc"
17916 fi
17917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17919
17920 fi
17921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17922   cat >>confdefs.h <<_ACEOF
17923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17924 _ACEOF
17925
17926 fi
17927
17928 done
17929
17930
17931   ;;
17932 xdynamic)
17933   dynamic_targets="$dynamic_targets interface_r.\$(so)"
17934
17935   ;;
17936 *)
17937
17938   ;;
17939 esac
17940
17941
17942
17943
17944
17945 if false; then
17946   ENABLE_ALSASEQ_TRUE=
17947   ENABLE_ALSASEQ_FALSE='#'
17948 else
17949   ENABLE_ALSASEQ_TRUE='#'
17950   ENABLE_ALSASEQ_FALSE=
17951 fi
17952
17953 # Check whether --enable-alsaseq or --disable-alsaseq was given.
17954 if test "${enable_alsaseq+set}" = set; then
17955   enableval="$enable_alsaseq"
17956   case "x$enable_alsaseq" in xyes|xdynamic)  ;; esac
17957 fi;
17958 case "x$enable_alsaseq" in
17959 xyes)
17960   cat >> confdefs.h <<EOF
17961 #define IA_ALSASEQ 1
17962 EOF
17963
17964
17965
17966 if true; then
17967   ENABLE_ALSASEQ_TRUE=
17968   ENABLE_ALSASEQ_FALSE='#'
17969 else
17970   ENABLE_ALSASEQ_TRUE='#'
17971   ENABLE_ALSASEQ_FALSE=
17972 fi
17973
17974    INTERFACE_SRCS="$INTERFACE_SRCS alsaseq_c.c"
17975     alsa_save_CFLAGS="$CFLAGS"
17976 alsa_save_LDFLAGS="$LDFLAGS"
17977 alsa_save_LIBS="$LIBS"
17978 alsa_found=yes
17979
17980
17981 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
17982 if test "${with_alsa_prefix+set}" = set; then
17983   withval="$with_alsa_prefix"
17984   alsa_prefix="$withval"
17985 else
17986   alsa_prefix=""
17987 fi;
17988
17989
17990 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
17991 if test "${with_alsa_inc_prefix+set}" = set; then
17992   withval="$with_alsa_inc_prefix"
17993   alsa_inc_prefix="$withval"
17994 else
17995   alsa_inc_prefix=""
17996 fi;
17997
17998 # Check whether --enable-alsatest or --disable-alsatest was given.
17999 if test "${enable_alsatest+set}" = set; then
18000   enableval="$enable_alsatest"
18001   enable_alsatest=no
18002 else
18003   enable_alsatest=yes
18004 fi;
18005
18006 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
18007 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
18008 if test "$alsa_inc_prefix" != "" ; then
18009         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
18010         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
18011 fi
18012 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
18013 echo "${ECHO_T}$ALSA_CFLAGS" >&6
18014
18015 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
18016 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
18017 if test "$alsa_prefix" != "" ; then
18018         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
18019         LDFLAGS="$LDFLAGS $ALSA_LIBS"
18020 fi
18021
18022 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
18023 LIBS=`echo $LIBS | sed 's/-lm//'`
18024 LIBS=`echo $LIBS | sed 's/-ldl//'`
18025 LIBS=`echo $LIBS | sed 's/-lpthread//'`
18026 LIBS=`echo $LIBS | sed 's/  //'`
18027 LIBS="$ALSA_LIBS $LIBS"
18028 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
18029 echo "${ECHO_T}$ALSA_LIBS" >&6
18030
18031 min_alsa_version=0.1.1
18032 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
18033 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
18034 no_alsa=""
18035     alsa_min_major_version=`echo $min_alsa_version | \
18036            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
18037     alsa_min_minor_version=`echo $min_alsa_version | \
18038            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
18039     alsa_min_micro_version=`echo $min_alsa_version | \
18040            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
18041
18042
18043
18044
18045 ac_ext=c
18046 ac_cpp='$CPP $CPPFLAGS'
18047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18050
18051 cat >conftest.$ac_ext <<_ACEOF
18052 /* confdefs.h.  */
18053 _ACEOF
18054 cat confdefs.h >>conftest.$ac_ext
18055 cat >>conftest.$ac_ext <<_ACEOF
18056 /* end confdefs.h.  */
18057
18058 #include <alsa/asoundlib.h>
18059
18060 int
18061 main ()
18062 {
18063
18064 /* ensure backward compatibility */
18065 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
18066 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
18067 #endif
18068 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
18069 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
18070 #endif
18071 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
18072 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
18073 #endif
18074
18075 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
18076   exit(0);
18077 #  else
18078 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
18079 #       error not present
18080 #    endif
18081
18082 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
18083   exit(0);
18084 #   else
18085 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
18086 #          error not present
18087 #      endif
18088
18089 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
18090 #        error not present
18091 #      endif
18092 #    endif
18093 #  endif
18094 exit(0);
18095
18096   ;
18097   return 0;
18098 }
18099 _ACEOF
18100 rm -f conftest.$ac_objext
18101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18102   (eval $ac_compile) 2>conftest.er1
18103   ac_status=$?
18104   grep -v '^ *+' conftest.er1 >conftest.err
18105   rm -f conftest.er1
18106   cat conftest.err >&5
18107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108   (exit $ac_status); } &&
18109          { ac_try='test -z "$ac_c_werror_flag"
18110                          || test ! -s conftest.err'
18111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18112   (eval $ac_try) 2>&5
18113   ac_status=$?
18114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115   (exit $ac_status); }; } &&
18116          { ac_try='test -s conftest.$ac_objext'
18117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18118   (eval $ac_try) 2>&5
18119   ac_status=$?
18120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121   (exit $ac_status); }; }; then
18122   echo "$as_me:$LINENO: result: found." >&5
18123 echo "${ECHO_T}found." >&6
18124 else
18125   echo "$as_me: failed program was:" >&5
18126 sed 's/^/| /' conftest.$ac_ext >&5
18127
18128 cat >conftest.$ac_ext <<_ACEOF
18129 /* confdefs.h.  */
18130 _ACEOF
18131 cat confdefs.h >>conftest.$ac_ext
18132 cat >>conftest.$ac_ext <<_ACEOF
18133 /* end confdefs.h.  */
18134
18135 #include <sys/asoundlib.h>
18136
18137 int
18138 main ()
18139 {
18140
18141 /* ensure backward compatibility */
18142 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
18143 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
18144 #endif
18145 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
18146 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
18147 #endif
18148 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
18149 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
18150 #endif
18151
18152 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
18153   exit(0);
18154 #  else
18155 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
18156 #       error not present
18157 #    endif
18158
18159 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
18160   exit(0);
18161 #   else
18162 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
18163 #          error not present
18164 #      endif
18165
18166 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
18167 #        error not present
18168 #      endif
18169 #    endif
18170 #  endif
18171 exit(0);
18172
18173   ;
18174   return 0;
18175 }
18176 _ACEOF
18177 rm -f conftest.$ac_objext
18178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18179   (eval $ac_compile) 2>conftest.er1
18180   ac_status=$?
18181   grep -v '^ *+' conftest.er1 >conftest.err
18182   rm -f conftest.er1
18183   cat conftest.err >&5
18184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185   (exit $ac_status); } &&
18186          { ac_try='test -z "$ac_c_werror_flag"
18187                          || test ! -s conftest.err'
18188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18189   (eval $ac_try) 2>&5
18190   ac_status=$?
18191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192   (exit $ac_status); }; } &&
18193          { ac_try='test -s conftest.$ac_objext'
18194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18195   (eval $ac_try) 2>&5
18196   ac_status=$?
18197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198   (exit $ac_status); }; }; then
18199   echo "$as_me:$LINENO: result: found." >&5
18200 echo "${ECHO_T}found." >&6
18201 else
18202   echo "$as_me: failed program was:" >&5
18203 sed 's/^/| /' conftest.$ac_ext >&5
18204
18205 echo "$as_me:$LINENO: result: not present." >&5
18206 echo "${ECHO_T}not present." >&6
18207    echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
18208 echo "${ECHO_T}libasound was not found anywhere." >&6
18209    alsa_found=no
18210 fi
18211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18212    echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
18213 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6
18214
18215 fi
18216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18217 ac_ext=c
18218 ac_cpp='$CPP $CPPFLAGS'
18219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18222
18223
18224
18225 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
18226 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
18227 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
18228   echo $ECHO_N "(cached) $ECHO_C" >&6
18229 else
18230   ac_check_lib_save_LIBS=$LIBS
18231 LIBS="-lasound  $LIBS"
18232 cat >conftest.$ac_ext <<_ACEOF
18233 /* confdefs.h.  */
18234 _ACEOF
18235 cat confdefs.h >>conftest.$ac_ext
18236 cat >>conftest.$ac_ext <<_ACEOF
18237 /* end confdefs.h.  */
18238
18239 /* Override any gcc2 internal prototype to avoid an error.  */
18240 #ifdef __cplusplus
18241 extern "C"
18242 #endif
18243 /* We use char because int might match the return type of a gcc2
18244    builtin and then its argument prototype would still apply.  */
18245 char snd_ctl_open ();
18246 int
18247 main ()
18248 {
18249 snd_ctl_open ();
18250   ;
18251   return 0;
18252 }
18253 _ACEOF
18254 rm -f conftest.$ac_objext conftest$ac_exeext
18255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18256   (eval $ac_link) 2>conftest.er1
18257   ac_status=$?
18258   grep -v '^ *+' conftest.er1 >conftest.err
18259   rm -f conftest.er1
18260   cat conftest.err >&5
18261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262   (exit $ac_status); } &&
18263          { ac_try='test -z "$ac_c_werror_flag"
18264                          || test ! -s conftest.err'
18265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18266   (eval $ac_try) 2>&5
18267   ac_status=$?
18268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269   (exit $ac_status); }; } &&
18270          { ac_try='test -s conftest$ac_exeext'
18271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18272   (eval $ac_try) 2>&5
18273   ac_status=$?
18274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275   (exit $ac_status); }; }; then
18276   ac_cv_lib_asound_snd_ctl_open=yes
18277 else
18278   echo "$as_me: failed program was:" >&5
18279 sed 's/^/| /' conftest.$ac_ext >&5
18280
18281 ac_cv_lib_asound_snd_ctl_open=no
18282 fi
18283 rm -f conftest.err conftest.$ac_objext \
18284       conftest$ac_exeext conftest.$ac_ext
18285 LIBS=$ac_check_lib_save_LIBS
18286 fi
18287 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
18288 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
18289 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
18290   cat >>confdefs.h <<_ACEOF
18291 #define HAVE_LIBASOUND 1
18292 _ACEOF
18293
18294   LIBS="-lasound $LIBS"
18295
18296 else
18297   echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
18298 echo "${ECHO_T}No linkable libasound was found." >&6
18299    alsa_found=no
18300
18301 fi
18302
18303
18304 if test "x$alsa_found" = "xyes" ; then
18305    :
18306    LIBS=`echo $LIBS | sed 's/-lasound//g'`
18307    LIBS=`echo $LIBS | sed 's/  //'`
18308    LIBS="-lasound $LIBS"
18309 else
18310    :
18311    CFLAGS="$alsa_save_CFLAGS"
18312    LDFLAGS="$alsa_save_LDFLAGS"
18313    LIBS="$alsa_save_LIBS"
18314    ALSA_CFLAGS=""
18315    ALSA_LIBS=""
18316 fi
18317
18318
18319
18320
18321
18322   ;;
18323 xdynamic)
18324   dynamic_targets="$dynamic_targets interface_A.\$(so)"
18325
18326   ;;
18327 *)
18328
18329   ;;
18330 esac
18331
18332
18333
18334
18335
18336 if false; then
18337   ENABLE_WINSYN_TRUE=
18338   ENABLE_WINSYN_FALSE='#'
18339 else
18340   ENABLE_WINSYN_TRUE='#'
18341   ENABLE_WINSYN_FALSE=
18342 fi
18343
18344 # Check whether --enable-winsyn or --disable-winsyn was given.
18345 if test "${enable_winsyn+set}" = set; then
18346   enableval="$enable_winsyn"
18347   case "x$enable_winsyn" in xyes|xdynamic)  ;; esac
18348 fi;
18349 case "x$enable_winsyn" in
18350 xyes)
18351   cat >> confdefs.h <<EOF
18352 #define IA_WINSYN 1
18353 EOF
18354
18355
18356
18357 if true; then
18358   ENABLE_WINSYN_TRUE=
18359   ENABLE_WINSYN_FALSE='#'
18360 else
18361   ENABLE_WINSYN_TRUE='#'
18362   ENABLE_WINSYN_FALSE=
18363 fi
18364
18365    INTERFACE_SRCS="$INTERFACE_SRCS winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
18366   ;;
18367 xdynamic)
18368   dynamic_targets="$dynamic_targets interface_W.\$(so)"
18369
18370   ;;
18371 *)
18372
18373   ;;
18374 esac
18375
18376
18377
18378
18379
18380 if false; then
18381   ENABLE_PORTMIDISYN_TRUE=
18382   ENABLE_PORTMIDISYN_FALSE='#'
18383 else
18384   ENABLE_PORTMIDISYN_TRUE='#'
18385   ENABLE_PORTMIDISYN_FALSE=
18386 fi
18387
18388 # Check whether --enable-portmidisyn or --disable-portmidisyn was given.
18389 if test "${enable_portmidisyn+set}" = set; then
18390   enableval="$enable_portmidisyn"
18391   case "x$enable_portmidisyn" in xyes|xdynamic)  ;; esac
18392 fi;
18393 case "x$enable_portmidisyn" in
18394 xyes)
18395   cat >> confdefs.h <<EOF
18396 #define IA_PORTMIDISYN 1
18397 EOF
18398
18399
18400
18401 if true; then
18402   ENABLE_PORTMIDISYN_TRUE=
18403   ENABLE_PORTMIDISYN_FALSE='#'
18404 else
18405   ENABLE_PORTMIDISYN_TRUE='#'
18406   ENABLE_PORTMIDISYN_FALSE=
18407 fi
18408
18409    INTERFACE_SRCS="$INTERFACE_SRCS portmidisyn_c.c rtsyn_common.c rtsyn_portmidi.c"
18410   ;;
18411 xdynamic)
18412   dynamic_targets="$dynamic_targets interface_P.\$(so)"
18413
18414   ;;
18415 *)
18416
18417   ;;
18418 esac
18419
18420
18421
18422
18423
18424 if false; then
18425   ENABLE_W32G_SYN_TRUE=
18426   ENABLE_W32G_SYN_FALSE='#'
18427 else
18428   ENABLE_W32G_SYN_TRUE='#'
18429   ENABLE_W32G_SYN_FALSE=
18430 fi
18431
18432 # Check whether --enable-winsyng or --disable-winsyng was given.
18433 if test "${enable_winsyng+set}" = set; then
18434   enableval="$enable_winsyng"
18435   case "x$enable_winsyng" in xyes|xdynamic)  ;; esac
18436 fi;
18437 case "x$enable_winsyng" in
18438 xyes)
18439   cat >> confdefs.h <<EOF
18440 #define IA_W32G_SYN 1
18441 EOF
18442
18443
18444
18445 if true; then
18446   ENABLE_W32G_SYN_TRUE=
18447   ENABLE_W32G_SYN_FALSE='#'
18448 else
18449   ENABLE_W32G_SYN_TRUE='#'
18450   ENABLE_W32G_SYN_FALSE=
18451 fi
18452
18453
18454   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM" = xyes; then
18455     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"
18456     lib_w32gui_opt='gdi32.lib comctl32.lib comdlg32.lib ole32.lib'
18457     lib_user32_opt='user32.lib'
18458     if test "x$VCPP" = xyes; then
18459           VCPP_LDFLAGS="$VCPP_LDFLAGS -subsystem:windows "
18460         fi
18461         if test "x$BORLANDC" = xyes; then
18462           BORLANDC_START='C0W32.OBJ'
18463           CFLAGS="$CFLAGS -tW"
18464           lib_w32gui_opt="-aa $lib_w32gui_opt"
18465         fi
18466         if test "x$WATCOM" = xyes; then
18467           CFLAGS="$CFLAGS -bw"
18468           WATCOM_LDFLAGS="$WATCOM_LDFLAGS SYS nt_win"
18469         fi
18470   else
18471         lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
18472     lib_user32_opt='-luser32'
18473     LDFLAGS="-mwindows $LDFLAGS"
18474     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"
18475   fi
18476
18477   ;;
18478 xdynamic)
18479   dynamic_targets="$dynamic_targets interface_W.\$(so)"
18480
18481   ;;
18482 *)
18483
18484   ;;
18485 esac
18486
18487
18488
18489
18490
18491
18492 if false; then
18493   ENABLE_W32GUI_TRUE=
18494   ENABLE_W32GUI_FALSE='#'
18495 else
18496   ENABLE_W32GUI_TRUE='#'
18497   ENABLE_W32GUI_FALSE=
18498 fi
18499
18500 # Check whether --enable-w32gui or --disable-w32gui was given.
18501 if test "${enable_w32gui+set}" = set; then
18502   enableval="$enable_w32gui"
18503   case "x$enable_w32gui" in xyes|xdynamic)  ;; esac
18504 fi;
18505 case "x$enable_w32gui" in
18506 xyes)
18507   cat >> confdefs.h <<EOF
18508 #define IA_W32GUI 1
18509 EOF
18510
18511
18512
18513 if true; then
18514   ENABLE_W32GUI_TRUE=
18515   ENABLE_W32GUI_FALSE='#'
18516 else
18517   ENABLE_W32GUI_TRUE='#'
18518   ENABLE_W32GUI_FALSE=
18519 fi
18520
18521
18522   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM" = xyes; then
18523         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"
18524     lib_w32gui_opt='gdi32.lib comctl32.lib comdlg32.lib ole32.lib'
18525     lib_user32_opt='user32.lib'
18526     if test "x$VCPP" = xyes; then
18527           VCPP_LDFLAGS="$VCPP_LDFLAGS -subsystem:windows "
18528         fi
18529         if test "x$BORLANDC" = xyes; then
18530           BORLANDC_START='C0W32.OBJ'
18531           CFLAGS="$CFLAGS -tW"
18532           lib_w32gui_opt="-aa $lib_w32gui_opt"
18533         fi
18534         if test "x$WATCOM" = xyes; then
18535           CFLAGS="$CFLAGS -bw"
18536           WATCOM_LDFLAGS="$WATCOM_LDFLAGS SYS nt_win"
18537         fi
18538   else
18539     lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
18540     lib_user32_opt='-luser32'
18541     LDFLAGS="-mwindows $LDFLAGS"
18542     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"
18543   fi
18544
18545   ;;
18546 xdynamic)
18547   dynamic_targets="$dynamic_targets interface_w.\$(so)"
18548
18549   ;;
18550 *)
18551
18552   ;;
18553 esac
18554
18555
18556
18557
18558
18559 if false; then
18560   ENABLE_PLUGIN_TRUE=
18561   ENABLE_PLUGIN_FALSE='#'
18562 else
18563   ENABLE_PLUGIN_TRUE='#'
18564   ENABLE_PLUGIN_FALSE=
18565 fi
18566
18567 # Check whether --enable-ump or --disable-ump was given.
18568 if test "${enable_ump+set}" = set; then
18569   enableval="$enable_ump"
18570   case "x$enable_ump" in xyes|xdynamic)  if test ! -d ump; then
18571         { { echo "$as_me:$LINENO: error: UMP Package is not exists.  Can't configure it." >&5
18572 echo "$as_me: error: UMP Package is not exists.  Can't configure it." >&2;}
18573    { (exit 1); exit 1; }; }
18574     fi
18575     if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18576   echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
18577 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
18578 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18579   echo $ECHO_N "(cached) $ECHO_C" >&6
18580 fi
18581 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
18582 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
18583 else
18584   # Is the header compilable?
18585 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
18586 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
18587 cat >conftest.$ac_ext <<_ACEOF
18588 /* confdefs.h.  */
18589 _ACEOF
18590 cat confdefs.h >>conftest.$ac_ext
18591 cat >>conftest.$ac_ext <<_ACEOF
18592 /* end confdefs.h.  */
18593 $ac_includes_default
18594 #include <X11/xpm.h>
18595 _ACEOF
18596 rm -f conftest.$ac_objext
18597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18598   (eval $ac_compile) 2>conftest.er1
18599   ac_status=$?
18600   grep -v '^ *+' conftest.er1 >conftest.err
18601   rm -f conftest.er1
18602   cat conftest.err >&5
18603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604   (exit $ac_status); } &&
18605          { ac_try='test -z "$ac_c_werror_flag"
18606                          || test ! -s conftest.err'
18607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18608   (eval $ac_try) 2>&5
18609   ac_status=$?
18610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611   (exit $ac_status); }; } &&
18612          { ac_try='test -s conftest.$ac_objext'
18613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18614   (eval $ac_try) 2>&5
18615   ac_status=$?
18616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617   (exit $ac_status); }; }; then
18618   ac_header_compiler=yes
18619 else
18620   echo "$as_me: failed program was:" >&5
18621 sed 's/^/| /' conftest.$ac_ext >&5
18622
18623 ac_header_compiler=no
18624 fi
18625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18626 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18627 echo "${ECHO_T}$ac_header_compiler" >&6
18628
18629 # Is the header present?
18630 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
18631 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
18632 cat >conftest.$ac_ext <<_ACEOF
18633 /* confdefs.h.  */
18634 _ACEOF
18635 cat confdefs.h >>conftest.$ac_ext
18636 cat >>conftest.$ac_ext <<_ACEOF
18637 /* end confdefs.h.  */
18638 #include <X11/xpm.h>
18639 _ACEOF
18640 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18641   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18642   ac_status=$?
18643   grep -v '^ *+' conftest.er1 >conftest.err
18644   rm -f conftest.er1
18645   cat conftest.err >&5
18646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647   (exit $ac_status); } >/dev/null; then
18648   if test -s conftest.err; then
18649     ac_cpp_err=$ac_c_preproc_warn_flag
18650     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18651   else
18652     ac_cpp_err=
18653   fi
18654 else
18655   ac_cpp_err=yes
18656 fi
18657 if test -z "$ac_cpp_err"; then
18658   ac_header_preproc=yes
18659 else
18660   echo "$as_me: failed program was:" >&5
18661 sed 's/^/| /' conftest.$ac_ext >&5
18662
18663   ac_header_preproc=no
18664 fi
18665 rm -f conftest.err conftest.$ac_ext
18666 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18667 echo "${ECHO_T}$ac_header_preproc" >&6
18668
18669 # So?  What about this header?
18670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18671   yes:no: )
18672     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
18673 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18674     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
18675 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
18676     ac_header_preproc=yes
18677     ;;
18678   no:yes:* )
18679     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
18680 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
18681     { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&5
18682 echo "$as_me: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&2;}
18683     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
18684 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
18685     { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&5
18686 echo "$as_me: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
18687     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
18688 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
18689     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
18690 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
18691     (
18692       cat <<\_ASBOX
18693 ## ------------------------------- ##
18694 ## Report this to root@mput.dip.jp ##
18695 ## ------------------------------- ##
18696 _ASBOX
18697     ) |
18698       sed "s/^/$as_me: WARNING:     /" >&2
18699     ;;
18700 esac
18701 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
18702 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
18703 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18704   echo $ECHO_N "(cached) $ECHO_C" >&6
18705 else
18706   ac_cv_header_X11_xpm_h=$ac_header_preproc
18707 fi
18708 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
18709 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
18710
18711 fi
18712 if test $ac_cv_header_X11_xpm_h = yes; then
18713   :
18714 else
18715   { { echo "$as_me:$LINENO: error: UMP Package needs xpm.h, but could not find it." >&5
18716 echo "$as_me: error: UMP Package needs xpm.h, but could not find it." >&2;}
18717    { (exit 1); exit 1; }; }
18718 fi
18719
18720
18721     echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
18722 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
18723 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
18724   echo $ECHO_N "(cached) $ECHO_C" >&6
18725 else
18726   ac_check_lib_save_LIBS=$LIBS
18727 LIBS="-lXpm  $LIBS"
18728 cat >conftest.$ac_ext <<_ACEOF
18729 /* confdefs.h.  */
18730 _ACEOF
18731 cat confdefs.h >>conftest.$ac_ext
18732 cat >>conftest.$ac_ext <<_ACEOF
18733 /* end confdefs.h.  */
18734
18735 /* Override any gcc2 internal prototype to avoid an error.  */
18736 #ifdef __cplusplus
18737 extern "C"
18738 #endif
18739 /* We use char because int might match the return type of a gcc2
18740    builtin and then its argument prototype would still apply.  */
18741 char XpmCreatePixmapFromData ();
18742 int
18743 main ()
18744 {
18745 XpmCreatePixmapFromData ();
18746   ;
18747   return 0;
18748 }
18749 _ACEOF
18750 rm -f conftest.$ac_objext conftest$ac_exeext
18751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18752   (eval $ac_link) 2>conftest.er1
18753   ac_status=$?
18754   grep -v '^ *+' conftest.er1 >conftest.err
18755   rm -f conftest.er1
18756   cat conftest.err >&5
18757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758   (exit $ac_status); } &&
18759          { ac_try='test -z "$ac_c_werror_flag"
18760                          || test ! -s conftest.err'
18761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18762   (eval $ac_try) 2>&5
18763   ac_status=$?
18764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765   (exit $ac_status); }; } &&
18766          { ac_try='test -s conftest$ac_exeext'
18767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18768   (eval $ac_try) 2>&5
18769   ac_status=$?
18770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771   (exit $ac_status); }; }; then
18772   ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
18773 else
18774   echo "$as_me: failed program was:" >&5
18775 sed 's/^/| /' conftest.$ac_ext >&5
18776
18777 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
18778 fi
18779 rm -f conftest.err conftest.$ac_objext \
18780       conftest$ac_exeext conftest.$ac_ext
18781 LIBS=$ac_check_lib_save_LIBS
18782 fi
18783 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
18784 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
18785 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
18786   :
18787 else
18788   { { echo "$as_me:$LINENO: error: UMP Package needs libXpm.a, but could not find it." >&5
18789 echo "$as_me: error: UMP Package needs libXpm.a, but could not find it." >&2;}
18790    { (exit 1); exit 1; }; }
18791 fi
18792
18793     if test "x$have_xext" = xyes; then
18794       lib_xext_opt=-lXext
18795     fi
18796     if test "x$have_xprelibs" = xyes; then
18797       lib_xprelibs_opt='-lSM -lICE'
18798     fi
18799     lib_xmu_opt=-lXmu
18800     lib_xt_opt=-lXt
18801    ;; esac
18802 fi;
18803 case "x$enable_ump" in
18804 xyes)
18805   cat >> confdefs.h <<EOF
18806 #define IA_PLUGIN 1
18807 EOF
18808
18809
18810
18811 if true; then
18812   ENABLE_PLUGIN_TRUE=
18813   ENABLE_PLUGIN_FALSE='#'
18814 else
18815   ENABLE_PLUGIN_TRUE='#'
18816   ENABLE_PLUGIN_FALSE=
18817 fi
18818
18819
18820   ;;
18821 xdynamic)
18822   dynamic_targets="$dynamic_targets interface_p.\$(so)"
18823
18824   ;;
18825 *)
18826
18827   ;;
18828 esac
18829
18830
18831
18832
18833 # Check whether --enable-offix or --disable-offix was given.
18834 if test "${enable_offix+set}" = set; then
18835   enableval="$enable_offix"
18836    if test "$enableval" = "yes"; then
18837       KEEPCPPFLAGS=$CPPFLAGS
18838       KEEPLIBS=$LIBS
18839       KEEPLDFLAGS=$LDFLAGS
18840       CPPFLAGS="$CPPFLAGS $offix_include_dir"
18841       LDFLAGS="$LDFLAGS $offix_lib_dir"
18842       LIBS="$LIBS $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11"
18843       echo "$as_me:$LINENO: checking for DndInitialize in -lDnd" >&5
18844 echo $ECHO_N "checking for DndInitialize in -lDnd... $ECHO_C" >&6
18845 if test "${ac_cv_lib_Dnd_DndInitialize+set}" = set; then
18846   echo $ECHO_N "(cached) $ECHO_C" >&6
18847 else
18848   ac_check_lib_save_LIBS=$LIBS
18849 LIBS="-lDnd  $LIBS"
18850 cat >conftest.$ac_ext <<_ACEOF
18851 /* confdefs.h.  */
18852 _ACEOF
18853 cat confdefs.h >>conftest.$ac_ext
18854 cat >>conftest.$ac_ext <<_ACEOF
18855 /* end confdefs.h.  */
18856
18857 /* Override any gcc2 internal prototype to avoid an error.  */
18858 #ifdef __cplusplus
18859 extern "C"
18860 #endif
18861 /* We use char because int might match the return type of a gcc2
18862    builtin and then its argument prototype would still apply.  */
18863 char DndInitialize ();
18864 int
18865 main ()
18866 {
18867 DndInitialize ();
18868   ;
18869   return 0;
18870 }
18871 _ACEOF
18872 rm -f conftest.$ac_objext conftest$ac_exeext
18873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18874   (eval $ac_link) 2>conftest.er1
18875   ac_status=$?
18876   grep -v '^ *+' conftest.er1 >conftest.err
18877   rm -f conftest.er1
18878   cat conftest.err >&5
18879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880   (exit $ac_status); } &&
18881          { ac_try='test -z "$ac_c_werror_flag"
18882                          || test ! -s conftest.err'
18883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884   (eval $ac_try) 2>&5
18885   ac_status=$?
18886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887   (exit $ac_status); }; } &&
18888          { ac_try='test -s conftest$ac_exeext'
18889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890   (eval $ac_try) 2>&5
18891   ac_status=$?
18892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893   (exit $ac_status); }; }; then
18894   ac_cv_lib_Dnd_DndInitialize=yes
18895 else
18896   echo "$as_me: failed program was:" >&5
18897 sed 's/^/| /' conftest.$ac_ext >&5
18898
18899 ac_cv_lib_Dnd_DndInitialize=no
18900 fi
18901 rm -f conftest.err conftest.$ac_objext \
18902       conftest$ac_exeext conftest.$ac_ext
18903 LIBS=$ac_check_lib_save_LIBS
18904 fi
18905 echo "$as_me:$LINENO: result: $ac_cv_lib_Dnd_DndInitialize" >&5
18906 echo "${ECHO_T}$ac_cv_lib_Dnd_DndInitialize" >&6
18907 if test $ac_cv_lib_Dnd_DndInitialize = yes; then
18908
18909         LIBS=$KEEPLIBS
18910         lib_offix_opt="-lDnd"
18911
18912 cat >>confdefs.h <<\_ACEOF
18913 #define OFFIX 1
18914 _ACEOF
18915
18916
18917 else
18918    LDFLAGS=$KEEPLDFLAGS
18919         CPPFLAGS=$KEEPCPPFLAGS
18920         LIBS=$KEEPLIBS
18921
18922 fi
18923
18924     fi
18925
18926 fi;
18927
18928 # Check whether --enable-network or --disable-network was given.
18929 if test "${enable_network+set}" = set; then
18930   enableval="$enable_network"
18931    if test "$enableval" = "yes"; then
18932
18933 cat >>confdefs.h <<\_ACEOF
18934 #define SUPPORT_SOCKET 1
18935 _ACEOF
18936
18937     fi
18938 fi;
18939
18940
18941 if test "x$enable_network" = "xyes"; then
18942   ENABLE_NETWORK_TRUE=
18943   ENABLE_NETWORK_FALSE='#'
18944 else
18945   ENABLE_NETWORK_TRUE='#'
18946   ENABLE_NETWORK_FALSE=
18947 fi
18948
18949
18950 # Check whether --enable-spectrogram or --disable-spectrogram was given.
18951 if test "${enable_spectrogram+set}" = set; then
18952   enableval="$enable_spectrogram"
18953    if test "$enableval" = "yes"; then
18954       if test "x$with_x" != xyes; then
18955         { { echo "$as_me:$LINENO: error: spectrogram: --with-x option must be specified" >&5
18956 echo "$as_me: error: spectrogram: --with-x option must be specified" >&2;}
18957    { (exit 1); exit 1; }; }
18958       fi
18959
18960 cat >>confdefs.h <<\_ACEOF
18961 #define SUPPORT_SOUNDSPEC 1
18962 _ACEOF
18963
18964     fi
18965 fi;
18966
18967
18968 if test "x$enable_spectrogram" = "xyes"; then
18969   ENABLE_SOUND_SPEC_TRUE=
18970   ENABLE_SOUND_SPEC_FALSE='#'
18971 else
18972   ENABLE_SOUND_SPEC_TRUE='#'
18973   ENABLE_SOUND_SPEC_FALSE=
18974 fi
18975
18976
18977 # Check whether --enable-spline or --disable-spline was given.
18978 if test "${enable_spline+set}" = set; then
18979   enableval="$enable_spline"
18980    case "x$enableval" in
18981       xlinear)
18982
18983 cat >>confdefs.h <<\_ACEOF
18984 #define DEFAULT_RESAMPLATION resample_linear
18985 _ACEOF
18986
18987         ;;
18988       xcubic)
18989
18990 cat >>confdefs.h <<\_ACEOF
18991 #define DEFAULT_RESAMPLATION resample_cspline
18992 _ACEOF
18993
18994         ;;
18995       xlagrange)
18996
18997 cat >>confdefs.h <<\_ACEOF
18998 #define DEFAULT_RESAMPLATION resample_lagrange
18999 _ACEOF
19000
19001         ;;
19002       xnewton)
19003
19004 cat >>confdefs.h <<\_ACEOF
19005 #define DEFAULT_RESAMPLATION resample_newton
19006 _ACEOF
19007
19008         ;;
19009       xgauss)
19010
19011 cat >>confdefs.h <<\_ACEOF
19012 #define DEFAULT_RESAMPLATION resample_gauss
19013 _ACEOF
19014
19015         ;;
19016       xno)
19017
19018 cat >>confdefs.h <<\_ACEOF
19019 #define DEFAULT_RESAMPLATION resample_none
19020 _ACEOF
19021
19022         ;;
19023       *)
19024         { { echo "$as_me:$LINENO: error: Invalid method of --enable-spline" >&5
19025 echo "$as_me: error: Invalid method of --enable-spline" >&2;}
19026    { (exit 1); exit 1; }; }
19027         ;;
19028     esac
19029 fi;
19030
19031 # Check whether --enable-wrd or --disable-wrd was given.
19032 if test "${enable_wrd+set}" = set; then
19033   enableval="$enable_wrd"
19034    if test "$enableval" = "yes"; then
19035       if test "x$with_x" != xyes; then
19036         { { echo "$as_me:$LINENO: error: wrd: --with-x option must be specified" >&5
19037 echo "$as_me: error: wrd: --with-x option must be specified" >&2;}
19038    { (exit 1); exit 1; }; }
19039       fi
19040
19041 cat >>confdefs.h <<\_ACEOF
19042 #define WRDT_X 1
19043 _ACEOF
19044
19045       enable_sherry_wrd=yes
19046       echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
19047 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
19048 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
19049   echo $ECHO_N "(cached) $ECHO_C" >&6
19050 else
19051   ac_check_lib_save_LIBS=$LIBS
19052 LIBS="-lz  $LIBS"
19053 cat >conftest.$ac_ext <<_ACEOF
19054 /* confdefs.h.  */
19055 _ACEOF
19056 cat confdefs.h >>conftest.$ac_ext
19057 cat >>conftest.$ac_ext <<_ACEOF
19058 /* end confdefs.h.  */
19059
19060 /* Override any gcc2 internal prototype to avoid an error.  */
19061 #ifdef __cplusplus
19062 extern "C"
19063 #endif
19064 /* We use char because int might match the return type of a gcc2
19065    builtin and then its argument prototype would still apply.  */
19066 char zlibVersion ();
19067 int
19068 main ()
19069 {
19070 zlibVersion ();
19071   ;
19072   return 0;
19073 }
19074 _ACEOF
19075 rm -f conftest.$ac_objext conftest$ac_exeext
19076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19077   (eval $ac_link) 2>conftest.er1
19078   ac_status=$?
19079   grep -v '^ *+' conftest.er1 >conftest.err
19080   rm -f conftest.er1
19081   cat conftest.err >&5
19082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083   (exit $ac_status); } &&
19084          { ac_try='test -z "$ac_c_werror_flag"
19085                          || test ! -s conftest.err'
19086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087   (eval $ac_try) 2>&5
19088   ac_status=$?
19089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090   (exit $ac_status); }; } &&
19091          { ac_try='test -s conftest$ac_exeext'
19092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19093   (eval $ac_try) 2>&5
19094   ac_status=$?
19095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096   (exit $ac_status); }; }; then
19097   ac_cv_lib_z_zlibVersion=yes
19098 else
19099   echo "$as_me: failed program was:" >&5
19100 sed 's/^/| /' conftest.$ac_ext >&5
19101
19102 ac_cv_lib_z_zlibVersion=no
19103 fi
19104 rm -f conftest.err conftest.$ac_objext \
19105       conftest$ac_exeext conftest.$ac_ext
19106 LIBS=$ac_check_lib_save_LIBS
19107 fi
19108 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
19109 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
19110 if test $ac_cv_lib_z_zlibVersion = yes; then
19111   :
19112 else
19113   enable_sherry_wrd=no
19114 fi
19115
19116       if test "${ac_cv_header_png_h+set}" = set; then
19117   echo "$as_me:$LINENO: checking for png.h" >&5
19118 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19119 if test "${ac_cv_header_png_h+set}" = set; then
19120   echo $ECHO_N "(cached) $ECHO_C" >&6
19121 fi
19122 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19123 echo "${ECHO_T}$ac_cv_header_png_h" >&6
19124 else
19125   # Is the header compilable?
19126 echo "$as_me:$LINENO: checking png.h usability" >&5
19127 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
19128 cat >conftest.$ac_ext <<_ACEOF
19129 /* confdefs.h.  */
19130 _ACEOF
19131 cat confdefs.h >>conftest.$ac_ext
19132 cat >>conftest.$ac_ext <<_ACEOF
19133 /* end confdefs.h.  */
19134 $ac_includes_default
19135 #include <png.h>
19136 _ACEOF
19137 rm -f conftest.$ac_objext
19138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19139   (eval $ac_compile) 2>conftest.er1
19140   ac_status=$?
19141   grep -v '^ *+' conftest.er1 >conftest.err
19142   rm -f conftest.er1
19143   cat conftest.err >&5
19144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145   (exit $ac_status); } &&
19146          { ac_try='test -z "$ac_c_werror_flag"
19147                          || test ! -s conftest.err'
19148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19149   (eval $ac_try) 2>&5
19150   ac_status=$?
19151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152   (exit $ac_status); }; } &&
19153          { ac_try='test -s conftest.$ac_objext'
19154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19155   (eval $ac_try) 2>&5
19156   ac_status=$?
19157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158   (exit $ac_status); }; }; then
19159   ac_header_compiler=yes
19160 else
19161   echo "$as_me: failed program was:" >&5
19162 sed 's/^/| /' conftest.$ac_ext >&5
19163
19164 ac_header_compiler=no
19165 fi
19166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19167 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19168 echo "${ECHO_T}$ac_header_compiler" >&6
19169
19170 # Is the header present?
19171 echo "$as_me:$LINENO: checking png.h presence" >&5
19172 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
19173 cat >conftest.$ac_ext <<_ACEOF
19174 /* confdefs.h.  */
19175 _ACEOF
19176 cat confdefs.h >>conftest.$ac_ext
19177 cat >>conftest.$ac_ext <<_ACEOF
19178 /* end confdefs.h.  */
19179 #include <png.h>
19180 _ACEOF
19181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19182   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19183   ac_status=$?
19184   grep -v '^ *+' conftest.er1 >conftest.err
19185   rm -f conftest.er1
19186   cat conftest.err >&5
19187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188   (exit $ac_status); } >/dev/null; then
19189   if test -s conftest.err; then
19190     ac_cpp_err=$ac_c_preproc_warn_flag
19191     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19192   else
19193     ac_cpp_err=
19194   fi
19195 else
19196   ac_cpp_err=yes
19197 fi
19198 if test -z "$ac_cpp_err"; then
19199   ac_header_preproc=yes
19200 else
19201   echo "$as_me: failed program was:" >&5
19202 sed 's/^/| /' conftest.$ac_ext >&5
19203
19204   ac_header_preproc=no
19205 fi
19206 rm -f conftest.err conftest.$ac_ext
19207 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19208 echo "${ECHO_T}$ac_header_preproc" >&6
19209
19210 # So?  What about this header?
19211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19212   yes:no: )
19213     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
19214 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19215     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
19216 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
19217     ac_header_preproc=yes
19218     ;;
19219   no:yes:* )
19220     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
19221 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
19222     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
19223 echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
19224     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
19225 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
19226     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
19227 echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19228     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
19229 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
19230     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
19231 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
19232     (
19233       cat <<\_ASBOX
19234 ## ------------------------------- ##
19235 ## Report this to root@mput.dip.jp ##
19236 ## ------------------------------- ##
19237 _ASBOX
19238     ) |
19239       sed "s/^/$as_me: WARNING:     /" >&2
19240     ;;
19241 esac
19242 echo "$as_me:$LINENO: checking for png.h" >&5
19243 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19244 if test "${ac_cv_header_png_h+set}" = set; then
19245   echo $ECHO_N "(cached) $ECHO_C" >&6
19246 else
19247   ac_cv_header_png_h=$ac_header_preproc
19248 fi
19249 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19250 echo "${ECHO_T}$ac_cv_header_png_h" >&6
19251
19252 fi
19253 if test $ac_cv_header_png_h = yes; then
19254   :
19255 else
19256   enable_sherry_wrd=no
19257 fi
19258
19259
19260       echo "$as_me:$LINENO: checking for png_init_io in -lpng" >&5
19261 echo $ECHO_N "checking for png_init_io in -lpng... $ECHO_C" >&6
19262 if test "${ac_cv_lib_png_png_init_io+set}" = set; then
19263   echo $ECHO_N "(cached) $ECHO_C" >&6
19264 else
19265   ac_check_lib_save_LIBS=$LIBS
19266 LIBS="-lpng -lz $LIBS"
19267 cat >conftest.$ac_ext <<_ACEOF
19268 /* confdefs.h.  */
19269 _ACEOF
19270 cat confdefs.h >>conftest.$ac_ext
19271 cat >>conftest.$ac_ext <<_ACEOF
19272 /* end confdefs.h.  */
19273
19274 /* Override any gcc2 internal prototype to avoid an error.  */
19275 #ifdef __cplusplus
19276 extern "C"
19277 #endif
19278 /* We use char because int might match the return type of a gcc2
19279    builtin and then its argument prototype would still apply.  */
19280 char png_init_io ();
19281 int
19282 main ()
19283 {
19284 png_init_io ();
19285   ;
19286   return 0;
19287 }
19288 _ACEOF
19289 rm -f conftest.$ac_objext conftest$ac_exeext
19290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19291   (eval $ac_link) 2>conftest.er1
19292   ac_status=$?
19293   grep -v '^ *+' conftest.er1 >conftest.err
19294   rm -f conftest.er1
19295   cat conftest.err >&5
19296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297   (exit $ac_status); } &&
19298          { ac_try='test -z "$ac_c_werror_flag"
19299                          || test ! -s conftest.err'
19300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19301   (eval $ac_try) 2>&5
19302   ac_status=$?
19303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304   (exit $ac_status); }; } &&
19305          { ac_try='test -s conftest$ac_exeext'
19306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19307   (eval $ac_try) 2>&5
19308   ac_status=$?
19309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310   (exit $ac_status); }; }; then
19311   ac_cv_lib_png_png_init_io=yes
19312 else
19313   echo "$as_me: failed program was:" >&5
19314 sed 's/^/| /' conftest.$ac_ext >&5
19315
19316 ac_cv_lib_png_png_init_io=no
19317 fi
19318 rm -f conftest.err conftest.$ac_objext \
19319       conftest$ac_exeext conftest.$ac_ext
19320 LIBS=$ac_check_lib_save_LIBS
19321 fi
19322 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_init_io" >&5
19323 echo "${ECHO_T}$ac_cv_lib_png_png_init_io" >&6
19324 if test $ac_cv_lib_png_png_init_io = yes; then
19325   :
19326 else
19327   enable_sherry_wrd=no
19328 fi
19329
19330       if test "$enable_sherry_wrd" = yes; then
19331
19332 cat >>confdefs.h <<\_ACEOF
19333 #define ENABLE_SHERRY 1
19334 _ACEOF
19335
19336         lib_zip_opt=-lz
19337         lib_png_opt=-lpng
19338       else
19339          { echo "$as_me:$LINENO: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&5
19340 echo "$as_me: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&2;}
19341       fi
19342       if test "x$have_xext" = xyes; then
19343         lib_xext_opt=-lXext
19344       fi
19345     fi
19346 fi;
19347
19348
19349
19350 #
19351 # Finish up
19352 #
19353
19354
19355
19356 if test "x$enable_wrd" = "xyes"; then
19357   ENABLE_WRD_TRUE=
19358   ENABLE_WRD_FALSE='#'
19359 else
19360   ENABLE_WRD_TRUE='#'
19361   ENABLE_WRD_FALSE=
19362 fi
19363
19364
19365
19366 if test "x$CYGNUS" = xyes; then
19367   CYGNUS_TRUE=
19368   CYGNUS_FALSE='#'
19369 else
19370   CYGNUS_TRUE='#'
19371   CYGNUS_FALSE=
19372 fi
19373
19374
19375
19376 if test "x$MSYS" = xyes; then
19377   MSYS_TRUE=
19378   MSYS_FALSE='#'
19379 else
19380   MSYS_TRUE='#'
19381   MSYS_FALSE=
19382 fi
19383
19384
19385
19386 if test "x$VCPP" = xyes; then
19387   VCPP_TRUE=
19388   VCPP_FALSE='#'
19389 else
19390   VCPP_TRUE='#'
19391   VCPP_FALSE=
19392 fi
19393
19394
19395
19396 if test "x$BORLANDC" = xyes; then
19397   BORLANDC_TRUE=
19398   BORLANDC_FALSE='#'
19399 else
19400   BORLANDC_TRUE='#'
19401   BORLANDC_FALSE=
19402 fi
19403
19404
19405
19406 if test "x$WATCOM" = xyes; then
19407   WATCOM_TRUE=
19408   WATCOM_FALSE='#'
19409 else
19410   WATCOM_TRUE='#'
19411   WATCOM_FALSE=
19412 fi
19413
19414
19415
19416
19417 if test "x$W32READDIR" = "xyes"; then
19418   W32READDIR_TRUE=
19419   W32READDIR_FALSE='#'
19420 else
19421   W32READDIR_TRUE='#'
19422   W32READDIR_FALSE=
19423 fi
19424
19425
19426 rm -f wordtmp >/dev/null 2>&1
19427 val=''
19428 for f in $LDFLAGS; do
19429   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19430   :
19431 else
19432   echo $f >>wordtmp; val="$val $f"
19433 fi
19434
19435 done
19436 LDFLAGS="$val"
19437 rm -f wordtmp >/dev/null 2>&1
19438
19439 rm -f wordtmp >/dev/null 2>&1
19440 val=''
19441 for f in $SHLDFLAGS; do
19442   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19443   :
19444 else
19445   echo $f >>wordtmp; val="$val $f"
19446 fi
19447
19448 done
19449 SHLDFLAGS="$val"
19450 rm -f wordtmp >/dev/null 2>&1
19451
19452 rm -f wordtmp >/dev/null 2>&1
19453 val=''
19454 for f in $EXTRACFLAGS $CFLAGS; do
19455   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19456   :
19457 else
19458   echo $f >>wordtmp; val="$val $f"
19459 fi
19460
19461 done
19462 CFLAGS="$val"
19463 rm -f wordtmp >/dev/null 2>&1
19464
19465 rm -f wordtmp >/dev/null 2>&1
19466 val=''
19467 for f in $CPPFLAGS $EXTRADEFS; do
19468   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19469   :
19470 else
19471   echo $f >>wordtmp; val="$val $f"
19472 fi
19473
19474 done
19475 CPPFLAGS="$val"
19476 rm -f wordtmp >/dev/null 2>&1
19477
19478
19479 if test "x$oss_device" != x; then
19480
19481 cat >>confdefs.h <<_ACEOF
19482 #define OSS_DEVICE "$oss_device"
19483 _ACEOF
19484
19485 fi
19486
19487 if test "x$TIMIDITY_OUTPUT_ID" != x; then
19488
19489 cat >>confdefs.h <<_ACEOF
19490 #define TIMIDITY_OUTPUT_ID "$TIMIDITY_OUTPUT_ID"
19491 _ACEOF
19492
19493 fi
19494
19495 if test "x$with_x" = xyes; then
19496     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/"`
19497 fi
19498 LIBS="$LIBS $lib_dl_opt $lib_png_opt $lib_zip_opt $lib_user32_opt $lib_w32gui_opt $EXTRALIBS"
19499 SHLD="$SHLD $SHLDFLAGS"
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518
19519
19520
19521
19522
19523                                                                                                                                                                                     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"
19524
19525 cat >confcache <<\_ACEOF
19526 # This file is a shell script that caches the results of configure
19527 # tests run on this system so they can be shared between configure
19528 # scripts and configure runs, see configure's option --config-cache.
19529 # It is not useful on other systems.  If it contains results you don't
19530 # want to keep, you may remove or edit it.
19531 #
19532 # config.status only pays attention to the cache file if you give it
19533 # the --recheck option to rerun configure.
19534 #
19535 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19536 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19537 # following values.
19538
19539 _ACEOF
19540
19541 # The following way of writing the cache mishandles newlines in values,
19542 # but we know of no workaround that is simple, portable, and efficient.
19543 # So, don't put newlines in cache variables' values.
19544 # Ultrix sh set writes to stderr and can't be redirected directly,
19545 # and sets the high bit in the cache file unless we assign to the vars.
19546 {
19547   (set) 2>&1 |
19548     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19549     *ac_space=\ *)
19550       # `set' does not quote correctly, so add quotes (double-quote
19551       # substitution turns \\\\ into \\, and sed turns \\ into \).
19552       sed -n \
19553         "s/'/'\\\\''/g;
19554           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19555       ;;
19556     *)
19557       # `set' quotes correctly as required by POSIX, so do not add quotes.
19558       sed -n \
19559         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19560       ;;
19561     esac;
19562 } |
19563   sed '
19564      t clear
19565      : clear
19566      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19567      t end
19568      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19569      : end' >>confcache
19570 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19571   if test -w $cache_file; then
19572     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19573     cat confcache >$cache_file
19574   else
19575     echo "not updating unwritable cache $cache_file"
19576   fi
19577 fi
19578 rm -f confcache
19579
19580 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19581 # Let make expand exec_prefix.
19582 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19583
19584 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19585 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19586 # trailing colons and then remove the whole line if VPATH becomes empty
19587 # (actually we leave an empty line to preserve line numbers).
19588 if test "x$srcdir" = x.; then
19589   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19590 s/:*\$(srcdir):*/:/;
19591 s/:*\${srcdir}:*/:/;
19592 s/:*@srcdir@:*/:/;
19593 s/^\([^=]*=[     ]*\):*/\1/;
19594 s/:*$//;
19595 s/^[^=]*=[       ]*$//;
19596 }'
19597 fi
19598
19599 DEFS=-DHAVE_CONFIG_H
19600
19601 ac_libobjs=
19602 ac_ltlibobjs=
19603 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19604   # 1. Remove the extension, and $U if already installed.
19605   ac_i=`echo "$ac_i" |
19606          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19607   # 2. Add them.
19608   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19609   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19610 done
19611 LIBOBJS=$ac_libobjs
19612
19613 LTLIBOBJS=$ac_ltlibobjs
19614
19615
19616 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19617   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19618 Usually this means the macro was only invoked conditionally." >&5
19619 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19620 Usually this means the macro was only invoked conditionally." >&2;}
19621    { (exit 1); exit 1; }; }
19622 fi
19623 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19624   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19625 Usually this means the macro was only invoked conditionally." >&5
19626 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19627 Usually this means the macro was only invoked conditionally." >&2;}
19628    { (exit 1); exit 1; }; }
19629 fi
19630 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19631   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19632 Usually this means the macro was only invoked conditionally." >&5
19633 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19634 Usually this means the macro was only invoked conditionally." >&2;}
19635    { (exit 1); exit 1; }; }
19636 fi
19637 if test -z "${NEEDGETOPT_TRUE}" && test -z "${NEEDGETOPT_FALSE}"; then
19638   { { echo "$as_me:$LINENO: error: conditional \"NEEDGETOPT\" was never defined.
19639 Usually this means the macro was only invoked conditionally." >&5
19640 echo "$as_me: error: conditional \"NEEDGETOPT\" was never defined.
19641 Usually this means the macro was only invoked conditionally." >&2;}
19642    { (exit 1); exit 1; }; }
19643 fi
19644 if test -z "${NEEDDLOPEN_TRUE}" && test -z "${NEEDDLOPEN_FALSE}"; then
19645   { { echo "$as_me:$LINENO: error: conditional \"NEEDDLOPEN\" was never defined.
19646 Usually this means the macro was only invoked conditionally." >&5
19647 echo "$as_me: error: conditional \"NEEDDLOPEN\" was never defined.
19648 Usually this means the macro was only invoked conditionally." >&2;}
19649    { (exit 1); exit 1; }; }
19650 fi
19651 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
19652   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
19653 Usually this means the macro was only invoked conditionally." >&5
19654 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
19655 Usually this means the macro was only invoked conditionally." >&2;}
19656    { (exit 1); exit 1; }; }
19657 fi
19658 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
19659   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
19660 Usually this means the macro was only invoked conditionally." >&5
19661 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
19662 Usually this means the macro was only invoked conditionally." >&2;}
19663    { (exit 1); exit 1; }; }
19664 fi
19665 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
19666   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
19667 Usually this means the macro was only invoked conditionally." >&5
19668 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
19669 Usually this means the macro was only invoked conditionally." >&2;}
19670    { (exit 1); exit 1; }; }
19671 fi
19672 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
19673   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
19674 Usually this means the macro was only invoked conditionally." >&5
19675 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
19676 Usually this means the macro was only invoked conditionally." >&2;}
19677    { (exit 1); exit 1; }; }
19678 fi
19679 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
19680   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
19681 Usually this means the macro was only invoked conditionally." >&5
19682 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
19683 Usually this means the macro was only invoked conditionally." >&2;}
19684    { (exit 1); exit 1; }; }
19685 fi
19686 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
19687   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
19688 Usually this means the macro was only invoked conditionally." >&5
19689 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
19690 Usually this means the macro was only invoked conditionally." >&2;}
19691    { (exit 1); exit 1; }; }
19692 fi
19693 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
19694   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
19695 Usually this means the macro was only invoked conditionally." >&5
19696 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
19697 Usually this means the macro was only invoked conditionally." >&2;}
19698    { (exit 1); exit 1; }; }
19699 fi
19700 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
19701   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
19702 Usually this means the macro was only invoked conditionally." >&5
19703 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
19704 Usually this means the macro was only invoked conditionally." >&2;}
19705    { (exit 1); exit 1; }; }
19706 fi
19707 if test -z "${ENABLE_DYNAMIC_TCLTK_TRUE}" && test -z "${ENABLE_DYNAMIC_TCLTK_FALSE}"; then
19708   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
19709 Usually this means the macro was only invoked conditionally." >&5
19710 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
19711 Usually this means the macro was only invoked conditionally." >&2;}
19712    { (exit 1); exit 1; }; }
19713 fi
19714 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
19715   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
19716 Usually this means the macro was only invoked conditionally." >&5
19717 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
19718 Usually this means the macro was only invoked conditionally." >&2;}
19719    { (exit 1); exit 1; }; }
19720 fi
19721 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
19722   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
19723 Usually this means the macro was only invoked conditionally." >&5
19724 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
19725 Usually this means the macro was only invoked conditionally." >&2;}
19726    { (exit 1); exit 1; }; }
19727 fi
19728 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
19729   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
19730 Usually this means the macro was only invoked conditionally." >&5
19731 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
19732 Usually this means the macro was only invoked conditionally." >&2;}
19733    { (exit 1); exit 1; }; }
19734 fi
19735 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
19736   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
19737 Usually this means the macro was only invoked conditionally." >&5
19738 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
19739 Usually this means the macro was only invoked conditionally." >&2;}
19740    { (exit 1); exit 1; }; }
19741 fi
19742 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
19743   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
19744 Usually this means the macro was only invoked conditionally." >&5
19745 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
19746 Usually this means the macro was only invoked conditionally." >&2;}
19747    { (exit 1); exit 1; }; }
19748 fi
19749 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
19750   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
19751 Usually this means the macro was only invoked conditionally." >&5
19752 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
19753 Usually this means the macro was only invoked conditionally." >&2;}
19754    { (exit 1); exit 1; }; }
19755 fi
19756 if test -z "${ENABLE_DYNAMIC_XAW_TRUE}" && test -z "${ENABLE_DYNAMIC_XAW_FALSE}"; then
19757   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
19758 Usually this means the macro was only invoked conditionally." >&5
19759 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
19760 Usually this means the macro was only invoked conditionally." >&2;}
19761    { (exit 1); exit 1; }; }
19762 fi
19763 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
19764   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
19765 Usually this means the macro was only invoked conditionally." >&5
19766 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
19767 Usually this means the macro was only invoked conditionally." >&2;}
19768    { (exit 1); exit 1; }; }
19769 fi
19770 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
19771   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
19772 Usually this means the macro was only invoked conditionally." >&5
19773 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
19774 Usually this means the macro was only invoked conditionally." >&2;}
19775    { (exit 1); exit 1; }; }
19776 fi
19777 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
19778   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
19779 Usually this means the macro was only invoked conditionally." >&5
19780 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
19781 Usually this means the macro was only invoked conditionally." >&2;}
19782    { (exit 1); exit 1; }; }
19783 fi
19784 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
19785   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
19786 Usually this means the macro was only invoked conditionally." >&5
19787 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
19788 Usually this means the macro was only invoked conditionally." >&2;}
19789    { (exit 1); exit 1; }; }
19790 fi
19791 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
19792   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
19793 Usually this means the macro was only invoked conditionally." >&5
19794 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
19795 Usually this means the macro was only invoked conditionally." >&2;}
19796    { (exit 1); exit 1; }; }
19797 fi
19798 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
19799   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
19800 Usually this means the macro was only invoked conditionally." >&5
19801 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
19802 Usually this means the macro was only invoked conditionally." >&2;}
19803    { (exit 1); exit 1; }; }
19804 fi
19805 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
19806   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19807 Usually this means the macro was only invoked conditionally." >&5
19808 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19809 Usually this means the macro was only invoked conditionally." >&2;}
19810    { (exit 1); exit 1; }; }
19811 fi
19812 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
19813   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19814 Usually this means the macro was only invoked conditionally." >&5
19815 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
19816 Usually this means the macro was only invoked conditionally." >&2;}
19817    { (exit 1); exit 1; }; }
19818 fi
19819 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
19820   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
19821 Usually this means the macro was only invoked conditionally." >&5
19822 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
19823 Usually this means the macro was only invoked conditionally." >&2;}
19824    { (exit 1); exit 1; }; }
19825 fi
19826 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
19827   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
19828 Usually this means the macro was only invoked conditionally." >&5
19829 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
19830 Usually this means the macro was only invoked conditionally." >&2;}
19831    { (exit 1); exit 1; }; }
19832 fi
19833 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
19834   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19835 Usually this means the macro was only invoked conditionally." >&5
19836 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19837 Usually this means the macro was only invoked conditionally." >&2;}
19838    { (exit 1); exit 1; }; }
19839 fi
19840 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
19841   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19842 Usually this means the macro was only invoked conditionally." >&5
19843 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
19844 Usually this means the macro was only invoked conditionally." >&2;}
19845    { (exit 1); exit 1; }; }
19846 fi
19847 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
19848   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19849 Usually this means the macro was only invoked conditionally." >&5
19850 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19851 Usually this means the macro was only invoked conditionally." >&2;}
19852    { (exit 1); exit 1; }; }
19853 fi
19854 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
19855   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19856 Usually this means the macro was only invoked conditionally." >&5
19857 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
19858 Usually this means the macro was only invoked conditionally." >&2;}
19859    { (exit 1); exit 1; }; }
19860 fi
19861 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
19862   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
19863 Usually this means the macro was only invoked conditionally." >&5
19864 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
19865 Usually this means the macro was only invoked conditionally." >&2;}
19866    { (exit 1); exit 1; }; }
19867 fi
19868 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
19869   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
19870 Usually this means the macro was only invoked conditionally." >&5
19871 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
19872 Usually this means the macro was only invoked conditionally." >&2;}
19873    { (exit 1); exit 1; }; }
19874 fi
19875 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
19876   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
19877 Usually this means the macro was only invoked conditionally." >&5
19878 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
19879 Usually this means the macro was only invoked conditionally." >&2;}
19880    { (exit 1); exit 1; }; }
19881 fi
19882 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
19883   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
19884 Usually this means the macro was only invoked conditionally." >&5
19885 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
19886 Usually this means the macro was only invoked conditionally." >&2;}
19887    { (exit 1); exit 1; }; }
19888 fi
19889 if test -z "${ENABLE_NETWORK_TRUE}" && test -z "${ENABLE_NETWORK_FALSE}"; then
19890   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NETWORK\" was never defined.
19891 Usually this means the macro was only invoked conditionally." >&5
19892 echo "$as_me: error: conditional \"ENABLE_NETWORK\" was never defined.
19893 Usually this means the macro was only invoked conditionally." >&2;}
19894    { (exit 1); exit 1; }; }
19895 fi
19896 if test -z "${ENABLE_SOUND_SPEC_TRUE}" && test -z "${ENABLE_SOUND_SPEC_FALSE}"; then
19897   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
19898 Usually this means the macro was only invoked conditionally." >&5
19899 echo "$as_me: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
19900 Usually this means the macro was only invoked conditionally." >&2;}
19901    { (exit 1); exit 1; }; }
19902 fi
19903 if test -z "${ENABLE_WRD_TRUE}" && test -z "${ENABLE_WRD_FALSE}"; then
19904   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WRD\" was never defined.
19905 Usually this means the macro was only invoked conditionally." >&5
19906 echo "$as_me: error: conditional \"ENABLE_WRD\" was never defined.
19907 Usually this means the macro was only invoked conditionally." >&2;}
19908    { (exit 1); exit 1; }; }
19909 fi
19910 if test -z "${CYGNUS_TRUE}" && test -z "${CYGNUS_FALSE}"; then
19911   { { echo "$as_me:$LINENO: error: conditional \"CYGNUS\" was never defined.
19912 Usually this means the macro was only invoked conditionally." >&5
19913 echo "$as_me: error: conditional \"CYGNUS\" was never defined.
19914 Usually this means the macro was only invoked conditionally." >&2;}
19915    { (exit 1); exit 1; }; }
19916 fi
19917 if test -z "${MSYS_TRUE}" && test -z "${MSYS_FALSE}"; then
19918   { { echo "$as_me:$LINENO: error: conditional \"MSYS\" was never defined.
19919 Usually this means the macro was only invoked conditionally." >&5
19920 echo "$as_me: error: conditional \"MSYS\" was never defined.
19921 Usually this means the macro was only invoked conditionally." >&2;}
19922    { (exit 1); exit 1; }; }
19923 fi
19924 if test -z "${VCPP_TRUE}" && test -z "${VCPP_FALSE}"; then
19925   { { echo "$as_me:$LINENO: error: conditional \"VCPP\" was never defined.
19926 Usually this means the macro was only invoked conditionally." >&5
19927 echo "$as_me: error: conditional \"VCPP\" was never defined.
19928 Usually this means the macro was only invoked conditionally." >&2;}
19929    { (exit 1); exit 1; }; }
19930 fi
19931 if test -z "${BORLANDC_TRUE}" && test -z "${BORLANDC_FALSE}"; then
19932   { { echo "$as_me:$LINENO: error: conditional \"BORLANDC\" was never defined.
19933 Usually this means the macro was only invoked conditionally." >&5
19934 echo "$as_me: error: conditional \"BORLANDC\" was never defined.
19935 Usually this means the macro was only invoked conditionally." >&2;}
19936    { (exit 1); exit 1; }; }
19937 fi
19938 if test -z "${WATCOM_TRUE}" && test -z "${WATCOM_FALSE}"; then
19939   { { echo "$as_me:$LINENO: error: conditional \"WATCOM\" was never defined.
19940 Usually this means the macro was only invoked conditionally." >&5
19941 echo "$as_me: error: conditional \"WATCOM\" was never defined.
19942 Usually this means the macro was only invoked conditionally." >&2;}
19943    { (exit 1); exit 1; }; }
19944 fi
19945 if test -z "${W32READDIR_TRUE}" && test -z "${W32READDIR_FALSE}"; then
19946   { { echo "$as_me:$LINENO: error: conditional \"W32READDIR\" was never defined.
19947 Usually this means the macro was only invoked conditionally." >&5
19948 echo "$as_me: error: conditional \"W32READDIR\" was never defined.
19949 Usually this means the macro was only invoked conditionally." >&2;}
19950    { (exit 1); exit 1; }; }
19951 fi
19952
19953 : ${CONFIG_STATUS=./config.status}
19954 ac_clean_files_save=$ac_clean_files
19955 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19956 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19957 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19958 cat >$CONFIG_STATUS <<_ACEOF
19959 #! $SHELL
19960 # Generated by $as_me.
19961 # Run this file to recreate the current configuration.
19962 # Compiler output produced by configure, useful for debugging
19963 # configure, is in config.log if it exists.
19964
19965 debug=false
19966 ac_cs_recheck=false
19967 ac_cs_silent=false
19968 SHELL=\${CONFIG_SHELL-$SHELL}
19969 _ACEOF
19970
19971 cat >>$CONFIG_STATUS <<\_ACEOF
19972 ## --------------------- ##
19973 ## M4sh Initialization.  ##
19974 ## --------------------- ##
19975
19976 # Be Bourne compatible
19977 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19978   emulate sh
19979   NULLCMD=:
19980   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19981   # is contrary to our usage.  Disable this feature.
19982   alias -g '${1+"$@"}'='"$@"'
19983 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19984   set -o posix
19985 fi
19986 DUALCASE=1; export DUALCASE # for MKS sh
19987
19988 # Support unset when possible.
19989 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19990   as_unset=unset
19991 else
19992   as_unset=false
19993 fi
19994
19995
19996 # Work around bugs in pre-3.0 UWIN ksh.
19997 $as_unset ENV MAIL MAILPATH
19998 PS1='$ '
19999 PS2='> '
20000 PS4='+ '
20001
20002 # NLS nuisances.
20003 for as_var in \
20004   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20005   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20006   LC_TELEPHONE LC_TIME
20007 do
20008   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20009     eval $as_var=C; export $as_var
20010   else
20011     $as_unset $as_var
20012   fi
20013 done
20014
20015 # Required to use basename.
20016 if expr a : '\(a\)' >/dev/null 2>&1; then
20017   as_expr=expr
20018 else
20019   as_expr=false
20020 fi
20021
20022 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20023   as_basename=basename
20024 else
20025   as_basename=false
20026 fi
20027
20028
20029 # Name of the executable.
20030 as_me=`$as_basename "$0" ||
20031 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20032          X"$0" : 'X\(//\)$' \| \
20033          X"$0" : 'X\(/\)$' \| \
20034          .     : '\(.\)' 2>/dev/null ||
20035 echo X/"$0" |
20036     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20037           /^X\/\(\/\/\)$/{ s//\1/; q; }
20038           /^X\/\(\/\).*/{ s//\1/; q; }
20039           s/.*/./; q'`
20040
20041
20042 # PATH needs CR, and LINENO needs CR and PATH.
20043 # Avoid depending upon Character Ranges.
20044 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20045 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20046 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20047 as_cr_digits='0123456789'
20048 as_cr_alnum=$as_cr_Letters$as_cr_digits
20049
20050 # The user is always right.
20051 if test "${PATH_SEPARATOR+set}" != set; then
20052   echo "#! /bin/sh" >conf$$.sh
20053   echo  "exit 0"   >>conf$$.sh
20054   chmod +x conf$$.sh
20055   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20056     PATH_SEPARATOR=';'
20057   else
20058     PATH_SEPARATOR=:
20059   fi
20060   rm -f conf$$.sh
20061 fi
20062
20063
20064   as_lineno_1=$LINENO
20065   as_lineno_2=$LINENO
20066   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20067   test "x$as_lineno_1" != "x$as_lineno_2" &&
20068   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20069   # Find who we are.  Look in the path if we contain no path at all
20070   # relative or not.
20071   case $0 in
20072     *[\\/]* ) as_myself=$0 ;;
20073     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20074 for as_dir in $PATH
20075 do
20076   IFS=$as_save_IFS
20077   test -z "$as_dir" && as_dir=.
20078   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20079 done
20080
20081        ;;
20082   esac
20083   # We did not find ourselves, most probably we were run as `sh COMMAND'
20084   # in which case we are not to be found in the path.
20085   if test "x$as_myself" = x; then
20086     as_myself=$0
20087   fi
20088   if test ! -f "$as_myself"; then
20089     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20090 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20091    { (exit 1); exit 1; }; }
20092   fi
20093   case $CONFIG_SHELL in
20094   '')
20095     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20096 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20097 do
20098   IFS=$as_save_IFS
20099   test -z "$as_dir" && as_dir=.
20100   for as_base in sh bash ksh sh5; do
20101          case $as_dir in
20102          /*)
20103            if ("$as_dir/$as_base" -c '
20104   as_lineno_1=$LINENO
20105   as_lineno_2=$LINENO
20106   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20107   test "x$as_lineno_1" != "x$as_lineno_2" &&
20108   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20109              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20110              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20111              CONFIG_SHELL=$as_dir/$as_base
20112              export CONFIG_SHELL
20113              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20114            fi;;
20115          esac
20116        done
20117 done
20118 ;;
20119   esac
20120
20121   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20122   # uniformly replaced by the line number.  The first 'sed' inserts a
20123   # line-number line before each line; the second 'sed' does the real
20124   # work.  The second script uses 'N' to pair each line-number line
20125   # with the numbered line, and appends trailing '-' during
20126   # substitution so that $LINENO is not a special case at line end.
20127   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20128   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20129   sed '=' <$as_myself |
20130     sed '
20131       N
20132       s,$,-,
20133       : loop
20134       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20135       t loop
20136       s,-$,,
20137       s,^['$as_cr_digits']*\n,,
20138     ' >$as_me.lineno &&
20139   chmod +x $as_me.lineno ||
20140     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20141 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20142    { (exit 1); exit 1; }; }
20143
20144   # Don't try to exec as it changes $[0], causing all sort of problems
20145   # (the dirname of $[0] is not the place where we might find the
20146   # original and so on.  Autoconf is especially sensible to this).
20147   . ./$as_me.lineno
20148   # Exit status is that of the last command.
20149   exit
20150 }
20151
20152
20153 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20154   *c*,-n*) ECHO_N= ECHO_C='
20155 ' ECHO_T='      ' ;;
20156   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20157   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20158 esac
20159
20160 if expr a : '\(a\)' >/dev/null 2>&1; then
20161   as_expr=expr
20162 else
20163   as_expr=false
20164 fi
20165
20166 rm -f conf$$ conf$$.exe conf$$.file
20167 echo >conf$$.file
20168 if ln -s conf$$.file conf$$ 2>/dev/null; then
20169   # We could just check for DJGPP; but this test a) works b) is more generic
20170   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20171   if test -f conf$$.exe; then
20172     # Don't use ln at all; we don't have any links
20173     as_ln_s='cp -p'
20174   else
20175     as_ln_s='ln -s'
20176   fi
20177 elif ln conf$$.file conf$$ 2>/dev/null; then
20178   as_ln_s=ln
20179 else
20180   as_ln_s='cp -p'
20181 fi
20182 rm -f conf$$ conf$$.exe conf$$.file
20183
20184 if mkdir -p . 2>/dev/null; then
20185   as_mkdir_p=:
20186 else
20187   test -d ./-p && rmdir ./-p
20188   as_mkdir_p=false
20189 fi
20190
20191 as_executable_p="test -f"
20192
20193 # Sed expression to map a string onto a valid CPP name.
20194 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20195
20196 # Sed expression to map a string onto a valid variable name.
20197 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20198
20199
20200 # IFS
20201 # We need space, tab and new line, in precisely that order.
20202 as_nl='
20203 '
20204 IFS="   $as_nl"
20205
20206 # CDPATH.
20207 $as_unset CDPATH
20208
20209 exec 6>&1
20210
20211 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20212 # report actual input values of CONFIG_FILES etc. instead of their
20213 # values after options handling.  Logging --version etc. is OK.
20214 exec 5>>config.log
20215 {
20216   echo
20217   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20218 ## Running $as_me. ##
20219 _ASBOX
20220 } >&5
20221 cat >&5 <<_CSEOF
20222
20223 This file was extended by TiMidity++ $as_me current, which was
20224 generated by GNU Autoconf 2.59.  Invocation command line was
20225
20226   CONFIG_FILES    = $CONFIG_FILES
20227   CONFIG_HEADERS  = $CONFIG_HEADERS
20228   CONFIG_LINKS    = $CONFIG_LINKS
20229   CONFIG_COMMANDS = $CONFIG_COMMANDS
20230   $ $0 $@
20231
20232 _CSEOF
20233 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20234 echo >&5
20235 _ACEOF
20236
20237 # Files that config.status was made for.
20238 if test -n "$ac_config_files"; then
20239   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20240 fi
20241
20242 if test -n "$ac_config_headers"; then
20243   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20244 fi
20245
20246 if test -n "$ac_config_links"; then
20247   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20248 fi
20249
20250 if test -n "$ac_config_commands"; then
20251   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20252 fi
20253
20254 cat >>$CONFIG_STATUS <<\_ACEOF
20255
20256 ac_cs_usage="\
20257 \`$as_me' instantiates files from templates according to the
20258 current configuration.
20259
20260 Usage: $0 [OPTIONS] [FILE]...
20261
20262   -h, --help       print this help, then exit
20263   -V, --version    print version number, then exit
20264   -q, --quiet      do not print progress messages
20265   -d, --debug      don't remove temporary files
20266       --recheck    update $as_me by reconfiguring in the same conditions
20267   --file=FILE[:TEMPLATE]
20268                    instantiate the configuration file FILE
20269   --header=FILE[:TEMPLATE]
20270                    instantiate the configuration header FILE
20271
20272 Configuration files:
20273 $config_files
20274
20275 Configuration headers:
20276 $config_headers
20277
20278 Configuration commands:
20279 $config_commands
20280
20281 Report bugs to <bug-autoconf@gnu.org>."
20282 _ACEOF
20283
20284 cat >>$CONFIG_STATUS <<_ACEOF
20285 ac_cs_version="\\
20286 TiMidity++ config.status current
20287 configured by $0, generated by GNU Autoconf 2.59,
20288   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20289
20290 Copyright (C) 2003 Free Software Foundation, Inc.
20291 This config.status script is free software; the Free Software Foundation
20292 gives unlimited permission to copy, distribute and modify it."
20293 srcdir=$srcdir
20294 INSTALL="$INSTALL"
20295 _ACEOF
20296
20297 cat >>$CONFIG_STATUS <<\_ACEOF
20298 # If no file are specified by the user, then we need to provide default
20299 # value.  By we need to know if files were specified by the user.
20300 ac_need_defaults=:
20301 while test $# != 0
20302 do
20303   case $1 in
20304   --*=*)
20305     ac_option=`expr "x$1" : 'x\([^=]*\)='`
20306     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20307     ac_shift=:
20308     ;;
20309   -*)
20310     ac_option=$1
20311     ac_optarg=$2
20312     ac_shift=shift
20313     ;;
20314   *) # This is not an option, so the user has probably given explicit
20315      # arguments.
20316      ac_option=$1
20317      ac_need_defaults=false;;
20318   esac
20319
20320   case $ac_option in
20321   # Handling of the options.
20322 _ACEOF
20323 cat >>$CONFIG_STATUS <<\_ACEOF
20324   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20325     ac_cs_recheck=: ;;
20326   --version | --vers* | -V )
20327     echo "$ac_cs_version"; exit 0 ;;
20328   --he | --h)
20329     # Conflict between --help and --header
20330     { { echo "$as_me:$LINENO: error: ambiguous option: $1
20331 Try \`$0 --help' for more information." >&5
20332 echo "$as_me: error: ambiguous option: $1
20333 Try \`$0 --help' for more information." >&2;}
20334    { (exit 1); exit 1; }; };;
20335   --help | --hel | -h )
20336     echo "$ac_cs_usage"; exit 0 ;;
20337   --debug | --d* | -d )
20338     debug=: ;;
20339   --file | --fil | --fi | --f )
20340     $ac_shift
20341     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20342     ac_need_defaults=false;;
20343   --header | --heade | --head | --hea )
20344     $ac_shift
20345     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20346     ac_need_defaults=false;;
20347   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20348   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20349     ac_cs_silent=: ;;
20350
20351   # This is an error.
20352   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20353 Try \`$0 --help' for more information." >&5
20354 echo "$as_me: error: unrecognized option: $1
20355 Try \`$0 --help' for more information." >&2;}
20356    { (exit 1); exit 1; }; } ;;
20357
20358   *) ac_config_targets="$ac_config_targets $1" ;;
20359
20360   esac
20361   shift
20362 done
20363
20364 ac_configure_extra_args=
20365
20366 if $ac_cs_silent; then
20367   exec 6>/dev/null
20368   ac_configure_extra_args="$ac_configure_extra_args --silent"
20369 fi
20370
20371 _ACEOF
20372 cat >>$CONFIG_STATUS <<_ACEOF
20373 if \$ac_cs_recheck; then
20374   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20375   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20376 fi
20377
20378 _ACEOF
20379
20380 cat >>$CONFIG_STATUS <<_ACEOF
20381 #
20382 # INIT-COMMANDS section.
20383 #
20384
20385 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20386
20387 _ACEOF
20388
20389
20390
20391 cat >>$CONFIG_STATUS <<\_ACEOF
20392 for ac_config_target in $ac_config_targets
20393 do
20394   case "$ac_config_target" in
20395   # Handling of arguments.
20396   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20397   "autoconf/Makefile" ) CONFIG_FILES="$CONFIG_FILES autoconf/Makefile" ;;
20398   "common.makefile" ) CONFIG_FILES="$CONFIG_FILES common.makefile" ;;
20399   "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
20400   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20401   "doc/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
20402   "doc/ja_JP.eucJP/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/ja_JP.eucJP/Makefile" ;;
20403   "interface/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
20404   "interface/motif_bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/motif_bitmaps/Makefile" ;;
20405   "interface/bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/bitmaps/Makefile" ;;
20406   "interface/pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/pixmaps/Makefile" ;;
20407   "libarc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libarc/Makefile" ;;
20408   "libunimod/Makefile" ) CONFIG_FILES="$CONFIG_FILES libunimod/Makefile" ;;
20409   "timidity/Makefile" ) CONFIG_FILES="$CONFIG_FILES timidity/Makefile" ;;
20410   "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
20411   "script/Makefile" ) CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
20412   "TiMidity.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity.ad" ;;
20413   "TiMidity-uj.ad" ) CONFIG_FILES="$CONFIG_FILES TiMidity-uj.ad" ;;
20414   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20415   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20416   "interface.h" ) CONFIG_HEADERS="$CONFIG_HEADERS interface.h" ;;
20417   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20418 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20419    { (exit 1); exit 1; }; };;
20420   esac
20421 done
20422
20423 # If the user did not use the arguments to specify the items to instantiate,
20424 # then the envvar interface is used.  Set only those that are not.
20425 # We use the long form for the default assignment because of an extremely
20426 # bizarre bug on SunOS 4.1.3.
20427 if $ac_need_defaults; then
20428   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20429   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20430   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20431 fi
20432
20433 # Have a temporary directory for convenience.  Make it in the build tree
20434 # simply because there is no reason to put it here, and in addition,
20435 # creating and moving files from /tmp can sometimes cause problems.
20436 # Create a temporary directory, and hook for its removal unless debugging.
20437 $debug ||
20438 {
20439   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20440   trap '{ (exit 1); exit 1; }' 1 2 13 15
20441 }
20442
20443 # Create a (secure) tmp directory for tmp files.
20444
20445 {
20446   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20447   test -n "$tmp" && test -d "$tmp"
20448 }  ||
20449 {
20450   tmp=./confstat$$-$RANDOM
20451   (umask 077 && mkdir $tmp)
20452 } ||
20453 {
20454    echo "$me: cannot create a temporary directory in ." >&2
20455    { (exit 1); exit 1; }
20456 }
20457
20458 _ACEOF
20459
20460 cat >>$CONFIG_STATUS <<_ACEOF
20461
20462 #
20463 # CONFIG_FILES section.
20464 #
20465
20466 # No need to generate the scripts if there are no CONFIG_FILES.
20467 # This happens for instance when ./config.status config.h
20468 if test -n "\$CONFIG_FILES"; then
20469   # Protect against being on the right side of a sed subst in config.status.
20470   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20471    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20472 s,@SHELL@,$SHELL,;t t
20473 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20474 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20475 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20476 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20477 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20478 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20479 s,@exec_prefix@,$exec_prefix,;t t
20480 s,@prefix@,$prefix,;t t
20481 s,@program_transform_name@,$program_transform_name,;t t
20482 s,@bindir@,$bindir,;t t
20483 s,@sbindir@,$sbindir,;t t
20484 s,@libexecdir@,$libexecdir,;t t
20485 s,@datadir@,$datadir,;t t
20486 s,@sysconfdir@,$sysconfdir,;t t
20487 s,@sharedstatedir@,$sharedstatedir,;t t
20488 s,@localstatedir@,$localstatedir,;t t
20489 s,@libdir@,$libdir,;t t
20490 s,@includedir@,$includedir,;t t
20491 s,@oldincludedir@,$oldincludedir,;t t
20492 s,@infodir@,$infodir,;t t
20493 s,@mandir@,$mandir,;t t
20494 s,@build_alias@,$build_alias,;t t
20495 s,@host_alias@,$host_alias,;t t
20496 s,@target_alias@,$target_alias,;t t
20497 s,@DEFS@,$DEFS,;t t
20498 s,@ECHO_C@,$ECHO_C,;t t
20499 s,@ECHO_N@,$ECHO_N,;t t
20500 s,@ECHO_T@,$ECHO_T,;t t
20501 s,@LIBS@,$LIBS,;t t
20502 s,@build@,$build,;t t
20503 s,@build_cpu@,$build_cpu,;t t
20504 s,@build_vendor@,$build_vendor,;t t
20505 s,@build_os@,$build_os,;t t
20506 s,@host@,$host,;t t
20507 s,@host_cpu@,$host_cpu,;t t
20508 s,@host_vendor@,$host_vendor,;t t
20509 s,@host_os@,$host_os,;t t
20510 s,@target@,$target,;t t
20511 s,@target_cpu@,$target_cpu,;t t
20512 s,@target_vendor@,$target_vendor,;t t
20513 s,@target_os@,$target_os,;t t
20514 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20515 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20516 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20517 s,@CYGPATH_W@,$CYGPATH_W,;t t
20518 s,@PACKAGE@,$PACKAGE,;t t
20519 s,@VERSION@,$VERSION,;t t
20520 s,@ACLOCAL@,$ACLOCAL,;t t
20521 s,@AUTOCONF@,$AUTOCONF,;t t
20522 s,@AUTOMAKE@,$AUTOMAKE,;t t
20523 s,@AUTOHEADER@,$AUTOHEADER,;t t
20524 s,@MAKEINFO@,$MAKEINFO,;t t
20525 s,@AMTAR@,$AMTAR,;t t
20526 s,@install_sh@,$install_sh,;t t
20527 s,@STRIP@,$STRIP,;t t
20528 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20529 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20530 s,@AWK@,$AWK,;t t
20531 s,@SET_MAKE@,$SET_MAKE,;t t
20532 s,@am__leading_dot@,$am__leading_dot,;t t
20533 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20534 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20535 s,@MAINT@,$MAINT,;t t
20536 s,@EMACS@,$EMACS,;t t
20537 s,@lispdir@,$lispdir,;t t
20538 s,@CC@,$CC,;t t
20539 s,@CFLAGS@,$CFLAGS,;t t
20540 s,@LDFLAGS@,$LDFLAGS,;t t
20541 s,@CPPFLAGS@,$CPPFLAGS,;t t
20542 s,@ac_ct_CC@,$ac_ct_CC,;t t
20543 s,@EXEEXT@,$EXEEXT,;t t
20544 s,@OBJEXT@,$OBJEXT,;t t
20545 s,@DEPDIR@,$DEPDIR,;t t
20546 s,@am__include@,$am__include,;t t
20547 s,@am__quote@,$am__quote,;t t
20548 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20549 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20550 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20551 s,@CCDEPMODE@,$CCDEPMODE,;t t
20552 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20553 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20554 s,@CPP@,$CPP,;t t
20555 s,@EGREP@,$EGREP,;t t
20556 s,@RANLIB@,$RANLIB,;t t
20557 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20558 s,@LN_S@,$LN_S,;t t
20559 s,@X_CFLAGS@,$X_CFLAGS,;t t
20560 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20561 s,@X_LIBS@,$X_LIBS,;t t
20562 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20563 s,@LIBOBJS@,$LIBOBJS,;t t
20564 s,@NEEDGETOPT_TRUE@,$NEEDGETOPT_TRUE,;t t
20565 s,@NEEDGETOPT_FALSE@,$NEEDGETOPT_FALSE,;t t
20566 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
20567 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
20568 s,@ARTS_CONFIG@,$ARTS_CONFIG,;t t
20569 s,@ARTS_CFLAGS@,$ARTS_CFLAGS,;t t
20570 s,@ARTS_LIBS@,$ARTS_LIBS,;t t
20571 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
20572 s,@ESD_CFLAGS@,$ESD_CFLAGS,;t t
20573 s,@ESD_LIBS@,$ESD_LIBS,;t t
20574 s,@AO_CFLAGS@,$AO_CFLAGS,;t t
20575 s,@AO_LIBS@,$AO_LIBS,;t t
20576 s,@VORBIS_CFLAGS@,$VORBIS_CFLAGS,;t t
20577 s,@VORBIS_LIBS@,$VORBIS_LIBS,;t t
20578 s,@VORBISFILE_LIBS@,$VORBISFILE_LIBS,;t t
20579 s,@VORBISENC_LIBS@,$VORBISENC_LIBS,;t t
20580 s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t
20581 s,@OGG_LIBS@,$OGG_LIBS,;t t
20582 s,@LIBFLAC_CFLAGS@,$LIBFLAC_CFLAGS,;t t
20583 s,@LIBFLAC_LIBS@,$LIBFLAC_LIBS,;t t
20584 s,@LIBOGGFLAC_CFLAGS@,$LIBOGGFLAC_CFLAGS,;t t
20585 s,@LIBOGGFLAC_LIBS@,$LIBOGGFLAC_LIBS,;t t
20586 s,@NEEDDLOPEN_TRUE@,$NEEDDLOPEN_TRUE,;t t
20587 s,@NEEDDLOPEN_FALSE@,$NEEDDLOPEN_FALSE,;t t
20588 s,@ENABLE_NCURSES_TRUE@,$ENABLE_NCURSES_TRUE,;t t
20589 s,@ENABLE_NCURSES_FALSE@,$ENABLE_NCURSES_FALSE,;t t
20590 s,@n_so_libs@,$n_so_libs,;t t
20591 s,@ENABLE_SLANG_TRUE@,$ENABLE_SLANG_TRUE,;t t
20592 s,@ENABLE_SLANG_FALSE@,$ENABLE_SLANG_FALSE,;t t
20593 s,@s_so_libs@,$s_so_libs,;t t
20594 s,@ENABLE_MOTIF_TRUE@,$ENABLE_MOTIF_TRUE,;t t
20595 s,@ENABLE_MOTIF_FALSE@,$ENABLE_MOTIF_FALSE,;t t
20596 s,@m_so_libs@,$m_so_libs,;t t
20597 s,@ENABLE_TCLTK_TRUE@,$ENABLE_TCLTK_TRUE,;t t
20598 s,@ENABLE_TCLTK_FALSE@,$ENABLE_TCLTK_FALSE,;t t
20599 s,@k_so_libs@,$k_so_libs,;t t
20600 s,@ENABLE_DYNAMIC_TCLTK_TRUE@,$ENABLE_DYNAMIC_TCLTK_TRUE,;t t
20601 s,@ENABLE_DYNAMIC_TCLTK_FALSE@,$ENABLE_DYNAMIC_TCLTK_FALSE,;t t
20602 s,@ENABLE_EMACS_TRUE@,$ENABLE_EMACS_TRUE,;t t
20603 s,@ENABLE_EMACS_FALSE@,$ENABLE_EMACS_FALSE,;t t
20604 s,@e_so_libs@,$e_so_libs,;t t
20605 s,@ENABLE_VT100_TRUE@,$ENABLE_VT100_TRUE,;t t
20606 s,@ENABLE_VT100_FALSE@,$ENABLE_VT100_FALSE,;t t
20607 s,@T_so_libs@,$T_so_libs,;t t
20608 s,@ENABLE_XAW_TRUE@,$ENABLE_XAW_TRUE,;t t
20609 s,@ENABLE_XAW_FALSE@,$ENABLE_XAW_FALSE,;t t
20610 s,@a_so_libs@,$a_so_libs,;t t
20611 s,@ENABLE_DYNAMIC_XAW_TRUE@,$ENABLE_DYNAMIC_XAW_TRUE,;t t
20612 s,@ENABLE_DYNAMIC_XAW_FALSE@,$ENABLE_DYNAMIC_XAW_FALSE,;t t
20613 s,@ENABLE_XSKIN_TRUE@,$ENABLE_XSKIN_TRUE,;t t
20614 s,@ENABLE_XSKIN_FALSE@,$ENABLE_XSKIN_FALSE,;t t
20615 s,@i_so_libs@,$i_so_libs,;t t
20616 s,@ENABLE_GTK_TRUE@,$ENABLE_GTK_TRUE,;t t
20617 s,@ENABLE_GTK_FALSE@,$ENABLE_GTK_FALSE,;t t
20618 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20619 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
20620 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
20621 s,@GTK_LIBS@,$GTK_LIBS,;t t
20622 s,@g_so_libs@,$g_so_libs,;t t
20623 s,@ENABLE_SERVER_TRUE@,$ENABLE_SERVER_TRUE,;t t
20624 s,@ENABLE_SERVER_FALSE@,$ENABLE_SERVER_FALSE,;t t
20625 s,@r_so_libs@,$r_so_libs,;t t
20626 s,@ENABLE_ALSASEQ_TRUE@,$ENABLE_ALSASEQ_TRUE,;t t
20627 s,@ENABLE_ALSASEQ_FALSE@,$ENABLE_ALSASEQ_FALSE,;t t
20628 s,@A_so_libs@,$A_so_libs,;t t
20629 s,@ENABLE_WINSYN_TRUE@,$ENABLE_WINSYN_TRUE,;t t
20630 s,@ENABLE_WINSYN_FALSE@,$ENABLE_WINSYN_FALSE,;t t
20631 s,@W_so_libs@,$W_so_libs,;t t
20632 s,@ENABLE_PORTMIDISYN_TRUE@,$ENABLE_PORTMIDISYN_TRUE,;t t
20633 s,@ENABLE_PORTMIDISYN_FALSE@,$ENABLE_PORTMIDISYN_FALSE,;t t
20634 s,@P_so_libs@,$P_so_libs,;t t
20635 s,@ENABLE_W32G_SYN_TRUE@,$ENABLE_W32G_SYN_TRUE,;t t
20636 s,@ENABLE_W32G_SYN_FALSE@,$ENABLE_W32G_SYN_FALSE,;t t
20637 s,@ENABLE_W32GUI_TRUE@,$ENABLE_W32GUI_TRUE,;t t
20638 s,@ENABLE_W32GUI_FALSE@,$ENABLE_W32GUI_FALSE,;t t
20639 s,@w_so_libs@,$w_so_libs,;t t
20640 s,@ENABLE_PLUGIN_TRUE@,$ENABLE_PLUGIN_TRUE,;t t
20641 s,@ENABLE_PLUGIN_FALSE@,$ENABLE_PLUGIN_FALSE,;t t
20642 s,@p_so_libs@,$p_so_libs,;t t
20643 s,@ENABLE_NETWORK_TRUE@,$ENABLE_NETWORK_TRUE,;t t
20644 s,@ENABLE_NETWORK_FALSE@,$ENABLE_NETWORK_FALSE,;t t
20645 s,@ENABLE_SOUND_SPEC_TRUE@,$ENABLE_SOUND_SPEC_TRUE,;t t
20646 s,@ENABLE_SOUND_SPEC_FALSE@,$ENABLE_SOUND_SPEC_FALSE,;t t
20647 s,@ENABLE_WRD_TRUE@,$ENABLE_WRD_TRUE,;t t
20648 s,@ENABLE_WRD_FALSE@,$ENABLE_WRD_FALSE,;t t
20649 s,@CYGNUS_TRUE@,$CYGNUS_TRUE,;t t
20650 s,@CYGNUS_FALSE@,$CYGNUS_FALSE,;t t
20651 s,@MSYS_TRUE@,$MSYS_TRUE,;t t
20652 s,@MSYS_FALSE@,$MSYS_FALSE,;t t
20653 s,@VCPP_TRUE@,$VCPP_TRUE,;t t
20654 s,@VCPP_FALSE@,$VCPP_FALSE,;t t
20655 s,@BORLANDC_TRUE@,$BORLANDC_TRUE,;t t
20656 s,@BORLANDC_FALSE@,$BORLANDC_FALSE,;t t
20657 s,@WATCOM_TRUE@,$WATCOM_TRUE,;t t
20658 s,@WATCOM_FALSE@,$WATCOM_FALSE,;t t
20659 s,@W32READDIR_TRUE@,$W32READDIR_TRUE,;t t
20660 s,@W32READDIR_FALSE@,$W32READDIR_FALSE,;t t
20661 s,@BORLANDC_START@,$BORLANDC_START,;t t
20662 s,@BORLANDC_LDFLAGS@,$BORLANDC_LDFLAGS,;t t
20663 s,@timidity_LDFLAGS@,$timidity_LDFLAGS,;t t
20664 s,@WATCOM_LDFLAGS@,$WATCOM_LDFLAGS,;t t
20665 s,@VCPP_LDFLAGS@,$VCPP_LDFLAGS,;t t
20666 s,@SYSEXTRAS@,$SYSEXTRAS,;t t
20667 s,@EXTRALIBS@,$EXTRALIBS,;t t
20668 s,@NETSRCS@,$NETSRCS,;t t
20669 s,@ELFILES@,$ELFILES,;t t
20670 s,@SHLD@,$SHLD,;t t
20671 s,@SHCFLAGS@,$SHCFLAGS,;t t
20672 s,@dynamic_targets@,$dynamic_targets,;t t
20673 s,@so@,$so,;t t
20674 s,@WISH@,$WISH,;t t
20675 s,@tcltk_dep@,$tcltk_dep,;t t
20676 s,@INTERFACE_SRCS@,$INTERFACE_SRCS,;t t
20677 s,@pkgdatadir@,$pkgdatadir,;t t
20678 s,@pkglibdir@,$pkglibdir,;t t
20679 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20680 CEOF
20681
20682 _ACEOF
20683
20684   cat >>$CONFIG_STATUS <<\_ACEOF
20685   # Split the substitutions into bite-sized pieces for seds with
20686   # small command number limits, like on Digital OSF/1 and HP-UX.
20687   ac_max_sed_lines=48
20688   ac_sed_frag=1 # Number of current file.
20689   ac_beg=1 # First line for current file.
20690   ac_end=$ac_max_sed_lines # Line after last line for current file.
20691   ac_more_lines=:
20692   ac_sed_cmds=
20693   while $ac_more_lines; do
20694     if test $ac_beg -gt 1; then
20695       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20696     else
20697       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20698     fi
20699     if test ! -s $tmp/subs.frag; then
20700       ac_more_lines=false
20701     else
20702       # The purpose of the label and of the branching condition is to
20703       # speed up the sed processing (if there are no `@' at all, there
20704       # is no need to browse any of the substitutions).
20705       # These are the two extra sed commands mentioned above.
20706       (echo ':t
20707   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20708       if test -z "$ac_sed_cmds"; then
20709         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20710       else
20711         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20712       fi
20713       ac_sed_frag=`expr $ac_sed_frag + 1`
20714       ac_beg=$ac_end
20715       ac_end=`expr $ac_end + $ac_max_sed_lines`
20716     fi
20717   done
20718   if test -z "$ac_sed_cmds"; then
20719     ac_sed_cmds=cat
20720   fi
20721 fi # test -n "$CONFIG_FILES"
20722
20723 _ACEOF
20724 cat >>$CONFIG_STATUS <<\_ACEOF
20725 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20726   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20727   case $ac_file in
20728   - | *:- | *:-:* ) # input from stdin
20729         cat >$tmp/stdin
20730         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20731         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20732   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20733         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20734   * )   ac_file_in=$ac_file.in ;;
20735   esac
20736
20737   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20738   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20739 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20740          X"$ac_file" : 'X\(//\)[^/]' \| \
20741          X"$ac_file" : 'X\(//\)$' \| \
20742          X"$ac_file" : 'X\(/\)' \| \
20743          .     : '\(.\)' 2>/dev/null ||
20744 echo X"$ac_file" |
20745     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20746           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20747           /^X\(\/\/\)$/{ s//\1/; q; }
20748           /^X\(\/\).*/{ s//\1/; q; }
20749           s/.*/./; q'`
20750   { if $as_mkdir_p; then
20751     mkdir -p "$ac_dir"
20752   else
20753     as_dir="$ac_dir"
20754     as_dirs=
20755     while test ! -d "$as_dir"; do
20756       as_dirs="$as_dir $as_dirs"
20757       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20758 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20759          X"$as_dir" : 'X\(//\)[^/]' \| \
20760          X"$as_dir" : 'X\(//\)$' \| \
20761          X"$as_dir" : 'X\(/\)' \| \
20762          .     : '\(.\)' 2>/dev/null ||
20763 echo X"$as_dir" |
20764     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20765           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20766           /^X\(\/\/\)$/{ s//\1/; q; }
20767           /^X\(\/\).*/{ s//\1/; q; }
20768           s/.*/./; q'`
20769     done
20770     test ! -n "$as_dirs" || mkdir $as_dirs
20771   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20772 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20773    { (exit 1); exit 1; }; }; }
20774
20775   ac_builddir=.
20776
20777 if test "$ac_dir" != .; then
20778   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20779   # A "../" for each directory in $ac_dir_suffix.
20780   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20781 else
20782   ac_dir_suffix= ac_top_builddir=
20783 fi
20784
20785 case $srcdir in
20786   .)  # No --srcdir option.  We are building in place.
20787     ac_srcdir=.
20788     if test -z "$ac_top_builddir"; then
20789        ac_top_srcdir=.
20790     else
20791        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20792     fi ;;
20793   [\\/]* | ?:[\\/]* )  # Absolute path.
20794     ac_srcdir=$srcdir$ac_dir_suffix;
20795     ac_top_srcdir=$srcdir ;;
20796   *) # Relative path.
20797     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20798     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20799 esac
20800
20801 # Do not use `cd foo && pwd` to compute absolute paths, because
20802 # the directories may not exist.
20803 case `pwd` in
20804 .) ac_abs_builddir="$ac_dir";;
20805 *)
20806   case "$ac_dir" in
20807   .) ac_abs_builddir=`pwd`;;
20808   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20809   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20810   esac;;
20811 esac
20812 case $ac_abs_builddir in
20813 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20814 *)
20815   case ${ac_top_builddir}. in
20816   .) ac_abs_top_builddir=$ac_abs_builddir;;
20817   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20818   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20819   esac;;
20820 esac
20821 case $ac_abs_builddir in
20822 .) ac_abs_srcdir=$ac_srcdir;;
20823 *)
20824   case $ac_srcdir in
20825   .) ac_abs_srcdir=$ac_abs_builddir;;
20826   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20827   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20828   esac;;
20829 esac
20830 case $ac_abs_builddir in
20831 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20832 *)
20833   case $ac_top_srcdir in
20834   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20835   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20836   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20837   esac;;
20838 esac
20839
20840
20841   case $INSTALL in
20842   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20843   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20844   esac
20845
20846   if test x"$ac_file" != x-; then
20847     { echo "$as_me:$LINENO: creating $ac_file" >&5
20848 echo "$as_me: creating $ac_file" >&6;}
20849     rm -f "$ac_file"
20850   fi
20851   # Let's still pretend it is `configure' which instantiates (i.e., don't
20852   # use $as_me), people would be surprised to read:
20853   #    /* config.h.  Generated by config.status.  */
20854   if test x"$ac_file" = x-; then
20855     configure_input=
20856   else
20857     configure_input="$ac_file.  "
20858   fi
20859   configure_input=$configure_input"Generated from `echo $ac_file_in |
20860                                      sed 's,.*/,,'` by configure."
20861
20862   # First look for the input files in the build tree, otherwise in the
20863   # src tree.
20864   ac_file_inputs=`IFS=:
20865     for f in $ac_file_in; do
20866       case $f in
20867       -) echo $tmp/stdin ;;
20868       [\\/$]*)
20869          # Absolute (can't be DOS-style, as IFS=:)
20870          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20871 echo "$as_me: error: cannot find input file: $f" >&2;}
20872    { (exit 1); exit 1; }; }
20873          echo "$f";;
20874       *) # Relative
20875          if test -f "$f"; then
20876            # Build tree
20877            echo "$f"
20878          elif test -f "$srcdir/$f"; then
20879            # Source tree
20880            echo "$srcdir/$f"
20881          else
20882            # /dev/null tree
20883            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20884 echo "$as_me: error: cannot find input file: $f" >&2;}
20885    { (exit 1); exit 1; }; }
20886          fi;;
20887       esac
20888     done` || { (exit 1); exit 1; }
20889 _ACEOF
20890 cat >>$CONFIG_STATUS <<_ACEOF
20891   sed "$ac_vpsub
20892 $extrasub
20893 _ACEOF
20894 cat >>$CONFIG_STATUS <<\_ACEOF
20895 :t
20896 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20897 s,@configure_input@,$configure_input,;t t
20898 s,@srcdir@,$ac_srcdir,;t t
20899 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20900 s,@top_srcdir@,$ac_top_srcdir,;t t
20901 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20902 s,@builddir@,$ac_builddir,;t t
20903 s,@abs_builddir@,$ac_abs_builddir,;t t
20904 s,@top_builddir@,$ac_top_builddir,;t t
20905 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20906 s,@INSTALL@,$ac_INSTALL,;t t
20907 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20908   rm -f $tmp/stdin
20909   if test x"$ac_file" != x-; then
20910     mv $tmp/out $ac_file
20911   else
20912     cat $tmp/out
20913     rm -f $tmp/out
20914   fi
20915
20916 done
20917 _ACEOF
20918 cat >>$CONFIG_STATUS <<\_ACEOF
20919
20920 #
20921 # CONFIG_HEADER section.
20922 #
20923
20924 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20925 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20926 #
20927 # ac_d sets the value in "#define NAME VALUE" lines.
20928 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
20929 ac_dB='[         ].*$,\1#\2'
20930 ac_dC=' '
20931 ac_dD=',;t'
20932 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20933 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20934 ac_uB='$,\1#\2define\3'
20935 ac_uC=' '
20936 ac_uD=',;t'
20937
20938 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20939   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20940   case $ac_file in
20941   - | *:- | *:-:* ) # input from stdin
20942         cat >$tmp/stdin
20943         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20944         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20945   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20946         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20947   * )   ac_file_in=$ac_file.in ;;
20948   esac
20949
20950   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20951 echo "$as_me: creating $ac_file" >&6;}
20952
20953   # First look for the input files in the build tree, otherwise in the
20954   # src tree.
20955   ac_file_inputs=`IFS=:
20956     for f in $ac_file_in; do
20957       case $f in
20958       -) echo $tmp/stdin ;;
20959       [\\/$]*)
20960          # Absolute (can't be DOS-style, as IFS=:)
20961          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20962 echo "$as_me: error: cannot find input file: $f" >&2;}
20963    { (exit 1); exit 1; }; }
20964          # Do quote $f, to prevent DOS paths from being IFS'd.
20965          echo "$f";;
20966       *) # Relative
20967          if test -f "$f"; then
20968            # Build tree
20969            echo "$f"
20970          elif test -f "$srcdir/$f"; then
20971            # Source tree
20972            echo "$srcdir/$f"
20973          else
20974            # /dev/null tree
20975            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20976 echo "$as_me: error: cannot find input file: $f" >&2;}
20977    { (exit 1); exit 1; }; }
20978          fi;;
20979       esac
20980     done` || { (exit 1); exit 1; }
20981   # Remove the trailing spaces.
20982   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
20983
20984 _ACEOF
20985
20986 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20987 # `conftest.undefs', that substitutes the proper values into
20988 # config.h.in to produce config.h.  The first handles `#define'
20989 # templates, and the second `#undef' templates.
20990 # And first: Protect against being on the right side of a sed subst in
20991 # config.status.  Protect against being in an unquoted here document
20992 # in config.status.
20993 rm -f conftest.defines conftest.undefs
20994 # Using a here document instead of a string reduces the quoting nightmare.
20995 # Putting comments in sed scripts is not portable.
20996 #
20997 # `end' is used to avoid that the second main sed command (meant for
20998 # 0-ary CPP macros) applies to n-ary macro definitions.
20999 # See the Autoconf documentation for `clear'.
21000 cat >confdef2sed.sed <<\_ACEOF
21001 s/[\\&,]/\\&/g
21002 s,[\\$`],\\&,g
21003 t clear
21004 : clear
21005 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21006 t end
21007 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21008 : end
21009 _ACEOF
21010 # If some macros were called several times there might be several times
21011 # the same #defines, which is useless.  Nevertheless, we may not want to
21012 # sort them, since we want the *last* AC-DEFINE to be honored.
21013 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21014 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21015 rm -f confdef2sed.sed
21016
21017 # This sed command replaces #undef with comments.  This is necessary, for
21018 # example, in the case of _POSIX_SOURCE, which is predefined and required
21019 # on some systems where configure will not decide to define it.
21020 cat >>conftest.undefs <<\_ACEOF
21021 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21022 _ACEOF
21023
21024 # Break up conftest.defines because some shells have a limit on the size
21025 # of here documents, and old seds have small limits too (100 cmds).
21026 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21027 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21028 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21029 echo '  :' >>$CONFIG_STATUS
21030 rm -f conftest.tail
21031 while grep . conftest.defines >/dev/null
21032 do
21033   # Write a limited-size here document to $tmp/defines.sed.
21034   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21035   # Speed up: don't consider the non `#define' lines.
21036   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
21037   # Work around the forget-to-reset-the-flag bug.
21038   echo 't clr' >>$CONFIG_STATUS
21039   echo ': clr' >>$CONFIG_STATUS
21040   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21041   echo 'CEOF
21042   sed -f $tmp/defines.sed $tmp/in >$tmp/out
21043   rm -f $tmp/in
21044   mv $tmp/out $tmp/in
21045 ' >>$CONFIG_STATUS
21046   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21047   rm -f conftest.defines
21048   mv conftest.tail conftest.defines
21049 done
21050 rm -f conftest.defines
21051 echo '  fi # grep' >>$CONFIG_STATUS
21052 echo >>$CONFIG_STATUS
21053
21054 # Break up conftest.undefs because some shells have a limit on the size
21055 # of here documents, and old seds have small limits too (100 cmds).
21056 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21057 rm -f conftest.tail
21058 while grep . conftest.undefs >/dev/null
21059 do
21060   # Write a limited-size here document to $tmp/undefs.sed.
21061   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21062   # Speed up: don't consider the non `#undef'
21063   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
21064   # Work around the forget-to-reset-the-flag bug.
21065   echo 't clr' >>$CONFIG_STATUS
21066   echo ': clr' >>$CONFIG_STATUS
21067   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21068   echo 'CEOF
21069   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21070   rm -f $tmp/in
21071   mv $tmp/out $tmp/in
21072 ' >>$CONFIG_STATUS
21073   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21074   rm -f conftest.undefs
21075   mv conftest.tail conftest.undefs
21076 done
21077 rm -f conftest.undefs
21078
21079 cat >>$CONFIG_STATUS <<\_ACEOF
21080   # Let's still pretend it is `configure' which instantiates (i.e., don't
21081   # use $as_me), people would be surprised to read:
21082   #    /* config.h.  Generated by config.status.  */
21083   if test x"$ac_file" = x-; then
21084     echo "/* Generated by configure.  */" >$tmp/config.h
21085   else
21086     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21087   fi
21088   cat $tmp/in >>$tmp/config.h
21089   rm -f $tmp/in
21090   if test x"$ac_file" != x-; then
21091     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21092       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21093 echo "$as_me: $ac_file is unchanged" >&6;}
21094     else
21095       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21096 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21097          X"$ac_file" : 'X\(//\)[^/]' \| \
21098          X"$ac_file" : 'X\(//\)$' \| \
21099          X"$ac_file" : 'X\(/\)' \| \
21100          .     : '\(.\)' 2>/dev/null ||
21101 echo X"$ac_file" |
21102     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21103           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21104           /^X\(\/\/\)$/{ s//\1/; q; }
21105           /^X\(\/\).*/{ s//\1/; q; }
21106           s/.*/./; q'`
21107       { if $as_mkdir_p; then
21108     mkdir -p "$ac_dir"
21109   else
21110     as_dir="$ac_dir"
21111     as_dirs=
21112     while test ! -d "$as_dir"; do
21113       as_dirs="$as_dir $as_dirs"
21114       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21115 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21116          X"$as_dir" : 'X\(//\)[^/]' \| \
21117          X"$as_dir" : 'X\(//\)$' \| \
21118          X"$as_dir" : 'X\(/\)' \| \
21119          .     : '\(.\)' 2>/dev/null ||
21120 echo X"$as_dir" |
21121     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21122           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21123           /^X\(\/\/\)$/{ s//\1/; q; }
21124           /^X\(\/\).*/{ s//\1/; q; }
21125           s/.*/./; q'`
21126     done
21127     test ! -n "$as_dirs" || mkdir $as_dirs
21128   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21129 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21130    { (exit 1); exit 1; }; }; }
21131
21132       rm -f $ac_file
21133       mv $tmp/config.h $ac_file
21134     fi
21135   else
21136     cat $tmp/config.h
21137     rm -f $tmp/config.h
21138   fi
21139 # Compute $ac_file's index in $config_headers.
21140 _am_stamp_count=1
21141 for _am_header in $config_headers :; do
21142   case $_am_header in
21143     $ac_file | $ac_file:* )
21144       break ;;
21145     * )
21146       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21147   esac
21148 done
21149 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21150 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21151          X$ac_file : 'X\(//\)[^/]' \| \
21152          X$ac_file : 'X\(//\)$' \| \
21153          X$ac_file : 'X\(/\)' \| \
21154          .     : '\(.\)' 2>/dev/null ||
21155 echo X$ac_file |
21156     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21157           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21158           /^X\(\/\/\)$/{ s//\1/; q; }
21159           /^X\(\/\).*/{ s//\1/; q; }
21160           s/.*/./; q'`/stamp-h$_am_stamp_count
21161 done
21162 _ACEOF
21163 cat >>$CONFIG_STATUS <<\_ACEOF
21164
21165 #
21166 # CONFIG_COMMANDS section.
21167 #
21168 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21169   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21170   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21171   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21172 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21173          X"$ac_dest" : 'X\(//\)[^/]' \| \
21174          X"$ac_dest" : 'X\(//\)$' \| \
21175          X"$ac_dest" : 'X\(/\)' \| \
21176          .     : '\(.\)' 2>/dev/null ||
21177 echo X"$ac_dest" |
21178     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21179           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21180           /^X\(\/\/\)$/{ s//\1/; q; }
21181           /^X\(\/\).*/{ s//\1/; q; }
21182           s/.*/./; q'`
21183   { if $as_mkdir_p; then
21184     mkdir -p "$ac_dir"
21185   else
21186     as_dir="$ac_dir"
21187     as_dirs=
21188     while test ! -d "$as_dir"; do
21189       as_dirs="$as_dir $as_dirs"
21190       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21191 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21192          X"$as_dir" : 'X\(//\)[^/]' \| \
21193          X"$as_dir" : 'X\(//\)$' \| \
21194          X"$as_dir" : 'X\(/\)' \| \
21195          .     : '\(.\)' 2>/dev/null ||
21196 echo X"$as_dir" |
21197     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21198           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21199           /^X\(\/\/\)$/{ s//\1/; q; }
21200           /^X\(\/\).*/{ s//\1/; q; }
21201           s/.*/./; q'`
21202     done
21203     test ! -n "$as_dirs" || mkdir $as_dirs
21204   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21205 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21206    { (exit 1); exit 1; }; }; }
21207
21208   ac_builddir=.
21209
21210 if test "$ac_dir" != .; then
21211   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21212   # A "../" for each directory in $ac_dir_suffix.
21213   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21214 else
21215   ac_dir_suffix= ac_top_builddir=
21216 fi
21217
21218 case $srcdir in
21219   .)  # No --srcdir option.  We are building in place.
21220     ac_srcdir=.
21221     if test -z "$ac_top_builddir"; then
21222        ac_top_srcdir=.
21223     else
21224        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21225     fi ;;
21226   [\\/]* | ?:[\\/]* )  # Absolute path.
21227     ac_srcdir=$srcdir$ac_dir_suffix;
21228     ac_top_srcdir=$srcdir ;;
21229   *) # Relative path.
21230     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21231     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21232 esac
21233
21234 # Do not use `cd foo && pwd` to compute absolute paths, because
21235 # the directories may not exist.
21236 case `pwd` in
21237 .) ac_abs_builddir="$ac_dir";;
21238 *)
21239   case "$ac_dir" in
21240   .) ac_abs_builddir=`pwd`;;
21241   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21242   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21243   esac;;
21244 esac
21245 case $ac_abs_builddir in
21246 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21247 *)
21248   case ${ac_top_builddir}. in
21249   .) ac_abs_top_builddir=$ac_abs_builddir;;
21250   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21251   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21252   esac;;
21253 esac
21254 case $ac_abs_builddir in
21255 .) ac_abs_srcdir=$ac_srcdir;;
21256 *)
21257   case $ac_srcdir in
21258   .) ac_abs_srcdir=$ac_abs_builddir;;
21259   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21260   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21261   esac;;
21262 esac
21263 case $ac_abs_builddir in
21264 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21265 *)
21266   case $ac_top_srcdir in
21267   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21268   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21269   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21270   esac;;
21271 esac
21272
21273
21274   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21275 echo "$as_me: executing $ac_dest commands" >&6;}
21276   case $ac_dest in
21277     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21278   # Strip MF so we end up with the name of the file.
21279   mf=`echo "$mf" | sed -e 's/:.*$//'`
21280   # Check whether this is an Automake generated Makefile or not.
21281   # We used to match only the files named `Makefile.in', but
21282   # some people rename them; so instead we look at the file content.
21283   # Grep'ing the first line is not enough: some people post-process
21284   # each Makefile.in and add a new line on top of each file to say so.
21285   # So let's grep whole file.
21286   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21287     dirpart=`(dirname "$mf") 2>/dev/null ||
21288 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21289          X"$mf" : 'X\(//\)[^/]' \| \
21290          X"$mf" : 'X\(//\)$' \| \
21291          X"$mf" : 'X\(/\)' \| \
21292          .     : '\(.\)' 2>/dev/null ||
21293 echo X"$mf" |
21294     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21295           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21296           /^X\(\/\/\)$/{ s//\1/; q; }
21297           /^X\(\/\).*/{ s//\1/; q; }
21298           s/.*/./; q'`
21299   else
21300     continue
21301   fi
21302   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
21303   # Extract the definition of DEP_FILES from the Makefile without
21304   # running `make'.
21305   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
21306   test -z "$DEPDIR" && continue
21307   # When using ansi2knr, U may be empty or an underscore; expand it
21308   U=`sed -n -e '/^U = / s///p' < "$mf"`
21309   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
21310   # We invoke sed twice because it is the simplest approach to
21311   # changing $(DEPDIR) to its actual value in the expansion.
21312   for file in `sed -n -e '
21313     /^DEP_FILES = .*\\\\$/ {
21314       s/^DEP_FILES = //
21315       :loop
21316         s/\\\\$//
21317         p
21318         n
21319         /\\\\$/ b loop
21320       p
21321     }
21322     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
21323        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21324     # Make sure the directory exists.
21325     test -f "$dirpart/$file" && continue
21326     fdir=`(dirname "$file") 2>/dev/null ||
21327 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21328          X"$file" : 'X\(//\)[^/]' \| \
21329          X"$file" : 'X\(//\)$' \| \
21330          X"$file" : 'X\(/\)' \| \
21331          .     : '\(.\)' 2>/dev/null ||
21332 echo X"$file" |
21333     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21334           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21335           /^X\(\/\/\)$/{ s//\1/; q; }
21336           /^X\(\/\).*/{ s//\1/; q; }
21337           s/.*/./; q'`
21338     { if $as_mkdir_p; then
21339     mkdir -p $dirpart/$fdir
21340   else
21341     as_dir=$dirpart/$fdir
21342     as_dirs=
21343     while test ! -d "$as_dir"; do
21344       as_dirs="$as_dir $as_dirs"
21345       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21346 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21347          X"$as_dir" : 'X\(//\)[^/]' \| \
21348          X"$as_dir" : 'X\(//\)$' \| \
21349          X"$as_dir" : 'X\(/\)' \| \
21350          .     : '\(.\)' 2>/dev/null ||
21351 echo X"$as_dir" |
21352     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21353           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21354           /^X\(\/\/\)$/{ s//\1/; q; }
21355           /^X\(\/\).*/{ s//\1/; q; }
21356           s/.*/./; q'`
21357     done
21358     test ! -n "$as_dirs" || mkdir $as_dirs
21359   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21360 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21361    { (exit 1); exit 1; }; }; }
21362
21363     # echo "creating $dirpart/$file"
21364     echo '# dummy' > "$dirpart/$file"
21365   done
21366 done
21367  ;;
21368   esac
21369 done
21370 _ACEOF
21371
21372 cat >>$CONFIG_STATUS <<\_ACEOF
21373
21374 { (exit 0); exit 0; }
21375 _ACEOF
21376 chmod +x $CONFIG_STATUS
21377 ac_clean_files=$ac_clean_files_save
21378
21379
21380 # configure is writing to config.log, and then calls config.status.
21381 # config.status does its own redirection, appending to config.log.
21382 # Unfortunately, on DOS this fails, as config.log is still kept open
21383 # by configure, so config.status won't be able to write to it; its
21384 # output is simply discarded.  So we exec the FD to /dev/null,
21385 # effectively closing config.log, so it can be properly (re)opened and
21386 # appended to by config.status.  When coming back to configure, we
21387 # need to make the FD available again.
21388 if test "$no_create" != yes; then
21389   ac_cs_success=:
21390   ac_config_status_args=
21391   test "$silent" = yes &&
21392     ac_config_status_args="$ac_config_status_args --quiet"
21393   exec 5>/dev/null
21394   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21395   exec 5>>config.log
21396   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21397   # would make configure fail if this is the last instruction.
21398   $ac_cs_success || { (exit 1); exit 1; }
21399 fi
21400