OSDN Git Service

patches from Yair K.
[timidity41/timidity41.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for TiMidity++ 2.13.2.
4 #
5 # Report bugs to <root@mput.dip.jp>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554 exec 7<&0 </dev/null 6>&1
555
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561 #
562 # Initializations.
563 #
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
573
574 # Identity of this package.
575 PACKAGE_NAME='TiMidity++'
576 PACKAGE_TARNAME='TiMidity++'
577 PACKAGE_VERSION='2.13.2'
578 PACKAGE_STRING='TiMidity++ 2.13.2'
579 PACKAGE_BUGREPORT='root@mput.dip.jp'
580
581 ac_unique_file="timidity/timidity.c"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 #  include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 #  include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
617
618 ac_subst_vars='SHELL
619 PATH_SEPARATOR
620 PACKAGE_NAME
621 PACKAGE_TARNAME
622 PACKAGE_VERSION
623 PACKAGE_STRING
624 PACKAGE_BUGREPORT
625 exec_prefix
626 prefix
627 program_transform_name
628 bindir
629 sbindir
630 libexecdir
631 datarootdir
632 datadir
633 sysconfdir
634 sharedstatedir
635 localstatedir
636 includedir
637 oldincludedir
638 docdir
639 infodir
640 htmldir
641 dvidir
642 pdfdir
643 psdir
644 libdir
645 localedir
646 mandir
647 DEFS
648 ECHO_C
649 ECHO_N
650 ECHO_T
651 LIBS
652 build_alias
653 host_alias
654 target_alias
655 build
656 build_cpu
657 build_vendor
658 build_os
659 host
660 host_cpu
661 host_vendor
662 host_os
663 target
664 target_cpu
665 target_vendor
666 target_os
667 INSTALL_PROGRAM
668 INSTALL_SCRIPT
669 INSTALL_DATA
670 CYGPATH_W
671 PACKAGE
672 VERSION
673 ACLOCAL
674 AUTOCONF
675 AUTOMAKE
676 AUTOHEADER
677 MAKEINFO
678 AMTAR
679 install_sh
680 STRIP
681 INSTALL_STRIP_PROGRAM
682 AWK
683 SET_MAKE
684 am__leading_dot
685 MAINTAINER_MODE_TRUE
686 MAINTAINER_MODE_FALSE
687 MAINT
688 EMACS
689 lispdir
690 CC
691 CFLAGS
692 LDFLAGS
693 CPPFLAGS
694 ac_ct_CC
695 EXEEXT
696 OBJEXT
697 DEPDIR
698 am__include
699 am__quote
700 AMDEP_TRUE
701 AMDEP_FALSE
702 AMDEPBACKSLASH
703 CCDEPMODE
704 am__fastdepCC_TRUE
705 am__fastdepCC_FALSE
706 CPP
707 GREP
708 EGREP
709 RANLIB
710 LN_S
711 XMKMF
712 X_CFLAGS
713 X_PRE_LIBS
714 X_LIBS
715 X_EXTRA_LIBS
716 LIBOBJS
717 NEEDGETOPT_TRUE
718 NEEDGETOPT_FALSE
719 ALSA_CFLAGS
720 ALSA_LIBS
721 ARTSCCONFIG
722 ARTSLIBS
723 ARTSINCL
724 ESD_CONFIG
725 ESD_CFLAGS
726 ESD_LIBS
727 AO_CFLAGS
728 AO_LIBS
729 VORBIS_CFLAGS
730 VORBIS_LIBS
731 VORBISFILE_LIBS
732 VORBISENC_LIBS
733 OGG_CFLAGS
734 OGG_LIBS
735 LIBFLAC_CFLAGS
736 LIBFLAC_LIBS
737 LIBOGGFLAC_CFLAGS
738 LIBOGGFLAC_LIBS
739 NEEDDLOPEN_TRUE
740 NEEDDLOPEN_FALSE
741 ENABLE_NCURSES_TRUE
742 ENABLE_NCURSES_FALSE
743 n_so_libs
744 ENABLE_SLANG_TRUE
745 ENABLE_SLANG_FALSE
746 s_so_libs
747 ENABLE_MOTIF_TRUE
748 ENABLE_MOTIF_FALSE
749 m_so_libs
750 ENABLE_TCLTK_TRUE
751 ENABLE_TCLTK_FALSE
752 k_so_libs
753 ENABLE_DYNAMIC_TCLTK_TRUE
754 ENABLE_DYNAMIC_TCLTK_FALSE
755 ENABLE_EMACS_TRUE
756 ENABLE_EMACS_FALSE
757 e_so_libs
758 ENABLE_VT100_TRUE
759 ENABLE_VT100_FALSE
760 T_so_libs
761 ENABLE_XAW_TRUE
762 ENABLE_XAW_FALSE
763 a_so_libs
764 ENABLE_DYNAMIC_XAW_TRUE
765 ENABLE_DYNAMIC_XAW_FALSE
766 ENABLE_XSKIN_TRUE
767 ENABLE_XSKIN_FALSE
768 i_so_libs
769 ENABLE_GTK_TRUE
770 ENABLE_GTK_FALSE
771 PKG_CONFIG
772 GTK_CONFIG
773 GTK_CFLAGS
774 GTK_LIBS
775 g_so_libs
776 ENABLE_SERVER_TRUE
777 ENABLE_SERVER_FALSE
778 r_so_libs
779 ENABLE_ALSASEQ_TRUE
780 ENABLE_ALSASEQ_FALSE
781 A_so_libs
782 ENABLE_WINSYN_TRUE
783 ENABLE_WINSYN_FALSE
784 W_so_libs
785 ENABLE_PORTMIDISYN_TRUE
786 ENABLE_PORTMIDISYN_FALSE
787 P_so_libs
788 ENABLE_NPSYN_TRUE
789 ENABLE_NPSYN_FALSE
790 ENABLE_W32G_SYN_TRUE
791 ENABLE_W32G_SYN_FALSE
792 ENABLE_W32GUI_TRUE
793 ENABLE_W32GUI_FALSE
794 w_so_libs
795 ENABLE_PLUGIN_TRUE
796 ENABLE_PLUGIN_FALSE
797 p_so_libs
798 ENABLE_NETWORK_TRUE
799 ENABLE_NETWORK_FALSE
800 ENABLE_SOUND_SPEC_TRUE
801 ENABLE_SOUND_SPEC_FALSE
802 ENABLE_WRD_TRUE
803 ENABLE_WRD_FALSE
804 W32G_GUI_TRUE
805 W32G_GUI_FALSE
806 WINDRV_TRUE
807 WINDRV_FALSE
808 MSYS_TRUE
809 MSYS_FALSE
810 VCPP_TRUE
811 VCPP_FALSE
812 POCC_TRUE
813 POCC_FALSE
814 BORLANDC_TRUE
815 BORLANDC_FALSE
816 WATCOM_C_TRUE
817 WATCOM_C_FALSE
818 DMC_TRUE
819 DMC_FALSE
820 MINGWGCC_TRUE
821 MINGWGCC_FALSE
822 W32READDIR_TRUE
823 W32READDIR_FALSE
824 BORLANDC_START
825 BORLANDC_LDFLAGS
826 timidity_LDFLAGS
827 WATCOM_LDFLAGS
828 DMC_LDFLAGS
829 VCPP_LDFLAGS
830 POCC_LDFLAGS
831 SYSEXTRAS
832 EXTRALIBS
833 NETSRCS
834 ELFILES
835 SHLD
836 SHCFLAGS
837 dynamic_targets
838 so
839 WISH
840 tcltk_dep
841 INTERFACE_SRCS
842 pkgdatadir
843 pkglibdir
844 LTLIBOBJS'
845 ac_subst_files=''
846       ac_precious_vars='build_alias
847 host_alias
848 target_alias
849 CC
850 CFLAGS
851 LDFLAGS
852 LIBS
853 CPPFLAGS
854 CPP
855 XMKMF'
856
857
858 # Initialize some variables set by options.
859 ac_init_help=
860 ac_init_version=false
861 # The variables have the same names as the options, with
862 # dashes changed to underlines.
863 cache_file=/dev/null
864 exec_prefix=NONE
865 no_create=
866 no_recursion=
867 prefix=NONE
868 program_prefix=NONE
869 program_suffix=NONE
870 program_transform_name=s,x,x,
871 silent=
872 site=
873 srcdir=
874 verbose=
875 x_includes=NONE
876 x_libraries=NONE
877
878 # Installation directory options.
879 # These are left unexpanded so users can "make install exec_prefix=/foo"
880 # and all the variables that are supposed to be based on exec_prefix
881 # by default will actually change.
882 # Use braces instead of parens because sh, perl, etc. also accept them.
883 # (The list follows the same order as the GNU Coding Standards.)
884 bindir='${exec_prefix}/bin'
885 sbindir='${exec_prefix}/sbin'
886 libexecdir='${exec_prefix}/libexec'
887 datarootdir='${prefix}/share'
888 datadir='${datarootdir}'
889 sysconfdir='${prefix}/etc'
890 sharedstatedir='${prefix}/com'
891 localstatedir='${prefix}/var'
892 includedir='${prefix}/include'
893 oldincludedir='/usr/include'
894 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
895 infodir='${datarootdir}/info'
896 htmldir='${docdir}'
897 dvidir='${docdir}'
898 pdfdir='${docdir}'
899 psdir='${docdir}'
900 libdir='${exec_prefix}/lib'
901 localedir='${datarootdir}/locale'
902 mandir='${datarootdir}/man'
903
904 ac_prev=
905 ac_dashdash=
906 for ac_option
907 do
908   # If the previous option needs an argument, assign it.
909   if test -n "$ac_prev"; then
910     eval $ac_prev=\$ac_option
911     ac_prev=
912     continue
913   fi
914
915   case $ac_option in
916   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
917   *)    ac_optarg=yes ;;
918   esac
919
920   # Accept the important Cygnus configure options, so we can diagnose typos.
921
922   case $ac_dashdash$ac_option in
923   --)
924     ac_dashdash=yes ;;
925
926   -bindir | --bindir | --bindi | --bind | --bin | --bi)
927     ac_prev=bindir ;;
928   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
929     bindir=$ac_optarg ;;
930
931   -build | --build | --buil | --bui | --bu)
932     ac_prev=build_alias ;;
933   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
934     build_alias=$ac_optarg ;;
935
936   -cache-file | --cache-file | --cache-fil | --cache-fi \
937   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
938     ac_prev=cache_file ;;
939   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
940   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
941     cache_file=$ac_optarg ;;
942
943   --config-cache | -C)
944     cache_file=config.cache ;;
945
946   -datadir | --datadir | --datadi | --datad)
947     ac_prev=datadir ;;
948   -datadir=* | --datadir=* | --datadi=* | --datad=*)
949     datadir=$ac_optarg ;;
950
951   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
952   | --dataroo | --dataro | --datar)
953     ac_prev=datarootdir ;;
954   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
955   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
956     datarootdir=$ac_optarg ;;
957
958   -disable-* | --disable-*)
959     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
960     # Reject names that are not valid shell variable names.
961     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
962       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
963    { (exit 1); exit 1; }; }
964     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
965     eval enable_$ac_feature=no ;;
966
967   -docdir | --docdir | --docdi | --doc | --do)
968     ac_prev=docdir ;;
969   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
970     docdir=$ac_optarg ;;
971
972   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
973     ac_prev=dvidir ;;
974   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
975     dvidir=$ac_optarg ;;
976
977   -enable-* | --enable-*)
978     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
979     # Reject names that are not valid shell variable names.
980     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
981       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
982    { (exit 1); exit 1; }; }
983     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
984     eval enable_$ac_feature=\$ac_optarg ;;
985
986   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
987   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
988   | --exec | --exe | --ex)
989     ac_prev=exec_prefix ;;
990   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
991   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
992   | --exec=* | --exe=* | --ex=*)
993     exec_prefix=$ac_optarg ;;
994
995   -gas | --gas | --ga | --g)
996     # Obsolete; use --with-gas.
997     with_gas=yes ;;
998
999   -help | --help | --hel | --he | -h)
1000     ac_init_help=long ;;
1001   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1002     ac_init_help=recursive ;;
1003   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1004     ac_init_help=short ;;
1005
1006   -host | --host | --hos | --ho)
1007     ac_prev=host_alias ;;
1008   -host=* | --host=* | --hos=* | --ho=*)
1009     host_alias=$ac_optarg ;;
1010
1011   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1012     ac_prev=htmldir ;;
1013   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1014   | --ht=*)
1015     htmldir=$ac_optarg ;;
1016
1017   -includedir | --includedir | --includedi | --included | --include \
1018   | --includ | --inclu | --incl | --inc)
1019     ac_prev=includedir ;;
1020   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1021   | --includ=* | --inclu=* | --incl=* | --inc=*)
1022     includedir=$ac_optarg ;;
1023
1024   -infodir | --infodir | --infodi | --infod | --info | --inf)
1025     ac_prev=infodir ;;
1026   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1027     infodir=$ac_optarg ;;
1028
1029   -libdir | --libdir | --libdi | --libd)
1030     ac_prev=libdir ;;
1031   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1032     libdir=$ac_optarg ;;
1033
1034   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1035   | --libexe | --libex | --libe)
1036     ac_prev=libexecdir ;;
1037   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1038   | --libexe=* | --libex=* | --libe=*)
1039     libexecdir=$ac_optarg ;;
1040
1041   -localedir | --localedir | --localedi | --localed | --locale)
1042     ac_prev=localedir ;;
1043   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1044     localedir=$ac_optarg ;;
1045
1046   -localstatedir | --localstatedir | --localstatedi | --localstated \
1047   | --localstate | --localstat | --localsta | --localst | --locals)
1048     ac_prev=localstatedir ;;
1049   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1050   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1051     localstatedir=$ac_optarg ;;
1052
1053   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1054     ac_prev=mandir ;;
1055   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1056     mandir=$ac_optarg ;;
1057
1058   -nfp | --nfp | --nf)
1059     # Obsolete; use --without-fp.
1060     with_fp=no ;;
1061
1062   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1063   | --no-cr | --no-c | -n)
1064     no_create=yes ;;
1065
1066   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1067   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1068     no_recursion=yes ;;
1069
1070   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1071   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1072   | --oldin | --oldi | --old | --ol | --o)
1073     ac_prev=oldincludedir ;;
1074   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1075   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1076   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1077     oldincludedir=$ac_optarg ;;
1078
1079   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1080     ac_prev=prefix ;;
1081   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1082     prefix=$ac_optarg ;;
1083
1084   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1085   | --program-pre | --program-pr | --program-p)
1086     ac_prev=program_prefix ;;
1087   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1088   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1089     program_prefix=$ac_optarg ;;
1090
1091   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1092   | --program-suf | --program-su | --program-s)
1093     ac_prev=program_suffix ;;
1094   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1095   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1096     program_suffix=$ac_optarg ;;
1097
1098   -program-transform-name | --program-transform-name \
1099   | --program-transform-nam | --program-transform-na \
1100   | --program-transform-n | --program-transform- \
1101   | --program-transform | --program-transfor \
1102   | --program-transfo | --program-transf \
1103   | --program-trans | --program-tran \
1104   | --progr-tra | --program-tr | --program-t)
1105     ac_prev=program_transform_name ;;
1106   -program-transform-name=* | --program-transform-name=* \
1107   | --program-transform-nam=* | --program-transform-na=* \
1108   | --program-transform-n=* | --program-transform-=* \
1109   | --program-transform=* | --program-transfor=* \
1110   | --program-transfo=* | --program-transf=* \
1111   | --program-trans=* | --program-tran=* \
1112   | --progr-tra=* | --program-tr=* | --program-t=*)
1113     program_transform_name=$ac_optarg ;;
1114
1115   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1116     ac_prev=pdfdir ;;
1117   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1118     pdfdir=$ac_optarg ;;
1119
1120   -psdir | --psdir | --psdi | --psd | --ps)
1121     ac_prev=psdir ;;
1122   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1123     psdir=$ac_optarg ;;
1124
1125   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126   | -silent | --silent | --silen | --sile | --sil)
1127     silent=yes ;;
1128
1129   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1130     ac_prev=sbindir ;;
1131   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1132   | --sbi=* | --sb=*)
1133     sbindir=$ac_optarg ;;
1134
1135   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1136   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1137   | --sharedst | --shareds | --shared | --share | --shar \
1138   | --sha | --sh)
1139     ac_prev=sharedstatedir ;;
1140   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1141   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1142   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1143   | --sha=* | --sh=*)
1144     sharedstatedir=$ac_optarg ;;
1145
1146   -site | --site | --sit)
1147     ac_prev=site ;;
1148   -site=* | --site=* | --sit=*)
1149     site=$ac_optarg ;;
1150
1151   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1152     ac_prev=srcdir ;;
1153   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1154     srcdir=$ac_optarg ;;
1155
1156   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1157   | --syscon | --sysco | --sysc | --sys | --sy)
1158     ac_prev=sysconfdir ;;
1159   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1160   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1161     sysconfdir=$ac_optarg ;;
1162
1163   -target | --target | --targe | --targ | --tar | --ta | --t)
1164     ac_prev=target_alias ;;
1165   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1166     target_alias=$ac_optarg ;;
1167
1168   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1169     verbose=yes ;;
1170
1171   -version | --version | --versio | --versi | --vers | -V)
1172     ac_init_version=: ;;
1173
1174   -with-* | --with-*)
1175     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1176     # Reject names that are not valid shell variable names.
1177     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1178       { echo "$as_me: error: invalid package name: $ac_package" >&2
1179    { (exit 1); exit 1; }; }
1180     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1181     eval with_$ac_package=\$ac_optarg ;;
1182
1183   -without-* | --without-*)
1184     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1185     # Reject names that are not valid shell variable names.
1186     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187       { echo "$as_me: error: invalid package name: $ac_package" >&2
1188    { (exit 1); exit 1; }; }
1189     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1190     eval with_$ac_package=no ;;
1191
1192   --x)
1193     # Obsolete; use --with-x.
1194     with_x=yes ;;
1195
1196   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1197   | --x-incl | --x-inc | --x-in | --x-i)
1198     ac_prev=x_includes ;;
1199   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1200   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1201     x_includes=$ac_optarg ;;
1202
1203   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1204   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1205     ac_prev=x_libraries ;;
1206   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1207   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1208     x_libraries=$ac_optarg ;;
1209
1210   -*) { echo "$as_me: error: unrecognized option: $ac_option
1211 Try \`$0 --help' for more information." >&2
1212    { (exit 1); exit 1; }; }
1213     ;;
1214
1215   *=*)
1216     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1217     # Reject names that are not valid shell variable names.
1218     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1219       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1220    { (exit 1); exit 1; }; }
1221     eval $ac_envvar=\$ac_optarg
1222     export $ac_envvar ;;
1223
1224   *)
1225     # FIXME: should be removed in autoconf 3.0.
1226     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1227     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1229     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1230     ;;
1231
1232   esac
1233 done
1234
1235 if test -n "$ac_prev"; then
1236   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1237   { echo "$as_me: error: missing argument to $ac_option" >&2
1238    { (exit 1); exit 1; }; }
1239 fi
1240
1241 # Be sure to have absolute directory names.
1242 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1243                 datadir sysconfdir sharedstatedir localstatedir includedir \
1244                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1245                 libdir localedir mandir
1246 do
1247   eval ac_val=\$$ac_var
1248   case $ac_val in
1249     [\\/$]* | ?:[\\/]* )  continue;;
1250     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1251   esac
1252   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1253    { (exit 1); exit 1; }; }
1254 done
1255
1256 # There might be people who depend on the old broken behavior: `$host'
1257 # used to hold the argument of --host etc.
1258 # FIXME: To remove some day.
1259 build=$build_alias
1260 host=$host_alias
1261 target=$target_alias
1262
1263 # FIXME: To remove some day.
1264 if test "x$host_alias" != x; then
1265   if test "x$build_alias" = x; then
1266     cross_compiling=maybe
1267     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1268     If a cross compiler is detected then cross compile mode will be used." >&2
1269   elif test "x$build_alias" != "x$host_alias"; then
1270     cross_compiling=yes
1271   fi
1272 fi
1273
1274 ac_tool_prefix=
1275 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1276
1277 test "$silent" = yes && exec 6>/dev/null
1278
1279
1280 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1281 ac_ls_di=`ls -di .` &&
1282 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1283   { echo "$as_me: error: Working directory cannot be determined" >&2
1284    { (exit 1); exit 1; }; }
1285 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1286   { echo "$as_me: error: pwd does not report name of working directory" >&2
1287    { (exit 1); exit 1; }; }
1288
1289
1290 # Find the source files, if location was not specified.
1291 if test -z "$srcdir"; then
1292   ac_srcdir_defaulted=yes
1293   # Try the directory containing this script, then the parent directory.
1294   ac_confdir=`$as_dirname -- "$0" ||
1295 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1296          X"$0" : 'X\(//\)[^/]' \| \
1297          X"$0" : 'X\(//\)$' \| \
1298          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1299 echo X"$0" |
1300     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1301             s//\1/
1302             q
1303           }
1304           /^X\(\/\/\)[^/].*/{
1305             s//\1/
1306             q
1307           }
1308           /^X\(\/\/\)$/{
1309             s//\1/
1310             q
1311           }
1312           /^X\(\/\).*/{
1313             s//\1/
1314             q
1315           }
1316           s/.*/./; q'`
1317   srcdir=$ac_confdir
1318   if test ! -r "$srcdir/$ac_unique_file"; then
1319     srcdir=..
1320   fi
1321 else
1322   ac_srcdir_defaulted=no
1323 fi
1324 if test ! -r "$srcdir/$ac_unique_file"; then
1325   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1326   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1327    { (exit 1); exit 1; }; }
1328 fi
1329 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1330 ac_abs_confdir=`(
1331         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1332    { (exit 1); exit 1; }; }
1333         pwd)`
1334 # When building in place, set srcdir=.
1335 if test "$ac_abs_confdir" = "$ac_pwd"; then
1336   srcdir=.
1337 fi
1338 # Remove unnecessary trailing slashes from srcdir.
1339 # Double slashes in file names in object file debugging info
1340 # mess up M-x gdb in Emacs.
1341 case $srcdir in
1342 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1343 esac
1344 for ac_var in $ac_precious_vars; do
1345   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1346   eval ac_env_${ac_var}_value=\$${ac_var}
1347   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1348   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1349 done
1350
1351 #
1352 # Report the --help message.
1353 #
1354 if test "$ac_init_help" = "long"; then
1355   # Omit some internal or obsolete options to make the list less imposing.
1356   # This message is too long to be a string in the A/UX 3.1 sh.
1357   cat <<_ACEOF
1358 \`configure' configures TiMidity++ 2.13.2 to adapt to many kinds of systems.
1359
1360 Usage: $0 [OPTION]... [VAR=VALUE]...
1361
1362 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1363 VAR=VALUE.  See below for descriptions of some of the useful variables.
1364
1365 Defaults for the options are specified in brackets.
1366
1367 Configuration:
1368   -h, --help              display this help and exit
1369       --help=short        display options specific to this package
1370       --help=recursive    display the short help of all the included packages
1371   -V, --version           display version information and exit
1372   -q, --quiet, --silent   do not print \`checking...' messages
1373       --cache-file=FILE   cache test results in FILE [disabled]
1374   -C, --config-cache      alias for \`--cache-file=config.cache'
1375   -n, --no-create         do not create output files
1376       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1377
1378 Installation directories:
1379   --prefix=PREFIX         install architecture-independent files in PREFIX
1380                           [$ac_default_prefix]
1381   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1382                           [PREFIX]
1383
1384 By default, \`make install' will install all the files in
1385 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1386 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1387 for instance \`--prefix=\$HOME'.
1388
1389 For better control, use the options below.
1390
1391 Fine tuning of the installation directories:
1392   --bindir=DIR           user executables [EPREFIX/bin]
1393   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1394   --libexecdir=DIR       program executables [EPREFIX/libexec]
1395   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1396   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1397   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1398   --libdir=DIR           object code libraries [EPREFIX/lib]
1399   --includedir=DIR       C header files [PREFIX/include]
1400   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1401   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1402   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1403   --infodir=DIR          info documentation [DATAROOTDIR/info]
1404   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1405   --mandir=DIR           man documentation [DATAROOTDIR/man]
1406   --docdir=DIR           documentation root [DATAROOTDIR/doc/TiMidity++]
1407   --htmldir=DIR          html documentation [DOCDIR]
1408   --dvidir=DIR           dvi documentation [DOCDIR]
1409   --pdfdir=DIR           pdf documentation [DOCDIR]
1410   --psdir=DIR            ps documentation [DOCDIR]
1411 _ACEOF
1412
1413   cat <<\_ACEOF
1414
1415 Program names:
1416   --program-prefix=PREFIX            prepend PREFIX to installed program names
1417   --program-suffix=SUFFIX            append SUFFIX to installed program names
1418   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1419
1420 X features:
1421   --x-includes=DIR    X include files are in DIR
1422   --x-libraries=DIR   X library files are in DIR
1423
1424 System types:
1425   --build=BUILD     configure for building on BUILD [guessed]
1426   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1427   --target=TARGET   configure for building compilers for TARGET [HOST]
1428 _ACEOF
1429 fi
1430
1431 if test -n "$ac_init_help"; then
1432   case $ac_init_help in
1433      short | recursive ) echo "Configuration of TiMidity++ 2.13.2:";;
1434    esac
1435   cat <<\_ACEOF
1436
1437 Optional Features:
1438   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1439   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1440   --enable-maintainer-mode enable make rules and dependencies not useful
1441                           (and sometimes confusing) to the casual installer
1442   --enable-debug          Build a debugging version.
1443   --disable-dependency-tracking Speeds up one-time builds
1444   --enable-dependency-tracking  Do not reject slow dependency extractors
1445   --enable-audio=mode_list Enable audio (Specify comma separated mode list):
1446                               default:   Automatically select audio device.
1447                               oss:       OSS /dev/dsp
1448                               sun:       SunOS /dev/audio
1449                               hpux:      HPUX /dev/audio
1450                               irix:      IRIX audio library
1451                               mme:       OSF/1 MME
1452                               sb_dsp:    BSD/OS 2.0 /dev/sb_dsp
1453                               w32:       Windows MMS
1454                               darwin:    Darwin CoreAudio
1455                               alsa:      ALSA pcm device
1456                               alib:      HPUX network audio (Alib)
1457                               nas:       NAS - Network Audio System
1458                               arts:      aRts
1459                               esd:       EsounD - Enlightened Sound Daemon
1460                               portaudio: PortAudio
1461                               npipe:     Named Pipe(windows)
1462                               jack:      JACK
1463                               ao:        Libao
1464                               vorbis:    Ogg Vorbis
1465                               flac:      FLAC / OggFLAC
1466                               speex:     Ogg Speex
1467                               gogo:      MP3 GOGO (Only Windows is supported)
1468   --disable-alsatest      Do not try to compile and run a test Alsa program
1469   --disable-esdtest       Do not try to compile and run a test ESD program
1470   --disable-aotest       Do not try to compile and run a test ao program
1471   --disable-oggtest       Do not try to compile and run a test Ogg program
1472   --disable-vorbistest       Do not try to compile and run a test Vorbis program
1473   --disable-libFLACtest       Do not try to compile and run a test libFLAC program
1474   --disable-libOggFLACtest       Do not try to compile and run a test libOggFLAC program
1475   --enable-interface=interface_list
1476                           Comma separated interface list
1477   --enable-dynamic        Enable dynamic link interface   (default is no)
1478   --enable-dynamic=dynamic_list
1479                           Comma separated dynamic interface list
1480   --enable-ncurses        Enable ncurses interface        (default is no)
1481   --enable-slang          Enable slang interface          (default is no)
1482   --enable-motif          Enable motif interface          (default is no)
1483   --enable-tcltk          Enable tcltk interface          (default is no)
1484   --enable-emacs          Enable emacs interface          (default is no)
1485   --enable-vt100          Enable VT100 interface          (default is no)
1486   --enable-xaw            Enable athena interface         (default is no)
1487   --enable-xskin          Enable X skin interface         (default is no)
1488   --enable-gtk            Enable GTK+ interface           (default is no)
1489   --disable-gtktest       do not try to compile and run a test GTK+ program
1490   --disable-gtktest       Do not try to compile and run a test GTK program
1491   --enable-server         Enable server interface         (default is no)
1492   --enable-alsaseq        Enable ALSA sequencer server interface
1493                                                           (default is no)
1494   --enable-winsyn        Enable Windows Synthesizer interface
1495                                                           (default is no)
1496   --enable-portmidisyn        Enable PortMIDI Synthesizer interface
1497                                                           (default is no)
1498   --enable-npsyn        Enable Windows Named Pipe Synthesizer interface
1499                                                           (default is no)
1500   --enable-winsyng        Enable Windows GUI Synthesizer interface
1501                                                           (default is no)
1502   --enable-w32gui         Enable Windows GUI interface    (default is no)
1503   --enable-ump            UMP configuration               (default is no)
1504   --enable-windrv         Windows Driver interface(requires winsyn)
1505   --enable-offix          Enable offix support            (default is no)
1506   --enable-network        Enable network support          (default is no)
1507   --enable-spectrogram    Enable Sound Spectrogram Viewer (default is no)
1508   --enable-spline=method  Specify spline method.
1509                                   one of no,linear,cubic,lagrange,newton,gauss
1510                                                           (default is linear)
1511   --enable-wrd            Enable WRD interface for X      (default is no)
1512
1513 Optional Packages:
1514   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1515   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1516   --with-includes=DIR     Specify include directories (colon separated)
1517   --with-libraries=DIR    Specify library directories (colon separated)
1518   --with-default-path=DIR Where timidity.cfg is  (PREFIX/share/timidity)
1519   --with-module-dir=DIR   Where to install interfaces (PREFIX/lib/timidity)
1520   --with-lispdir          Override the default lisp directory
1521   --with-elf              create ELF shared object instead of AOUT
1522   --with-x                use the X Window System
1523   --with-tcl-includes=DIR Tcl include file path
1524   --with-tcl-libs=DIR     Tcl library file path
1525   --with-tk-includes=DIR  Tk include file path
1526   --with-tk-libs=DIR      Tk library file path
1527   --with-offix-includes=DIR Offix include file path
1528   --with-offix-libs=DIR   Offix include file path
1529   --with-nas-library=library NAS absolute library path(Don't use -laudio)
1530   --with-nas-includes=DIR NAS include files are in dir
1531   --with-default-output=<mode>  Specify default output mode (optional):
1532                                 (default|alsa|alib|arts|nas|
1533                                 esd|wav|au|aiff|list|vorbis|flac|speex|
1534                                 gogo|portaudio|npipe|jack|ao)
1535   --with-alsa-prefix=PFX  Prefix where Alsa library is installed(optional)
1536   --with-alsa-inc-prefix=PFX  Prefix where include libraries are (optional)
1537   --with-esd-prefix=PFX   Prefix where ESD is installed (optional)
1538   --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
1539   --with-ao=PFX   Prefix where libao is installed (optional)
1540   --with-ao-libraries=DIR   Directory where libao library is installed (optional)
1541   --with-ao-includes=DIR   Directory where libao header files are installed (optional)
1542   --with-ogg=PFX   Prefix where libogg is installed (optional)
1543   --with-ogg-libraries=DIR   Directory where libogg library is installed (optional)
1544   --with-ogg-includes=DIR   Directory where libogg header files are installed (optional)
1545   --with-vorbis=PFX   Prefix where libvorbis is installed (optional)
1546   --with-vorbis-libraries=DIR   Directory where libvorbis library is installed (optional)
1547   --with-vorbis-includes=DIR   Directory where libvorbis header files are installed (optional)
1548   --with-libFLAC=PFX   Prefix where libFLAC is installed (optional)
1549   --with-libFLAC-libraries=DIR   Directory where libFLAC library is installed (optional)
1550   --with-libFLAC-includes=DIR   Directory where libFLAC header files are installed (optional)
1551   --with-libOggFLAC=PFX   Prefix where libOggFLAC is installed (optional)
1552   --with-libOggFLAC-libraries=DIR   Directory where libOggFLAC library is installed (optional)
1553   --with-libOggFLAC-includes=DIR   Directory where libOggFLAC header files are installed (optional)
1554   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1555   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1556
1557 Some influential environment variables:
1558   CC          C compiler command
1559   CFLAGS      C compiler flags
1560   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1561               nonstandard directory <lib dir>
1562   LIBS        libraries to pass to the linker, e.g. -l<library>
1563   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1564               you have headers in a nonstandard directory <include dir>
1565   CPP         C preprocessor
1566   XMKMF       Path to xmkmf, Makefile generator for X Window System
1567
1568 Use these variables to override the choices made by `configure' or to help
1569 it to find libraries and programs with nonstandard names/locations.
1570
1571 Report bugs to <root@mput.dip.jp>.
1572 _ACEOF
1573 ac_status=$?
1574 fi
1575
1576 if test "$ac_init_help" = "recursive"; then
1577   # If there are subdirs, report their specific --help.
1578   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1579     test -d "$ac_dir" || continue
1580     ac_builddir=.
1581
1582 case "$ac_dir" in
1583 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 *)
1585   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1586   # A ".." for each directory in $ac_dir_suffix.
1587   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1588   case $ac_top_builddir_sub in
1589   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1591   esac ;;
1592 esac
1593 ac_abs_top_builddir=$ac_pwd
1594 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1595 # for backward compatibility:
1596 ac_top_builddir=$ac_top_build_prefix
1597
1598 case $srcdir in
1599   .)  # We are building in place.
1600     ac_srcdir=.
1601     ac_top_srcdir=$ac_top_builddir_sub
1602     ac_abs_top_srcdir=$ac_pwd ;;
1603   [\\/]* | ?:[\\/]* )  # Absolute name.
1604     ac_srcdir=$srcdir$ac_dir_suffix;
1605     ac_top_srcdir=$srcdir
1606     ac_abs_top_srcdir=$srcdir ;;
1607   *) # Relative name.
1608     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1609     ac_top_srcdir=$ac_top_build_prefix$srcdir
1610     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611 esac
1612 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1613
1614     cd "$ac_dir" || { ac_status=$?; continue; }
1615     # Check for guested configure.
1616     if test -f "$ac_srcdir/configure.gnu"; then
1617       echo &&
1618       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1619     elif test -f "$ac_srcdir/configure"; then
1620       echo &&
1621       $SHELL "$ac_srcdir/configure" --help=recursive
1622     else
1623       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624     fi || ac_status=$?
1625     cd "$ac_pwd" || { ac_status=$?; break; }
1626   done
1627 fi
1628
1629 test -n "$ac_init_help" && exit $ac_status
1630 if $ac_init_version; then
1631   cat <<\_ACEOF
1632 TiMidity++ configure 2.13.2
1633 generated by GNU Autoconf 2.61
1634
1635 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1636 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1637 This configure script is free software; the Free Software Foundation
1638 gives unlimited permission to copy, distribute and modify it.
1639 _ACEOF
1640   exit
1641 fi
1642 cat >config.log <<_ACEOF
1643 This file contains any messages produced by compilers while
1644 running configure, to aid debugging if configure makes a mistake.
1645
1646 It was created by TiMidity++ $as_me 2.13.2, which was
1647 generated by GNU Autoconf 2.61.  Invocation command line was
1648
1649   $ $0 $@
1650
1651 _ACEOF
1652 exec 5>>config.log
1653 {
1654 cat <<_ASUNAME
1655 ## --------- ##
1656 ## Platform. ##
1657 ## --------- ##
1658
1659 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1660 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1661 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1662 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1663 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1664
1665 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1666 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1667
1668 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1669 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1670 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1671 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1672 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1673 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1674 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1675
1676 _ASUNAME
1677
1678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679 for as_dir in $PATH
1680 do
1681   IFS=$as_save_IFS
1682   test -z "$as_dir" && as_dir=.
1683   echo "PATH: $as_dir"
1684 done
1685 IFS=$as_save_IFS
1686
1687 } >&5
1688
1689 cat >&5 <<_ACEOF
1690
1691
1692 ## ----------- ##
1693 ## Core tests. ##
1694 ## ----------- ##
1695
1696 _ACEOF
1697
1698
1699 # Keep a trace of the command line.
1700 # Strip out --no-create and --no-recursion so they do not pile up.
1701 # Strip out --silent because we don't want to record it for future runs.
1702 # Also quote any args containing shell meta-characters.
1703 # Make two passes to allow for proper duplicate-argument suppression.
1704 ac_configure_args=
1705 ac_configure_args0=
1706 ac_configure_args1=
1707 ac_must_keep_next=false
1708 for ac_pass in 1 2
1709 do
1710   for ac_arg
1711   do
1712     case $ac_arg in
1713     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1714     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1715     | -silent | --silent | --silen | --sile | --sil)
1716       continue ;;
1717     *\'*)
1718       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1719     esac
1720     case $ac_pass in
1721     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1722     2)
1723       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1724       if test $ac_must_keep_next = true; then
1725         ac_must_keep_next=false # Got value, back to normal.
1726       else
1727         case $ac_arg in
1728           *=* | --config-cache | -C | -disable-* | --disable-* \
1729           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1730           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1731           | -with-* | --with-* | -without-* | --without-* | --x)
1732             case "$ac_configure_args0 " in
1733               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1734             esac
1735             ;;
1736           -* ) ac_must_keep_next=true ;;
1737         esac
1738       fi
1739       ac_configure_args="$ac_configure_args '$ac_arg'"
1740       ;;
1741     esac
1742   done
1743 done
1744 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1745 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1746
1747 # When interrupted or exit'd, cleanup temporary files, and complete
1748 # config.log.  We remove comments because anyway the quotes in there
1749 # would cause problems or look ugly.
1750 # WARNING: Use '\'' to represent an apostrophe within the trap.
1751 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1752 trap 'exit_status=$?
1753   # Save into config.log some information that might help in debugging.
1754   {
1755     echo
1756
1757     cat <<\_ASBOX
1758 ## ---------------- ##
1759 ## Cache variables. ##
1760 ## ---------------- ##
1761 _ASBOX
1762     echo
1763     # The following way of writing the cache mishandles newlines in values,
1764 (
1765   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1766     eval ac_val=\$$ac_var
1767     case $ac_val in #(
1768     *${as_nl}*)
1769       case $ac_var in #(
1770       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1771 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1772       esac
1773       case $ac_var in #(
1774       _ | IFS | as_nl) ;; #(
1775       *) $as_unset $ac_var ;;
1776       esac ;;
1777     esac
1778   done
1779   (set) 2>&1 |
1780     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1781     *${as_nl}ac_space=\ *)
1782       sed -n \
1783         "s/'\''/'\''\\\\'\'''\''/g;
1784           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1785       ;; #(
1786     *)
1787       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1788       ;;
1789     esac |
1790     sort
1791 )
1792     echo
1793
1794     cat <<\_ASBOX
1795 ## ----------------- ##
1796 ## Output variables. ##
1797 ## ----------------- ##
1798 _ASBOX
1799     echo
1800     for ac_var in $ac_subst_vars
1801     do
1802       eval ac_val=\$$ac_var
1803       case $ac_val in
1804       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1805       esac
1806       echo "$ac_var='\''$ac_val'\''"
1807     done | sort
1808     echo
1809
1810     if test -n "$ac_subst_files"; then
1811       cat <<\_ASBOX
1812 ## ------------------- ##
1813 ## File substitutions. ##
1814 ## ------------------- ##
1815 _ASBOX
1816       echo
1817       for ac_var in $ac_subst_files
1818       do
1819         eval ac_val=\$$ac_var
1820         case $ac_val in
1821         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1822         esac
1823         echo "$ac_var='\''$ac_val'\''"
1824       done | sort
1825       echo
1826     fi
1827
1828     if test -s confdefs.h; then
1829       cat <<\_ASBOX
1830 ## ----------- ##
1831 ## confdefs.h. ##
1832 ## ----------- ##
1833 _ASBOX
1834       echo
1835       cat confdefs.h
1836       echo
1837     fi
1838     test "$ac_signal" != 0 &&
1839       echo "$as_me: caught signal $ac_signal"
1840     echo "$as_me: exit $exit_status"
1841   } >&5
1842   rm -f core *.core core.conftest.* &&
1843     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1844     exit $exit_status
1845 ' 0
1846 for ac_signal in 1 2 13 15; do
1847   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1848 done
1849 ac_signal=0
1850
1851 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1852 rm -f -r conftest* confdefs.h
1853
1854 # Predefined preprocessor variables.
1855
1856 cat >>confdefs.h <<_ACEOF
1857 #define PACKAGE_NAME "$PACKAGE_NAME"
1858 _ACEOF
1859
1860
1861 cat >>confdefs.h <<_ACEOF
1862 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1863 _ACEOF
1864
1865
1866 cat >>confdefs.h <<_ACEOF
1867 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1868 _ACEOF
1869
1870
1871 cat >>confdefs.h <<_ACEOF
1872 #define PACKAGE_STRING "$PACKAGE_STRING"
1873 _ACEOF
1874
1875
1876 cat >>confdefs.h <<_ACEOF
1877 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1878 _ACEOF
1879
1880
1881 # Let the site file select an alternate cache file if it wants to.
1882 # Prefer explicitly selected file to automatically selected ones.
1883 if test -n "$CONFIG_SITE"; then
1884   set x "$CONFIG_SITE"
1885 elif test "x$prefix" != xNONE; then
1886   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1887 else
1888   set x "$ac_default_prefix/share/config.site" \
1889         "$ac_default_prefix/etc/config.site"
1890 fi
1891 shift
1892 for ac_site_file
1893 do
1894   if test -r "$ac_site_file"; then
1895     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1896 echo "$as_me: loading site script $ac_site_file" >&6;}
1897     sed 's/^/| /' "$ac_site_file" >&5
1898     . "$ac_site_file"
1899   fi
1900 done
1901
1902 if test -r "$cache_file"; then
1903   # Some versions of bash will fail to source /dev/null (special
1904   # files actually), so we avoid doing that.
1905   if test -f "$cache_file"; then
1906     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1907 echo "$as_me: loading cache $cache_file" >&6;}
1908     case $cache_file in
1909       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1910       *)                      . "./$cache_file";;
1911     esac
1912   fi
1913 else
1914   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1915 echo "$as_me: creating cache $cache_file" >&6;}
1916   >$cache_file
1917 fi
1918
1919 # Check that the precious variables saved in the cache have kept the same
1920 # value.
1921 ac_cache_corrupted=false
1922 for ac_var in $ac_precious_vars; do
1923   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1924   eval ac_new_set=\$ac_env_${ac_var}_set
1925   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1926   eval ac_new_val=\$ac_env_${ac_var}_value
1927   case $ac_old_set,$ac_new_set in
1928     set,)
1929       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1930 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1931       ac_cache_corrupted=: ;;
1932     ,set)
1933       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1934 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1935       ac_cache_corrupted=: ;;
1936     ,);;
1937     *)
1938       if test "x$ac_old_val" != "x$ac_new_val"; then
1939         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1940 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1941         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1942 echo "$as_me:   former value:  $ac_old_val" >&2;}
1943         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1944 echo "$as_me:   current value: $ac_new_val" >&2;}
1945         ac_cache_corrupted=:
1946       fi;;
1947   esac
1948   # Pass precious variables to config.status.
1949   if test "$ac_new_set" = set; then
1950     case $ac_new_val in
1951     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1952     *) ac_arg=$ac_var=$ac_new_val ;;
1953     esac
1954     case " $ac_configure_args " in
1955       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1956       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1957     esac
1958   fi
1959 done
1960 if $ac_cache_corrupted; then
1961   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1962 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1963   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1964 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1965    { (exit 1); exit 1; }; }
1966 fi
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992 ac_ext=c
1993 ac_cpp='$CPP $CPPFLAGS'
1994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1997
1998
1999 ac_aux_dir=
2000 for ac_dir in autoconf "$srcdir"/autoconf; do
2001   if test -f "$ac_dir/install-sh"; then
2002     ac_aux_dir=$ac_dir
2003     ac_install_sh="$ac_aux_dir/install-sh -c"
2004     break
2005   elif test -f "$ac_dir/install.sh"; then
2006     ac_aux_dir=$ac_dir
2007     ac_install_sh="$ac_aux_dir/install.sh -c"
2008     break
2009   elif test -f "$ac_dir/shtool"; then
2010     ac_aux_dir=$ac_dir
2011     ac_install_sh="$ac_aux_dir/shtool install -c"
2012     break
2013   fi
2014 done
2015 if test -z "$ac_aux_dir"; then
2016   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2017 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2018    { (exit 1); exit 1; }; }
2019 fi
2020
2021 # These three variables are undocumented and unsupported,
2022 # and are intended to be withdrawn in a future Autoconf release.
2023 # They can cause serious problems if a builder's source tree is in a directory
2024 # whose full name contains unusual characters.
2025 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2026 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2027 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2028
2029
2030 # Make sure we can run config.sub.
2031 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2032   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2033 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2034    { (exit 1); exit 1; }; }
2035
2036 { echo "$as_me:$LINENO: checking build system type" >&5
2037 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2038 if test "${ac_cv_build+set}" = set; then
2039   echo $ECHO_N "(cached) $ECHO_C" >&6
2040 else
2041   ac_build_alias=$build_alias
2042 test "x$ac_build_alias" = x &&
2043   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2044 test "x$ac_build_alias" = x &&
2045   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2046 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2047    { (exit 1); exit 1; }; }
2048 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2049   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2050 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2051    { (exit 1); exit 1; }; }
2052
2053 fi
2054 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2055 echo "${ECHO_T}$ac_cv_build" >&6; }
2056 case $ac_cv_build in
2057 *-*-*) ;;
2058 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2059 echo "$as_me: error: invalid value of canonical build" >&2;}
2060    { (exit 1); exit 1; }; };;
2061 esac
2062 build=$ac_cv_build
2063 ac_save_IFS=$IFS; IFS='-'
2064 set x $ac_cv_build
2065 shift
2066 build_cpu=$1
2067 build_vendor=$2
2068 shift; shift
2069 # Remember, the first character of IFS is used to create $*,
2070 # except with old shells:
2071 build_os=$*
2072 IFS=$ac_save_IFS
2073 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2074
2075
2076 { echo "$as_me:$LINENO: checking host system type" >&5
2077 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2078 if test "${ac_cv_host+set}" = set; then
2079   echo $ECHO_N "(cached) $ECHO_C" >&6
2080 else
2081   if test "x$host_alias" = x; then
2082   ac_cv_host=$ac_cv_build
2083 else
2084   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2085     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2086 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2087    { (exit 1); exit 1; }; }
2088 fi
2089
2090 fi
2091 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2092 echo "${ECHO_T}$ac_cv_host" >&6; }
2093 case $ac_cv_host in
2094 *-*-*) ;;
2095 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2096 echo "$as_me: error: invalid value of canonical host" >&2;}
2097    { (exit 1); exit 1; }; };;
2098 esac
2099 host=$ac_cv_host
2100 ac_save_IFS=$IFS; IFS='-'
2101 set x $ac_cv_host
2102 shift
2103 host_cpu=$1
2104 host_vendor=$2
2105 shift; shift
2106 # Remember, the first character of IFS is used to create $*,
2107 # except with old shells:
2108 host_os=$*
2109 IFS=$ac_save_IFS
2110 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2111
2112
2113 { echo "$as_me:$LINENO: checking target system type" >&5
2114 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2115 if test "${ac_cv_target+set}" = set; then
2116   echo $ECHO_N "(cached) $ECHO_C" >&6
2117 else
2118   if test "x$target_alias" = x; then
2119   ac_cv_target=$ac_cv_host
2120 else
2121   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2122     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2123 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2124    { (exit 1); exit 1; }; }
2125 fi
2126
2127 fi
2128 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2129 echo "${ECHO_T}$ac_cv_target" >&6; }
2130 case $ac_cv_target in
2131 *-*-*) ;;
2132 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2133 echo "$as_me: error: invalid value of canonical target" >&2;}
2134    { (exit 1); exit 1; }; };;
2135 esac
2136 target=$ac_cv_target
2137 ac_save_IFS=$IFS; IFS='-'
2138 set x $ac_cv_target
2139 shift
2140 target_cpu=$1
2141 target_vendor=$2
2142 shift; shift
2143 # Remember, the first character of IFS is used to create $*,
2144 # except with old shells:
2145 target_os=$*
2146 IFS=$ac_save_IFS
2147 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2148
2149
2150 # The aliases save the names the user supplied, while $host etc.
2151 # will get canonicalized.
2152 test -n "$target_alias" &&
2153   test "$program_prefix$program_suffix$program_transform_name" = \
2154     NONENONEs,x,x, &&
2155   program_prefix=${target_alias}-
2156 am__api_version="1.7"
2157 # Find a good install program.  We prefer a C program (faster),
2158 # so one script is as good as another.  But avoid the broken or
2159 # incompatible versions:
2160 # SysV /etc/install, /usr/sbin/install
2161 # SunOS /usr/etc/install
2162 # IRIX /sbin/install
2163 # AIX /bin/install
2164 # AmigaOS /C/install, which installs bootblocks on floppy discs
2165 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2166 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2167 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2168 # OS/2's system install, which has a completely different semantic
2169 # ./install, which can be erroneously created by make from ./install.sh.
2170 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2171 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2172 if test -z "$INSTALL"; then
2173 if test "${ac_cv_path_install+set}" = set; then
2174   echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177 for as_dir in $PATH
2178 do
2179   IFS=$as_save_IFS
2180   test -z "$as_dir" && as_dir=.
2181   # Account for people who put trailing slashes in PATH elements.
2182 case $as_dir/ in
2183   ./ | .// | /cC/* | \
2184   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2185   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2186   /usr/ucb/* ) ;;
2187   *)
2188     # OSF1 and SCO ODT 3.0 have their own names for install.
2189     # Don't use installbsd from OSF since it installs stuff as root
2190     # by default.
2191     for ac_prog in ginstall scoinst install; do
2192       for ac_exec_ext in '' $ac_executable_extensions; do
2193         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2194           if test $ac_prog = install &&
2195             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2196             # AIX install.  It has an incompatible calling convention.
2197             :
2198           elif test $ac_prog = install &&
2199             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2200             # program-specific install script used by HP pwplus--don't use.
2201             :
2202           else
2203             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2204             break 3
2205           fi
2206         fi
2207       done
2208     done
2209     ;;
2210 esac
2211 done
2212 IFS=$as_save_IFS
2213
2214
2215 fi
2216   if test "${ac_cv_path_install+set}" = set; then
2217     INSTALL=$ac_cv_path_install
2218   else
2219     # As a last resort, use the slow shell script.  Don't cache a
2220     # value for INSTALL within a source directory, because that will
2221     # break other packages using the cache if that directory is
2222     # removed, or if the value is a relative name.
2223     INSTALL=$ac_install_sh
2224   fi
2225 fi
2226 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2227 echo "${ECHO_T}$INSTALL" >&6; }
2228
2229 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2230 # It thinks the first close brace ends the variable substitution.
2231 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2232
2233 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2234
2235 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2236
2237 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2238 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2239 # Just in case
2240 sleep 1
2241 echo timestamp > conftest.file
2242 # Do `set' in a subshell so we don't clobber the current shell's
2243 # arguments.  Must try -L first in case configure is actually a
2244 # symlink; some systems play weird games with the mod time of symlinks
2245 # (eg FreeBSD returns the mod time of the symlink's containing
2246 # directory).
2247 if (
2248    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2249    if test "$*" = "X"; then
2250       # -L didn't work.
2251       set X `ls -t $srcdir/configure conftest.file`
2252    fi
2253    rm -f conftest.file
2254    if test "$*" != "X $srcdir/configure conftest.file" \
2255       && test "$*" != "X conftest.file $srcdir/configure"; then
2256
2257       # If neither matched, then we have a broken ls.  This can happen
2258       # if, for instance, CONFIG_SHELL is bash and it inherits a
2259       # broken ls alias from the environment.  This has actually
2260       # happened.  Such a system could not be considered "sane".
2261       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2262 alias in your environment" >&5
2263 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2264 alias in your environment" >&2;}
2265    { (exit 1); exit 1; }; }
2266    fi
2267
2268    test "$2" = conftest.file
2269    )
2270 then
2271    # Ok.
2272    :
2273 else
2274    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2275 Check your system clock" >&5
2276 echo "$as_me: error: newly created file is older than distributed files!
2277 Check your system clock" >&2;}
2278    { (exit 1); exit 1; }; }
2279 fi
2280 { echo "$as_me:$LINENO: result: yes" >&5
2281 echo "${ECHO_T}yes" >&6; }
2282 test "$program_prefix" != NONE &&
2283   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2284 # Use a double $ so make ignores it.
2285 test "$program_suffix" != NONE &&
2286   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2287 # Double any \ or $.  echo might interpret backslashes.
2288 # By default was `s,x,x', remove it if useless.
2289 cat <<\_ACEOF >conftest.sed
2290 s/[\\$]/&&/g;s/;s,x,x,$//
2291 _ACEOF
2292 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2293 rm -f conftest.sed
2294
2295
2296 # expand $ac_aux_dir to an absolute path
2297 am_aux_dir=`cd $ac_aux_dir && pwd`
2298
2299 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2300 # Use eval to expand $SHELL
2301 if eval "$MISSING --run true"; then
2302   am_missing_run="$MISSING --run "
2303 else
2304   am_missing_run=
2305   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2306 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2307 fi
2308
2309 for ac_prog in gawk mawk nawk awk
2310 do
2311   # Extract the first word of "$ac_prog", so it can be a program name with args.
2312 set dummy $ac_prog; ac_word=$2
2313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2315 if test "${ac_cv_prog_AWK+set}" = set; then
2316   echo $ECHO_N "(cached) $ECHO_C" >&6
2317 else
2318   if test -n "$AWK"; then
2319   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2320 else
2321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322 for as_dir in $PATH
2323 do
2324   IFS=$as_save_IFS
2325   test -z "$as_dir" && as_dir=.
2326   for ac_exec_ext in '' $ac_executable_extensions; do
2327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2328     ac_cv_prog_AWK="$ac_prog"
2329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2330     break 2
2331   fi
2332 done
2333 done
2334 IFS=$as_save_IFS
2335
2336 fi
2337 fi
2338 AWK=$ac_cv_prog_AWK
2339 if test -n "$AWK"; then
2340   { echo "$as_me:$LINENO: result: $AWK" >&5
2341 echo "${ECHO_T}$AWK" >&6; }
2342 else
2343   { echo "$as_me:$LINENO: result: no" >&5
2344 echo "${ECHO_T}no" >&6; }
2345 fi
2346
2347
2348   test -n "$AWK" && break
2349 done
2350
2351 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2352 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2353 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2354 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2355   echo $ECHO_N "(cached) $ECHO_C" >&6
2356 else
2357   cat >conftest.make <<\_ACEOF
2358 SHELL = /bin/sh
2359 all:
2360         @echo '@@@%%%=$(MAKE)=@@@%%%'
2361 _ACEOF
2362 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2363 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2364   *@@@%%%=?*=@@@%%%*)
2365     eval ac_cv_prog_make_${ac_make}_set=yes;;
2366   *)
2367     eval ac_cv_prog_make_${ac_make}_set=no;;
2368 esac
2369 rm -f conftest.make
2370 fi
2371 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2372   { echo "$as_me:$LINENO: result: yes" >&5
2373 echo "${ECHO_T}yes" >&6; }
2374   SET_MAKE=
2375 else
2376   { echo "$as_me:$LINENO: result: no" >&5
2377 echo "${ECHO_T}no" >&6; }
2378   SET_MAKE="MAKE=${MAKE-make}"
2379 fi
2380
2381 rm -rf .tst 2>/dev/null
2382 mkdir .tst 2>/dev/null
2383 if test -d .tst; then
2384   am__leading_dot=.
2385 else
2386   am__leading_dot=_
2387 fi
2388 rmdir .tst 2>/dev/null
2389
2390  # test to see if srcdir already configured
2391 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2392    test -f $srcdir/config.status; then
2393   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2394 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2395    { (exit 1); exit 1; }; }
2396 fi
2397
2398 # test whether we have cygpath
2399 if test -z "$CYGPATH_W"; then
2400   if (cygpath --version) >/dev/null 2>/dev/null; then
2401     CYGPATH_W='cygpath -w'
2402   else
2403     CYGPATH_W=echo
2404   fi
2405 fi
2406
2407
2408 # Define the identity of the package.
2409  PACKAGE='TiMidity++'
2410  VERSION='2.13.2'
2411
2412
2413 cat >>confdefs.h <<_ACEOF
2414 #define PACKAGE "$PACKAGE"
2415 _ACEOF
2416
2417
2418 cat >>confdefs.h <<_ACEOF
2419 #define VERSION "$VERSION"
2420 _ACEOF
2421
2422 # Some tools Automake needs.
2423
2424 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2425
2426
2427 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2428
2429
2430 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2431
2432
2433 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2434
2435
2436 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2437
2438
2439 AMTAR=${AMTAR-"${am_missing_run}tar"}
2440
2441 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2442
2443 # Installed binaries are usually stripped using `strip' when the user
2444 # run `make install-strip'.  However `strip' might not be the right
2445 # tool to use in cross-compilation environments, therefore Automake
2446 # will honor the `STRIP' environment variable to overrule this program.
2447 if test "$cross_compiling" != no; then
2448   if test -n "$ac_tool_prefix"; then
2449   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2450 set dummy ${ac_tool_prefix}strip; ac_word=$2
2451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2453 if test "${ac_cv_prog_STRIP+set}" = set; then
2454   echo $ECHO_N "(cached) $ECHO_C" >&6
2455 else
2456   if test -n "$STRIP"; then
2457   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2458 else
2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460 for as_dir in $PATH
2461 do
2462   IFS=$as_save_IFS
2463   test -z "$as_dir" && as_dir=.
2464   for ac_exec_ext in '' $ac_executable_extensions; do
2465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2466     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2468     break 2
2469   fi
2470 done
2471 done
2472 IFS=$as_save_IFS
2473
2474 fi
2475 fi
2476 STRIP=$ac_cv_prog_STRIP
2477 if test -n "$STRIP"; then
2478   { echo "$as_me:$LINENO: result: $STRIP" >&5
2479 echo "${ECHO_T}$STRIP" >&6; }
2480 else
2481   { echo "$as_me:$LINENO: result: no" >&5
2482 echo "${ECHO_T}no" >&6; }
2483 fi
2484
2485
2486 fi
2487 if test -z "$ac_cv_prog_STRIP"; then
2488   ac_ct_STRIP=$STRIP
2489   # Extract the first word of "strip", so it can be a program name with args.
2490 set dummy strip; ac_word=$2
2491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2493 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2494   echo $ECHO_N "(cached) $ECHO_C" >&6
2495 else
2496   if test -n "$ac_ct_STRIP"; then
2497   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2498 else
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 for as_dir in $PATH
2501 do
2502   IFS=$as_save_IFS
2503   test -z "$as_dir" && as_dir=.
2504   for ac_exec_ext in '' $ac_executable_extensions; do
2505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2506     ac_cv_prog_ac_ct_STRIP="strip"
2507     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2508     break 2
2509   fi
2510 done
2511 done
2512 IFS=$as_save_IFS
2513
2514 fi
2515 fi
2516 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2517 if test -n "$ac_ct_STRIP"; then
2518   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2519 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2520 else
2521   { echo "$as_me:$LINENO: result: no" >&5
2522 echo "${ECHO_T}no" >&6; }
2523 fi
2524
2525   if test "x$ac_ct_STRIP" = x; then
2526     STRIP=":"
2527   else
2528     case $cross_compiling:$ac_tool_warned in
2529 yes:)
2530 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2531 whose name does not start with the host triplet.  If you think this
2532 configuration is useful to you, please write to autoconf@gnu.org." >&5
2533 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2534 whose name does not start with the host triplet.  If you think this
2535 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2536 ac_tool_warned=yes ;;
2537 esac
2538     STRIP=$ac_ct_STRIP
2539   fi
2540 else
2541   STRIP="$ac_cv_prog_STRIP"
2542 fi
2543
2544 fi
2545 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2546
2547 # We need awk for the "check" target.  The system "awk" is bad on
2548 # some platforms.
2549
2550
2551
2552
2553 ac_config_headers="$ac_config_headers config.h interface.h"
2554
2555 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2556 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2557     # Check whether --enable-maintainer-mode was given.
2558 if test "${enable_maintainer_mode+set}" = set; then
2559   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2560 else
2561   USE_MAINTAINER_MODE=no
2562 fi
2563
2564   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2565 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2566
2567
2568 if test $USE_MAINTAINER_MODE = yes; then
2569   MAINTAINER_MODE_TRUE=
2570   MAINTAINER_MODE_FALSE='#'
2571 else
2572   MAINTAINER_MODE_TRUE='#'
2573   MAINTAINER_MODE_FALSE=
2574 fi
2575
2576   MAINT=$MAINTAINER_MODE_TRUE
2577
2578
2579
2580 SHELL=${CONFIG_SHELL-"/bin/sh"}
2581 WISH=${WISH-"wish"}
2582
2583 { echo "$as_me:$LINENO: checking whether grep returns status" >&5
2584 echo $ECHO_N "checking whether grep returns status... $ECHO_C" >&6; }
2585 echo "grimblepritz" >grimble
2586 if grep blurfldyick grimble >/dev/null 2>&1 ; then
2587         contains="./contains"
2588 elif grep grimblepritz grimble >/dev/null 2>&1 ; then
2589         contains=grep
2590 else
2591         contains="./contains"
2592 fi
2593 rm -f grimble
2594 case "$contains" in
2595 grep)   { echo "$as_me:$LINENO: result: yes" >&5
2596 echo "${ECHO_T}yes" >&6; }
2597         ;;
2598 ./contains)
2599         { echo "$as_me:$LINENO: result: AGH!  Grep doesn't return a status.  Attempting remedial action." >&5
2600 echo "${ECHO_T}AGH!  Grep doesn't return a status.  Attempting remedial action." >&6; }
2601         cat >./contains <<'EOSS'
2602 grep "$1" "$2" >.greptmp && cat .greptmp && test -s .greptmp
2603 EOSS
2604         chmod +x "./contains"
2605         ;;
2606 esac
2607
2608
2609 # Check for compiler options -- such as debug flags.
2610
2611 { echo "$as_me:$LINENO: checking if --enable-debug option specified" >&5
2612 echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6; }
2613 # Check whether --enable-debug was given.
2614 if test "${enable_debug+set}" = set; then
2615   enableval=$enable_debug; timidity_cv_debug="yes"
2616 else
2617   timidity_cv_debug="no"
2618 fi
2619
2620 if test "x$timidity_cv_debug" = "xyes"; then
2621
2622 cat >>confdefs.h <<\_ACEOF
2623 #define DEBUG 1
2624 _ACEOF
2625
2626   CFLAGS=${CFLAGS-"-g"}
2627 fi
2628 if test "x$timidity_cv_debug" = "xno"; then
2629
2630 cat >>confdefs.h <<\_ACEOF
2631 #define NDEBUG 1
2632 _ACEOF
2633
2634 fi
2635 { echo "$as_me:$LINENO: result: $timidity_cv_debug" >&5
2636 echo "${ECHO_T}$timidity_cv_debug" >&6; }
2637
2638 if test "x$CFLAGS" = "x"; then
2639   NOCFLAGS="yes"
2640 fi
2641
2642 if test "x$with_x" = x; then
2643   with_x=yes
2644 else
2645   x_config_flag=yes
2646 fi
2647
2648 # Checking gcc environment
2649 for i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do
2650   LDFLAGS="$LDFLAGS -L${i}"
2651 done
2652 for i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do
2653   CPPFLAGS="$CPPFLAGS -I${i}"
2654 done
2655
2656 # add $prefix if specified.
2657 if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then
2658   LDFLAGS="-L$prefix/lib $LDFLAGS"
2659   SHLDFLAGS="-L$prefix/lib $SHLDFLAGS"
2660   CPPFLAGS="-I$prefix/include $CPPFLAGS"
2661 fi
2662
2663
2664 # Check whether --with-includes was given.
2665 if test "${with_includes+set}" = set; then
2666   withval=$with_includes;  j=' '
2667     for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2668       j="${j}-I${i} "
2669     done
2670     CPPFLAGS="$j$CPPFLAGS"
2671
2672 fi
2673
2674
2675
2676 # Check whether --with-libraries was given.
2677 if test "${with_libraries+set}" = set; then
2678   withval=$with_libraries;  j=' '
2679     for i in `echo "$withval"|sed -e 's,:, ,g'`; do
2680       j="${j}-L${i} "
2681     done
2682     LDFLAGS="$j$LDFLAGS"
2683
2684 fi
2685
2686
2687
2688
2689 # Check whether --with-default-path was given.
2690 if test "${with_default_path+set}" = set; then
2691   withval=$with_default_path; pkgdatadir=$withval
2692 else
2693
2694    if test "x$prefix" != "xNONE"; then
2695       pkgdatadir='${prefix}/share/timidity'
2696    else
2697       pkgdatadir='/usr/local/share/timidity'
2698    fi
2699
2700 fi
2701
2702 tmpdefpath="`eval \"echo ${pkgdatadir}\"`"
2703
2704 cat >>confdefs.h <<_ACEOF
2705 #define DEFAULT_PATH "$tmpdefpath"
2706 _ACEOF
2707
2708
2709 cat >>confdefs.h <<\_ACEOF
2710 #define PKGDATADIR DEFAULT_PATH
2711 _ACEOF
2712
2713
2714
2715 # Check whether --with-module-dir was given.
2716 if test "${with_module_dir+set}" = set; then
2717   withval=$with_module_dir; pkglibdir=$withval
2718 else
2719
2720    if test "x$prefix" != "xNONE"; then
2721       pkglibdir='${prefix}/lib/timidity'
2722    else
2723       pkglibdir='/usr/local/lib/timidity'
2724    fi
2725
2726 fi
2727
2728 tmplibdir="`eval \"echo ${pkglibdir}\"`"
2729
2730 cat >>confdefs.h <<_ACEOF
2731 #define PKGLIBDIR "$tmplibdir"
2732 _ACEOF
2733
2734
2735
2736 # Checks for programs.
2737
2738 # Check whether --with-lispdir was given.
2739 if test "${with_lispdir+set}" = set; then
2740   withval=$with_lispdir;  lispdir="$withval"
2741    { echo "$as_me:$LINENO: checking where .elc files should go" >&5
2742 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6; }
2743    { echo "$as_me:$LINENO: result: $lispdir" >&5
2744 echo "${ECHO_T}$lispdir" >&6; }
2745 else
2746
2747  # If set to t, that means we are running in a shell under Emacs.
2748  # If you have an Emacs named "t", then use the full path.
2749  test x"$EMACS" = xt && EMACS=
2750  for ac_prog in emacs xemacs
2751 do
2752   # Extract the first word of "$ac_prog", so it can be a program name with args.
2753 set dummy $ac_prog; ac_word=$2
2754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2756 if test "${ac_cv_prog_EMACS+set}" = set; then
2757   echo $ECHO_N "(cached) $ECHO_C" >&6
2758 else
2759   if test -n "$EMACS"; then
2760   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2761 else
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 for as_dir in $PATH
2764 do
2765   IFS=$as_save_IFS
2766   test -z "$as_dir" && as_dir=.
2767   for ac_exec_ext in '' $ac_executable_extensions; do
2768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2769     ac_cv_prog_EMACS="$ac_prog"
2770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2771     break 2
2772   fi
2773 done
2774 done
2775 IFS=$as_save_IFS
2776
2777 fi
2778 fi
2779 EMACS=$ac_cv_prog_EMACS
2780 if test -n "$EMACS"; then
2781   { echo "$as_me:$LINENO: result: $EMACS" >&5
2782 echo "${ECHO_T}$EMACS" >&6; }
2783 else
2784   { echo "$as_me:$LINENO: result: no" >&5
2785 echo "${ECHO_T}no" >&6; }
2786 fi
2787
2788
2789   test -n "$EMACS" && break
2790 done
2791 test -n "$EMACS" || EMACS="no"
2792
2793  if test $EMACS != "no"; then
2794    if test x${lispdir+set} != xset; then
2795      { echo "$as_me:$LINENO: checking where .elc files should go" >&5
2796 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6; }
2797 if test "${am_cv_lispdir+set}" = set; then
2798   echo $ECHO_N "(cached) $ECHO_C" >&6
2799 else
2800   # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
2801   # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
2802   #  which is non-obvious for non-emacs users.
2803   # Redirecting /dev/null should help a bit; pity we can't detect "broken"
2804   #  emacsen earlier and avoid running this altogether.
2805   { (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
2806   ($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
2807   ac_status=$?
2808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809   (exit $ac_status); }
2810         am_cv_lispdir=`sed -n \
2811        -e 's,/$,,' \
2812        -e '/.*\/lib\/x\?emacs\/site-lisp$/{s,.*/lib/\(x\?emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
2813        -e '/.*\/share\/x\?emacs\/site-lisp$/{s,.*/share/\(x\?emacs/site-lisp\),${datadir}/\1,;p;q;}' \
2814        conftest.out`
2815        rm conftest.out
2816        if test -z "$am_cv_lispdir"; then
2817          am_cv_lispdir='${datadir}/emacs/site-lisp'
2818        fi
2819
2820 fi
2821 { echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2822 echo "${ECHO_T}$am_cv_lispdir" >&6; }
2823      lispdir="$am_cv_lispdir"
2824    fi
2825  fi
2826
2827 fi
2828
2829
2830
2831 ac_ext=c
2832 ac_cpp='$CPP $CPPFLAGS'
2833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2836 if test -n "$ac_tool_prefix"; then
2837   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2838 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2841 if test "${ac_cv_prog_CC+set}" = set; then
2842   echo $ECHO_N "(cached) $ECHO_C" >&6
2843 else
2844   if test -n "$CC"; then
2845   ac_cv_prog_CC="$CC" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2849 do
2850   IFS=$as_save_IFS
2851   test -z "$as_dir" && as_dir=.
2852   for ac_exec_ext in '' $ac_executable_extensions; do
2853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2854     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856     break 2
2857   fi
2858 done
2859 done
2860 IFS=$as_save_IFS
2861
2862 fi
2863 fi
2864 CC=$ac_cv_prog_CC
2865 if test -n "$CC"; then
2866   { echo "$as_me:$LINENO: result: $CC" >&5
2867 echo "${ECHO_T}$CC" >&6; }
2868 else
2869   { echo "$as_me:$LINENO: result: no" >&5
2870 echo "${ECHO_T}no" >&6; }
2871 fi
2872
2873
2874 fi
2875 if test -z "$ac_cv_prog_CC"; then
2876   ac_ct_CC=$CC
2877   # Extract the first word of "gcc", so it can be a program name with args.
2878 set dummy gcc; ac_word=$2
2879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2881 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2882   echo $ECHO_N "(cached) $ECHO_C" >&6
2883 else
2884   if test -n "$ac_ct_CC"; then
2885   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2886 else
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 for as_dir in $PATH
2889 do
2890   IFS=$as_save_IFS
2891   test -z "$as_dir" && as_dir=.
2892   for ac_exec_ext in '' $ac_executable_extensions; do
2893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894     ac_cv_prog_ac_ct_CC="gcc"
2895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2896     break 2
2897   fi
2898 done
2899 done
2900 IFS=$as_save_IFS
2901
2902 fi
2903 fi
2904 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2905 if test -n "$ac_ct_CC"; then
2906   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2907 echo "${ECHO_T}$ac_ct_CC" >&6; }
2908 else
2909   { echo "$as_me:$LINENO: result: no" >&5
2910 echo "${ECHO_T}no" >&6; }
2911 fi
2912
2913   if test "x$ac_ct_CC" = x; then
2914     CC=""
2915   else
2916     case $cross_compiling:$ac_tool_warned in
2917 yes:)
2918 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2919 whose name does not start with the host triplet.  If you think this
2920 configuration is useful to you, please write to autoconf@gnu.org." >&5
2921 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2922 whose name does not start with the host triplet.  If you think this
2923 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2924 ac_tool_warned=yes ;;
2925 esac
2926     CC=$ac_ct_CC
2927   fi
2928 else
2929   CC="$ac_cv_prog_CC"
2930 fi
2931
2932 if test -z "$CC"; then
2933           if test -n "$ac_tool_prefix"; then
2934     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2935 set dummy ${ac_tool_prefix}cc; ac_word=$2
2936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2938 if test "${ac_cv_prog_CC+set}" = set; then
2939   echo $ECHO_N "(cached) $ECHO_C" >&6
2940 else
2941   if test -n "$CC"; then
2942   ac_cv_prog_CC="$CC" # Let the user override the test.
2943 else
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 for as_dir in $PATH
2946 do
2947   IFS=$as_save_IFS
2948   test -z "$as_dir" && as_dir=.
2949   for ac_exec_ext in '' $ac_executable_extensions; do
2950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2951     ac_cv_prog_CC="${ac_tool_prefix}cc"
2952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2953     break 2
2954   fi
2955 done
2956 done
2957 IFS=$as_save_IFS
2958
2959 fi
2960 fi
2961 CC=$ac_cv_prog_CC
2962 if test -n "$CC"; then
2963   { echo "$as_me:$LINENO: result: $CC" >&5
2964 echo "${ECHO_T}$CC" >&6; }
2965 else
2966   { echo "$as_me:$LINENO: result: no" >&5
2967 echo "${ECHO_T}no" >&6; }
2968 fi
2969
2970
2971   fi
2972 fi
2973 if test -z "$CC"; then
2974   # Extract the first word of "cc", so it can be a program name with args.
2975 set dummy cc; ac_word=$2
2976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2978 if test "${ac_cv_prog_CC+set}" = set; then
2979   echo $ECHO_N "(cached) $ECHO_C" >&6
2980 else
2981   if test -n "$CC"; then
2982   ac_cv_prog_CC="$CC" # Let the user override the test.
2983 else
2984   ac_prog_rejected=no
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 for as_dir in $PATH
2987 do
2988   IFS=$as_save_IFS
2989   test -z "$as_dir" && as_dir=.
2990   for ac_exec_ext in '' $ac_executable_extensions; do
2991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2992     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2993        ac_prog_rejected=yes
2994        continue
2995      fi
2996     ac_cv_prog_CC="cc"
2997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2998     break 2
2999   fi
3000 done
3001 done
3002 IFS=$as_save_IFS
3003
3004 if test $ac_prog_rejected = yes; then
3005   # We found a bogon in the path, so make sure we never use it.
3006   set dummy $ac_cv_prog_CC
3007   shift
3008   if test $# != 0; then
3009     # We chose a different compiler from the bogus one.
3010     # However, it has the same basename, so the bogon will be chosen
3011     # first if we set CC to just the basename; use the full file name.
3012     shift
3013     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3014   fi
3015 fi
3016 fi
3017 fi
3018 CC=$ac_cv_prog_CC
3019 if test -n "$CC"; then
3020   { echo "$as_me:$LINENO: result: $CC" >&5
3021 echo "${ECHO_T}$CC" >&6; }
3022 else
3023   { echo "$as_me:$LINENO: result: no" >&5
3024 echo "${ECHO_T}no" >&6; }
3025 fi
3026
3027
3028 fi
3029 if test -z "$CC"; then
3030   if test -n "$ac_tool_prefix"; then
3031   for ac_prog in cl.exe
3032   do
3033     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3034 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3037 if test "${ac_cv_prog_CC+set}" = set; then
3038   echo $ECHO_N "(cached) $ECHO_C" >&6
3039 else
3040   if test -n "$CC"; then
3041   ac_cv_prog_CC="$CC" # Let the user override the test.
3042 else
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 for as_dir in $PATH
3045 do
3046   IFS=$as_save_IFS
3047   test -z "$as_dir" && as_dir=.
3048   for ac_exec_ext in '' $ac_executable_extensions; do
3049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3050     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3051     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3052     break 2
3053   fi
3054 done
3055 done
3056 IFS=$as_save_IFS
3057
3058 fi
3059 fi
3060 CC=$ac_cv_prog_CC
3061 if test -n "$CC"; then
3062   { echo "$as_me:$LINENO: result: $CC" >&5
3063 echo "${ECHO_T}$CC" >&6; }
3064 else
3065   { echo "$as_me:$LINENO: result: no" >&5
3066 echo "${ECHO_T}no" >&6; }
3067 fi
3068
3069
3070     test -n "$CC" && break
3071   done
3072 fi
3073 if test -z "$CC"; then
3074   ac_ct_CC=$CC
3075   for ac_prog in cl.exe
3076 do
3077   # Extract the first word of "$ac_prog", so it can be a program name with args.
3078 set dummy $ac_prog; ac_word=$2
3079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3081 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3082   echo $ECHO_N "(cached) $ECHO_C" >&6
3083 else
3084   if test -n "$ac_ct_CC"; then
3085   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3086 else
3087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 for as_dir in $PATH
3089 do
3090   IFS=$as_save_IFS
3091   test -z "$as_dir" && as_dir=.
3092   for ac_exec_ext in '' $ac_executable_extensions; do
3093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3094     ac_cv_prog_ac_ct_CC="$ac_prog"
3095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3096     break 2
3097   fi
3098 done
3099 done
3100 IFS=$as_save_IFS
3101
3102 fi
3103 fi
3104 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3105 if test -n "$ac_ct_CC"; then
3106   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3107 echo "${ECHO_T}$ac_ct_CC" >&6; }
3108 else
3109   { echo "$as_me:$LINENO: result: no" >&5
3110 echo "${ECHO_T}no" >&6; }
3111 fi
3112
3113
3114   test -n "$ac_ct_CC" && break
3115 done
3116
3117   if test "x$ac_ct_CC" = x; then
3118     CC=""
3119   else
3120     case $cross_compiling:$ac_tool_warned in
3121 yes:)
3122 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3123 whose name does not start with the host triplet.  If you think this
3124 configuration is useful to you, please write to autoconf@gnu.org." >&5
3125 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3126 whose name does not start with the host triplet.  If you think this
3127 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3128 ac_tool_warned=yes ;;
3129 esac
3130     CC=$ac_ct_CC
3131   fi
3132 fi
3133
3134 fi
3135
3136
3137 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3138 See \`config.log' for more details." >&5
3139 echo "$as_me: error: no acceptable C compiler found in \$PATH
3140 See \`config.log' for more details." >&2;}
3141    { (exit 1); exit 1; }; }
3142
3143 # Provide some information about the compiler.
3144 echo "$as_me:$LINENO: checking for C compiler version" >&5
3145 ac_compiler=`set X $ac_compile; echo $2`
3146 { (ac_try="$ac_compiler --version >&5"
3147 case "(($ac_try" in
3148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149   *) ac_try_echo=$ac_try;;
3150 esac
3151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152   (eval "$ac_compiler --version >&5") 2>&5
3153   ac_status=$?
3154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155   (exit $ac_status); }
3156 { (ac_try="$ac_compiler -v >&5"
3157 case "(($ac_try" in
3158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159   *) ac_try_echo=$ac_try;;
3160 esac
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162   (eval "$ac_compiler -v >&5") 2>&5
3163   ac_status=$?
3164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165   (exit $ac_status); }
3166 { (ac_try="$ac_compiler -V >&5"
3167 case "(($ac_try" in
3168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169   *) ac_try_echo=$ac_try;;
3170 esac
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172   (eval "$ac_compiler -V >&5") 2>&5
3173   ac_status=$?
3174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175   (exit $ac_status); }
3176
3177 cat >conftest.$ac_ext <<_ACEOF
3178 /* confdefs.h.  */
3179 _ACEOF
3180 cat confdefs.h >>conftest.$ac_ext
3181 cat >>conftest.$ac_ext <<_ACEOF
3182 /* end confdefs.h.  */
3183
3184 int
3185 main ()
3186 {
3187
3188   ;
3189   return 0;
3190 }
3191 _ACEOF
3192 ac_clean_files_save=$ac_clean_files
3193 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3194 # Try to create an executable without -o first, disregard a.out.
3195 # It will help us diagnose broken compilers, and finding out an intuition
3196 # of exeext.
3197 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3198 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3199 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3200 #
3201 # List of possible output files, starting from the most likely.
3202 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3203 # only as a last resort.  b.out is created by i960 compilers.
3204 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3205 #
3206 # The IRIX 6 linker writes into existing files which may not be
3207 # executable, retaining their permissions.  Remove them first so a
3208 # subsequent execution test works.
3209 ac_rmfiles=
3210 for ac_file in $ac_files
3211 do
3212   case $ac_file in
3213     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3214     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3215   esac
3216 done
3217 rm -f $ac_rmfiles
3218
3219 if { (ac_try="$ac_link_default"
3220 case "(($ac_try" in
3221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222   *) ac_try_echo=$ac_try;;
3223 esac
3224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3225   (eval "$ac_link_default") 2>&5
3226   ac_status=$?
3227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228   (exit $ac_status); }; then
3229   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3230 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3231 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3232 # so that the user can short-circuit this test for compilers unknown to
3233 # Autoconf.
3234 for ac_file in $ac_files ''
3235 do
3236   test -f "$ac_file" || continue
3237   case $ac_file in
3238     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3239         ;;
3240     [ab].out )
3241         # We found the default executable, but exeext='' is most
3242         # certainly right.
3243         break;;
3244     *.* )
3245         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3246         then :; else
3247            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3248         fi
3249         # We set ac_cv_exeext here because the later test for it is not
3250         # safe: cross compilers may not add the suffix if given an `-o'
3251         # argument, so we may need to know it at that point already.
3252         # Even if this section looks crufty: it has the advantage of
3253         # actually working.
3254         break;;
3255     * )
3256         break;;
3257   esac
3258 done
3259 test "$ac_cv_exeext" = no && ac_cv_exeext=
3260
3261 else
3262   ac_file=''
3263 fi
3264
3265 { echo "$as_me:$LINENO: result: $ac_file" >&5
3266 echo "${ECHO_T}$ac_file" >&6; }
3267 if test -z "$ac_file"; then
3268   echo "$as_me: failed program was:" >&5
3269 sed 's/^/| /' conftest.$ac_ext >&5
3270
3271 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3272 See \`config.log' for more details." >&5
3273 echo "$as_me: error: C compiler cannot create executables
3274 See \`config.log' for more details." >&2;}
3275    { (exit 77); exit 77; }; }
3276 fi
3277
3278 ac_exeext=$ac_cv_exeext
3279
3280 # Check that the compiler produces executables we can run.  If not, either
3281 # the compiler is broken, or we cross compile.
3282 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3283 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3284 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3285 # If not cross compiling, check that we can run a simple program.
3286 if test "$cross_compiling" != yes; then
3287   if { ac_try='./$ac_file'
3288   { (case "(($ac_try" in
3289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290   *) ac_try_echo=$ac_try;;
3291 esac
3292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3293   (eval "$ac_try") 2>&5
3294   ac_status=$?
3295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296   (exit $ac_status); }; }; then
3297     cross_compiling=no
3298   else
3299     if test "$cross_compiling" = maybe; then
3300         cross_compiling=yes
3301     else
3302         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3303 If you meant to cross compile, use \`--host'.
3304 See \`config.log' for more details." >&5
3305 echo "$as_me: error: cannot run C compiled programs.
3306 If you meant to cross compile, use \`--host'.
3307 See \`config.log' for more details." >&2;}
3308    { (exit 1); exit 1; }; }
3309     fi
3310   fi
3311 fi
3312 { echo "$as_me:$LINENO: result: yes" >&5
3313 echo "${ECHO_T}yes" >&6; }
3314
3315 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3316 ac_clean_files=$ac_clean_files_save
3317 # Check that the compiler produces executables we can run.  If not, either
3318 # the compiler is broken, or we cross compile.
3319 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3320 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3321 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3322 echo "${ECHO_T}$cross_compiling" >&6; }
3323
3324 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3325 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3326 if { (ac_try="$ac_link"
3327 case "(($ac_try" in
3328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329   *) ac_try_echo=$ac_try;;
3330 esac
3331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3332   (eval "$ac_link") 2>&5
3333   ac_status=$?
3334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335   (exit $ac_status); }; then
3336   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3337 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3338 # work properly (i.e., refer to `conftest.exe'), while it won't with
3339 # `rm'.
3340 for ac_file in conftest.exe conftest conftest.*; do
3341   test -f "$ac_file" || continue
3342   case $ac_file in
3343     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3344     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3345           break;;
3346     * ) break;;
3347   esac
3348 done
3349 else
3350   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3351 See \`config.log' for more details." >&5
3352 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3353 See \`config.log' for more details." >&2;}
3354    { (exit 1); exit 1; }; }
3355 fi
3356
3357 rm -f conftest$ac_cv_exeext
3358 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3359 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3360
3361 rm -f conftest.$ac_ext
3362 EXEEXT=$ac_cv_exeext
3363 ac_exeext=$EXEEXT
3364 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3365 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3366 if test "${ac_cv_objext+set}" = set; then
3367   echo $ECHO_N "(cached) $ECHO_C" >&6
3368 else
3369   cat >conftest.$ac_ext <<_ACEOF
3370 /* confdefs.h.  */
3371 _ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h.  */
3375
3376 int
3377 main ()
3378 {
3379
3380   ;
3381   return 0;
3382 }
3383 _ACEOF
3384 rm -f conftest.o conftest.obj
3385 if { (ac_try="$ac_compile"
3386 case "(($ac_try" in
3387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388   *) ac_try_echo=$ac_try;;
3389 esac
3390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3391   (eval "$ac_compile") 2>&5
3392   ac_status=$?
3393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394   (exit $ac_status); }; then
3395   for ac_file in conftest.o conftest.obj conftest.*; do
3396   test -f "$ac_file" || continue;
3397   case $ac_file in
3398     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3399     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3400        break;;
3401   esac
3402 done
3403 else
3404   echo "$as_me: failed program was:" >&5
3405 sed 's/^/| /' conftest.$ac_ext >&5
3406
3407 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3408 See \`config.log' for more details." >&5
3409 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3410 See \`config.log' for more details." >&2;}
3411    { (exit 1); exit 1; }; }
3412 fi
3413
3414 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3415 fi
3416 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3417 echo "${ECHO_T}$ac_cv_objext" >&6; }
3418 OBJEXT=$ac_cv_objext
3419 ac_objext=$OBJEXT
3420 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3421 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3422 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3423   echo $ECHO_N "(cached) $ECHO_C" >&6
3424 else
3425   cat >conftest.$ac_ext <<_ACEOF
3426 /* confdefs.h.  */
3427 _ACEOF
3428 cat confdefs.h >>conftest.$ac_ext
3429 cat >>conftest.$ac_ext <<_ACEOF
3430 /* end confdefs.h.  */
3431
3432 int
3433 main ()
3434 {
3435 #ifndef __GNUC__
3436        choke me
3437 #endif
3438
3439   ;
3440   return 0;
3441 }
3442 _ACEOF
3443 rm -f conftest.$ac_objext
3444 if { (ac_try="$ac_compile"
3445 case "(($ac_try" in
3446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447   *) ac_try_echo=$ac_try;;
3448 esac
3449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450   (eval "$ac_compile") 2>conftest.er1
3451   ac_status=$?
3452   grep -v '^ *+' conftest.er1 >conftest.err
3453   rm -f conftest.er1
3454   cat conftest.err >&5
3455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456   (exit $ac_status); } && {
3457          test -z "$ac_c_werror_flag" ||
3458          test ! -s conftest.err
3459        } && test -s conftest.$ac_objext; then
3460   ac_compiler_gnu=yes
3461 else
3462   echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3464
3465         ac_compiler_gnu=no
3466 fi
3467
3468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3469 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3470
3471 fi
3472 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3473 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3474 GCC=`test $ac_compiler_gnu = yes && echo yes`
3475 ac_test_CFLAGS=${CFLAGS+set}
3476 ac_save_CFLAGS=$CFLAGS
3477 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3478 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3479 if test "${ac_cv_prog_cc_g+set}" = set; then
3480   echo $ECHO_N "(cached) $ECHO_C" >&6
3481 else
3482   ac_save_c_werror_flag=$ac_c_werror_flag
3483    ac_c_werror_flag=yes
3484    ac_cv_prog_cc_g=no
3485    CFLAGS="-g"
3486    cat >conftest.$ac_ext <<_ACEOF
3487 /* confdefs.h.  */
3488 _ACEOF
3489 cat confdefs.h >>conftest.$ac_ext
3490 cat >>conftest.$ac_ext <<_ACEOF
3491 /* end confdefs.h.  */
3492
3493 int
3494 main ()
3495 {
3496
3497   ;
3498   return 0;
3499 }
3500 _ACEOF
3501 rm -f conftest.$ac_objext
3502 if { (ac_try="$ac_compile"
3503 case "(($ac_try" in
3504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505   *) ac_try_echo=$ac_try;;
3506 esac
3507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3508   (eval "$ac_compile") 2>conftest.er1
3509   ac_status=$?
3510   grep -v '^ *+' conftest.er1 >conftest.err
3511   rm -f conftest.er1
3512   cat conftest.err >&5
3513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514   (exit $ac_status); } && {
3515          test -z "$ac_c_werror_flag" ||
3516          test ! -s conftest.err
3517        } && test -s conftest.$ac_objext; then
3518   ac_cv_prog_cc_g=yes
3519 else
3520   echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3522
3523         CFLAGS=""
3524       cat >conftest.$ac_ext <<_ACEOF
3525 /* confdefs.h.  */
3526 _ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h.  */
3530
3531 int
3532 main ()
3533 {
3534
3535   ;
3536   return 0;
3537 }
3538 _ACEOF
3539 rm -f conftest.$ac_objext
3540 if { (ac_try="$ac_compile"
3541 case "(($ac_try" in
3542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543   *) ac_try_echo=$ac_try;;
3544 esac
3545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3546   (eval "$ac_compile") 2>conftest.er1
3547   ac_status=$?
3548   grep -v '^ *+' conftest.er1 >conftest.err
3549   rm -f conftest.er1
3550   cat conftest.err >&5
3551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552   (exit $ac_status); } && {
3553          test -z "$ac_c_werror_flag" ||
3554          test ! -s conftest.err
3555        } && test -s conftest.$ac_objext; then
3556   :
3557 else
3558   echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.$ac_ext >&5
3560
3561         ac_c_werror_flag=$ac_save_c_werror_flag
3562          CFLAGS="-g"
3563          cat >conftest.$ac_ext <<_ACEOF
3564 /* confdefs.h.  */
3565 _ACEOF
3566 cat confdefs.h >>conftest.$ac_ext
3567 cat >>conftest.$ac_ext <<_ACEOF
3568 /* end confdefs.h.  */
3569
3570 int
3571 main ()
3572 {
3573
3574   ;
3575   return 0;
3576 }
3577 _ACEOF
3578 rm -f conftest.$ac_objext
3579 if { (ac_try="$ac_compile"
3580 case "(($ac_try" in
3581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582   *) ac_try_echo=$ac_try;;
3583 esac
3584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3585   (eval "$ac_compile") 2>conftest.er1
3586   ac_status=$?
3587   grep -v '^ *+' conftest.er1 >conftest.err
3588   rm -f conftest.er1
3589   cat conftest.err >&5
3590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591   (exit $ac_status); } && {
3592          test -z "$ac_c_werror_flag" ||
3593          test ! -s conftest.err
3594        } && test -s conftest.$ac_objext; then
3595   ac_cv_prog_cc_g=yes
3596 else
3597   echo "$as_me: failed program was:" >&5
3598 sed 's/^/| /' conftest.$ac_ext >&5
3599
3600
3601 fi
3602
3603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 fi
3605
3606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607 fi
3608
3609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3610    ac_c_werror_flag=$ac_save_c_werror_flag
3611 fi
3612 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3613 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3614 if test "$ac_test_CFLAGS" = set; then
3615   CFLAGS=$ac_save_CFLAGS
3616 elif test $ac_cv_prog_cc_g = yes; then
3617   if test "$GCC" = yes; then
3618     CFLAGS="-g -O2"
3619   else
3620     CFLAGS="-g"
3621   fi
3622 else
3623   if test "$GCC" = yes; then
3624     CFLAGS="-O2"
3625   else
3626     CFLAGS=
3627   fi
3628 fi
3629 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3630 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3631 if test "${ac_cv_prog_cc_c89+set}" = set; then
3632   echo $ECHO_N "(cached) $ECHO_C" >&6
3633 else
3634   ac_cv_prog_cc_c89=no
3635 ac_save_CC=$CC
3636 cat >conftest.$ac_ext <<_ACEOF
3637 /* confdefs.h.  */
3638 _ACEOF
3639 cat confdefs.h >>conftest.$ac_ext
3640 cat >>conftest.$ac_ext <<_ACEOF
3641 /* end confdefs.h.  */
3642 #include <stdarg.h>
3643 #include <stdio.h>
3644 #include <sys/types.h>
3645 #include <sys/stat.h>
3646 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3647 struct buf { int x; };
3648 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3649 static char *e (p, i)
3650      char **p;
3651      int i;
3652 {
3653   return p[i];
3654 }
3655 static char *f (char * (*g) (char **, int), char **p, ...)
3656 {
3657   char *s;
3658   va_list v;
3659   va_start (v,p);
3660   s = g (p, va_arg (v,int));
3661   va_end (v);
3662   return s;
3663 }
3664
3665 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3666    function prototypes and stuff, but not '\xHH' hex character constants.
3667    These don't provoke an error unfortunately, instead are silently treated
3668    as 'x'.  The following induces an error, until -std is added to get
3669    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3670    array size at least.  It's necessary to write '\x00'==0 to get something
3671    that's true only with -std.  */
3672 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3673
3674 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3675    inside strings and character constants.  */
3676 #define FOO(x) 'x'
3677 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3678
3679 int test (int i, double x);
3680 struct s1 {int (*f) (int a);};
3681 struct s2 {int (*f) (double a);};
3682 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3683 int argc;
3684 char **argv;
3685 int
3686 main ()
3687 {
3688 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3689   ;
3690   return 0;
3691 }
3692 _ACEOF
3693 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3694         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3695 do
3696   CC="$ac_save_CC $ac_arg"
3697   rm -f conftest.$ac_objext
3698 if { (ac_try="$ac_compile"
3699 case "(($ac_try" in
3700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701   *) ac_try_echo=$ac_try;;
3702 esac
3703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3704   (eval "$ac_compile") 2>conftest.er1
3705   ac_status=$?
3706   grep -v '^ *+' conftest.er1 >conftest.err
3707   rm -f conftest.er1
3708   cat conftest.err >&5
3709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710   (exit $ac_status); } && {
3711          test -z "$ac_c_werror_flag" ||
3712          test ! -s conftest.err
3713        } && test -s conftest.$ac_objext; then
3714   ac_cv_prog_cc_c89=$ac_arg
3715 else
3716   echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3718
3719
3720 fi
3721
3722 rm -f core conftest.err conftest.$ac_objext
3723   test "x$ac_cv_prog_cc_c89" != "xno" && break
3724 done
3725 rm -f conftest.$ac_ext
3726 CC=$ac_save_CC
3727
3728 fi
3729 # AC_CACHE_VAL
3730 case "x$ac_cv_prog_cc_c89" in
3731   x)
3732     { echo "$as_me:$LINENO: result: none needed" >&5
3733 echo "${ECHO_T}none needed" >&6; } ;;
3734   xno)
3735     { echo "$as_me:$LINENO: result: unsupported" >&5
3736 echo "${ECHO_T}unsupported" >&6; } ;;
3737   *)
3738     CC="$CC $ac_cv_prog_cc_c89"
3739     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3740 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3741 esac
3742
3743
3744 ac_ext=c
3745 ac_cpp='$CPP $CPPFLAGS'
3746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3749 DEPDIR="${am__leading_dot}deps"
3750
3751 ac_config_commands="$ac_config_commands depfiles"
3752
3753
3754 am_make=${MAKE-make}
3755 cat > confinc << 'END'
3756 am__doit:
3757         @echo done
3758 .PHONY: am__doit
3759 END
3760 # If we don't find an include directive, just comment out the code.
3761 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3762 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3763 am__include="#"
3764 am__quote=
3765 _am_result=none
3766 # First try GNU make style include.
3767 echo "include confinc" > confmf
3768 # We grep out `Entering directory' and `Leaving directory'
3769 # messages which can occur if `w' ends up in MAKEFLAGS.
3770 # In particular we don't look at `^make:' because GNU make might
3771 # be invoked under some other name (usually "gmake"), in which
3772 # case it prints its new name instead of `make'.
3773 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3774    am__include=include
3775    am__quote=
3776    _am_result=GNU
3777 fi
3778 # Now try BSD make style include.
3779 if test "$am__include" = "#"; then
3780    echo '.include "confinc"' > confmf
3781    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3782       am__include=.include
3783       am__quote="\""
3784       _am_result=BSD
3785    fi
3786 fi
3787
3788
3789 { echo "$as_me:$LINENO: result: $_am_result" >&5
3790 echo "${ECHO_T}$_am_result" >&6; }
3791 rm -f confinc confmf
3792
3793 # Check whether --enable-dependency-tracking was given.
3794 if test "${enable_dependency_tracking+set}" = set; then
3795   enableval=$enable_dependency_tracking;
3796 fi
3797
3798 if test "x$enable_dependency_tracking" != xno; then
3799   am_depcomp="$ac_aux_dir/depcomp"
3800   AMDEPBACKSLASH='\'
3801 fi
3802
3803
3804 if test "x$enable_dependency_tracking" != xno; then
3805   AMDEP_TRUE=
3806   AMDEP_FALSE='#'
3807 else
3808   AMDEP_TRUE='#'
3809   AMDEP_FALSE=
3810 fi
3811
3812
3813
3814
3815 depcc="$CC"   am_compiler_list=
3816
3817 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3818 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3819 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3820   echo $ECHO_N "(cached) $ECHO_C" >&6
3821 else
3822   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3823   # We make a subdir and do the tests there.  Otherwise we can end up
3824   # making bogus files that we don't know about and never remove.  For
3825   # instance it was reported that on HP-UX the gcc test will end up
3826   # making a dummy file named `D' -- because `-MD' means `put the output
3827   # in D'.
3828   mkdir conftest.dir
3829   # Copy depcomp to subdir because otherwise we won't find it if we're
3830   # using a relative directory.
3831   cp "$am_depcomp" conftest.dir
3832   cd conftest.dir
3833   # We will build objects and dependencies in a subdirectory because
3834   # it helps to detect inapplicable dependency modes.  For instance
3835   # both Tru64's cc and ICC support -MD to output dependencies as a
3836   # side effect of compilation, but ICC will put the dependencies in
3837   # the current directory while Tru64 will put them in the object
3838   # directory.
3839   mkdir sub
3840
3841   am_cv_CC_dependencies_compiler_type=none
3842   if test "$am_compiler_list" = ""; then
3843      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3844   fi
3845   for depmode in $am_compiler_list; do
3846     # Setup a source with many dependencies, because some compilers
3847     # like to wrap large dependency lists on column 80 (with \), and
3848     # we should not choose a depcomp mode which is confused by this.
3849     #
3850     # We need to recreate these files for each test, as the compiler may
3851     # overwrite some of them when testing with obscure command lines.
3852     # This happens at least with the AIX C compiler.
3853     : > sub/conftest.c
3854     for i in 1 2 3 4 5 6; do
3855       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3856       : > sub/conftst$i.h
3857     done
3858     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3859
3860     case $depmode in
3861     nosideeffect)
3862       # after this tag, mechanisms are not by side-effect, so they'll
3863       # only be used when explicitly requested
3864       if test "x$enable_dependency_tracking" = xyes; then
3865         continue
3866       else
3867         break
3868       fi
3869       ;;
3870     none) break ;;
3871     esac
3872     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3873     # mode.  It turns out that the SunPro C++ compiler does not properly
3874     # handle `-M -o', and we need to detect this.
3875     if depmode=$depmode \
3876        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3877        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3878        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3879          >/dev/null 2>conftest.err &&
3880        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3881        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3882        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3883       # icc doesn't choke on unknown options, it will just issue warnings
3884       # (even with -Werror).  So we grep stderr for any message
3885       # that says an option was ignored.
3886       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3887         am_cv_CC_dependencies_compiler_type=$depmode
3888         break
3889       fi
3890     fi
3891   done
3892
3893   cd ..
3894   rm -rf conftest.dir
3895 else
3896   am_cv_CC_dependencies_compiler_type=none
3897 fi
3898
3899 fi
3900 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3901 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3902 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3903
3904
3905
3906 if
3907   test "x$enable_dependency_tracking" != xno \
3908   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3909   am__fastdepCC_TRUE=
3910   am__fastdepCC_FALSE='#'
3911 else
3912   am__fastdepCC_TRUE='#'
3913   am__fastdepCC_FALSE=
3914 fi
3915
3916
3917
3918 ac_ext=c
3919 ac_cpp='$CPP $CPPFLAGS'
3920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3923 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3924 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3925 # On Suns, sometimes $CPP names a directory.
3926 if test -n "$CPP" && test -d "$CPP"; then
3927   CPP=
3928 fi
3929 if test -z "$CPP"; then
3930   if test "${ac_cv_prog_CPP+set}" = set; then
3931   echo $ECHO_N "(cached) $ECHO_C" >&6
3932 else
3933       # Double quotes because CPP needs to be expanded
3934     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3935     do
3936       ac_preproc_ok=false
3937 for ac_c_preproc_warn_flag in '' yes
3938 do
3939   # Use a header file that comes with gcc, so configuring glibc
3940   # with a fresh cross-compiler works.
3941   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3942   # <limits.h> exists even on freestanding compilers.
3943   # On the NeXT, cc -E runs the code through the compiler's parser,
3944   # not just through cpp. "Syntax error" is here to catch this case.
3945   cat >conftest.$ac_ext <<_ACEOF
3946 /* confdefs.h.  */
3947 _ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h.  */
3951 #ifdef __STDC__
3952 # include <limits.h>
3953 #else
3954 # include <assert.h>
3955 #endif
3956                      Syntax error
3957 _ACEOF
3958 if { (ac_try="$ac_cpp conftest.$ac_ext"
3959 case "(($ac_try" in
3960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961   *) ac_try_echo=$ac_try;;
3962 esac
3963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3965   ac_status=$?
3966   grep -v '^ *+' conftest.er1 >conftest.err
3967   rm -f conftest.er1
3968   cat conftest.err >&5
3969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970   (exit $ac_status); } >/dev/null && {
3971          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3972          test ! -s conftest.err
3973        }; then
3974   :
3975 else
3976   echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3978
3979   # Broken: fails on valid input.
3980 continue
3981 fi
3982
3983 rm -f conftest.err conftest.$ac_ext
3984
3985   # OK, works on sane cases.  Now check whether nonexistent headers
3986   # can be detected and how.
3987   cat >conftest.$ac_ext <<_ACEOF
3988 /* confdefs.h.  */
3989 _ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h.  */
3993 #include <ac_nonexistent.h>
3994 _ACEOF
3995 if { (ac_try="$ac_cpp conftest.$ac_ext"
3996 case "(($ac_try" in
3997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998   *) ac_try_echo=$ac_try;;
3999 esac
4000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4001   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4002   ac_status=$?
4003   grep -v '^ *+' conftest.er1 >conftest.err
4004   rm -f conftest.er1
4005   cat conftest.err >&5
4006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007   (exit $ac_status); } >/dev/null && {
4008          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4009          test ! -s conftest.err
4010        }; then
4011   # Broken: success on invalid input.
4012 continue
4013 else
4014   echo "$as_me: failed program was:" >&5
4015 sed 's/^/| /' conftest.$ac_ext >&5
4016
4017   # Passes both tests.
4018 ac_preproc_ok=:
4019 break
4020 fi
4021
4022 rm -f conftest.err conftest.$ac_ext
4023
4024 done
4025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4026 rm -f conftest.err conftest.$ac_ext
4027 if $ac_preproc_ok; then
4028   break
4029 fi
4030
4031     done
4032     ac_cv_prog_CPP=$CPP
4033
4034 fi
4035   CPP=$ac_cv_prog_CPP
4036 else
4037   ac_cv_prog_CPP=$CPP
4038 fi
4039 { echo "$as_me:$LINENO: result: $CPP" >&5
4040 echo "${ECHO_T}$CPP" >&6; }
4041 ac_preproc_ok=false
4042 for ac_c_preproc_warn_flag in '' yes
4043 do
4044   # Use a header file that comes with gcc, so configuring glibc
4045   # with a fresh cross-compiler works.
4046   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4047   # <limits.h> exists even on freestanding compilers.
4048   # On the NeXT, cc -E runs the code through the compiler's parser,
4049   # not just through cpp. "Syntax error" is here to catch this case.
4050   cat >conftest.$ac_ext <<_ACEOF
4051 /* confdefs.h.  */
4052 _ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h.  */
4056 #ifdef __STDC__
4057 # include <limits.h>
4058 #else
4059 # include <assert.h>
4060 #endif
4061                      Syntax error
4062 _ACEOF
4063 if { (ac_try="$ac_cpp conftest.$ac_ext"
4064 case "(($ac_try" in
4065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066   *) ac_try_echo=$ac_try;;
4067 esac
4068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4069   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4070   ac_status=$?
4071   grep -v '^ *+' conftest.er1 >conftest.err
4072   rm -f conftest.er1
4073   cat conftest.err >&5
4074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075   (exit $ac_status); } >/dev/null && {
4076          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4077          test ! -s conftest.err
4078        }; then
4079   :
4080 else
4081   echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4083
4084   # Broken: fails on valid input.
4085 continue
4086 fi
4087
4088 rm -f conftest.err conftest.$ac_ext
4089
4090   # OK, works on sane cases.  Now check whether nonexistent headers
4091   # can be detected and how.
4092   cat >conftest.$ac_ext <<_ACEOF
4093 /* confdefs.h.  */
4094 _ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h.  */
4098 #include <ac_nonexistent.h>
4099 _ACEOF
4100 if { (ac_try="$ac_cpp conftest.$ac_ext"
4101 case "(($ac_try" in
4102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103   *) ac_try_echo=$ac_try;;
4104 esac
4105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4107   ac_status=$?
4108   grep -v '^ *+' conftest.er1 >conftest.err
4109   rm -f conftest.er1
4110   cat conftest.err >&5
4111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112   (exit $ac_status); } >/dev/null && {
4113          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4114          test ! -s conftest.err
4115        }; then
4116   # Broken: success on invalid input.
4117 continue
4118 else
4119   echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4121
4122   # Passes both tests.
4123 ac_preproc_ok=:
4124 break
4125 fi
4126
4127 rm -f conftest.err conftest.$ac_ext
4128
4129 done
4130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4131 rm -f conftest.err conftest.$ac_ext
4132 if $ac_preproc_ok; then
4133   :
4134 else
4135   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4136 See \`config.log' for more details." >&5
4137 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4138 See \`config.log' for more details." >&2;}
4139    { (exit 1); exit 1; }; }
4140 fi
4141
4142 ac_ext=c
4143 ac_cpp='$CPP $CPPFLAGS'
4144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4147
4148
4149 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4150 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4151 if test "${ac_cv_path_GREP+set}" = set; then
4152   echo $ECHO_N "(cached) $ECHO_C" >&6
4153 else
4154   # Extract the first word of "grep ggrep" to use in msg output
4155 if test -z "$GREP"; then
4156 set dummy grep ggrep; ac_prog_name=$2
4157 if test "${ac_cv_path_GREP+set}" = set; then
4158   echo $ECHO_N "(cached) $ECHO_C" >&6
4159 else
4160   ac_path_GREP_found=false
4161 # Loop through the user's path and test for each of PROGNAME-LIST
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4164 do
4165   IFS=$as_save_IFS
4166   test -z "$as_dir" && as_dir=.
4167   for ac_prog in grep ggrep; do
4168   for ac_exec_ext in '' $ac_executable_extensions; do
4169     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4170     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4171     # Check for GNU ac_path_GREP and select it if it is found.
4172   # Check for GNU $ac_path_GREP
4173 case `"$ac_path_GREP" --version 2>&1` in
4174 *GNU*)
4175   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4176 *)
4177   ac_count=0
4178   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4179   while :
4180   do
4181     cat "conftest.in" "conftest.in" >"conftest.tmp"
4182     mv "conftest.tmp" "conftest.in"
4183     cp "conftest.in" "conftest.nl"
4184     echo 'GREP' >> "conftest.nl"
4185     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4186     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4187     ac_count=`expr $ac_count + 1`
4188     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4189       # Best one so far, save it but keep looking for a better one
4190       ac_cv_path_GREP="$ac_path_GREP"
4191       ac_path_GREP_max=$ac_count
4192     fi
4193     # 10*(2^10) chars as input seems more than enough
4194     test $ac_count -gt 10 && break
4195   done
4196   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4197 esac
4198
4199
4200     $ac_path_GREP_found && break 3
4201   done
4202 done
4203
4204 done
4205 IFS=$as_save_IFS
4206
4207
4208 fi
4209
4210 GREP="$ac_cv_path_GREP"
4211 if test -z "$GREP"; then
4212   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4213 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4214    { (exit 1); exit 1; }; }
4215 fi
4216
4217 else
4218   ac_cv_path_GREP=$GREP
4219 fi
4220
4221
4222 fi
4223 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4224 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4225  GREP="$ac_cv_path_GREP"
4226
4227
4228 { echo "$as_me:$LINENO: checking for egrep" >&5
4229 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4230 if test "${ac_cv_path_EGREP+set}" = set; then
4231   echo $ECHO_N "(cached) $ECHO_C" >&6
4232 else
4233   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4234    then ac_cv_path_EGREP="$GREP -E"
4235    else
4236      # Extract the first word of "egrep" to use in msg output
4237 if test -z "$EGREP"; then
4238 set dummy egrep; ac_prog_name=$2
4239 if test "${ac_cv_path_EGREP+set}" = set; then
4240   echo $ECHO_N "(cached) $ECHO_C" >&6
4241 else
4242   ac_path_EGREP_found=false
4243 # Loop through the user's path and test for each of PROGNAME-LIST
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4246 do
4247   IFS=$as_save_IFS
4248   test -z "$as_dir" && as_dir=.
4249   for ac_prog in egrep; do
4250   for ac_exec_ext in '' $ac_executable_extensions; do
4251     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4252     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4253     # Check for GNU ac_path_EGREP and select it if it is found.
4254   # Check for GNU $ac_path_EGREP
4255 case `"$ac_path_EGREP" --version 2>&1` in
4256 *GNU*)
4257   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4258 *)
4259   ac_count=0
4260   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4261   while :
4262   do
4263     cat "conftest.in" "conftest.in" >"conftest.tmp"
4264     mv "conftest.tmp" "conftest.in"
4265     cp "conftest.in" "conftest.nl"
4266     echo 'EGREP' >> "conftest.nl"
4267     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4268     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4269     ac_count=`expr $ac_count + 1`
4270     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4271       # Best one so far, save it but keep looking for a better one
4272       ac_cv_path_EGREP="$ac_path_EGREP"
4273       ac_path_EGREP_max=$ac_count
4274     fi
4275     # 10*(2^10) chars as input seems more than enough
4276     test $ac_count -gt 10 && break
4277   done
4278   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4279 esac
4280
4281
4282     $ac_path_EGREP_found && break 3
4283   done
4284 done
4285
4286 done
4287 IFS=$as_save_IFS
4288
4289
4290 fi
4291
4292 EGREP="$ac_cv_path_EGREP"
4293 if test -z "$EGREP"; then
4294   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4295 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4296    { (exit 1); exit 1; }; }
4297 fi
4298
4299 else
4300   ac_cv_path_EGREP=$EGREP
4301 fi
4302
4303
4304    fi
4305 fi
4306 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4307 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4308  EGREP="$ac_cv_path_EGREP"
4309
4310
4311 if test $ac_cv_c_compiler_gnu = yes; then
4312     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4313 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4314 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4315   echo $ECHO_N "(cached) $ECHO_C" >&6
4316 else
4317     ac_pattern="Autoconf.*'x'"
4318   cat >conftest.$ac_ext <<_ACEOF
4319 /* confdefs.h.  */
4320 _ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h.  */
4324 #include <sgtty.h>
4325 Autoconf TIOCGETP
4326 _ACEOF
4327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4328   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4329   ac_cv_prog_gcc_traditional=yes
4330 else
4331   ac_cv_prog_gcc_traditional=no
4332 fi
4333 rm -f conftest*
4334
4335
4336   if test $ac_cv_prog_gcc_traditional = no; then
4337     cat >conftest.$ac_ext <<_ACEOF
4338 /* confdefs.h.  */
4339 _ACEOF
4340 cat confdefs.h >>conftest.$ac_ext
4341 cat >>conftest.$ac_ext <<_ACEOF
4342 /* end confdefs.h.  */
4343 #include <termio.h>
4344 Autoconf TCGETA
4345 _ACEOF
4346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4347   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4348   ac_cv_prog_gcc_traditional=yes
4349 fi
4350 rm -f conftest*
4351
4352   fi
4353 fi
4354 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4355 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4356   if test $ac_cv_prog_gcc_traditional = yes; then
4357     CC="$CC -traditional"
4358   fi
4359 fi
4360
4361 # Find a good install program.  We prefer a C program (faster),
4362 # so one script is as good as another.  But avoid the broken or
4363 # incompatible versions:
4364 # SysV /etc/install, /usr/sbin/install
4365 # SunOS /usr/etc/install
4366 # IRIX /sbin/install
4367 # AIX /bin/install
4368 # AmigaOS /C/install, which installs bootblocks on floppy discs
4369 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4370 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4371 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4372 # OS/2's system install, which has a completely different semantic
4373 # ./install, which can be erroneously created by make from ./install.sh.
4374 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4375 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4376 if test -z "$INSTALL"; then
4377 if test "${ac_cv_path_install+set}" = set; then
4378   echo $ECHO_N "(cached) $ECHO_C" >&6
4379 else
4380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 for as_dir in $PATH
4382 do
4383   IFS=$as_save_IFS
4384   test -z "$as_dir" && as_dir=.
4385   # Account for people who put trailing slashes in PATH elements.
4386 case $as_dir/ in
4387   ./ | .// | /cC/* | \
4388   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4389   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4390   /usr/ucb/* ) ;;
4391   *)
4392     # OSF1 and SCO ODT 3.0 have their own names for install.
4393     # Don't use installbsd from OSF since it installs stuff as root
4394     # by default.
4395     for ac_prog in ginstall scoinst install; do
4396       for ac_exec_ext in '' $ac_executable_extensions; do
4397         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4398           if test $ac_prog = install &&
4399             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4400             # AIX install.  It has an incompatible calling convention.
4401             :
4402           elif test $ac_prog = install &&
4403             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4404             # program-specific install script used by HP pwplus--don't use.
4405             :
4406           else
4407             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4408             break 3
4409           fi
4410         fi
4411       done
4412     done
4413     ;;
4414 esac
4415 done
4416 IFS=$as_save_IFS
4417
4418
4419 fi
4420   if test "${ac_cv_path_install+set}" = set; then
4421     INSTALL=$ac_cv_path_install
4422   else
4423     # As a last resort, use the slow shell script.  Don't cache a
4424     # value for INSTALL within a source directory, because that will
4425     # break other packages using the cache if that directory is
4426     # removed, or if the value is a relative name.
4427     INSTALL=$ac_install_sh
4428   fi
4429 fi
4430 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4431 echo "${ECHO_T}$INSTALL" >&6; }
4432
4433 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4434 # It thinks the first close brace ends the variable substitution.
4435 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4436
4437 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4438
4439 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4440
4441 for ac_prog in gawk mawk nawk awk
4442 do
4443   # Extract the first word of "$ac_prog", so it can be a program name with args.
4444 set dummy $ac_prog; ac_word=$2
4445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4447 if test "${ac_cv_prog_AWK+set}" = set; then
4448   echo $ECHO_N "(cached) $ECHO_C" >&6
4449 else
4450   if test -n "$AWK"; then
4451   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4452 else
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 for as_dir in $PATH
4455 do
4456   IFS=$as_save_IFS
4457   test -z "$as_dir" && as_dir=.
4458   for ac_exec_ext in '' $ac_executable_extensions; do
4459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4460     ac_cv_prog_AWK="$ac_prog"
4461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4462     break 2
4463   fi
4464 done
4465 done
4466 IFS=$as_save_IFS
4467
4468 fi
4469 fi
4470 AWK=$ac_cv_prog_AWK
4471 if test -n "$AWK"; then
4472   { echo "$as_me:$LINENO: result: $AWK" >&5
4473 echo "${ECHO_T}$AWK" >&6; }
4474 else
4475   { echo "$as_me:$LINENO: result: no" >&5
4476 echo "${ECHO_T}no" >&6; }
4477 fi
4478
4479
4480   test -n "$AWK" && break
4481 done
4482
4483 if test -n "$ac_tool_prefix"; then
4484   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4485 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4488 if test "${ac_cv_prog_RANLIB+set}" = set; then
4489   echo $ECHO_N "(cached) $ECHO_C" >&6
4490 else
4491   if test -n "$RANLIB"; then
4492   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4493 else
4494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 for as_dir in $PATH
4496 do
4497   IFS=$as_save_IFS
4498   test -z "$as_dir" && as_dir=.
4499   for ac_exec_ext in '' $ac_executable_extensions; do
4500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4501     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4503     break 2
4504   fi
4505 done
4506 done
4507 IFS=$as_save_IFS
4508
4509 fi
4510 fi
4511 RANLIB=$ac_cv_prog_RANLIB
4512 if test -n "$RANLIB"; then
4513   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4514 echo "${ECHO_T}$RANLIB" >&6; }
4515 else
4516   { echo "$as_me:$LINENO: result: no" >&5
4517 echo "${ECHO_T}no" >&6; }
4518 fi
4519
4520
4521 fi
4522 if test -z "$ac_cv_prog_RANLIB"; then
4523   ac_ct_RANLIB=$RANLIB
4524   # Extract the first word of "ranlib", so it can be a program name with args.
4525 set dummy ranlib; ac_word=$2
4526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4528 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4529   echo $ECHO_N "(cached) $ECHO_C" >&6
4530 else
4531   if test -n "$ac_ct_RANLIB"; then
4532   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4533 else
4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535 for as_dir in $PATH
4536 do
4537   IFS=$as_save_IFS
4538   test -z "$as_dir" && as_dir=.
4539   for ac_exec_ext in '' $ac_executable_extensions; do
4540   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4541     ac_cv_prog_ac_ct_RANLIB="ranlib"
4542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4543     break 2
4544   fi
4545 done
4546 done
4547 IFS=$as_save_IFS
4548
4549 fi
4550 fi
4551 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4552 if test -n "$ac_ct_RANLIB"; then
4553   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4554 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4555 else
4556   { echo "$as_me:$LINENO: result: no" >&5
4557 echo "${ECHO_T}no" >&6; }
4558 fi
4559
4560   if test "x$ac_ct_RANLIB" = x; then
4561     RANLIB=":"
4562   else
4563     case $cross_compiling:$ac_tool_warned in
4564 yes:)
4565 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4566 whose name does not start with the host triplet.  If you think this
4567 configuration is useful to you, please write to autoconf@gnu.org." >&5
4568 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4569 whose name does not start with the host triplet.  If you think this
4570 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4571 ac_tool_warned=yes ;;
4572 esac
4573     RANLIB=$ac_ct_RANLIB
4574   fi
4575 else
4576   RANLIB="$ac_cv_prog_RANLIB"
4577 fi
4578
4579 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4580 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4581 LN_S=$as_ln_s
4582 if test "$LN_S" = "ln -s"; then
4583   { echo "$as_me:$LINENO: result: yes" >&5
4584 echo "${ECHO_T}yes" >&6; }
4585 else
4586   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4587 echo "${ECHO_T}no, using $LN_S" >&6; }
4588 fi
4589
4590 { echo "$as_me:$LINENO: checking whether -rdynamic option is recognized" >&5
4591 echo $ECHO_N "checking whether -rdynamic option is recognized... $ECHO_C" >&6; }
4592 ac_ccoption=`echo rdynamic | sed 'y%./+-%__p_%'`
4593 if { as_var=timidity_cv_ccoption_$ac_ccoption; eval "test \"\${$as_var+set}\" = set"; }; then
4594   echo $ECHO_N "(cached) $ECHO_C" >&6
4595 else
4596   cat > conftest.$ac_ext <<EOF
4597 int main() {return 0;}
4598 EOF
4599 if ${CC-cc} $LDFLAGS $CFLAGS -o conftest${ac_exeext} -rdynamic conftest.$ac_ext > conftest.out 2>&1; then
4600     if test -s conftest.out; then
4601         eval "timidity_cv_ccoption_$ac_ccoption=no"
4602     else
4603         eval "timidity_cv_ccoption_$ac_ccoption=yes"
4604     fi
4605 else
4606     eval "timidity_cv_ccoption_$ac_ccoption=no"
4607 fi
4608
4609 fi
4610
4611 if eval "test \"`echo '$timidity_cv_ccoption_'$ac_ccoption`\" = yes"; then
4612   { echo "$as_me:$LINENO: result: yes" >&5
4613 echo "${ECHO_T}yes" >&6; }
4614
4615 else
4616   { echo "$as_me:$LINENO: result: no" >&5
4617 echo "${ECHO_T}no" >&6; }
4618
4619 fi
4620
4621
4622 if test "x$NOCFLAGS" = "xyes"; then
4623   if test "x$GCC" = "xyes"; then
4624     CFLAGS="-O2"
4625   else
4626     CFLAGS=""
4627   fi
4628 fi
4629
4630 # Checks for target dependencies
4631
4632
4633 # Check whether --with-elf was given.
4634 if test "${with_elf+set}" = set; then
4635   withval=$with_elf;  ELFFORMAT=$withval
4636 else
4637    ELFFORMAT="yes"
4638 fi
4639
4640
4641 # AC_ARG_WITH(simd,
4642 #  [  --with-simd             create SIMD friendly binary (default is no) ],
4643 #  [ SIMD=$withval ], [ SIMD="no" ])
4644
4645 case "$target" in
4646   *-*-hpux*)
4647     EXTRADEFS="-DHPUX"
4648     test -n "$SHLD" || SHLD="ld -b"
4649     so="sl"
4650     ;;
4651   *-sgi-irix*)
4652         case ".$CC" in .cc*) EXTRACFLAGS="-signed";; esac
4653     test -n "$SHLD" || SHLD="cc -shared -all"
4654     so="so"
4655     ;;
4656   *-*-netbsd*)
4657     test -n "$SHLD" || SHLD="$CC -shared -nostartfiles"
4658     so="so"
4659     ;;
4660
4661   *-*-freebsd2*)
4662         test -n "$SHLD" || SHLD="ld -Bshareable"
4663     so="so"
4664     ;;
4665   *-*-freebsd*)
4666     if test "$ELFFORMAT" = yes; then
4667         test -n "$SHLD" || SHLD="ld -Bshareable"
4668     else
4669         SHCFLAGS=-aou
4670         SHLDFLAGS="-L/usr/X11R6/lib/aout $SHLDFLAGS"
4671         test -n "$SHLD" || SHLD="env OBJFORMAT=aout ld -shared"
4672     fi
4673         so="so"
4674     ;;
4675
4676 #  *-*-freebsd*)
4677 #    EXTRALIBS="$EXTRALIBS -lxpg4"
4678 #    test -n "$SHLD" || SHLD="ld -Bshareable"
4679 #    so="so"
4680 #  ;;
4681
4682   *-*-cygwin*|*-*-mingw*)
4683     EXTRADEFS="-D__W32__"
4684     # ??
4685     case "x${CC} " in
4686       "xbcc32 "*|xbcc32)
4687 #        test -n "$SHLD" || SHLD="tlink32 -Tpd"
4688         test -n "$SHLD" || SHLD="BCC32 -WD"
4689         BORLANDC=yes
4690         BORLANDC_LDFLAGS="kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib wsock32.lib user32.lib shell32.lib cw32mt.lib"
4691         BORLANDC_START='C0X32.OBJ'
4692         CFLAGS="$CFLAGS  -tWM -VM"
4693         EXTRADEFS="$EXTRADEFS -D_WINDOWS -DWIN32"
4694         ;;
4695       "xcc "*|xcc)
4696         test -n "$SHLD" || SHLD="polink -DLL"
4697         POCC=yes
4698          case " $CFLAGS " in
4699            *" -MT "*)  NODEF="-nodefaultlib:pocrt.lib -nodefaultlib:crt.lib -defaultlib:crtmt.lib"  ;;
4700            *" -MD "*)  NODEF="-nodefaultlib:crtmt.lib -nodefaultlib:crt.lib -defaultlib:pocrt.lib"  ;;
4701            *) CFLAGS="$CFLAGS -MT"; NODEF="-nodefaultlib:pocrt.lib -nodefaultlib:crtmt.lib -defaultlib:crt.lib" ;;
4702          esac
4703         POCC_LDFLAGS="$NODEF winmm.lib wsock32.lib user32.lib kernel32.lib shell32.lib gdi32.lib comctl32.lib comdlg32.lib ole32.lib advapi32.lib oldnames.lib"
4704         CFLAGS="$CFLAGS -Ze -D__POCC__OLDNAMES"
4705         EXTRADEFS="$EXTRADEFS -D_WINDOWS -DWIN32"
4706         ;;
4707       "xdmc "*|xdmc)
4708         test -n "$SHLD" || SHLD="dmc -WD"
4709         DMC=yes
4710         DMC_LDFLAGS="winmm.lib wsock32.lib user32.lib kernel32.lib shell32.lib gdi32.lib comctl32.lib comdlg32.lib ole32.lib advapi32.lib"
4711         CFLAGS="$CFLAGS  -mn -j0"
4712         DLLFLAG=" "
4713         EXTRADEFS="$EXTRADEFS -D_WINDOWS -DWIN32"
4714         ;;
4715       "xwcc386_w.sh "*|xwcc386)
4716          WATCOM_C=yes
4717          CFLAGS="$CFLAGS -br -bm -5s -zk0 -zp=16 -w=4 -D_WINDOWS -DWIN32 -DINCLUDE_WINDOWS_H"
4718          DLLFLAG=" "
4719          WATCOM_LDFLAGS=
4720          EXTRALIBS="$EXTRALIBS kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib user32.lib shell32.lib"
4721          ;;
4722       "xcl "*|xcl)
4723          test -n "$SHLD" || SHLD="link -dll"
4724          VCPP=yes
4725          case " $CFLAGS " in
4726            *" -MT "*)  NODEF="-nodefaultlib:msvcrt.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libcmtd.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib"  ;;
4727            *" -MD "*)  NODEF="-nodefaultlib:libcmt.lib -nodefaultlib:libcmtd.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib"  ;;
4728            *" -MTd "*) NODEF="-nodefaultlib:msvcrt.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libcmt.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib"  ;;
4729            *" -MDd "*) NODEF="-nodefaultlib:libcmt.lib -nodefaultlib:libcmtd.lib -nodefaultlib:msvcrt.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib"  ;;
4730            *) CFLAGS="$CFLAGS -MT"; NODEF="-nodefaultlib:msvcrt.lib -nodefaultlib:msvcrtd.lib -nodefaultlib:libcmtd.lib -nodefaultlib:libc.lib -nodefaultlib:libcd.lib"  ;;
4731          esac
4732          VCPP_LDFLAGS="-nologo -incremental:no  $NODEF kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib user32.lib shell32.lib"
4733          CFLAGS="$CFLAGS -nologo -Zp16 -W3 -GX  -Ob2"
4734          EXTRADEFS="$EXTRADEFS -DNDEBUG -D_WINDOWS -DWIN32 -DMBCS -D_MT -YX  -FD -c"
4735          ;;
4736       "xgcc"*) test -n "$SHLD" || SHLD="gcc -mdll"; MINGWGCC=yes ;;
4737       *) test -n "$SHLD" || SHLD="unknown" ;;
4738     esac
4739     so="dll"
4740     MSYS=yes
4741     lib_user32_test=-luser32
4742     ;;
4743   *-dec-*)
4744     EXTRADEFS="-DDEC"
4745     test -n "$SHLD" || SHLD="ld -Bdynamic -G"
4746     so="so"
4747     ;;
4748   *-*-solaris*)
4749     EXTRADEFS="-DSOLARIS"
4750     test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
4751     so="so"
4752     ;;
4753   *-*-nextstep*)
4754     test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
4755     so="so"
4756     ;;
4757   *-*-darwin*)
4758     if test "x$SIMD" = "xyes"; then
4759
4760 cat >>confdefs.h <<\_ACEOF
4761 #define USE_ALTIVEC 1
4762 _ACEOF
4763
4764        # EXTRACFLAGS="$EXTRACFLAGS -faltivec -mabi=altivec -maltivec" # for GCC3.
4765        EXTRACFLAGS="$EXTRACFLAGS -faltivec"
4766     else
4767
4768 cat >>confdefs.h <<\_ACEOF
4769 #define USE_ALTIVEC 0
4770 _ACEOF
4771
4772     fi
4773     CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
4774     LDOPTS="-dynamic -undefined suppress -flat_namespace $LDOPTS"
4775     test -n "$SHLD" || SHLD="$CC -dynamic -bundle -undefined suppress -flat_namespace $LDFLAGS"
4776     so="bundle"
4777     ;;
4778   *)
4779     test -n "$SHLD" || \
4780       if test "x$GCC" = xyes; then
4781         SHLD="$CC -shared"
4782       else
4783         SHLD="ld -Bdynamic -G"
4784       fi
4785     so="so"
4786     ;;
4787 esac
4788
4789
4790 # Checks for libraries.
4791
4792 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
4793 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
4794 if test "${ac_cv_lib_m_sqrt+set}" = set; then
4795   echo $ECHO_N "(cached) $ECHO_C" >&6
4796 else
4797   ac_check_lib_save_LIBS=$LIBS
4798 LIBS="-lm  $LIBS"
4799 cat >conftest.$ac_ext <<_ACEOF
4800 /* confdefs.h.  */
4801 _ACEOF
4802 cat confdefs.h >>conftest.$ac_ext
4803 cat >>conftest.$ac_ext <<_ACEOF
4804 /* end confdefs.h.  */
4805
4806 /* Override any GCC internal prototype to avoid an error.
4807    Use char because int might match the return type of a GCC
4808    builtin and then its argument prototype would still apply.  */
4809 #ifdef __cplusplus
4810 extern "C"
4811 #endif
4812 char sqrt ();
4813 int
4814 main ()
4815 {
4816 return sqrt ();
4817   ;
4818   return 0;
4819 }
4820 _ACEOF
4821 rm -f conftest.$ac_objext conftest$ac_exeext
4822 if { (ac_try="$ac_link"
4823 case "(($ac_try" in
4824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4825   *) ac_try_echo=$ac_try;;
4826 esac
4827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4828   (eval "$ac_link") 2>conftest.er1
4829   ac_status=$?
4830   grep -v '^ *+' conftest.er1 >conftest.err
4831   rm -f conftest.er1
4832   cat conftest.err >&5
4833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834   (exit $ac_status); } && {
4835          test -z "$ac_c_werror_flag" ||
4836          test ! -s conftest.err
4837        } && test -s conftest$ac_exeext &&
4838        $as_test_x conftest$ac_exeext; then
4839   ac_cv_lib_m_sqrt=yes
4840 else
4841   echo "$as_me: failed program was:" >&5
4842 sed 's/^/| /' conftest.$ac_ext >&5
4843
4844         ac_cv_lib_m_sqrt=no
4845 fi
4846
4847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4848       conftest$ac_exeext conftest.$ac_ext
4849 LIBS=$ac_check_lib_save_LIBS
4850 fi
4851 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4852 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
4853 if test $ac_cv_lib_m_sqrt = yes; then
4854   cat >>confdefs.h <<_ACEOF
4855 #define HAVE_LIBM 1
4856 _ACEOF
4857
4858   LIBS="-lm $LIBS"
4859
4860 fi
4861
4862
4863 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4864 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
4865 if test "${ac_cv_lib_socket_socket+set}" = set; then
4866   echo $ECHO_N "(cached) $ECHO_C" >&6
4867 else
4868   ac_check_lib_save_LIBS=$LIBS
4869 LIBS="-lsocket  $LIBS"
4870 cat >conftest.$ac_ext <<_ACEOF
4871 /* confdefs.h.  */
4872 _ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h.  */
4876
4877 /* Override any GCC internal prototype to avoid an error.
4878    Use char because int might match the return type of a GCC
4879    builtin and then its argument prototype would still apply.  */
4880 #ifdef __cplusplus
4881 extern "C"
4882 #endif
4883 char socket ();
4884 int
4885 main ()
4886 {
4887 return socket ();
4888   ;
4889   return 0;
4890 }
4891 _ACEOF
4892 rm -f conftest.$ac_objext conftest$ac_exeext
4893 if { (ac_try="$ac_link"
4894 case "(($ac_try" in
4895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4896   *) ac_try_echo=$ac_try;;
4897 esac
4898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4899   (eval "$ac_link") 2>conftest.er1
4900   ac_status=$?
4901   grep -v '^ *+' conftest.er1 >conftest.err
4902   rm -f conftest.er1
4903   cat conftest.err >&5
4904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905   (exit $ac_status); } && {
4906          test -z "$ac_c_werror_flag" ||
4907          test ! -s conftest.err
4908        } && test -s conftest$ac_exeext &&
4909        $as_test_x conftest$ac_exeext; then
4910   ac_cv_lib_socket_socket=yes
4911 else
4912   echo "$as_me: failed program was:" >&5
4913 sed 's/^/| /' conftest.$ac_ext >&5
4914
4915         ac_cv_lib_socket_socket=no
4916 fi
4917
4918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4919       conftest$ac_exeext conftest.$ac_ext
4920 LIBS=$ac_check_lib_save_LIBS
4921 fi
4922 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4923 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
4924 if test $ac_cv_lib_socket_socket = yes; then
4925   cat >>confdefs.h <<_ACEOF
4926 #define HAVE_LIBSOCKET 1
4927 _ACEOF
4928
4929   LIBS="-lsocket $LIBS"
4930
4931 fi
4932
4933 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4934 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
4935 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4936   echo $ECHO_N "(cached) $ECHO_C" >&6
4937 else
4938   ac_check_lib_save_LIBS=$LIBS
4939 LIBS="-ldl  $LIBS"
4940 cat >conftest.$ac_ext <<_ACEOF
4941 /* confdefs.h.  */
4942 _ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h.  */
4946
4947 /* Override any GCC internal prototype to avoid an error.
4948    Use char because int might match the return type of a GCC
4949    builtin and then its argument prototype would still apply.  */
4950 #ifdef __cplusplus
4951 extern "C"
4952 #endif
4953 char dlopen ();
4954 int
4955 main ()
4956 {
4957 return dlopen ();
4958   ;
4959   return 0;
4960 }
4961 _ACEOF
4962 rm -f conftest.$ac_objext conftest$ac_exeext
4963 if { (ac_try="$ac_link"
4964 case "(($ac_try" in
4965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4966   *) ac_try_echo=$ac_try;;
4967 esac
4968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4969   (eval "$ac_link") 2>conftest.er1
4970   ac_status=$?
4971   grep -v '^ *+' conftest.er1 >conftest.err
4972   rm -f conftest.er1
4973   cat conftest.err >&5
4974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975   (exit $ac_status); } && {
4976          test -z "$ac_c_werror_flag" ||
4977          test ! -s conftest.err
4978        } && test -s conftest$ac_exeext &&
4979        $as_test_x conftest$ac_exeext; then
4980   ac_cv_lib_dl_dlopen=yes
4981 else
4982   echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4984
4985         ac_cv_lib_dl_dlopen=no
4986 fi
4987
4988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4989       conftest$ac_exeext conftest.$ac_ext
4990 LIBS=$ac_check_lib_save_LIBS
4991 fi
4992 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4993 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
4994 if test $ac_cv_lib_dl_dlopen = yes; then
4995   lib_dl_opt=-ldl
4996 fi
4997
4998 { echo "$as_me:$LINENO: checking for NSLinkModule in -lobjc" >&5
4999 echo $ECHO_N "checking for NSLinkModule in -lobjc... $ECHO_C" >&6; }
5000 if test "${ac_cv_lib_objc_NSLinkModule+set}" = set; then
5001   echo $ECHO_N "(cached) $ECHO_C" >&6
5002 else
5003   ac_check_lib_save_LIBS=$LIBS
5004 LIBS="-lobjc  $LIBS"
5005 cat >conftest.$ac_ext <<_ACEOF
5006 /* confdefs.h.  */
5007 _ACEOF
5008 cat confdefs.h >>conftest.$ac_ext
5009 cat >>conftest.$ac_ext <<_ACEOF
5010 /* end confdefs.h.  */
5011
5012 /* Override any GCC internal prototype to avoid an error.
5013    Use char because int might match the return type of a GCC
5014    builtin and then its argument prototype would still apply.  */
5015 #ifdef __cplusplus
5016 extern "C"
5017 #endif
5018 char NSLinkModule ();
5019 int
5020 main ()
5021 {
5022 return NSLinkModule ();
5023   ;
5024   return 0;
5025 }
5026 _ACEOF
5027 rm -f conftest.$ac_objext conftest$ac_exeext
5028 if { (ac_try="$ac_link"
5029 case "(($ac_try" in
5030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5031   *) ac_try_echo=$ac_try;;
5032 esac
5033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5034   (eval "$ac_link") 2>conftest.er1
5035   ac_status=$?
5036   grep -v '^ *+' conftest.er1 >conftest.err
5037   rm -f conftest.er1
5038   cat conftest.err >&5
5039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040   (exit $ac_status); } && {
5041          test -z "$ac_c_werror_flag" ||
5042          test ! -s conftest.err
5043        } && test -s conftest$ac_exeext &&
5044        $as_test_x conftest$ac_exeext; then
5045   ac_cv_lib_objc_NSLinkModule=yes
5046 else
5047   echo "$as_me: failed program was:" >&5
5048 sed 's/^/| /' conftest.$ac_ext >&5
5049
5050         ac_cv_lib_objc_NSLinkModule=no
5051 fi
5052
5053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5054       conftest$ac_exeext conftest.$ac_ext
5055 LIBS=$ac_check_lib_save_LIBS
5056 fi
5057 { echo "$as_me:$LINENO: result: $ac_cv_lib_objc_NSLinkModule" >&5
5058 echo "${ECHO_T}$ac_cv_lib_objc_NSLinkModule" >&6; }
5059 if test $ac_cv_lib_objc_NSLinkModule = yes; then
5060   lib_dl_opt=-lobjc
5061 fi
5062  # Mac OS X need this.
5063 if test "x$VCPP" != "xyes" && test "x$BORLANDC" != "xyes" && test "x$WATCOM_C" != "xyes" && test "x$POCC" != "xyes"; then
5064
5065 { echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
5066 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6; }
5067 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
5068   echo $ECHO_N "(cached) $ECHO_C" >&6
5069 else
5070   ac_check_lib_save_LIBS=$LIBS
5071 LIBS="-lxpg4  $LIBS"
5072 cat >conftest.$ac_ext <<_ACEOF
5073 /* confdefs.h.  */
5074 _ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h.  */
5078
5079 /* Override any GCC internal prototype to avoid an error.
5080    Use char because int might match the return type of a GCC
5081    builtin and then its argument prototype would still apply.  */
5082 #ifdef __cplusplus
5083 extern "C"
5084 #endif
5085 char setlocale ();
5086 int
5087 main ()
5088 {
5089 return setlocale ();
5090   ;
5091   return 0;
5092 }
5093 _ACEOF
5094 rm -f conftest.$ac_objext conftest$ac_exeext
5095 if { (ac_try="$ac_link"
5096 case "(($ac_try" in
5097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5098   *) ac_try_echo=$ac_try;;
5099 esac
5100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5101   (eval "$ac_link") 2>conftest.er1
5102   ac_status=$?
5103   grep -v '^ *+' conftest.er1 >conftest.err
5104   rm -f conftest.er1
5105   cat conftest.err >&5
5106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107   (exit $ac_status); } && {
5108          test -z "$ac_c_werror_flag" ||
5109          test ! -s conftest.err
5110        } && test -s conftest$ac_exeext &&
5111        $as_test_x conftest$ac_exeext; then
5112   ac_cv_lib_xpg4_setlocale=yes
5113 else
5114   echo "$as_me: failed program was:" >&5
5115 sed 's/^/| /' conftest.$ac_ext >&5
5116
5117         ac_cv_lib_xpg4_setlocale=no
5118 fi
5119
5120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5121       conftest$ac_exeext conftest.$ac_ext
5122 LIBS=$ac_check_lib_save_LIBS
5123 fi
5124 { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
5125 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6; }
5126 if test $ac_cv_lib_xpg4_setlocale = yes; then
5127   cat >>confdefs.h <<_ACEOF
5128 #define HAVE_LIBXPG4 1
5129 _ACEOF
5130
5131   LIBS="-lxpg4 $LIBS"
5132
5133 fi
5134  # Mac OS X (and maybe NetBSD) need this.
5135 fi
5136
5137 for ac_func in gethostbyname
5138 do
5139 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5140 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5142 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5143   echo $ECHO_N "(cached) $ECHO_C" >&6
5144 else
5145   cat >conftest.$ac_ext <<_ACEOF
5146 /* confdefs.h.  */
5147 _ACEOF
5148 cat confdefs.h >>conftest.$ac_ext
5149 cat >>conftest.$ac_ext <<_ACEOF
5150 /* end confdefs.h.  */
5151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5152    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5153 #define $ac_func innocuous_$ac_func
5154
5155 /* System header to define __stub macros and hopefully few prototypes,
5156     which can conflict with char $ac_func (); below.
5157     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5158     <limits.h> exists even on freestanding compilers.  */
5159
5160 #ifdef __STDC__
5161 # include <limits.h>
5162 #else
5163 # include <assert.h>
5164 #endif
5165
5166 #undef $ac_func
5167
5168 /* Override any GCC internal prototype to avoid an error.
5169    Use char because int might match the return type of a GCC
5170    builtin and then its argument prototype would still apply.  */
5171 #ifdef __cplusplus
5172 extern "C"
5173 #endif
5174 char $ac_func ();
5175 /* The GNU C library defines this for functions which it implements
5176     to always fail with ENOSYS.  Some functions are actually named
5177     something starting with __ and the normal name is an alias.  */
5178 #if defined __stub_$ac_func || defined __stub___$ac_func
5179 choke me
5180 #endif
5181
5182 int
5183 main ()
5184 {
5185 return $ac_func ();
5186   ;
5187   return 0;
5188 }
5189 _ACEOF
5190 rm -f conftest.$ac_objext conftest$ac_exeext
5191 if { (ac_try="$ac_link"
5192 case "(($ac_try" in
5193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5194   *) ac_try_echo=$ac_try;;
5195 esac
5196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5197   (eval "$ac_link") 2>conftest.er1
5198   ac_status=$?
5199   grep -v '^ *+' conftest.er1 >conftest.err
5200   rm -f conftest.er1
5201   cat conftest.err >&5
5202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203   (exit $ac_status); } && {
5204          test -z "$ac_c_werror_flag" ||
5205          test ! -s conftest.err
5206        } && test -s conftest$ac_exeext &&
5207        $as_test_x conftest$ac_exeext; then
5208   eval "$as_ac_var=yes"
5209 else
5210   echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.$ac_ext >&5
5212
5213         eval "$as_ac_var=no"
5214 fi
5215
5216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5217       conftest$ac_exeext conftest.$ac_ext
5218 fi
5219 ac_res=`eval echo '${'$as_ac_var'}'`
5220                { echo "$as_me:$LINENO: result: $ac_res" >&5
5221 echo "${ECHO_T}$ac_res" >&6; }
5222 if test `eval echo '${'$as_ac_var'}'` = yes; then
5223   cat >>confdefs.h <<_ACEOF
5224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5225 _ACEOF
5226
5227 else
5228
5229 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5230 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5231 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5232   echo $ECHO_N "(cached) $ECHO_C" >&6
5233 else
5234   ac_check_lib_save_LIBS=$LIBS
5235 LIBS="-lnsl  $LIBS"
5236 cat >conftest.$ac_ext <<_ACEOF
5237 /* confdefs.h.  */
5238 _ACEOF
5239 cat confdefs.h >>conftest.$ac_ext
5240 cat >>conftest.$ac_ext <<_ACEOF
5241 /* end confdefs.h.  */
5242
5243 /* Override any GCC internal prototype to avoid an error.
5244    Use char because int might match the return type of a GCC
5245    builtin and then its argument prototype would still apply.  */
5246 #ifdef __cplusplus
5247 extern "C"
5248 #endif
5249 char gethostbyname ();
5250 int
5251 main ()
5252 {
5253 return gethostbyname ();
5254   ;
5255   return 0;
5256 }
5257 _ACEOF
5258 rm -f conftest.$ac_objext conftest$ac_exeext
5259 if { (ac_try="$ac_link"
5260 case "(($ac_try" in
5261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262   *) ac_try_echo=$ac_try;;
5263 esac
5264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5265   (eval "$ac_link") 2>conftest.er1
5266   ac_status=$?
5267   grep -v '^ *+' conftest.er1 >conftest.err
5268   rm -f conftest.er1
5269   cat conftest.err >&5
5270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271   (exit $ac_status); } && {
5272          test -z "$ac_c_werror_flag" ||
5273          test ! -s conftest.err
5274        } && test -s conftest$ac_exeext &&
5275        $as_test_x conftest$ac_exeext; then
5276   ac_cv_lib_nsl_gethostbyname=yes
5277 else
5278   echo "$as_me: failed program was:" >&5
5279 sed 's/^/| /' conftest.$ac_ext >&5
5280
5281         ac_cv_lib_nsl_gethostbyname=no
5282 fi
5283
5284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5285       conftest$ac_exeext conftest.$ac_ext
5286 LIBS=$ac_check_lib_save_LIBS
5287 fi
5288 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5289 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
5290 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5291   cat >>confdefs.h <<_ACEOF
5292 #define HAVE_LIBNSL 1
5293 _ACEOF
5294
5295   LIBS="-lnsl $LIBS"
5296
5297 fi
5298
5299 fi
5300 done
5301
5302 { echo "$as_me:$LINENO: checking for X" >&5
5303 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
5304
5305
5306 # Check whether --with-x was given.
5307 if test "${with_x+set}" = set; then
5308   withval=$with_x;
5309 fi
5310
5311 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5312 if test "x$with_x" = xno; then
5313   # The user explicitly disabled X.
5314   have_x=disabled
5315 else
5316   case $x_includes,$x_libraries in #(
5317     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
5318 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
5319    { (exit 1); exit 1; }; };; #(
5320     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
5321   echo $ECHO_N "(cached) $ECHO_C" >&6
5322 else
5323   # One or both of the vars are not set, and there is no cached value.
5324 ac_x_includes=no ac_x_libraries=no
5325 rm -f -r conftest.dir
5326 if mkdir conftest.dir; then
5327   cd conftest.dir
5328   cat >Imakefile <<'_ACEOF'
5329 incroot:
5330         @echo incroot='${INCROOT}'
5331 usrlibdir:
5332         @echo usrlibdir='${USRLIBDIR}'
5333 libdir:
5334         @echo libdir='${LIBDIR}'
5335 _ACEOF
5336   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5337     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5338     for ac_var in incroot usrlibdir libdir; do
5339       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5340     done
5341     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5342     for ac_extension in a so sl; do
5343       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5344          test -f "$ac_im_libdir/libX11.$ac_extension"; then
5345         ac_im_usrlibdir=$ac_im_libdir; break
5346       fi
5347     done
5348     # Screen out bogus values from the imake configuration.  They are
5349     # bogus both because they are the default anyway, and because
5350     # using them would break gcc on systems where it needs fixed includes.
5351     case $ac_im_incroot in
5352         /usr/include) ac_x_includes= ;;
5353         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5354     esac
5355     case $ac_im_usrlibdir in
5356         /usr/lib | /lib) ;;
5357         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5358     esac
5359   fi
5360   cd ..
5361   rm -f -r conftest.dir
5362 fi
5363
5364 # Standard set of common directories for X headers.
5365 # Check X11 before X11Rn because it is often a symlink to the current release.
5366 ac_x_header_dirs='
5367 /usr/X11/include
5368 /usr/X11R6/include
5369 /usr/X11R5/include
5370 /usr/X11R4/include
5371
5372 /usr/include/X11
5373 /usr/include/X11R6
5374 /usr/include/X11R5
5375 /usr/include/X11R4
5376
5377 /usr/local/X11/include
5378 /usr/local/X11R6/include
5379 /usr/local/X11R5/include
5380 /usr/local/X11R4/include
5381
5382 /usr/local/include/X11
5383 /usr/local/include/X11R6
5384 /usr/local/include/X11R5
5385 /usr/local/include/X11R4
5386
5387 /usr/X386/include
5388 /usr/x386/include
5389 /usr/XFree86/include/X11
5390
5391 /usr/include
5392 /usr/local/include
5393 /usr/unsupported/include
5394 /usr/athena/include
5395 /usr/local/x11r5/include
5396 /usr/lpp/Xamples/include
5397
5398 /usr/openwin/include
5399 /usr/openwin/share/include'
5400
5401 if test "$ac_x_includes" = no; then
5402   # Guess where to find include files, by looking for Xlib.h.
5403   # First, try using that file with no special directory specified.
5404   cat >conftest.$ac_ext <<_ACEOF
5405 /* confdefs.h.  */
5406 _ACEOF
5407 cat confdefs.h >>conftest.$ac_ext
5408 cat >>conftest.$ac_ext <<_ACEOF
5409 /* end confdefs.h.  */
5410 #include <X11/Xlib.h>
5411 _ACEOF
5412 if { (ac_try="$ac_cpp conftest.$ac_ext"
5413 case "(($ac_try" in
5414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5415   *) ac_try_echo=$ac_try;;
5416 esac
5417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5418   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5419   ac_status=$?
5420   grep -v '^ *+' conftest.er1 >conftest.err
5421   rm -f conftest.er1
5422   cat conftest.err >&5
5423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424   (exit $ac_status); } >/dev/null && {
5425          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5426          test ! -s conftest.err
5427        }; then
5428   # We can compile using X headers with no special include directory.
5429 ac_x_includes=
5430 else
5431   echo "$as_me: failed program was:" >&5
5432 sed 's/^/| /' conftest.$ac_ext >&5
5433
5434   for ac_dir in $ac_x_header_dirs; do
5435   if test -r "$ac_dir/X11/Xlib.h"; then
5436     ac_x_includes=$ac_dir
5437     break
5438   fi
5439 done
5440 fi
5441
5442 rm -f conftest.err conftest.$ac_ext
5443 fi # $ac_x_includes = no
5444
5445 if test "$ac_x_libraries" = no; then
5446   # Check for the libraries.
5447   # See if we find them without any special options.
5448   # Don't add to $LIBS permanently.
5449   ac_save_LIBS=$LIBS
5450   LIBS="-lX11 $LIBS"
5451   cat >conftest.$ac_ext <<_ACEOF
5452 /* confdefs.h.  */
5453 _ACEOF
5454 cat confdefs.h >>conftest.$ac_ext
5455 cat >>conftest.$ac_ext <<_ACEOF
5456 /* end confdefs.h.  */
5457 #include <X11/Xlib.h>
5458 int
5459 main ()
5460 {
5461 XrmInitialize ()
5462   ;
5463   return 0;
5464 }
5465 _ACEOF
5466 rm -f conftest.$ac_objext conftest$ac_exeext
5467 if { (ac_try="$ac_link"
5468 case "(($ac_try" in
5469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5470   *) ac_try_echo=$ac_try;;
5471 esac
5472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5473   (eval "$ac_link") 2>conftest.er1
5474   ac_status=$?
5475   grep -v '^ *+' conftest.er1 >conftest.err
5476   rm -f conftest.er1
5477   cat conftest.err >&5
5478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479   (exit $ac_status); } && {
5480          test -z "$ac_c_werror_flag" ||
5481          test ! -s conftest.err
5482        } && test -s conftest$ac_exeext &&
5483        $as_test_x conftest$ac_exeext; then
5484   LIBS=$ac_save_LIBS
5485 # We can link X programs with no special library path.
5486 ac_x_libraries=
5487 else
5488   echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.$ac_ext >&5
5490
5491         LIBS=$ac_save_LIBS
5492 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5493 do
5494   # Don't even attempt the hair of trying to link an X program!
5495   for ac_extension in a so sl; do
5496     if test -r "$ac_dir/libX11.$ac_extension"; then
5497       ac_x_libraries=$ac_dir
5498       break 2
5499     fi
5500   done
5501 done
5502 fi
5503
5504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5505       conftest$ac_exeext conftest.$ac_ext
5506 fi # $ac_x_libraries = no
5507
5508 case $ac_x_includes,$ac_x_libraries in #(
5509   no,* | *,no | *\'*)
5510     # Didn't find X, or a directory has "'" in its name.
5511     ac_cv_have_x="have_x=no";; #(
5512   *)
5513     # Record where we found X for the cache.
5514     ac_cv_have_x="have_x=yes\
5515         ac_x_includes='$ac_x_includes'\
5516         ac_x_libraries='$ac_x_libraries'"
5517 esac
5518 fi
5519 ;; #(
5520     *) have_x=yes;;
5521   esac
5522   eval "$ac_cv_have_x"
5523 fi # $with_x != no
5524
5525 if test "$have_x" != yes; then
5526   { echo "$as_me:$LINENO: result: $have_x" >&5
5527 echo "${ECHO_T}$have_x" >&6; }
5528   no_x=yes
5529 else
5530   # If each of the values was on the command line, it overrides each guess.
5531   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5532   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5533   # Update the cache value to reflect the command line values.
5534   ac_cv_have_x="have_x=yes\
5535         ac_x_includes='$x_includes'\
5536         ac_x_libraries='$x_libraries'"
5537   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5538 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
5539 fi
5540
5541 if test "$no_x" = yes; then
5542   # Not all programs may use this symbol, but it does not hurt to define it.
5543
5544 cat >>confdefs.h <<\_ACEOF
5545 #define X_DISPLAY_MISSING 1
5546 _ACEOF
5547
5548   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5549 else
5550   if test -n "$x_includes"; then
5551     X_CFLAGS="$X_CFLAGS -I$x_includes"
5552   fi
5553
5554   # It would also be nice to do this for all -L options, not just this one.
5555   if test -n "$x_libraries"; then
5556     X_LIBS="$X_LIBS -L$x_libraries"
5557     # For Solaris; some versions of Sun CC require a space after -R and
5558     # others require no space.  Words are not sufficient . . . .
5559     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5560 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
5561     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5562     ac_xsave_c_werror_flag=$ac_c_werror_flag
5563     ac_c_werror_flag=yes
5564     cat >conftest.$ac_ext <<_ACEOF
5565 /* confdefs.h.  */
5566 _ACEOF
5567 cat confdefs.h >>conftest.$ac_ext
5568 cat >>conftest.$ac_ext <<_ACEOF
5569 /* end confdefs.h.  */
5570
5571 int
5572 main ()
5573 {
5574
5575   ;
5576   return 0;
5577 }
5578 _ACEOF
5579 rm -f conftest.$ac_objext conftest$ac_exeext
5580 if { (ac_try="$ac_link"
5581 case "(($ac_try" in
5582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583   *) ac_try_echo=$ac_try;;
5584 esac
5585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5586   (eval "$ac_link") 2>conftest.er1
5587   ac_status=$?
5588   grep -v '^ *+' conftest.er1 >conftest.err
5589   rm -f conftest.er1
5590   cat conftest.err >&5
5591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592   (exit $ac_status); } && {
5593          test -z "$ac_c_werror_flag" ||
5594          test ! -s conftest.err
5595        } && test -s conftest$ac_exeext &&
5596        $as_test_x conftest$ac_exeext; then
5597   { echo "$as_me:$LINENO: result: no" >&5
5598 echo "${ECHO_T}no" >&6; }
5599        X_LIBS="$X_LIBS -R$x_libraries"
5600 else
5601   echo "$as_me: failed program was:" >&5
5602 sed 's/^/| /' conftest.$ac_ext >&5
5603
5604         LIBS="$ac_xsave_LIBS -R $x_libraries"
5605        cat >conftest.$ac_ext <<_ACEOF
5606 /* confdefs.h.  */
5607 _ACEOF
5608 cat confdefs.h >>conftest.$ac_ext
5609 cat >>conftest.$ac_ext <<_ACEOF
5610 /* end confdefs.h.  */
5611
5612 int
5613 main ()
5614 {
5615
5616   ;
5617   return 0;
5618 }
5619 _ACEOF
5620 rm -f conftest.$ac_objext conftest$ac_exeext
5621 if { (ac_try="$ac_link"
5622 case "(($ac_try" in
5623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624   *) ac_try_echo=$ac_try;;
5625 esac
5626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5627   (eval "$ac_link") 2>conftest.er1
5628   ac_status=$?
5629   grep -v '^ *+' conftest.er1 >conftest.err
5630   rm -f conftest.er1
5631   cat conftest.err >&5
5632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633   (exit $ac_status); } && {
5634          test -z "$ac_c_werror_flag" ||
5635          test ! -s conftest.err
5636        } && test -s conftest$ac_exeext &&
5637        $as_test_x conftest$ac_exeext; then
5638   { echo "$as_me:$LINENO: result: yes" >&5
5639 echo "${ECHO_T}yes" >&6; }
5640           X_LIBS="$X_LIBS -R $x_libraries"
5641 else
5642   echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5644
5645         { echo "$as_me:$LINENO: result: neither works" >&5
5646 echo "${ECHO_T}neither works" >&6; }
5647 fi
5648
5649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5650       conftest$ac_exeext conftest.$ac_ext
5651 fi
5652
5653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5654       conftest$ac_exeext conftest.$ac_ext
5655     ac_c_werror_flag=$ac_xsave_c_werror_flag
5656     LIBS=$ac_xsave_LIBS
5657   fi
5658
5659   # Check for system-dependent libraries X programs must link with.
5660   # Do this before checking for the system-independent R6 libraries
5661   # (-lICE), since we may need -lsocket or whatever for X linking.
5662
5663   if test "$ISC" = yes; then
5664     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5665   else
5666     # Martyn Johnson says this is needed for Ultrix, if the X
5667     # libraries were built with DECnet support.  And Karl Berry says
5668     # the Alpha needs dnet_stub (dnet does not exist).
5669     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5670     cat >conftest.$ac_ext <<_ACEOF
5671 /* confdefs.h.  */
5672 _ACEOF
5673 cat confdefs.h >>conftest.$ac_ext
5674 cat >>conftest.$ac_ext <<_ACEOF
5675 /* end confdefs.h.  */
5676
5677 /* Override any GCC internal prototype to avoid an error.
5678    Use char because int might match the return type of a GCC
5679    builtin and then its argument prototype would still apply.  */
5680 #ifdef __cplusplus
5681 extern "C"
5682 #endif
5683 char XOpenDisplay ();
5684 int
5685 main ()
5686 {
5687 return XOpenDisplay ();
5688   ;
5689   return 0;
5690 }
5691 _ACEOF
5692 rm -f conftest.$ac_objext conftest$ac_exeext
5693 if { (ac_try="$ac_link"
5694 case "(($ac_try" in
5695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696   *) ac_try_echo=$ac_try;;
5697 esac
5698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5699   (eval "$ac_link") 2>conftest.er1
5700   ac_status=$?
5701   grep -v '^ *+' conftest.er1 >conftest.err
5702   rm -f conftest.er1
5703   cat conftest.err >&5
5704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705   (exit $ac_status); } && {
5706          test -z "$ac_c_werror_flag" ||
5707          test ! -s conftest.err
5708        } && test -s conftest$ac_exeext &&
5709        $as_test_x conftest$ac_exeext; then
5710   :
5711 else
5712   echo "$as_me: failed program was:" >&5
5713 sed 's/^/| /' conftest.$ac_ext >&5
5714
5715         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5716 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
5717 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5718   echo $ECHO_N "(cached) $ECHO_C" >&6
5719 else
5720   ac_check_lib_save_LIBS=$LIBS
5721 LIBS="-ldnet  $LIBS"
5722 cat >conftest.$ac_ext <<_ACEOF
5723 /* confdefs.h.  */
5724 _ACEOF
5725 cat confdefs.h >>conftest.$ac_ext
5726 cat >>conftest.$ac_ext <<_ACEOF
5727 /* end confdefs.h.  */
5728
5729 /* Override any GCC internal prototype to avoid an error.
5730    Use char because int might match the return type of a GCC
5731    builtin and then its argument prototype would still apply.  */
5732 #ifdef __cplusplus
5733 extern "C"
5734 #endif
5735 char dnet_ntoa ();
5736 int
5737 main ()
5738 {
5739 return dnet_ntoa ();
5740   ;
5741   return 0;
5742 }
5743 _ACEOF
5744 rm -f conftest.$ac_objext conftest$ac_exeext
5745 if { (ac_try="$ac_link"
5746 case "(($ac_try" in
5747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748   *) ac_try_echo=$ac_try;;
5749 esac
5750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5751   (eval "$ac_link") 2>conftest.er1
5752   ac_status=$?
5753   grep -v '^ *+' conftest.er1 >conftest.err
5754   rm -f conftest.er1
5755   cat conftest.err >&5
5756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757   (exit $ac_status); } && {
5758          test -z "$ac_c_werror_flag" ||
5759          test ! -s conftest.err
5760        } && test -s conftest$ac_exeext &&
5761        $as_test_x conftest$ac_exeext; then
5762   ac_cv_lib_dnet_dnet_ntoa=yes
5763 else
5764   echo "$as_me: failed program was:" >&5
5765 sed 's/^/| /' conftest.$ac_ext >&5
5766
5767         ac_cv_lib_dnet_dnet_ntoa=no
5768 fi
5769
5770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5771       conftest$ac_exeext conftest.$ac_ext
5772 LIBS=$ac_check_lib_save_LIBS
5773 fi
5774 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5775 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5776 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5777   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5778 fi
5779
5780     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5781       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5782 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
5783 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5784   echo $ECHO_N "(cached) $ECHO_C" >&6
5785 else
5786   ac_check_lib_save_LIBS=$LIBS
5787 LIBS="-ldnet_stub  $LIBS"
5788 cat >conftest.$ac_ext <<_ACEOF
5789 /* confdefs.h.  */
5790 _ACEOF
5791 cat confdefs.h >>conftest.$ac_ext
5792 cat >>conftest.$ac_ext <<_ACEOF
5793 /* end confdefs.h.  */
5794
5795 /* Override any GCC internal prototype to avoid an error.
5796    Use char because int might match the return type of a GCC
5797    builtin and then its argument prototype would still apply.  */
5798 #ifdef __cplusplus
5799 extern "C"
5800 #endif
5801 char dnet_ntoa ();
5802 int
5803 main ()
5804 {
5805 return dnet_ntoa ();
5806   ;
5807   return 0;
5808 }
5809 _ACEOF
5810 rm -f conftest.$ac_objext conftest$ac_exeext
5811 if { (ac_try="$ac_link"
5812 case "(($ac_try" in
5813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814   *) ac_try_echo=$ac_try;;
5815 esac
5816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5817   (eval "$ac_link") 2>conftest.er1
5818   ac_status=$?
5819   grep -v '^ *+' conftest.er1 >conftest.err
5820   rm -f conftest.er1
5821   cat conftest.err >&5
5822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823   (exit $ac_status); } && {
5824          test -z "$ac_c_werror_flag" ||
5825          test ! -s conftest.err
5826        } && test -s conftest$ac_exeext &&
5827        $as_test_x conftest$ac_exeext; then
5828   ac_cv_lib_dnet_stub_dnet_ntoa=yes
5829 else
5830   echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.$ac_ext >&5
5832
5833         ac_cv_lib_dnet_stub_dnet_ntoa=no
5834 fi
5835
5836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5837       conftest$ac_exeext conftest.$ac_ext
5838 LIBS=$ac_check_lib_save_LIBS
5839 fi
5840 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5841 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5842 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5843   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5844 fi
5845
5846     fi
5847 fi
5848
5849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5850       conftest$ac_exeext conftest.$ac_ext
5851     LIBS="$ac_xsave_LIBS"
5852
5853     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5854     # to get the SysV transport functions.
5855     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5856     # needs -lnsl.
5857     # The nsl library prevents programs from opening the X display
5858     # on Irix 5.2, according to T.E. Dickey.
5859     # The functions gethostbyname, getservbyname, and inet_addr are
5860     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5861     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
5862 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
5863 if test "${ac_cv_func_gethostbyname+set}" = set; then
5864   echo $ECHO_N "(cached) $ECHO_C" >&6
5865 else
5866   cat >conftest.$ac_ext <<_ACEOF
5867 /* confdefs.h.  */
5868 _ACEOF
5869 cat confdefs.h >>conftest.$ac_ext
5870 cat >>conftest.$ac_ext <<_ACEOF
5871 /* end confdefs.h.  */
5872 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5873    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5874 #define gethostbyname innocuous_gethostbyname
5875
5876 /* System header to define __stub macros and hopefully few prototypes,
5877     which can conflict with char gethostbyname (); below.
5878     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5879     <limits.h> exists even on freestanding compilers.  */
5880
5881 #ifdef __STDC__
5882 # include <limits.h>
5883 #else
5884 # include <assert.h>
5885 #endif
5886
5887 #undef gethostbyname
5888
5889 /* Override any GCC internal prototype to avoid an error.
5890    Use char because int might match the return type of a GCC
5891    builtin and then its argument prototype would still apply.  */
5892 #ifdef __cplusplus
5893 extern "C"
5894 #endif
5895 char gethostbyname ();
5896 /* The GNU C library defines this for functions which it implements
5897     to always fail with ENOSYS.  Some functions are actually named
5898     something starting with __ and the normal name is an alias.  */
5899 #if defined __stub_gethostbyname || defined __stub___gethostbyname
5900 choke me
5901 #endif
5902
5903 int
5904 main ()
5905 {
5906 return gethostbyname ();
5907   ;
5908   return 0;
5909 }
5910 _ACEOF
5911 rm -f conftest.$ac_objext conftest$ac_exeext
5912 if { (ac_try="$ac_link"
5913 case "(($ac_try" in
5914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915   *) ac_try_echo=$ac_try;;
5916 esac
5917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5918   (eval "$ac_link") 2>conftest.er1
5919   ac_status=$?
5920   grep -v '^ *+' conftest.er1 >conftest.err
5921   rm -f conftest.er1
5922   cat conftest.err >&5
5923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924   (exit $ac_status); } && {
5925          test -z "$ac_c_werror_flag" ||
5926          test ! -s conftest.err
5927        } && test -s conftest$ac_exeext &&
5928        $as_test_x conftest$ac_exeext; then
5929   ac_cv_func_gethostbyname=yes
5930 else
5931   echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.$ac_ext >&5
5933
5934         ac_cv_func_gethostbyname=no
5935 fi
5936
5937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5938       conftest$ac_exeext conftest.$ac_ext
5939 fi
5940 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5941 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
5942
5943     if test $ac_cv_func_gethostbyname = no; then
5944       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5945 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5946 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5947   echo $ECHO_N "(cached) $ECHO_C" >&6
5948 else
5949   ac_check_lib_save_LIBS=$LIBS
5950 LIBS="-lnsl  $LIBS"
5951 cat >conftest.$ac_ext <<_ACEOF
5952 /* confdefs.h.  */
5953 _ACEOF
5954 cat confdefs.h >>conftest.$ac_ext
5955 cat >>conftest.$ac_ext <<_ACEOF
5956 /* end confdefs.h.  */
5957
5958 /* Override any GCC internal prototype to avoid an error.
5959    Use char because int might match the return type of a GCC
5960    builtin and then its argument prototype would still apply.  */
5961 #ifdef __cplusplus
5962 extern "C"
5963 #endif
5964 char gethostbyname ();
5965 int
5966 main ()
5967 {
5968 return gethostbyname ();
5969   ;
5970   return 0;
5971 }
5972 _ACEOF
5973 rm -f conftest.$ac_objext conftest$ac_exeext
5974 if { (ac_try="$ac_link"
5975 case "(($ac_try" in
5976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977   *) ac_try_echo=$ac_try;;
5978 esac
5979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980   (eval "$ac_link") 2>conftest.er1
5981   ac_status=$?
5982   grep -v '^ *+' conftest.er1 >conftest.err
5983   rm -f conftest.er1
5984   cat conftest.err >&5
5985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986   (exit $ac_status); } && {
5987          test -z "$ac_c_werror_flag" ||
5988          test ! -s conftest.err
5989        } && test -s conftest$ac_exeext &&
5990        $as_test_x conftest$ac_exeext; then
5991   ac_cv_lib_nsl_gethostbyname=yes
5992 else
5993   echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.$ac_ext >&5
5995
5996         ac_cv_lib_nsl_gethostbyname=no
5997 fi
5998
5999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6000       conftest$ac_exeext conftest.$ac_ext
6001 LIBS=$ac_check_lib_save_LIBS
6002 fi
6003 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6004 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
6005 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6006   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6007 fi
6008
6009       if test $ac_cv_lib_nsl_gethostbyname = no; then
6010         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6011 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
6012 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6013   echo $ECHO_N "(cached) $ECHO_C" >&6
6014 else
6015   ac_check_lib_save_LIBS=$LIBS
6016 LIBS="-lbsd  $LIBS"
6017 cat >conftest.$ac_ext <<_ACEOF
6018 /* confdefs.h.  */
6019 _ACEOF
6020 cat confdefs.h >>conftest.$ac_ext
6021 cat >>conftest.$ac_ext <<_ACEOF
6022 /* end confdefs.h.  */
6023
6024 /* Override any GCC internal prototype to avoid an error.
6025    Use char because int might match the return type of a GCC
6026    builtin and then its argument prototype would still apply.  */
6027 #ifdef __cplusplus
6028 extern "C"
6029 #endif
6030 char gethostbyname ();
6031 int
6032 main ()
6033 {
6034 return gethostbyname ();
6035   ;
6036   return 0;
6037 }
6038 _ACEOF
6039 rm -f conftest.$ac_objext conftest$ac_exeext
6040 if { (ac_try="$ac_link"
6041 case "(($ac_try" in
6042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6043   *) ac_try_echo=$ac_try;;
6044 esac
6045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6046   (eval "$ac_link") 2>conftest.er1
6047   ac_status=$?
6048   grep -v '^ *+' conftest.er1 >conftest.err
6049   rm -f conftest.er1
6050   cat conftest.err >&5
6051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052   (exit $ac_status); } && {
6053          test -z "$ac_c_werror_flag" ||
6054          test ! -s conftest.err
6055        } && test -s conftest$ac_exeext &&
6056        $as_test_x conftest$ac_exeext; then
6057   ac_cv_lib_bsd_gethostbyname=yes
6058 else
6059   echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6061
6062         ac_cv_lib_bsd_gethostbyname=no
6063 fi
6064
6065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6066       conftest$ac_exeext conftest.$ac_ext
6067 LIBS=$ac_check_lib_save_LIBS
6068 fi
6069 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6070 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
6071 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6072   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6073 fi
6074
6075       fi
6076     fi
6077
6078     # lieder@skyler.mavd.honeywell.com says without -lsocket,
6079     # socket/setsockopt and other routines are undefined under SCO ODT
6080     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
6081     # on later versions), says Simon Leinen: it contains gethostby*
6082     # variants that don't use the name server (or something).  -lsocket
6083     # must be given before -lnsl if both are needed.  We assume that
6084     # if connect needs -lnsl, so does gethostbyname.
6085     { echo "$as_me:$LINENO: checking for connect" >&5
6086 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
6087 if test "${ac_cv_func_connect+set}" = set; then
6088   echo $ECHO_N "(cached) $ECHO_C" >&6
6089 else
6090   cat >conftest.$ac_ext <<_ACEOF
6091 /* confdefs.h.  */
6092 _ACEOF
6093 cat confdefs.h >>conftest.$ac_ext
6094 cat >>conftest.$ac_ext <<_ACEOF
6095 /* end confdefs.h.  */
6096 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6097    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6098 #define connect innocuous_connect
6099
6100 /* System header to define __stub macros and hopefully few prototypes,
6101     which can conflict with char connect (); below.
6102     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6103     <limits.h> exists even on freestanding compilers.  */
6104
6105 #ifdef __STDC__
6106 # include <limits.h>
6107 #else
6108 # include <assert.h>
6109 #endif
6110
6111 #undef connect
6112
6113 /* Override any GCC internal prototype to avoid an error.
6114    Use char because int might match the return type of a GCC
6115    builtin and then its argument prototype would still apply.  */
6116 #ifdef __cplusplus
6117 extern "C"
6118 #endif
6119 char connect ();
6120 /* The GNU C library defines this for functions which it implements
6121     to always fail with ENOSYS.  Some functions are actually named
6122     something starting with __ and the normal name is an alias.  */
6123 #if defined __stub_connect || defined __stub___connect
6124 choke me
6125 #endif
6126
6127 int
6128 main ()
6129 {
6130 return connect ();
6131   ;
6132   return 0;
6133 }
6134 _ACEOF
6135 rm -f conftest.$ac_objext conftest$ac_exeext
6136 if { (ac_try="$ac_link"
6137 case "(($ac_try" in
6138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6139   *) ac_try_echo=$ac_try;;
6140 esac
6141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6142   (eval "$ac_link") 2>conftest.er1
6143   ac_status=$?
6144   grep -v '^ *+' conftest.er1 >conftest.err
6145   rm -f conftest.er1
6146   cat conftest.err >&5
6147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148   (exit $ac_status); } && {
6149          test -z "$ac_c_werror_flag" ||
6150          test ! -s conftest.err
6151        } && test -s conftest$ac_exeext &&
6152        $as_test_x conftest$ac_exeext; then
6153   ac_cv_func_connect=yes
6154 else
6155   echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6157
6158         ac_cv_func_connect=no
6159 fi
6160
6161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6162       conftest$ac_exeext conftest.$ac_ext
6163 fi
6164 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6165 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
6166
6167     if test $ac_cv_func_connect = no; then
6168       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6169 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
6170 if test "${ac_cv_lib_socket_connect+set}" = set; then
6171   echo $ECHO_N "(cached) $ECHO_C" >&6
6172 else
6173   ac_check_lib_save_LIBS=$LIBS
6174 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6175 cat >conftest.$ac_ext <<_ACEOF
6176 /* confdefs.h.  */
6177 _ACEOF
6178 cat confdefs.h >>conftest.$ac_ext
6179 cat >>conftest.$ac_ext <<_ACEOF
6180 /* end confdefs.h.  */
6181
6182 /* Override any GCC internal prototype to avoid an error.
6183    Use char because int might match the return type of a GCC
6184    builtin and then its argument prototype would still apply.  */
6185 #ifdef __cplusplus
6186 extern "C"
6187 #endif
6188 char connect ();
6189 int
6190 main ()
6191 {
6192 return connect ();
6193   ;
6194   return 0;
6195 }
6196 _ACEOF
6197 rm -f conftest.$ac_objext conftest$ac_exeext
6198 if { (ac_try="$ac_link"
6199 case "(($ac_try" in
6200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6201   *) ac_try_echo=$ac_try;;
6202 esac
6203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6204   (eval "$ac_link") 2>conftest.er1
6205   ac_status=$?
6206   grep -v '^ *+' conftest.er1 >conftest.err
6207   rm -f conftest.er1
6208   cat conftest.err >&5
6209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210   (exit $ac_status); } && {
6211          test -z "$ac_c_werror_flag" ||
6212          test ! -s conftest.err
6213        } && test -s conftest$ac_exeext &&
6214        $as_test_x conftest$ac_exeext; then
6215   ac_cv_lib_socket_connect=yes
6216 else
6217   echo "$as_me: failed program was:" >&5
6218 sed 's/^/| /' conftest.$ac_ext >&5
6219
6220         ac_cv_lib_socket_connect=no
6221 fi
6222
6223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6224       conftest$ac_exeext conftest.$ac_ext
6225 LIBS=$ac_check_lib_save_LIBS
6226 fi
6227 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6228 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
6229 if test $ac_cv_lib_socket_connect = yes; then
6230   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6231 fi
6232
6233     fi
6234
6235     # Guillermo Gomez says -lposix is necessary on A/UX.
6236     { echo "$as_me:$LINENO: checking for remove" >&5
6237 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
6238 if test "${ac_cv_func_remove+set}" = set; then
6239   echo $ECHO_N "(cached) $ECHO_C" >&6
6240 else
6241   cat >conftest.$ac_ext <<_ACEOF
6242 /* confdefs.h.  */
6243 _ACEOF
6244 cat confdefs.h >>conftest.$ac_ext
6245 cat >>conftest.$ac_ext <<_ACEOF
6246 /* end confdefs.h.  */
6247 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6248    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6249 #define remove innocuous_remove
6250
6251 /* System header to define __stub macros and hopefully few prototypes,
6252     which can conflict with char remove (); below.
6253     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6254     <limits.h> exists even on freestanding compilers.  */
6255
6256 #ifdef __STDC__
6257 # include <limits.h>
6258 #else
6259 # include <assert.h>
6260 #endif
6261
6262 #undef remove
6263
6264 /* Override any GCC internal prototype to avoid an error.
6265    Use char because int might match the return type of a GCC
6266    builtin and then its argument prototype would still apply.  */
6267 #ifdef __cplusplus
6268 extern "C"
6269 #endif
6270 char remove ();
6271 /* The GNU C library defines this for functions which it implements
6272     to always fail with ENOSYS.  Some functions are actually named
6273     something starting with __ and the normal name is an alias.  */
6274 #if defined __stub_remove || defined __stub___remove
6275 choke me
6276 #endif
6277
6278 int
6279 main ()
6280 {
6281 return remove ();
6282   ;
6283   return 0;
6284 }
6285 _ACEOF
6286 rm -f conftest.$ac_objext conftest$ac_exeext
6287 if { (ac_try="$ac_link"
6288 case "(($ac_try" in
6289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6290   *) ac_try_echo=$ac_try;;
6291 esac
6292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6293   (eval "$ac_link") 2>conftest.er1
6294   ac_status=$?
6295   grep -v '^ *+' conftest.er1 >conftest.err
6296   rm -f conftest.er1
6297   cat conftest.err >&5
6298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299   (exit $ac_status); } && {
6300          test -z "$ac_c_werror_flag" ||
6301          test ! -s conftest.err
6302        } && test -s conftest$ac_exeext &&
6303        $as_test_x conftest$ac_exeext; then
6304   ac_cv_func_remove=yes
6305 else
6306   echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.$ac_ext >&5
6308
6309         ac_cv_func_remove=no
6310 fi
6311
6312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6313       conftest$ac_exeext conftest.$ac_ext
6314 fi
6315 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6316 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
6317
6318     if test $ac_cv_func_remove = no; then
6319       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6320 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
6321 if test "${ac_cv_lib_posix_remove+set}" = set; then
6322   echo $ECHO_N "(cached) $ECHO_C" >&6
6323 else
6324   ac_check_lib_save_LIBS=$LIBS
6325 LIBS="-lposix  $LIBS"
6326 cat >conftest.$ac_ext <<_ACEOF
6327 /* confdefs.h.  */
6328 _ACEOF
6329 cat confdefs.h >>conftest.$ac_ext
6330 cat >>conftest.$ac_ext <<_ACEOF
6331 /* end confdefs.h.  */
6332
6333 /* Override any GCC internal prototype to avoid an error.
6334    Use char because int might match the return type of a GCC
6335    builtin and then its argument prototype would still apply.  */
6336 #ifdef __cplusplus
6337 extern "C"
6338 #endif
6339 char remove ();
6340 int
6341 main ()
6342 {
6343 return remove ();
6344   ;
6345   return 0;
6346 }
6347 _ACEOF
6348 rm -f conftest.$ac_objext conftest$ac_exeext
6349 if { (ac_try="$ac_link"
6350 case "(($ac_try" in
6351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6352   *) ac_try_echo=$ac_try;;
6353 esac
6354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6355   (eval "$ac_link") 2>conftest.er1
6356   ac_status=$?
6357   grep -v '^ *+' conftest.er1 >conftest.err
6358   rm -f conftest.er1
6359   cat conftest.err >&5
6360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361   (exit $ac_status); } && {
6362          test -z "$ac_c_werror_flag" ||
6363          test ! -s conftest.err
6364        } && test -s conftest$ac_exeext &&
6365        $as_test_x conftest$ac_exeext; then
6366   ac_cv_lib_posix_remove=yes
6367 else
6368   echo "$as_me: failed program was:" >&5
6369 sed 's/^/| /' conftest.$ac_ext >&5
6370
6371         ac_cv_lib_posix_remove=no
6372 fi
6373
6374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6375       conftest$ac_exeext conftest.$ac_ext
6376 LIBS=$ac_check_lib_save_LIBS
6377 fi
6378 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6379 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
6380 if test $ac_cv_lib_posix_remove = yes; then
6381   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6382 fi
6383
6384     fi
6385
6386     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6387     { echo "$as_me:$LINENO: checking for shmat" >&5
6388 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
6389 if test "${ac_cv_func_shmat+set}" = set; then
6390   echo $ECHO_N "(cached) $ECHO_C" >&6
6391 else
6392   cat >conftest.$ac_ext <<_ACEOF
6393 /* confdefs.h.  */
6394 _ACEOF
6395 cat confdefs.h >>conftest.$ac_ext
6396 cat >>conftest.$ac_ext <<_ACEOF
6397 /* end confdefs.h.  */
6398 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6399    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6400 #define shmat innocuous_shmat
6401
6402 /* System header to define __stub macros and hopefully few prototypes,
6403     which can conflict with char shmat (); below.
6404     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6405     <limits.h> exists even on freestanding compilers.  */
6406
6407 #ifdef __STDC__
6408 # include <limits.h>
6409 #else
6410 # include <assert.h>
6411 #endif
6412
6413 #undef shmat
6414
6415 /* Override any GCC internal prototype to avoid an error.
6416    Use char because int might match the return type of a GCC
6417    builtin and then its argument prototype would still apply.  */
6418 #ifdef __cplusplus
6419 extern "C"
6420 #endif
6421 char shmat ();
6422 /* The GNU C library defines this for functions which it implements
6423     to always fail with ENOSYS.  Some functions are actually named
6424     something starting with __ and the normal name is an alias.  */
6425 #if defined __stub_shmat || defined __stub___shmat
6426 choke me
6427 #endif
6428
6429 int
6430 main ()
6431 {
6432 return shmat ();
6433   ;
6434   return 0;
6435 }
6436 _ACEOF
6437 rm -f conftest.$ac_objext conftest$ac_exeext
6438 if { (ac_try="$ac_link"
6439 case "(($ac_try" in
6440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6441   *) ac_try_echo=$ac_try;;
6442 esac
6443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6444   (eval "$ac_link") 2>conftest.er1
6445   ac_status=$?
6446   grep -v '^ *+' conftest.er1 >conftest.err
6447   rm -f conftest.er1
6448   cat conftest.err >&5
6449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450   (exit $ac_status); } && {
6451          test -z "$ac_c_werror_flag" ||
6452          test ! -s conftest.err
6453        } && test -s conftest$ac_exeext &&
6454        $as_test_x conftest$ac_exeext; then
6455   ac_cv_func_shmat=yes
6456 else
6457   echo "$as_me: failed program was:" >&5
6458 sed 's/^/| /' conftest.$ac_ext >&5
6459
6460         ac_cv_func_shmat=no
6461 fi
6462
6463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6464       conftest$ac_exeext conftest.$ac_ext
6465 fi
6466 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6467 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
6468
6469     if test $ac_cv_func_shmat = no; then
6470       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6471 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
6472 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6473   echo $ECHO_N "(cached) $ECHO_C" >&6
6474 else
6475   ac_check_lib_save_LIBS=$LIBS
6476 LIBS="-lipc  $LIBS"
6477 cat >conftest.$ac_ext <<_ACEOF
6478 /* confdefs.h.  */
6479 _ACEOF
6480 cat confdefs.h >>conftest.$ac_ext
6481 cat >>conftest.$ac_ext <<_ACEOF
6482 /* end confdefs.h.  */
6483
6484 /* Override any GCC internal prototype to avoid an error.
6485    Use char because int might match the return type of a GCC
6486    builtin and then its argument prototype would still apply.  */
6487 #ifdef __cplusplus
6488 extern "C"
6489 #endif
6490 char shmat ();
6491 int
6492 main ()
6493 {
6494 return shmat ();
6495   ;
6496   return 0;
6497 }
6498 _ACEOF
6499 rm -f conftest.$ac_objext conftest$ac_exeext
6500 if { (ac_try="$ac_link"
6501 case "(($ac_try" in
6502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6503   *) ac_try_echo=$ac_try;;
6504 esac
6505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6506   (eval "$ac_link") 2>conftest.er1
6507   ac_status=$?
6508   grep -v '^ *+' conftest.er1 >conftest.err
6509   rm -f conftest.er1
6510   cat conftest.err >&5
6511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512   (exit $ac_status); } && {
6513          test -z "$ac_c_werror_flag" ||
6514          test ! -s conftest.err
6515        } && test -s conftest$ac_exeext &&
6516        $as_test_x conftest$ac_exeext; then
6517   ac_cv_lib_ipc_shmat=yes
6518 else
6519   echo "$as_me: failed program was:" >&5
6520 sed 's/^/| /' conftest.$ac_ext >&5
6521
6522         ac_cv_lib_ipc_shmat=no
6523 fi
6524
6525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6526       conftest$ac_exeext conftest.$ac_ext
6527 LIBS=$ac_check_lib_save_LIBS
6528 fi
6529 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6530 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
6531 if test $ac_cv_lib_ipc_shmat = yes; then
6532   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6533 fi
6534
6535     fi
6536   fi
6537
6538   # Check for libraries that X11R6 Xt/Xaw programs need.
6539   ac_save_LDFLAGS=$LDFLAGS
6540   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6541   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6542   # check for ICE first), but we must link in the order -lSM -lICE or
6543   # we get undefined symbols.  So assume we have SM if we have ICE.
6544   # These have to be linked with before -lX11, unlike the other
6545   # libraries we check for below, so use a different variable.
6546   # John Interrante, Karl Berry
6547   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6548 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
6549 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6550   echo $ECHO_N "(cached) $ECHO_C" >&6
6551 else
6552   ac_check_lib_save_LIBS=$LIBS
6553 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6554 cat >conftest.$ac_ext <<_ACEOF
6555 /* confdefs.h.  */
6556 _ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h.  */
6560
6561 /* Override any GCC internal prototype to avoid an error.
6562    Use char because int might match the return type of a GCC
6563    builtin and then its argument prototype would still apply.  */
6564 #ifdef __cplusplus
6565 extern "C"
6566 #endif
6567 char IceConnectionNumber ();
6568 int
6569 main ()
6570 {
6571 return IceConnectionNumber ();
6572   ;
6573   return 0;
6574 }
6575 _ACEOF
6576 rm -f conftest.$ac_objext conftest$ac_exeext
6577 if { (ac_try="$ac_link"
6578 case "(($ac_try" in
6579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6580   *) ac_try_echo=$ac_try;;
6581 esac
6582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6583   (eval "$ac_link") 2>conftest.er1
6584   ac_status=$?
6585   grep -v '^ *+' conftest.er1 >conftest.err
6586   rm -f conftest.er1
6587   cat conftest.err >&5
6588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589   (exit $ac_status); } && {
6590          test -z "$ac_c_werror_flag" ||
6591          test ! -s conftest.err
6592        } && test -s conftest$ac_exeext &&
6593        $as_test_x conftest$ac_exeext; then
6594   ac_cv_lib_ICE_IceConnectionNumber=yes
6595 else
6596   echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6598
6599         ac_cv_lib_ICE_IceConnectionNumber=no
6600 fi
6601
6602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6603       conftest$ac_exeext conftest.$ac_ext
6604 LIBS=$ac_check_lib_save_LIBS
6605 fi
6606 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6607 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6608 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6609   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6610 fi
6611
6612   LDFLAGS=$ac_save_LDFLAGS
6613
6614 fi
6615
6616
6617 # Checks for X
6618 if test "x$with_x" = xyes; then
6619   if test "x$have_x" = xno; then
6620     if test "x$x_config_flag" = xyes; then
6621       { { echo "$as_me:$LINENO: error: Could not configure X" >&5
6622 echo "$as_me: error: Could not configure X" >&2;}
6623    { (exit 1); exit 1; }; }
6624     else
6625       { echo "$as_me:$LINENO: WARNING: Could not configure X" >&5
6626 echo "$as_me: WARNING: Could not configure X" >&2;}
6627     fi
6628   fi
6629 fi
6630 if test "x$with_x" = xyes -a "x$have_x" = xyes; then
6631   if test "x$x_libraries" != x; then
6632     ldflags_x_opt="-L$x_libraries"
6633     LDFLAGS="$LDFLAGS $ldflags_x_opt"
6634     SHLDFLAGS="$SHLDFLAGS $ldflags_x_opt"
6635   else
6636     ldflags_x_opt=
6637   fi
6638   if test "x$x_includes" != x; then
6639     CPPFLAGS="$CPPFLAGS -I$x_includes"
6640   fi
6641
6642
6643 { echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
6644 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6; }
6645 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
6646   echo $ECHO_N "(cached) $ECHO_C" >&6
6647 else
6648   ac_check_lib_save_LIBS=$LIBS
6649 LIBS="-lX11  $LIBS"
6650 cat >conftest.$ac_ext <<_ACEOF
6651 /* confdefs.h.  */
6652 _ACEOF
6653 cat confdefs.h >>conftest.$ac_ext
6654 cat >>conftest.$ac_ext <<_ACEOF
6655 /* end confdefs.h.  */
6656
6657 /* Override any GCC internal prototype to avoid an error.
6658    Use char because int might match the return type of a GCC
6659    builtin and then its argument prototype would still apply.  */
6660 #ifdef __cplusplus
6661 extern "C"
6662 #endif
6663 char XOpenDisplay ();
6664 int
6665 main ()
6666 {
6667 return XOpenDisplay ();
6668   ;
6669   return 0;
6670 }
6671 _ACEOF
6672 rm -f conftest.$ac_objext conftest$ac_exeext
6673 if { (ac_try="$ac_link"
6674 case "(($ac_try" in
6675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6676   *) ac_try_echo=$ac_try;;
6677 esac
6678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6679   (eval "$ac_link") 2>conftest.er1
6680   ac_status=$?
6681   grep -v '^ *+' conftest.er1 >conftest.err
6682   rm -f conftest.er1
6683   cat conftest.err >&5
6684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685   (exit $ac_status); } && {
6686          test -z "$ac_c_werror_flag" ||
6687          test ! -s conftest.err
6688        } && test -s conftest$ac_exeext &&
6689        $as_test_x conftest$ac_exeext; then
6690   ac_cv_lib_X11_XOpenDisplay=yes
6691 else
6692   echo "$as_me: failed program was:" >&5
6693 sed 's/^/| /' conftest.$ac_ext >&5
6694
6695         ac_cv_lib_X11_XOpenDisplay=no
6696 fi
6697
6698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6699       conftest$ac_exeext conftest.$ac_ext
6700 LIBS=$ac_check_lib_save_LIBS
6701 fi
6702 { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
6703 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6; }
6704 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
6705   cat >>confdefs.h <<_ACEOF
6706 #define HAVE_LIBX11 1
6707 _ACEOF
6708
6709   LIBS="-lX11 $LIBS"
6710
6711 fi
6712
6713   { echo "$as_me:$LINENO: checking X11 version 6" >&5
6714 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
6715   if test "${timidity_cv_x11_version_6+set}" = set; then
6716   echo $ECHO_N "(cached) $ECHO_C" >&6
6717 else
6718   cat >conftest.$ac_ext <<_ACEOF
6719 /* confdefs.h.  */
6720 _ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h.  */
6724 #include <X11/Xlib.h>
6725 int
6726 main ()
6727 {
6728
6729 #if XlibSpecificationRelease < 6
6730 fail;
6731 #endif
6732
6733   ;
6734   return 0;
6735 }
6736 _ACEOF
6737 rm -f conftest.$ac_objext conftest$ac_exeext
6738 if { (ac_try="$ac_link"
6739 case "(($ac_try" in
6740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6741   *) ac_try_echo=$ac_try;;
6742 esac
6743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6744   (eval "$ac_link") 2>conftest.er1
6745   ac_status=$?
6746   grep -v '^ *+' conftest.er1 >conftest.err
6747   rm -f conftest.er1
6748   cat conftest.err >&5
6749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750   (exit $ac_status); } && {
6751          test -z "$ac_c_werror_flag" ||
6752          test ! -s conftest.err
6753        } && test -s conftest$ac_exeext &&
6754        $as_test_x conftest$ac_exeext; then
6755   timidity_cv_x11_version_6=yes
6756 else
6757   echo "$as_me: failed program was:" >&5
6758 sed 's/^/| /' conftest.$ac_ext >&5
6759
6760         timidity_cv_x11_version_6=no
6761 fi
6762
6763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6764       conftest$ac_exeext conftest.$ac_ext
6765 fi
6766
6767   if test "$timidity_cv_x11_version_6" = "yes"; then
6768     { echo "$as_me:$LINENO: result: 6 or newer" >&5
6769 echo "${ECHO_T}6 or newer" >&6; }
6770       else
6771     { echo "$as_me:$LINENO: result: before 6" >&5
6772 echo "${ECHO_T}before 6" >&6; }
6773   fi
6774
6775     KEEPLIBS=$LIBS
6776   { echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
6777 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6; }
6778 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
6779   echo $ECHO_N "(cached) $ECHO_C" >&6
6780 else
6781   ac_check_lib_save_LIBS=$LIBS
6782 LIBS="-lXext  $LIBS"
6783 cat >conftest.$ac_ext <<_ACEOF
6784 /* confdefs.h.  */
6785 _ACEOF
6786 cat confdefs.h >>conftest.$ac_ext
6787 cat >>conftest.$ac_ext <<_ACEOF
6788 /* end confdefs.h.  */
6789
6790 /* Override any GCC internal prototype to avoid an error.
6791    Use char because int might match the return type of a GCC
6792    builtin and then its argument prototype would still apply.  */
6793 #ifdef __cplusplus
6794 extern "C"
6795 #endif
6796 char XShapeCombineMask ();
6797 int
6798 main ()
6799 {
6800 return XShapeCombineMask ();
6801   ;
6802   return 0;
6803 }
6804 _ACEOF
6805 rm -f conftest.$ac_objext conftest$ac_exeext
6806 if { (ac_try="$ac_link"
6807 case "(($ac_try" in
6808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6809   *) ac_try_echo=$ac_try;;
6810 esac
6811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6812   (eval "$ac_link") 2>conftest.er1
6813   ac_status=$?
6814   grep -v '^ *+' conftest.er1 >conftest.err
6815   rm -f conftest.er1
6816   cat conftest.err >&5
6817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818   (exit $ac_status); } && {
6819          test -z "$ac_c_werror_flag" ||
6820          test ! -s conftest.err
6821        } && test -s conftest$ac_exeext &&
6822        $as_test_x conftest$ac_exeext; then
6823   ac_cv_lib_Xext_XShapeCombineMask=yes
6824 else
6825   echo "$as_me: failed program was:" >&5
6826 sed 's/^/| /' conftest.$ac_ext >&5
6827
6828         ac_cv_lib_Xext_XShapeCombineMask=no
6829 fi
6830
6831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6832       conftest$ac_exeext conftest.$ac_ext
6833 LIBS=$ac_check_lib_save_LIBS
6834 fi
6835 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
6836 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
6837 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
6838   have_xext=yes; LIBS="-lXext $LIBS"
6839 else
6840   have_xext=no
6841 fi
6842
6843
6844 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6845 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
6846 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6847   echo $ECHO_N "(cached) $ECHO_C" >&6
6848 else
6849   ac_check_lib_save_LIBS=$LIBS
6850 LIBS="-lICE  $LIBS"
6851 cat >conftest.$ac_ext <<_ACEOF
6852 /* confdefs.h.  */
6853 _ACEOF
6854 cat confdefs.h >>conftest.$ac_ext
6855 cat >>conftest.$ac_ext <<_ACEOF
6856 /* end confdefs.h.  */
6857
6858 /* Override any GCC internal prototype to avoid an error.
6859    Use char because int might match the return type of a GCC
6860    builtin and then its argument prototype would still apply.  */
6861 #ifdef __cplusplus
6862 extern "C"
6863 #endif
6864 char IceConnectionNumber ();
6865 int
6866 main ()
6867 {
6868 return IceConnectionNumber ();
6869   ;
6870   return 0;
6871 }
6872 _ACEOF
6873 rm -f conftest.$ac_objext conftest$ac_exeext
6874 if { (ac_try="$ac_link"
6875 case "(($ac_try" in
6876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6877   *) ac_try_echo=$ac_try;;
6878 esac
6879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6880   (eval "$ac_link") 2>conftest.er1
6881   ac_status=$?
6882   grep -v '^ *+' conftest.er1 >conftest.err
6883   rm -f conftest.er1
6884   cat conftest.err >&5
6885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886   (exit $ac_status); } && {
6887          test -z "$ac_c_werror_flag" ||
6888          test ! -s conftest.err
6889        } && test -s conftest$ac_exeext &&
6890        $as_test_x conftest$ac_exeext; then
6891   ac_cv_lib_ICE_IceConnectionNumber=yes
6892 else
6893   echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6895
6896         ac_cv_lib_ICE_IceConnectionNumber=no
6897 fi
6898
6899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6900       conftest$ac_exeext conftest.$ac_ext
6901 LIBS=$ac_check_lib_save_LIBS
6902 fi
6903 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6904 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6905 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6906   cat >>confdefs.h <<_ACEOF
6907 #define HAVE_LIBICE 1
6908 _ACEOF
6909
6910   LIBS="-lICE $LIBS"
6911
6912 fi
6913
6914   { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
6915 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
6916 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
6917   echo $ECHO_N "(cached) $ECHO_C" >&6
6918 else
6919   ac_check_lib_save_LIBS=$LIBS
6920 LIBS="-lSM  $LIBS"
6921 cat >conftest.$ac_ext <<_ACEOF
6922 /* confdefs.h.  */
6923 _ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h.  */
6927
6928 /* Override any GCC internal prototype to avoid an error.
6929    Use char because int might match the return type of a GCC
6930    builtin and then its argument prototype would still apply.  */
6931 #ifdef __cplusplus
6932 extern "C"
6933 #endif
6934 char SmcOpenConnection ();
6935 int
6936 main ()
6937 {
6938 return SmcOpenConnection ();
6939   ;
6940   return 0;
6941 }
6942 _ACEOF
6943 rm -f conftest.$ac_objext conftest$ac_exeext
6944 if { (ac_try="$ac_link"
6945 case "(($ac_try" in
6946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6947   *) ac_try_echo=$ac_try;;
6948 esac
6949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6950   (eval "$ac_link") 2>conftest.er1
6951   ac_status=$?
6952   grep -v '^ *+' conftest.er1 >conftest.err
6953   rm -f conftest.er1
6954   cat conftest.err >&5
6955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956   (exit $ac_status); } && {
6957          test -z "$ac_c_werror_flag" ||
6958          test ! -s conftest.err
6959        } && test -s conftest$ac_exeext &&
6960        $as_test_x conftest$ac_exeext; then
6961   ac_cv_lib_SM_SmcOpenConnection=yes
6962 else
6963   echo "$as_me: failed program was:" >&5
6964 sed 's/^/| /' conftest.$ac_ext >&5
6965
6966         ac_cv_lib_SM_SmcOpenConnection=no
6967 fi
6968
6969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6970       conftest$ac_exeext conftest.$ac_ext
6971 LIBS=$ac_check_lib_save_LIBS
6972 fi
6973 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
6974 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
6975 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
6976   have_xprelibs=yes; LIBS="-lSM $LIBS"
6977 else
6978   have_xprelibs=no
6979 fi
6980
6981   { echo "$as_me:$LINENO: checking for XtVaAppInitialize in -lXt" >&5
6982 echo $ECHO_N "checking for XtVaAppInitialize in -lXt... $ECHO_C" >&6; }
6983 if test "${ac_cv_lib_Xt_XtVaAppInitialize+set}" = set; then
6984   echo $ECHO_N "(cached) $ECHO_C" >&6
6985 else
6986   ac_check_lib_save_LIBS=$LIBS
6987 LIBS="-lXt  $LIBS"
6988 cat >conftest.$ac_ext <<_ACEOF
6989 /* confdefs.h.  */
6990 _ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h.  */
6994
6995 /* Override any GCC internal prototype to avoid an error.
6996    Use char because int might match the return type of a GCC
6997    builtin and then its argument prototype would still apply.  */
6998 #ifdef __cplusplus
6999 extern "C"
7000 #endif
7001 char XtVaAppInitialize ();
7002 int
7003 main ()
7004 {
7005 return XtVaAppInitialize ();
7006   ;
7007   return 0;
7008 }
7009 _ACEOF
7010 rm -f conftest.$ac_objext conftest$ac_exeext
7011 if { (ac_try="$ac_link"
7012 case "(($ac_try" in
7013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7014   *) ac_try_echo=$ac_try;;
7015 esac
7016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7017   (eval "$ac_link") 2>conftest.er1
7018   ac_status=$?
7019   grep -v '^ *+' conftest.er1 >conftest.err
7020   rm -f conftest.er1
7021   cat conftest.err >&5
7022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023   (exit $ac_status); } && {
7024          test -z "$ac_c_werror_flag" ||
7025          test ! -s conftest.err
7026        } && test -s conftest$ac_exeext &&
7027        $as_test_x conftest$ac_exeext; then
7028   ac_cv_lib_Xt_XtVaAppInitialize=yes
7029 else
7030   echo "$as_me: failed program was:" >&5
7031 sed 's/^/| /' conftest.$ac_ext >&5
7032
7033         ac_cv_lib_Xt_XtVaAppInitialize=no
7034 fi
7035
7036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7037       conftest$ac_exeext conftest.$ac_ext
7038 LIBS=$ac_check_lib_save_LIBS
7039 fi
7040 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtVaAppInitialize" >&5
7041 echo "${ECHO_T}$ac_cv_lib_Xt_XtVaAppInitialize" >&6; }
7042 if test $ac_cv_lib_Xt_XtVaAppInitialize = yes; then
7043   have_xt=yes; LIBS="-lXt $LIBS"
7044 else
7045   have_xt=no
7046 fi
7047
7048   { echo "$as_me:$LINENO: checking for XmuInternAtom in -lXmu" >&5
7049 echo $ECHO_N "checking for XmuInternAtom in -lXmu... $ECHO_C" >&6; }
7050 if test "${ac_cv_lib_Xmu_XmuInternAtom+set}" = set; then
7051   echo $ECHO_N "(cached) $ECHO_C" >&6
7052 else
7053   ac_check_lib_save_LIBS=$LIBS
7054 LIBS="-lXmu  $LIBS"
7055 cat >conftest.$ac_ext <<_ACEOF
7056 /* confdefs.h.  */
7057 _ACEOF
7058 cat confdefs.h >>conftest.$ac_ext
7059 cat >>conftest.$ac_ext <<_ACEOF
7060 /* end confdefs.h.  */
7061
7062 /* Override any GCC internal prototype to avoid an error.
7063    Use char because int might match the return type of a GCC
7064    builtin and then its argument prototype would still apply.  */
7065 #ifdef __cplusplus
7066 extern "C"
7067 #endif
7068 char XmuInternAtom ();
7069 int
7070 main ()
7071 {
7072 return XmuInternAtom ();
7073   ;
7074   return 0;
7075 }
7076 _ACEOF
7077 rm -f conftest.$ac_objext conftest$ac_exeext
7078 if { (ac_try="$ac_link"
7079 case "(($ac_try" in
7080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7081   *) ac_try_echo=$ac_try;;
7082 esac
7083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7084   (eval "$ac_link") 2>conftest.er1
7085   ac_status=$?
7086   grep -v '^ *+' conftest.er1 >conftest.err
7087   rm -f conftest.er1
7088   cat conftest.err >&5
7089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090   (exit $ac_status); } && {
7091          test -z "$ac_c_werror_flag" ||
7092          test ! -s conftest.err
7093        } && test -s conftest$ac_exeext &&
7094        $as_test_x conftest$ac_exeext; then
7095   ac_cv_lib_Xmu_XmuInternAtom=yes
7096 else
7097   echo "$as_me: failed program was:" >&5
7098 sed 's/^/| /' conftest.$ac_ext >&5
7099
7100         ac_cv_lib_Xmu_XmuInternAtom=no
7101 fi
7102
7103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7104       conftest$ac_exeext conftest.$ac_ext
7105 LIBS=$ac_check_lib_save_LIBS
7106 fi
7107 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuInternAtom" >&5
7108 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuInternAtom" >&6; }
7109 if test $ac_cv_lib_Xmu_XmuInternAtom = yes; then
7110   LIBS="-lXmu $LIBS"
7111 fi
7112
7113
7114 for ac_func in XmuRegisterExternalAgent
7115 do
7116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7117 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7119 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7120   echo $ECHO_N "(cached) $ECHO_C" >&6
7121 else
7122   cat >conftest.$ac_ext <<_ACEOF
7123 /* confdefs.h.  */
7124 _ACEOF
7125 cat confdefs.h >>conftest.$ac_ext
7126 cat >>conftest.$ac_ext <<_ACEOF
7127 /* end confdefs.h.  */
7128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7129    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7130 #define $ac_func innocuous_$ac_func
7131
7132 /* System header to define __stub macros and hopefully few prototypes,
7133     which can conflict with char $ac_func (); below.
7134     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7135     <limits.h> exists even on freestanding compilers.  */
7136
7137 #ifdef __STDC__
7138 # include <limits.h>
7139 #else
7140 # include <assert.h>
7141 #endif
7142
7143 #undef $ac_func
7144
7145 /* Override any GCC internal prototype to avoid an error.
7146    Use char because int might match the return type of a GCC
7147    builtin and then its argument prototype would still apply.  */
7148 #ifdef __cplusplus
7149 extern "C"
7150 #endif
7151 char $ac_func ();
7152 /* The GNU C library defines this for functions which it implements
7153     to always fail with ENOSYS.  Some functions are actually named
7154     something starting with __ and the normal name is an alias.  */
7155 #if defined __stub_$ac_func || defined __stub___$ac_func
7156 choke me
7157 #endif
7158
7159 int
7160 main ()
7161 {
7162 return $ac_func ();
7163   ;
7164   return 0;
7165 }
7166 _ACEOF
7167 rm -f conftest.$ac_objext conftest$ac_exeext
7168 if { (ac_try="$ac_link"
7169 case "(($ac_try" in
7170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7171   *) ac_try_echo=$ac_try;;
7172 esac
7173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7174   (eval "$ac_link") 2>conftest.er1
7175   ac_status=$?
7176   grep -v '^ *+' conftest.er1 >conftest.err
7177   rm -f conftest.er1
7178   cat conftest.err >&5
7179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180   (exit $ac_status); } && {
7181          test -z "$ac_c_werror_flag" ||
7182          test ! -s conftest.err
7183        } && test -s conftest$ac_exeext &&
7184        $as_test_x conftest$ac_exeext; then
7185   eval "$as_ac_var=yes"
7186 else
7187   echo "$as_me: failed program was:" >&5
7188 sed 's/^/| /' conftest.$ac_ext >&5
7189
7190         eval "$as_ac_var=no"
7191 fi
7192
7193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7194       conftest$ac_exeext conftest.$ac_ext
7195 fi
7196 ac_res=`eval echo '${'$as_ac_var'}'`
7197                { echo "$as_me:$LINENO: result: $ac_res" >&5
7198 echo "${ECHO_T}$ac_res" >&6; }
7199 if test `eval echo '${'$as_ac_var'}'` = yes; then
7200   cat >>confdefs.h <<_ACEOF
7201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7202 _ACEOF
7203
7204 fi
7205 done
7206
7207   { echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw3d" >&5
7208 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw3d... $ECHO_C" >&6; }
7209 if test "${ac_cv_lib_Xaw3d_XawInitializeWidgetSet+set}" = set; then
7210   echo $ECHO_N "(cached) $ECHO_C" >&6
7211 else
7212   ac_check_lib_save_LIBS=$LIBS
7213 LIBS="-lXaw3d  $LIBS"
7214 cat >conftest.$ac_ext <<_ACEOF
7215 /* confdefs.h.  */
7216 _ACEOF
7217 cat confdefs.h >>conftest.$ac_ext
7218 cat >>conftest.$ac_ext <<_ACEOF
7219 /* end confdefs.h.  */
7220
7221 /* Override any GCC internal prototype to avoid an error.
7222    Use char because int might match the return type of a GCC
7223    builtin and then its argument prototype would still apply.  */
7224 #ifdef __cplusplus
7225 extern "C"
7226 #endif
7227 char XawInitializeWidgetSet ();
7228 int
7229 main ()
7230 {
7231 return XawInitializeWidgetSet ();
7232   ;
7233   return 0;
7234 }
7235 _ACEOF
7236 rm -f conftest.$ac_objext conftest$ac_exeext
7237 if { (ac_try="$ac_link"
7238 case "(($ac_try" in
7239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7240   *) ac_try_echo=$ac_try;;
7241 esac
7242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7243   (eval "$ac_link") 2>conftest.er1
7244   ac_status=$?
7245   grep -v '^ *+' conftest.er1 >conftest.err
7246   rm -f conftest.er1
7247   cat conftest.err >&5
7248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249   (exit $ac_status); } && {
7250          test -z "$ac_c_werror_flag" ||
7251          test ! -s conftest.err
7252        } && test -s conftest$ac_exeext &&
7253        $as_test_x conftest$ac_exeext; then
7254   ac_cv_lib_Xaw3d_XawInitializeWidgetSet=yes
7255 else
7256   echo "$as_me: failed program was:" >&5
7257 sed 's/^/| /' conftest.$ac_ext >&5
7258
7259         ac_cv_lib_Xaw3d_XawInitializeWidgetSet=no
7260 fi
7261
7262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7263       conftest$ac_exeext conftest.$ac_ext
7264 LIBS=$ac_check_lib_save_LIBS
7265 fi
7266 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&5
7267 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&6; }
7268 if test $ac_cv_lib_Xaw3d_XawInitializeWidgetSet = yes; then
7269   have_xaw=3d
7270 else
7271    { echo "$as_me:$LINENO: checking for XawInitializeWidgetSet in -lXaw" >&5
7272 echo $ECHO_N "checking for XawInitializeWidgetSet in -lXaw... $ECHO_C" >&6; }
7273 if test "${ac_cv_lib_Xaw_XawInitializeWidgetSet+set}" = set; then
7274   echo $ECHO_N "(cached) $ECHO_C" >&6
7275 else
7276   ac_check_lib_save_LIBS=$LIBS
7277 LIBS="-lXaw  $LIBS"
7278 cat >conftest.$ac_ext <<_ACEOF
7279 /* confdefs.h.  */
7280 _ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h.  */
7284
7285 /* Override any GCC internal prototype to avoid an error.
7286    Use char because int might match the return type of a GCC
7287    builtin and then its argument prototype would still apply.  */
7288 #ifdef __cplusplus
7289 extern "C"
7290 #endif
7291 char XawInitializeWidgetSet ();
7292 int
7293 main ()
7294 {
7295 return XawInitializeWidgetSet ();
7296   ;
7297   return 0;
7298 }
7299 _ACEOF
7300 rm -f conftest.$ac_objext conftest$ac_exeext
7301 if { (ac_try="$ac_link"
7302 case "(($ac_try" in
7303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7304   *) ac_try_echo=$ac_try;;
7305 esac
7306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7307   (eval "$ac_link") 2>conftest.er1
7308   ac_status=$?
7309   grep -v '^ *+' conftest.er1 >conftest.err
7310   rm -f conftest.er1
7311   cat conftest.err >&5
7312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313   (exit $ac_status); } && {
7314          test -z "$ac_c_werror_flag" ||
7315          test ! -s conftest.err
7316        } && test -s conftest$ac_exeext &&
7317        $as_test_x conftest$ac_exeext; then
7318   ac_cv_lib_Xaw_XawInitializeWidgetSet=yes
7319 else
7320   echo "$as_me: failed program was:" >&5
7321 sed 's/^/| /' conftest.$ac_ext >&5
7322
7323         ac_cv_lib_Xaw_XawInitializeWidgetSet=no
7324 fi
7325
7326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7327       conftest$ac_exeext conftest.$ac_ext
7328 LIBS=$ac_check_lib_save_LIBS
7329 fi
7330 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_XawInitializeWidgetSet" >&5
7331 echo "${ECHO_T}$ac_cv_lib_Xaw_XawInitializeWidgetSet" >&6; }
7332 if test $ac_cv_lib_Xaw_XawInitializeWidgetSet = yes; then
7333   have_xaw=yes
7334 else
7335   have_xaw=no
7336 fi
7337
7338 fi
7339
7340   { echo "$as_me:$LINENO: checking for XmCreateForm in -lXm" >&5
7341 echo $ECHO_N "checking for XmCreateForm in -lXm... $ECHO_C" >&6; }
7342 if test "${ac_cv_lib_Xm_XmCreateForm+set}" = set; then
7343   echo $ECHO_N "(cached) $ECHO_C" >&6
7344 else
7345   ac_check_lib_save_LIBS=$LIBS
7346 LIBS="-lXm  $LIBS"
7347 cat >conftest.$ac_ext <<_ACEOF
7348 /* confdefs.h.  */
7349 _ACEOF
7350 cat confdefs.h >>conftest.$ac_ext
7351 cat >>conftest.$ac_ext <<_ACEOF
7352 /* end confdefs.h.  */
7353
7354 /* Override any GCC internal prototype to avoid an error.
7355    Use char because int might match the return type of a GCC
7356    builtin and then its argument prototype would still apply.  */
7357 #ifdef __cplusplus
7358 extern "C"
7359 #endif
7360 char XmCreateForm ();
7361 int
7362 main ()
7363 {
7364 return XmCreateForm ();
7365   ;
7366   return 0;
7367 }
7368 _ACEOF
7369 rm -f conftest.$ac_objext conftest$ac_exeext
7370 if { (ac_try="$ac_link"
7371 case "(($ac_try" in
7372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7373   *) ac_try_echo=$ac_try;;
7374 esac
7375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7376   (eval "$ac_link") 2>conftest.er1
7377   ac_status=$?
7378   grep -v '^ *+' conftest.er1 >conftest.err
7379   rm -f conftest.er1
7380   cat conftest.err >&5
7381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382   (exit $ac_status); } && {
7383          test -z "$ac_c_werror_flag" ||
7384          test ! -s conftest.err
7385        } && test -s conftest$ac_exeext &&
7386        $as_test_x conftest$ac_exeext; then
7387   ac_cv_lib_Xm_XmCreateForm=yes
7388 else
7389   echo "$as_me: failed program was:" >&5
7390 sed 's/^/| /' conftest.$ac_ext >&5
7391
7392         ac_cv_lib_Xm_XmCreateForm=no
7393 fi
7394
7395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7396       conftest$ac_exeext conftest.$ac_ext
7397 LIBS=$ac_check_lib_save_LIBS
7398 fi
7399 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmCreateForm" >&5
7400 echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateForm" >&6; }
7401 if test $ac_cv_lib_Xm_XmCreateForm = yes; then
7402   have_xm=yes
7403 else
7404   have_xm=no
7405 fi
7406
7407
7408 for ac_func in XShmCreatePixmap
7409 do
7410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7411 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7413 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7414   echo $ECHO_N "(cached) $ECHO_C" >&6
7415 else
7416   cat >conftest.$ac_ext <<_ACEOF
7417 /* confdefs.h.  */
7418 _ACEOF
7419 cat confdefs.h >>conftest.$ac_ext
7420 cat >>conftest.$ac_ext <<_ACEOF
7421 /* end confdefs.h.  */
7422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7423    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7424 #define $ac_func innocuous_$ac_func
7425
7426 /* System header to define __stub macros and hopefully few prototypes,
7427     which can conflict with char $ac_func (); below.
7428     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7429     <limits.h> exists even on freestanding compilers.  */
7430
7431 #ifdef __STDC__
7432 # include <limits.h>
7433 #else
7434 # include <assert.h>
7435 #endif
7436
7437 #undef $ac_func
7438
7439 /* Override any GCC internal prototype to avoid an error.
7440    Use char because int might match the return type of a GCC
7441    builtin and then its argument prototype would still apply.  */
7442 #ifdef __cplusplus
7443 extern "C"
7444 #endif
7445 char $ac_func ();
7446 /* The GNU C library defines this for functions which it implements
7447     to always fail with ENOSYS.  Some functions are actually named
7448     something starting with __ and the normal name is an alias.  */
7449 #if defined __stub_$ac_func || defined __stub___$ac_func
7450 choke me
7451 #endif
7452
7453 int
7454 main ()
7455 {
7456 return $ac_func ();
7457   ;
7458   return 0;
7459 }
7460 _ACEOF
7461 rm -f conftest.$ac_objext conftest$ac_exeext
7462 if { (ac_try="$ac_link"
7463 case "(($ac_try" in
7464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7465   *) ac_try_echo=$ac_try;;
7466 esac
7467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7468   (eval "$ac_link") 2>conftest.er1
7469   ac_status=$?
7470   grep -v '^ *+' conftest.er1 >conftest.err
7471   rm -f conftest.er1
7472   cat conftest.err >&5
7473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474   (exit $ac_status); } && {
7475          test -z "$ac_c_werror_flag" ||
7476          test ! -s conftest.err
7477        } && test -s conftest$ac_exeext &&
7478        $as_test_x conftest$ac_exeext; then
7479   eval "$as_ac_var=yes"
7480 else
7481   echo "$as_me: failed program was:" >&5
7482 sed 's/^/| /' conftest.$ac_ext >&5
7483
7484         eval "$as_ac_var=no"
7485 fi
7486
7487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7488       conftest$ac_exeext conftest.$ac_ext
7489 fi
7490 ac_res=`eval echo '${'$as_ac_var'}'`
7491                { echo "$as_me:$LINENO: result: $ac_res" >&5
7492 echo "${ECHO_T}$ac_res" >&6; }
7493 if test `eval echo '${'$as_ac_var'}'` = yes; then
7494   cat >>confdefs.h <<_ACEOF
7495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7496 _ACEOF
7497
7498 fi
7499 done
7500
7501   LIBS=$KEEPLIBS
7502 fi
7503
7504 # Checks for header files.
7505 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7506 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7507 if test "${ac_cv_header_stdc+set}" = set; then
7508   echo $ECHO_N "(cached) $ECHO_C" >&6
7509 else
7510   cat >conftest.$ac_ext <<_ACEOF
7511 /* confdefs.h.  */
7512 _ACEOF
7513 cat confdefs.h >>conftest.$ac_ext
7514 cat >>conftest.$ac_ext <<_ACEOF
7515 /* end confdefs.h.  */
7516 #include <stdlib.h>
7517 #include <stdarg.h>
7518 #include <string.h>
7519 #include <float.h>
7520
7521 int
7522 main ()
7523 {
7524
7525   ;
7526   return 0;
7527 }
7528 _ACEOF
7529 rm -f conftest.$ac_objext
7530 if { (ac_try="$ac_compile"
7531 case "(($ac_try" in
7532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7533   *) ac_try_echo=$ac_try;;
7534 esac
7535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7536   (eval "$ac_compile") 2>conftest.er1
7537   ac_status=$?
7538   grep -v '^ *+' conftest.er1 >conftest.err
7539   rm -f conftest.er1
7540   cat conftest.err >&5
7541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542   (exit $ac_status); } && {
7543          test -z "$ac_c_werror_flag" ||
7544          test ! -s conftest.err
7545        } && test -s conftest.$ac_objext; then
7546   ac_cv_header_stdc=yes
7547 else
7548   echo "$as_me: failed program was:" >&5
7549 sed 's/^/| /' conftest.$ac_ext >&5
7550
7551         ac_cv_header_stdc=no
7552 fi
7553
7554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7555
7556 if test $ac_cv_header_stdc = yes; then
7557   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7558   cat >conftest.$ac_ext <<_ACEOF
7559 /* confdefs.h.  */
7560 _ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h.  */
7564 #include <string.h>
7565
7566 _ACEOF
7567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7568   $EGREP "memchr" >/dev/null 2>&1; then
7569   :
7570 else
7571   ac_cv_header_stdc=no
7572 fi
7573 rm -f conftest*
7574
7575 fi
7576
7577 if test $ac_cv_header_stdc = yes; then
7578   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7579   cat >conftest.$ac_ext <<_ACEOF
7580 /* confdefs.h.  */
7581 _ACEOF
7582 cat confdefs.h >>conftest.$ac_ext
7583 cat >>conftest.$ac_ext <<_ACEOF
7584 /* end confdefs.h.  */
7585 #include <stdlib.h>
7586
7587 _ACEOF
7588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7589   $EGREP "free" >/dev/null 2>&1; then
7590   :
7591 else
7592   ac_cv_header_stdc=no
7593 fi
7594 rm -f conftest*
7595
7596 fi
7597
7598 if test $ac_cv_header_stdc = yes; then
7599   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7600   if test "$cross_compiling" = yes; then
7601   :
7602 else
7603   cat >conftest.$ac_ext <<_ACEOF
7604 /* confdefs.h.  */
7605 _ACEOF
7606 cat confdefs.h >>conftest.$ac_ext
7607 cat >>conftest.$ac_ext <<_ACEOF
7608 /* end confdefs.h.  */
7609 #include <ctype.h>
7610 #include <stdlib.h>
7611 #if ((' ' & 0x0FF) == 0x020)
7612 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7613 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7614 #else
7615 # define ISLOWER(c) \
7616                    (('a' <= (c) && (c) <= 'i') \
7617                      || ('j' <= (c) && (c) <= 'r') \
7618                      || ('s' <= (c) && (c) <= 'z'))
7619 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7620 #endif
7621
7622 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7623 int
7624 main ()
7625 {
7626   int i;
7627   for (i = 0; i < 256; i++)
7628     if (XOR (islower (i), ISLOWER (i))
7629         || toupper (i) != TOUPPER (i))
7630       return 2;
7631   return 0;
7632 }
7633 _ACEOF
7634 rm -f conftest$ac_exeext
7635 if { (ac_try="$ac_link"
7636 case "(($ac_try" in
7637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7638   *) ac_try_echo=$ac_try;;
7639 esac
7640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7641   (eval "$ac_link") 2>&5
7642   ac_status=$?
7643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7645   { (case "(($ac_try" in
7646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7647   *) ac_try_echo=$ac_try;;
7648 esac
7649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7650   (eval "$ac_try") 2>&5
7651   ac_status=$?
7652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653   (exit $ac_status); }; }; then
7654   :
7655 else
7656   echo "$as_me: program exited with status $ac_status" >&5
7657 echo "$as_me: failed program was:" >&5
7658 sed 's/^/| /' conftest.$ac_ext >&5
7659
7660 ( exit $ac_status )
7661 ac_cv_header_stdc=no
7662 fi
7663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7664 fi
7665
7666
7667 fi
7668 fi
7669 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7670 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7671 if test $ac_cv_header_stdc = yes; then
7672
7673 cat >>confdefs.h <<\_ACEOF
7674 #define STDC_HEADERS 1
7675 _ACEOF
7676
7677 fi
7678
7679 #AC_HEADER_STDBOOL
7680 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7681 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7682 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7683   echo $ECHO_N "(cached) $ECHO_C" >&6
7684 else
7685   cat >conftest.$ac_ext <<_ACEOF
7686 /* confdefs.h.  */
7687 _ACEOF
7688 cat confdefs.h >>conftest.$ac_ext
7689 cat >>conftest.$ac_ext <<_ACEOF
7690 /* end confdefs.h.  */
7691 #include <sys/types.h>
7692 #include <sys/wait.h>
7693 #ifndef WEXITSTATUS
7694 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7695 #endif
7696 #ifndef WIFEXITED
7697 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7698 #endif
7699
7700 int
7701 main ()
7702 {
7703   int s;
7704   wait (&s);
7705   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7706   ;
7707   return 0;
7708 }
7709 _ACEOF
7710 rm -f conftest.$ac_objext
7711 if { (ac_try="$ac_compile"
7712 case "(($ac_try" in
7713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7714   *) ac_try_echo=$ac_try;;
7715 esac
7716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7717   (eval "$ac_compile") 2>conftest.er1
7718   ac_status=$?
7719   grep -v '^ *+' conftest.er1 >conftest.err
7720   rm -f conftest.er1
7721   cat conftest.err >&5
7722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723   (exit $ac_status); } && {
7724          test -z "$ac_c_werror_flag" ||
7725          test ! -s conftest.err
7726        } && test -s conftest.$ac_objext; then
7727   ac_cv_header_sys_wait_h=yes
7728 else
7729   echo "$as_me: failed program was:" >&5
7730 sed 's/^/| /' conftest.$ac_ext >&5
7731
7732         ac_cv_header_sys_wait_h=no
7733 fi
7734
7735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7736 fi
7737 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7738 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7739 if test $ac_cv_header_sys_wait_h = yes; then
7740
7741 cat >>confdefs.h <<\_ACEOF
7742 #define HAVE_SYS_WAIT_H 1
7743 _ACEOF
7744
7745 fi
7746
7747 if test "x$WATCOM_C" != xyes ; then
7748 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7749 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7750 if test "${ac_cv_header_time+set}" = set; then
7751   echo $ECHO_N "(cached) $ECHO_C" >&6
7752 else
7753   cat >conftest.$ac_ext <<_ACEOF
7754 /* confdefs.h.  */
7755 _ACEOF
7756 cat confdefs.h >>conftest.$ac_ext
7757 cat >>conftest.$ac_ext <<_ACEOF
7758 /* end confdefs.h.  */
7759 #include <sys/types.h>
7760 #include <sys/time.h>
7761 #include <time.h>
7762
7763 int
7764 main ()
7765 {
7766 if ((struct tm *) 0)
7767 return 0;
7768   ;
7769   return 0;
7770 }
7771 _ACEOF
7772 rm -f conftest.$ac_objext
7773 if { (ac_try="$ac_compile"
7774 case "(($ac_try" in
7775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7776   *) ac_try_echo=$ac_try;;
7777 esac
7778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7779   (eval "$ac_compile") 2>conftest.er1
7780   ac_status=$?
7781   grep -v '^ *+' conftest.er1 >conftest.err
7782   rm -f conftest.er1
7783   cat conftest.err >&5
7784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785   (exit $ac_status); } && {
7786          test -z "$ac_c_werror_flag" ||
7787          test ! -s conftest.err
7788        } && test -s conftest.$ac_objext; then
7789   ac_cv_header_time=yes
7790 else
7791   echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7793
7794         ac_cv_header_time=no
7795 fi
7796
7797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7798 fi
7799 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7800 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7801 if test $ac_cv_header_time = yes; then
7802
7803 cat >>confdefs.h <<\_ACEOF
7804 #define TIME_WITH_SYS_TIME 1
7805 _ACEOF
7806
7807 fi
7808
7809 fi
7810
7811
7812
7813
7814
7815 ac_header_dirent=no
7816 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7817   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7818 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7819 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7821   echo $ECHO_N "(cached) $ECHO_C" >&6
7822 else
7823   cat >conftest.$ac_ext <<_ACEOF
7824 /* confdefs.h.  */
7825 _ACEOF
7826 cat confdefs.h >>conftest.$ac_ext
7827 cat >>conftest.$ac_ext <<_ACEOF
7828 /* end confdefs.h.  */
7829 #include <sys/types.h>
7830 #include <$ac_hdr>
7831
7832 int
7833 main ()
7834 {
7835 if ((DIR *) 0)
7836 return 0;
7837   ;
7838   return 0;
7839 }
7840 _ACEOF
7841 rm -f conftest.$ac_objext
7842 if { (ac_try="$ac_compile"
7843 case "(($ac_try" in
7844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7845   *) ac_try_echo=$ac_try;;
7846 esac
7847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7848   (eval "$ac_compile") 2>conftest.er1
7849   ac_status=$?
7850   grep -v '^ *+' conftest.er1 >conftest.err
7851   rm -f conftest.er1
7852   cat conftest.err >&5
7853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854   (exit $ac_status); } && {
7855          test -z "$ac_c_werror_flag" ||
7856          test ! -s conftest.err
7857        } && test -s conftest.$ac_objext; then
7858   eval "$as_ac_Header=yes"
7859 else
7860   echo "$as_me: failed program was:" >&5
7861 sed 's/^/| /' conftest.$ac_ext >&5
7862
7863         eval "$as_ac_Header=no"
7864 fi
7865
7866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7867 fi
7868 ac_res=`eval echo '${'$as_ac_Header'}'`
7869                { echo "$as_me:$LINENO: result: $ac_res" >&5
7870 echo "${ECHO_T}$ac_res" >&6; }
7871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7872   cat >>confdefs.h <<_ACEOF
7873 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7874 _ACEOF
7875
7876 ac_header_dirent=$ac_hdr; break
7877 fi
7878
7879 done
7880 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7881 if test $ac_header_dirent = dirent.h; then
7882   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7883 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7884 if test "${ac_cv_search_opendir+set}" = set; then
7885   echo $ECHO_N "(cached) $ECHO_C" >&6
7886 else
7887   ac_func_search_save_LIBS=$LIBS
7888 cat >conftest.$ac_ext <<_ACEOF
7889 /* confdefs.h.  */
7890 _ACEOF
7891 cat confdefs.h >>conftest.$ac_ext
7892 cat >>conftest.$ac_ext <<_ACEOF
7893 /* end confdefs.h.  */
7894
7895 /* Override any GCC internal prototype to avoid an error.
7896    Use char because int might match the return type of a GCC
7897    builtin and then its argument prototype would still apply.  */
7898 #ifdef __cplusplus
7899 extern "C"
7900 #endif
7901 char opendir ();
7902 int
7903 main ()
7904 {
7905 return opendir ();
7906   ;
7907   return 0;
7908 }
7909 _ACEOF
7910 for ac_lib in '' dir; do
7911   if test -z "$ac_lib"; then
7912     ac_res="none required"
7913   else
7914     ac_res=-l$ac_lib
7915     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7916   fi
7917   rm -f conftest.$ac_objext conftest$ac_exeext
7918 if { (ac_try="$ac_link"
7919 case "(($ac_try" in
7920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7921   *) ac_try_echo=$ac_try;;
7922 esac
7923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7924   (eval "$ac_link") 2>conftest.er1
7925   ac_status=$?
7926   grep -v '^ *+' conftest.er1 >conftest.err
7927   rm -f conftest.er1
7928   cat conftest.err >&5
7929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930   (exit $ac_status); } && {
7931          test -z "$ac_c_werror_flag" ||
7932          test ! -s conftest.err
7933        } && test -s conftest$ac_exeext &&
7934        $as_test_x conftest$ac_exeext; then
7935   ac_cv_search_opendir=$ac_res
7936 else
7937   echo "$as_me: failed program was:" >&5
7938 sed 's/^/| /' conftest.$ac_ext >&5
7939
7940
7941 fi
7942
7943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7944       conftest$ac_exeext
7945   if test "${ac_cv_search_opendir+set}" = set; then
7946   break
7947 fi
7948 done
7949 if test "${ac_cv_search_opendir+set}" = set; then
7950   :
7951 else
7952   ac_cv_search_opendir=no
7953 fi
7954 rm conftest.$ac_ext
7955 LIBS=$ac_func_search_save_LIBS
7956 fi
7957 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7958 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7959 ac_res=$ac_cv_search_opendir
7960 if test "$ac_res" != no; then
7961   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7962
7963 fi
7964
7965 else
7966   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7967 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7968 if test "${ac_cv_search_opendir+set}" = set; then
7969   echo $ECHO_N "(cached) $ECHO_C" >&6
7970 else
7971   ac_func_search_save_LIBS=$LIBS
7972 cat >conftest.$ac_ext <<_ACEOF
7973 /* confdefs.h.  */
7974 _ACEOF
7975 cat confdefs.h >>conftest.$ac_ext
7976 cat >>conftest.$ac_ext <<_ACEOF
7977 /* end confdefs.h.  */
7978
7979 /* Override any GCC internal prototype to avoid an error.
7980    Use char because int might match the return type of a GCC
7981    builtin and then its argument prototype would still apply.  */
7982 #ifdef __cplusplus
7983 extern "C"
7984 #endif
7985 char opendir ();
7986 int
7987 main ()
7988 {
7989 return opendir ();
7990   ;
7991   return 0;
7992 }
7993 _ACEOF
7994 for ac_lib in '' x; do
7995   if test -z "$ac_lib"; then
7996     ac_res="none required"
7997   else
7998     ac_res=-l$ac_lib
7999     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8000   fi
8001   rm -f conftest.$ac_objext conftest$ac_exeext
8002 if { (ac_try="$ac_link"
8003 case "(($ac_try" in
8004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8005   *) ac_try_echo=$ac_try;;
8006 esac
8007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8008   (eval "$ac_link") 2>conftest.er1
8009   ac_status=$?
8010   grep -v '^ *+' conftest.er1 >conftest.err
8011   rm -f conftest.er1
8012   cat conftest.err >&5
8013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014   (exit $ac_status); } && {
8015          test -z "$ac_c_werror_flag" ||
8016          test ! -s conftest.err
8017        } && test -s conftest$ac_exeext &&
8018        $as_test_x conftest$ac_exeext; then
8019   ac_cv_search_opendir=$ac_res
8020 else
8021   echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8023
8024
8025 fi
8026
8027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8028       conftest$ac_exeext
8029   if test "${ac_cv_search_opendir+set}" = set; then
8030   break
8031 fi
8032 done
8033 if test "${ac_cv_search_opendir+set}" = set; then
8034   :
8035 else
8036   ac_cv_search_opendir=no
8037 fi
8038 rm conftest.$ac_ext
8039 LIBS=$ac_func_search_save_LIBS
8040 fi
8041 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8042 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8043 ac_res=$ac_cv_search_opendir
8044 if test "$ac_res" != no; then
8045   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8046
8047 fi
8048
8049 fi
8050
8051 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8062                   inttypes.h stdint.h unistd.h
8063 do
8064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8065 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8068   echo $ECHO_N "(cached) $ECHO_C" >&6
8069 else
8070   cat >conftest.$ac_ext <<_ACEOF
8071 /* confdefs.h.  */
8072 _ACEOF
8073 cat confdefs.h >>conftest.$ac_ext
8074 cat >>conftest.$ac_ext <<_ACEOF
8075 /* end confdefs.h.  */
8076 $ac_includes_default
8077
8078 #include <$ac_header>
8079 _ACEOF
8080 rm -f conftest.$ac_objext
8081 if { (ac_try="$ac_compile"
8082 case "(($ac_try" in
8083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8084   *) ac_try_echo=$ac_try;;
8085 esac
8086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8087   (eval "$ac_compile") 2>conftest.er1
8088   ac_status=$?
8089   grep -v '^ *+' conftest.er1 >conftest.err
8090   rm -f conftest.er1
8091   cat conftest.err >&5
8092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093   (exit $ac_status); } && {
8094          test -z "$ac_c_werror_flag" ||
8095          test ! -s conftest.err
8096        } && test -s conftest.$ac_objext; then
8097   eval "$as_ac_Header=yes"
8098 else
8099   echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.$ac_ext >&5
8101
8102         eval "$as_ac_Header=no"
8103 fi
8104
8105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106 fi
8107 ac_res=`eval echo '${'$as_ac_Header'}'`
8108                { echo "$as_me:$LINENO: result: $ac_res" >&5
8109 echo "${ECHO_T}$ac_res" >&6; }
8110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8111   cat >>confdefs.h <<_ACEOF
8112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8113 _ACEOF
8114
8115 fi
8116
8117 done
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158 for ac_header in \
8159   arpa/inet.h \
8160   errno.h \
8161   getopt.h \
8162   glob.h \
8163   dlfcn.h \
8164   fcntl.h \
8165   inttypes.h \
8166   limits.h \
8167   machine/endian.h \
8168   malloc.h \
8169   memory.h \
8170   netdb.h \
8171   netinet/in.h \
8172   nlist.h \
8173   stddef.h \
8174   stdlib.h \
8175   stdint.h \
8176   string.h \
8177   strings.h \
8178   stropts.h \
8179   soundcard.h \
8180   alsa/asoundlib.h \
8181   sys/asoundlib.h \
8182   sys/audioio.h \
8183   sys/awe_voice.h\
8184   sys/ioctl.h \
8185   sys/ipc.h \
8186   sys/param.h \
8187   sys/shm.h \
8188   sys/socket.h \
8189   sys/soundcard.h \
8190   sys/param.h \
8191   sys/time.h \
8192   sys/types.h \
8193   sys/sysctl.h \
8194   termios.h \
8195   unistd.h \
8196   X11/Xlib.h
8197 do
8198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8200   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8203   echo $ECHO_N "(cached) $ECHO_C" >&6
8204 fi
8205 ac_res=`eval echo '${'$as_ac_Header'}'`
8206                { echo "$as_me:$LINENO: result: $ac_res" >&5
8207 echo "${ECHO_T}$ac_res" >&6; }
8208 else
8209   # Is the header compilable?
8210 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8212 cat >conftest.$ac_ext <<_ACEOF
8213 /* confdefs.h.  */
8214 _ACEOF
8215 cat confdefs.h >>conftest.$ac_ext
8216 cat >>conftest.$ac_ext <<_ACEOF
8217 /* end confdefs.h.  */
8218 $ac_includes_default
8219 #include <$ac_header>
8220 _ACEOF
8221 rm -f conftest.$ac_objext
8222 if { (ac_try="$ac_compile"
8223 case "(($ac_try" in
8224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8225   *) ac_try_echo=$ac_try;;
8226 esac
8227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8228   (eval "$ac_compile") 2>conftest.er1
8229   ac_status=$?
8230   grep -v '^ *+' conftest.er1 >conftest.err
8231   rm -f conftest.er1
8232   cat conftest.err >&5
8233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234   (exit $ac_status); } && {
8235          test -z "$ac_c_werror_flag" ||
8236          test ! -s conftest.err
8237        } && test -s conftest.$ac_objext; then
8238   ac_header_compiler=yes
8239 else
8240   echo "$as_me: failed program was:" >&5
8241 sed 's/^/| /' conftest.$ac_ext >&5
8242
8243         ac_header_compiler=no
8244 fi
8245
8246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8247 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8248 echo "${ECHO_T}$ac_header_compiler" >&6; }
8249
8250 # Is the header present?
8251 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8253 cat >conftest.$ac_ext <<_ACEOF
8254 /* confdefs.h.  */
8255 _ACEOF
8256 cat confdefs.h >>conftest.$ac_ext
8257 cat >>conftest.$ac_ext <<_ACEOF
8258 /* end confdefs.h.  */
8259 #include <$ac_header>
8260 _ACEOF
8261 if { (ac_try="$ac_cpp conftest.$ac_ext"
8262 case "(($ac_try" in
8263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8264   *) ac_try_echo=$ac_try;;
8265 esac
8266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8267   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8268   ac_status=$?
8269   grep -v '^ *+' conftest.er1 >conftest.err
8270   rm -f conftest.er1
8271   cat conftest.err >&5
8272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273   (exit $ac_status); } >/dev/null && {
8274          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8275          test ! -s conftest.err
8276        }; then
8277   ac_header_preproc=yes
8278 else
8279   echo "$as_me: failed program was:" >&5
8280 sed 's/^/| /' conftest.$ac_ext >&5
8281
8282   ac_header_preproc=no
8283 fi
8284
8285 rm -f conftest.err conftest.$ac_ext
8286 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8287 echo "${ECHO_T}$ac_header_preproc" >&6; }
8288
8289 # So?  What about this header?
8290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8291   yes:no: )
8292     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8294     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8296     ac_header_preproc=yes
8297     ;;
8298   no:yes:* )
8299     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8301     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8302 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8303     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8305     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8306 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8307     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8309     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8311     ( cat <<\_ASBOX
8312 ## ------------------------------- ##
8313 ## Report this to root@mput.dip.jp ##
8314 ## ------------------------------- ##
8315 _ASBOX
8316      ) | sed "s/^/$as_me: WARNING:     /" >&2
8317     ;;
8318 esac
8319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8322   echo $ECHO_N "(cached) $ECHO_C" >&6
8323 else
8324   eval "$as_ac_Header=\$ac_header_preproc"
8325 fi
8326 ac_res=`eval echo '${'$as_ac_Header'}'`
8327                { echo "$as_me:$LINENO: result: $ac_res" >&5
8328 echo "${ECHO_T}$ac_res" >&6; }
8329
8330 fi
8331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8332   cat >>confdefs.h <<_ACEOF
8333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8334 _ACEOF
8335
8336 fi
8337
8338 done
8339
8340
8341
8342 for ac_header in \
8343   X11/extensions/XShm.h X11/Xmu/ExtAgent.h
8344 do
8345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8346 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8349   echo $ECHO_N "(cached) $ECHO_C" >&6
8350 else
8351   cat >conftest.$ac_ext <<_ACEOF
8352 /* confdefs.h.  */
8353 _ACEOF
8354 cat confdefs.h >>conftest.$ac_ext
8355 cat >>conftest.$ac_ext <<_ACEOF
8356 /* end confdefs.h.  */
8357
8358 #ifdef HAVE_X11_XLIB_H
8359 #include <X11/Xlib.h>
8360 #endif
8361
8362
8363 #include <$ac_header>
8364 _ACEOF
8365 rm -f conftest.$ac_objext
8366 if { (ac_try="$ac_compile"
8367 case "(($ac_try" in
8368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369   *) ac_try_echo=$ac_try;;
8370 esac
8371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8372   (eval "$ac_compile") 2>conftest.er1
8373   ac_status=$?
8374   grep -v '^ *+' conftest.er1 >conftest.err
8375   rm -f conftest.er1
8376   cat conftest.err >&5
8377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378   (exit $ac_status); } && {
8379          test -z "$ac_c_werror_flag" ||
8380          test ! -s conftest.err
8381        } && test -s conftest.$ac_objext; then
8382   eval "$as_ac_Header=yes"
8383 else
8384   echo "$as_me: failed program was:" >&5
8385 sed 's/^/| /' conftest.$ac_ext >&5
8386
8387         eval "$as_ac_Header=no"
8388 fi
8389
8390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8391 fi
8392 ac_res=`eval echo '${'$as_ac_Header'}'`
8393                { echo "$as_me:$LINENO: result: $ac_res" >&5
8394 echo "${ECHO_T}$ac_res" >&6; }
8395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8396   cat >>confdefs.h <<_ACEOF
8397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8398 _ACEOF
8399
8400 fi
8401
8402 done
8403
8404 if test "${ac_cv_header_string_h+set}" = set; then
8405   { echo "$as_me:$LINENO: checking for string.h" >&5
8406 echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
8407 if test "${ac_cv_header_string_h+set}" = set; then
8408   echo $ECHO_N "(cached) $ECHO_C" >&6
8409 fi
8410 { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
8411 echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
8412 else
8413   # Is the header compilable?
8414 { echo "$as_me:$LINENO: checking string.h usability" >&5
8415 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; }
8416 cat >conftest.$ac_ext <<_ACEOF
8417 /* confdefs.h.  */
8418 _ACEOF
8419 cat confdefs.h >>conftest.$ac_ext
8420 cat >>conftest.$ac_ext <<_ACEOF
8421 /* end confdefs.h.  */
8422 $ac_includes_default
8423 #include <string.h>
8424 _ACEOF
8425 rm -f conftest.$ac_objext
8426 if { (ac_try="$ac_compile"
8427 case "(($ac_try" in
8428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8429   *) ac_try_echo=$ac_try;;
8430 esac
8431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8432   (eval "$ac_compile") 2>conftest.er1
8433   ac_status=$?
8434   grep -v '^ *+' conftest.er1 >conftest.err
8435   rm -f conftest.er1
8436   cat conftest.err >&5
8437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438   (exit $ac_status); } && {
8439          test -z "$ac_c_werror_flag" ||
8440          test ! -s conftest.err
8441        } && test -s conftest.$ac_objext; then
8442   ac_header_compiler=yes
8443 else
8444   echo "$as_me: failed program was:" >&5
8445 sed 's/^/| /' conftest.$ac_ext >&5
8446
8447         ac_header_compiler=no
8448 fi
8449
8450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8451 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8452 echo "${ECHO_T}$ac_header_compiler" >&6; }
8453
8454 # Is the header present?
8455 { echo "$as_me:$LINENO: checking string.h presence" >&5
8456 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; }
8457 cat >conftest.$ac_ext <<_ACEOF
8458 /* confdefs.h.  */
8459 _ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h.  */
8463 #include <string.h>
8464 _ACEOF
8465 if { (ac_try="$ac_cpp conftest.$ac_ext"
8466 case "(($ac_try" in
8467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8468   *) ac_try_echo=$ac_try;;
8469 esac
8470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8471   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8472   ac_status=$?
8473   grep -v '^ *+' conftest.er1 >conftest.err
8474   rm -f conftest.er1
8475   cat conftest.err >&5
8476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477   (exit $ac_status); } >/dev/null && {
8478          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8479          test ! -s conftest.err
8480        }; then
8481   ac_header_preproc=yes
8482 else
8483   echo "$as_me: failed program was:" >&5
8484 sed 's/^/| /' conftest.$ac_ext >&5
8485
8486   ac_header_preproc=no
8487 fi
8488
8489 rm -f conftest.err conftest.$ac_ext
8490 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8491 echo "${ECHO_T}$ac_header_preproc" >&6; }
8492
8493 # So?  What about this header?
8494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8495   yes:no: )
8496     { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
8497 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8498     { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
8499 echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
8500     ac_header_preproc=yes
8501     ;;
8502   no:yes:* )
8503     { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
8504 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
8505     { echo "$as_me:$LINENO: WARNING: string.h:     check for missing prerequisite headers?" >&5
8506 echo "$as_me: WARNING: string.h:     check for missing prerequisite headers?" >&2;}
8507     { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
8508 echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
8509     { echo "$as_me:$LINENO: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&5
8510 echo "$as_me: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8511     { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
8512 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
8513     { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
8514 echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
8515     ( cat <<\_ASBOX
8516 ## ------------------------------- ##
8517 ## Report this to root@mput.dip.jp ##
8518 ## ------------------------------- ##
8519 _ASBOX
8520      ) | sed "s/^/$as_me: WARNING:     /" >&2
8521     ;;
8522 esac
8523 { echo "$as_me:$LINENO: checking for string.h" >&5
8524 echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
8525 if test "${ac_cv_header_string_h+set}" = set; then
8526   echo $ECHO_N "(cached) $ECHO_C" >&6
8527 else
8528   ac_cv_header_string_h=$ac_header_preproc
8529 fi
8530 { echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
8531 echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
8532
8533 fi
8534 if test $ac_cv_header_string_h = yes; then
8535   :
8536 else
8537
8538 cat >>confdefs.h <<\_ACEOF
8539 #define NO_STRING_H 1
8540 _ACEOF
8541
8542 fi
8543
8544
8545
8546 # Checks for typedefs, structures, and compiler characteristics.
8547 if test "x$WATCOM_C" != xyes ; then
8548 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8549 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
8550 if test "${ac_cv_c_bigendian+set}" = set; then
8551   echo $ECHO_N "(cached) $ECHO_C" >&6
8552 else
8553   # See if sys/param.h defines the BYTE_ORDER macro.
8554 cat >conftest.$ac_ext <<_ACEOF
8555 /* confdefs.h.  */
8556 _ACEOF
8557 cat confdefs.h >>conftest.$ac_ext
8558 cat >>conftest.$ac_ext <<_ACEOF
8559 /* end confdefs.h.  */
8560 #include <sys/types.h>
8561 #include <sys/param.h>
8562
8563 int
8564 main ()
8565 {
8566 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
8567         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
8568  bogus endian macros
8569 #endif
8570
8571   ;
8572   return 0;
8573 }
8574 _ACEOF
8575 rm -f conftest.$ac_objext
8576 if { (ac_try="$ac_compile"
8577 case "(($ac_try" in
8578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579   *) ac_try_echo=$ac_try;;
8580 esac
8581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8582   (eval "$ac_compile") 2>conftest.er1
8583   ac_status=$?
8584   grep -v '^ *+' conftest.er1 >conftest.err
8585   rm -f conftest.er1
8586   cat conftest.err >&5
8587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588   (exit $ac_status); } && {
8589          test -z "$ac_c_werror_flag" ||
8590          test ! -s conftest.err
8591        } && test -s conftest.$ac_objext; then
8592   # It does; now see whether it defined to BIG_ENDIAN or not.
8593 cat >conftest.$ac_ext <<_ACEOF
8594 /* confdefs.h.  */
8595 _ACEOF
8596 cat confdefs.h >>conftest.$ac_ext
8597 cat >>conftest.$ac_ext <<_ACEOF
8598 /* end confdefs.h.  */
8599 #include <sys/types.h>
8600 #include <sys/param.h>
8601
8602 int
8603 main ()
8604 {
8605 #if BYTE_ORDER != BIG_ENDIAN
8606  not big endian
8607 #endif
8608
8609   ;
8610   return 0;
8611 }
8612 _ACEOF
8613 rm -f conftest.$ac_objext
8614 if { (ac_try="$ac_compile"
8615 case "(($ac_try" in
8616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8617   *) ac_try_echo=$ac_try;;
8618 esac
8619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8620   (eval "$ac_compile") 2>conftest.er1
8621   ac_status=$?
8622   grep -v '^ *+' conftest.er1 >conftest.err
8623   rm -f conftest.er1
8624   cat conftest.err >&5
8625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626   (exit $ac_status); } && {
8627          test -z "$ac_c_werror_flag" ||
8628          test ! -s conftest.err
8629        } && test -s conftest.$ac_objext; then
8630   ac_cv_c_bigendian=yes
8631 else
8632   echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8634
8635         ac_cv_c_bigendian=no
8636 fi
8637
8638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8639 else
8640   echo "$as_me: failed program was:" >&5
8641 sed 's/^/| /' conftest.$ac_ext >&5
8642
8643         # It does not; compile a test program.
8644 if test "$cross_compiling" = yes; then
8645   # try to guess the endianness by grepping values into an object file
8646   ac_cv_c_bigendian=unknown
8647   cat >conftest.$ac_ext <<_ACEOF
8648 /* confdefs.h.  */
8649 _ACEOF
8650 cat confdefs.h >>conftest.$ac_ext
8651 cat >>conftest.$ac_ext <<_ACEOF
8652 /* end confdefs.h.  */
8653 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8654 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8655 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8656 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8657 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8658 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8659 int
8660 main ()
8661 {
8662  _ascii (); _ebcdic ();
8663   ;
8664   return 0;
8665 }
8666 _ACEOF
8667 rm -f conftest.$ac_objext
8668 if { (ac_try="$ac_compile"
8669 case "(($ac_try" in
8670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8671   *) ac_try_echo=$ac_try;;
8672 esac
8673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8674   (eval "$ac_compile") 2>conftest.er1
8675   ac_status=$?
8676   grep -v '^ *+' conftest.er1 >conftest.err
8677   rm -f conftest.er1
8678   cat conftest.err >&5
8679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680   (exit $ac_status); } && {
8681          test -z "$ac_c_werror_flag" ||
8682          test ! -s conftest.err
8683        } && test -s conftest.$ac_objext; then
8684   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8685   ac_cv_c_bigendian=yes
8686 fi
8687 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8688   if test "$ac_cv_c_bigendian" = unknown; then
8689     ac_cv_c_bigendian=no
8690   else
8691     # finding both strings is unlikely to happen, but who knows?
8692     ac_cv_c_bigendian=unknown
8693   fi
8694 fi
8695 else
8696   echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.$ac_ext >&5
8698
8699
8700 fi
8701
8702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8703 else
8704   cat >conftest.$ac_ext <<_ACEOF
8705 /* confdefs.h.  */
8706 _ACEOF
8707 cat confdefs.h >>conftest.$ac_ext
8708 cat >>conftest.$ac_ext <<_ACEOF
8709 /* end confdefs.h.  */
8710 $ac_includes_default
8711 int
8712 main ()
8713 {
8714
8715   /* Are we little or big endian?  From Harbison&Steele.  */
8716   union
8717   {
8718     long int l;
8719     char c[sizeof (long int)];
8720   } u;
8721   u.l = 1;
8722   return u.c[sizeof (long int) - 1] == 1;
8723
8724   ;
8725   return 0;
8726 }
8727 _ACEOF
8728 rm -f conftest$ac_exeext
8729 if { (ac_try="$ac_link"
8730 case "(($ac_try" in
8731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8732   *) ac_try_echo=$ac_try;;
8733 esac
8734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8735   (eval "$ac_link") 2>&5
8736   ac_status=$?
8737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8739   { (case "(($ac_try" in
8740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8741   *) ac_try_echo=$ac_try;;
8742 esac
8743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8744   (eval "$ac_try") 2>&5
8745   ac_status=$?
8746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747   (exit $ac_status); }; }; then
8748   ac_cv_c_bigendian=no
8749 else
8750   echo "$as_me: program exited with status $ac_status" >&5
8751 echo "$as_me: failed program was:" >&5
8752 sed 's/^/| /' conftest.$ac_ext >&5
8753
8754 ( exit $ac_status )
8755 ac_cv_c_bigendian=yes
8756 fi
8757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8758 fi
8759
8760
8761 fi
8762
8763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8764 fi
8765 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8766 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
8767 case $ac_cv_c_bigendian in
8768   yes)
8769
8770 cat >>confdefs.h <<\_ACEOF
8771 #define WORDS_BIGENDIAN 1
8772 _ACEOF
8773  ;;
8774   no)
8775      ;;
8776   *)
8777     { { echo "$as_me:$LINENO: error: unknown endianness
8778 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8779 echo "$as_me: error: unknown endianness
8780 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8781    { (exit 1); exit 1; }; } ;;
8782 esac
8783
8784 fi
8785
8786 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
8787 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
8788 if test "${ac_cv_c_char_unsigned+set}" = set; then
8789   echo $ECHO_N "(cached) $ECHO_C" >&6
8790 else
8791   cat >conftest.$ac_ext <<_ACEOF
8792 /* confdefs.h.  */
8793 _ACEOF
8794 cat confdefs.h >>conftest.$ac_ext
8795 cat >>conftest.$ac_ext <<_ACEOF
8796 /* end confdefs.h.  */
8797 $ac_includes_default
8798 int
8799 main ()
8800 {
8801 static int test_array [1 - 2 * !(((char) -1) < 0)];
8802 test_array [0] = 0
8803
8804   ;
8805   return 0;
8806 }
8807 _ACEOF
8808 rm -f conftest.$ac_objext
8809 if { (ac_try="$ac_compile"
8810 case "(($ac_try" in
8811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8812   *) ac_try_echo=$ac_try;;
8813 esac
8814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8815   (eval "$ac_compile") 2>conftest.er1
8816   ac_status=$?
8817   grep -v '^ *+' conftest.er1 >conftest.err
8818   rm -f conftest.er1
8819   cat conftest.err >&5
8820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821   (exit $ac_status); } && {
8822          test -z "$ac_c_werror_flag" ||
8823          test ! -s conftest.err
8824        } && test -s conftest.$ac_objext; then
8825   ac_cv_c_char_unsigned=no
8826 else
8827   echo "$as_me: failed program was:" >&5
8828 sed 's/^/| /' conftest.$ac_ext >&5
8829
8830         ac_cv_c_char_unsigned=yes
8831 fi
8832
8833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8834 fi
8835 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
8836 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
8837 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
8838   cat >>confdefs.h <<\_ACEOF
8839 #define __CHAR_UNSIGNED__ 1
8840 _ACEOF
8841
8842 fi
8843
8844 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8845 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8846 if test "${ac_cv_c_const+set}" = set; then
8847   echo $ECHO_N "(cached) $ECHO_C" >&6
8848 else
8849   cat >conftest.$ac_ext <<_ACEOF
8850 /* confdefs.h.  */
8851 _ACEOF
8852 cat confdefs.h >>conftest.$ac_ext
8853 cat >>conftest.$ac_ext <<_ACEOF
8854 /* end confdefs.h.  */
8855
8856 int
8857 main ()
8858 {
8859 /* FIXME: Include the comments suggested by Paul. */
8860 #ifndef __cplusplus
8861   /* Ultrix mips cc rejects this.  */
8862   typedef int charset[2];
8863   const charset cs;
8864   /* SunOS 4.1.1 cc rejects this.  */
8865   char const *const *pcpcc;
8866   char **ppc;
8867   /* NEC SVR4.0.2 mips cc rejects this.  */
8868   struct point {int x, y;};
8869   static struct point const zero = {0,0};
8870   /* AIX XL C 1.02.0.0 rejects this.
8871      It does not let you subtract one const X* pointer from another in
8872      an arm of an if-expression whose if-part is not a constant
8873      expression */
8874   const char *g = "string";
8875   pcpcc = &g + (g ? g-g : 0);
8876   /* HPUX 7.0 cc rejects these. */
8877   ++pcpcc;
8878   ppc = (char**) pcpcc;
8879   pcpcc = (char const *const *) ppc;
8880   { /* SCO 3.2v4 cc rejects this.  */
8881     char *t;
8882     char const *s = 0 ? (char *) 0 : (char const *) 0;
8883
8884     *t++ = 0;
8885     if (s) return 0;
8886   }
8887   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8888     int x[] = {25, 17};
8889     const int *foo = &x[0];
8890     ++foo;
8891   }
8892   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8893     typedef const int *iptr;
8894     iptr p = 0;
8895     ++p;
8896   }
8897   { /* AIX XL C 1.02.0.0 rejects this saying
8898        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8899     struct s { int j; const int *ap[3]; };
8900     struct s *b; b->j = 5;
8901   }
8902   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8903     const int foo = 10;
8904     if (!foo) return 0;
8905   }
8906   return !cs[0] && !zero.x;
8907 #endif
8908
8909   ;
8910   return 0;
8911 }
8912 _ACEOF
8913 rm -f conftest.$ac_objext
8914 if { (ac_try="$ac_compile"
8915 case "(($ac_try" in
8916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8917   *) ac_try_echo=$ac_try;;
8918 esac
8919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8920   (eval "$ac_compile") 2>conftest.er1
8921   ac_status=$?
8922   grep -v '^ *+' conftest.er1 >conftest.err
8923   rm -f conftest.er1
8924   cat conftest.err >&5
8925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926   (exit $ac_status); } && {
8927          test -z "$ac_c_werror_flag" ||
8928          test ! -s conftest.err
8929        } && test -s conftest.$ac_objext; then
8930   ac_cv_c_const=yes
8931 else
8932   echo "$as_me: failed program was:" >&5
8933 sed 's/^/| /' conftest.$ac_ext >&5
8934
8935         ac_cv_c_const=no
8936 fi
8937
8938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8939 fi
8940 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8941 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8942 if test $ac_cv_c_const = no; then
8943
8944 cat >>confdefs.h <<\_ACEOF
8945 #define const
8946 _ACEOF
8947
8948 fi
8949
8950 { echo "$as_me:$LINENO: checking for inline" >&5
8951 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8952 if test "${ac_cv_c_inline+set}" = set; then
8953   echo $ECHO_N "(cached) $ECHO_C" >&6
8954 else
8955   ac_cv_c_inline=no
8956 for ac_kw in inline __inline__ __inline; do
8957   cat >conftest.$ac_ext <<_ACEOF
8958 /* confdefs.h.  */
8959 _ACEOF
8960 cat confdefs.h >>conftest.$ac_ext
8961 cat >>conftest.$ac_ext <<_ACEOF
8962 /* end confdefs.h.  */
8963 #ifndef __cplusplus
8964 typedef int foo_t;
8965 static $ac_kw foo_t static_foo () {return 0; }
8966 $ac_kw foo_t foo () {return 0; }
8967 #endif
8968
8969 _ACEOF
8970 rm -f conftest.$ac_objext
8971 if { (ac_try="$ac_compile"
8972 case "(($ac_try" in
8973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8974   *) ac_try_echo=$ac_try;;
8975 esac
8976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8977   (eval "$ac_compile") 2>conftest.er1
8978   ac_status=$?
8979   grep -v '^ *+' conftest.er1 >conftest.err
8980   rm -f conftest.er1
8981   cat conftest.err >&5
8982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983   (exit $ac_status); } && {
8984          test -z "$ac_c_werror_flag" ||
8985          test ! -s conftest.err
8986        } && test -s conftest.$ac_objext; then
8987   ac_cv_c_inline=$ac_kw
8988 else
8989   echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8991
8992
8993 fi
8994
8995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8996   test "$ac_cv_c_inline" != no && break
8997 done
8998
8999 fi
9000 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9001 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
9002
9003
9004 case $ac_cv_c_inline in
9005   inline | yes) ;;
9006   *)
9007     case $ac_cv_c_inline in
9008       no) ac_val=;;
9009       *) ac_val=$ac_cv_c_inline;;
9010     esac
9011     cat >>confdefs.h <<_ACEOF
9012 #ifndef __cplusplus
9013 #define inline $ac_val
9014 #endif
9015 _ACEOF
9016     ;;
9017 esac
9018
9019 { echo "$as_me:$LINENO: checking for working volatile" >&5
9020 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
9021 if test "${ac_cv_c_volatile+set}" = set; then
9022   echo $ECHO_N "(cached) $ECHO_C" >&6
9023 else
9024   cat >conftest.$ac_ext <<_ACEOF
9025 /* confdefs.h.  */
9026 _ACEOF
9027 cat confdefs.h >>conftest.$ac_ext
9028 cat >>conftest.$ac_ext <<_ACEOF
9029 /* end confdefs.h.  */
9030
9031 int
9032 main ()
9033 {
9034
9035 volatile int x;
9036 int * volatile y = (int *) 0;
9037 return !x && !y;
9038   ;
9039   return 0;
9040 }
9041 _ACEOF
9042 rm -f conftest.$ac_objext
9043 if { (ac_try="$ac_compile"
9044 case "(($ac_try" in
9045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9046   *) ac_try_echo=$ac_try;;
9047 esac
9048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9049   (eval "$ac_compile") 2>conftest.er1
9050   ac_status=$?
9051   grep -v '^ *+' conftest.er1 >conftest.err
9052   rm -f conftest.er1
9053   cat conftest.err >&5
9054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055   (exit $ac_status); } && {
9056          test -z "$ac_c_werror_flag" ||
9057          test ! -s conftest.err
9058        } && test -s conftest.$ac_objext; then
9059   ac_cv_c_volatile=yes
9060 else
9061   echo "$as_me: failed program was:" >&5
9062 sed 's/^/| /' conftest.$ac_ext >&5
9063
9064         ac_cv_c_volatile=no
9065 fi
9066
9067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9068 fi
9069 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9070 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
9071 if test $ac_cv_c_volatile = no; then
9072
9073 cat >>confdefs.h <<\_ACEOF
9074 #define volatile
9075 _ACEOF
9076
9077 fi
9078
9079 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9080 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
9081 if test "${ac_cv_c_stringize+set}" = set; then
9082   echo $ECHO_N "(cached) $ECHO_C" >&6
9083 else
9084   cat >conftest.$ac_ext <<_ACEOF
9085 /* confdefs.h.  */
9086 _ACEOF
9087 cat confdefs.h >>conftest.$ac_ext
9088 cat >>conftest.$ac_ext <<_ACEOF
9089 /* end confdefs.h.  */
9090 #define x(y) #y
9091
9092 char *s = x(teststring);
9093 _ACEOF
9094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9095   $EGREP "#teststring" >/dev/null 2>&1; then
9096   ac_cv_c_stringize=no
9097 else
9098   ac_cv_c_stringize=yes
9099 fi
9100 rm -f conftest*
9101
9102 fi
9103 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9104 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
9105 if test $ac_cv_c_stringize = yes; then
9106
9107 cat >>confdefs.h <<\_ACEOF
9108 #define HAVE_STRINGIZE 1
9109 _ACEOF
9110
9111 fi
9112
9113 { echo "$as_me:$LINENO: checking for function prototypes" >&5
9114 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
9115 if test "$ac_cv_prog_cc_c89" != no; then
9116   { echo "$as_me:$LINENO: result: yes" >&5
9117 echo "${ECHO_T}yes" >&6; }
9118
9119 cat >>confdefs.h <<\_ACEOF
9120 #define PROTOTYPES 1
9121 _ACEOF
9122
9123
9124 cat >>confdefs.h <<\_ACEOF
9125 #define __PROTOTYPES 1
9126 _ACEOF
9127
9128 else
9129   { echo "$as_me:$LINENO: result: no" >&5
9130 echo "${ECHO_T}no" >&6; }
9131 fi
9132
9133 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9134 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
9135 if test "${ac_cv_struct_tm+set}" = set; then
9136   echo $ECHO_N "(cached) $ECHO_C" >&6
9137 else
9138   cat >conftest.$ac_ext <<_ACEOF
9139 /* confdefs.h.  */
9140 _ACEOF
9141 cat confdefs.h >>conftest.$ac_ext
9142 cat >>conftest.$ac_ext <<_ACEOF
9143 /* end confdefs.h.  */
9144 #include <sys/types.h>
9145 #include <time.h>
9146
9147 int
9148 main ()
9149 {
9150 struct tm tm;
9151                                      int *p = &tm.tm_sec;
9152                                      return !p;
9153   ;
9154   return 0;
9155 }
9156 _ACEOF
9157 rm -f conftest.$ac_objext
9158 if { (ac_try="$ac_compile"
9159 case "(($ac_try" in
9160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9161   *) ac_try_echo=$ac_try;;
9162 esac
9163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9164   (eval "$ac_compile") 2>conftest.er1
9165   ac_status=$?
9166   grep -v '^ *+' conftest.er1 >conftest.err
9167   rm -f conftest.er1
9168   cat conftest.err >&5
9169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170   (exit $ac_status); } && {
9171          test -z "$ac_c_werror_flag" ||
9172          test ! -s conftest.err
9173        } && test -s conftest.$ac_objext; then
9174   ac_cv_struct_tm=time.h
9175 else
9176   echo "$as_me: failed program was:" >&5
9177 sed 's/^/| /' conftest.$ac_ext >&5
9178
9179         ac_cv_struct_tm=sys/time.h
9180 fi
9181
9182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9183 fi
9184 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9185 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
9186 if test $ac_cv_struct_tm = sys/time.h; then
9187
9188 cat >>confdefs.h <<\_ACEOF
9189 #define TM_IN_SYS_TIME 1
9190 _ACEOF
9191
9192 fi
9193
9194 { echo "$as_me:$LINENO: checking for size_t" >&5
9195 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9196 if test "${ac_cv_type_size_t+set}" = set; then
9197   echo $ECHO_N "(cached) $ECHO_C" >&6
9198 else
9199   cat >conftest.$ac_ext <<_ACEOF
9200 /* confdefs.h.  */
9201 _ACEOF
9202 cat confdefs.h >>conftest.$ac_ext
9203 cat >>conftest.$ac_ext <<_ACEOF
9204 /* end confdefs.h.  */
9205 $ac_includes_default
9206 typedef size_t ac__type_new_;
9207 int
9208 main ()
9209 {
9210 if ((ac__type_new_ *) 0)
9211   return 0;
9212 if (sizeof (ac__type_new_))
9213   return 0;
9214   ;
9215   return 0;
9216 }
9217 _ACEOF
9218 rm -f conftest.$ac_objext
9219 if { (ac_try="$ac_compile"
9220 case "(($ac_try" in
9221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9222   *) ac_try_echo=$ac_try;;
9223 esac
9224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9225   (eval "$ac_compile") 2>conftest.er1
9226   ac_status=$?
9227   grep -v '^ *+' conftest.er1 >conftest.err
9228   rm -f conftest.er1
9229   cat conftest.err >&5
9230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231   (exit $ac_status); } && {
9232          test -z "$ac_c_werror_flag" ||
9233          test ! -s conftest.err
9234        } && test -s conftest.$ac_objext; then
9235   ac_cv_type_size_t=yes
9236 else
9237   echo "$as_me: failed program was:" >&5
9238 sed 's/^/| /' conftest.$ac_ext >&5
9239
9240         ac_cv_type_size_t=no
9241 fi
9242
9243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9244 fi
9245 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9246 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9247 if test $ac_cv_type_size_t = yes; then
9248   :
9249 else
9250
9251 cat >>confdefs.h <<_ACEOF
9252 #define size_t unsigned int
9253 _ACEOF
9254
9255 fi
9256
9257 if test "x$POCC" != xyes ; then
9258 { echo "$as_me:$LINENO: checking for off_t" >&5
9259 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
9260 if test "${ac_cv_type_off_t+set}" = set; then
9261   echo $ECHO_N "(cached) $ECHO_C" >&6
9262 else
9263   cat >conftest.$ac_ext <<_ACEOF
9264 /* confdefs.h.  */
9265 _ACEOF
9266 cat confdefs.h >>conftest.$ac_ext
9267 cat >>conftest.$ac_ext <<_ACEOF
9268 /* end confdefs.h.  */
9269 $ac_includes_default
9270 typedef off_t ac__type_new_;
9271 int
9272 main ()
9273 {
9274 if ((ac__type_new_ *) 0)
9275   return 0;
9276 if (sizeof (ac__type_new_))
9277   return 0;
9278   ;
9279   return 0;
9280 }
9281 _ACEOF
9282 rm -f conftest.$ac_objext
9283 if { (ac_try="$ac_compile"
9284 case "(($ac_try" in
9285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9286   *) ac_try_echo=$ac_try;;
9287 esac
9288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9289   (eval "$ac_compile") 2>conftest.er1
9290   ac_status=$?
9291   grep -v '^ *+' conftest.er1 >conftest.err
9292   rm -f conftest.er1
9293   cat conftest.err >&5
9294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295   (exit $ac_status); } && {
9296          test -z "$ac_c_werror_flag" ||
9297          test ! -s conftest.err
9298        } && test -s conftest.$ac_objext; then
9299   ac_cv_type_off_t=yes
9300 else
9301   echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.$ac_ext >&5
9303
9304         ac_cv_type_off_t=no
9305 fi
9306
9307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9308 fi
9309 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9310 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
9311 if test $ac_cv_type_off_t = yes; then
9312   :
9313 else
9314
9315 cat >>confdefs.h <<_ACEOF
9316 #define off_t long int
9317 _ACEOF
9318
9319 fi
9320
9321 { echo "$as_me:$LINENO: checking for pid_t" >&5
9322 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
9323 if test "${ac_cv_type_pid_t+set}" = set; then
9324   echo $ECHO_N "(cached) $ECHO_C" >&6
9325 else
9326   cat >conftest.$ac_ext <<_ACEOF
9327 /* confdefs.h.  */
9328 _ACEOF
9329 cat confdefs.h >>conftest.$ac_ext
9330 cat >>conftest.$ac_ext <<_ACEOF
9331 /* end confdefs.h.  */
9332 $ac_includes_default
9333 typedef pid_t ac__type_new_;
9334 int
9335 main ()
9336 {
9337 if ((ac__type_new_ *) 0)
9338   return 0;
9339 if (sizeof (ac__type_new_))
9340   return 0;
9341   ;
9342   return 0;
9343 }
9344 _ACEOF
9345 rm -f conftest.$ac_objext
9346 if { (ac_try="$ac_compile"
9347 case "(($ac_try" in
9348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9349   *) ac_try_echo=$ac_try;;
9350 esac
9351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9352   (eval "$ac_compile") 2>conftest.er1
9353   ac_status=$?
9354   grep -v '^ *+' conftest.er1 >conftest.err
9355   rm -f conftest.er1
9356   cat conftest.err >&5
9357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358   (exit $ac_status); } && {
9359          test -z "$ac_c_werror_flag" ||
9360          test ! -s conftest.err
9361        } && test -s conftest.$ac_objext; then
9362   ac_cv_type_pid_t=yes
9363 else
9364   echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9366
9367         ac_cv_type_pid_t=no
9368 fi
9369
9370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9371 fi
9372 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9373 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
9374 if test $ac_cv_type_pid_t = yes; then
9375   :
9376 else
9377
9378 cat >>confdefs.h <<_ACEOF
9379 #define pid_t int
9380 _ACEOF
9381
9382 fi
9383
9384 fi
9385
9386 { echo "$as_me:$LINENO: checking volatile declaration" >&5
9387 echo $ECHO_N "checking volatile declaration... $ECHO_C" >&6; }
9388 if test "${timidity_cv_type_volatile+set}" = set; then
9389   echo $ECHO_N "(cached) $ECHO_C" >&6
9390 else
9391   cat >conftest.$ac_ext <<_ACEOF
9392 /* confdefs.h.  */
9393 _ACEOF
9394 cat confdefs.h >>conftest.$ac_ext
9395 cat >>conftest.$ac_ext <<_ACEOF
9396 /* end confdefs.h.  */
9397
9398 int
9399 main ()
9400 {
9401 volatile int x
9402   ;
9403   return 0;
9404 }
9405 _ACEOF
9406 rm -f conftest.$ac_objext
9407 if { (ac_try="$ac_compile"
9408 case "(($ac_try" in
9409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9410   *) ac_try_echo=$ac_try;;
9411 esac
9412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9413   (eval "$ac_compile") 2>conftest.er1
9414   ac_status=$?
9415   grep -v '^ *+' conftest.er1 >conftest.err
9416   rm -f conftest.er1
9417   cat conftest.err >&5
9418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419   (exit $ac_status); } && {
9420          test -z "$ac_c_werror_flag" ||
9421          test ! -s conftest.err
9422        } && test -s conftest.$ac_objext; then
9423   timidity_cv_type_volatile=yes
9424 else
9425   echo "$as_me: failed program was:" >&5
9426 sed 's/^/| /' conftest.$ac_ext >&5
9427
9428         timidity_cv_type_volatile=no
9429 fi
9430
9431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9432 fi
9433 { echo "$as_me:$LINENO: result: $timidity_cv_type_volatile" >&5
9434 echo "${ECHO_T}$timidity_cv_type_volatile" >&6; }
9435 if test $timidity_cv_type_volatile = no; then
9436
9437 cat >>confdefs.h <<\_ACEOF
9438 #define NO_VOLATILE 1
9439 _ACEOF
9440
9441 fi
9442
9443 { echo "$as_me:$LINENO: checking union semun declaration" >&5
9444 echo $ECHO_N "checking union semun declaration... $ECHO_C" >&6; }
9445 if test "${timidity_cv_type_union_semun+set}" = set; then
9446   echo $ECHO_N "(cached) $ECHO_C" >&6
9447 else
9448   cat >conftest.$ac_ext <<_ACEOF
9449 /* confdefs.h.  */
9450 _ACEOF
9451 cat confdefs.h >>conftest.$ac_ext
9452 cat >>conftest.$ac_ext <<_ACEOF
9453 /* end confdefs.h.  */
9454
9455 #include <sys/types.h>
9456 #include <sys/ipc.h>
9457 #include <sys/sem.h>
9458
9459 int
9460 main ()
9461 {
9462 union semun x
9463   ;
9464   return 0;
9465 }
9466 _ACEOF
9467 rm -f conftest.$ac_objext
9468 if { (ac_try="$ac_compile"
9469 case "(($ac_try" in
9470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9471   *) ac_try_echo=$ac_try;;
9472 esac
9473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9474   (eval "$ac_compile") 2>conftest.er1
9475   ac_status=$?
9476   grep -v '^ *+' conftest.er1 >conftest.err
9477   rm -f conftest.er1
9478   cat conftest.err >&5
9479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480   (exit $ac_status); } && {
9481          test -z "$ac_c_werror_flag" ||
9482          test ! -s conftest.err
9483        } && test -s conftest.$ac_objext; then
9484   timidity_cv_type_union_semun=yes
9485 else
9486   echo "$as_me: failed program was:" >&5
9487 sed 's/^/| /' conftest.$ac_ext >&5
9488
9489         timidity_cv_type_union_semun=no
9490 fi
9491
9492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9493 fi
9494 { echo "$as_me:$LINENO: result: $timidity_cv_type_union_semun" >&5
9495 echo "${ECHO_T}$timidity_cv_type_union_semun" >&6; }
9496 if test $timidity_cv_type_union_semun = yes; then
9497
9498 cat >>confdefs.h <<\_ACEOF
9499 #define HAVE_UNION_SEMUN 1
9500 _ACEOF
9501
9502 fi
9503
9504 if test "x$MSYS" = xyes ; then
9505         case "x${CC}" in
9506         "xgcc"*)
9507                 msnative_struct=''
9508             { echo "$as_me:$LINENO: checking how to get MSVC-compatible struct packing" >&5
9509 echo $ECHO_N "checking how to get MSVC-compatible struct packing... $ECHO_C" >&6; }
9510             if test -z "$ac_cv_prog_CC"; then
9511                         our_gcc="$CC"
9512                 else
9513                         our_gcc="$ac_cv_prog_CC"
9514                 fi
9515                 case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
9516                         2.)
9517                 if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
9518                         msnative_struct='-fnative-struct'
9519                 fi
9520                 ;;
9521                         *)
9522                 if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
9523                         msnative_struct='-mms-bitfields'
9524                 fi
9525                 ;;
9526                 esac
9527                 if test x"$msnative_struct" = x ; then
9528                         { echo "$as_me:$LINENO: result: no way" >&5
9529 echo "${ECHO_T}no way" >&6; }
9530                         { echo "$as_me:$LINENO: WARNING: produced binary will be incompatible with windows' GUI " >&5
9531 echo "$as_me: WARNING: produced binary will be incompatible with windows' GUI " >&2;}
9532                 else
9533                         CFLAGS="$CFLAGS $msnative_struct"
9534                         CPPFLAGS="$CPPFLAGS $msnative_struct"
9535                         { echo "$as_me:$LINENO: result: ${msnative_struct}" >&5
9536 echo "${ECHO_T}${msnative_struct}" >&6; }
9537                 fi
9538                 ;;
9539         *)
9540                 ;;
9541         esac
9542 fi
9543 if test "x$MSYS" = xyes ; then
9544   { echo "$as_me:$LINENO: checking Cygwin new mmsystem" >&5
9545 echo $ECHO_N "checking Cygwin new mmsystem... $ECHO_C" >&6; }
9546 if test "${timidity_cv_header_new_mmsystem+set}" = set; then
9547   echo $ECHO_N "(cached) $ECHO_C" >&6
9548 else
9549   cat >conftest.$ac_ext <<_ACEOF
9550 /* confdefs.h.  */
9551 _ACEOF
9552 cat confdefs.h >>conftest.$ac_ext
9553 cat >>conftest.$ac_ext <<_ACEOF
9554 /* end confdefs.h.  */
9555
9556 #include <windows.h>
9557 #include <mmsystem.h>
9558
9559 int
9560 main ()
9561 {
9562 return WOM_OPEN != 0x3BB
9563   ;
9564   return 0;
9565 }
9566 _ACEOF
9567 rm -f conftest.$ac_objext
9568 if { (ac_try="$ac_compile"
9569 case "(($ac_try" in
9570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9571   *) ac_try_echo=$ac_try;;
9572 esac
9573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9574   (eval "$ac_compile") 2>conftest.er1
9575   ac_status=$?
9576   grep -v '^ *+' conftest.er1 >conftest.err
9577   rm -f conftest.er1
9578   cat conftest.err >&5
9579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580   (exit $ac_status); } && {
9581          test -z "$ac_c_werror_flag" ||
9582          test ! -s conftest.err
9583        } && test -s conftest.$ac_objext; then
9584   timidity_cv_header_new_mmsystem=yes
9585 else
9586   echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9588
9589         timidity_cv_header_new_mmsystem=no
9590 fi
9591
9592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9593 fi
9594 { echo "$as_me:$LINENO: result: $timidity_cv_header_new_mmsystem" >&5
9595 echo "${ECHO_T}$timidity_cv_header_new_mmsystem" >&6; }
9596   if test $timidity_cv_header_new_mmsystem = yes; then
9597
9598 cat >>confdefs.h <<\_ACEOF
9599 #define HAVE_NEW_MMSYSTEM 1
9600 _ACEOF
9601
9602   fi
9603 fi
9604
9605 # Checks for library functions.
9606 { echo "$as_me:$LINENO: checking for error_at_line" >&5
9607 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
9608 if test "${ac_cv_lib_error_at_line+set}" = set; then
9609   echo $ECHO_N "(cached) $ECHO_C" >&6
9610 else
9611   cat >conftest.$ac_ext <<_ACEOF
9612 /* confdefs.h.  */
9613 _ACEOF
9614 cat confdefs.h >>conftest.$ac_ext
9615 cat >>conftest.$ac_ext <<_ACEOF
9616 /* end confdefs.h.  */
9617 #include <error.h>
9618 int
9619 main ()
9620 {
9621 error_at_line (0, 0, "", 0, "an error occurred");
9622   ;
9623   return 0;
9624 }
9625 _ACEOF
9626 rm -f conftest.$ac_objext conftest$ac_exeext
9627 if { (ac_try="$ac_link"
9628 case "(($ac_try" in
9629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9630   *) ac_try_echo=$ac_try;;
9631 esac
9632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9633   (eval "$ac_link") 2>conftest.er1
9634   ac_status=$?
9635   grep -v '^ *+' conftest.er1 >conftest.err
9636   rm -f conftest.er1
9637   cat conftest.err >&5
9638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639   (exit $ac_status); } && {
9640          test -z "$ac_c_werror_flag" ||
9641          test ! -s conftest.err
9642        } && test -s conftest$ac_exeext &&
9643        $as_test_x conftest$ac_exeext; then
9644   ac_cv_lib_error_at_line=yes
9645 else
9646   echo "$as_me: failed program was:" >&5
9647 sed 's/^/| /' conftest.$ac_ext >&5
9648
9649         ac_cv_lib_error_at_line=no
9650 fi
9651
9652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9653       conftest$ac_exeext conftest.$ac_ext
9654 fi
9655 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
9656 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
9657 if test $ac_cv_lib_error_at_line = no; then
9658   case " $LIBOBJS " in
9659   *" error.$ac_objext "* ) ;;
9660   *) LIBOBJS="$LIBOBJS error.$ac_objext"
9661  ;;
9662 esac
9663
9664 fi
9665
9666
9667 for ac_header in vfork.h
9668 do
9669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9671   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9674   echo $ECHO_N "(cached) $ECHO_C" >&6
9675 fi
9676 ac_res=`eval echo '${'$as_ac_Header'}'`
9677                { echo "$as_me:$LINENO: result: $ac_res" >&5
9678 echo "${ECHO_T}$ac_res" >&6; }
9679 else
9680   # Is the header compilable?
9681 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9683 cat >conftest.$ac_ext <<_ACEOF
9684 /* confdefs.h.  */
9685 _ACEOF
9686 cat confdefs.h >>conftest.$ac_ext
9687 cat >>conftest.$ac_ext <<_ACEOF
9688 /* end confdefs.h.  */
9689 $ac_includes_default
9690 #include <$ac_header>
9691 _ACEOF
9692 rm -f conftest.$ac_objext
9693 if { (ac_try="$ac_compile"
9694 case "(($ac_try" in
9695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9696   *) ac_try_echo=$ac_try;;
9697 esac
9698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9699   (eval "$ac_compile") 2>conftest.er1
9700   ac_status=$?
9701   grep -v '^ *+' conftest.er1 >conftest.err
9702   rm -f conftest.er1
9703   cat conftest.err >&5
9704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705   (exit $ac_status); } && {
9706          test -z "$ac_c_werror_flag" ||
9707          test ! -s conftest.err
9708        } && test -s conftest.$ac_objext; then
9709   ac_header_compiler=yes
9710 else
9711   echo "$as_me: failed program was:" >&5
9712 sed 's/^/| /' conftest.$ac_ext >&5
9713
9714         ac_header_compiler=no
9715 fi
9716
9717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9718 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9719 echo "${ECHO_T}$ac_header_compiler" >&6; }
9720
9721 # Is the header present?
9722 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9723 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9724 cat >conftest.$ac_ext <<_ACEOF
9725 /* confdefs.h.  */
9726 _ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h.  */
9730 #include <$ac_header>
9731 _ACEOF
9732 if { (ac_try="$ac_cpp conftest.$ac_ext"
9733 case "(($ac_try" in
9734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9735   *) ac_try_echo=$ac_try;;
9736 esac
9737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9738   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9739   ac_status=$?
9740   grep -v '^ *+' conftest.er1 >conftest.err
9741   rm -f conftest.er1
9742   cat conftest.err >&5
9743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744   (exit $ac_status); } >/dev/null && {
9745          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9746          test ! -s conftest.err
9747        }; then
9748   ac_header_preproc=yes
9749 else
9750   echo "$as_me: failed program was:" >&5
9751 sed 's/^/| /' conftest.$ac_ext >&5
9752
9753   ac_header_preproc=no
9754 fi
9755
9756 rm -f conftest.err conftest.$ac_ext
9757 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9758 echo "${ECHO_T}$ac_header_preproc" >&6; }
9759
9760 # So?  What about this header?
9761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9762   yes:no: )
9763     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9764 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9765     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9766 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9767     ac_header_preproc=yes
9768     ;;
9769   no:yes:* )
9770     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9772     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9773 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9774     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9775 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9776     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9777 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9778     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9780     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9781 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9782     ( cat <<\_ASBOX
9783 ## ------------------------------- ##
9784 ## Report this to root@mput.dip.jp ##
9785 ## ------------------------------- ##
9786 _ASBOX
9787      ) | sed "s/^/$as_me: WARNING:     /" >&2
9788     ;;
9789 esac
9790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9793   echo $ECHO_N "(cached) $ECHO_C" >&6
9794 else
9795   eval "$as_ac_Header=\$ac_header_preproc"
9796 fi
9797 ac_res=`eval echo '${'$as_ac_Header'}'`
9798                { echo "$as_me:$LINENO: result: $ac_res" >&5
9799 echo "${ECHO_T}$ac_res" >&6; }
9800
9801 fi
9802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9803   cat >>confdefs.h <<_ACEOF
9804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9805 _ACEOF
9806
9807 fi
9808
9809 done
9810
9811
9812
9813 for ac_func in fork vfork
9814 do
9815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9816 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9818 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9819   echo $ECHO_N "(cached) $ECHO_C" >&6
9820 else
9821   cat >conftest.$ac_ext <<_ACEOF
9822 /* confdefs.h.  */
9823 _ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h.  */
9827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9828    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9829 #define $ac_func innocuous_$ac_func
9830
9831 /* System header to define __stub macros and hopefully few prototypes,
9832     which can conflict with char $ac_func (); below.
9833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9834     <limits.h> exists even on freestanding compilers.  */
9835
9836 #ifdef __STDC__
9837 # include <limits.h>
9838 #else
9839 # include <assert.h>
9840 #endif
9841
9842 #undef $ac_func
9843
9844 /* Override any GCC internal prototype to avoid an error.
9845    Use char because int might match the return type of a GCC
9846    builtin and then its argument prototype would still apply.  */
9847 #ifdef __cplusplus
9848 extern "C"
9849 #endif
9850 char $ac_func ();
9851 /* The GNU C library defines this for functions which it implements
9852     to always fail with ENOSYS.  Some functions are actually named
9853     something starting with __ and the normal name is an alias.  */
9854 #if defined __stub_$ac_func || defined __stub___$ac_func
9855 choke me
9856 #endif
9857
9858 int
9859 main ()
9860 {
9861 return $ac_func ();
9862   ;
9863   return 0;
9864 }
9865 _ACEOF
9866 rm -f conftest.$ac_objext conftest$ac_exeext
9867 if { (ac_try="$ac_link"
9868 case "(($ac_try" in
9869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870   *) ac_try_echo=$ac_try;;
9871 esac
9872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9873   (eval "$ac_link") 2>conftest.er1
9874   ac_status=$?
9875   grep -v '^ *+' conftest.er1 >conftest.err
9876   rm -f conftest.er1
9877   cat conftest.err >&5
9878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879   (exit $ac_status); } && {
9880          test -z "$ac_c_werror_flag" ||
9881          test ! -s conftest.err
9882        } && test -s conftest$ac_exeext &&
9883        $as_test_x conftest$ac_exeext; then
9884   eval "$as_ac_var=yes"
9885 else
9886   echo "$as_me: failed program was:" >&5
9887 sed 's/^/| /' conftest.$ac_ext >&5
9888
9889         eval "$as_ac_var=no"
9890 fi
9891
9892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9893       conftest$ac_exeext conftest.$ac_ext
9894 fi
9895 ac_res=`eval echo '${'$as_ac_var'}'`
9896                { echo "$as_me:$LINENO: result: $ac_res" >&5
9897 echo "${ECHO_T}$ac_res" >&6; }
9898 if test `eval echo '${'$as_ac_var'}'` = yes; then
9899   cat >>confdefs.h <<_ACEOF
9900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9901 _ACEOF
9902
9903 fi
9904 done
9905
9906 if test "x$ac_cv_func_fork" = xyes; then
9907   { echo "$as_me:$LINENO: checking for working fork" >&5
9908 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
9909 if test "${ac_cv_func_fork_works+set}" = set; then
9910   echo $ECHO_N "(cached) $ECHO_C" >&6
9911 else
9912   if test "$cross_compiling" = yes; then
9913   ac_cv_func_fork_works=cross
9914 else
9915   cat >conftest.$ac_ext <<_ACEOF
9916 /* confdefs.h.  */
9917 _ACEOF
9918 cat confdefs.h >>conftest.$ac_ext
9919 cat >>conftest.$ac_ext <<_ACEOF
9920 /* end confdefs.h.  */
9921 $ac_includes_default
9922 int
9923 main ()
9924 {
9925
9926           /* By Ruediger Kuhlmann. */
9927           return fork () < 0;
9928
9929   ;
9930   return 0;
9931 }
9932 _ACEOF
9933 rm -f conftest$ac_exeext
9934 if { (ac_try="$ac_link"
9935 case "(($ac_try" in
9936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9937   *) ac_try_echo=$ac_try;;
9938 esac
9939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9940   (eval "$ac_link") 2>&5
9941   ac_status=$?
9942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9944   { (case "(($ac_try" in
9945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9946   *) ac_try_echo=$ac_try;;
9947 esac
9948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9949   (eval "$ac_try") 2>&5
9950   ac_status=$?
9951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952   (exit $ac_status); }; }; then
9953   ac_cv_func_fork_works=yes
9954 else
9955   echo "$as_me: program exited with status $ac_status" >&5
9956 echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.$ac_ext >&5
9958
9959 ( exit $ac_status )
9960 ac_cv_func_fork_works=no
9961 fi
9962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9963 fi
9964
9965
9966 fi
9967 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9968 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
9969
9970 else
9971   ac_cv_func_fork_works=$ac_cv_func_fork
9972 fi
9973 if test "x$ac_cv_func_fork_works" = xcross; then
9974   case $host in
9975     *-*-amigaos* | *-*-msdosdjgpp*)
9976       # Override, as these systems have only a dummy fork() stub
9977       ac_cv_func_fork_works=no
9978       ;;
9979     *)
9980       ac_cv_func_fork_works=yes
9981       ;;
9982   esac
9983   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9984 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9985 fi
9986 ac_cv_func_vfork_works=$ac_cv_func_vfork
9987 if test "x$ac_cv_func_vfork" = xyes; then
9988   { echo "$as_me:$LINENO: checking for working vfork" >&5
9989 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
9990 if test "${ac_cv_func_vfork_works+set}" = set; then
9991   echo $ECHO_N "(cached) $ECHO_C" >&6
9992 else
9993   if test "$cross_compiling" = yes; then
9994   ac_cv_func_vfork_works=cross
9995 else
9996   cat >conftest.$ac_ext <<_ACEOF
9997 /* confdefs.h.  */
9998 _ACEOF
9999 cat confdefs.h >>conftest.$ac_ext
10000 cat >>conftest.$ac_ext <<_ACEOF
10001 /* end confdefs.h.  */
10002 /* Thanks to Paul Eggert for this test.  */
10003 $ac_includes_default
10004 #include <sys/wait.h>
10005 #ifdef HAVE_VFORK_H
10006 # include <vfork.h>
10007 #endif
10008 /* On some sparc systems, changes by the child to local and incoming
10009    argument registers are propagated back to the parent.  The compiler
10010    is told about this with #include <vfork.h>, but some compilers
10011    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
10012    static variable whose address is put into a register that is
10013    clobbered by the vfork.  */
10014 static void
10015 #ifdef __cplusplus
10016 sparc_address_test (int arg)
10017 # else
10018 sparc_address_test (arg) int arg;
10019 #endif
10020 {
10021   static pid_t child;
10022   if (!child) {
10023     child = vfork ();
10024     if (child < 0) {
10025       perror ("vfork");
10026       _exit(2);
10027     }
10028     if (!child) {
10029       arg = getpid();
10030       write(-1, "", 0);
10031       _exit (arg);
10032     }
10033   }
10034 }
10035
10036 int
10037 main ()
10038 {
10039   pid_t parent = getpid ();
10040   pid_t child;
10041
10042   sparc_address_test (0);
10043
10044   child = vfork ();
10045
10046   if (child == 0) {
10047     /* Here is another test for sparc vfork register problems.  This
10048        test uses lots of local variables, at least as many local
10049        variables as main has allocated so far including compiler
10050        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10051        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10052        reuse the register of parent for one of the local variables,
10053        since it will think that parent can't possibly be used any more
10054        in this routine.  Assigning to the local variable will thus
10055        munge parent in the parent process.  */
10056     pid_t
10057       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10058       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10059     /* Convince the compiler that p..p7 are live; otherwise, it might
10060        use the same hardware register for all 8 local variables.  */
10061     if (p != p1 || p != p2 || p != p3 || p != p4
10062         || p != p5 || p != p6 || p != p7)
10063       _exit(1);
10064
10065     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10066        from child file descriptors.  If the child closes a descriptor
10067        before it execs or exits, this munges the parent's descriptor
10068        as well.  Test for this by closing stdout in the child.  */
10069     _exit(close(fileno(stdout)) != 0);
10070   } else {
10071     int status;
10072     struct stat st;
10073
10074     while (wait(&status) != child)
10075       ;
10076     return (
10077          /* Was there some problem with vforking?  */
10078          child < 0
10079
10080          /* Did the child fail?  (This shouldn't happen.)  */
10081          || status
10082
10083          /* Did the vfork/compiler bug occur?  */
10084          || parent != getpid()
10085
10086          /* Did the file descriptor bug occur?  */
10087          || fstat(fileno(stdout), &st) != 0
10088          );
10089   }
10090 }
10091 _ACEOF
10092 rm -f conftest$ac_exeext
10093 if { (ac_try="$ac_link"
10094 case "(($ac_try" in
10095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10096   *) ac_try_echo=$ac_try;;
10097 esac
10098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10099   (eval "$ac_link") 2>&5
10100   ac_status=$?
10101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10103   { (case "(($ac_try" in
10104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10105   *) ac_try_echo=$ac_try;;
10106 esac
10107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10108   (eval "$ac_try") 2>&5
10109   ac_status=$?
10110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111   (exit $ac_status); }; }; then
10112   ac_cv_func_vfork_works=yes
10113 else
10114   echo "$as_me: program exited with status $ac_status" >&5
10115 echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10117
10118 ( exit $ac_status )
10119 ac_cv_func_vfork_works=no
10120 fi
10121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10122 fi
10123
10124
10125 fi
10126 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10127 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
10128
10129 fi;
10130 if test "x$ac_cv_func_fork_works" = xcross; then
10131   ac_cv_func_vfork_works=$ac_cv_func_vfork
10132   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10133 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10134 fi
10135
10136 if test "x$ac_cv_func_vfork_works" = xyes; then
10137
10138 cat >>confdefs.h <<\_ACEOF
10139 #define HAVE_WORKING_VFORK 1
10140 _ACEOF
10141
10142 else
10143
10144 cat >>confdefs.h <<\_ACEOF
10145 #define vfork fork
10146 _ACEOF
10147
10148 fi
10149 if test "x$ac_cv_func_fork_works" = xyes; then
10150
10151 cat >>confdefs.h <<\_ACEOF
10152 #define HAVE_WORKING_FORK 1
10153 _ACEOF
10154
10155 fi
10156
10157 { echo "$as_me:$LINENO: checking for working memcmp" >&5
10158 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
10159 if test "${ac_cv_func_memcmp_working+set}" = set; then
10160   echo $ECHO_N "(cached) $ECHO_C" >&6
10161 else
10162   if test "$cross_compiling" = yes; then
10163   ac_cv_func_memcmp_working=no
10164 else
10165   cat >conftest.$ac_ext <<_ACEOF
10166 /* confdefs.h.  */
10167 _ACEOF
10168 cat confdefs.h >>conftest.$ac_ext
10169 cat >>conftest.$ac_ext <<_ACEOF
10170 /* end confdefs.h.  */
10171 $ac_includes_default
10172 int
10173 main ()
10174 {
10175
10176   /* Some versions of memcmp are not 8-bit clean.  */
10177   char c0 = '\100', c1 = '\200', c2 = '\201';
10178   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10179     return 1;
10180
10181   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10182      or more and with at least one buffer not starting on a 4-byte boundary.
10183      William Lewis provided this test program.   */
10184   {
10185     char foo[21];
10186     char bar[21];
10187     int i;
10188     for (i = 0; i < 4; i++)
10189       {
10190         char *a = foo + i;
10191         char *b = bar + i;
10192         strcpy (a, "--------01111111");
10193         strcpy (b, "--------10000000");
10194         if (memcmp (a, b, 16) >= 0)
10195           return 1;
10196       }
10197     return 0;
10198   }
10199
10200   ;
10201   return 0;
10202 }
10203 _ACEOF
10204 rm -f conftest$ac_exeext
10205 if { (ac_try="$ac_link"
10206 case "(($ac_try" in
10207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208   *) ac_try_echo=$ac_try;;
10209 esac
10210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211   (eval "$ac_link") 2>&5
10212   ac_status=$?
10213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10215   { (case "(($ac_try" in
10216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10217   *) ac_try_echo=$ac_try;;
10218 esac
10219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10220   (eval "$ac_try") 2>&5
10221   ac_status=$?
10222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223   (exit $ac_status); }; }; then
10224   ac_cv_func_memcmp_working=yes
10225 else
10226   echo "$as_me: program exited with status $ac_status" >&5
10227 echo "$as_me: failed program was:" >&5
10228 sed 's/^/| /' conftest.$ac_ext >&5
10229
10230 ( exit $ac_status )
10231 ac_cv_func_memcmp_working=no
10232 fi
10233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10234 fi
10235
10236
10237 fi
10238 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10239 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
10240 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
10241   *" memcmp.$ac_objext "* ) ;;
10242   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10243  ;;
10244 esac
10245
10246
10247
10248
10249 for ac_header in stdlib.h unistd.h
10250 do
10251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10253   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10256   echo $ECHO_N "(cached) $ECHO_C" >&6
10257 fi
10258 ac_res=`eval echo '${'$as_ac_Header'}'`
10259                { echo "$as_me:$LINENO: result: $ac_res" >&5
10260 echo "${ECHO_T}$ac_res" >&6; }
10261 else
10262   # Is the header compilable?
10263 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10265 cat >conftest.$ac_ext <<_ACEOF
10266 /* confdefs.h.  */
10267 _ACEOF
10268 cat confdefs.h >>conftest.$ac_ext
10269 cat >>conftest.$ac_ext <<_ACEOF
10270 /* end confdefs.h.  */
10271 $ac_includes_default
10272 #include <$ac_header>
10273 _ACEOF
10274 rm -f conftest.$ac_objext
10275 if { (ac_try="$ac_compile"
10276 case "(($ac_try" in
10277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10278   *) ac_try_echo=$ac_try;;
10279 esac
10280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10281   (eval "$ac_compile") 2>conftest.er1
10282   ac_status=$?
10283   grep -v '^ *+' conftest.er1 >conftest.err
10284   rm -f conftest.er1
10285   cat conftest.err >&5
10286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287   (exit $ac_status); } && {
10288          test -z "$ac_c_werror_flag" ||
10289          test ! -s conftest.err
10290        } && test -s conftest.$ac_objext; then
10291   ac_header_compiler=yes
10292 else
10293   echo "$as_me: failed program was:" >&5
10294 sed 's/^/| /' conftest.$ac_ext >&5
10295
10296         ac_header_compiler=no
10297 fi
10298
10299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10300 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10301 echo "${ECHO_T}$ac_header_compiler" >&6; }
10302
10303 # Is the header present?
10304 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10305 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10306 cat >conftest.$ac_ext <<_ACEOF
10307 /* confdefs.h.  */
10308 _ACEOF
10309 cat confdefs.h >>conftest.$ac_ext
10310 cat >>conftest.$ac_ext <<_ACEOF
10311 /* end confdefs.h.  */
10312 #include <$ac_header>
10313 _ACEOF
10314 if { (ac_try="$ac_cpp conftest.$ac_ext"
10315 case "(($ac_try" in
10316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10317   *) ac_try_echo=$ac_try;;
10318 esac
10319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10320   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10321   ac_status=$?
10322   grep -v '^ *+' conftest.er1 >conftest.err
10323   rm -f conftest.er1
10324   cat conftest.err >&5
10325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326   (exit $ac_status); } >/dev/null && {
10327          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10328          test ! -s conftest.err
10329        }; then
10330   ac_header_preproc=yes
10331 else
10332   echo "$as_me: failed program was:" >&5
10333 sed 's/^/| /' conftest.$ac_ext >&5
10334
10335   ac_header_preproc=no
10336 fi
10337
10338 rm -f conftest.err conftest.$ac_ext
10339 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10340 echo "${ECHO_T}$ac_header_preproc" >&6; }
10341
10342 # So?  What about this header?
10343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10344   yes:no: )
10345     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10347     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10349     ac_header_preproc=yes
10350     ;;
10351   no:yes:* )
10352     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10354     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10355 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10356     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10357 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10358     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10359 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10360     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10362     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10363 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10364     ( cat <<\_ASBOX
10365 ## ------------------------------- ##
10366 ## Report this to root@mput.dip.jp ##
10367 ## ------------------------------- ##
10368 _ASBOX
10369      ) | sed "s/^/$as_me: WARNING:     /" >&2
10370     ;;
10371 esac
10372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10375   echo $ECHO_N "(cached) $ECHO_C" >&6
10376 else
10377   eval "$as_ac_Header=\$ac_header_preproc"
10378 fi
10379 ac_res=`eval echo '${'$as_ac_Header'}'`
10380                { echo "$as_me:$LINENO: result: $ac_res" >&5
10381 echo "${ECHO_T}$ac_res" >&6; }
10382
10383 fi
10384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10385   cat >>confdefs.h <<_ACEOF
10386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10387 _ACEOF
10388
10389 fi
10390
10391 done
10392
10393
10394 for ac_func in getpagesize
10395 do
10396 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10397 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10398 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10399 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10400   echo $ECHO_N "(cached) $ECHO_C" >&6
10401 else
10402   cat >conftest.$ac_ext <<_ACEOF
10403 /* confdefs.h.  */
10404 _ACEOF
10405 cat confdefs.h >>conftest.$ac_ext
10406 cat >>conftest.$ac_ext <<_ACEOF
10407 /* end confdefs.h.  */
10408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10409    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10410 #define $ac_func innocuous_$ac_func
10411
10412 /* System header to define __stub macros and hopefully few prototypes,
10413     which can conflict with char $ac_func (); below.
10414     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10415     <limits.h> exists even on freestanding compilers.  */
10416
10417 #ifdef __STDC__
10418 # include <limits.h>
10419 #else
10420 # include <assert.h>
10421 #endif
10422
10423 #undef $ac_func
10424
10425 /* Override any GCC internal prototype to avoid an error.
10426    Use char because int might match the return type of a GCC
10427    builtin and then its argument prototype would still apply.  */
10428 #ifdef __cplusplus
10429 extern "C"
10430 #endif
10431 char $ac_func ();
10432 /* The GNU C library defines this for functions which it implements
10433     to always fail with ENOSYS.  Some functions are actually named
10434     something starting with __ and the normal name is an alias.  */
10435 #if defined __stub_$ac_func || defined __stub___$ac_func
10436 choke me
10437 #endif
10438
10439 int
10440 main ()
10441 {
10442 return $ac_func ();
10443   ;
10444   return 0;
10445 }
10446 _ACEOF
10447 rm -f conftest.$ac_objext conftest$ac_exeext
10448 if { (ac_try="$ac_link"
10449 case "(($ac_try" in
10450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10451   *) ac_try_echo=$ac_try;;
10452 esac
10453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10454   (eval "$ac_link") 2>conftest.er1
10455   ac_status=$?
10456   grep -v '^ *+' conftest.er1 >conftest.err
10457   rm -f conftest.er1
10458   cat conftest.err >&5
10459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460   (exit $ac_status); } && {
10461          test -z "$ac_c_werror_flag" ||
10462          test ! -s conftest.err
10463        } && test -s conftest$ac_exeext &&
10464        $as_test_x conftest$ac_exeext; then
10465   eval "$as_ac_var=yes"
10466 else
10467   echo "$as_me: failed program was:" >&5
10468 sed 's/^/| /' conftest.$ac_ext >&5
10469
10470         eval "$as_ac_var=no"
10471 fi
10472
10473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10474       conftest$ac_exeext conftest.$ac_ext
10475 fi
10476 ac_res=`eval echo '${'$as_ac_var'}'`
10477                { echo "$as_me:$LINENO: result: $ac_res" >&5
10478 echo "${ECHO_T}$ac_res" >&6; }
10479 if test `eval echo '${'$as_ac_var'}'` = yes; then
10480   cat >>confdefs.h <<_ACEOF
10481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10482 _ACEOF
10483
10484 fi
10485 done
10486
10487 { echo "$as_me:$LINENO: checking for working mmap" >&5
10488 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10489 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10490   echo $ECHO_N "(cached) $ECHO_C" >&6
10491 else
10492   if test "$cross_compiling" = yes; then
10493   ac_cv_func_mmap_fixed_mapped=no
10494 else
10495   cat >conftest.$ac_ext <<_ACEOF
10496 /* confdefs.h.  */
10497 _ACEOF
10498 cat confdefs.h >>conftest.$ac_ext
10499 cat >>conftest.$ac_ext <<_ACEOF
10500 /* end confdefs.h.  */
10501 $ac_includes_default
10502 /* malloc might have been renamed as rpl_malloc. */
10503 #undef malloc
10504
10505 /* Thanks to Mike Haertel and Jim Avera for this test.
10506    Here is a matrix of mmap possibilities:
10507         mmap private not fixed
10508         mmap private fixed at somewhere currently unmapped
10509         mmap private fixed at somewhere already mapped
10510         mmap shared not fixed
10511         mmap shared fixed at somewhere currently unmapped
10512         mmap shared fixed at somewhere already mapped
10513    For private mappings, we should verify that changes cannot be read()
10514    back from the file, nor mmap's back from the file at a different
10515    address.  (There have been systems where private was not correctly
10516    implemented like the infamous i386 svr4.0, and systems where the
10517    VM page cache was not coherent with the file system buffer cache
10518    like early versions of FreeBSD and possibly contemporary NetBSD.)
10519    For shared mappings, we should conversely verify that changes get
10520    propagated back to all the places they're supposed to be.
10521
10522    Grep wants private fixed already mapped.
10523    The main things grep needs to know about mmap are:
10524    * does it exist and is it safe to write into the mmap'd area
10525    * how to use it (BSD variants)  */
10526
10527 #include <fcntl.h>
10528 #include <sys/mman.h>
10529
10530 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10531 char *malloc ();
10532 #endif
10533
10534 /* This mess was copied from the GNU getpagesize.h.  */
10535 #ifndef HAVE_GETPAGESIZE
10536 /* Assume that all systems that can run configure have sys/param.h.  */
10537 # ifndef HAVE_SYS_PARAM_H
10538 #  define HAVE_SYS_PARAM_H 1
10539 # endif
10540
10541 # ifdef _SC_PAGESIZE
10542 #  define getpagesize() sysconf(_SC_PAGESIZE)
10543 # else /* no _SC_PAGESIZE */
10544 #  ifdef HAVE_SYS_PARAM_H
10545 #   include <sys/param.h>
10546 #   ifdef EXEC_PAGESIZE
10547 #    define getpagesize() EXEC_PAGESIZE
10548 #   else /* no EXEC_PAGESIZE */
10549 #    ifdef NBPG
10550 #     define getpagesize() NBPG * CLSIZE
10551 #     ifndef CLSIZE
10552 #      define CLSIZE 1
10553 #     endif /* no CLSIZE */
10554 #    else /* no NBPG */
10555 #     ifdef NBPC
10556 #      define getpagesize() NBPC
10557 #     else /* no NBPC */
10558 #      ifdef PAGESIZE
10559 #       define getpagesize() PAGESIZE
10560 #      endif /* PAGESIZE */
10561 #     endif /* no NBPC */
10562 #    endif /* no NBPG */
10563 #   endif /* no EXEC_PAGESIZE */
10564 #  else /* no HAVE_SYS_PARAM_H */
10565 #   define getpagesize() 8192   /* punt totally */
10566 #  endif /* no HAVE_SYS_PARAM_H */
10567 # endif /* no _SC_PAGESIZE */
10568
10569 #endif /* no HAVE_GETPAGESIZE */
10570
10571 int
10572 main ()
10573 {
10574   char *data, *data2, *data3;
10575   int i, pagesize;
10576   int fd;
10577
10578   pagesize = getpagesize ();
10579
10580   /* First, make a file with some known garbage in it. */
10581   data = (char *) malloc (pagesize);
10582   if (!data)
10583     return 1;
10584   for (i = 0; i < pagesize; ++i)
10585     *(data + i) = rand ();
10586   umask (0);
10587   fd = creat ("conftest.mmap", 0600);
10588   if (fd < 0)
10589     return 1;
10590   if (write (fd, data, pagesize) != pagesize)
10591     return 1;
10592   close (fd);
10593
10594   /* Next, try to mmap the file at a fixed address which already has
10595      something else allocated at it.  If we can, also make sure that
10596      we see the same garbage.  */
10597   fd = open ("conftest.mmap", O_RDWR);
10598   if (fd < 0)
10599     return 1;
10600   data2 = (char *) malloc (2 * pagesize);
10601   if (!data2)
10602     return 1;
10603   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10604   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10605                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
10606     return 1;
10607   for (i = 0; i < pagesize; ++i)
10608     if (*(data + i) != *(data2 + i))
10609       return 1;
10610
10611   /* Finally, make sure that changes to the mapped area do not
10612      percolate back to the file as seen by read().  (This is a bug on
10613      some variants of i386 svr4.0.)  */
10614   for (i = 0; i < pagesize; ++i)
10615     *(data2 + i) = *(data2 + i) + 1;
10616   data3 = (char *) malloc (pagesize);
10617   if (!data3)
10618     return 1;
10619   if (read (fd, data3, pagesize) != pagesize)
10620     return 1;
10621   for (i = 0; i < pagesize; ++i)
10622     if (*(data + i) != *(data3 + i))
10623       return 1;
10624   close (fd);
10625   return 0;
10626 }
10627 _ACEOF
10628 rm -f conftest$ac_exeext
10629 if { (ac_try="$ac_link"
10630 case "(($ac_try" in
10631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632   *) ac_try_echo=$ac_try;;
10633 esac
10634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635   (eval "$ac_link") 2>&5
10636   ac_status=$?
10637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10639   { (case "(($ac_try" in
10640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10641   *) ac_try_echo=$ac_try;;
10642 esac
10643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10644   (eval "$ac_try") 2>&5
10645   ac_status=$?
10646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647   (exit $ac_status); }; }; then
10648   ac_cv_func_mmap_fixed_mapped=yes
10649 else
10650   echo "$as_me: program exited with status $ac_status" >&5
10651 echo "$as_me: failed program was:" >&5
10652 sed 's/^/| /' conftest.$ac_ext >&5
10653
10654 ( exit $ac_status )
10655 ac_cv_func_mmap_fixed_mapped=no
10656 fi
10657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10658 fi
10659
10660
10661 fi
10662 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10663 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10664 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10665
10666 cat >>confdefs.h <<\_ACEOF
10667 #define HAVE_MMAP 1
10668 _ACEOF
10669
10670 fi
10671 rm -f conftest.mmap
10672
10673 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
10674 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
10675 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
10676   echo $ECHO_N "(cached) $ECHO_C" >&6
10677 else
10678   ac_cv_func_setvbuf_reversed=no
10679    cat >conftest.$ac_ext <<_ACEOF
10680 /* confdefs.h.  */
10681 _ACEOF
10682 cat confdefs.h >>conftest.$ac_ext
10683 cat >>conftest.$ac_ext <<_ACEOF
10684 /* end confdefs.h.  */
10685 #include <stdio.h>
10686 #         ifdef PROTOTYPES
10687            int (setvbuf) (FILE *, int, char *, size_t);
10688 #         endif
10689 int
10690 main ()
10691 {
10692 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
10693   ;
10694   return 0;
10695 }
10696 _ACEOF
10697 rm -f conftest.$ac_objext conftest$ac_exeext
10698 if { (ac_try="$ac_link"
10699 case "(($ac_try" in
10700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10701   *) ac_try_echo=$ac_try;;
10702 esac
10703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10704   (eval "$ac_link") 2>conftest.er1
10705   ac_status=$?
10706   grep -v '^ *+' conftest.er1 >conftest.err
10707   rm -f conftest.er1
10708   cat conftest.err >&5
10709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710   (exit $ac_status); } && {
10711          test -z "$ac_c_werror_flag" ||
10712          test ! -s conftest.err
10713        } && test -s conftest$ac_exeext &&
10714        $as_test_x conftest$ac_exeext; then
10715   cat >conftest.$ac_ext <<_ACEOF
10716 /* confdefs.h.  */
10717 _ACEOF
10718 cat confdefs.h >>conftest.$ac_ext
10719 cat >>conftest.$ac_ext <<_ACEOF
10720 /* end confdefs.h.  */
10721 #include <stdio.h>
10722 #            ifdef PROTOTYPES
10723               int (setvbuf) (FILE *, int, char *, size_t);
10724 #            endif
10725 int
10726 main ()
10727 {
10728 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
10729   ;
10730   return 0;
10731 }
10732 _ACEOF
10733 rm -f conftest.$ac_objext conftest$ac_exeext
10734 if { (ac_try="$ac_link"
10735 case "(($ac_try" in
10736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10737   *) ac_try_echo=$ac_try;;
10738 esac
10739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10740   (eval "$ac_link") 2>conftest.er1
10741   ac_status=$?
10742   grep -v '^ *+' conftest.er1 >conftest.err
10743   rm -f conftest.er1
10744   cat conftest.err >&5
10745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746   (exit $ac_status); } && {
10747          test -z "$ac_c_werror_flag" ||
10748          test ! -s conftest.err
10749        } && test -s conftest$ac_exeext &&
10750        $as_test_x conftest$ac_exeext; then
10751   # It compiles and links either way, so it must not be declared
10752          # with a prototype and most likely this is a K&R C compiler.
10753          # Try running it.
10754          if test "$cross_compiling" = yes; then
10755   : # Assume setvbuf is not reversed when cross-compiling.
10756 else
10757   cat >conftest.$ac_ext <<_ACEOF
10758 /* confdefs.h.  */
10759 _ACEOF
10760 cat confdefs.h >>conftest.$ac_ext
10761 cat >>conftest.$ac_ext <<_ACEOF
10762 /* end confdefs.h.  */
10763 $ac_includes_default
10764 int
10765 main ()
10766 {
10767 /* This call has the arguments reversed.
10768                    A reversed system may check and see that the address of buf
10769                    is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
10770                 char buf;
10771                 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
10772                   return 1;
10773                 putchar ('\r');
10774                 return 0; /* Non-reversed systems SEGV here.  */
10775   ;
10776   return 0;
10777 }
10778 _ACEOF
10779 rm -f conftest$ac_exeext
10780 if { (ac_try="$ac_link"
10781 case "(($ac_try" in
10782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783   *) ac_try_echo=$ac_try;;
10784 esac
10785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10786   (eval "$ac_link") 2>&5
10787   ac_status=$?
10788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10790   { (case "(($ac_try" in
10791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10792   *) ac_try_echo=$ac_try;;
10793 esac
10794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10795   (eval "$ac_try") 2>&5
10796   ac_status=$?
10797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798   (exit $ac_status); }; }; then
10799   ac_cv_func_setvbuf_reversed=yes
10800 else
10801   echo "$as_me: program exited with status $ac_status" >&5
10802 echo "$as_me: failed program was:" >&5
10803 sed 's/^/| /' conftest.$ac_ext >&5
10804
10805 fi
10806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10807 fi
10808
10809
10810         ac_cv_func_setvbuf_reversed=yes
10811 else
10812   echo "$as_me: failed program was:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10814
10815
10816 fi
10817
10818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10819       conftest$ac_exeext conftest.$ac_ext
10820 else
10821   echo "$as_me: failed program was:" >&5
10822 sed 's/^/| /' conftest.$ac_ext >&5
10823
10824
10825 fi
10826
10827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10828       conftest$ac_exeext conftest.$ac_ext
10829 fi
10830 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
10831 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
10832 if test $ac_cv_func_setvbuf_reversed = yes; then
10833
10834 cat >>confdefs.h <<\_ACEOF
10835 #define SETVBUF_REVERSED 1
10836 _ACEOF
10837
10838 fi
10839
10840 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10841 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
10842 if test "${ac_cv_type_signal+set}" = set; then
10843   echo $ECHO_N "(cached) $ECHO_C" >&6
10844 else
10845   cat >conftest.$ac_ext <<_ACEOF
10846 /* confdefs.h.  */
10847 _ACEOF
10848 cat confdefs.h >>conftest.$ac_ext
10849 cat >>conftest.$ac_ext <<_ACEOF
10850 /* end confdefs.h.  */
10851 #include <sys/types.h>
10852 #include <signal.h>
10853
10854 int
10855 main ()
10856 {
10857 return *(signal (0, 0)) (0) == 1;
10858   ;
10859   return 0;
10860 }
10861 _ACEOF
10862 rm -f conftest.$ac_objext
10863 if { (ac_try="$ac_compile"
10864 case "(($ac_try" in
10865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10866   *) ac_try_echo=$ac_try;;
10867 esac
10868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10869   (eval "$ac_compile") 2>conftest.er1
10870   ac_status=$?
10871   grep -v '^ *+' conftest.er1 >conftest.err
10872   rm -f conftest.er1
10873   cat conftest.err >&5
10874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875   (exit $ac_status); } && {
10876          test -z "$ac_c_werror_flag" ||
10877          test ! -s conftest.err
10878        } && test -s conftest.$ac_objext; then
10879   ac_cv_type_signal=int
10880 else
10881   echo "$as_me: failed program was:" >&5
10882 sed 's/^/| /' conftest.$ac_ext >&5
10883
10884         ac_cv_type_signal=void
10885 fi
10886
10887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10888 fi
10889 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10890 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
10891
10892 cat >>confdefs.h <<_ACEOF
10893 #define RETSIGTYPE $ac_cv_type_signal
10894 _ACEOF
10895
10896
10897 if test "x$VCPP" != xyes && test "x$BORLANDC" != xyes && test "x$WATCOM_C" != "xyes" && test "x$POCC" != "xyes"; then
10898
10899 for ac_func in vprintf
10900 do
10901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10902 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10904 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10905   echo $ECHO_N "(cached) $ECHO_C" >&6
10906 else
10907   cat >conftest.$ac_ext <<_ACEOF
10908 /* confdefs.h.  */
10909 _ACEOF
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h.  */
10913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10914    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10915 #define $ac_func innocuous_$ac_func
10916
10917 /* System header to define __stub macros and hopefully few prototypes,
10918     which can conflict with char $ac_func (); below.
10919     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10920     <limits.h> exists even on freestanding compilers.  */
10921
10922 #ifdef __STDC__
10923 # include <limits.h>
10924 #else
10925 # include <assert.h>
10926 #endif
10927
10928 #undef $ac_func
10929
10930 /* Override any GCC internal prototype to avoid an error.
10931    Use char because int might match the return type of a GCC
10932    builtin and then its argument prototype would still apply.  */
10933 #ifdef __cplusplus
10934 extern "C"
10935 #endif
10936 char $ac_func ();
10937 /* The GNU C library defines this for functions which it implements
10938     to always fail with ENOSYS.  Some functions are actually named
10939     something starting with __ and the normal name is an alias.  */
10940 #if defined __stub_$ac_func || defined __stub___$ac_func
10941 choke me
10942 #endif
10943
10944 int
10945 main ()
10946 {
10947 return $ac_func ();
10948   ;
10949   return 0;
10950 }
10951 _ACEOF
10952 rm -f conftest.$ac_objext conftest$ac_exeext
10953 if { (ac_try="$ac_link"
10954 case "(($ac_try" in
10955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10956   *) ac_try_echo=$ac_try;;
10957 esac
10958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10959   (eval "$ac_link") 2>conftest.er1
10960   ac_status=$?
10961   grep -v '^ *+' conftest.er1 >conftest.err
10962   rm -f conftest.er1
10963   cat conftest.err >&5
10964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965   (exit $ac_status); } && {
10966          test -z "$ac_c_werror_flag" ||
10967          test ! -s conftest.err
10968        } && test -s conftest$ac_exeext &&
10969        $as_test_x conftest$ac_exeext; then
10970   eval "$as_ac_var=yes"
10971 else
10972   echo "$as_me: failed program was:" >&5
10973 sed 's/^/| /' conftest.$ac_ext >&5
10974
10975         eval "$as_ac_var=no"
10976 fi
10977
10978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10979       conftest$ac_exeext conftest.$ac_ext
10980 fi
10981 ac_res=`eval echo '${'$as_ac_var'}'`
10982                { echo "$as_me:$LINENO: result: $ac_res" >&5
10983 echo "${ECHO_T}$ac_res" >&6; }
10984 if test `eval echo '${'$as_ac_var'}'` = yes; then
10985   cat >>confdefs.h <<_ACEOF
10986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10987 _ACEOF
10988
10989 { echo "$as_me:$LINENO: checking for _doprnt" >&5
10990 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
10991 if test "${ac_cv_func__doprnt+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 _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11001    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11002 #define _doprnt innocuous__doprnt
11003
11004 /* System header to define __stub macros and hopefully few prototypes,
11005     which can conflict with char _doprnt (); 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 _doprnt
11016
11017 /* Override any GCC internal prototype to avoid an error.
11018    Use char because int might match the return type of a GCC
11019    builtin and then its argument prototype would still apply.  */
11020 #ifdef __cplusplus
11021 extern "C"
11022 #endif
11023 char _doprnt ();
11024 /* The GNU C library defines this for functions which it implements
11025     to always fail with ENOSYS.  Some functions are actually named
11026     something starting with __ and the normal name is an alias.  */
11027 #if defined __stub__doprnt || defined __stub____doprnt
11028 choke me
11029 #endif
11030
11031 int
11032 main ()
11033 {
11034 return _doprnt ();
11035   ;
11036   return 0;
11037 }
11038 _ACEOF
11039 rm -f conftest.$ac_objext conftest$ac_exeext
11040 if { (ac_try="$ac_link"
11041 case "(($ac_try" in
11042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11043   *) ac_try_echo=$ac_try;;
11044 esac
11045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11046   (eval "$ac_link") 2>conftest.er1
11047   ac_status=$?
11048   grep -v '^ *+' conftest.er1 >conftest.err
11049   rm -f conftest.er1
11050   cat conftest.err >&5
11051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052   (exit $ac_status); } && {
11053          test -z "$ac_c_werror_flag" ||
11054          test ! -s conftest.err
11055        } && test -s conftest$ac_exeext &&
11056        $as_test_x conftest$ac_exeext; then
11057   ac_cv_func__doprnt=yes
11058 else
11059   echo "$as_me: failed program was:" >&5
11060 sed 's/^/| /' conftest.$ac_ext >&5
11061
11062         ac_cv_func__doprnt=no
11063 fi
11064
11065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11066       conftest$ac_exeext conftest.$ac_ext
11067 fi
11068 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11069 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
11070 if test $ac_cv_func__doprnt = yes; then
11071
11072 cat >>confdefs.h <<\_ACEOF
11073 #define HAVE_DOPRNT 1
11074 _ACEOF
11075
11076 fi
11077
11078 fi
11079 done
11080
11081
11082 fi
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119 for ac_func in \
11120   alarm \
11121   dup2 \
11122   floor \
11123   getcwd \
11124   getopt \
11125   gethostbyname \
11126   gettimeofday \
11127   getwd \
11128   isatty \
11129   memchr \
11130   memmove \
11131   memset \
11132   mkstemp \
11133   modf \
11134   munmap \
11135   popen \
11136   pow \
11137   select \
11138   signal \
11139   socket \
11140   sleep \
11141   vsnprintf \
11142   snprintf \
11143   sqrt \
11144   strchr \
11145   strdup \
11146   strstr \
11147   strerror \
11148   strcasecmp \
11149   strncasecmp \
11150   strrchr \
11151   strstr \
11152   strtol \
11153   strlcat \
11154   strlcpy \
11155   usleep
11156 do
11157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11158 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11160 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11161   echo $ECHO_N "(cached) $ECHO_C" >&6
11162 else
11163   cat >conftest.$ac_ext <<_ACEOF
11164 /* confdefs.h.  */
11165 _ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h.  */
11169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11170    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11171 #define $ac_func innocuous_$ac_func
11172
11173 /* System header to define __stub macros and hopefully few prototypes,
11174     which can conflict with char $ac_func (); below.
11175     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11176     <limits.h> exists even on freestanding compilers.  */
11177
11178 #ifdef __STDC__
11179 # include <limits.h>
11180 #else
11181 # include <assert.h>
11182 #endif
11183
11184 #undef $ac_func
11185
11186 /* Override any GCC internal prototype to avoid an error.
11187    Use char because int might match the return type of a GCC
11188    builtin and then its argument prototype would still apply.  */
11189 #ifdef __cplusplus
11190 extern "C"
11191 #endif
11192 char $ac_func ();
11193 /* The GNU C library defines this for functions which it implements
11194     to always fail with ENOSYS.  Some functions are actually named
11195     something starting with __ and the normal name is an alias.  */
11196 #if defined __stub_$ac_func || defined __stub___$ac_func
11197 choke me
11198 #endif
11199
11200 int
11201 main ()
11202 {
11203 return $ac_func ();
11204   ;
11205   return 0;
11206 }
11207 _ACEOF
11208 rm -f conftest.$ac_objext conftest$ac_exeext
11209 if { (ac_try="$ac_link"
11210 case "(($ac_try" in
11211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11212   *) ac_try_echo=$ac_try;;
11213 esac
11214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11215   (eval "$ac_link") 2>conftest.er1
11216   ac_status=$?
11217   grep -v '^ *+' conftest.er1 >conftest.err
11218   rm -f conftest.er1
11219   cat conftest.err >&5
11220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221   (exit $ac_status); } && {
11222          test -z "$ac_c_werror_flag" ||
11223          test ! -s conftest.err
11224        } && test -s conftest$ac_exeext &&
11225        $as_test_x conftest$ac_exeext; then
11226   eval "$as_ac_var=yes"
11227 else
11228   echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11230
11231         eval "$as_ac_var=no"
11232 fi
11233
11234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11235       conftest$ac_exeext conftest.$ac_ext
11236 fi
11237 ac_res=`eval echo '${'$as_ac_var'}'`
11238                { echo "$as_me:$LINENO: result: $ac_res" >&5
11239 echo "${ECHO_T}$ac_res" >&6; }
11240 if test `eval echo '${'$as_ac_var'}'` = yes; then
11241   cat >>confdefs.h <<_ACEOF
11242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11243 _ACEOF
11244
11245 fi
11246 done
11247
11248 if test "x$VCPP" = xyes; then
11249   cat >>confdefs.h <<\_ACEOF
11250 #define RETSIGTYPE int
11251 _ACEOF
11252
11253   cat >>confdefs.h <<\_ACEOF
11254 #define HAVE_GETCWD 1
11255 _ACEOF
11256
11257 fi
11258 if test "x$POCC" = xyes; then
11259   cat >>confdefs.h <<\_ACEOF
11260 #define HAVE_GETCWD 1
11261 _ACEOF
11262
11263   cat >>confdefs.h <<\_ACEOF
11264 #define HAVE_GETHOSTBYNAME 1
11265 _ACEOF
11266
11267   cat >>confdefs.h <<\_ACEOF
11268 #define HAVE_POPEN 1
11269 _ACEOF
11270
11271   cat >>confdefs.h <<\_ACEOF
11272 #define HAVE_SELECT 1
11273 _ACEOF
11274
11275   cat >>confdefs.h <<\_ACEOF
11276 #define HAVE_SNPRINTF 1
11277 _ACEOF
11278
11279   cat >>confdefs.h <<\_ACEOF
11280 #define HAVE_STRDUP 1
11281 _ACEOF
11282
11283   cat >>confdefs.h <<\_ACEOF
11284 #define HAVE_STRERROR 1
11285 _ACEOF
11286
11287   cat >>confdefs.h <<\_ACEOF
11288 #define HAVE_STRCASECMP 1
11289 _ACEOF
11290
11291   cat >>confdefs.h <<\_ACEOF
11292 #define HAVE_STRSTR 1
11293 _ACEOF
11294
11295   cat >>confdefs.h <<\_ACEOF
11296 #define HAVE_SOCKET 1
11297 _ACEOF
11298
11299   cat >>confdefs.h <<\_ACEOF
11300 #define HAVE_VSNPRINTF 1
11301 _ACEOF
11302
11303   cat >>confdefs.h <<\_ACEOF
11304 #define HAVE_GETOPT 1
11305 _ACEOF
11306
11307
11308 cat >>confdefs.h <<\_ACEOF
11309 #define TIMID_VERSION $(PACKAGE_VERSION)
11310 _ACEOF
11311
11312 fi
11313 if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes; then
11314   cat >>confdefs.h <<\_ACEOF
11315 #define HAVE_GETHOSTBYNAME 1
11316 _ACEOF
11317
11318   cat >>confdefs.h <<\_ACEOF
11319 #define HAVE_POPEN 1
11320 _ACEOF
11321
11322
11323 cat >>confdefs.h <<\_ACEOF
11324 #define popen _popen
11325 _ACEOF
11326
11327
11328 cat >>confdefs.h <<\_ACEOF
11329 #define pclose _pclose
11330 _ACEOF
11331
11332   cat >>confdefs.h <<\_ACEOF
11333 #define HAVE_SELECT 1
11334 _ACEOF
11335
11336   cat >>confdefs.h <<\_ACEOF
11337 #define HAVE_SNPRINTF 1
11338 _ACEOF
11339
11340   cat >>confdefs.h <<\_ACEOF
11341 #define HAVE_STRDUP 1
11342 _ACEOF
11343
11344   cat >>confdefs.h <<\_ACEOF
11345 #define HAVE_STRERROR 1
11346 _ACEOF
11347
11348   cat >>confdefs.h <<\_ACEOF
11349 #define HAVE_STRNCASECMP 1
11350 _ACEOF
11351
11352   cat >>confdefs.h <<\_ACEOF
11353 #define HAVE_STRSTR 1
11354 _ACEOF
11355
11356
11357 cat >>confdefs.h <<\_ACEOF
11358 #define snprintf _snprintf
11359 _ACEOF
11360
11361   cat >>confdefs.h <<\_ACEOF
11362 #define HAVE_SOCKET 1
11363 _ACEOF
11364
11365   cat >>confdefs.h <<\_ACEOF
11366 #define HAVE_VSNPRINTF 1
11367 _ACEOF
11368
11369
11370 cat >>confdefs.h <<\_ACEOF
11371 #define vsnprintf _vsnprintf
11372 _ACEOF
11373
11374
11375 cat >>confdefs.h <<\_ACEOF
11376 #define TIMID_VERSION $(PACKAGE_VERSION)
11377 _ACEOF
11378
11379 fi
11380
11381 { echo "$as_me:$LINENO: checking for getopt_long" >&5
11382 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6; }
11383 if test "${ac_cv_func_getopt_long+set}" = set; then
11384   echo $ECHO_N "(cached) $ECHO_C" >&6
11385 else
11386   cat >conftest.$ac_ext <<_ACEOF
11387 /* confdefs.h.  */
11388 _ACEOF
11389 cat confdefs.h >>conftest.$ac_ext
11390 cat >>conftest.$ac_ext <<_ACEOF
11391 /* end confdefs.h.  */
11392 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
11393    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11394 #define getopt_long innocuous_getopt_long
11395
11396 /* System header to define __stub macros and hopefully few prototypes,
11397     which can conflict with char getopt_long (); below.
11398     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11399     <limits.h> exists even on freestanding compilers.  */
11400
11401 #ifdef __STDC__
11402 # include <limits.h>
11403 #else
11404 # include <assert.h>
11405 #endif
11406
11407 #undef getopt_long
11408
11409 /* Override any GCC internal prototype to avoid an error.
11410    Use char because int might match the return type of a GCC
11411    builtin and then its argument prototype would still apply.  */
11412 #ifdef __cplusplus
11413 extern "C"
11414 #endif
11415 char getopt_long ();
11416 /* The GNU C library defines this for functions which it implements
11417     to always fail with ENOSYS.  Some functions are actually named
11418     something starting with __ and the normal name is an alias.  */
11419 #if defined __stub_getopt_long || defined __stub___getopt_long
11420 choke me
11421 #endif
11422
11423 int
11424 main ()
11425 {
11426 return getopt_long ();
11427   ;
11428   return 0;
11429 }
11430 _ACEOF
11431 rm -f conftest.$ac_objext conftest$ac_exeext
11432 if { (ac_try="$ac_link"
11433 case "(($ac_try" in
11434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11435   *) ac_try_echo=$ac_try;;
11436 esac
11437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11438   (eval "$ac_link") 2>conftest.er1
11439   ac_status=$?
11440   grep -v '^ *+' conftest.er1 >conftest.err
11441   rm -f conftest.er1
11442   cat conftest.err >&5
11443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444   (exit $ac_status); } && {
11445          test -z "$ac_c_werror_flag" ||
11446          test ! -s conftest.err
11447        } && test -s conftest$ac_exeext &&
11448        $as_test_x conftest$ac_exeext; then
11449   ac_cv_func_getopt_long=yes
11450 else
11451   echo "$as_me: failed program was:" >&5
11452 sed 's/^/| /' conftest.$ac_ext >&5
11453
11454         ac_cv_func_getopt_long=no
11455 fi
11456
11457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11458       conftest$ac_exeext conftest.$ac_ext
11459 fi
11460 { echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
11461 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6; }
11462 if test $ac_cv_func_getopt_long = yes; then
11463
11464 cat >>confdefs.h <<\_ACEOF
11465 #define HAVE_GETOPT_LONG 1
11466 _ACEOF
11467
11468          tm_cv_needgetopt="no"
11469 else
11470   tm_cv_needgetopt="yes"
11471 fi
11472
11473
11474
11475 if test "x$tm_cv_needgetopt" = "xyes"; then
11476   NEEDGETOPT_TRUE=
11477   NEEDGETOPT_FALSE='#'
11478 else
11479   NEEDGETOPT_TRUE='#'
11480   NEEDGETOPT_FALSE=
11481 fi
11482
11483
11484 { echo "$as_me:$LINENO: checking for open_memstream" >&5
11485 echo $ECHO_N "checking for open_memstream... $ECHO_C" >&6; }
11486 if test "${ac_cv_func_open_memstream+set}" = set; then
11487   echo $ECHO_N "(cached) $ECHO_C" >&6
11488 else
11489   cat >conftest.$ac_ext <<_ACEOF
11490 /* confdefs.h.  */
11491 _ACEOF
11492 cat confdefs.h >>conftest.$ac_ext
11493 cat >>conftest.$ac_ext <<_ACEOF
11494 /* end confdefs.h.  */
11495 /* Define open_memstream to an innocuous variant, in case <limits.h> declares open_memstream.
11496    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11497 #define open_memstream innocuous_open_memstream
11498
11499 /* System header to define __stub macros and hopefully few prototypes,
11500     which can conflict with char open_memstream (); below.
11501     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11502     <limits.h> exists even on freestanding compilers.  */
11503
11504 #ifdef __STDC__
11505 # include <limits.h>
11506 #else
11507 # include <assert.h>
11508 #endif
11509
11510 #undef open_memstream
11511
11512 /* Override any GCC internal prototype to avoid an error.
11513    Use char because int might match the return type of a GCC
11514    builtin and then its argument prototype would still apply.  */
11515 #ifdef __cplusplus
11516 extern "C"
11517 #endif
11518 char open_memstream ();
11519 /* The GNU C library defines this for functions which it implements
11520     to always fail with ENOSYS.  Some functions are actually named
11521     something starting with __ and the normal name is an alias.  */
11522 #if defined __stub_open_memstream || defined __stub___open_memstream
11523 choke me
11524 #endif
11525
11526 int
11527 main ()
11528 {
11529 return open_memstream ();
11530   ;
11531   return 0;
11532 }
11533 _ACEOF
11534 rm -f conftest.$ac_objext conftest$ac_exeext
11535 if { (ac_try="$ac_link"
11536 case "(($ac_try" in
11537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538   *) ac_try_echo=$ac_try;;
11539 esac
11540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11541   (eval "$ac_link") 2>conftest.er1
11542   ac_status=$?
11543   grep -v '^ *+' conftest.er1 >conftest.err
11544   rm -f conftest.er1
11545   cat conftest.err >&5
11546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547   (exit $ac_status); } && {
11548          test -z "$ac_c_werror_flag" ||
11549          test ! -s conftest.err
11550        } && test -s conftest$ac_exeext &&
11551        $as_test_x conftest$ac_exeext; then
11552   ac_cv_func_open_memstream=yes
11553 else
11554   echo "$as_me: failed program was:" >&5
11555 sed 's/^/| /' conftest.$ac_ext >&5
11556
11557         ac_cv_func_open_memstream=no
11558 fi
11559
11560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11561       conftest$ac_exeext conftest.$ac_ext
11562 fi
11563 { echo "$as_me:$LINENO: result: $ac_cv_func_open_memstream" >&5
11564 echo "${ECHO_T}$ac_cv_func_open_memstream" >&6; }
11565 if test $ac_cv_func_open_memstream = yes; then
11566
11567
11568 cat >>confdefs.h <<\_ACEOF
11569 #define HAVE_OPEN_MEMSTREAM 1
11570 _ACEOF
11571
11572
11573 fi
11574
11575
11576 # Checks on cygnus and MSYS
11577 if test "x$MSYS" = xyes ; then
11578   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
11579   *yes*)
11580     { echo "$as_me:$LINENO: checking for opendir" >&5
11581 echo $ECHO_N "checking for opendir... $ECHO_C" >&6; }
11582 if test "${ac_cv_func_opendir+set}" = set; then
11583   echo $ECHO_N "(cached) $ECHO_C" >&6
11584 else
11585   cat >conftest.$ac_ext <<_ACEOF
11586 /* confdefs.h.  */
11587 _ACEOF
11588 cat confdefs.h >>conftest.$ac_ext
11589 cat >>conftest.$ac_ext <<_ACEOF
11590 /* end confdefs.h.  */
11591 /* Define opendir to an innocuous variant, in case <limits.h> declares opendir.
11592    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11593 #define opendir innocuous_opendir
11594
11595 /* System header to define __stub macros and hopefully few prototypes,
11596     which can conflict with char opendir (); below.
11597     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11598     <limits.h> exists even on freestanding compilers.  */
11599
11600 #ifdef __STDC__
11601 # include <limits.h>
11602 #else
11603 # include <assert.h>
11604 #endif
11605
11606 #undef opendir
11607
11608 /* Override any GCC internal prototype to avoid an error.
11609    Use char because int might match the return type of a GCC
11610    builtin and then its argument prototype would still apply.  */
11611 #ifdef __cplusplus
11612 extern "C"
11613 #endif
11614 char opendir ();
11615 /* The GNU C library defines this for functions which it implements
11616     to always fail with ENOSYS.  Some functions are actually named
11617     something starting with __ and the normal name is an alias.  */
11618 #if defined __stub_opendir || defined __stub___opendir
11619 choke me
11620 #endif
11621
11622 int
11623 main ()
11624 {
11625 return opendir ();
11626   ;
11627   return 0;
11628 }
11629 _ACEOF
11630 rm -f conftest.$ac_objext conftest$ac_exeext
11631 if { (ac_try="$ac_link"
11632 case "(($ac_try" in
11633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11634   *) ac_try_echo=$ac_try;;
11635 esac
11636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11637   (eval "$ac_link") 2>conftest.er1
11638   ac_status=$?
11639   grep -v '^ *+' conftest.er1 >conftest.err
11640   rm -f conftest.er1
11641   cat conftest.err >&5
11642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643   (exit $ac_status); } && {
11644          test -z "$ac_c_werror_flag" ||
11645          test ! -s conftest.err
11646        } && test -s conftest$ac_exeext &&
11647        $as_test_x conftest$ac_exeext; then
11648   ac_cv_func_opendir=yes
11649 else
11650   echo "$as_me: failed program was:" >&5
11651 sed 's/^/| /' conftest.$ac_ext >&5
11652
11653         ac_cv_func_opendir=no
11654 fi
11655
11656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11657       conftest$ac_exeext conftest.$ac_ext
11658 fi
11659 { echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
11660 echo "${ECHO_T}$ac_cv_func_opendir" >&6; }
11661 if test $ac_cv_func_opendir = yes; then
11662   :
11663 else
11664    EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11665     W32READDIR=yes
11666 fi
11667
11668     ;;
11669   *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
11670     W32READDIR=yes
11671     ;;
11672   esac
11673   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes || test "x$POCC" = xyes; then
11674     EXTRALIBS="$EXTRALIBS  wsock32.lib"
11675     EXTRADEFS="$EXTRADEFS -DWINSOCK"
11676   else
11677     { echo "$as_me:$LINENO: checking for socket" >&5
11678 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
11679 if test "${ac_cv_func_socket+set}" = set; then
11680   echo $ECHO_N "(cached) $ECHO_C" >&6
11681 else
11682   cat >conftest.$ac_ext <<_ACEOF
11683 /* confdefs.h.  */
11684 _ACEOF
11685 cat confdefs.h >>conftest.$ac_ext
11686 cat >>conftest.$ac_ext <<_ACEOF
11687 /* end confdefs.h.  */
11688 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
11689    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11690 #define socket innocuous_socket
11691
11692 /* System header to define __stub macros and hopefully few prototypes,
11693     which can conflict with char socket (); below.
11694     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11695     <limits.h> exists even on freestanding compilers.  */
11696
11697 #ifdef __STDC__
11698 # include <limits.h>
11699 #else
11700 # include <assert.h>
11701 #endif
11702
11703 #undef socket
11704
11705 /* Override any GCC internal prototype to avoid an error.
11706    Use char because int might match the return type of a GCC
11707    builtin and then its argument prototype would still apply.  */
11708 #ifdef __cplusplus
11709 extern "C"
11710 #endif
11711 char socket ();
11712 /* The GNU C library defines this for functions which it implements
11713     to always fail with ENOSYS.  Some functions are actually named
11714     something starting with __ and the normal name is an alias.  */
11715 #if defined __stub_socket || defined __stub___socket
11716 choke me
11717 #endif
11718
11719 int
11720 main ()
11721 {
11722 return socket ();
11723   ;
11724   return 0;
11725 }
11726 _ACEOF
11727 rm -f conftest.$ac_objext conftest$ac_exeext
11728 if { (ac_try="$ac_link"
11729 case "(($ac_try" in
11730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11731   *) ac_try_echo=$ac_try;;
11732 esac
11733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11734   (eval "$ac_link") 2>conftest.er1
11735   ac_status=$?
11736   grep -v '^ *+' conftest.er1 >conftest.err
11737   rm -f conftest.er1
11738   cat conftest.err >&5
11739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740   (exit $ac_status); } && {
11741          test -z "$ac_c_werror_flag" ||
11742          test ! -s conftest.err
11743        } && test -s conftest$ac_exeext &&
11744        $as_test_x conftest$ac_exeext; then
11745   ac_cv_func_socket=yes
11746 else
11747   echo "$as_me: failed program was:" >&5
11748 sed 's/^/| /' conftest.$ac_ext >&5
11749
11750         ac_cv_func_socket=no
11751 fi
11752
11753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11754       conftest$ac_exeext conftest.$ac_ext
11755 fi
11756 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
11757 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
11758 if test $ac_cv_func_socket = yes; then
11759   :
11760 else
11761   { echo "$as_me:$LINENO: checking for WSAStartup in -lwsock32" >&5
11762 echo $ECHO_N "checking for WSAStartup in -lwsock32... $ECHO_C" >&6; }
11763 ac_lib_var=`echo wsock32'_'WSAStartup | sed 'y%./+-%__p_%'`
11764 if { as_var=wapi_cv_lib_$ac_lib_var; eval "test \"\${$as_var+set}\" = set"; }; then
11765   echo $ECHO_N "(cached) $ECHO_C" >&6
11766 else
11767   ac_save_LIBS="$LIBS"
11768 LIBS="-lwsock32  $LIBS"
11769 cat >conftest.$ac_ext <<_ACEOF
11770 /* confdefs.h.  */
11771 _ACEOF
11772 cat confdefs.h >>conftest.$ac_ext
11773 cat >>conftest.$ac_ext <<_ACEOF
11774 /* end confdefs.h.  */
11775 #include <windows.h>
11776 #include <winsock.h>
11777
11778 int
11779 main ()
11780 {
11781 WSAStartup(0,0);
11782   ;
11783   return 0;
11784 }
11785 _ACEOF
11786 rm -f conftest.$ac_objext conftest$ac_exeext
11787 if { (ac_try="$ac_link"
11788 case "(($ac_try" in
11789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11790   *) ac_try_echo=$ac_try;;
11791 esac
11792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11793   (eval "$ac_link") 2>conftest.er1
11794   ac_status=$?
11795   grep -v '^ *+' conftest.er1 >conftest.err
11796   rm -f conftest.er1
11797   cat conftest.err >&5
11798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799   (exit $ac_status); } && {
11800          test -z "$ac_c_werror_flag" ||
11801          test ! -s conftest.err
11802        } && test -s conftest$ac_exeext &&
11803        $as_test_x conftest$ac_exeext; then
11804   eval "wapi_cv_lib_$ac_lib_var=yes"
11805 else
11806   echo "$as_me: failed program was:" >&5
11807 sed 's/^/| /' conftest.$ac_ext >&5
11808
11809         eval "wapi_cv_lib_$ac_lib_var=no"
11810 fi
11811
11812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11813       conftest$ac_exeext conftest.$ac_ext
11814 LIBS="$ac_save_LIBS"
11815
11816 fi
11817 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
11818   { echo "$as_me:$LINENO: result: yes" >&5
11819 echo "${ECHO_T}yes" >&6; }
11820    EXTRALIBS="$EXTRALIBS -lwsock32"
11821         EXTRADEFS="$EXTRADEFS -DWINSOCK"
11822
11823 else
11824   { echo "$as_me:$LINENO: result: no" >&5
11825 echo "${ECHO_T}no" >&6; }
11826 fi
11827
11828
11829 fi
11830
11831   fi
11832 fi
11833
11834 # Checks on extra paths
11835
11836
11837 # Check whether --with-tcl-includes was given.
11838 if test "${with_tcl_includes+set}" = set; then
11839   withval=$with_tcl_includes;  if test ! -d $withval; then
11840       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11841 echo "$as_me: WARNING: $withval is not found." >&2;}
11842     fi
11843     tcl_include_dir="-I$withval"
11844
11845 fi
11846
11847
11848 # Check whether --with-tcl-libs was given.
11849 if test "${with_tcl_libs+set}" = set; then
11850   withval=$with_tcl_libs;  if test ! -d $withval; then
11851       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11852 echo "$as_me: WARNING: $withval is not found." >&2;}
11853     fi
11854     tcl_libdir="-L$withval"
11855 fi
11856
11857
11858 # Check whether --with-tk-includes was given.
11859 if test "${with_tk_includes+set}" = set; then
11860   withval=$with_tk_includes;  if test ! -d $withval; then
11861       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11862 echo "$as_me: WARNING: $withval is not found." >&2;}
11863     fi
11864     tk_includes="-I$withval"
11865 fi
11866
11867
11868 # Check whether --with-tk-libs was given.
11869 if test "${with_tk_libs+set}" = set; then
11870   withval=$with_tk_libs;  if test ! -d $withval; then
11871       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11872 echo "$as_me: WARNING: $withval is not found." >&2;}
11873     fi
11874     tk_libdir="-L$withval"
11875 fi
11876
11877
11878
11879 # Check whether --with-offix-includes was given.
11880 if test "${with_offix_includes+set}" = set; then
11881   withval=$with_offix_includes;  if test ! -d $withval; then
11882       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11883 echo "$as_me: WARNING: $withval is not found." >&2;}
11884     fi
11885     offix_include_dir="-I$withval"
11886 fi
11887
11888
11889 # Check whether --with-offix-libs was given.
11890 if test "${with_offix_libs+set}" = set; then
11891   withval=$with_offix_libs;  if test ! -d $withval; then
11892       { echo "$as_me:$LINENO: WARNING: $withval is not found." >&5
11893 echo "$as_me: WARNING: $withval is not found." >&2;}
11894     fi
11895     offix_lib_dir="-L$withval"
11896 fi
11897
11898
11899
11900 #
11901 # audio section
11902 #
11903
11904 audio_targets='default oss alsa sun hpux irix mme sb_dsp w32 alib nas arts esd vorbis flac gogo portaudio npipe jack ao'
11905
11906
11907 # Check whether --with-nas-library was given.
11908 if test "${with_nas_library+set}" = set; then
11909   withval=$with_nas_library;
11910 fi
11911
11912
11913 # Check whether --with-nas-includes was given.
11914 if test "${with_nas_includes+set}" = set; then
11915   withval=$with_nas_includes;
11916 fi
11917
11918
11919
11920 # Check whether --enable-audio was given.
11921 if test "${enable_audio+set}" = set; then
11922   enableval=$enable_audio;  enable_audio=$enableval
11923     have_audio_opt=yes
11924 else
11925    enable_audio=yes
11926     have_audio_opt=no
11927 fi
11928
11929
11930 test "x$enable_audio" = xyes && enable_audio=default
11931
11932 if test "x$enable_audio" != xno; then
11933   for i in `echo $enable_audio | sed 's/,/ /g'`; do
11934     eval "au_enable_$i=yes"
11935   done
11936 fi
11937
11938 DEFAULT_PLAYMODE=
11939
11940 # Check whether --with-default-output was given.
11941 if test "${with_default_output+set}" = set; then
11942   withval=$with_default_output;  if test "$enable_audio" != no; then
11943     DEFAULT_PLAYMODE=$withval
11944     eval "au_enable_$DEFAULT_PLAYMODE=yes"
11945   else
11946     { echo "$as_me:$LINENO: WARNING: --with-default-output=$withval: audio is not enabled" >&5
11947 echo "$as_me: WARNING: --with-default-output=$withval: audio is not enabled" >&2;}
11948   fi
11949 fi
11950
11951
11952
11953 if test "x$au_enable_default" = xyes; then
11954   case "$target" in
11955   *-*-linux*|*-*-freebsd*)
11956     au_enable_oss=yes
11957     ;;
11958   *-*-bsdi2.0)
11959     au_enable_sb_dsp=yes
11960     ;;
11961   *-*-bsdi2.1|*-*-bsdi3.?|*-*-bsdi4.?)
11962     au_enable_oss=yes
11963     ;;
11964   *-*-hpux*)
11965     au_enable_hpux=yes
11966     ;;
11967   *-dec-*)
11968     au_enable_mme=yes
11969     ;;
11970   *irix*)
11971     au_enable_irix=yes
11972     ;;
11973   *-*-sunos4*)
11974     au_enable_sun=yes
11975     ;;
11976   *-*-solaris*)
11977     au_enable_sun=yes
11978     ;;
11979   *-*-netbsd*)
11980     au_enable_sun=yes
11981     ;;
11982   *-*-openbsd*)
11983     au_enable_sun=yes
11984     ;;
11985   *-*-cygwin*)
11986     au_enable_w32=yes
11987     ;;
11988   *-*-mingw*)
11989     au_enable_w32=yes
11990     ;;
11991   *-*-darwin*)
11992     au_enable_darwin=yes
11993     ;;
11994   *)
11995     { echo "$as_me:$LINENO: WARNING: No --enable-audio=default audio for $target" >&5
11996 echo "$as_me: WARNING: No --enable-audio=default audio for $target" >&2;}
11997     ;;
11998   esac
11999 fi
12000
12001
12002 # Each audio mode's configurations
12003 { echo "$as_me:$LINENO: checking enable_audio=oss" >&5
12004 echo $ECHO_N "checking enable_audio=oss... $ECHO_C" >&6; }
12005 if test "x$au_enable_oss" = xyes; then
12006   EXTRADEFS="$EXTRADEFS -DAU_OSS"
12007   SYSEXTRAS="$SYSEXTRAS oss_a.c"
12008   if test "x$ac_cv_header_sys_soundcard_h" = xyes; then
12009     { echo "$as_me:$LINENO: result: yes - <sys/soundcard.h>" >&5
12010 echo "${ECHO_T}yes - <sys/soundcard.h>" >&6; }
12011   else
12012     case "$target" in
12013       *linux*|*freebsd*)
12014                 { echo "$as_me:$LINENO: result: yes" >&5
12015 echo "${ECHO_T}yes" >&6; }
12016         ;;
12017       *)
12018         if test "x$ac_cv_header_soundcard_h" = xyes; then
12019           { echo "$as_me:$LINENO: result: yes - <soundcard.h>" >&5
12020 echo "${ECHO_T}yes - <soundcard.h>" >&6; }
12021         else
12022           { echo "$as_me:$LINENO: WARNING: <sys/soundcard.h> is not found" >&5
12023 echo "$as_me: WARNING: <sys/soundcard.h> is not found" >&2;}
12024         fi
12025         ;;
12026     esac
12027   fi
12028
12029 { echo "$as_me:$LINENO: checking for open in -lossaudio" >&5
12030 echo $ECHO_N "checking for open in -lossaudio... $ECHO_C" >&6; }
12031 if test "${ac_cv_lib_ossaudio_open+set}" = set; then
12032   echo $ECHO_N "(cached) $ECHO_C" >&6
12033 else
12034   ac_check_lib_save_LIBS=$LIBS
12035 LIBS="-lossaudio  $LIBS"
12036 cat >conftest.$ac_ext <<_ACEOF
12037 /* confdefs.h.  */
12038 _ACEOF
12039 cat confdefs.h >>conftest.$ac_ext
12040 cat >>conftest.$ac_ext <<_ACEOF
12041 /* end confdefs.h.  */
12042
12043 /* Override any GCC internal prototype to avoid an error.
12044    Use char because int might match the return type of a GCC
12045    builtin and then its argument prototype would still apply.  */
12046 #ifdef __cplusplus
12047 extern "C"
12048 #endif
12049 char open ();
12050 int
12051 main ()
12052 {
12053 return open ();
12054   ;
12055   return 0;
12056 }
12057 _ACEOF
12058 rm -f conftest.$ac_objext conftest$ac_exeext
12059 if { (ac_try="$ac_link"
12060 case "(($ac_try" in
12061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12062   *) ac_try_echo=$ac_try;;
12063 esac
12064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12065   (eval "$ac_link") 2>conftest.er1
12066   ac_status=$?
12067   grep -v '^ *+' conftest.er1 >conftest.err
12068   rm -f conftest.er1
12069   cat conftest.err >&5
12070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071   (exit $ac_status); } && {
12072          test -z "$ac_c_werror_flag" ||
12073          test ! -s conftest.err
12074        } && test -s conftest$ac_exeext &&
12075        $as_test_x conftest$ac_exeext; then
12076   ac_cv_lib_ossaudio_open=yes
12077 else
12078   echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12080
12081         ac_cv_lib_ossaudio_open=no
12082 fi
12083
12084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12085       conftest$ac_exeext conftest.$ac_ext
12086 LIBS=$ac_check_lib_save_LIBS
12087 fi
12088 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_open" >&5
12089 echo "${ECHO_T}$ac_cv_lib_ossaudio_open" >&6; }
12090 if test $ac_cv_lib_ossaudio_open = yes; then
12091   cat >>confdefs.h <<_ACEOF
12092 #define HAVE_LIBOSSAUDIO 1
12093 _ACEOF
12094
12095   LIBS="-lossaudio $LIBS"
12096
12097 fi
12098
12099
12100     case "$target" in
12101     *openbsd*)
12102       if test ! -e "/dev/dsp"; then
12103         oss_device=/dev/audio
12104       fi
12105       ;;
12106   esac
12107 else
12108   { echo "$as_me:$LINENO: result: no" >&5
12109 echo "${ECHO_T}no" >&6; }
12110 fi
12111
12112 { echo "$as_me:$LINENO: checking enable_audio=sun" >&5
12113 echo $ECHO_N "checking enable_audio=sun... $ECHO_C" >&6; }
12114 if test "x$au_enable_sun" = xyes; then
12115   case "$target" in
12116     *-*-sunos4*)
12117       if test -f /usr/demo/SOUND/libaudio.a; then
12118         EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/libaudio.a"
12119         { echo "$as_me:$LINENO: result: yes" >&5
12120 echo "${ECHO_T}yes" >&6; }
12121       else
12122         { echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
12123 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6; }
12124       fi
12125       ;;
12126     *-*-solaris*)
12127       if test -f /usr/demo/SOUND/lib/libaudio.a; then
12128         EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/lib/libaudio.a"
12129         { echo "$as_me:$LINENO: result: yes" >&5
12130 echo "${ECHO_T}yes" >&6; }
12131       else
12132         { echo "$as_me:$LINENO: result: Notice: libaudio.a is not found (ignore)" >&5
12133 echo "${ECHO_T}Notice: libaudio.a is not found (ignore)" >&6; }
12134       fi
12135       ;;
12136     *)   { echo "$as_me:$LINENO: result: yes" >&5
12137 echo "${ECHO_T}yes" >&6; }
12138       ;;
12139   esac
12140   EXTRADEFS="$EXTRADEFS -DAU_SUN"
12141   SYSEXTRAS="$SYSEXTRAS sun_a.c"
12142 else
12143   { echo "$as_me:$LINENO: result: no" >&5
12144 echo "${ECHO_T}no" >&6; }
12145 fi
12146
12147 { echo "$as_me:$LINENO: checking enable_audio=hpux" >&5
12148 echo $ECHO_N "checking enable_audio=hpux... $ECHO_C" >&6; }
12149 if test "x$au_enable_hpux" = xyes; then
12150   case "$target" in
12151     *-*-hpux*) { echo "$as_me:$LINENO: result: yes" >&5
12152 echo "${ECHO_T}yes" >&6; } ;;
12153     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12154 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12155   esac
12156   EXTRADEFS="$EXTRADEFS -DAU_HPUX_AUDIO"
12157   SYSEXTRAS="$SYSEXTRAS hpux_d_a.c"
12158 else
12159   { echo "$as_me:$LINENO: result: no" >&5
12160 echo "${ECHO_T}no" >&6; }
12161 fi
12162
12163 { echo "$as_me:$LINENO: checking enable_audio=irix" >&5
12164 echo $ECHO_N "checking enable_audio=irix... $ECHO_C" >&6; }
12165 if test "x$au_enable_irix" = xyes; then
12166   case "$target" in
12167     *-sgi-irix5*|*-sgi-irix6.2)
12168       EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_OLDAL"
12169       { echo "$as_me:$LINENO: result: yes" >&5
12170 echo "${ECHO_T}yes" >&6; }
12171       ;;
12172     *-sgi-irix6*)
12173       EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_NEWAL"
12174       { echo "$as_me:$LINENO: result: yes" >&5
12175 echo "${ECHO_T}yes" >&6; }
12176       ;;
12177     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12178 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12179   esac
12180   SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_al.c"
12181   EXTRALIBS="$EXTRASLIBS -laudio"
12182 else
12183   { echo "$as_me:$LINENO: result: no" >&5
12184 echo "${ECHO_T}no" >&6; }
12185 fi
12186
12187 { echo "$as_me:$LINENO: checking enable_audio=mme" >&5
12188 echo $ECHO_N "checking enable_audio=mme... $ECHO_C" >&6; }
12189 if test "x$au_enable_mme" = xyes; then
12190   case "$target" in
12191     *-dec-*) { echo "$as_me:$LINENO: result: yes" >&5
12192 echo "${ECHO_T}yes" >&6; } ;;
12193     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12194 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12195   esac
12196   EXTRADEFS="$EXTRADEFS -DAU_DEC -DAU_AUDRIV"
12197   SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_mme.c"
12198   CPPFLAGS="$CPPFLAGS -I/usr/opt/MME210/include"
12199   EXTRALIBS="$EXTRALIBS /usr/opt/MME220/lib/libmme.a"
12200 else
12201   { echo "$as_me:$LINENO: result: no" >&5
12202 echo "${ECHO_T}no" >&6; }
12203 fi
12204
12205 { echo "$as_me:$LINENO: checking enable_audio=sb_dsp" >&5
12206 echo $ECHO_N "checking enable_audio=sb_dsp... $ECHO_C" >&6; }
12207 if test "x$au_enable_sb_dsp" = xyes; then
12208   case "$target" in
12209     *-*-bsdi2.0) { echo "$as_me:$LINENO: result: yes" >&5
12210 echo "${ECHO_T}yes" >&6; } ;;
12211     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12212 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12213   esac
12214   EXTRADEFS="$EXTRADEFS -DAU_BSDI -DDEFAULT_RATE=22500"
12215   SYSEXTRAS="$SYSEXTRAS bsd20_a.c"
12216 else
12217   { echo "$as_me:$LINENO: result: no" >&5
12218 echo "${ECHO_T}no" >&6; }
12219 fi
12220
12221 { echo "$as_me:$LINENO: checking enable_audio=w32" >&5
12222 echo $ECHO_N "checking enable_audio=w32... $ECHO_C" >&6; }
12223 if test "x$au_enable_w32" = xyes; then
12224   case "$target" in
12225     *-*-cygwin*)
12226      { echo "$as_me:$LINENO: result: yes" >&5
12227 echo "${ECHO_T}yes" >&6; }
12228      ;;
12229     *-*-mingw32)
12230      { echo "$as_me:$LINENO: result: yes" >&5
12231 echo "${ECHO_T}yes" >&6; }
12232      ;;
12233     *)
12234      { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12235 echo "$as_me: WARNING: may not work on $target" >&2;}
12236      ;;
12237   esac
12238   SYSEXTRAS="$SYSEXTRAS w32_a.c"
12239   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes || test "x$POCC" = xyes; then
12240         EXTRALIBS="$EXTRALIBS winmm.lib"
12241   else
12242     EXTRALIBS="$EXTRALIBS -lwinmm"
12243   fi
12244   EXTRADEFS="$EXTRADEFS -DAU_W32"
12245 else
12246   { echo "$as_me:$LINENO: result: no" >&5
12247 echo "${ECHO_T}no" >&6; }
12248 fi
12249
12250 { echo "$as_me:$LINENO: checking enable_audio=darwin" >&5
12251 echo $ECHO_N "checking enable_audio=darwin... $ECHO_C" >&6; }
12252 if test "x$au_enable_darwin" = xyes; then
12253   EXTRADEFS="$EXTRADEFS -DAU_DARWIN"
12254   SYSEXTRAS="$SYSEXTRAS darwin_a.c"
12255   EXTRALIBS="$EXTRALIBS -framework CoreAudio"
12256     case "$target" in
12257     *-*-darwin*)
12258      { echo "$as_me:$LINENO: result: yes" >&5
12259 echo "${ECHO_T}yes" >&6; };;
12260    *)
12261      { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12262 echo "$as_me: WARNING: may not work on $target" >&2;}
12263      ;;
12264   esac
12265 else
12266   { echo "$as_me:$LINENO: result: no" >&5
12267 echo "${ECHO_T}no" >&6; }
12268 fi
12269
12270
12271 { echo "$as_me:$LINENO: checking enable_audio=alsa" >&5
12272 echo $ECHO_N "checking enable_audio=alsa... $ECHO_C" >&6; }
12273 if test "x$au_enable_alsa" = xyes; then
12274   { echo "$as_me:$LINENO: result: yes, configuring alsa" >&5
12275 echo "${ECHO_T}yes, configuring alsa" >&6; }
12276   KEEPCFLAGS=$CFLAGS
12277   KEEPLIBS=$LIBS
12278   KEEPLDFLAGS=$LDFLAGS
12279   alsa_save_CFLAGS="$CFLAGS"
12280 alsa_save_LDFLAGS="$LDFLAGS"
12281 alsa_save_LIBS="$LIBS"
12282 alsa_found=yes
12283
12284
12285 # Check whether --with-alsa-prefix was given.
12286 if test "${with_alsa_prefix+set}" = set; then
12287   withval=$with_alsa_prefix; alsa_prefix="$withval"
12288 else
12289   alsa_prefix=""
12290 fi
12291
12292
12293
12294 # Check whether --with-alsa-inc-prefix was given.
12295 if test "${with_alsa_inc_prefix+set}" = set; then
12296   withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
12297 else
12298   alsa_inc_prefix=""
12299 fi
12300
12301
12302 # Check whether --enable-alsatest was given.
12303 if test "${enable_alsatest+set}" = set; then
12304   enableval=$enable_alsatest; enable_alsatest=no
12305 else
12306   enable_alsatest=yes
12307 fi
12308
12309
12310 { echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
12311 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6; }
12312 if test "$alsa_inc_prefix" != "" ; then
12313         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
12314         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
12315 fi
12316 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
12317 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
12318
12319 { echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
12320 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6; }
12321 if test "$alsa_prefix" != "" ; then
12322         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
12323         LDFLAGS="$LDFLAGS $ALSA_LIBS"
12324 fi
12325
12326 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
12327 LIBS=`echo $LIBS | sed 's/-lm//'`
12328 LIBS=`echo $LIBS | sed 's/-ldl//'`
12329 LIBS=`echo $LIBS | sed 's/-lpthread//'`
12330 LIBS=`echo $LIBS | sed 's/  //'`
12331 LIBS="$ALSA_LIBS $LIBS"
12332 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
12333 echo "${ECHO_T}$ALSA_LIBS" >&6; }
12334
12335 min_alsa_version=0.1.1
12336 { echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
12337 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6; }
12338 no_alsa=""
12339     alsa_min_major_version=`echo $min_alsa_version | \
12340            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12341     alsa_min_minor_version=`echo $min_alsa_version | \
12342            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12343     alsa_min_micro_version=`echo $min_alsa_version | \
12344            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12345
12346
12347
12348 ac_ext=c
12349 ac_cpp='$CPP $CPPFLAGS'
12350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12353
12354 cat >conftest.$ac_ext <<_ACEOF
12355 /* confdefs.h.  */
12356 _ACEOF
12357 cat confdefs.h >>conftest.$ac_ext
12358 cat >>conftest.$ac_ext <<_ACEOF
12359 /* end confdefs.h.  */
12360
12361 #include <alsa/asoundlib.h>
12362
12363 int
12364 main ()
12365 {
12366
12367 /* ensure backward compatibility */
12368 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
12369 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
12370 #endif
12371 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
12372 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12373 #endif
12374 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12375 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12376 #endif
12377
12378 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
12379   exit(0);
12380 #  else
12381 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
12382 #       error not present
12383 #    endif
12384
12385 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
12386   exit(0);
12387 #   else
12388 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
12389 #          error not present
12390 #      endif
12391
12392 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12393 #        error not present
12394 #      endif
12395 #    endif
12396 #  endif
12397 exit(0);
12398
12399   ;
12400   return 0;
12401 }
12402 _ACEOF
12403 rm -f conftest.$ac_objext
12404 if { (ac_try="$ac_compile"
12405 case "(($ac_try" in
12406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12407   *) ac_try_echo=$ac_try;;
12408 esac
12409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12410   (eval "$ac_compile") 2>conftest.er1
12411   ac_status=$?
12412   grep -v '^ *+' conftest.er1 >conftest.err
12413   rm -f conftest.er1
12414   cat conftest.err >&5
12415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416   (exit $ac_status); } && {
12417          test -z "$ac_c_werror_flag" ||
12418          test ! -s conftest.err
12419        } && test -s conftest.$ac_objext; then
12420   { echo "$as_me:$LINENO: result: found." >&5
12421 echo "${ECHO_T}found." >&6; }
12422 else
12423   echo "$as_me: failed program was:" >&5
12424 sed 's/^/| /' conftest.$ac_ext >&5
12425
12426         cat >conftest.$ac_ext <<_ACEOF
12427 /* confdefs.h.  */
12428 _ACEOF
12429 cat confdefs.h >>conftest.$ac_ext
12430 cat >>conftest.$ac_ext <<_ACEOF
12431 /* end confdefs.h.  */
12432
12433 #include <sys/asoundlib.h>
12434
12435 int
12436 main ()
12437 {
12438
12439 /* ensure backward compatibility */
12440 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
12441 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
12442 #endif
12443 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
12444 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
12445 #endif
12446 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
12447 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
12448 #endif
12449
12450 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
12451   exit(0);
12452 #  else
12453 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
12454 #       error not present
12455 #    endif
12456
12457 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
12458   exit(0);
12459 #   else
12460 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
12461 #          error not present
12462 #      endif
12463
12464 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
12465 #        error not present
12466 #      endif
12467 #    endif
12468 #  endif
12469 exit(0);
12470
12471   ;
12472   return 0;
12473 }
12474 _ACEOF
12475 rm -f conftest.$ac_objext
12476 if { (ac_try="$ac_compile"
12477 case "(($ac_try" in
12478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12479   *) ac_try_echo=$ac_try;;
12480 esac
12481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12482   (eval "$ac_compile") 2>conftest.er1
12483   ac_status=$?
12484   grep -v '^ *+' conftest.er1 >conftest.err
12485   rm -f conftest.er1
12486   cat conftest.err >&5
12487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488   (exit $ac_status); } && {
12489          test -z "$ac_c_werror_flag" ||
12490          test ! -s conftest.err
12491        } && test -s conftest.$ac_objext; then
12492   { echo "$as_me:$LINENO: result: found." >&5
12493 echo "${ECHO_T}found." >&6; }
12494 else
12495   echo "$as_me: failed program was:" >&5
12496 sed 's/^/| /' conftest.$ac_ext >&5
12497
12498         { echo "$as_me:$LINENO: result: not present." >&5
12499 echo "${ECHO_T}not present." >&6; }
12500    { echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
12501 echo "${ECHO_T}libasound was not found anywhere." >&6; }
12502    alsa_found=no
12503 fi
12504
12505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12506    { echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
12507 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6; }
12508
12509 fi
12510
12511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12512 ac_ext=c
12513 ac_cpp='$CPP $CPPFLAGS'
12514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12517
12518
12519
12520 { echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
12521 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6; }
12522 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
12523   echo $ECHO_N "(cached) $ECHO_C" >&6
12524 else
12525   ac_check_lib_save_LIBS=$LIBS
12526 LIBS="-lasound  $LIBS"
12527 cat >conftest.$ac_ext <<_ACEOF
12528 /* confdefs.h.  */
12529 _ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h.  */
12533
12534 /* Override any GCC internal prototype to avoid an error.
12535    Use char because int might match the return type of a GCC
12536    builtin and then its argument prototype would still apply.  */
12537 #ifdef __cplusplus
12538 extern "C"
12539 #endif
12540 char snd_ctl_open ();
12541 int
12542 main ()
12543 {
12544 return snd_ctl_open ();
12545   ;
12546   return 0;
12547 }
12548 _ACEOF
12549 rm -f conftest.$ac_objext conftest$ac_exeext
12550 if { (ac_try="$ac_link"
12551 case "(($ac_try" in
12552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553   *) ac_try_echo=$ac_try;;
12554 esac
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556   (eval "$ac_link") 2>conftest.er1
12557   ac_status=$?
12558   grep -v '^ *+' conftest.er1 >conftest.err
12559   rm -f conftest.er1
12560   cat conftest.err >&5
12561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562   (exit $ac_status); } && {
12563          test -z "$ac_c_werror_flag" ||
12564          test ! -s conftest.err
12565        } && test -s conftest$ac_exeext &&
12566        $as_test_x conftest$ac_exeext; then
12567   ac_cv_lib_asound_snd_ctl_open=yes
12568 else
12569   echo "$as_me: failed program was:" >&5
12570 sed 's/^/| /' conftest.$ac_ext >&5
12571
12572         ac_cv_lib_asound_snd_ctl_open=no
12573 fi
12574
12575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12576       conftest$ac_exeext conftest.$ac_ext
12577 LIBS=$ac_check_lib_save_LIBS
12578 fi
12579 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
12580 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6; }
12581 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
12582   cat >>confdefs.h <<_ACEOF
12583 #define HAVE_LIBASOUND 1
12584 _ACEOF
12585
12586   LIBS="-lasound $LIBS"
12587
12588 else
12589   { echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
12590 echo "${ECHO_T}No linkable libasound was found." >&6; }
12591    alsa_found=no
12592
12593 fi
12594
12595
12596 if test "x$alsa_found" = "xyes" ; then
12597    :
12598    LIBS=`echo $LIBS | sed 's/-lasound//g'`
12599    LIBS=`echo $LIBS | sed 's/  //'`
12600    LIBS="-lasound $LIBS"
12601 else
12602    :
12603    CFLAGS="$alsa_save_CFLAGS"
12604    LDFLAGS="$alsa_save_LDFLAGS"
12605    LIBS="$alsa_save_LIBS"
12606    ALSA_CFLAGS=""
12607    ALSA_LIBS=""
12608 fi
12609
12610
12611
12612
12613   if test "x$alsa_found" = "xyes" ; then
12614         EXTRADEFS="$EXTRADEFS -DAU_ALSA"
12615     SYSEXTRAS="$SYSEXTRAS alsa_a.c"
12616     for f in $ALSA_CFLAGS; do
12617     case ".$f" in
12618         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
12619         *)              CFLAGS="$CFLAGS $f" ;;
12620     esac
12621 done
12622
12623     LIBS="$LIBS $ALSA_LIBS"
12624
12625 for ac_func in snd_seq_port_info_set_timestamping
12626 do
12627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12628 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12630 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12631   echo $ECHO_N "(cached) $ECHO_C" >&6
12632 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12640    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12641 #define $ac_func innocuous_$ac_func
12642
12643 /* System header to define __stub macros and hopefully few prototypes,
12644     which can conflict with char $ac_func (); below.
12645     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12646     <limits.h> exists even on freestanding compilers.  */
12647
12648 #ifdef __STDC__
12649 # include <limits.h>
12650 #else
12651 # include <assert.h>
12652 #endif
12653
12654 #undef $ac_func
12655
12656 /* Override any GCC internal prototype to avoid an error.
12657    Use char because int might match the return type of a GCC
12658    builtin and then its argument prototype would still apply.  */
12659 #ifdef __cplusplus
12660 extern "C"
12661 #endif
12662 char $ac_func ();
12663 /* The GNU C library defines this for functions which it implements
12664     to always fail with ENOSYS.  Some functions are actually named
12665     something starting with __ and the normal name is an alias.  */
12666 #if defined __stub_$ac_func || defined __stub___$ac_func
12667 choke me
12668 #endif
12669
12670 int
12671 main ()
12672 {
12673 return $ac_func ();
12674   ;
12675   return 0;
12676 }
12677 _ACEOF
12678 rm -f conftest.$ac_objext conftest$ac_exeext
12679 if { (ac_try="$ac_link"
12680 case "(($ac_try" in
12681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12682   *) ac_try_echo=$ac_try;;
12683 esac
12684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12685   (eval "$ac_link") 2>conftest.er1
12686   ac_status=$?
12687   grep -v '^ *+' conftest.er1 >conftest.err
12688   rm -f conftest.er1
12689   cat conftest.err >&5
12690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691   (exit $ac_status); } && {
12692          test -z "$ac_c_werror_flag" ||
12693          test ! -s conftest.err
12694        } && test -s conftest$ac_exeext &&
12695        $as_test_x conftest$ac_exeext; then
12696   eval "$as_ac_var=yes"
12697 else
12698   echo "$as_me: failed program was:" >&5
12699 sed 's/^/| /' conftest.$ac_ext >&5
12700
12701         eval "$as_ac_var=no"
12702 fi
12703
12704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12705       conftest$ac_exeext conftest.$ac_ext
12706 fi
12707 ac_res=`eval echo '${'$as_ac_var'}'`
12708                { echo "$as_me:$LINENO: result: $ac_res" >&5
12709 echo "${ECHO_T}$ac_res" >&6; }
12710 if test `eval echo '${'$as_ac_var'}'` = yes; then
12711   cat >>confdefs.h <<_ACEOF
12712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12713 _ACEOF
12714
12715 fi
12716 done
12717
12718   else
12719     { echo "$as_me:$LINENO: WARNING: Couldn't configure alsa." >&5
12720 echo "$as_me: WARNING: Couldn't configure alsa." >&2;}
12721     CFLAGS=$KEEPCFLAGS
12722     LIBS=$KEEPLIBS
12723     LDFLAGS=$KEEPLDFLAGS
12724   fi
12725 else
12726   { echo "$as_me:$LINENO: result: no" >&5
12727 echo "${ECHO_T}no" >&6; }
12728 fi
12729
12730 { echo "$as_me:$LINENO: checking enable_audio=alib" >&5
12731 echo $ECHO_N "checking enable_audio=alib... $ECHO_C" >&6; }
12732 if test "x$au_enable_alib" = xyes; then
12733   case "$target" in
12734     *-*-hpux*) { echo "$as_me:$LINENO: result: yes" >&5
12735 echo "${ECHO_T}yes" >&6; } ;;
12736     *) { echo "$as_me:$LINENO: WARNING: may not work on $target" >&5
12737 echo "$as_me: WARNING: may not work on $target" >&2;} ;;
12738   esac
12739   SYSEXTRAS="$SYSEXTRAS hpux_a.c"
12740   EXTRADEFS="$EXTRADEFS -DAU_HPUX_ALIB"
12741   if test -d /opt/audio/include; then
12742     CPPFLAGS="$CPPFLAGS -I/opt/audio/include"
12743   fi
12744   if test -d /opt/audio/lib; then
12745     EXTRALIBS="$EXTRALIBS -L/opt/audio/lib"
12746   fi
12747   EXTRALIBS="$EXTRALIBS -lAlib"
12748 else
12749   { echo "$as_me:$LINENO: result: no" >&5
12750 echo "${ECHO_T}no" >&6; }
12751 fi
12752
12753 { echo "$as_me:$LINENO: checking enable_audio=nas" >&5
12754 echo $ECHO_N "checking enable_audio=nas... $ECHO_C" >&6; }
12755 if test "x$au_enable_nas" = xyes; then
12756   if test "x$with_x" != xyes; then
12757     { { echo "$as_me:$LINENO: error: nas: --with-x option must be specified" >&5
12758 echo "$as_me: error: nas: --with-x option must be specified" >&2;}
12759    { (exit 1); exit 1; }; }
12760   fi
12761   EXTRADEFS="$EXTRADEFS -DAU_NAS"
12762   SYSEXTRAS="$SYSEXTRAS nas_a.c"
12763
12764
12765   if test "x$with_nas_library" != x; then
12766     { echo "$as_me:$LINENO: result: $with_nas_library" >&5
12767 echo "${ECHO_T}$with_nas_library" >&6; };
12768     EXTRALIBS="$EXTRALIBS $with_nas_library"
12769   else
12770     { echo "$as_me:$LINENO: result: " >&5
12771 echo "${ECHO_T}" >&6; }
12772     { echo "$as_me:$LINENO: checking for library containing AuOpenServer" >&5
12773 echo $ECHO_N "checking for library containing AuOpenServer... $ECHO_C" >&6; }
12774 if test "${timidity_cv_search_AuOpenServer+set}" = set; then
12775   echo $ECHO_N "(cached) $ECHO_C" >&6
12776 else
12777   ac_func_search_save_LIBS="$LIBS"
12778 timidity_cv_search_AuOpenServer="no"
12779 for i in $x_libraries/libaudio.a \
12780          /usr/lib/libaudio.so \
12781          /usr/lib/libaudio.a ; do
12782   LIBS="$i  $ac_func_search_save_LIBS"
12783   cat >conftest.$ac_ext <<_ACEOF
12784 /* confdefs.h.  */
12785 _ACEOF
12786 cat confdefs.h >>conftest.$ac_ext
12787 cat >>conftest.$ac_ext <<_ACEOF
12788 /* end confdefs.h.  */
12789
12790 /* Override any GCC internal prototype to avoid an error.
12791    Use char because int might match the return type of a GCC
12792    builtin and then its argument prototype would still apply.  */
12793 #ifdef __cplusplus
12794 extern "C"
12795 #endif
12796 char AuOpenServer ();
12797 int
12798 main ()
12799 {
12800 return AuOpenServer ();
12801   ;
12802   return 0;
12803 }
12804 _ACEOF
12805 rm -f conftest.$ac_objext conftest$ac_exeext
12806 if { (ac_try="$ac_link"
12807 case "(($ac_try" in
12808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12809   *) ac_try_echo=$ac_try;;
12810 esac
12811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12812   (eval "$ac_link") 2>conftest.er1
12813   ac_status=$?
12814   grep -v '^ *+' conftest.er1 >conftest.err
12815   rm -f conftest.er1
12816   cat conftest.err >&5
12817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818   (exit $ac_status); } && {
12819          test -z "$ac_c_werror_flag" ||
12820          test ! -s conftest.err
12821        } && test -s conftest$ac_exeext &&
12822        $as_test_x conftest$ac_exeext; then
12823   timidity_cv_search_AuOpenServer="$i"; break
12824 else
12825   echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.$ac_ext >&5
12827
12828
12829 fi
12830
12831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12832       conftest$ac_exeext conftest.$ac_ext
12833 done
12834 LIBS="$ac_func_search_save_LIBS"
12835 fi
12836 { echo "$as_me:$LINENO: result: $timidity_cv_search_AuOpenServer" >&5
12837 echo "${ECHO_T}$timidity_cv_search_AuOpenServer" >&6; }
12838 if test "$timidity_cv_search_AuOpenServer" != "no"; then
12839    { echo "$as_me:$LINENO: result: NAS: $timidity_cv_search_AuOpenServer" >&5
12840 echo "${ECHO_T}NAS: $timidity_cv_search_AuOpenServer" >&6; }
12841           EXTRALIBS="$EXTRALIBS $timidity_cv_search_AuOpenServer"
12842 else :
12843   { echo "$as_me:$LINENO: WARNING: NAS library is not found." >&5
12844 echo "$as_me: WARNING: NAS library is not found." >&2;}
12845 fi
12846   fi
12847   test "x$with_nas_includes" != x && CPPFLAGS="$CPPFLAGS -I$with_nas_includes"
12848   lib_xt_opt=-lXt
12849   if test "x$have_xext" = xyes; then
12850     lib_xext_opt=-lXext
12851   fi
12852   if test "x$have_xprelibs" = xyes; then
12853     lib_xprelibs_opt='-lSM -lICE'
12854   fi
12855 else
12856   { echo "$as_me:$LINENO: result: no" >&5
12857 echo "${ECHO_T}no" >&6; }
12858 fi
12859
12860 { echo "$as_me:$LINENO: checking enable_audio=arts" >&5
12861 echo $ECHO_N "checking enable_audio=arts... $ECHO_C" >&6; }
12862 if test "x$au_enable_arts" = xyes; then
12863   { echo "$as_me:$LINENO: result: yes, configuring aRts" >&5
12864 echo "${ECHO_T}yes, configuring aRts" >&6; }
12865     # Extract the first word of "artsc-config", so it can be a program name with args.
12866 set dummy artsc-config; ac_word=$2
12867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12869 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
12870   echo $ECHO_N "(cached) $ECHO_C" >&6
12871 else
12872   case $ARTSCCONFIG in
12873   [\\/]* | ?:[\\/]*)
12874   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
12875   ;;
12876   *)
12877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12878 for as_dir in $PATH
12879 do
12880   IFS=$as_save_IFS
12881   test -z "$as_dir" && as_dir=.
12882   for ac_exec_ext in '' $ac_executable_extensions; do
12883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12884     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
12885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12886     break 2
12887   fi
12888 done
12889 done
12890 IFS=$as_save_IFS
12891
12892   ;;
12893 esac
12894 fi
12895 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
12896 if test -n "$ARTSCCONFIG"; then
12897   { echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
12898 echo "${ECHO_T}$ARTSCCONFIG" >&6; }
12899 else
12900   { echo "$as_me:$LINENO: result: no" >&5
12901 echo "${ECHO_T}no" >&6; }
12902 fi
12903
12904
12905   if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
12906   then
12907     ARTSC_CFLAGS=""
12908     for i in `$ARTSCCONFIG --cflags`
12909     do
12910       case "$i" in
12911         -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
12912       esac
12913     done
12914     ARTSC_LIBS=`$ARTSCCONFIG --libs`
12915     save_CFLAGS="$CFLAGS"
12916     CFLAGS="$CFLAGS $ARTSC_CFLAGS"
12917     cat >conftest.$ac_ext <<_ACEOF
12918 /* confdefs.h.  */
12919 _ACEOF
12920 cat confdefs.h >>conftest.$ac_ext
12921 cat >>conftest.$ac_ext <<_ACEOF
12922 /* end confdefs.h.  */
12923 #include <artsc.h>
12924 int
12925 main ()
12926 {
12927 arts_stream_t stream;
12928   ;
12929   return 0;
12930 }
12931 _ACEOF
12932 rm -f conftest.$ac_objext
12933 if { (ac_try="$ac_compile"
12934 case "(($ac_try" in
12935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12936   *) ac_try_echo=$ac_try;;
12937 esac
12938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12939   (eval "$ac_compile") 2>conftest.er1
12940   ac_status=$?
12941   grep -v '^ *+' conftest.er1 >conftest.err
12942   rm -f conftest.er1
12943   cat conftest.err >&5
12944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945   (exit $ac_status); } && {
12946          test -z "$ac_c_werror_flag" ||
12947          test ! -s conftest.err
12948        } && test -s conftest.$ac_objext; then
12949   ARTSLIBS=$ARTSC_LIBS
12950
12951          ARTSINCL=$ARTSC_CFLAGS
12952
12953
12954 cat >>confdefs.h <<\_ACEOF
12955 #define HAVE_ARTS 1
12956 _ACEOF
12957
12958          have_arts="yes"
12959
12960 else
12961   echo "$as_me: failed program was:" >&5
12962 sed 's/^/| /' conftest.$ac_ext >&5
12963
12964
12965 fi
12966
12967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12968     CFLAGS="$save_CFLAGS"
12969   fi
12970
12971   if test "$have_arts" = "yes"; then
12972         EXTRADEFS="$EXTRADEFS -DAU_ARTS"
12973     SYSEXTRAS="$SYSEXTRAS aRts_a.c"
12974     for f in $ARTSC_CFLAGS; do
12975     case ".$f" in
12976         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
12977         *)              CFLAGS="$CFLAGS $f" ;;
12978     esac
12979 done
12980
12981     LIBS="$LIBS $ARTSC_LIBS"
12982   else
12983     { echo "$as_me:$LINENO: WARNING: aRts: Couldn't configure" >&5
12984 echo "$as_me: WARNING: aRts: Couldn't configure" >&2;}
12985   fi
12986 else
12987   { echo "$as_me:$LINENO: result: no" >&5
12988 echo "${ECHO_T}no" >&6; }
12989 fi
12990
12991 { echo "$as_me:$LINENO: checking enable_audio=esd" >&5
12992 echo $ECHO_N "checking enable_audio=esd... $ECHO_C" >&6; }
12993 if test "x$au_enable_esd" = xyes; then
12994   { echo "$as_me:$LINENO: result: yes, configuring esd" >&5
12995 echo "${ECHO_T}yes, configuring esd" >&6; }
12996   KEEPCFLAGS=$CFLAGS
12997   KEEPLIBS=$LIBS
12998   KEEPLDFLAGS=$LDFLAGS
12999
13000 # Check whether --with-esd-prefix was given.
13001 if test "${with_esd_prefix+set}" = set; then
13002   withval=$with_esd_prefix; esd_prefix="$withval"
13003 else
13004   esd_prefix=""
13005 fi
13006
13007
13008 # Check whether --with-esd-exec-prefix was given.
13009 if test "${with_esd_exec_prefix+set}" = set; then
13010   withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
13011 else
13012   esd_exec_prefix=""
13013 fi
13014
13015 # Check whether --enable-esdtest was given.
13016 if test "${enable_esdtest+set}" = set; then
13017   enableval=$enable_esdtest;
13018 else
13019   enable_esdtest=yes
13020 fi
13021
13022
13023   if test x$esd_exec_prefix != x ; then
13024      esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
13025      if test x${ESD_CONFIG+set} != xset ; then
13026         ESD_CONFIG=$esd_exec_prefix/bin/esd-config
13027      fi
13028   fi
13029   if test x$esd_prefix != x ; then
13030      esd_args="$esd_args --prefix=$esd_prefix"
13031      if test x${ESD_CONFIG+set} != xset ; then
13032         ESD_CONFIG=$esd_prefix/bin/esd-config
13033      fi
13034   fi
13035
13036   # Extract the first word of "esd-config", so it can be a program name with args.
13037 set dummy esd-config; ac_word=$2
13038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13040 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
13041   echo $ECHO_N "(cached) $ECHO_C" >&6
13042 else
13043   case $ESD_CONFIG in
13044   [\\/]* | ?:[\\/]*)
13045   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
13046   ;;
13047   *)
13048   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13049 for as_dir in $PATH
13050 do
13051   IFS=$as_save_IFS
13052   test -z "$as_dir" && as_dir=.
13053   for ac_exec_ext in '' $ac_executable_extensions; do
13054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13055     ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13057     break 2
13058   fi
13059 done
13060 done
13061 IFS=$as_save_IFS
13062
13063   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
13064   ;;
13065 esac
13066 fi
13067 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
13068 if test -n "$ESD_CONFIG"; then
13069   { echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
13070 echo "${ECHO_T}$ESD_CONFIG" >&6; }
13071 else
13072   { echo "$as_me:$LINENO: result: no" >&5
13073 echo "${ECHO_T}no" >&6; }
13074 fi
13075
13076
13077   min_esd_version=0.2.7
13078   { echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
13079 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6; }
13080   no_esd=""
13081   if test "$ESD_CONFIG" = "no" ; then
13082     no_esd=yes
13083   else
13084
13085     ac_ext=c
13086 ac_cpp='$CPP $CPPFLAGS'
13087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13090
13091     ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
13092     ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
13093
13094     esd_major_version=`$ESD_CONFIG $esd_args --version | \
13095            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13096     esd_minor_version=`$ESD_CONFIG $esd_args --version | \
13097            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13098     esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
13099            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13100     if test "x$enable_esdtest" = "xyes" ; then
13101       ac_save_CFLAGS="$CFLAGS"
13102       ac_save_LIBS="$LIBS"
13103       CFLAGS="$CFLAGS $ESD_CFLAGS"
13104       LIBS="$LIBS $ESD_LIBS"
13105       rm -f conf.esdtest
13106       if test "$cross_compiling" = yes; then
13107   echo $ac_n "cross compiling; assumed OK... $ac_c"
13108 else
13109   cat >conftest.$ac_ext <<_ACEOF
13110 /* confdefs.h.  */
13111 _ACEOF
13112 cat confdefs.h >>conftest.$ac_ext
13113 cat >>conftest.$ac_ext <<_ACEOF
13114 /* end confdefs.h.  */
13115
13116 #include <stdio.h>
13117 #include <stdlib.h>
13118 #include <string.h>
13119 #include <esd.h>
13120
13121 char*
13122 my_strdup (char *str)
13123 {
13124   char *new_str;
13125
13126   if (str)
13127     {
13128       new_str = malloc ((strlen (str) + 1) * sizeof(char));
13129       strcpy (new_str, str);
13130     }
13131   else
13132     new_str = NULL;
13133
13134   return new_str;
13135 }
13136
13137 int main ()
13138 {
13139   int major, minor, micro;
13140   char *tmp_version;
13141
13142   system ("touch conf.esdtest");
13143
13144   /* HP/UX 9 (%@#!) writes to sscanf strings */
13145   tmp_version = my_strdup("$min_esd_version");
13146   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13147      printf("%s, bad version string\n", "$min_esd_version");
13148      exit(1);
13149    }
13150
13151    if (($esd_major_version > major) ||
13152       (($esd_major_version == major) && ($esd_minor_version > minor)) ||
13153       (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
13154     {
13155       return 0;
13156     }
13157   else
13158     {
13159       printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
13160       printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
13161       printf("*** best to upgrade to the required version.\n");
13162       printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
13163       printf("*** to point to the correct copy of esd-config, and remove the file\n");
13164       printf("*** config.cache before re-running configure\n");
13165       return 1;
13166     }
13167 }
13168
13169
13170 _ACEOF
13171 rm -f conftest$ac_exeext
13172 if { (ac_try="$ac_link"
13173 case "(($ac_try" in
13174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13175   *) ac_try_echo=$ac_try;;
13176 esac
13177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13178   (eval "$ac_link") 2>&5
13179   ac_status=$?
13180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13182   { (case "(($ac_try" in
13183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184   *) ac_try_echo=$ac_try;;
13185 esac
13186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13187   (eval "$ac_try") 2>&5
13188   ac_status=$?
13189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190   (exit $ac_status); }; }; then
13191   :
13192 else
13193   echo "$as_me: program exited with status $ac_status" >&5
13194 echo "$as_me: failed program was:" >&5
13195 sed 's/^/| /' conftest.$ac_ext >&5
13196
13197 ( exit $ac_status )
13198 no_esd=yes
13199 fi
13200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13201 fi
13202
13203
13204        CFLAGS="$ac_save_CFLAGS"
13205        LIBS="$ac_save_LIBS"
13206        ac_ext=c
13207 ac_cpp='$CPP $CPPFLAGS'
13208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13211
13212      fi
13213   fi
13214   if test "x$no_esd" = x ; then
13215      { echo "$as_me:$LINENO: result: yes" >&5
13216 echo "${ECHO_T}yes" >&6; }
13217      :
13218   else
13219      { echo "$as_me:$LINENO: result: no" >&5
13220 echo "${ECHO_T}no" >&6; }
13221      if test "$ESD_CONFIG" = "no" ; then
13222        echo "*** The esd-config script installed by ESD could not be found"
13223        echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
13224        echo "*** your path, or set the ESD_CONFIG environment variable to the"
13225        echo "*** full path to esd-config."
13226      else
13227        if test -f conf.esdtest ; then
13228         :
13229        else
13230           echo "*** Could not run ESD test program, checking why..."
13231           CFLAGS="$CFLAGS $ESD_CFLAGS"
13232           LIBS="$LIBS $ESD_LIBS"
13233
13234           ac_ext=c
13235 ac_cpp='$CPP $CPPFLAGS'
13236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13239
13240           cat >conftest.$ac_ext <<_ACEOF
13241 /* confdefs.h.  */
13242 _ACEOF
13243 cat confdefs.h >>conftest.$ac_ext
13244 cat >>conftest.$ac_ext <<_ACEOF
13245 /* end confdefs.h.  */
13246
13247 #include <stdio.h>
13248 #include <esd.h>
13249
13250 int
13251 main ()
13252 {
13253  return 0;
13254   ;
13255   return 0;
13256 }
13257 _ACEOF
13258 rm -f conftest.$ac_objext conftest$ac_exeext
13259 if { (ac_try="$ac_link"
13260 case "(($ac_try" in
13261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262   *) ac_try_echo=$ac_try;;
13263 esac
13264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265   (eval "$ac_link") 2>conftest.er1
13266   ac_status=$?
13267   grep -v '^ *+' conftest.er1 >conftest.err
13268   rm -f conftest.er1
13269   cat conftest.err >&5
13270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271   (exit $ac_status); } && {
13272          test -z "$ac_c_werror_flag" ||
13273          test ! -s conftest.err
13274        } && test -s conftest$ac_exeext &&
13275        $as_test_x conftest$ac_exeext; then
13276    echo "*** The test program compiled, but did not run. This usually means"
13277           echo "*** that the run-time linker is not finding ESD or finding the wrong"
13278           echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
13279           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13280           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13281           echo "*** is required on your system"
13282           echo "***"
13283           echo "*** If you have an old version installed, it is best to remove it, although"
13284           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13285 else
13286   echo "$as_me: failed program was:" >&5
13287 sed 's/^/| /' conftest.$ac_ext >&5
13288
13289          echo "*** The test program failed to compile or link. See the file config.log for the"
13290           echo "*** exact error that occured. This usually means ESD was incorrectly installed"
13291           echo "*** or that you have moved ESD since it was installed. In the latter case, you"
13292           echo "*** may want to edit the esd-config script: $ESD_CONFIG"
13293 fi
13294
13295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13296       conftest$ac_exeext conftest.$ac_ext
13297           CFLAGS="$ac_save_CFLAGS"
13298           LIBS="$ac_save_LIBS"
13299           ac_ext=c
13300 ac_cpp='$CPP $CPPFLAGS'
13301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13304
13305        fi
13306      fi
13307      ESD_CFLAGS=""
13308      ESD_LIBS=""
13309      :
13310   fi
13311
13312
13313   rm -f conf.esdtest
13314
13315   CFLAGS=$KEEPCFLAGS
13316   LIBS=$KEEPLIBS
13317   LDFLAGS=$KEEPLDFLAGS
13318   if test "x$no_esd" = x; then
13319         EXTRADEFS="$EXTRADEFS -DAU_ESD"
13320     SYSEXTRAS="$SYSEXTRAS esd_a.c"
13321     for f in $ESD_CFLAGS; do
13322     case ".$f" in
13323         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
13324         *)              CFLAGS="$CFLAGS $f" ;;
13325     esac
13326 done
13327
13328     LIBS="$LIBS $ESD_LIBS"
13329   else
13330     { echo "$as_me:$LINENO: WARNING: EsounD: Couldn't configure" >&5
13331 echo "$as_me: WARNING: EsounD: Couldn't configure" >&2;}
13332   fi
13333 else
13334   { echo "$as_me:$LINENO: result: no" >&5
13335 echo "${ECHO_T}no" >&6; }
13336 fi
13337
13338 { echo "$as_me:$LINENO: checking enable_audio=portaudio" >&5
13339 echo $ECHO_N "checking enable_audio=portaudio... $ECHO_C" >&6; }
13340 if test "x$au_enable_portaudio" = xyes; then
13341   { echo "$as_me:$LINENO: result: yes" >&5
13342 echo "${ECHO_T}yes" >&6; }
13343   if test "x$MSYS" = xyes ; then
13344         SYSEXTRAS="$SYSEXTRAS portaudio_a.c w32_portaudio_dll.c"
13345         EXTRALIBS="$EXTRALIBS -lportaudio"
13346         EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO -DAU_PORTAUDIO_DLL"
13347   else
13348         SYSEXTRAS="$SYSEXTRAS portaudio_a.c"
13349         EXTRALIBS="$EXTRALIBS -lportaudio"
13350         EXTRADEFS="$EXTRADEFS -DAU_PORTAUDIO"
13351   fi
13352 else
13353   { echo "$as_me:$LINENO: result: no" >&5
13354 echo "${ECHO_T}no" >&6; }
13355 fi
13356
13357 { echo "$as_me:$LINENO: checking enable_audio=npipe" >&5
13358 echo $ECHO_N "checking enable_audio=npipe... $ECHO_C" >&6; }
13359 if test "x$au_enable_npipe" = xyes; then
13360   { echo "$as_me:$LINENO: result: yes" >&5
13361 echo "${ECHO_T}yes" >&6; }
13362         SYSEXTRAS="$SYSEXTRAS npipe_a.c"
13363         EXTRADEFS="$EXTRADEFS -DAU_NPIPE"
13364 else
13365   { echo "$as_me:$LINENO: result: no" >&5
13366 echo "${ECHO_T}no" >&6; }
13367 fi
13368
13369
13370 { echo "$as_me:$LINENO: checking enable_audio=jack" >&5
13371 echo $ECHO_N "checking enable_audio=jack... $ECHO_C" >&6; }
13372 if test "x$au_enable_jack" = xyes; then
13373   { echo "$as_me:$LINENO: result: yes" >&5
13374 echo "${ECHO_T}yes" >&6; }
13375   SYSEXTRAS="$SYSEXTRAS jack_a.c"
13376   EXTRALIBS="$EXTRALIBS $(pkg-config --libs jack)"
13377   EXTRADEFS="$EXTRADEFS -DAU_JACK $(pkg-config --cflags jack)"
13378 else
13379   { echo "$as_me:$LINENO: result: no" >&5
13380 echo "${ECHO_T}no" >&6; }
13381 fi
13382
13383 { echo "$as_me:$LINENO: checking enable_audio=ao" >&5
13384 echo $ECHO_N "checking enable_audio=ao... $ECHO_C" >&6; }
13385 if test "x$au_enable_ao" = xyes; then
13386   { echo "$as_me:$LINENO: result: yes, configuring ao" >&5
13387 echo "${ECHO_T}yes, configuring ao" >&6; }
13388
13389 # Check whether --with-ao was given.
13390 if test "${with_ao+set}" = set; then
13391   withval=$with_ao; ao_prefix="$withval"
13392 else
13393   ao_prefix=""
13394 fi
13395
13396
13397 # Check whether --with-ao-libraries was given.
13398 if test "${with_ao_libraries+set}" = set; then
13399   withval=$with_ao_libraries; ao_libraries="$withval"
13400 else
13401   ao_libraries=""
13402 fi
13403
13404
13405 # Check whether --with-ao-includes was given.
13406 if test "${with_ao_includes+set}" = set; then
13407   withval=$with_ao_includes; ao_includes="$withval"
13408 else
13409   ao_includes=""
13410 fi
13411
13412 # Check whether --enable-aotest was given.
13413 if test "${enable_aotest+set}" = set; then
13414   enableval=$enable_aotest;
13415 else
13416   enable_aotest=yes
13417 fi
13418
13419
13420
13421   if test "x$ao_libraries" != "x" ; then
13422     AO_LIBS="-L$ao_libraries"
13423   elif test "x$ao_prefix" != "x"; then
13424     AO_LIBS="-L$ao_prefix/lib"
13425   elif test "x$prefix" != "xNONE"; then
13426     AO_LIBS="-L$prefix/lib"
13427   fi
13428
13429   if test "x$ao_includes" != "x" ; then
13430     AO_CFLAGS="-I$ao_includes"
13431   elif test "x$ao_prefix" != "x"; then
13432     AO_CFLAGS="-I$ao_prefix/include"
13433   elif test "x$prefix" != "xNONE"; then
13434     AO_CFLAGS="-I$prefix/include"
13435   fi
13436
13437   # see where dl* and friends live
13438
13439 for ac_func in dlopen
13440 do
13441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13442 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13444 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13445   echo $ECHO_N "(cached) $ECHO_C" >&6
13446 else
13447   cat >conftest.$ac_ext <<_ACEOF
13448 /* confdefs.h.  */
13449 _ACEOF
13450 cat confdefs.h >>conftest.$ac_ext
13451 cat >>conftest.$ac_ext <<_ACEOF
13452 /* end confdefs.h.  */
13453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13454    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13455 #define $ac_func innocuous_$ac_func
13456
13457 /* System header to define __stub macros and hopefully few prototypes,
13458     which can conflict with char $ac_func (); below.
13459     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13460     <limits.h> exists even on freestanding compilers.  */
13461
13462 #ifdef __STDC__
13463 # include <limits.h>
13464 #else
13465 # include <assert.h>
13466 #endif
13467
13468 #undef $ac_func
13469
13470 /* Override any GCC internal prototype to avoid an error.
13471    Use char because int might match the return type of a GCC
13472    builtin and then its argument prototype would still apply.  */
13473 #ifdef __cplusplus
13474 extern "C"
13475 #endif
13476 char $ac_func ();
13477 /* The GNU C library defines this for functions which it implements
13478     to always fail with ENOSYS.  Some functions are actually named
13479     something starting with __ and the normal name is an alias.  */
13480 #if defined __stub_$ac_func || defined __stub___$ac_func
13481 choke me
13482 #endif
13483
13484 int
13485 main ()
13486 {
13487 return $ac_func ();
13488   ;
13489   return 0;
13490 }
13491 _ACEOF
13492 rm -f conftest.$ac_objext conftest$ac_exeext
13493 if { (ac_try="$ac_link"
13494 case "(($ac_try" in
13495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13496   *) ac_try_echo=$ac_try;;
13497 esac
13498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13499   (eval "$ac_link") 2>conftest.er1
13500   ac_status=$?
13501   grep -v '^ *+' conftest.er1 >conftest.err
13502   rm -f conftest.er1
13503   cat conftest.err >&5
13504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505   (exit $ac_status); } && {
13506          test -z "$ac_c_werror_flag" ||
13507          test ! -s conftest.err
13508        } && test -s conftest$ac_exeext &&
13509        $as_test_x conftest$ac_exeext; then
13510   eval "$as_ac_var=yes"
13511 else
13512   echo "$as_me: failed program was:" >&5
13513 sed 's/^/| /' conftest.$ac_ext >&5
13514
13515         eval "$as_ac_var=no"
13516 fi
13517
13518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13519       conftest$ac_exeext conftest.$ac_ext
13520 fi
13521 ac_res=`eval echo '${'$as_ac_var'}'`
13522                { echo "$as_me:$LINENO: result: $ac_res" >&5
13523 echo "${ECHO_T}$ac_res" >&6; }
13524 if test `eval echo '${'$as_ac_var'}'` = yes; then
13525   cat >>confdefs.h <<_ACEOF
13526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13527 _ACEOF
13528  AO_DL_LIBS=""
13529 else
13530
13531     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13532 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13533 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13534   echo $ECHO_N "(cached) $ECHO_C" >&6
13535 else
13536   ac_check_lib_save_LIBS=$LIBS
13537 LIBS="-ldl  $LIBS"
13538 cat >conftest.$ac_ext <<_ACEOF
13539 /* confdefs.h.  */
13540 _ACEOF
13541 cat confdefs.h >>conftest.$ac_ext
13542 cat >>conftest.$ac_ext <<_ACEOF
13543 /* end confdefs.h.  */
13544
13545 /* Override any GCC internal prototype to avoid an error.
13546    Use char because int might match the return type of a GCC
13547    builtin and then its argument prototype would still apply.  */
13548 #ifdef __cplusplus
13549 extern "C"
13550 #endif
13551 char dlopen ();
13552 int
13553 main ()
13554 {
13555 return dlopen ();
13556   ;
13557   return 0;
13558 }
13559 _ACEOF
13560 rm -f conftest.$ac_objext conftest$ac_exeext
13561 if { (ac_try="$ac_link"
13562 case "(($ac_try" in
13563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13564   *) ac_try_echo=$ac_try;;
13565 esac
13566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13567   (eval "$ac_link") 2>conftest.er1
13568   ac_status=$?
13569   grep -v '^ *+' conftest.er1 >conftest.err
13570   rm -f conftest.er1
13571   cat conftest.err >&5
13572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573   (exit $ac_status); } && {
13574          test -z "$ac_c_werror_flag" ||
13575          test ! -s conftest.err
13576        } && test -s conftest$ac_exeext &&
13577        $as_test_x conftest$ac_exeext; then
13578   ac_cv_lib_dl_dlopen=yes
13579 else
13580   echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13582
13583         ac_cv_lib_dl_dlopen=no
13584 fi
13585
13586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13587       conftest$ac_exeext conftest.$ac_ext
13588 LIBS=$ac_check_lib_save_LIBS
13589 fi
13590 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13591 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13592 if test $ac_cv_lib_dl_dlopen = yes; then
13593   AO_DL_LIBS="-ldl"
13594 else
13595
13596       { echo "$as_me:$LINENO: WARNING: could not find dlopen() needed by libao sound drivers
13597       your system may not be supported." >&5
13598 echo "$as_me: WARNING: could not find dlopen() needed by libao sound drivers
13599       your system may not be supported." >&2;}
13600
13601 fi
13602
13603
13604 fi
13605 done
13606
13607
13608   AO_LIBS="$AO_LIBS -lao $AO_DL_LIBS"
13609
13610   { echo "$as_me:$LINENO: checking for ao" >&5
13611 echo $ECHO_N "checking for ao... $ECHO_C" >&6; }
13612   no_ao=""
13613
13614
13615   if test "x$enable_aotest" = "xyes" ; then
13616     ac_save_CFLAGS="$CFLAGS"
13617     ac_save_LIBS="$LIBS"
13618     CFLAGS="$CFLAGS $AO_CFLAGS"
13619     LIBS="$LIBS $AO_LIBS"
13620       rm -f conf.aotest
13621       if test "$cross_compiling" = yes; then
13622   echo $ac_n "cross compiling; assumed OK... $ac_c"
13623 else
13624   cat >conftest.$ac_ext <<_ACEOF
13625 /* confdefs.h.  */
13626 _ACEOF
13627 cat confdefs.h >>conftest.$ac_ext
13628 cat >>conftest.$ac_ext <<_ACEOF
13629 /* end confdefs.h.  */
13630
13631 #include <stdio.h>
13632 #include <stdlib.h>
13633 #include <string.h>
13634 #include <ao/ao.h>
13635
13636 int main ()
13637 {
13638   system("touch conf.aotest");
13639   return 0;
13640 }
13641
13642
13643 _ACEOF
13644 rm -f conftest$ac_exeext
13645 if { (ac_try="$ac_link"
13646 case "(($ac_try" in
13647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13648   *) ac_try_echo=$ac_try;;
13649 esac
13650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13651   (eval "$ac_link") 2>&5
13652   ac_status=$?
13653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13655   { (case "(($ac_try" in
13656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13657   *) ac_try_echo=$ac_try;;
13658 esac
13659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13660   (eval "$ac_try") 2>&5
13661   ac_status=$?
13662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663   (exit $ac_status); }; }; then
13664   :
13665 else
13666   echo "$as_me: program exited with status $ac_status" >&5
13667 echo "$as_me: failed program was:" >&5
13668 sed 's/^/| /' conftest.$ac_ext >&5
13669
13670 ( exit $ac_status )
13671 no_ao=yes
13672 fi
13673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13674 fi
13675
13676
13677        CFLAGS="$ac_save_CFLAGS"
13678        LIBS="$ac_save_LIBS"
13679   fi
13680
13681   if test "x$no_ao" = "x" ; then
13682      { echo "$as_me:$LINENO: result: yes" >&5
13683 echo "${ECHO_T}yes" >&6; }
13684      :
13685   else
13686      { echo "$as_me:$LINENO: result: no" >&5
13687 echo "${ECHO_T}no" >&6; }
13688      if test -f conf.aotest ; then
13689        :
13690      else
13691        echo "*** Could not run ao test program, checking why..."
13692        CFLAGS="$CFLAGS $AO_CFLAGS"
13693        LIBS="$LIBS $AO_LIBS"
13694        cat >conftest.$ac_ext <<_ACEOF
13695 /* confdefs.h.  */
13696 _ACEOF
13697 cat confdefs.h >>conftest.$ac_ext
13698 cat >>conftest.$ac_ext <<_ACEOF
13699 /* end confdefs.h.  */
13700
13701 #include <stdio.h>
13702 #include <ao/ao.h>
13703
13704 int
13705 main ()
13706 {
13707  return 0;
13708   ;
13709   return 0;
13710 }
13711 _ACEOF
13712 rm -f conftest.$ac_objext conftest$ac_exeext
13713 if { (ac_try="$ac_link"
13714 case "(($ac_try" in
13715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13716   *) ac_try_echo=$ac_try;;
13717 esac
13718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13719   (eval "$ac_link") 2>conftest.er1
13720   ac_status=$?
13721   grep -v '^ *+' conftest.er1 >conftest.err
13722   rm -f conftest.er1
13723   cat conftest.err >&5
13724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725   (exit $ac_status); } && {
13726          test -z "$ac_c_werror_flag" ||
13727          test ! -s conftest.err
13728        } && test -s conftest$ac_exeext &&
13729        $as_test_x conftest$ac_exeext; then
13730    echo "*** The test program compiled, but did not run. This usually means"
13731        echo "*** that the run-time linker is not finding ao or finding the wrong"
13732        echo "*** version of ao. If it is not finding ao, you'll need to set your"
13733        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13734        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13735        echo "*** is required on your system"
13736        echo "***"
13737        echo "*** If you have an old version installed, it is best to remove it, although"
13738        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13739 else
13740   echo "$as_me: failed program was:" >&5
13741 sed 's/^/| /' conftest.$ac_ext >&5
13742
13743          echo "*** The test program failed to compile or link. See the file config.log for the"
13744        echo "*** exact error that occured. This usually means ao was incorrectly installed"
13745        echo "*** or that you have moved ao since it was installed."
13746 fi
13747
13748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13749       conftest$ac_exeext conftest.$ac_ext
13750        CFLAGS="$ac_save_CFLAGS"
13751        LIBS="$ac_save_LIBS"
13752      fi
13753      AO_CFLAGS=""
13754      AO_LIBS=""
13755      :
13756   fi
13757
13758
13759   rm -f conf.aotest
13760
13761   if test "x$no_ao" = "x" ; then
13762     # AC_MSG_RESULT(yes)
13763     EXTRADEFS="$EXTRADEFS -DAU_AO"
13764     SYSEXTRAS="$SYSEXTRAS ao_a.c"
13765     for f in $AO_CFLAGS; do
13766     case ".$f" in
13767         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
13768         *)              CFLAGS="$CFLAGS $f" ;;
13769     esac
13770 done
13771
13772     LIBS="$LIBS $AO_LIBS"
13773   else
13774     { echo "$as_me:$LINENO: WARNING: Couldn't configure libao." >&5
13775 echo "$as_me: WARNING: Couldn't configure libao." >&2;}
13776   fi
13777 else
13778   { echo "$as_me:$LINENO: result: no" >&5
13779 echo "${ECHO_T}no" >&6; }
13780 fi
13781
13782 { echo "$as_me:$LINENO: checking enable_audio=vorbis" >&5
13783 echo $ECHO_N "checking enable_audio=vorbis... $ECHO_C" >&6; }
13784 if test "x$au_enable_vorbis" = xyes; then
13785   { echo "$as_me:$LINENO: result: yes, configuring vorbis" >&5
13786 echo "${ECHO_T}yes, configuring vorbis" >&6; }
13787   if test "x$MSYS" = "xyes" && test "x$MINGWGCC" != "xyes" ; then
13788     EXTRADEFS="-DAU_VORBIS_DLL $EXTRADEFS"
13789         SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
13790   else
13791
13792 # Check whether --with-ogg was given.
13793 if test "${with_ogg+set}" = set; then
13794   withval=$with_ogg; ogg_prefix="$withval"
13795 else
13796   ogg_prefix=""
13797 fi
13798
13799
13800 # Check whether --with-ogg-libraries was given.
13801 if test "${with_ogg_libraries+set}" = set; then
13802   withval=$with_ogg_libraries; ogg_libraries="$withval"
13803 else
13804   ogg_libraries=""
13805 fi
13806
13807
13808 # Check whether --with-ogg-includes was given.
13809 if test "${with_ogg_includes+set}" = set; then
13810   withval=$with_ogg_includes; ogg_includes="$withval"
13811 else
13812   ogg_includes=""
13813 fi
13814
13815 # Check whether --enable-oggtest was given.
13816 if test "${enable_oggtest+set}" = set; then
13817   enableval=$enable_oggtest;
13818 else
13819   enable_oggtest=yes
13820 fi
13821
13822
13823   if test "x$ogg_libraries" != "x" ; then
13824     OGG_LIBS="-L$ogg_libraries"
13825   elif test "x$ogg_prefix" != "x" ; then
13826     OGG_LIBS="-L$ogg_prefix/lib"
13827   elif test "x$prefix" != "xNONE" ; then
13828     OGG_LIBS="-L$prefix/lib"
13829   fi
13830
13831   OGG_LIBS="$OGG_LIBS -logg"
13832
13833   if test "x$ogg_includes" != "x" ; then
13834     OGG_CFLAGS="-I$ogg_includes"
13835   elif test "x$ogg_prefix" != "x" ; then
13836     OGG_CFLAGS="-I$ogg_prefix/include"
13837   elif test "x$prefix" != "xNONE"; then
13838     OGG_CFLAGS="-I$prefix/include"
13839   fi
13840
13841   { echo "$as_me:$LINENO: checking for Ogg" >&5
13842 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6; }
13843   no_ogg=""
13844
13845
13846   if test "x$enable_oggtest" = "xyes" ; then
13847     ac_save_CFLAGS="$CFLAGS"
13848     ac_save_LIBS="$LIBS"
13849     CFLAGS="$CFLAGS $OGG_CFLAGS"
13850     LIBS="$LIBS $OGG_LIBS"
13851       rm -f conf.oggtest
13852       if test "$cross_compiling" = yes; then
13853   echo $ac_n "cross compiling; assumed OK... $ac_c"
13854 else
13855   cat >conftest.$ac_ext <<_ACEOF
13856 /* confdefs.h.  */
13857 _ACEOF
13858 cat confdefs.h >>conftest.$ac_ext
13859 cat >>conftest.$ac_ext <<_ACEOF
13860 /* end confdefs.h.  */
13861
13862 #include <stdio.h>
13863 #include <stdlib.h>
13864 #include <string.h>
13865 #include <ogg/ogg.h>
13866
13867 int main ()
13868 {
13869   system("touch conf.oggtest");
13870   return 0;
13871 }
13872
13873
13874 _ACEOF
13875 rm -f conftest$ac_exeext
13876 if { (ac_try="$ac_link"
13877 case "(($ac_try" in
13878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13879   *) ac_try_echo=$ac_try;;
13880 esac
13881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13882   (eval "$ac_link") 2>&5
13883   ac_status=$?
13884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13886   { (case "(($ac_try" in
13887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13888   *) ac_try_echo=$ac_try;;
13889 esac
13890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13891   (eval "$ac_try") 2>&5
13892   ac_status=$?
13893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894   (exit $ac_status); }; }; then
13895   :
13896 else
13897   echo "$as_me: program exited with status $ac_status" >&5
13898 echo "$as_me: failed program was:" >&5
13899 sed 's/^/| /' conftest.$ac_ext >&5
13900
13901 ( exit $ac_status )
13902 no_ogg=yes
13903 fi
13904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13905 fi
13906
13907
13908        CFLAGS="$ac_save_CFLAGS"
13909        LIBS="$ac_save_LIBS"
13910   fi
13911
13912   if test "x$no_ogg" = "x" ; then
13913      { echo "$as_me:$LINENO: result: yes" >&5
13914 echo "${ECHO_T}yes" >&6; }
13915
13916
13917 # Check whether --with-vorbis was given.
13918 if test "${with_vorbis+set}" = set; then
13919   withval=$with_vorbis; vorbis_prefix="$withval"
13920 else
13921   vorbis_prefix=""
13922 fi
13923
13924
13925 # Check whether --with-vorbis-libraries was given.
13926 if test "${with_vorbis_libraries+set}" = set; then
13927   withval=$with_vorbis_libraries; vorbis_libraries="$withval"
13928 else
13929   vorbis_libraries=""
13930 fi
13931
13932
13933 # Check whether --with-vorbis-includes was given.
13934 if test "${with_vorbis_includes+set}" = set; then
13935   withval=$with_vorbis_includes; vorbis_includes="$withval"
13936 else
13937   vorbis_includes=""
13938 fi
13939
13940 # Check whether --enable-vorbistest was given.
13941 if test "${enable_vorbistest+set}" = set; then
13942   enableval=$enable_vorbistest;
13943 else
13944   enable_vorbistest=yes
13945 fi
13946
13947
13948   if test "x$vorbis_libraries" != "x" ; then
13949     VORBIS_LIBS="-L$vorbis_libraries"
13950   elif test "x$vorbis_prefix" != "x" ; then
13951     VORBIS_LIBS="-L$vorbis_prefix/lib"
13952   elif test "x$prefix" != "xNONE"; then
13953     VORBIS_LIBS="-L$prefix/lib"
13954   fi
13955
13956   VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
13957   VORBISFILE_LIBS="-lvorbisfile"
13958   VORBISENC_LIBS="-lvorbisenc"
13959
13960   if test "x$vorbis_includes" != "x" ; then
13961     VORBIS_CFLAGS="-I$vorbis_includes"
13962   elif test "x$vorbis_prefix" != "x" ; then
13963     VORBIS_CFLAGS="-I$vorbis_prefix/include"
13964   elif test "x$prefix" != "xNONE"; then
13965     VORBIS_CFLAGS="-I$prefix/include"
13966   fi
13967
13968
13969   { echo "$as_me:$LINENO: checking for Vorbis" >&5
13970 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6; }
13971   no_vorbis=""
13972
13973
13974   if test "x$enable_vorbistest" = "xyes" ; then
13975     ac_save_CFLAGS="$CFLAGS"
13976     ac_save_LIBS="$LIBS"
13977     CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
13978     LIBS="$LIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
13979       rm -f conf.vorbistest
13980       if test "$cross_compiling" = yes; then
13981   echo $ac_n "cross compiling; assumed OK... $ac_c"
13982 else
13983   cat >conftest.$ac_ext <<_ACEOF
13984 /* confdefs.h.  */
13985 _ACEOF
13986 cat confdefs.h >>conftest.$ac_ext
13987 cat >>conftest.$ac_ext <<_ACEOF
13988 /* end confdefs.h.  */
13989
13990 #include <stdio.h>
13991 #include <stdlib.h>
13992 #include <string.h>
13993 #include <vorbis/codec.h>
13994 #include <vorbis/vorbisenc.h>
13995
13996 int main ()
13997 {
13998     vorbis_block        vb;
13999     vorbis_dsp_state    vd;
14000     vorbis_info         vi;
14001
14002     vorbis_info_init (&vi);
14003     vorbis_encode_init (&vi, 2, 44100, -1, 128000, -1);
14004     vorbis_analysis_init (&vd, &vi);
14005     vorbis_block_init (&vd, &vb);
14006     /* this function was added in 1.0rc3, so this is what we're testing for */
14007     vorbis_bitrate_addblock (&vb);
14008
14009     system("touch conf.vorbistest");
14010     return 0;
14011 }
14012
14013
14014 _ACEOF
14015 rm -f conftest$ac_exeext
14016 if { (ac_try="$ac_link"
14017 case "(($ac_try" in
14018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14019   *) ac_try_echo=$ac_try;;
14020 esac
14021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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   { (case "(($ac_try" in
14027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14028   *) ac_try_echo=$ac_try;;
14029 esac
14030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14031   (eval "$ac_try") 2>&5
14032   ac_status=$?
14033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034   (exit $ac_status); }; }; then
14035   :
14036 else
14037   echo "$as_me: program exited with status $ac_status" >&5
14038 echo "$as_me: failed program was:" >&5
14039 sed 's/^/| /' conftest.$ac_ext >&5
14040
14041 ( exit $ac_status )
14042 no_vorbis=yes
14043 fi
14044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14045 fi
14046
14047
14048        CFLAGS="$ac_save_CFLAGS"
14049        LIBS="$ac_save_LIBS"
14050   fi
14051
14052   if test "x$no_vorbis" = "x" ; then
14053      { echo "$as_me:$LINENO: result: yes" >&5
14054 echo "${ECHO_T}yes" >&6; }
14055
14056       have_vorbis=yes
14057       SYSEXTRAS="$SYSEXTRAS vorbis_a.c"
14058       EXTRADEFS="$EXTRADEFS -DAU_VORBIS $OGG_CFLAGS $VORBIS_CFLAGS"
14059       EXTRALIBS="$EXTRALIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
14060       if test "x$MSYS" = "xyes" && test "x$MINGWGCC" = "xyes" ; then
14061       EXTRADEFS="-DAU_VORBIS_DLL $EXTRADEFS"
14062           SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
14063       fi
14064
14065   else
14066      { echo "$as_me:$LINENO: result: no" >&5
14067 echo "${ECHO_T}no" >&6; }
14068      if test -f conf.vorbistest ; then
14069        :
14070      else
14071        echo "*** Could not run Vorbis test program, checking why..."
14072        CFLAGS="$CFLAGS $VORBIS_CFLAGS"
14073        LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
14074        cat >conftest.$ac_ext <<_ACEOF
14075 /* confdefs.h.  */
14076 _ACEOF
14077 cat confdefs.h >>conftest.$ac_ext
14078 cat >>conftest.$ac_ext <<_ACEOF
14079 /* end confdefs.h.  */
14080
14081 #include <stdio.h>
14082 #include <vorbis/codec.h>
14083
14084 int
14085 main ()
14086 {
14087  return 0;
14088   ;
14089   return 0;
14090 }
14091 _ACEOF
14092 rm -f conftest.$ac_objext conftest$ac_exeext
14093 if { (ac_try="$ac_link"
14094 case "(($ac_try" in
14095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14096   *) ac_try_echo=$ac_try;;
14097 esac
14098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099   (eval "$ac_link") 2>conftest.er1
14100   ac_status=$?
14101   grep -v '^ *+' conftest.er1 >conftest.err
14102   rm -f conftest.er1
14103   cat conftest.err >&5
14104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105   (exit $ac_status); } && {
14106          test -z "$ac_c_werror_flag" ||
14107          test ! -s conftest.err
14108        } && test -s conftest$ac_exeext &&
14109        $as_test_x conftest$ac_exeext; then
14110    echo "*** The test program compiled, but did not run. This usually means"
14111        echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
14112        echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
14113        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14114        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14115        echo "*** is required on your system"
14116        echo "***"
14117        echo "*** If you have an old version installed, it is best to remove it, although"
14118        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14119 else
14120   echo "$as_me: failed program was:" >&5
14121 sed 's/^/| /' conftest.$ac_ext >&5
14122
14123          echo "*** The test program failed to compile or link. See the file config.log for the"
14124        echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
14125        echo "*** or that you have moved Vorbis since it was installed."
14126 fi
14127
14128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14129       conftest$ac_exeext conftest.$ac_ext
14130        CFLAGS="$ac_save_CFLAGS"
14131        LIBS="$ac_save_LIBS"
14132      fi
14133      VORBIS_CFLAGS=""
14134      VORBIS_LIBS=""
14135      VORBISFILE_LIBS=""
14136      VORBISENC_LIBS=""
14137
14138       { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis, but ogg is there (???)" >&5
14139 echo "$as_me: WARNING: Unable to configure vorbis, but ogg is there (???)" >&2;}
14140
14141   fi
14142
14143
14144
14145
14146   rm -f conf.vorbistest
14147
14148
14149   else
14150      { echo "$as_me:$LINENO: result: no" >&5
14151 echo "${ECHO_T}no" >&6; }
14152      if test -f conf.oggtest ; then
14153        :
14154      else
14155        echo "*** Could not run Ogg test program, checking why..."
14156        CFLAGS="$CFLAGS $OGG_CFLAGS"
14157        LIBS="$LIBS $OGG_LIBS"
14158        cat >conftest.$ac_ext <<_ACEOF
14159 /* confdefs.h.  */
14160 _ACEOF
14161 cat confdefs.h >>conftest.$ac_ext
14162 cat >>conftest.$ac_ext <<_ACEOF
14163 /* end confdefs.h.  */
14164
14165 #include <stdio.h>
14166 #include <ogg/ogg.h>
14167
14168 int
14169 main ()
14170 {
14171  return 0;
14172   ;
14173   return 0;
14174 }
14175 _ACEOF
14176 rm -f conftest.$ac_objext conftest$ac_exeext
14177 if { (ac_try="$ac_link"
14178 case "(($ac_try" in
14179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14180   *) ac_try_echo=$ac_try;;
14181 esac
14182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14183   (eval "$ac_link") 2>conftest.er1
14184   ac_status=$?
14185   grep -v '^ *+' conftest.er1 >conftest.err
14186   rm -f conftest.er1
14187   cat conftest.err >&5
14188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189   (exit $ac_status); } && {
14190          test -z "$ac_c_werror_flag" ||
14191          test ! -s conftest.err
14192        } && test -s conftest$ac_exeext &&
14193        $as_test_x conftest$ac_exeext; then
14194    echo "*** The test program compiled, but did not run. This usually means"
14195        echo "*** that the run-time linker is not finding Ogg or finding the wrong"
14196        echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
14197        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14198        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14199        echo "*** is required on your system"
14200        echo "***"
14201        echo "*** If you have an old version installed, it is best to remove it, although"
14202        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14203 else
14204   echo "$as_me: failed program was:" >&5
14205 sed 's/^/| /' conftest.$ac_ext >&5
14206
14207          echo "*** The test program failed to compile or link. See the file config.log for the"
14208        echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
14209        echo "*** or that you have moved Ogg since it was installed."
14210 fi
14211
14212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14213       conftest$ac_exeext conftest.$ac_ext
14214        CFLAGS="$ac_save_CFLAGS"
14215        LIBS="$ac_save_LIBS"
14216      fi
14217      OGG_CFLAGS=""
14218      OGG_LIBS=""
14219
14220     { echo "$as_me:$LINENO: WARNING: Unable to configure vorbis!" >&5
14221 echo "$as_me: WARNING: Unable to configure vorbis!" >&2;}
14222     have_vorbis=no
14223
14224   fi
14225
14226
14227   rm -f conf.oggtest
14228
14229   fi
14230 else
14231   { echo "$as_me:$LINENO: result: no" >&5
14232 echo "${ECHO_T}no" >&6; }
14233 fi
14234
14235 if test "x$MSYS" = xyes ; then
14236   { echo "$as_me:$LINENO: checking enable_audio=flac" >&5
14237 echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6; }
14238   if test "x$au_enable_flac" = xyes; then
14239     { echo "$as_me:$LINENO: result: yes, configuring flac" >&5
14240 echo "${ECHO_T}yes, configuring flac" >&6; }
14241     SYSEXTRAS="$SYSEXTRAS flac_a.c w32_libFLAC_dll.c w32_libOggFLAC_dll.c"
14242
14243 # Check whether --with-libFLAC was given.
14244 if test "${with_libFLAC+set}" = set; then
14245   withval=$with_libFLAC; libFLAC_prefix="$withval"
14246 else
14247   libFLAC_prefix=""
14248 fi
14249
14250
14251 # Check whether --with-libFLAC-libraries was given.
14252 if test "${with_libFLAC_libraries+set}" = set; then
14253   withval=$with_libFLAC_libraries; libFLAC_libraries="$withval"
14254 else
14255   libFLAC_libraries=""
14256 fi
14257
14258
14259 # Check whether --with-libFLAC-includes was given.
14260 if test "${with_libFLAC_includes+set}" = set; then
14261   withval=$with_libFLAC_includes; libFLAC_includes="$withval"
14262 else
14263   libFLAC_includes=""
14264 fi
14265
14266 # Check whether --enable-libFLACtest was given.
14267 if test "${enable_libFLACtest+set}" = set; then
14268   enableval=$enable_libFLACtest;
14269 else
14270   enable_libFLACtest=yes
14271 fi
14272
14273
14274   if test "x$libFLAC_libraries" != "x" ; then
14275     LIBFLAC_LIBS="-L$libFLAC_libraries"
14276   elif test "x$libFLAC_prefix" != "x" ; then
14277     LIBFLAC_LIBS="-L$libFLAC_prefix/lib"
14278   elif test "x$prefix" != "xNONE" ; then
14279     LIBFLAC_LIBS="-L$prefix/lib"
14280   fi
14281
14282   LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm"
14283
14284   if test "x$libFLAC_includes" != "x" ; then
14285     LIBFLAC_CFLAGS="-I$libFLAC_includes"
14286   elif test "x$libFLAC_prefix" != "x" ; then
14287     LIBFLAC_CFLAGS="-I$libFLAC_prefix/include"
14288   elif test "$prefix" != "xNONE"; then
14289     LIBFLAC_CFLAGS="-I$prefix/include"
14290   fi
14291
14292   { echo "$as_me:$LINENO: checking for libFLAC" >&5
14293 echo $ECHO_N "checking for libFLAC... $ECHO_C" >&6; }
14294   no_libFLAC=""
14295
14296
14297   if test "x$enable_libFLACtest" = "xyes" ; then
14298     ac_save_CFLAGS="$CFLAGS"
14299     ac_save_CXXFLAGS="$CXXFLAGS"
14300     ac_save_LIBS="$LIBS"
14301     CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14302     CXXFLAGS="$CXXFLAGS $LIBFLAC_CFLAGS"
14303     LIBS="$LIBS $LIBFLAC_LIBS"
14304       rm -f conf.libFLACtest
14305       if test "$cross_compiling" = yes; then
14306   echo $ac_n "cross compiling; assumed OK... $ac_c"
14307 else
14308   cat >conftest.$ac_ext <<_ACEOF
14309 /* confdefs.h.  */
14310 _ACEOF
14311 cat confdefs.h >>conftest.$ac_ext
14312 cat >>conftest.$ac_ext <<_ACEOF
14313 /* end confdefs.h.  */
14314
14315 #include <stdio.h>
14316 #include <stdlib.h>
14317 #include <string.h>
14318 #include <FLAC/format.h>
14319
14320 int main ()
14321 {
14322   system("touch conf.libFLACtest");
14323   return 0;
14324 }
14325
14326
14327 _ACEOF
14328 rm -f conftest$ac_exeext
14329 if { (ac_try="$ac_link"
14330 case "(($ac_try" in
14331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14332   *) ac_try_echo=$ac_try;;
14333 esac
14334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14335   (eval "$ac_link") 2>&5
14336   ac_status=$?
14337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14339   { (case "(($ac_try" in
14340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14341   *) ac_try_echo=$ac_try;;
14342 esac
14343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14344   (eval "$ac_try") 2>&5
14345   ac_status=$?
14346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347   (exit $ac_status); }; }; then
14348   :
14349 else
14350   echo "$as_me: program exited with status $ac_status" >&5
14351 echo "$as_me: failed program was:" >&5
14352 sed 's/^/| /' conftest.$ac_ext >&5
14353
14354 ( exit $ac_status )
14355 no_libFLAC=yes
14356 fi
14357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14358 fi
14359
14360
14361        CFLAGS="$ac_save_CFLAGS"
14362        LIBS="$ac_save_LIBS"
14363   fi
14364
14365   if test "x$no_libFLAC" = "x" ; then
14366      { echo "$as_me:$LINENO: result: yes" >&5
14367 echo "${ECHO_T}yes" >&6; }
14368
14369       EXTRADEFS="$EXTRADEFS -DAU_FLAC -DAU_FLAC_DLL"
14370       for f in $LIBFLAC_CFLAGS; do
14371     case ".$f" in
14372         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14373         *)              CFLAGS="$CFLAGS $f" ;;
14374     esac
14375 done
14376
14377       LIBS="$LIBS $LIBFLAC_LIBS"
14378
14379   else
14380      { echo "$as_me:$LINENO: result: no" >&5
14381 echo "${ECHO_T}no" >&6; }
14382      if test -f conf.libFLACtest ; then
14383        :
14384      else
14385        echo "*** Could not run libFLAC test program, checking why..."
14386        CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14387        LIBS="$LIBS $LIBFLAC_LIBS"
14388        cat >conftest.$ac_ext <<_ACEOF
14389 /* confdefs.h.  */
14390 _ACEOF
14391 cat confdefs.h >>conftest.$ac_ext
14392 cat >>conftest.$ac_ext <<_ACEOF
14393 /* end confdefs.h.  */
14394
14395 #include <stdio.h>
14396 #include <FLAC/format.h>
14397
14398 int
14399 main ()
14400 {
14401  return 0;
14402   ;
14403   return 0;
14404 }
14405 _ACEOF
14406 rm -f conftest.$ac_objext conftest$ac_exeext
14407 if { (ac_try="$ac_link"
14408 case "(($ac_try" in
14409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14410   *) ac_try_echo=$ac_try;;
14411 esac
14412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14413   (eval "$ac_link") 2>conftest.er1
14414   ac_status=$?
14415   grep -v '^ *+' conftest.er1 >conftest.err
14416   rm -f conftest.er1
14417   cat conftest.err >&5
14418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419   (exit $ac_status); } && {
14420          test -z "$ac_c_werror_flag" ||
14421          test ! -s conftest.err
14422        } && test -s conftest$ac_exeext &&
14423        $as_test_x conftest$ac_exeext; then
14424    echo "*** The test program compiled, but did not run. This usually means"
14425        echo "*** that the run-time linker is not finding libFLAC or finding the wrong"
14426        echo "*** version of libFLAC. If it is not finding libFLAC, you'll need to set your"
14427        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14428        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14429        echo "*** is required on your system"
14430        echo "***"
14431        echo "*** If you have an old version installed, it is best to remove it, although"
14432        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14433 else
14434   echo "$as_me: failed program was:" >&5
14435 sed 's/^/| /' conftest.$ac_ext >&5
14436
14437          echo "*** The test program failed to compile or link. See the file config.log for the"
14438        echo "*** exact error that occured. This usually means libFLAC was incorrectly installed"
14439        echo "*** or that you have moved libFLAC since it was installed. In the latter case, you"
14440        echo "*** may want to edit the libFLAC-config script: $LIBFLAC_CONFIG"
14441 fi
14442
14443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14444       conftest$ac_exeext conftest.$ac_ext
14445        CFLAGS="$ac_save_CFLAGS"
14446        LIBS="$ac_save_LIBS"
14447      fi
14448      LIBFLAC_CFLAGS=""
14449      LIBFLAC_LIBS=""
14450      :
14451   fi
14452
14453
14454   rm -f conf.libFLACtest
14455
14456
14457 # Check whether --with-libOggFLAC was given.
14458 if test "${with_libOggFLAC+set}" = set; then
14459   withval=$with_libOggFLAC; libOggFLAC_prefix="$withval"
14460 else
14461   libOggFLAC_prefix=""
14462 fi
14463
14464
14465 # Check whether --with-libOggFLAC-libraries was given.
14466 if test "${with_libOggFLAC_libraries+set}" = set; then
14467   withval=$with_libOggFLAC_libraries; libOggFLAC_libraries="$withval"
14468 else
14469   libOggFLAC_libraries=""
14470 fi
14471
14472
14473 # Check whether --with-libOggFLAC-includes was given.
14474 if test "${with_libOggFLAC_includes+set}" = set; then
14475   withval=$with_libOggFLAC_includes; libOggFLAC_includes="$withval"
14476 else
14477   libOggFLAC_includes=""
14478 fi
14479
14480 # Check whether --enable-libOggFLACtest was given.
14481 if test "${enable_libOggFLACtest+set}" = set; then
14482   enableval=$enable_libOggFLACtest;
14483 else
14484   enable_libOggFLACtest=yes
14485 fi
14486
14487
14488   if test "x$libOggFLAC_libraries" != "x" ; then
14489     LIBOGGFLAC_LIBS="-L$libOggFLAC_libraries"
14490   elif test "x$libOggFLAC_prefix" != "x" ; then
14491     LIBOGGFLAC_LIBS="-L$libOggFLAC_prefix/lib"
14492   elif test "x$prefix" != "xNONE" ; then
14493     LIBOGGFLAC_LIBS="-L$prefix/lib"
14494   fi
14495
14496   LIBOGGFLAC_LIBS="$LIBOGGFLAC_LIBS -lOggFLAC -lFLAC -lm"
14497
14498   if test "x$libOggFLAC_includes" != "x" ; then
14499     LIBOGGFLAC_CFLAGS="-I$libOggFLAC_includes"
14500   elif test "x$libOggFLAC_prefix" != "x" ; then
14501     LIBOGGFLAC_CFLAGS="-I$libOggFLAC_prefix/include"
14502   elif test "$prefix" != "xNONE"; then
14503     LIBOGGFLAC_CFLAGS="-I$prefix/include"
14504   fi
14505
14506   { echo "$as_me:$LINENO: checking for libOggFLAC" >&5
14507 echo $ECHO_N "checking for libOggFLAC... $ECHO_C" >&6; }
14508   no_libOggFLAC=""
14509
14510
14511   if test "x$enable_libOggFLACtest" = "xyes" ; then
14512     ac_save_CFLAGS="$CFLAGS"
14513     ac_save_CXXFLAGS="$CXXFLAGS"
14514     ac_save_LIBS="$LIBS"
14515     CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14516     CXXFLAGS="$CXXFLAGS $LIBOGGFLAC_CFLAGS"
14517     LIBS="$LIBS $LIBOGGFLAC_LIBS"
14518       rm -f conf.libOggFLACtest
14519       if test "$cross_compiling" = yes; then
14520   echo $ac_n "cross compiling; assumed OK... $ac_c"
14521 else
14522   cat >conftest.$ac_ext <<_ACEOF
14523 /* confdefs.h.  */
14524 _ACEOF
14525 cat confdefs.h >>conftest.$ac_ext
14526 cat >>conftest.$ac_ext <<_ACEOF
14527 /* end confdefs.h.  */
14528
14529 #include <stdio.h>
14530 #include <stdlib.h>
14531 #include <string.h>
14532 #include <OggFLAC/stream_decoder.h>
14533
14534 int main ()
14535 {
14536   system("touch conf.libOggFLACtest");
14537   return 0;
14538 }
14539
14540
14541 _ACEOF
14542 rm -f conftest$ac_exeext
14543 if { (ac_try="$ac_link"
14544 case "(($ac_try" in
14545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14546   *) ac_try_echo=$ac_try;;
14547 esac
14548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14549   (eval "$ac_link") 2>&5
14550   ac_status=$?
14551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14553   { (case "(($ac_try" in
14554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14555   *) ac_try_echo=$ac_try;;
14556 esac
14557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14558   (eval "$ac_try") 2>&5
14559   ac_status=$?
14560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561   (exit $ac_status); }; }; then
14562   :
14563 else
14564   echo "$as_me: program exited with status $ac_status" >&5
14565 echo "$as_me: failed program was:" >&5
14566 sed 's/^/| /' conftest.$ac_ext >&5
14567
14568 ( exit $ac_status )
14569 no_libOggFLAC=yes
14570 fi
14571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14572 fi
14573
14574
14575        CFLAGS="$ac_save_CFLAGS"
14576        LIBS="$ac_save_LIBS"
14577   fi
14578
14579   if test "x$no_libOggFLAC" = "x" ; then
14580      { echo "$as_me:$LINENO: result: yes" >&5
14581 echo "${ECHO_T}yes" >&6; }
14582
14583       EXTRADEFS="$EXTRADEFS -DAU_OGGFLAC -DAU_OGGFLAC_DLL"
14584       for f in $LIBOGGFLAC_CFLAGS; do
14585     case ".$f" in
14586         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14587         *)              CFLAGS="$CFLAGS $f" ;;
14588     esac
14589 done
14590
14591       LIBS="$LIBS $LIBOGGFLAC_LIBS"
14592
14593   else
14594      { echo "$as_me:$LINENO: result: no" >&5
14595 echo "${ECHO_T}no" >&6; }
14596      if test -f conf.libOggFLACtest ; then
14597        :
14598      else
14599        echo "*** Could not run libOggFLAC test program, checking why..."
14600        CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14601        LIBS="$LIBS $LIBOGGFLAC_LIBS"
14602        cat >conftest.$ac_ext <<_ACEOF
14603 /* confdefs.h.  */
14604 _ACEOF
14605 cat confdefs.h >>conftest.$ac_ext
14606 cat >>conftest.$ac_ext <<_ACEOF
14607 /* end confdefs.h.  */
14608
14609 #include <stdio.h>
14610 #include <OggFLAC/stream_decoder.h>
14611
14612 int
14613 main ()
14614 {
14615  return 0;
14616   ;
14617   return 0;
14618 }
14619 _ACEOF
14620 rm -f conftest.$ac_objext conftest$ac_exeext
14621 if { (ac_try="$ac_link"
14622 case "(($ac_try" in
14623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14624   *) ac_try_echo=$ac_try;;
14625 esac
14626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14627   (eval "$ac_link") 2>conftest.er1
14628   ac_status=$?
14629   grep -v '^ *+' conftest.er1 >conftest.err
14630   rm -f conftest.er1
14631   cat conftest.err >&5
14632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633   (exit $ac_status); } && {
14634          test -z "$ac_c_werror_flag" ||
14635          test ! -s conftest.err
14636        } && test -s conftest$ac_exeext &&
14637        $as_test_x conftest$ac_exeext; then
14638    echo "*** The test program compiled, but did not run. This usually means"
14639        echo "*** that the run-time linker is not finding libOggFLAC or finding the wrong"
14640        echo "*** version of libOggFLAC. If it is not finding libOggFLAC, you'll need to set your"
14641        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14642        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14643        echo "*** is required on your system"
14644        echo "***"
14645        echo "*** If you have an old version installed, it is best to remove it, although"
14646        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14647 else
14648   echo "$as_me: failed program was:" >&5
14649 sed 's/^/| /' conftest.$ac_ext >&5
14650
14651          echo "*** The test program failed to compile or link. See the file config.log for the"
14652        echo "*** exact error that occured. This usually means libOggFLAC was incorrectly installed"
14653        echo "*** or that you have moved libOggFLAC since it was installed. In the latter case, you"
14654        echo "*** may want to edit the libOggFLAC-config script: $LIBOGGFLAC_CONFIG"
14655 fi
14656
14657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14658       conftest$ac_exeext conftest.$ac_ext
14659        CFLAGS="$ac_save_CFLAGS"
14660        LIBS="$ac_save_LIBS"
14661      fi
14662      LIBOGGFLAC_CFLAGS=""
14663      LIBOGGFLAC_LIBS=""
14664      :
14665   fi
14666
14667
14668   rm -f conf.libOggFLACtest
14669
14670   else
14671     { echo "$as_me:$LINENO: result: no" >&5
14672 echo "${ECHO_T}no" >&6; }
14673   fi
14674 else
14675   { echo "$as_me:$LINENO: checking enable_audio=flac" >&5
14676 echo $ECHO_N "checking enable_audio=flac... $ECHO_C" >&6; }
14677   if test "x$au_enable_flac" = xyes; then
14678     { echo "$as_me:$LINENO: result: yes, configuring flac" >&5
14679 echo "${ECHO_T}yes, configuring flac" >&6; }
14680     SYSEXTRAS="$SYSEXTRAS flac_a.c"
14681
14682 # Check whether --with-libFLAC was given.
14683 if test "${with_libFLAC+set}" = set; then
14684   withval=$with_libFLAC; libFLAC_prefix="$withval"
14685 else
14686   libFLAC_prefix=""
14687 fi
14688
14689
14690 # Check whether --with-libFLAC-libraries was given.
14691 if test "${with_libFLAC_libraries+set}" = set; then
14692   withval=$with_libFLAC_libraries; libFLAC_libraries="$withval"
14693 else
14694   libFLAC_libraries=""
14695 fi
14696
14697
14698 # Check whether --with-libFLAC-includes was given.
14699 if test "${with_libFLAC_includes+set}" = set; then
14700   withval=$with_libFLAC_includes; libFLAC_includes="$withval"
14701 else
14702   libFLAC_includes=""
14703 fi
14704
14705 # Check whether --enable-libFLACtest was given.
14706 if test "${enable_libFLACtest+set}" = set; then
14707   enableval=$enable_libFLACtest;
14708 else
14709   enable_libFLACtest=yes
14710 fi
14711
14712
14713   if test "x$libFLAC_libraries" != "x" ; then
14714     LIBFLAC_LIBS="-L$libFLAC_libraries"
14715   elif test "x$libFLAC_prefix" != "x" ; then
14716     LIBFLAC_LIBS="-L$libFLAC_prefix/lib"
14717   elif test "x$prefix" != "xNONE" ; then
14718     LIBFLAC_LIBS="-L$prefix/lib"
14719   fi
14720
14721   LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm"
14722
14723   if test "x$libFLAC_includes" != "x" ; then
14724     LIBFLAC_CFLAGS="-I$libFLAC_includes"
14725   elif test "x$libFLAC_prefix" != "x" ; then
14726     LIBFLAC_CFLAGS="-I$libFLAC_prefix/include"
14727   elif test "$prefix" != "xNONE"; then
14728     LIBFLAC_CFLAGS="-I$prefix/include"
14729   fi
14730
14731   { echo "$as_me:$LINENO: checking for libFLAC" >&5
14732 echo $ECHO_N "checking for libFLAC... $ECHO_C" >&6; }
14733   no_libFLAC=""
14734
14735
14736   if test "x$enable_libFLACtest" = "xyes" ; then
14737     ac_save_CFLAGS="$CFLAGS"
14738     ac_save_CXXFLAGS="$CXXFLAGS"
14739     ac_save_LIBS="$LIBS"
14740     CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14741     CXXFLAGS="$CXXFLAGS $LIBFLAC_CFLAGS"
14742     LIBS="$LIBS $LIBFLAC_LIBS"
14743       rm -f conf.libFLACtest
14744       if test "$cross_compiling" = yes; then
14745   echo $ac_n "cross compiling; assumed OK... $ac_c"
14746 else
14747   cat >conftest.$ac_ext <<_ACEOF
14748 /* confdefs.h.  */
14749 _ACEOF
14750 cat confdefs.h >>conftest.$ac_ext
14751 cat >>conftest.$ac_ext <<_ACEOF
14752 /* end confdefs.h.  */
14753
14754 #include <stdio.h>
14755 #include <stdlib.h>
14756 #include <string.h>
14757 #include <FLAC/format.h>
14758
14759 int main ()
14760 {
14761   system("touch conf.libFLACtest");
14762   return 0;
14763 }
14764
14765
14766 _ACEOF
14767 rm -f conftest$ac_exeext
14768 if { (ac_try="$ac_link"
14769 case "(($ac_try" in
14770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14771   *) ac_try_echo=$ac_try;;
14772 esac
14773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14774   (eval "$ac_link") 2>&5
14775   ac_status=$?
14776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14778   { (case "(($ac_try" in
14779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14780   *) ac_try_echo=$ac_try;;
14781 esac
14782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14783   (eval "$ac_try") 2>&5
14784   ac_status=$?
14785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786   (exit $ac_status); }; }; then
14787   :
14788 else
14789   echo "$as_me: program exited with status $ac_status" >&5
14790 echo "$as_me: failed program was:" >&5
14791 sed 's/^/| /' conftest.$ac_ext >&5
14792
14793 ( exit $ac_status )
14794 no_libFLAC=yes
14795 fi
14796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14797 fi
14798
14799
14800        CFLAGS="$ac_save_CFLAGS"
14801        LIBS="$ac_save_LIBS"
14802   fi
14803
14804   if test "x$no_libFLAC" = "x" ; then
14805      { echo "$as_me:$LINENO: result: yes" >&5
14806 echo "${ECHO_T}yes" >&6; }
14807
14808       EXTRADEFS="$EXTRADEFS -DAU_FLAC"
14809       for f in $LIBFLAC_CFLAGS; do
14810     case ".$f" in
14811         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
14812         *)              CFLAGS="$CFLAGS $f" ;;
14813     esac
14814 done
14815
14816       LIBS="$LIBS $LIBFLAC_LIBS"
14817
14818   else
14819      { echo "$as_me:$LINENO: result: no" >&5
14820 echo "${ECHO_T}no" >&6; }
14821      if test -f conf.libFLACtest ; then
14822        :
14823      else
14824        echo "*** Could not run libFLAC test program, checking why..."
14825        CFLAGS="$CFLAGS $LIBFLAC_CFLAGS"
14826        LIBS="$LIBS $LIBFLAC_LIBS"
14827        cat >conftest.$ac_ext <<_ACEOF
14828 /* confdefs.h.  */
14829 _ACEOF
14830 cat confdefs.h >>conftest.$ac_ext
14831 cat >>conftest.$ac_ext <<_ACEOF
14832 /* end confdefs.h.  */
14833
14834 #include <stdio.h>
14835 #include <FLAC/format.h>
14836
14837 int
14838 main ()
14839 {
14840  return 0;
14841   ;
14842   return 0;
14843 }
14844 _ACEOF
14845 rm -f conftest.$ac_objext conftest$ac_exeext
14846 if { (ac_try="$ac_link"
14847 case "(($ac_try" in
14848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14849   *) ac_try_echo=$ac_try;;
14850 esac
14851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14852   (eval "$ac_link") 2>conftest.er1
14853   ac_status=$?
14854   grep -v '^ *+' conftest.er1 >conftest.err
14855   rm -f conftest.er1
14856   cat conftest.err >&5
14857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858   (exit $ac_status); } && {
14859          test -z "$ac_c_werror_flag" ||
14860          test ! -s conftest.err
14861        } && test -s conftest$ac_exeext &&
14862        $as_test_x conftest$ac_exeext; then
14863    echo "*** The test program compiled, but did not run. This usually means"
14864        echo "*** that the run-time linker is not finding libFLAC or finding the wrong"
14865        echo "*** version of libFLAC. If it is not finding libFLAC, you'll need to set your"
14866        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14867        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14868        echo "*** is required on your system"
14869        echo "***"
14870        echo "*** If you have an old version installed, it is best to remove it, although"
14871        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14872 else
14873   echo "$as_me: failed program was:" >&5
14874 sed 's/^/| /' conftest.$ac_ext >&5
14875
14876          echo "*** The test program failed to compile or link. See the file config.log for the"
14877        echo "*** exact error that occured. This usually means libFLAC was incorrectly installed"
14878        echo "*** or that you have moved libFLAC since it was installed. In the latter case, you"
14879        echo "*** may want to edit the libFLAC-config script: $LIBFLAC_CONFIG"
14880 fi
14881
14882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14883       conftest$ac_exeext conftest.$ac_ext
14884        CFLAGS="$ac_save_CFLAGS"
14885        LIBS="$ac_save_LIBS"
14886      fi
14887      LIBFLAC_CFLAGS=""
14888      LIBFLAC_LIBS=""
14889      :
14890   fi
14891
14892
14893   rm -f conf.libFLACtest
14894
14895
14896 # Check whether --with-libOggFLAC was given.
14897 if test "${with_libOggFLAC+set}" = set; then
14898   withval=$with_libOggFLAC; libOggFLAC_prefix="$withval"
14899 else
14900   libOggFLAC_prefix=""
14901 fi
14902
14903
14904 # Check whether --with-libOggFLAC-libraries was given.
14905 if test "${with_libOggFLAC_libraries+set}" = set; then
14906   withval=$with_libOggFLAC_libraries; libOggFLAC_libraries="$withval"
14907 else
14908   libOggFLAC_libraries=""
14909 fi
14910
14911
14912 # Check whether --with-libOggFLAC-includes was given.
14913 if test "${with_libOggFLAC_includes+set}" = set; then
14914   withval=$with_libOggFLAC_includes; libOggFLAC_includes="$withval"
14915 else
14916   libOggFLAC_includes=""
14917 fi
14918
14919 # Check whether --enable-libOggFLACtest was given.
14920 if test "${enable_libOggFLACtest+set}" = set; then
14921   enableval=$enable_libOggFLACtest;
14922 else
14923   enable_libOggFLACtest=yes
14924 fi
14925
14926
14927   if test "x$libOggFLAC_libraries" != "x" ; then
14928     LIBOGGFLAC_LIBS="-L$libOggFLAC_libraries"
14929   elif test "x$libOggFLAC_prefix" != "x" ; then
14930     LIBOGGFLAC_LIBS="-L$libOggFLAC_prefix/lib"
14931   elif test "x$prefix" != "xNONE" ; then
14932     LIBOGGFLAC_LIBS="-L$prefix/lib"
14933   fi
14934
14935   LIBOGGFLAC_LIBS="$LIBOGGFLAC_LIBS -lOggFLAC -lFLAC -lm"
14936
14937   if test "x$libOggFLAC_includes" != "x" ; then
14938     LIBOGGFLAC_CFLAGS="-I$libOggFLAC_includes"
14939   elif test "x$libOggFLAC_prefix" != "x" ; then
14940     LIBOGGFLAC_CFLAGS="-I$libOggFLAC_prefix/include"
14941   elif test "$prefix" != "xNONE"; then
14942     LIBOGGFLAC_CFLAGS="-I$prefix/include"
14943   fi
14944
14945   { echo "$as_me:$LINENO: checking for libOggFLAC" >&5
14946 echo $ECHO_N "checking for libOggFLAC... $ECHO_C" >&6; }
14947   no_libOggFLAC=""
14948
14949
14950   if test "x$enable_libOggFLACtest" = "xyes" ; then
14951     ac_save_CFLAGS="$CFLAGS"
14952     ac_save_CXXFLAGS="$CXXFLAGS"
14953     ac_save_LIBS="$LIBS"
14954     CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
14955     CXXFLAGS="$CXXFLAGS $LIBOGGFLAC_CFLAGS"
14956     LIBS="$LIBS $LIBOGGFLAC_LIBS"
14957       rm -f conf.libOggFLACtest
14958       if test "$cross_compiling" = yes; then
14959   echo $ac_n "cross compiling; assumed OK... $ac_c"
14960 else
14961   cat >conftest.$ac_ext <<_ACEOF
14962 /* confdefs.h.  */
14963 _ACEOF
14964 cat confdefs.h >>conftest.$ac_ext
14965 cat >>conftest.$ac_ext <<_ACEOF
14966 /* end confdefs.h.  */
14967
14968 #include <stdio.h>
14969 #include <stdlib.h>
14970 #include <string.h>
14971 #include <OggFLAC/stream_decoder.h>
14972
14973 int main ()
14974 {
14975   system("touch conf.libOggFLACtest");
14976   return 0;
14977 }
14978
14979
14980 _ACEOF
14981 rm -f conftest$ac_exeext
14982 if { (ac_try="$ac_link"
14983 case "(($ac_try" in
14984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985   *) ac_try_echo=$ac_try;;
14986 esac
14987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14988   (eval "$ac_link") 2>&5
14989   ac_status=$?
14990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14992   { (case "(($ac_try" in
14993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14994   *) ac_try_echo=$ac_try;;
14995 esac
14996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14997   (eval "$ac_try") 2>&5
14998   ac_status=$?
14999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000   (exit $ac_status); }; }; then
15001   :
15002 else
15003   echo "$as_me: program exited with status $ac_status" >&5
15004 echo "$as_me: failed program was:" >&5
15005 sed 's/^/| /' conftest.$ac_ext >&5
15006
15007 ( exit $ac_status )
15008 no_libOggFLAC=yes
15009 fi
15010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15011 fi
15012
15013
15014        CFLAGS="$ac_save_CFLAGS"
15015        LIBS="$ac_save_LIBS"
15016   fi
15017
15018   if test "x$no_libOggFLAC" = "x" ; then
15019      { echo "$as_me:$LINENO: result: yes" >&5
15020 echo "${ECHO_T}yes" >&6; }
15021
15022       EXTRADEFS="$EXTRADEFS -DAU_OGGFLAC"
15023       for f in $LIBOGGFLAC_CFLAGS; do
15024     case ".$f" in
15025         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
15026         *)              CFLAGS="$CFLAGS $f" ;;
15027     esac
15028 done
15029
15030       LIBS="$LIBS $LIBOGGFLAC_LIBS"
15031
15032   else
15033      { echo "$as_me:$LINENO: result: no" >&5
15034 echo "${ECHO_T}no" >&6; }
15035      if test -f conf.libOggFLACtest ; then
15036        :
15037      else
15038        echo "*** Could not run libOggFLAC test program, checking why..."
15039        CFLAGS="$CFLAGS $LIBOGGFLAC_CFLAGS"
15040        LIBS="$LIBS $LIBOGGFLAC_LIBS"
15041        cat >conftest.$ac_ext <<_ACEOF
15042 /* confdefs.h.  */
15043 _ACEOF
15044 cat confdefs.h >>conftest.$ac_ext
15045 cat >>conftest.$ac_ext <<_ACEOF
15046 /* end confdefs.h.  */
15047
15048 #include <stdio.h>
15049 #include <OggFLAC/stream_decoder.h>
15050
15051 int
15052 main ()
15053 {
15054  return 0;
15055   ;
15056   return 0;
15057 }
15058 _ACEOF
15059 rm -f conftest.$ac_objext conftest$ac_exeext
15060 if { (ac_try="$ac_link"
15061 case "(($ac_try" in
15062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15063   *) ac_try_echo=$ac_try;;
15064 esac
15065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15066   (eval "$ac_link") 2>conftest.er1
15067   ac_status=$?
15068   grep -v '^ *+' conftest.er1 >conftest.err
15069   rm -f conftest.er1
15070   cat conftest.err >&5
15071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072   (exit $ac_status); } && {
15073          test -z "$ac_c_werror_flag" ||
15074          test ! -s conftest.err
15075        } && test -s conftest$ac_exeext &&
15076        $as_test_x conftest$ac_exeext; then
15077    echo "*** The test program compiled, but did not run. This usually means"
15078        echo "*** that the run-time linker is not finding libOggFLAC or finding the wrong"
15079        echo "*** version of libOggFLAC. If it is not finding libOggFLAC, you'll need to set your"
15080        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15081        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
15082        echo "*** is required on your system"
15083        echo "***"
15084        echo "*** If you have an old version installed, it is best to remove it, although"
15085        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15086 else
15087   echo "$as_me: failed program was:" >&5
15088 sed 's/^/| /' conftest.$ac_ext >&5
15089
15090          echo "*** The test program failed to compile or link. See the file config.log for the"
15091        echo "*** exact error that occured. This usually means libOggFLAC was incorrectly installed"
15092        echo "*** or that you have moved libOggFLAC since it was installed. In the latter case, you"
15093        echo "*** may want to edit the libOggFLAC-config script: $LIBOGGFLAC_CONFIG"
15094 fi
15095
15096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15097       conftest$ac_exeext conftest.$ac_ext
15098        CFLAGS="$ac_save_CFLAGS"
15099        LIBS="$ac_save_LIBS"
15100      fi
15101      LIBOGGFLAC_CFLAGS=""
15102      LIBOGGFLAC_LIBS=""
15103      :
15104   fi
15105
15106
15107   rm -f conf.libOggFLACtest
15108
15109   else
15110     { echo "$as_me:$LINENO: result: no" >&5
15111 echo "${ECHO_T}no" >&6; }
15112   fi
15113 fi
15114 { echo "$as_me:$LINENO: checking enable_audio=speex" >&5
15115 echo $ECHO_N "checking enable_audio=speex... $ECHO_C" >&6; }
15116 if test "x$au_enable_speex" = xyes; then
15117   if test "${have_speex+set}" = set; then
15118   echo $ECHO_N "(cached) $ECHO_C" >&6
15119 else
15120   cat >conftest.$ac_ext <<_ACEOF
15121 /* confdefs.h.  */
15122 _ACEOF
15123 cat confdefs.h >>conftest.$ac_ext
15124 cat >>conftest.$ac_ext <<_ACEOF
15125 /* end confdefs.h.  */
15126
15127   #include <speex.h>
15128   #include <ogg/ogg.h>
15129
15130 int
15131 main ()
15132 {
15133
15134     SpeexBits *dummy;
15135
15136   ;
15137   return 0;
15138 }
15139 _ACEOF
15140 rm -f conftest.$ac_objext conftest$ac_exeext
15141 if { (ac_try="$ac_link"
15142 case "(($ac_try" in
15143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15144   *) ac_try_echo=$ac_try;;
15145 esac
15146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15147   (eval "$ac_link") 2>conftest.er1
15148   ac_status=$?
15149   grep -v '^ *+' conftest.er1 >conftest.err
15150   rm -f conftest.er1
15151   cat conftest.err >&5
15152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153   (exit $ac_status); } && {
15154          test -z "$ac_c_werror_flag" ||
15155          test ! -s conftest.err
15156        } && test -s conftest$ac_exeext &&
15157        $as_test_x conftest$ac_exeext; then
15158   have_speex=yes
15159 else
15160   echo "$as_me: failed program was:" >&5
15161 sed 's/^/| /' conftest.$ac_ext >&5
15162
15163         have_speex=no
15164 fi
15165
15166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15167       conftest$ac_exeext conftest.$ac_ext
15168 fi
15169
15170   { echo "$as_me:$LINENO: result: $have_speex" >&5
15171 echo "${ECHO_T}$have_speex" >&6; }
15172   if test "x$have_speex" = xyes; then
15173     SYSEXTRAS="$SYSEXTRAS speex_a.c"
15174     EXTRALIBS="$EXTRALIBS -lspeex -logg"
15175     EXTRADEFS="$EXTRADEFS -DAU_SPEEX"
15176   fi
15177 else
15178   { echo "$as_me:$LINENO: result: no" >&5
15179 echo "${ECHO_T}no" >&6; }
15180 fi
15181
15182 { echo "$as_me:$LINENO: checking enable_audio=gogo" >&5
15183 echo $ECHO_N "checking enable_audio=gogo... $ECHO_C" >&6; }
15184 if test "x$au_enable_gogo" = xyes; then
15185   if test "x$MSYS" = "xyes"; then
15186     { echo "$as_me:$LINENO: result: yes" >&5
15187 echo "${ECHO_T}yes" >&6; }
15188   else
15189     { echo "$as_me:$LINENO: WARNING: May be gogo is not supported.  You need hack the gogo_a.c" >&5
15190 echo "$as_me: WARNING: May be gogo is not supported.  You need hack the gogo_a.c" >&2;}
15191   fi
15192   have_gogo=yes
15193   SYSEXTRAS="$SYSEXTRAS gogo_a.c w32_gogo.c"
15194   EXTRADEFS="$EXTRADEFS -DAU_GOGO -DAU_GOGO_DLL"
15195   EXTRALIBS="$EXTRALIBS -lgogo"
15196 else
15197   { echo "$as_me:$LINENO: result: no" >&5
15198 echo "${ECHO_T}no" >&6; }
15199 fi
15200
15201 if test "x$au_enable_none" = xyes; then
15202     EXTRADEFS="$EXTRADEFS -DAU_NONE -DAU_AUDRIV"
15203     SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_none.c"
15204 fi
15205 { echo "$as_me:$LINENO: checking default output mode" >&5
15206 echo $ECHO_N "checking default output mode... $ECHO_C" >&6; }
15207 if test "x$DEFAULT_PLAYMODE" = x; then
15208   DEFAULT_PLAYMODE=`echo $enable_audio | sed 's/,.*//'`
15209 fi
15210 case ".$DEFAULT_PLAYMODE" in
15211   .default)  TIMIDITY_OUTPUT_ID=d ;;
15212   .oss)      TIMIDITY_OUTPUT_ID=d ;;
15213   .alsa)     TIMIDITY_OUTPUT_ID=s ;;
15214   .sun)      TIMIDITY_OUTPUT_ID=d ;;
15215   .hpux)     TIMIDITY_OUTPUT_ID=d ;;
15216   .irix)     TIMIDITY_OUTPUT_ID=d ;;
15217   .mme)      TIMIDITY_OUTPUT_ID=d ;;
15218   .sb_dsp)   TIMIDITY_OUTPUT_ID=d ;;
15219   .darwin)   TIMIDITY_OUTPUT_ID=d ;;
15220   .w32)      TIMIDITY_OUTPUT_ID=d ;;
15221   .alib)     TIMIDITY_OUTPUT_ID=A ;;
15222   .nas)      TIMIDITY_OUTPUT_ID=n ;;
15223   .arts)     TIMIDITY_OUTPUT_ID=R ;;
15224   .esd)      TIMIDITY_OUTPUT_ID=e ;;
15225   .portaudio)      TIMIDITY_OUTPUT_ID=p ;;
15226   .npipe)    TIMIDITY_OUTPUT_ID=N ;;
15227   .wav)      TIMIDITY_OUTPUT_ID=w ;;
15228   .au)       TIMIDITY_OUTPUT_ID=u ;;
15229   .aiff)     TIMIDITY_OUTPUT_ID=a ;;
15230   .list)     TIMIDITY_OUTPUT_ID=l ;;
15231   .vorbis)   TIMIDITY_OUTPUT_ID=v ;;
15232   .flac)     TIMIDITY_OUTPUT_ID=F ;;
15233   .speex)    TIMIDITY_OUTPUT_ID=S ;;
15234   .gogo)     TIMIDITY_OUTPUT_ID=g ;;
15235   .jack)     TIMIDITY_OUTPUT_ID=j ;;
15236   .ao)       TIMIDITY_OUTPUT_ID=O ;;
15237   *)         TIMIDITY_OUTPUT_ID= ;;
15238 esac
15239 { echo "$as_me:$LINENO: result: $DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&5
15240 echo "${ECHO_T}$DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID" >&6; }
15241
15242
15243 #
15244 # Interface Section
15245 #
15246
15247 interface_targets='dynamic ncurses slang motif tcltk emacs vt100 xaw xskin gtk alsaseq winsyn winsyng portmidisyng npsyn'
15248
15249 # Check whether --enable-interface was given.
15250 if test "${enable_interface+set}" = set; then
15251   enableval=$enable_interface;  for i in `echo $enableval | sed 's/,/ /g'`; do
15252       eval "enable_$i=yes"
15253     done
15254 fi
15255
15256
15257 #  Dynamic link configuration
15258 # Check whether --enable-dynamic was given.
15259 if test "${enable_dynamic+set}" = set; then
15260   enableval=$enable_dynamic;      if test "x$enable_dynamic" = xyes; then
15261       enable_dynamic=dynamic
15262     elif test "x$enable_dynamic" != xno; then
15263       for i in `echo $enableval | sed 's/,/ /g'`; do
15264         eval "enable_$i=dynamic"
15265       done
15266     fi
15267 fi
15268
15269
15270 join_targets=
15271 for i in $interface_targets; do
15272   eval "join_targets=$join_targets\$enable_$i"
15273 done
15274
15275 case ".$join_targets" in
15276 .*dynamic*) NEEDDLOPEN=yes;;
15277 *)          NEEDDLOPEN=no;;
15278 esac
15279
15280 if test "x$GCC" = xyes; then SHCFLAGS="$SHCFLAGS -fPIC"; fi
15281 case "x$enable_ump" in xyes|xdynamic) EXTRACFLAGS="$EXTRACFLAGS -DXP_UNIX $SHCFLAGS";; esac
15282
15283 if test "$NEEDDLOPEN" = "yes"; then
15284   have_dl=no
15285
15286   { echo "$as_me:$LINENO: checking for LoadLibrary" >&5
15287 echo $ECHO_N "checking for LoadLibrary... $ECHO_C" >&6; }
15288 if test "${wapi_cv_func_LoadLibrary+set}" = set; then
15289   echo $ECHO_N "(cached) $ECHO_C" >&6
15290 else
15291   cat >conftest.$ac_ext <<_ACEOF
15292 /* confdefs.h.  */
15293 _ACEOF
15294 cat confdefs.h >>conftest.$ac_ext
15295 cat >>conftest.$ac_ext <<_ACEOF
15296 /* end confdefs.h.  */
15297 #include <windows.h>
15298
15299
15300 int
15301 main ()
15302 {
15303 LoadLibrary(0);
15304   ;
15305   return 0;
15306 }
15307 _ACEOF
15308 rm -f conftest.$ac_objext conftest$ac_exeext
15309 if { (ac_try="$ac_link"
15310 case "(($ac_try" in
15311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15312   *) ac_try_echo=$ac_try;;
15313 esac
15314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15315   (eval "$ac_link") 2>conftest.er1
15316   ac_status=$?
15317   grep -v '^ *+' conftest.er1 >conftest.err
15318   rm -f conftest.er1
15319   cat conftest.err >&5
15320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321   (exit $ac_status); } && {
15322          test -z "$ac_c_werror_flag" ||
15323          test ! -s conftest.err
15324        } && test -s conftest$ac_exeext &&
15325        $as_test_x conftest$ac_exeext; then
15326   wapi_cv_func_LoadLibrary=yes
15327 else
15328   echo "$as_me: failed program was:" >&5
15329 sed 's/^/| /' conftest.$ac_ext >&5
15330
15331         wapi_cv_func_LoadLibrary=no
15332 fi
15333
15334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15335       conftest$ac_exeext conftest.$ac_ext
15336 fi
15337
15338 if eval "test \"`echo '$wapi_cv_func_'LoadLibrary`\" = yes"; then
15339   { echo "$as_me:$LINENO: result: yes" >&5
15340 echo "${ECHO_T}yes" >&6; }
15341   have_dl=w32
15342 else
15343   { echo "$as_me:$LINENO: result: no" >&5
15344 echo "${ECHO_T}no" >&6; }
15345 fi
15346
15347   test $wapi_cv_func_LoadLibrary = yes && have_dl=w32
15348
15349   if test "$have_dl" = "no"; then
15350     { echo "$as_me:$LINENO: checking for shl_load" >&5
15351 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
15352 if test "${ac_cv_func_shl_load+set}" = set; then
15353   echo $ECHO_N "(cached) $ECHO_C" >&6
15354 else
15355   cat >conftest.$ac_ext <<_ACEOF
15356 /* confdefs.h.  */
15357 _ACEOF
15358 cat confdefs.h >>conftest.$ac_ext
15359 cat >>conftest.$ac_ext <<_ACEOF
15360 /* end confdefs.h.  */
15361 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15362    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15363 #define shl_load innocuous_shl_load
15364
15365 /* System header to define __stub macros and hopefully few prototypes,
15366     which can conflict with char shl_load (); below.
15367     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15368     <limits.h> exists even on freestanding compilers.  */
15369
15370 #ifdef __STDC__
15371 # include <limits.h>
15372 #else
15373 # include <assert.h>
15374 #endif
15375
15376 #undef shl_load
15377
15378 /* Override any GCC internal prototype to avoid an error.
15379    Use char because int might match the return type of a GCC
15380    builtin and then its argument prototype would still apply.  */
15381 #ifdef __cplusplus
15382 extern "C"
15383 #endif
15384 char shl_load ();
15385 /* The GNU C library defines this for functions which it implements
15386     to always fail with ENOSYS.  Some functions are actually named
15387     something starting with __ and the normal name is an alias.  */
15388 #if defined __stub_shl_load || defined __stub___shl_load
15389 choke me
15390 #endif
15391
15392 int
15393 main ()
15394 {
15395 return shl_load ();
15396   ;
15397   return 0;
15398 }
15399 _ACEOF
15400 rm -f conftest.$ac_objext conftest$ac_exeext
15401 if { (ac_try="$ac_link"
15402 case "(($ac_try" in
15403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15404   *) ac_try_echo=$ac_try;;
15405 esac
15406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15407   (eval "$ac_link") 2>conftest.er1
15408   ac_status=$?
15409   grep -v '^ *+' conftest.er1 >conftest.err
15410   rm -f conftest.er1
15411   cat conftest.err >&5
15412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413   (exit $ac_status); } && {
15414          test -z "$ac_c_werror_flag" ||
15415          test ! -s conftest.err
15416        } && test -s conftest$ac_exeext &&
15417        $as_test_x conftest$ac_exeext; then
15418   ac_cv_func_shl_load=yes
15419 else
15420   echo "$as_me: failed program was:" >&5
15421 sed 's/^/| /' conftest.$ac_ext >&5
15422
15423         ac_cv_func_shl_load=no
15424 fi
15425
15426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15427       conftest$ac_exeext conftest.$ac_ext
15428 fi
15429 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15430 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
15431 if test $ac_cv_func_shl_load = yes; then
15432   have_dl=hpux
15433 fi
15434
15435   fi
15436   if test "$have_dl" = "no"; then
15437             { echo "$as_me:$LINENO: checking for NSLinkModule" >&5
15438 echo $ECHO_N "checking for NSLinkModule... $ECHO_C" >&6; }
15439 if test "${ac_cv_func_NSLinkModule+set}" = set; then
15440   echo $ECHO_N "(cached) $ECHO_C" >&6
15441 else
15442   cat >conftest.$ac_ext <<_ACEOF
15443 /* confdefs.h.  */
15444 _ACEOF
15445 cat confdefs.h >>conftest.$ac_ext
15446 cat >>conftest.$ac_ext <<_ACEOF
15447 /* end confdefs.h.  */
15448 /* Define NSLinkModule to an innocuous variant, in case <limits.h> declares NSLinkModule.
15449    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15450 #define NSLinkModule innocuous_NSLinkModule
15451
15452 /* System header to define __stub macros and hopefully few prototypes,
15453     which can conflict with char NSLinkModule (); below.
15454     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15455     <limits.h> exists even on freestanding compilers.  */
15456
15457 #ifdef __STDC__
15458 # include <limits.h>
15459 #else
15460 # include <assert.h>
15461 #endif
15462
15463 #undef NSLinkModule
15464
15465 /* Override any GCC internal prototype to avoid an error.
15466    Use char because int might match the return type of a GCC
15467    builtin and then its argument prototype would still apply.  */
15468 #ifdef __cplusplus
15469 extern "C"
15470 #endif
15471 char NSLinkModule ();
15472 /* The GNU C library defines this for functions which it implements
15473     to always fail with ENOSYS.  Some functions are actually named
15474     something starting with __ and the normal name is an alias.  */
15475 #if defined __stub_NSLinkModule || defined __stub___NSLinkModule
15476 choke me
15477 #endif
15478
15479 int
15480 main ()
15481 {
15482 return NSLinkModule ();
15483   ;
15484   return 0;
15485 }
15486 _ACEOF
15487 rm -f conftest.$ac_objext conftest$ac_exeext
15488 if { (ac_try="$ac_link"
15489 case "(($ac_try" in
15490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15491   *) ac_try_echo=$ac_try;;
15492 esac
15493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15494   (eval "$ac_link") 2>conftest.er1
15495   ac_status=$?
15496   grep -v '^ *+' conftest.er1 >conftest.err
15497   rm -f conftest.er1
15498   cat conftest.err >&5
15499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500   (exit $ac_status); } && {
15501          test -z "$ac_c_werror_flag" ||
15502          test ! -s conftest.err
15503        } && test -s conftest$ac_exeext &&
15504        $as_test_x conftest$ac_exeext; then
15505   ac_cv_func_NSLinkModule=yes
15506 else
15507   echo "$as_me: failed program was:" >&5
15508 sed 's/^/| /' conftest.$ac_ext >&5
15509
15510         ac_cv_func_NSLinkModule=no
15511 fi
15512
15513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15514       conftest$ac_exeext conftest.$ac_ext
15515 fi
15516 { echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5
15517 echo "${ECHO_T}$ac_cv_func_NSLinkModule" >&6; }
15518 if test $ac_cv_func_NSLinkModule = yes; then
15519   have_dl=dyld
15520 fi
15521
15522   fi
15523   if test "$have_dl" = "no" -a "x$ac_cv_lib_dl_dlopen" = xyes; then
15524     have_dl=dlopen
15525   fi
15526   if test "$have_dl" = "no"; then
15527     { echo "$as_me:$LINENO: checking for dlopen" >&5
15528 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
15529 if test "${ac_cv_func_dlopen+set}" = set; then
15530   echo $ECHO_N "(cached) $ECHO_C" >&6
15531 else
15532   cat >conftest.$ac_ext <<_ACEOF
15533 /* confdefs.h.  */
15534 _ACEOF
15535 cat confdefs.h >>conftest.$ac_ext
15536 cat >>conftest.$ac_ext <<_ACEOF
15537 /* end confdefs.h.  */
15538 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15539    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15540 #define dlopen innocuous_dlopen
15541
15542 /* System header to define __stub macros and hopefully few prototypes,
15543     which can conflict with char dlopen (); below.
15544     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15545     <limits.h> exists even on freestanding compilers.  */
15546
15547 #ifdef __STDC__
15548 # include <limits.h>
15549 #else
15550 # include <assert.h>
15551 #endif
15552
15553 #undef dlopen
15554
15555 /* Override any GCC internal prototype to avoid an error.
15556    Use char because int might match the return type of a GCC
15557    builtin and then its argument prototype would still apply.  */
15558 #ifdef __cplusplus
15559 extern "C"
15560 #endif
15561 char dlopen ();
15562 /* The GNU C library defines this for functions which it implements
15563     to always fail with ENOSYS.  Some functions are actually named
15564     something starting with __ and the normal name is an alias.  */
15565 #if defined __stub_dlopen || defined __stub___dlopen
15566 choke me
15567 #endif
15568
15569 int
15570 main ()
15571 {
15572 return dlopen ();
15573   ;
15574   return 0;
15575 }
15576 _ACEOF
15577 rm -f conftest.$ac_objext conftest$ac_exeext
15578 if { (ac_try="$ac_link"
15579 case "(($ac_try" in
15580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15581   *) ac_try_echo=$ac_try;;
15582 esac
15583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15584   (eval "$ac_link") 2>conftest.er1
15585   ac_status=$?
15586   grep -v '^ *+' conftest.er1 >conftest.err
15587   rm -f conftest.er1
15588   cat conftest.err >&5
15589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590   (exit $ac_status); } && {
15591          test -z "$ac_c_werror_flag" ||
15592          test ! -s conftest.err
15593        } && test -s conftest$ac_exeext &&
15594        $as_test_x conftest$ac_exeext; then
15595   ac_cv_func_dlopen=yes
15596 else
15597   echo "$as_me: failed program was:" >&5
15598 sed 's/^/| /' conftest.$ac_ext >&5
15599
15600         ac_cv_func_dlopen=no
15601 fi
15602
15603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15604       conftest$ac_exeext conftest.$ac_ext
15605 fi
15606 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15607 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
15608 if test $ac_cv_func_dlopen = yes; then
15609   have_dl=dlopen
15610 fi
15611
15612   fi
15613   if test "$have_dl" = "no"; then
15614     { echo "$as_me:$LINENO: checking for dld_init" >&5
15615 echo $ECHO_N "checking for dld_init... $ECHO_C" >&6; }
15616 if test "${ac_cv_func_dld_init+set}" = set; then
15617   echo $ECHO_N "(cached) $ECHO_C" >&6
15618 else
15619   cat >conftest.$ac_ext <<_ACEOF
15620 /* confdefs.h.  */
15621 _ACEOF
15622 cat confdefs.h >>conftest.$ac_ext
15623 cat >>conftest.$ac_ext <<_ACEOF
15624 /* end confdefs.h.  */
15625 /* Define dld_init to an innocuous variant, in case <limits.h> declares dld_init.
15626    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15627 #define dld_init innocuous_dld_init
15628
15629 /* System header to define __stub macros and hopefully few prototypes,
15630     which can conflict with char dld_init (); below.
15631     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15632     <limits.h> exists even on freestanding compilers.  */
15633
15634 #ifdef __STDC__
15635 # include <limits.h>
15636 #else
15637 # include <assert.h>
15638 #endif
15639
15640 #undef dld_init
15641
15642 /* Override any GCC internal prototype to avoid an error.
15643    Use char because int might match the return type of a GCC
15644    builtin and then its argument prototype would still apply.  */
15645 #ifdef __cplusplus
15646 extern "C"
15647 #endif
15648 char dld_init ();
15649 /* The GNU C library defines this for functions which it implements
15650     to always fail with ENOSYS.  Some functions are actually named
15651     something starting with __ and the normal name is an alias.  */
15652 #if defined __stub_dld_init || defined __stub___dld_init
15653 choke me
15654 #endif
15655
15656 int
15657 main ()
15658 {
15659 return dld_init ();
15660   ;
15661   return 0;
15662 }
15663 _ACEOF
15664 rm -f conftest.$ac_objext conftest$ac_exeext
15665 if { (ac_try="$ac_link"
15666 case "(($ac_try" in
15667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668   *) ac_try_echo=$ac_try;;
15669 esac
15670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671   (eval "$ac_link") 2>conftest.er1
15672   ac_status=$?
15673   grep -v '^ *+' conftest.er1 >conftest.err
15674   rm -f conftest.er1
15675   cat conftest.err >&5
15676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677   (exit $ac_status); } && {
15678          test -z "$ac_c_werror_flag" ||
15679          test ! -s conftest.err
15680        } && test -s conftest$ac_exeext &&
15681        $as_test_x conftest$ac_exeext; then
15682   ac_cv_func_dld_init=yes
15683 else
15684   echo "$as_me: failed program was:" >&5
15685 sed 's/^/| /' conftest.$ac_ext >&5
15686
15687         ac_cv_func_dld_init=no
15688 fi
15689
15690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15691       conftest$ac_exeext conftest.$ac_ext
15692 fi
15693 { echo "$as_me:$LINENO: result: $ac_cv_func_dld_init" >&5
15694 echo "${ECHO_T}$ac_cv_func_dld_init" >&6; }
15695 if test $ac_cv_func_dld_init = yes; then
15696   have_dl=dld
15697 fi
15698
15699   fi
15700   if test "$have_dl" = "no"; then
15701     { echo "$as_me:$LINENO: checking for dld_init in -ldld" >&5
15702 echo $ECHO_N "checking for dld_init in -ldld... $ECHO_C" >&6; }
15703 if test "${ac_cv_lib_dld_dld_init+set}" = set; then
15704   echo $ECHO_N "(cached) $ECHO_C" >&6
15705 else
15706   ac_check_lib_save_LIBS=$LIBS
15707 LIBS="-ldld  $LIBS"
15708 cat >conftest.$ac_ext <<_ACEOF
15709 /* confdefs.h.  */
15710 _ACEOF
15711 cat confdefs.h >>conftest.$ac_ext
15712 cat >>conftest.$ac_ext <<_ACEOF
15713 /* end confdefs.h.  */
15714
15715 /* Override any GCC internal prototype to avoid an error.
15716    Use char because int might match the return type of a GCC
15717    builtin and then its argument prototype would still apply.  */
15718 #ifdef __cplusplus
15719 extern "C"
15720 #endif
15721 char dld_init ();
15722 int
15723 main ()
15724 {
15725 return dld_init ();
15726   ;
15727   return 0;
15728 }
15729 _ACEOF
15730 rm -f conftest.$ac_objext conftest$ac_exeext
15731 if { (ac_try="$ac_link"
15732 case "(($ac_try" in
15733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15734   *) ac_try_echo=$ac_try;;
15735 esac
15736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15737   (eval "$ac_link") 2>conftest.er1
15738   ac_status=$?
15739   grep -v '^ *+' conftest.er1 >conftest.err
15740   rm -f conftest.er1
15741   cat conftest.err >&5
15742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743   (exit $ac_status); } && {
15744          test -z "$ac_c_werror_flag" ||
15745          test ! -s conftest.err
15746        } && test -s conftest$ac_exeext &&
15747        $as_test_x conftest$ac_exeext; then
15748   ac_cv_lib_dld_dld_init=yes
15749 else
15750   echo "$as_me: failed program was:" >&5
15751 sed 's/^/| /' conftest.$ac_ext >&5
15752
15753         ac_cv_lib_dld_dld_init=no
15754 fi
15755
15756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15757       conftest$ac_exeext conftest.$ac_ext
15758 LIBS=$ac_check_lib_save_LIBS
15759 fi
15760 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_init" >&5
15761 echo "${ECHO_T}$ac_cv_lib_dld_dld_init" >&6; }
15762 if test $ac_cv_lib_dld_dld_init = yes; then
15763   have_dl=dld;lib_dl_opt=-ldld
15764 fi
15765
15766   fi
15767
15768   { echo "$as_me:$LINENO: checking dynamic link method" >&5
15769 echo $ECHO_N "checking dynamic link method... $ECHO_C" >&6; }
15770   case "$have_dl" in
15771     dlopen)
15772       { echo "$as_me:$LINENO: result: use dl_dlopen.c" >&5
15773 echo "${ECHO_T}use dl_dlopen.c" >&6; }
15774       SYSEXTRAS="$SYSEXTRAS dl_dlopen.c"
15775       { echo "$as_me:$LINENO: checking whether your dlsym() needs a leading underscore" >&5
15776 echo $ECHO_N "checking whether your dlsym() needs a leading underscore... $ECHO_C" >&6; }
15777 if test "${timidity_cv_func_dlsym_underscore+set}" = set; then
15778   echo $ECHO_N "(cached) $ECHO_C" >&6
15779 else
15780   case "$ac_cv_header_dlfcn_h" in
15781 yes) i_dlfcn=define;;
15782 *)   i_dlfcn=undef;;
15783 esac
15784 cat > dyna.c <<EOM
15785 fred () { }
15786 EOM
15787
15788 cat > fred.c <<EOM
15789 #include <stdio.h>
15790 #$i_dlfcn I_DLFCN
15791 #ifdef I_DLFCN
15792 #include <dlfcn.h>      /* the dynamic linker include file for Sunos/Solaris */
15793 #else
15794 #include <sys/types.h>
15795 #include <nlist.h>
15796 #include <link.h>
15797 #endif
15798
15799 extern int fred() ;
15800
15801 main()
15802 {
15803     void * handle ;
15804     void * symbol ;
15805 #ifndef RTLD_LAZY
15806     int mode = 1 ;
15807 #else
15808     int mode = RTLD_LAZY ;
15809 #endif
15810     handle = dlopen("./dyna.$so", mode) ;
15811     if (handle == NULL) {
15812         printf ("1\n") ;
15813         fflush (stdout) ;
15814         exit(0);
15815     }
15816     symbol = dlsym(handle, "fred") ;
15817     if (symbol == NULL) {
15818         /* try putting a leading underscore */
15819         symbol = dlsym(handle, "_fred") ;
15820         if (symbol == NULL) {
15821             printf ("2\n") ;
15822             fflush (stdout) ;
15823             exit(0);
15824         }
15825         printf ("3\n") ;
15826     }
15827     else
15828         printf ("4\n") ;
15829     fflush (stdout) ;
15830     exit(0);
15831 }
15832 EOM
15833 : Call the object file tmp-dyna.o in case dlext=o.
15834 if ${CC-cc} $CFLAGS $SHCFLAGS $CPPFLAGS -c dyna.c > /dev/null 2>&1 &&
15835         mv dyna.o tmp-dyna.o > /dev/null 2>&1 &&
15836         $SHLD $SHLDFLAGS -o dyna.$so tmp-dyna.o > /dev/null 2>&1 &&
15837         ${CC-cc} -o fred $CFLAGS $CPPFLAGS $LDFLAGS fred.c $LIBS $lib_dl_opt > /dev/null 2>&1; then
15838         xxx=`./fred`
15839         case $xxx in
15840         1)      { echo "$as_me:$LINENO: WARNING: Test program failed using dlopen.  Perhaps you should not use dynamic loading." >&5
15841 echo "$as_me: WARNING: Test program failed using dlopen.  Perhaps you should not use dynamic loading." >&2;}
15842                 ;;
15843         2)      { echo "$as_me:$LINENO: WARNING: Test program failed using dlsym.  Perhaps you should not use dynamic loading." >&5
15844 echo "$as_me: WARNING: Test program failed using dlsym.  Perhaps you should not use dynamic loading." >&2;}
15845                 ;;
15846         3)      timidity_cv_func_dlsym_underscore=yes
15847                 ;;
15848         4)      timidity_cv_func_dlsym_underscore=no
15849                 ;;
15850         esac
15851 else
15852         { echo "$as_me:$LINENO: WARNING: I can't compile and run the test program." >&5
15853 echo "$as_me: WARNING: I can't compile and run the test program." >&2;}
15854 fi
15855 rm -f dyna.c dyna.o dyna.$so tmp-dyna.o fred.c fred.o fred
15856
15857 fi
15858
15859 case "x$timidity_cv_func_dlsym_underscore" in
15860 xyes)
15861 cat >>confdefs.h <<\_ACEOF
15862 #define DLSYM_NEEDS_UNDERSCORE 1
15863 _ACEOF
15864
15865         { echo "$as_me:$LINENO: result: yes" >&5
15866 echo "${ECHO_T}yes" >&6; }
15867         ;;
15868 xno)
15869         { echo "$as_me:$LINENO: result: no" >&5
15870 echo "${ECHO_T}no" >&6; }
15871         ;;
15872 esac
15873
15874       ;;
15875     dld)
15876       { echo "$as_me:$LINENO: result: use dl_dld.c" >&5
15877 echo "${ECHO_T}use dl_dld.c" >&6; }
15878       SYSEXTRAS="$SYSEXTRAS dl_dld.c"
15879       ;;
15880     hpux)
15881       { echo "$as_me:$LINENO: result: use dl_hpux.c" >&5
15882 echo "${ECHO_T}use dl_hpux.c" >&6; }
15883       SYSEXTRAS="$SYSEXTRAS dl_hpux.c"
15884       LDFLAGS="$LDFLAGS -Wl,-E $LDFLAGS"
15885       ;;
15886     w32)
15887       { echo "$as_me:$LINENO: result: use dl_w32.c" >&5
15888 echo "${ECHO_T}use dl_w32.c" >&6; }
15889       SYSEXTRAS="$SYSEXTRAS dl_w32.c"
15890       ;;
15891     dyld)
15892       { echo "$as_me:$LINENO: result: use dl_dyld.c" >&5
15893 echo "${ECHO_T}use dl_dyld.c" >&6; }
15894       SYSEXTRAS="$SYSEXTRAS dl_dyld.c"
15895       ;;
15896     *)
15897       NEEDDLOPEN="no"
15898       { echo "$as_me:$LINENO: WARNING: no method to open a shared object" >&5
15899 echo "$as_me: WARNING: no method to open a shared object" >&2;}
15900       ;;
15901   esac
15902 fi
15903
15904 if test "$NEEDDLOPEN" = "yes"; then
15905   cat >> confdefs.h <<EOF
15906 #define IA_DYNAMIC 1
15907 EOF
15908
15909
15910 cat >>confdefs.h <<_ACEOF
15911 #define SHARED_LIB_EXT ".$so"
15912 _ACEOF
15913
15914       test "x$GCC" = xyes -a "x$timidity_cv_ccoption_rdynamic" = xyes  && timidity_LDFLAGS="-rdynamic"
15915 fi
15916
15917
15918
15919 if test "$NEEDDLOPEN" = "yes"; then
15920   NEEDDLOPEN_TRUE=
15921   NEEDDLOPEN_FALSE='#'
15922 else
15923   NEEDDLOPEN_TRUE='#'
15924   NEEDDLOPEN_FALSE=
15925 fi
15926
15927
15928
15929
15930
15931 if false; then
15932   ENABLE_NCURSES_TRUE=
15933   ENABLE_NCURSES_FALSE='#'
15934 else
15935   ENABLE_NCURSES_TRUE='#'
15936   ENABLE_NCURSES_FALSE=
15937 fi
15938
15939 # Check whether --enable-ncurses was given.
15940 if test "${enable_ncurses+set}" = set; then
15941   enableval=$enable_ncurses; case "x$enable_ncurses" in xyes|xdynamic)
15942
15943
15944 for ac_header in ncurses.h ncurses/curses.h curses.h
15945 do
15946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15948   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15951   echo $ECHO_N "(cached) $ECHO_C" >&6
15952 fi
15953 ac_res=`eval echo '${'$as_ac_Header'}'`
15954                { echo "$as_me:$LINENO: result: $ac_res" >&5
15955 echo "${ECHO_T}$ac_res" >&6; }
15956 else
15957   # Is the header compilable?
15958 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15959 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15960 cat >conftest.$ac_ext <<_ACEOF
15961 /* confdefs.h.  */
15962 _ACEOF
15963 cat confdefs.h >>conftest.$ac_ext
15964 cat >>conftest.$ac_ext <<_ACEOF
15965 /* end confdefs.h.  */
15966 $ac_includes_default
15967 #include <$ac_header>
15968 _ACEOF
15969 rm -f conftest.$ac_objext
15970 if { (ac_try="$ac_compile"
15971 case "(($ac_try" in
15972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15973   *) ac_try_echo=$ac_try;;
15974 esac
15975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15976   (eval "$ac_compile") 2>conftest.er1
15977   ac_status=$?
15978   grep -v '^ *+' conftest.er1 >conftest.err
15979   rm -f conftest.er1
15980   cat conftest.err >&5
15981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982   (exit $ac_status); } && {
15983          test -z "$ac_c_werror_flag" ||
15984          test ! -s conftest.err
15985        } && test -s conftest.$ac_objext; then
15986   ac_header_compiler=yes
15987 else
15988   echo "$as_me: failed program was:" >&5
15989 sed 's/^/| /' conftest.$ac_ext >&5
15990
15991         ac_header_compiler=no
15992 fi
15993
15994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15995 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15996 echo "${ECHO_T}$ac_header_compiler" >&6; }
15997
15998 # Is the header present?
15999 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16001 cat >conftest.$ac_ext <<_ACEOF
16002 /* confdefs.h.  */
16003 _ACEOF
16004 cat confdefs.h >>conftest.$ac_ext
16005 cat >>conftest.$ac_ext <<_ACEOF
16006 /* end confdefs.h.  */
16007 #include <$ac_header>
16008 _ACEOF
16009 if { (ac_try="$ac_cpp conftest.$ac_ext"
16010 case "(($ac_try" in
16011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16012   *) ac_try_echo=$ac_try;;
16013 esac
16014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16015   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16016   ac_status=$?
16017   grep -v '^ *+' conftest.er1 >conftest.err
16018   rm -f conftest.er1
16019   cat conftest.err >&5
16020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021   (exit $ac_status); } >/dev/null && {
16022          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16023          test ! -s conftest.err
16024        }; then
16025   ac_header_preproc=yes
16026 else
16027   echo "$as_me: failed program was:" >&5
16028 sed 's/^/| /' conftest.$ac_ext >&5
16029
16030   ac_header_preproc=no
16031 fi
16032
16033 rm -f conftest.err conftest.$ac_ext
16034 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16035 echo "${ECHO_T}$ac_header_preproc" >&6; }
16036
16037 # So?  What about this header?
16038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16039   yes:no: )
16040     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16042     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16044     ac_header_preproc=yes
16045     ;;
16046   no:yes:* )
16047     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16049     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16050 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16051     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16053     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16054 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16055     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16057     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16059     ( cat <<\_ASBOX
16060 ## ------------------------------- ##
16061 ## Report this to root@mput.dip.jp ##
16062 ## ------------------------------- ##
16063 _ASBOX
16064      ) | sed "s/^/$as_me: WARNING:     /" >&2
16065     ;;
16066 esac
16067 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16070   echo $ECHO_N "(cached) $ECHO_C" >&6
16071 else
16072   eval "$as_ac_Header=\$ac_header_preproc"
16073 fi
16074 ac_res=`eval echo '${'$as_ac_Header'}'`
16075                { echo "$as_me:$LINENO: result: $ac_res" >&5
16076 echo "${ECHO_T}$ac_res" >&6; }
16077
16078 fi
16079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16080   cat >>confdefs.h <<_ACEOF
16081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16082 _ACEOF
16083
16084 fi
16085
16086 done
16087
16088
16089
16090   case "$ac_cv_header_curses_h$ac_cv_header_ncurses_curses_h$ac_cv_header_ncurses_h" in
16091     *yes*);;
16092     *)  for i in /usr/include /usr/local/include; do
16093           if test -f "$i/ncurses/curses.h" -a -f "$i/ncurses/unctrl.h"; then
16094             { echo "$as_me:$LINENO: WARNING: ncurses test is failure.  Please check config.h and common.makefile later" >&5
16095 echo "$as_me: WARNING: ncurses test is failure.  Please check config.h and common.makefile later" >&2;}
16096             CPPFLAGS="$CPPFLAGS -I$i/ncurses"
16097             break
16098           fi
16099         done
16100         ;;
16101     esac
16102
16103     { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
16104 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
16105 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
16106   echo $ECHO_N "(cached) $ECHO_C" >&6
16107 else
16108   ac_check_lib_save_LIBS=$LIBS
16109 LIBS="-lncurses  $LIBS"
16110 cat >conftest.$ac_ext <<_ACEOF
16111 /* confdefs.h.  */
16112 _ACEOF
16113 cat confdefs.h >>conftest.$ac_ext
16114 cat >>conftest.$ac_ext <<_ACEOF
16115 /* end confdefs.h.  */
16116
16117 /* Override any GCC internal prototype to avoid an error.
16118    Use char because int might match the return type of a GCC
16119    builtin and then its argument prototype would still apply.  */
16120 #ifdef __cplusplus
16121 extern "C"
16122 #endif
16123 char initscr ();
16124 int
16125 main ()
16126 {
16127 return initscr ();
16128   ;
16129   return 0;
16130 }
16131 _ACEOF
16132 rm -f conftest.$ac_objext conftest$ac_exeext
16133 if { (ac_try="$ac_link"
16134 case "(($ac_try" in
16135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16136   *) ac_try_echo=$ac_try;;
16137 esac
16138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16139   (eval "$ac_link") 2>conftest.er1
16140   ac_status=$?
16141   grep -v '^ *+' conftest.er1 >conftest.err
16142   rm -f conftest.er1
16143   cat conftest.err >&5
16144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145   (exit $ac_status); } && {
16146          test -z "$ac_c_werror_flag" ||
16147          test ! -s conftest.err
16148        } && test -s conftest$ac_exeext &&
16149        $as_test_x conftest$ac_exeext; then
16150   ac_cv_lib_ncurses_initscr=yes
16151 else
16152   echo "$as_me: failed program was:" >&5
16153 sed 's/^/| /' conftest.$ac_ext >&5
16154
16155         ac_cv_lib_ncurses_initscr=no
16156 fi
16157
16158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16159       conftest$ac_exeext conftest.$ac_ext
16160 LIBS=$ac_check_lib_save_LIBS
16161 fi
16162 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
16163 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
16164 if test $ac_cv_lib_ncurses_initscr = yes; then
16165   lib_curses_opt=-lncurses
16166 else
16167         { echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lcurses" >&5
16168 echo $ECHO_N "checking for PDC_set_ctrl_break in -lcurses... $ECHO_C" >&6; }
16169 if test "${ac_cv_lib_curses_PDC_set_ctrl_break+set}" = set; then
16170   echo $ECHO_N "(cached) $ECHO_C" >&6
16171 else
16172   ac_check_lib_save_LIBS=$LIBS
16173 LIBS="-lcurses $lib_user32_test $LIBS"
16174 cat >conftest.$ac_ext <<_ACEOF
16175 /* confdefs.h.  */
16176 _ACEOF
16177 cat confdefs.h >>conftest.$ac_ext
16178 cat >>conftest.$ac_ext <<_ACEOF
16179 /* end confdefs.h.  */
16180
16181 /* Override any GCC internal prototype to avoid an error.
16182    Use char because int might match the return type of a GCC
16183    builtin and then its argument prototype would still apply.  */
16184 #ifdef __cplusplus
16185 extern "C"
16186 #endif
16187 char PDC_set_ctrl_break ();
16188 int
16189 main ()
16190 {
16191 return PDC_set_ctrl_break ();
16192   ;
16193   return 0;
16194 }
16195 _ACEOF
16196 rm -f conftest.$ac_objext conftest$ac_exeext
16197 if { (ac_try="$ac_link"
16198 case "(($ac_try" in
16199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16200   *) ac_try_echo=$ac_try;;
16201 esac
16202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16203   (eval "$ac_link") 2>conftest.er1
16204   ac_status=$?
16205   grep -v '^ *+' conftest.er1 >conftest.err
16206   rm -f conftest.er1
16207   cat conftest.err >&5
16208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209   (exit $ac_status); } && {
16210          test -z "$ac_c_werror_flag" ||
16211          test ! -s conftest.err
16212        } && test -s conftest$ac_exeext &&
16213        $as_test_x conftest$ac_exeext; then
16214   ac_cv_lib_curses_PDC_set_ctrl_break=yes
16215 else
16216   echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16218
16219         ac_cv_lib_curses_PDC_set_ctrl_break=no
16220 fi
16221
16222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16223       conftest$ac_exeext conftest.$ac_ext
16224 LIBS=$ac_check_lib_save_LIBS
16225 fi
16226 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_PDC_set_ctrl_break" >&5
16227 echo "${ECHO_T}$ac_cv_lib_curses_PDC_set_ctrl_break" >&6; }
16228 if test $ac_cv_lib_curses_PDC_set_ctrl_break = yes; then
16229    lib_curses_opt=-lcurses
16230
16231 cat >>confdefs.h <<\_ACEOF
16232 #define USE_PDCURSES 1
16233 _ACEOF
16234
16235             lib_user32_opt="$lib_user32_test"
16236
16237 else
16238             { echo "$as_me:$LINENO: checking for PDC_set_ctrl_break in -lpdcurses" >&5
16239 echo $ECHO_N "checking for PDC_set_ctrl_break in -lpdcurses... $ECHO_C" >&6; }
16240 if test "${ac_cv_lib_pdcurses_PDC_set_ctrl_break+set}" = set; then
16241   echo $ECHO_N "(cached) $ECHO_C" >&6
16242 else
16243   ac_check_lib_save_LIBS=$LIBS
16244 LIBS="-lpdcurses  $LIBS"
16245 cat >conftest.$ac_ext <<_ACEOF
16246 /* confdefs.h.  */
16247 _ACEOF
16248 cat confdefs.h >>conftest.$ac_ext
16249 cat >>conftest.$ac_ext <<_ACEOF
16250 /* end confdefs.h.  */
16251
16252 /* Override any GCC internal prototype to avoid an error.
16253    Use char because int might match the return type of a GCC
16254    builtin and then its argument prototype would still apply.  */
16255 #ifdef __cplusplus
16256 extern "C"
16257 #endif
16258 char PDC_set_ctrl_break ();
16259 int
16260 main ()
16261 {
16262 return PDC_set_ctrl_break ();
16263   ;
16264   return 0;
16265 }
16266 _ACEOF
16267 rm -f conftest.$ac_objext conftest$ac_exeext
16268 if { (ac_try="$ac_link"
16269 case "(($ac_try" in
16270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16271   *) ac_try_echo=$ac_try;;
16272 esac
16273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16274   (eval "$ac_link") 2>conftest.er1
16275   ac_status=$?
16276   grep -v '^ *+' conftest.er1 >conftest.err
16277   rm -f conftest.er1
16278   cat conftest.err >&5
16279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280   (exit $ac_status); } && {
16281          test -z "$ac_c_werror_flag" ||
16282          test ! -s conftest.err
16283        } && test -s conftest$ac_exeext &&
16284        $as_test_x conftest$ac_exeext; then
16285   ac_cv_lib_pdcurses_PDC_set_ctrl_break=yes
16286 else
16287   echo "$as_me: failed program was:" >&5
16288 sed 's/^/| /' conftest.$ac_ext >&5
16289
16290         ac_cv_lib_pdcurses_PDC_set_ctrl_break=no
16291 fi
16292
16293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16294       conftest$ac_exeext conftest.$ac_ext
16295 LIBS=$ac_check_lib_save_LIBS
16296 fi
16297 { echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&5
16298 echo "${ECHO_T}$ac_cv_lib_pdcurses_PDC_set_ctrl_break" >&6; }
16299 if test $ac_cv_lib_pdcurses_PDC_set_ctrl_break = yes; then
16300    lib_curses_opt=-lpdcurses
16301
16302 cat >>confdefs.h <<\_ACEOF
16303 #define USE_PDCURSES 1
16304 _ACEOF
16305
16306               lib_user32_opt="$lib_user32_test"
16307
16308 else
16309               case "$target" in
16310                 *openbsd*)
16311                   { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
16312 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
16313 if test "${ac_cv_lib_curses_initscr+set}" = set; then
16314   echo $ECHO_N "(cached) $ECHO_C" >&6
16315 else
16316   ac_check_lib_save_LIBS=$LIBS
16317 LIBS="-lcurses  $LIBS"
16318 cat >conftest.$ac_ext <<_ACEOF
16319 /* confdefs.h.  */
16320 _ACEOF
16321 cat confdefs.h >>conftest.$ac_ext
16322 cat >>conftest.$ac_ext <<_ACEOF
16323 /* end confdefs.h.  */
16324
16325 /* Override any GCC internal prototype to avoid an error.
16326    Use char because int might match the return type of a GCC
16327    builtin and then its argument prototype would still apply.  */
16328 #ifdef __cplusplus
16329 extern "C"
16330 #endif
16331 char initscr ();
16332 int
16333 main ()
16334 {
16335 return initscr ();
16336   ;
16337   return 0;
16338 }
16339 _ACEOF
16340 rm -f conftest.$ac_objext conftest$ac_exeext
16341 if { (ac_try="$ac_link"
16342 case "(($ac_try" in
16343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16344   *) ac_try_echo=$ac_try;;
16345 esac
16346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16347   (eval "$ac_link") 2>conftest.er1
16348   ac_status=$?
16349   grep -v '^ *+' conftest.er1 >conftest.err
16350   rm -f conftest.er1
16351   cat conftest.err >&5
16352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353   (exit $ac_status); } && {
16354          test -z "$ac_c_werror_flag" ||
16355          test ! -s conftest.err
16356        } && test -s conftest$ac_exeext &&
16357        $as_test_x conftest$ac_exeext; then
16358   ac_cv_lib_curses_initscr=yes
16359 else
16360   echo "$as_me: failed program was:" >&5
16361 sed 's/^/| /' conftest.$ac_ext >&5
16362
16363         ac_cv_lib_curses_initscr=no
16364 fi
16365
16366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16367       conftest$ac_exeext conftest.$ac_ext
16368 LIBS=$ac_check_lib_save_LIBS
16369 fi
16370 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
16371 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
16372 if test $ac_cv_lib_curses_initscr = yes; then
16373   lib_curses_opt=-lcurses
16374 else
16375    { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
16376 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
16377                       enable_ncurses=no
16378 fi
16379
16380                   ;;
16381                 *)
16382                   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes || test "x$POCC" = xyes; then
16383                     lib_curses_opt=libpdcurses.lib
16384
16385 cat >>confdefs.h <<\_ACEOF
16386 #define USE_PDCURSES 1
16387 _ACEOF
16388
16389                   else
16390                     { echo "$as_me:$LINENO: WARNING: ncurses interface is not enabled" >&5
16391 echo "$as_me: WARNING: ncurses interface is not enabled" >&2;}
16392                     enable_ncurses=no
16393                   fi
16394                   ;;
16395               esac
16396
16397 fi
16398
16399
16400 fi
16401
16402
16403 fi
16404
16405    ;; esac
16406 fi
16407
16408 case "x$enable_ncurses" in
16409 xyes)
16410   cat >> confdefs.h <<EOF
16411 #define IA_NCURSES 1
16412 EOF
16413
16414
16415
16416 if true; then
16417   ENABLE_NCURSES_TRUE=
16418   ENABLE_NCURSES_FALSE='#'
16419 else
16420   ENABLE_NCURSES_TRUE='#'
16421   ENABLE_NCURSES_FALSE=
16422 fi
16423
16424    LIBS="$LIBS $lib_curses_opt"
16425     case "$target" in
16426        *-*-freebsd123*)
16427          EXTRALIBS="$EXTRALIBS -lmytinfo"
16428          ;;
16429      esac
16430     INTERFACE_SRCS="$INTERFACE_SRCS ncurs_c.c"
16431
16432   ;;
16433 xdynamic)
16434   dynamic_targets="$dynamic_targets if_ncurses.\$(so)"
16435    n_so_libs="$lib_curses_opt"
16436     case "$target" in
16437        *-*-freebsd123*)
16438          EXTRALIBS="$EXTRALIBS -lmytinfo"
16439          ;;
16440      esac
16441   ;;
16442 *)
16443
16444   ;;
16445 esac
16446
16447
16448
16449
16450
16451 if false; then
16452   ENABLE_SLANG_TRUE=
16453   ENABLE_SLANG_FALSE='#'
16454 else
16455   ENABLE_SLANG_TRUE='#'
16456   ENABLE_SLANG_FALSE=
16457 fi
16458
16459 # Check whether --enable-slang was given.
16460 if test "${enable_slang+set}" = set; then
16461   enableval=$enable_slang; case "x$enable_slang" in xyes|xdynamic)  { echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5
16462 echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6; }
16463 if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then
16464   echo $ECHO_N "(cached) $ECHO_C" >&6
16465 else
16466   ac_check_lib_save_LIBS=$LIBS
16467 LIBS="-lslang  $LIBS"
16468 cat >conftest.$ac_ext <<_ACEOF
16469 /* confdefs.h.  */
16470 _ACEOF
16471 cat confdefs.h >>conftest.$ac_ext
16472 cat >>conftest.$ac_ext <<_ACEOF
16473 /* end confdefs.h.  */
16474
16475 /* Override any GCC internal prototype to avoid an error.
16476    Use char because int might match the return type of a GCC
16477    builtin and then its argument prototype would still apply.  */
16478 #ifdef __cplusplus
16479 extern "C"
16480 #endif
16481 char SLang_init_tty ();
16482 int
16483 main ()
16484 {
16485 return SLang_init_tty ();
16486   ;
16487   return 0;
16488 }
16489 _ACEOF
16490 rm -f conftest.$ac_objext conftest$ac_exeext
16491 if { (ac_try="$ac_link"
16492 case "(($ac_try" in
16493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16494   *) ac_try_echo=$ac_try;;
16495 esac
16496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16497   (eval "$ac_link") 2>conftest.er1
16498   ac_status=$?
16499   grep -v '^ *+' conftest.er1 >conftest.err
16500   rm -f conftest.er1
16501   cat conftest.err >&5
16502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503   (exit $ac_status); } && {
16504          test -z "$ac_c_werror_flag" ||
16505          test ! -s conftest.err
16506        } && test -s conftest$ac_exeext &&
16507        $as_test_x conftest$ac_exeext; then
16508   ac_cv_lib_slang_SLang_init_tty=yes
16509 else
16510   echo "$as_me: failed program was:" >&5
16511 sed 's/^/| /' conftest.$ac_ext >&5
16512
16513         ac_cv_lib_slang_SLang_init_tty=no
16514 fi
16515
16516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16517       conftest$ac_exeext conftest.$ac_ext
16518 LIBS=$ac_check_lib_save_LIBS
16519 fi
16520 { echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5
16521 echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6; }
16522 if test $ac_cv_lib_slang_SLang_init_tty = yes; then
16523   :
16524 else
16525    enable_slang=no
16526       { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
16527 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
16528
16529 fi
16530
16531
16532
16533 for ac_header in slang/slang.h slang.h
16534 do
16535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16537   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16540   echo $ECHO_N "(cached) $ECHO_C" >&6
16541 fi
16542 ac_res=`eval echo '${'$as_ac_Header'}'`
16543                { echo "$as_me:$LINENO: result: $ac_res" >&5
16544 echo "${ECHO_T}$ac_res" >&6; }
16545 else
16546   # Is the header compilable?
16547 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16549 cat >conftest.$ac_ext <<_ACEOF
16550 /* confdefs.h.  */
16551 _ACEOF
16552 cat confdefs.h >>conftest.$ac_ext
16553 cat >>conftest.$ac_ext <<_ACEOF
16554 /* end confdefs.h.  */
16555 $ac_includes_default
16556 #include <$ac_header>
16557 _ACEOF
16558 rm -f conftest.$ac_objext
16559 if { (ac_try="$ac_compile"
16560 case "(($ac_try" in
16561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16562   *) ac_try_echo=$ac_try;;
16563 esac
16564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16565   (eval "$ac_compile") 2>conftest.er1
16566   ac_status=$?
16567   grep -v '^ *+' conftest.er1 >conftest.err
16568   rm -f conftest.er1
16569   cat conftest.err >&5
16570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571   (exit $ac_status); } && {
16572          test -z "$ac_c_werror_flag" ||
16573          test ! -s conftest.err
16574        } && test -s conftest.$ac_objext; then
16575   ac_header_compiler=yes
16576 else
16577   echo "$as_me: failed program was:" >&5
16578 sed 's/^/| /' conftest.$ac_ext >&5
16579
16580         ac_header_compiler=no
16581 fi
16582
16583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16584 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16585 echo "${ECHO_T}$ac_header_compiler" >&6; }
16586
16587 # Is the header present?
16588 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16589 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16590 cat >conftest.$ac_ext <<_ACEOF
16591 /* confdefs.h.  */
16592 _ACEOF
16593 cat confdefs.h >>conftest.$ac_ext
16594 cat >>conftest.$ac_ext <<_ACEOF
16595 /* end confdefs.h.  */
16596 #include <$ac_header>
16597 _ACEOF
16598 if { (ac_try="$ac_cpp conftest.$ac_ext"
16599 case "(($ac_try" in
16600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16601   *) ac_try_echo=$ac_try;;
16602 esac
16603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16604   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16605   ac_status=$?
16606   grep -v '^ *+' conftest.er1 >conftest.err
16607   rm -f conftest.er1
16608   cat conftest.err >&5
16609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610   (exit $ac_status); } >/dev/null && {
16611          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16612          test ! -s conftest.err
16613        }; then
16614   ac_header_preproc=yes
16615 else
16616   echo "$as_me: failed program was:" >&5
16617 sed 's/^/| /' conftest.$ac_ext >&5
16618
16619   ac_header_preproc=no
16620 fi
16621
16622 rm -f conftest.err conftest.$ac_ext
16623 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16624 echo "${ECHO_T}$ac_header_preproc" >&6; }
16625
16626 # So?  What about this header?
16627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16628   yes:no: )
16629     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16630 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16631     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16632 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16633     ac_header_preproc=yes
16634     ;;
16635   no:yes:* )
16636     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16637 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16638     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16639 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16640     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16641 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16642     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16643 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16644     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16645 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16646     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16647 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16648     ( cat <<\_ASBOX
16649 ## ------------------------------- ##
16650 ## Report this to root@mput.dip.jp ##
16651 ## ------------------------------- ##
16652 _ASBOX
16653      ) | sed "s/^/$as_me: WARNING:     /" >&2
16654     ;;
16655 esac
16656 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16659   echo $ECHO_N "(cached) $ECHO_C" >&6
16660 else
16661   eval "$as_ac_Header=\$ac_header_preproc"
16662 fi
16663 ac_res=`eval echo '${'$as_ac_Header'}'`
16664                { echo "$as_me:$LINENO: result: $ac_res" >&5
16665 echo "${ECHO_T}$ac_res" >&6; }
16666
16667 fi
16668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16669   cat >>confdefs.h <<_ACEOF
16670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16671 _ACEOF
16672
16673 fi
16674
16675 done
16676
16677    ;; esac
16678 fi
16679
16680 case "x$enable_slang" in
16681 xyes)
16682   cat >> confdefs.h <<EOF
16683 #define IA_SLANG 1
16684 EOF
16685
16686
16687
16688 if true; then
16689   ENABLE_SLANG_TRUE=
16690   ENABLE_SLANG_FALSE='#'
16691 else
16692   ENABLE_SLANG_TRUE='#'
16693   ENABLE_SLANG_FALSE=
16694 fi
16695
16696    case "$target" in
16697        *openbsd*)
16698         { echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
16699 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6; }
16700 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
16701   echo $ECHO_N "(cached) $ECHO_C" >&6
16702 else
16703   ac_check_lib_save_LIBS=$LIBS
16704 LIBS="-ltermcap  $LIBS"
16705 cat >conftest.$ac_ext <<_ACEOF
16706 /* confdefs.h.  */
16707 _ACEOF
16708 cat confdefs.h >>conftest.$ac_ext
16709 cat >>conftest.$ac_ext <<_ACEOF
16710 /* end confdefs.h.  */
16711
16712 /* Override any GCC internal prototype to avoid an error.
16713    Use char because int might match the return type of a GCC
16714    builtin and then its argument prototype would still apply.  */
16715 #ifdef __cplusplus
16716 extern "C"
16717 #endif
16718 char initscr ();
16719 int
16720 main ()
16721 {
16722 return initscr ();
16723   ;
16724   return 0;
16725 }
16726 _ACEOF
16727 rm -f conftest.$ac_objext conftest$ac_exeext
16728 if { (ac_try="$ac_link"
16729 case "(($ac_try" in
16730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16731   *) ac_try_echo=$ac_try;;
16732 esac
16733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16734   (eval "$ac_link") 2>conftest.er1
16735   ac_status=$?
16736   grep -v '^ *+' conftest.er1 >conftest.err
16737   rm -f conftest.er1
16738   cat conftest.err >&5
16739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740   (exit $ac_status); } && {
16741          test -z "$ac_c_werror_flag" ||
16742          test ! -s conftest.err
16743        } && test -s conftest$ac_exeext &&
16744        $as_test_x conftest$ac_exeext; then
16745   ac_cv_lib_termcap_initscr=yes
16746 else
16747   echo "$as_me: failed program was:" >&5
16748 sed 's/^/| /' conftest.$ac_ext >&5
16749
16750         ac_cv_lib_termcap_initscr=no
16751 fi
16752
16753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16754       conftest$ac_exeext conftest.$ac_ext
16755 LIBS=$ac_check_lib_save_LIBS
16756 fi
16757 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
16758 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6; }
16759 if test $ac_cv_lib_termcap_initscr = yes; then
16760    LIBS="$LIBS -lslang -ltermcap"
16761                        INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
16762
16763                       { echo "$as_me:$LINENO: WARNING: slang interface is not enabled" >&5
16764 echo "$as_me: WARNING: slang interface is not enabled" >&2;}
16765                        enable_slang=no
16766
16767 fi
16768
16769         ;;
16770        *)
16771         LIBS="$LIBS -lslang"
16772         INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
16773        ;;
16774     esac
16775
16776   ;;
16777 xdynamic)
16778   dynamic_targets="$dynamic_targets if_slang.\$(so)"
16779    s_so_libs="-lslang"
16780     { echo "$as_me:$LINENO: checking for initscr in -ltermcap" >&5
16781 echo $ECHO_N "checking for initscr in -ltermcap... $ECHO_C" >&6; }
16782 if test "${ac_cv_lib_termcap_initscr+set}" = set; then
16783   echo $ECHO_N "(cached) $ECHO_C" >&6
16784 else
16785   ac_check_lib_save_LIBS=$LIBS
16786 LIBS="-ltermcap  $LIBS"
16787 cat >conftest.$ac_ext <<_ACEOF
16788 /* confdefs.h.  */
16789 _ACEOF
16790 cat confdefs.h >>conftest.$ac_ext
16791 cat >>conftest.$ac_ext <<_ACEOF
16792 /* end confdefs.h.  */
16793
16794 /* Override any GCC internal prototype to avoid an error.
16795    Use char because int might match the return type of a GCC
16796    builtin and then its argument prototype would still apply.  */
16797 #ifdef __cplusplus
16798 extern "C"
16799 #endif
16800 char initscr ();
16801 int
16802 main ()
16803 {
16804 return initscr ();
16805   ;
16806   return 0;
16807 }
16808 _ACEOF
16809 rm -f conftest.$ac_objext conftest$ac_exeext
16810 if { (ac_try="$ac_link"
16811 case "(($ac_try" in
16812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16813   *) ac_try_echo=$ac_try;;
16814 esac
16815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16816   (eval "$ac_link") 2>conftest.er1
16817   ac_status=$?
16818   grep -v '^ *+' conftest.er1 >conftest.err
16819   rm -f conftest.er1
16820   cat conftest.err >&5
16821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822   (exit $ac_status); } && {
16823          test -z "$ac_c_werror_flag" ||
16824          test ! -s conftest.err
16825        } && test -s conftest$ac_exeext &&
16826        $as_test_x conftest$ac_exeext; then
16827   ac_cv_lib_termcap_initscr=yes
16828 else
16829   echo "$as_me: failed program was:" >&5
16830 sed 's/^/| /' conftest.$ac_ext >&5
16831
16832         ac_cv_lib_termcap_initscr=no
16833 fi
16834
16835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16836       conftest$ac_exeext conftest.$ac_ext
16837 LIBS=$ac_check_lib_save_LIBS
16838 fi
16839 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_initscr" >&5
16840 echo "${ECHO_T}$ac_cv_lib_termcap_initscr" >&6; }
16841 if test $ac_cv_lib_termcap_initscr = yes; then
16842   s_so_libs="$s_so_libs -ltermcap"
16843 fi
16844
16845
16846   ;;
16847 *)
16848
16849   ;;
16850 esac
16851
16852
16853
16854
16855
16856 if false; then
16857   ENABLE_MOTIF_TRUE=
16858   ENABLE_MOTIF_FALSE='#'
16859 else
16860   ENABLE_MOTIF_TRUE='#'
16861   ENABLE_MOTIF_FALSE=
16862 fi
16863
16864 # Check whether --enable-motif was given.
16865 if test "${enable_motif+set}" = set; then
16866   enableval=$enable_motif; case "x$enable_motif" in xyes|xdynamic)  if test "x$with_x" != xyes; then
16867         { { echo "$as_me:$LINENO: error: motif: --with-x option must be specified" >&5
16868 echo "$as_me: error: motif: --with-x option must be specified" >&2;}
16869    { (exit 1); exit 1; }; }
16870     fi
16871     if test "x$have_xm" != xyes; then
16872       { echo "$as_me:$LINENO: WARNING: Motif library is not found." >&5
16873 echo "$as_me: WARNING: Motif library is not found." >&2;}
16874       enable_motif=no
16875     fi
16876    ;; esac
16877 fi
16878
16879 case "x$enable_motif" in
16880 xyes)
16881   cat >> confdefs.h <<EOF
16882 #define IA_MOTIF 1
16883 EOF
16884
16885
16886
16887 if true; then
16888   ENABLE_MOTIF_TRUE=
16889   ENABLE_MOTIF_FALSE='#'
16890 else
16891   ENABLE_MOTIF_TRUE='#'
16892   ENABLE_MOTIF_FALSE=
16893 fi
16894
16895    lib_xm_opt=-lXm
16896     lib_xt_opt=-lXt
16897     lib_xext_opt=-lXext
16898     if test "x$have_xprelibs" = xyes; then
16899         lib_xprelibs_opt='-lSM -lICE'
16900     fi
16901     INTERFACE_SRCS="$INTERFACE_SRCS motif_c.c motif_i.c motif_p.c"
16902
16903   ;;
16904 xdynamic)
16905   dynamic_targets="$dynamic_targets if_motif.\$(so)"
16906    if test x$have_xprelibs = xyes; then
16907       m_so_libs="-lXext -lSM -lICE"
16908     fi
16909     m_so_libs="$ldflags_x_opt -lXm -lXt $m_so_libs -lX11"
16910
16911   ;;
16912 *)
16913
16914   ;;
16915 esac
16916
16917
16918
16919
16920
16921 if false; then
16922   ENABLE_TCLTK_TRUE=
16923   ENABLE_TCLTK_FALSE='#'
16924 else
16925   ENABLE_TCLTK_TRUE='#'
16926   ENABLE_TCLTK_FALSE=
16927 fi
16928
16929 # Check whether --enable-tcltk was given.
16930 if test "${enable_tcltk+set}" = set; then
16931   enableval=$enable_tcltk; case "x$enable_tcltk" in xyes|xdynamic)  if test "x$with_x" != xyes; then
16932         { { echo "$as_me:$LINENO: error: tcltk: --with-x option must be specified" >&5
16933 echo "$as_me: error: tcltk: --with-x option must be specified" >&2;}
16934    { (exit 1); exit 1; }; }
16935     fi
16936
16937         KEEPCPPFLAGS=$CPPFLAGS
16938     KEEPLDFLAGS=$LDFLAGS
16939     KEEPLIBS=$LIBS
16940
16941     CPPFLAGS="$tcl_include_dir $tk_includes $CPPFLAGS"
16942     LDFLAGS="$tcl_libdir $tk_libdir $LDFLAGS"
16943     LIBS="$LIBS $lib_dl_opt"
16944
16945     tcl_lib=
16946     tk_lib=
16947     for l in tcl tcl8.4 tcl84 tcl8.3 tcl8.0jp tcl7.6jp tcl80jp tcl76jp tcl8.0 tcl7.6 tcl80 tcl76; do
16948       case "x$tcl_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tcl_Init" | $as_tr_sh`
16949 { echo "$as_me:$LINENO: checking for Tcl_Init in -l$l" >&5
16950 echo $ECHO_N "checking for Tcl_Init in -l$l... $ECHO_C" >&6; }
16951 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
16952   echo $ECHO_N "(cached) $ECHO_C" >&6
16953 else
16954   ac_check_lib_save_LIBS=$LIBS
16955 LIBS="-l$l  $LIBS"
16956 cat >conftest.$ac_ext <<_ACEOF
16957 /* confdefs.h.  */
16958 _ACEOF
16959 cat confdefs.h >>conftest.$ac_ext
16960 cat >>conftest.$ac_ext <<_ACEOF
16961 /* end confdefs.h.  */
16962
16963 /* Override any GCC internal prototype to avoid an error.
16964    Use char because int might match the return type of a GCC
16965    builtin and then its argument prototype would still apply.  */
16966 #ifdef __cplusplus
16967 extern "C"
16968 #endif
16969 char Tcl_Init ();
16970 int
16971 main ()
16972 {
16973 return Tcl_Init ();
16974   ;
16975   return 0;
16976 }
16977 _ACEOF
16978 rm -f conftest.$ac_objext conftest$ac_exeext
16979 if { (ac_try="$ac_link"
16980 case "(($ac_try" in
16981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16982   *) ac_try_echo=$ac_try;;
16983 esac
16984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16985   (eval "$ac_link") 2>conftest.er1
16986   ac_status=$?
16987   grep -v '^ *+' conftest.er1 >conftest.err
16988   rm -f conftest.er1
16989   cat conftest.err >&5
16990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991   (exit $ac_status); } && {
16992          test -z "$ac_c_werror_flag" ||
16993          test ! -s conftest.err
16994        } && test -s conftest$ac_exeext &&
16995        $as_test_x conftest$ac_exeext; then
16996   eval "$as_ac_Lib=yes"
16997 else
16998   echo "$as_me: failed program was:" >&5
16999 sed 's/^/| /' conftest.$ac_ext >&5
17000
17001         eval "$as_ac_Lib=no"
17002 fi
17003
17004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17005       conftest$ac_exeext conftest.$ac_ext
17006 LIBS=$ac_check_lib_save_LIBS
17007 fi
17008 ac_res=`eval echo '${'$as_ac_Lib'}'`
17009                { echo "$as_me:$LINENO: result: $ac_res" >&5
17010 echo "${ECHO_T}$ac_res" >&6; }
17011 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
17012   tcl_lib=-l$l
17013 fi
17014 ;; esac
17015     done
17016     LIBS="$LIBS $tcl_lib"
17017     for l in tk tk8.4 tcl84 tk8.3 tk8.0jp tk4.2jp tk80jp tk42jp tk8.0 tk4.2 tk80 tk42; do
17018       case "x$tk_lib" in x) as_ac_Lib=`echo "ac_cv_lib_$l''_Tk_Init" | $as_tr_sh`
17019 { echo "$as_me:$LINENO: checking for Tk_Init in -l$l" >&5
17020 echo $ECHO_N "checking for Tk_Init in -l$l... $ECHO_C" >&6; }
17021 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
17022   echo $ECHO_N "(cached) $ECHO_C" >&6
17023 else
17024   ac_check_lib_save_LIBS=$LIBS
17025 LIBS="-l$l  $LIBS"
17026 cat >conftest.$ac_ext <<_ACEOF
17027 /* confdefs.h.  */
17028 _ACEOF
17029 cat confdefs.h >>conftest.$ac_ext
17030 cat >>conftest.$ac_ext <<_ACEOF
17031 /* end confdefs.h.  */
17032
17033 /* Override any GCC internal prototype to avoid an error.
17034    Use char because int might match the return type of a GCC
17035    builtin and then its argument prototype would still apply.  */
17036 #ifdef __cplusplus
17037 extern "C"
17038 #endif
17039 char Tk_Init ();
17040 int
17041 main ()
17042 {
17043 return Tk_Init ();
17044   ;
17045   return 0;
17046 }
17047 _ACEOF
17048 rm -f conftest.$ac_objext conftest$ac_exeext
17049 if { (ac_try="$ac_link"
17050 case "(($ac_try" in
17051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17052   *) ac_try_echo=$ac_try;;
17053 esac
17054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17055   (eval "$ac_link") 2>conftest.er1
17056   ac_status=$?
17057   grep -v '^ *+' conftest.er1 >conftest.err
17058   rm -f conftest.er1
17059   cat conftest.err >&5
17060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061   (exit $ac_status); } && {
17062          test -z "$ac_c_werror_flag" ||
17063          test ! -s conftest.err
17064        } && test -s conftest$ac_exeext &&
17065        $as_test_x conftest$ac_exeext; then
17066   eval "$as_ac_Lib=yes"
17067 else
17068   echo "$as_me: failed program was:" >&5
17069 sed 's/^/| /' conftest.$ac_ext >&5
17070
17071         eval "$as_ac_Lib=no"
17072 fi
17073
17074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17075       conftest$ac_exeext conftest.$ac_ext
17076 LIBS=$ac_check_lib_save_LIBS
17077 fi
17078 ac_res=`eval echo '${'$as_ac_Lib'}'`
17079                { echo "$as_me:$LINENO: result: $ac_res" >&5
17080 echo "${ECHO_T}$ac_res" >&6; }
17081 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
17082   tk_lib=-l$l
17083 fi
17084 ;; esac
17085     done
17086
17087     LIBS=$KEEPLIBS
17088     if test "x$tcl_lib" = x -o "x$tk_lib" = x; then
17089       CPPFLAGS=$KEEPCPPFLAGS
17090       LDFLAGS=$KEEPLDFLAGS
17091       enable_tcltk=no
17092       { echo "$as_me:$LINENO: WARNING: tcl/tk is not enable" >&5
17093 echo "$as_me: WARNING: tcl/tk is not enable" >&2;}
17094     else
17095       tcltk_dep='tclIndex'
17096     fi
17097    ;; esac
17098 fi
17099
17100 case "x$enable_tcltk" in
17101 xyes)
17102   cat >> confdefs.h <<EOF
17103 #define IA_TCLTK 1
17104 EOF
17105
17106
17107
17108 if true; then
17109   ENABLE_TCLTK_TRUE=
17110   ENABLE_TCLTK_FALSE='#'
17111 else
17112   ENABLE_TCLTK_TRUE='#'
17113   ENABLE_TCLTK_FALSE=
17114 fi
17115
17116    LIBS=`echo $LIBS | sed "s/-lX11/$tk_lib $tcl_lib -lX11/"`
17117     case "$target" in
17118       *-*-bsdi*)
17119         EXTRALIBS="$EXTRALIBS -lipc"
17120         ;;
17121     esac
17122     INTERFACE_SRCS="$INTERFACE_SRCS tk_c.c"
17123
17124   ;;
17125 xdynamic)
17126   dynamic_targets="$dynamic_targets if_tcltk.\$(so)"
17127    k_so_libs="$tcl_libdir $tk_libdir $tcl_lib $tk_lib $lib_dl_opt"
17128     case "$target" in
17129       *-*-bsdi*)
17130         k_so_libs="$k_so_libs -lipc"
17131         ;;
17132     esac
17133     k_so_libs="$k_so_libs -lX11 -lm"
17134
17135   ;;
17136 *)
17137
17138   ;;
17139 esac
17140
17141
17142
17143
17144 if test "x$enable_tcltk" = "xdynamic"; then
17145   ENABLE_DYNAMIC_TCLTK_TRUE=
17146   ENABLE_DYNAMIC_TCLTK_FALSE='#'
17147 else
17148   ENABLE_DYNAMIC_TCLTK_TRUE='#'
17149   ENABLE_DYNAMIC_TCLTK_FALSE=
17150 fi
17151
17152
17153
17154
17155 if false; then
17156   ENABLE_EMACS_TRUE=
17157   ENABLE_EMACS_FALSE='#'
17158 else
17159   ENABLE_EMACS_TRUE='#'
17160   ENABLE_EMACS_FALSE=
17161 fi
17162
17163 # Check whether --enable-emacs was given.
17164 if test "${enable_emacs+set}" = set; then
17165   enableval=$enable_emacs; case "x$enable_emacs" in xyes|xdynamic)  ;; esac
17166 fi
17167
17168 case "x$enable_emacs" in
17169 xyes)
17170   cat >> confdefs.h <<EOF
17171 #define IA_EMACS 1
17172 EOF
17173
17174
17175
17176 if true; then
17177   ENABLE_EMACS_TRUE=
17178   ENABLE_EMACS_FALSE='#'
17179 else
17180   ENABLE_EMACS_TRUE='#'
17181   ENABLE_EMACS_FALSE=
17182 fi
17183
17184    ELFILES="$ELFILES timidity.el"
17185     INTERFACE_SRCS="$INTERFACE_SRCS emacs_c.c"
17186
17187   ;;
17188 xdynamic)
17189   dynamic_targets="$dynamic_targets if_emacs.\$(so)"
17190    ELFILES="$ELFILES timidity.el"
17191   ;;
17192 *)
17193
17194   ;;
17195 esac
17196
17197
17198
17199
17200
17201 if false; then
17202   ENABLE_VT100_TRUE=
17203   ENABLE_VT100_FALSE='#'
17204 else
17205   ENABLE_VT100_TRUE='#'
17206   ENABLE_VT100_FALSE=
17207 fi
17208
17209 # Check whether --enable-vt100 was given.
17210 if test "${enable_vt100+set}" = set; then
17211   enableval=$enable_vt100; case "x$enable_vt100" in xyes|xdynamic)  ;; esac
17212 fi
17213
17214 case "x$enable_vt100" in
17215 xyes)
17216   cat >> confdefs.h <<EOF
17217 #define IA_VT100 1
17218 EOF
17219
17220
17221
17222 if true; then
17223   ENABLE_VT100_TRUE=
17224   ENABLE_VT100_FALSE='#'
17225 else
17226   ENABLE_VT100_TRUE='#'
17227   ENABLE_VT100_FALSE=
17228 fi
17229
17230    INTERFACE_SRCS="$INTERFACE_SRCS vt100_c.c vt100.c"
17231   ;;
17232 xdynamic)
17233   dynamic_targets="$dynamic_targets if_vt100.\$(so)"
17234
17235   ;;
17236 *)
17237
17238   ;;
17239 esac
17240
17241
17242
17243
17244
17245 if false; then
17246   ENABLE_XAW_TRUE=
17247   ENABLE_XAW_FALSE='#'
17248 else
17249   ENABLE_XAW_TRUE='#'
17250   ENABLE_XAW_FALSE=
17251 fi
17252
17253 # Check whether --enable-xaw was given.
17254 if test "${enable_xaw+set}" = set; then
17255   enableval=$enable_xaw; case "x$enable_xaw" in xyes|xdynamic)  if test "x$with_x" != xyes; then
17256         { { echo "$as_me:$LINENO: error: xaw: --with-x option must be specified" >&5
17257 echo "$as_me: error: xaw: --with-x option must be specified" >&2;}
17258    { (exit 1); exit 1; }; }
17259     fi
17260     if test "x$have_xaw" != "xyes" -a "x$have_xaw" != "x3d"; then
17261       { echo "$as_me:$LINENO: WARNING: X Athena Widget library is not found." >&5
17262 echo "$as_me: WARNING: X Athena Widget library is not found." >&2;}
17263       enable_xaw=no
17264     fi  ;; esac
17265 fi
17266
17267 case "x$enable_xaw" in
17268 xyes)
17269   cat >> confdefs.h <<EOF
17270 #define IA_XAW 1
17271 EOF
17272
17273
17274
17275 if true; then
17276   ENABLE_XAW_TRUE=
17277   ENABLE_XAW_FALSE='#'
17278 else
17279   ENABLE_XAW_TRUE='#'
17280   ENABLE_XAW_FALSE=
17281 fi
17282
17283        if test "x$have_xext" = xyes; then
17284       lib_xext_opt=-lXext
17285     fi
17286     if test "x$have_xprelibs" = xyes; then
17287       lib_xprelibs_opt='-lSM -lICE'
17288     fi
17289     lib_xmu_opt=-lXmu
17290     lib_xt_opt=-lXt
17291     if test "x$have_xaw" = x3d; then
17292
17293 cat >>confdefs.h <<\_ACEOF
17294 #define XAW3D 1
17295 _ACEOF
17296
17297       lib_xaw_opt=-lXaw3d
17298     else
17299       lib_xaw_opt=-lXaw
17300     fi
17301     INTERFACE_SRCS="$INTERFACE_SRCS xaw_c.c xaw_i.c"
17302
17303   ;;
17304 xdynamic)
17305   dynamic_targets="$dynamic_targets if_xaw.\$(so)"
17306    if test "x$have_xext" = xyes; then
17307       a_so_libs="-lXext -lX11"
17308     else
17309       a_so_libs="-lX11"
17310     fi
17311     case "$target" in
17312       *darwin*)
17313         a_so_libs="$a_so_libs -lcc_dynamic"
17314         ;;
17315     esac
17316     if test "x$have_xprelibs" = xyes; then
17317       a_so_libs="-lSM -lICE $a_so_libs"
17318     fi
17319     if test "x$have_xaw" = xyes; then
17320       a_so_libs="-lXaw -lXmu -lXt $a_so_libs"
17321     elif test "x$have_xaw" = x3d; then
17322
17323 cat >>confdefs.h <<\_ACEOF
17324 #define XAW3D 1
17325 _ACEOF
17326
17327       a_so_libs="-lXaw3d -lXmu -lXt $a_so_libs"
17328     fi
17329     a_so_libs="$ldflags_x_opt $a_so_libs"
17330
17331   ;;
17332 *)
17333
17334   ;;
17335 esac
17336
17337
17338
17339
17340 if test "x$enable_xaw" = "xdynamic"; then
17341   ENABLE_DYNAMIC_XAW_TRUE=
17342   ENABLE_DYNAMIC_XAW_FALSE='#'
17343 else
17344   ENABLE_DYNAMIC_XAW_TRUE='#'
17345   ENABLE_DYNAMIC_XAW_FALSE=
17346 fi
17347
17348
17349
17350
17351 if false; then
17352   ENABLE_XSKIN_TRUE=
17353   ENABLE_XSKIN_FALSE='#'
17354 else
17355   ENABLE_XSKIN_TRUE='#'
17356   ENABLE_XSKIN_FALSE=
17357 fi
17358
17359 # Check whether --enable-xskin was given.
17360 if test "${enable_xskin+set}" = set; then
17361   enableval=$enable_xskin; case "x$enable_xskin" in xyes|xdynamic)  if test "x$with_x" != xyes; then
17362         { { echo "$as_me:$LINENO: error: xskin: --with-x option must be specified" >&5
17363 echo "$as_me: error: xskin: --with-x option must be specified" >&2;}
17364    { (exit 1); exit 1; }; }
17365     fi
17366    ;; esac
17367 fi
17368
17369 case "x$enable_xskin" in
17370 xyes)
17371   cat >> confdefs.h <<EOF
17372 #define IA_XSKIN 1
17373 EOF
17374
17375
17376
17377 if true; then
17378   ENABLE_XSKIN_TRUE=
17379   ENABLE_XSKIN_FALSE='#'
17380 else
17381   ENABLE_XSKIN_TRUE='#'
17382   ENABLE_XSKIN_FALSE=
17383 fi
17384
17385    INTERFACE_SRCS="$INTERFACE_SRCS xskin_c.c xskin_i.c xskin_loadBMP.c xskin_spectrum.c"
17386   ;;
17387 xdynamic)
17388   dynamic_targets="$dynamic_targets if_xskin.\$(so)"
17389    i_so_libs="$ldflags_x_opt -lX11"
17390   ;;
17391 *)
17392
17393   ;;
17394 esac
17395
17396
17397
17398
17399
17400 if false; then
17401   ENABLE_GTK_TRUE=
17402   ENABLE_GTK_FALSE='#'
17403 else
17404   ENABLE_GTK_TRUE='#'
17405   ENABLE_GTK_FALSE=
17406 fi
17407
17408 # Check whether --enable-gtk was given.
17409 if test "${enable_gtk+set}" = set; then
17410   enableval=$enable_gtk; case "x$enable_gtk" in xyes|xdynamic)  # Check whether --enable-gtktest was given.
17411 if test "${enable_gtktest+set}" = set; then
17412   enableval=$enable_gtktest;
17413 else
17414   enable_gtktest=yes
17415 fi
17416
17417
17418   pkg_config_args=gtk+-2.0
17419   for module in .
17420   do
17421       case "$module" in
17422          gthread)
17423              pkg_config_args="$pkg_config_args gthread-2.0"
17424          ;;
17425       esac
17426   done
17427
17428   no_gtk=""
17429
17430   # Extract the first word of "pkg-config", so it can be a program name with args.
17431 set dummy pkg-config; ac_word=$2
17432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17434 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
17435   echo $ECHO_N "(cached) $ECHO_C" >&6
17436 else
17437   case $PKG_CONFIG in
17438   [\\/]* | ?:[\\/]*)
17439   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17440   ;;
17441   *)
17442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17443 for as_dir in $PATH
17444 do
17445   IFS=$as_save_IFS
17446   test -z "$as_dir" && as_dir=.
17447   for ac_exec_ext in '' $ac_executable_extensions; do
17448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17449     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17451     break 2
17452   fi
17453 done
17454 done
17455 IFS=$as_save_IFS
17456
17457   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17458   ;;
17459 esac
17460 fi
17461 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17462 if test -n "$PKG_CONFIG"; then
17463   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
17464 echo "${ECHO_T}$PKG_CONFIG" >&6; }
17465 else
17466   { echo "$as_me:$LINENO: result: no" >&5
17467 echo "${ECHO_T}no" >&6; }
17468 fi
17469
17470
17471
17472   if test x$PKG_CONFIG != xno ; then
17473     if pkg-config --atleast-pkgconfig-version 0.7 ; then
17474       :
17475     else
17476       echo *** pkg-config too old; version 0.7 or better required.
17477       no_gtk=yes
17478       PKG_CONFIG=no
17479     fi
17480   else
17481     no_gtk=yes
17482   fi
17483
17484   min_gtk_version=2.0.0
17485   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
17486 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
17487
17488   if test x$PKG_CONFIG != xno ; then
17489     ## don't try to run the test against uninstalled libtool libs
17490     if $PKG_CONFIG --uninstalled $pkg_config_args; then
17491           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
17492           enable_gtktest=no
17493     fi
17494
17495     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
17496           :
17497     else
17498           no_gtk=yes
17499     fi
17500   fi
17501
17502   if test x"$no_gtk" = x ; then
17503     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
17504     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
17505     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
17506            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17507     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
17508            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17509     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
17510            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17511     if test "x$enable_gtktest" = "xyes" ; then
17512       ac_save_CFLAGS="$CFLAGS"
17513       ac_save_LIBS="$LIBS"
17514       CFLAGS="$CFLAGS $GTK_CFLAGS"
17515       LIBS="$GTK_LIBS $LIBS"
17516       rm -f conf.gtktest
17517       if test "$cross_compiling" = yes; then
17518   echo $ac_n "cross compiling; assumed OK... $ac_c"
17519 else
17520   cat >conftest.$ac_ext <<_ACEOF
17521 /* confdefs.h.  */
17522 _ACEOF
17523 cat confdefs.h >>conftest.$ac_ext
17524 cat >>conftest.$ac_ext <<_ACEOF
17525 /* end confdefs.h.  */
17526
17527 #include <gtk/gtk.h>
17528 #include <stdio.h>
17529 #include <stdlib.h>
17530
17531 int
17532 main ()
17533 {
17534   int major, minor, micro;
17535   char *tmp_version;
17536
17537   system ("touch conf.gtktest");
17538
17539   /* HP/UX 9 (%@#!) writes to sscanf strings */
17540   tmp_version = g_strdup("$min_gtk_version");
17541   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
17542      printf("%s, bad version string\n", "$min_gtk_version");
17543      exit(1);
17544    }
17545
17546   if ((gtk_major_version != $gtk_config_major_version) ||
17547       (gtk_minor_version != $gtk_config_minor_version) ||
17548       (gtk_micro_version != $gtk_config_micro_version))
17549     {
17550       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
17551              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
17552              gtk_major_version, gtk_minor_version, gtk_micro_version);
17553       printf ("*** was found! If pkg-config was correct, then it is best\n");
17554       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
17555       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17556       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17557       printf("*** required on your system.\n");
17558       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
17559       printf("*** to point to the correct configuration files\n");
17560     }
17561   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
17562            (gtk_minor_version != GTK_MINOR_VERSION) ||
17563            (gtk_micro_version != GTK_MICRO_VERSION))
17564     {
17565       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
17566              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
17567       printf("*** library (version %d.%d.%d)\n",
17568              gtk_major_version, gtk_minor_version, gtk_micro_version);
17569     }
17570   else
17571     {
17572       if ((gtk_major_version > major) ||
17573         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
17574         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
17575       {
17576         return 0;
17577        }
17578      else
17579       {
17580         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
17581                gtk_major_version, gtk_minor_version, gtk_micro_version);
17582         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
17583                major, minor, micro);
17584         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
17585         printf("***\n");
17586         printf("*** If you have already installed a sufficiently new version, this error\n");
17587         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
17588         printf("*** being found. The easiest way to fix this is to remove the old version\n");
17589         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
17590         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
17591         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17592         printf("*** so that the correct libraries are found at run-time))\n");
17593       }
17594     }
17595   return 1;
17596 }
17597
17598 _ACEOF
17599 rm -f conftest$ac_exeext
17600 if { (ac_try="$ac_link"
17601 case "(($ac_try" in
17602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17603   *) ac_try_echo=$ac_try;;
17604 esac
17605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17606   (eval "$ac_link") 2>&5
17607   ac_status=$?
17608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17610   { (case "(($ac_try" in
17611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17612   *) ac_try_echo=$ac_try;;
17613 esac
17614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17615   (eval "$ac_try") 2>&5
17616   ac_status=$?
17617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618   (exit $ac_status); }; }; then
17619   :
17620 else
17621   echo "$as_me: program exited with status $ac_status" >&5
17622 echo "$as_me: failed program was:" >&5
17623 sed 's/^/| /' conftest.$ac_ext >&5
17624
17625 ( exit $ac_status )
17626 no_gtk=yes
17627 fi
17628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17629 fi
17630
17631
17632        CFLAGS="$ac_save_CFLAGS"
17633        LIBS="$ac_save_LIBS"
17634      fi
17635   fi
17636   if test "x$no_gtk" = x ; then
17637      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
17638 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
17639
17640 cat >>confdefs.h <<\_ACEOF
17641 #define HAVE_GTK_2 1
17642 _ACEOF
17643
17644   else
17645      { echo "$as_me:$LINENO: result: no" >&5
17646 echo "${ECHO_T}no" >&6; }
17647      if test "$PKG_CONFIG" = "no" ; then
17648        echo "*** A new enough version of pkg-config was not found."
17649        echo "*** See http://pkgconfig.sourceforge.net"
17650      else
17651        if test -f conf.gtktest ; then
17652         :
17653        else
17654           echo "*** Could not run GTK+ test program, checking why..."
17655           ac_save_CFLAGS="$CFLAGS"
17656           ac_save_LIBS="$LIBS"
17657           CFLAGS="$CFLAGS $GTK_CFLAGS"
17658           LIBS="$LIBS $GTK_LIBS"
17659           cat >conftest.$ac_ext <<_ACEOF
17660 /* confdefs.h.  */
17661 _ACEOF
17662 cat confdefs.h >>conftest.$ac_ext
17663 cat >>conftest.$ac_ext <<_ACEOF
17664 /* end confdefs.h.  */
17665
17666 #include <gtk/gtk.h>
17667 #include <stdio.h>
17668
17669 int
17670 main ()
17671 {
17672  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
17673   ;
17674   return 0;
17675 }
17676 _ACEOF
17677 rm -f conftest.$ac_objext conftest$ac_exeext
17678 if { (ac_try="$ac_link"
17679 case "(($ac_try" in
17680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17681   *) ac_try_echo=$ac_try;;
17682 esac
17683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17684   (eval "$ac_link") 2>conftest.er1
17685   ac_status=$?
17686   grep -v '^ *+' conftest.er1 >conftest.err
17687   rm -f conftest.er1
17688   cat conftest.err >&5
17689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690   (exit $ac_status); } && {
17691          test -z "$ac_c_werror_flag" ||
17692          test ! -s conftest.err
17693        } && test -s conftest$ac_exeext &&
17694        $as_test_x conftest$ac_exeext; then
17695    echo "*** The test program compiled, but did not run. This usually means"
17696           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
17697           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
17698           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17699           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
17700           echo "*** is required on your system"
17701           echo "***"
17702           echo "*** If you have an old version installed, it is best to remove it, although"
17703           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17704 else
17705   echo "$as_me: failed program was:" >&5
17706 sed 's/^/| /' conftest.$ac_ext >&5
17707
17708          echo "*** The test program failed to compile or link. See the file config.log for the"
17709           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
17710 fi
17711
17712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17713       conftest$ac_exeext conftest.$ac_ext
17714           CFLAGS="$ac_save_CFLAGS"
17715           LIBS="$ac_save_LIBS"
17716        fi
17717      fi
17718      GTK_CFLAGS=""
17719      GTK_LIBS=""
17720
17721 # Check whether --with-gtk-prefix was given.
17722 if test "${with_gtk_prefix+set}" = set; then
17723   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
17724 else
17725   gtk_config_prefix=""
17726 fi
17727
17728
17729 # Check whether --with-gtk-exec-prefix was given.
17730 if test "${with_gtk_exec_prefix+set}" = set; then
17731   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
17732 else
17733   gtk_config_exec_prefix=""
17734 fi
17735
17736 # Check whether --enable-gtktest was given.
17737 if test "${enable_gtktest+set}" = set; then
17738   enableval=$enable_gtktest;
17739 else
17740   enable_gtktest=yes
17741 fi
17742
17743
17744   for module in .
17745   do
17746       case "$module" in
17747          gthread)
17748              gtk_config_args="$gtk_config_args gthread"
17749          ;;
17750       esac
17751   done
17752
17753   if test x$gtk_config_exec_prefix != x ; then
17754      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
17755      if test x${GTK_CONFIG+set} != xset ; then
17756         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
17757      fi
17758   fi
17759   if test x$gtk_config_prefix != x ; then
17760      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
17761      if test x${GTK_CONFIG+set} != xset ; then
17762         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
17763      fi
17764   fi
17765
17766   # Extract the first word of "gtk-config", so it can be a program name with args.
17767 set dummy gtk-config; ac_word=$2
17768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17770 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
17771   echo $ECHO_N "(cached) $ECHO_C" >&6
17772 else
17773   case $GTK_CONFIG in
17774   [\\/]* | ?:[\\/]*)
17775   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
17776   ;;
17777   *)
17778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17779 for as_dir in $PATH
17780 do
17781   IFS=$as_save_IFS
17782   test -z "$as_dir" && as_dir=.
17783   for ac_exec_ext in '' $ac_executable_extensions; do
17784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17785     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17787     break 2
17788   fi
17789 done
17790 done
17791 IFS=$as_save_IFS
17792
17793   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
17794   ;;
17795 esac
17796 fi
17797 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
17798 if test -n "$GTK_CONFIG"; then
17799   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
17800 echo "${ECHO_T}$GTK_CONFIG" >&6; }
17801 else
17802   { echo "$as_me:$LINENO: result: no" >&5
17803 echo "${ECHO_T}no" >&6; }
17804 fi
17805
17806
17807   min_gtk_version=1.1.3
17808   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
17809 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
17810   no_gtk=""
17811   if test "$GTK_CONFIG" = "no" ; then
17812     no_gtk=yes
17813   else
17814     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
17815     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
17816     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
17817            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17818     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
17819            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17820     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
17821            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17822     if test "x$enable_gtktest" = "xyes" ; then
17823       ac_save_CFLAGS="$CFLAGS"
17824       ac_save_LIBS="$LIBS"
17825       CFLAGS="$CFLAGS $GTK_CFLAGS"
17826       LIBS="$GTK_LIBS $LIBS"
17827       rm -f conf.gtktest
17828       if test "$cross_compiling" = yes; then
17829   echo $ac_n "cross compiling; assumed OK... $ac_c"
17830 else
17831   cat >conftest.$ac_ext <<_ACEOF
17832 /* confdefs.h.  */
17833 _ACEOF
17834 cat confdefs.h >>conftest.$ac_ext
17835 cat >>conftest.$ac_ext <<_ACEOF
17836 /* end confdefs.h.  */
17837
17838 #include <gtk/gtk.h>
17839 #include <stdio.h>
17840 #include <stdlib.h>
17841
17842 int
17843 main ()
17844 {
17845   int major, minor, micro;
17846   char *tmp_version;
17847
17848   system ("touch conf.gtktest");
17849
17850   /* HP/UX 9 (%@#!) writes to sscanf strings */
17851   tmp_version = g_strdup("$min_gtk_version");
17852   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
17853      printf("%s, bad version string\n", "$min_gtk_version");
17854      exit(1);
17855    }
17856
17857   if ((gtk_major_version != $gtk_config_major_version) ||
17858       (gtk_minor_version != $gtk_config_minor_version) ||
17859       (gtk_micro_version != $gtk_config_micro_version))
17860     {
17861       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
17862              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
17863              gtk_major_version, gtk_minor_version, gtk_micro_version);
17864       printf ("*** was found! If gtk-config was correct, then it is best\n");
17865       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
17866       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17867       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17868       printf("*** required on your system.\n");
17869       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
17870       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
17871       printf("*** before re-running configure\n");
17872     }
17873 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
17874   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
17875            (gtk_minor_version != GTK_MINOR_VERSION) ||
17876            (gtk_micro_version != GTK_MICRO_VERSION))
17877     {
17878       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
17879              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
17880       printf("*** library (version %d.%d.%d)\n",
17881              gtk_major_version, gtk_minor_version, gtk_micro_version);
17882     }
17883 #endif /* defined (GTK_MAJOR_VERSION) ... */
17884   else
17885     {
17886       if ((gtk_major_version > major) ||
17887         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
17888         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
17889       {
17890         return 0;
17891        }
17892      else
17893       {
17894         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
17895                gtk_major_version, gtk_minor_version, gtk_micro_version);
17896         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
17897                major, minor, micro);
17898         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
17899         printf("***\n");
17900         printf("*** If you have already installed a sufficiently new version, this error\n");
17901         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
17902         printf("*** being found. The easiest way to fix this is to remove the old version\n");
17903         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
17904         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
17905         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17906         printf("*** so that the correct libraries are found at run-time))\n");
17907       }
17908     }
17909   return 1;
17910 }
17911
17912 _ACEOF
17913 rm -f conftest$ac_exeext
17914 if { (ac_try="$ac_link"
17915 case "(($ac_try" in
17916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17917   *) ac_try_echo=$ac_try;;
17918 esac
17919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17920   (eval "$ac_link") 2>&5
17921   ac_status=$?
17922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17924   { (case "(($ac_try" in
17925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17926   *) ac_try_echo=$ac_try;;
17927 esac
17928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17929   (eval "$ac_try") 2>&5
17930   ac_status=$?
17931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932   (exit $ac_status); }; }; then
17933   :
17934 else
17935   echo "$as_me: program exited with status $ac_status" >&5
17936 echo "$as_me: failed program was:" >&5
17937 sed 's/^/| /' conftest.$ac_ext >&5
17938
17939 ( exit $ac_status )
17940 no_gtk=yes
17941 fi
17942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17943 fi
17944
17945
17946        CFLAGS="$ac_save_CFLAGS"
17947        LIBS="$ac_save_LIBS"
17948      fi
17949   fi
17950   if test "x$no_gtk" = x ; then
17951      { echo "$as_me:$LINENO: result: yes" >&5
17952 echo "${ECHO_T}yes" >&6; }
17953      :
17954   else
17955      { echo "$as_me:$LINENO: result: no" >&5
17956 echo "${ECHO_T}no" >&6; }
17957      if test "$GTK_CONFIG" = "no" ; then
17958        echo "*** The gtk-config script installed by GTK could not be found"
17959        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
17960        echo "*** your path, or set the GTK_CONFIG environment variable to the"
17961        echo "*** full path to gtk-config."
17962      else
17963        if test -f conf.gtktest ; then
17964         :
17965        else
17966           echo "*** Could not run GTK test program, checking why..."
17967           CFLAGS="$CFLAGS $GTK_CFLAGS"
17968           LIBS="$LIBS $GTK_LIBS"
17969           cat >conftest.$ac_ext <<_ACEOF
17970 /* confdefs.h.  */
17971 _ACEOF
17972 cat confdefs.h >>conftest.$ac_ext
17973 cat >>conftest.$ac_ext <<_ACEOF
17974 /* end confdefs.h.  */
17975
17976 #include <gtk/gtk.h>
17977 #include <stdio.h>
17978
17979 int
17980 main ()
17981 {
17982  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
17983   ;
17984   return 0;
17985 }
17986 _ACEOF
17987 rm -f conftest.$ac_objext conftest$ac_exeext
17988 if { (ac_try="$ac_link"
17989 case "(($ac_try" in
17990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991   *) ac_try_echo=$ac_try;;
17992 esac
17993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994   (eval "$ac_link") 2>conftest.er1
17995   ac_status=$?
17996   grep -v '^ *+' conftest.er1 >conftest.err
17997   rm -f conftest.er1
17998   cat conftest.err >&5
17999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000   (exit $ac_status); } && {
18001          test -z "$ac_c_werror_flag" ||
18002          test ! -s conftest.err
18003        } && test -s conftest$ac_exeext &&
18004        $as_test_x conftest$ac_exeext; then
18005    echo "*** The test program compiled, but did not run. This usually means"
18006           echo "*** that the run-time linker is not finding GTK or finding the wrong"
18007           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
18008           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
18009           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
18010           echo "*** is required on your system"
18011           echo "***"
18012           echo "*** If you have an old version installed, it is best to remove it, although"
18013           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
18014           echo "***"
18015           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
18016           echo "*** came with the system with the command"
18017           echo "***"
18018           echo "***    rpm --erase --nodeps gtk gtk-devel"
18019 else
18020   echo "$as_me: failed program was:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18022
18023          echo "*** The test program failed to compile or link. See the file config.log for the"
18024           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
18025           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
18026           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
18027 fi
18028
18029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18030       conftest$ac_exeext conftest.$ac_ext
18031           CFLAGS="$ac_save_CFLAGS"
18032           LIBS="$ac_save_LIBS"
18033        fi
18034      fi
18035      GTK_CFLAGS=""
18036      GTK_LIBS=""
18037      enable_gtk=no
18038   fi
18039
18040
18041   rm -f conf.gtktest
18042
18043   fi
18044
18045
18046   rm -f conf.gtktest
18047   ;; esac
18048 fi
18049
18050 case "x$enable_gtk" in
18051 xyes)
18052   cat >> confdefs.h <<EOF
18053 #define IA_GTK 1
18054 EOF
18055
18056
18057
18058 if true; then
18059   ENABLE_GTK_TRUE=
18060   ENABLE_GTK_FALSE='#'
18061 else
18062   ENABLE_GTK_TRUE='#'
18063   ENABLE_GTK_FALSE=
18064 fi
18065
18066    LIBS="$LIBS $GTK_LIBS"
18067     for f in $GTK_CFLAGS; do
18068     case ".$f" in
18069         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
18070         *)              CFLAGS="$CFLAGS $f" ;;
18071     esac
18072 done
18073
18074     INTERFACE_SRCS="$INTERFACE_SRCS gtk_c.c gtk_i.c gtk_p.c"
18075
18076   ;;
18077 xdynamic)
18078   dynamic_targets="$dynamic_targets if_gtk.\$(so)"
18079    if test "x$GCC" = xyes; then
18080                 for i in $GTK_LIBS; do
18081             case "x$i" in
18082                 x-rdynamic) ;;
18083                 *) g_so_libs="$g_so_libs $i" ;;
18084             esac
18085         done
18086     else
18087         g_so_libs="$GTK_LIBS"
18088     fi
18089     for f in $GTK_CFLAGS; do
18090     case ".$f" in
18091         .-I?*|.-D?*)    CPPFLAGS="$CPPFLAGS $f" ;;
18092         *)              CFLAGS="$CFLAGS $f" ;;
18093     esac
18094 done
18095
18096   ;;
18097 *)
18098
18099   ;;
18100 esac
18101
18102
18103
18104
18105
18106 if false; then
18107   ENABLE_SERVER_TRUE=
18108   ENABLE_SERVER_FALSE='#'
18109 else
18110   ENABLE_SERVER_TRUE='#'
18111   ENABLE_SERVER_FALSE=
18112 fi
18113
18114 # Check whether --enable-server was given.
18115 if test "${enable_server+set}" = set; then
18116   enableval=$enable_server; case "x$enable_server" in xyes|xdynamic)  ;; esac
18117 fi
18118
18119 case "x$enable_server" in
18120 xyes)
18121   cat >> confdefs.h <<EOF
18122 #define IA_SERVER 1
18123 EOF
18124
18125
18126
18127 if true; then
18128   ENABLE_SERVER_TRUE=
18129   ENABLE_SERVER_FALSE='#'
18130 else
18131   ENABLE_SERVER_TRUE='#'
18132   ENABLE_SERVER_FALSE=
18133 fi
18134
18135    INTERFACE_SRCS="$INTERFACE_SRCS server_c.c"
18136
18137 for ac_header in sys/soundcard.h
18138 do
18139 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18141   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18144   echo $ECHO_N "(cached) $ECHO_C" >&6
18145 fi
18146 ac_res=`eval echo '${'$as_ac_Header'}'`
18147                { echo "$as_me:$LINENO: result: $ac_res" >&5
18148 echo "${ECHO_T}$ac_res" >&6; }
18149 else
18150   # Is the header compilable?
18151 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18152 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18153 cat >conftest.$ac_ext <<_ACEOF
18154 /* confdefs.h.  */
18155 _ACEOF
18156 cat confdefs.h >>conftest.$ac_ext
18157 cat >>conftest.$ac_ext <<_ACEOF
18158 /* end confdefs.h.  */
18159 $ac_includes_default
18160 #include <$ac_header>
18161 _ACEOF
18162 rm -f conftest.$ac_objext
18163 if { (ac_try="$ac_compile"
18164 case "(($ac_try" in
18165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166   *) ac_try_echo=$ac_try;;
18167 esac
18168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18169   (eval "$ac_compile") 2>conftest.er1
18170   ac_status=$?
18171   grep -v '^ *+' conftest.er1 >conftest.err
18172   rm -f conftest.er1
18173   cat conftest.err >&5
18174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175   (exit $ac_status); } && {
18176          test -z "$ac_c_werror_flag" ||
18177          test ! -s conftest.err
18178        } && test -s conftest.$ac_objext; then
18179   ac_header_compiler=yes
18180 else
18181   echo "$as_me: failed program was:" >&5
18182 sed 's/^/| /' conftest.$ac_ext >&5
18183
18184         ac_header_compiler=no
18185 fi
18186
18187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18189 echo "${ECHO_T}$ac_header_compiler" >&6; }
18190
18191 # Is the header present?
18192 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18194 cat >conftest.$ac_ext <<_ACEOF
18195 /* confdefs.h.  */
18196 _ACEOF
18197 cat confdefs.h >>conftest.$ac_ext
18198 cat >>conftest.$ac_ext <<_ACEOF
18199 /* end confdefs.h.  */
18200 #include <$ac_header>
18201 _ACEOF
18202 if { (ac_try="$ac_cpp conftest.$ac_ext"
18203 case "(($ac_try" in
18204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18205   *) ac_try_echo=$ac_try;;
18206 esac
18207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18208   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18209   ac_status=$?
18210   grep -v '^ *+' conftest.er1 >conftest.err
18211   rm -f conftest.er1
18212   cat conftest.err >&5
18213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214   (exit $ac_status); } >/dev/null && {
18215          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18216          test ! -s conftest.err
18217        }; then
18218   ac_header_preproc=yes
18219 else
18220   echo "$as_me: failed program was:" >&5
18221 sed 's/^/| /' conftest.$ac_ext >&5
18222
18223   ac_header_preproc=no
18224 fi
18225
18226 rm -f conftest.err conftest.$ac_ext
18227 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18228 echo "${ECHO_T}$ac_header_preproc" >&6; }
18229
18230 # So?  What about this header?
18231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18232   yes:no: )
18233     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18234 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18235     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18236 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18237     ac_header_preproc=yes
18238     ;;
18239   no:yes:* )
18240     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18241 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18242     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18243 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18244     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18245 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18246     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18247 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18248     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18249 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18250     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18251 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18252     ( cat <<\_ASBOX
18253 ## ------------------------------- ##
18254 ## Report this to root@mput.dip.jp ##
18255 ## ------------------------------- ##
18256 _ASBOX
18257      ) | sed "s/^/$as_me: WARNING:     /" >&2
18258     ;;
18259 esac
18260 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18263   echo $ECHO_N "(cached) $ECHO_C" >&6
18264 else
18265   eval "$as_ac_Header=\$ac_header_preproc"
18266 fi
18267 ac_res=`eval echo '${'$as_ac_Header'}'`
18268                { echo "$as_me:$LINENO: result: $ac_res" >&5
18269 echo "${ECHO_T}$ac_res" >&6; }
18270
18271 fi
18272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18273   cat >>confdefs.h <<_ACEOF
18274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18275 _ACEOF
18276
18277 fi
18278
18279 done
18280
18281
18282   ;;
18283 xdynamic)
18284   dynamic_targets="$dynamic_targets if_server.\$(so)"
18285
18286   ;;
18287 *)
18288
18289   ;;
18290 esac
18291
18292
18293
18294
18295
18296 if false; then
18297   ENABLE_ALSASEQ_TRUE=
18298   ENABLE_ALSASEQ_FALSE='#'
18299 else
18300   ENABLE_ALSASEQ_TRUE='#'
18301   ENABLE_ALSASEQ_FALSE=
18302 fi
18303
18304 # Check whether --enable-alsaseq was given.
18305 if test "${enable_alsaseq+set}" = set; then
18306   enableval=$enable_alsaseq; case "x$enable_alsaseq" in xyes|xdynamic)  ;; esac
18307 fi
18308
18309 case "x$enable_alsaseq" in
18310 xyes)
18311   cat >> confdefs.h <<EOF
18312 #define IA_ALSASEQ 1
18313 EOF
18314
18315
18316
18317 if true; then
18318   ENABLE_ALSASEQ_TRUE=
18319   ENABLE_ALSASEQ_FALSE='#'
18320 else
18321   ENABLE_ALSASEQ_TRUE='#'
18322   ENABLE_ALSASEQ_FALSE=
18323 fi
18324
18325    INTERFACE_SRCS="$INTERFACE_SRCS alsaseq_c.c"
18326     alsa_save_CFLAGS="$CFLAGS"
18327 alsa_save_LDFLAGS="$LDFLAGS"
18328 alsa_save_LIBS="$LIBS"
18329 alsa_found=yes
18330
18331
18332 # Check whether --with-alsa-prefix was given.
18333 if test "${with_alsa_prefix+set}" = set; then
18334   withval=$with_alsa_prefix; alsa_prefix="$withval"
18335 else
18336   alsa_prefix=""
18337 fi
18338
18339
18340
18341 # Check whether --with-alsa-inc-prefix was given.
18342 if test "${with_alsa_inc_prefix+set}" = set; then
18343   withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
18344 else
18345   alsa_inc_prefix=""
18346 fi
18347
18348
18349 # Check whether --enable-alsatest was given.
18350 if test "${enable_alsatest+set}" = set; then
18351   enableval=$enable_alsatest; enable_alsatest=no
18352 else
18353   enable_alsatest=yes
18354 fi
18355
18356
18357 { echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
18358 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6; }
18359 if test "$alsa_inc_prefix" != "" ; then
18360         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
18361         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
18362 fi
18363 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
18364 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
18365
18366 { echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
18367 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6; }
18368 if test "$alsa_prefix" != "" ; then
18369         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
18370         LDFLAGS="$LDFLAGS $ALSA_LIBS"
18371 fi
18372
18373 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
18374 LIBS=`echo $LIBS | sed 's/-lm//'`
18375 LIBS=`echo $LIBS | sed 's/-ldl//'`
18376 LIBS=`echo $LIBS | sed 's/-lpthread//'`
18377 LIBS=`echo $LIBS | sed 's/  //'`
18378 LIBS="$ALSA_LIBS $LIBS"
18379 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
18380 echo "${ECHO_T}$ALSA_LIBS" >&6; }
18381
18382 min_alsa_version=0.1.1
18383 { echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
18384 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6; }
18385 no_alsa=""
18386     alsa_min_major_version=`echo $min_alsa_version | \
18387            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
18388     alsa_min_minor_version=`echo $min_alsa_version | \
18389            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
18390     alsa_min_micro_version=`echo $min_alsa_version | \
18391            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
18392
18393
18394
18395 ac_ext=c
18396 ac_cpp='$CPP $CPPFLAGS'
18397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18400
18401 cat >conftest.$ac_ext <<_ACEOF
18402 /* confdefs.h.  */
18403 _ACEOF
18404 cat confdefs.h >>conftest.$ac_ext
18405 cat >>conftest.$ac_ext <<_ACEOF
18406 /* end confdefs.h.  */
18407
18408 #include <alsa/asoundlib.h>
18409
18410 int
18411 main ()
18412 {
18413
18414 /* ensure backward compatibility */
18415 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
18416 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
18417 #endif
18418 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
18419 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
18420 #endif
18421 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
18422 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
18423 #endif
18424
18425 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
18426   exit(0);
18427 #  else
18428 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
18429 #       error not present
18430 #    endif
18431
18432 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
18433   exit(0);
18434 #   else
18435 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
18436 #          error not present
18437 #      endif
18438
18439 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
18440 #        error not present
18441 #      endif
18442 #    endif
18443 #  endif
18444 exit(0);
18445
18446   ;
18447   return 0;
18448 }
18449 _ACEOF
18450 rm -f conftest.$ac_objext
18451 if { (ac_try="$ac_compile"
18452 case "(($ac_try" in
18453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18454   *) ac_try_echo=$ac_try;;
18455 esac
18456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18457   (eval "$ac_compile") 2>conftest.er1
18458   ac_status=$?
18459   grep -v '^ *+' conftest.er1 >conftest.err
18460   rm -f conftest.er1
18461   cat conftest.err >&5
18462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463   (exit $ac_status); } && {
18464          test -z "$ac_c_werror_flag" ||
18465          test ! -s conftest.err
18466        } && test -s conftest.$ac_objext; then
18467   { echo "$as_me:$LINENO: result: found." >&5
18468 echo "${ECHO_T}found." >&6; }
18469 else
18470   echo "$as_me: failed program was:" >&5
18471 sed 's/^/| /' conftest.$ac_ext >&5
18472
18473         cat >conftest.$ac_ext <<_ACEOF
18474 /* confdefs.h.  */
18475 _ACEOF
18476 cat confdefs.h >>conftest.$ac_ext
18477 cat >>conftest.$ac_ext <<_ACEOF
18478 /* end confdefs.h.  */
18479
18480 #include <sys/asoundlib.h>
18481
18482 int
18483 main ()
18484 {
18485
18486 /* ensure backward compatibility */
18487 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
18488 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
18489 #endif
18490 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
18491 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
18492 #endif
18493 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
18494 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
18495 #endif
18496
18497 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
18498   exit(0);
18499 #  else
18500 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
18501 #       error not present
18502 #    endif
18503
18504 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
18505   exit(0);
18506 #   else
18507 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
18508 #          error not present
18509 #      endif
18510
18511 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
18512 #        error not present
18513 #      endif
18514 #    endif
18515 #  endif
18516 exit(0);
18517
18518   ;
18519   return 0;
18520 }
18521 _ACEOF
18522 rm -f conftest.$ac_objext
18523 if { (ac_try="$ac_compile"
18524 case "(($ac_try" in
18525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526   *) ac_try_echo=$ac_try;;
18527 esac
18528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529   (eval "$ac_compile") 2>conftest.er1
18530   ac_status=$?
18531   grep -v '^ *+' conftest.er1 >conftest.err
18532   rm -f conftest.er1
18533   cat conftest.err >&5
18534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535   (exit $ac_status); } && {
18536          test -z "$ac_c_werror_flag" ||
18537          test ! -s conftest.err
18538        } && test -s conftest.$ac_objext; then
18539   { echo "$as_me:$LINENO: result: found." >&5
18540 echo "${ECHO_T}found." >&6; }
18541 else
18542   echo "$as_me: failed program was:" >&5
18543 sed 's/^/| /' conftest.$ac_ext >&5
18544
18545         { echo "$as_me:$LINENO: result: not present." >&5
18546 echo "${ECHO_T}not present." >&6; }
18547    { echo "$as_me:$LINENO: result: libasound was not found anywhere." >&5
18548 echo "${ECHO_T}libasound was not found anywhere." >&6; }
18549    alsa_found=no
18550 fi
18551
18552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18553    { echo "$as_me:$LINENO: result: Sufficiently new version of libasound not found." >&5
18554 echo "${ECHO_T}Sufficiently new version of libasound not found." >&6; }
18555
18556 fi
18557
18558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18559 ac_ext=c
18560 ac_cpp='$CPP $CPPFLAGS'
18561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18564
18565
18566
18567 { echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
18568 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6; }
18569 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
18570   echo $ECHO_N "(cached) $ECHO_C" >&6
18571 else
18572   ac_check_lib_save_LIBS=$LIBS
18573 LIBS="-lasound  $LIBS"
18574 cat >conftest.$ac_ext <<_ACEOF
18575 /* confdefs.h.  */
18576 _ACEOF
18577 cat confdefs.h >>conftest.$ac_ext
18578 cat >>conftest.$ac_ext <<_ACEOF
18579 /* end confdefs.h.  */
18580
18581 /* Override any GCC internal prototype to avoid an error.
18582    Use char because int might match the return type of a GCC
18583    builtin and then its argument prototype would still apply.  */
18584 #ifdef __cplusplus
18585 extern "C"
18586 #endif
18587 char snd_ctl_open ();
18588 int
18589 main ()
18590 {
18591 return snd_ctl_open ();
18592   ;
18593   return 0;
18594 }
18595 _ACEOF
18596 rm -f conftest.$ac_objext conftest$ac_exeext
18597 if { (ac_try="$ac_link"
18598 case "(($ac_try" in
18599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18600   *) ac_try_echo=$ac_try;;
18601 esac
18602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18603   (eval "$ac_link") 2>conftest.er1
18604   ac_status=$?
18605   grep -v '^ *+' conftest.er1 >conftest.err
18606   rm -f conftest.er1
18607   cat conftest.err >&5
18608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609   (exit $ac_status); } && {
18610          test -z "$ac_c_werror_flag" ||
18611          test ! -s conftest.err
18612        } && test -s conftest$ac_exeext &&
18613        $as_test_x conftest$ac_exeext; then
18614   ac_cv_lib_asound_snd_ctl_open=yes
18615 else
18616   echo "$as_me: failed program was:" >&5
18617 sed 's/^/| /' conftest.$ac_ext >&5
18618
18619         ac_cv_lib_asound_snd_ctl_open=no
18620 fi
18621
18622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18623       conftest$ac_exeext conftest.$ac_ext
18624 LIBS=$ac_check_lib_save_LIBS
18625 fi
18626 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
18627 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6; }
18628 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
18629   cat >>confdefs.h <<_ACEOF
18630 #define HAVE_LIBASOUND 1
18631 _ACEOF
18632
18633   LIBS="-lasound $LIBS"
18634
18635 else
18636   { echo "$as_me:$LINENO: result: No linkable libasound was found." >&5
18637 echo "${ECHO_T}No linkable libasound was found." >&6; }
18638    alsa_found=no
18639
18640 fi
18641
18642
18643 if test "x$alsa_found" = "xyes" ; then
18644    :
18645    LIBS=`echo $LIBS | sed 's/-lasound//g'`
18646    LIBS=`echo $LIBS | sed 's/  //'`
18647    LIBS="-lasound $LIBS"
18648 else
18649    :
18650    CFLAGS="$alsa_save_CFLAGS"
18651    LDFLAGS="$alsa_save_LDFLAGS"
18652    LIBS="$alsa_save_LIBS"
18653    ALSA_CFLAGS=""
18654    ALSA_LIBS=""
18655 fi
18656
18657
18658
18659
18660
18661   ;;
18662 xdynamic)
18663   dynamic_targets="$dynamic_targets if_alsaseq.\$(so)"
18664
18665   ;;
18666 *)
18667
18668   ;;
18669 esac
18670
18671
18672
18673
18674
18675 if false; then
18676   ENABLE_WINSYN_TRUE=
18677   ENABLE_WINSYN_FALSE='#'
18678 else
18679   ENABLE_WINSYN_TRUE='#'
18680   ENABLE_WINSYN_FALSE=
18681 fi
18682
18683 # Check whether --enable-winsyn was given.
18684 if test "${enable_winsyn+set}" = set; then
18685   enableval=$enable_winsyn; case "x$enable_winsyn" in xyes|xdynamic)  ;; esac
18686 fi
18687
18688 case "x$enable_winsyn" in
18689 xyes)
18690   cat >> confdefs.h <<EOF
18691 #define IA_WINSYN 1
18692 EOF
18693
18694
18695
18696 if true; then
18697   ENABLE_WINSYN_TRUE=
18698   ENABLE_WINSYN_FALSE='#'
18699 else
18700   ENABLE_WINSYN_TRUE='#'
18701   ENABLE_WINSYN_FALSE=
18702 fi
18703
18704    WINSYN="yes"; INTERFACE_SRCS="$INTERFACE_SRCS winsyn_c.c rtsyn_common.c rtsyn_winmm.c"
18705   ;;
18706 xdynamic)
18707   dynamic_targets="$dynamic_targets if_winsyn.\$(so)"
18708
18709   ;;
18710 *)
18711
18712   ;;
18713 esac
18714
18715
18716
18717
18718
18719 if false; then
18720   ENABLE_PORTMIDISYN_TRUE=
18721   ENABLE_PORTMIDISYN_FALSE='#'
18722 else
18723   ENABLE_PORTMIDISYN_TRUE='#'
18724   ENABLE_PORTMIDISYN_FALSE=
18725 fi
18726
18727 # Check whether --enable-portmidisyn was given.
18728 if test "${enable_portmidisyn+set}" = set; then
18729   enableval=$enable_portmidisyn; case "x$enable_portmidisyn" in xyes|xdynamic)  ;; esac
18730 fi
18731
18732 case "x$enable_portmidisyn" in
18733 xyes)
18734   cat >> confdefs.h <<EOF
18735 #define IA_PORTMIDISYN 1
18736 EOF
18737
18738
18739
18740 if true; then
18741   ENABLE_PORTMIDISYN_TRUE=
18742   ENABLE_PORTMIDISYN_FALSE='#'
18743 else
18744   ENABLE_PORTMIDISYN_TRUE='#'
18745   ENABLE_PORTMIDISYN_FALSE=
18746 fi
18747
18748    INTERFACE_SRCS="$INTERFACE_SRCS portmidisyn_c.c rtsyn_common.c rtsyn_portmidi.c"
18749   ;;
18750 xdynamic)
18751   dynamic_targets="$dynamic_targets if_portmidisyn.\$(so)"
18752
18753   ;;
18754 *)
18755
18756   ;;
18757 esac
18758
18759
18760
18761
18762
18763 if false; then
18764   ENABLE_NPSYN_TRUE=
18765   ENABLE_NPSYN_FALSE='#'
18766 else
18767   ENABLE_NPSYN_TRUE='#'
18768   ENABLE_NPSYN_FALSE=
18769 fi
18770
18771 # Check whether --enable-npsyn was given.
18772 if test "${enable_npsyn+set}" = set; then
18773   enableval=$enable_npsyn; case "x$enable_npsyn" in xyes|xdynamic)  ;; esac
18774 fi
18775
18776 case "x$enable_npsyn" in
18777 xyes)
18778   cat >> confdefs.h <<EOF
18779 #define IA_NPSYN 1
18780 EOF
18781
18782
18783
18784 if true; then
18785   ENABLE_NPSYN_TRUE=
18786   ENABLE_NPSYN_FALSE='#'
18787 else
18788   ENABLE_NPSYN_TRUE='#'
18789   ENABLE_NPSYN_FALSE=
18790 fi
18791
18792    NPSYN="yes"; INTERFACE_SRCS="$INTERFACE_SRCS npsyn_c.c rtsyn_common.c rtsyn_npipe.c"
18793   ;;
18794 xdynamic)
18795   dynamic_targets="$dynamic_targets if_npsyn.\$(so)"
18796
18797   ;;
18798 *)
18799
18800   ;;
18801 esac
18802
18803
18804
18805
18806
18807
18808
18809 if false; then
18810   ENABLE_W32G_SYN_TRUE=
18811   ENABLE_W32G_SYN_FALSE='#'
18812 else
18813   ENABLE_W32G_SYN_TRUE='#'
18814   ENABLE_W32G_SYN_FALSE=
18815 fi
18816
18817 # Check whether --enable-winsyng was given.
18818 if test "${enable_winsyng+set}" = set; then
18819   enableval=$enable_winsyng; case "x$enable_winsyng" in xyes|xdynamic)  ;; esac
18820 fi
18821
18822 case "x$enable_winsyng" in
18823 xyes)
18824   cat >> confdefs.h <<EOF
18825 #define IA_W32G_SYN 1
18826 EOF
18827
18828
18829
18830 if true; then
18831   ENABLE_W32G_SYN_TRUE=
18832   ENABLE_W32G_SYN_FALSE='#'
18833 else
18834   ENABLE_W32G_SYN_TRUE='#'
18835   ENABLE_W32G_SYN_FALSE=
18836 fi
18837
18838
18839   W32G_GUI=yes
18840   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes || test "x$POCC" = xyes; then
18841     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"
18842     lib_w32gui_opt='gdi32.lib comctl32.lib comdlg32.lib ole32.lib'
18843     lib_user32_opt='user32.lib'
18844     if test "x$VCPP" = xyes; then
18845           VCPP_LDFLAGS="$VCPP_LDFLAGS -subsystem:windows "
18846         fi
18847         if test "x$BORLANDC" = xyes; then
18848           BORLANDC_START='C0W32.OBJ'
18849           CFLAGS="$CFLAGS -tW"
18850           lib_w32gui_opt="-aa $lib_w32gui_opt"
18851         fi
18852         if test "x$WATCOM_C" = xyes; then
18853           CFLAGS="$CFLAGS -bw"
18854           WATCOM_LDFLAGS="$WATCOM_LDFLAGS SYS nt_win"
18855         fi
18856         if test "x$DMC" = xyes; then
18857           DLLFLAG="-WA"
18858           lib_w32gui_opt="$lib_w32gui_opt -L/exet:nt/su:windows:4.0"
18859         fi
18860     if test "x$POCC" = xyes; then
18861           POCC_LDFLAGS="$POCC_LDFLAGS -subsystem:windows "
18862     fi
18863   else
18864         lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
18865     lib_user32_opt='-luser32'
18866     LDFLAGS="-mwindows $LDFLAGS"
18867     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"
18868   fi
18869
18870   ;;
18871 xdynamic)
18872   dynamic_targets="$dynamic_targets if_winsyng.\$(so)"
18873
18874   ;;
18875 *)
18876
18877   ;;
18878 esac
18879
18880
18881
18882
18883
18884
18885 if false; then
18886   ENABLE_W32GUI_TRUE=
18887   ENABLE_W32GUI_FALSE='#'
18888 else
18889   ENABLE_W32GUI_TRUE='#'
18890   ENABLE_W32GUI_FALSE=
18891 fi
18892
18893 # Check whether --enable-w32gui was given.
18894 if test "${enable_w32gui+set}" = set; then
18895   enableval=$enable_w32gui; case "x$enable_w32gui" in xyes|xdynamic)  ;; esac
18896 fi
18897
18898 case "x$enable_w32gui" in
18899 xyes)
18900   cat >> confdefs.h <<EOF
18901 #define IA_W32GUI 1
18902 EOF
18903
18904
18905
18906 if true; then
18907   ENABLE_W32GUI_TRUE=
18908   ENABLE_W32GUI_FALSE='#'
18909 else
18910   ENABLE_W32GUI_TRUE='#'
18911   ENABLE_W32GUI_FALSE=
18912 fi
18913
18914
18915   W32G_GUI=yes
18916   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes || test "x$DMC" = xyes || test "x$POCC" = xyes; then
18917         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"
18918     lib_w32gui_opt='gdi32.lib comctl32.lib comdlg32.lib ole32.lib'
18919     lib_user32_opt='user32.lib'
18920     if test "x$VCPP" = xyes; then
18921           VCPP_LDFLAGS="$VCPP_LDFLAGS -subsystem:windows "
18922         fi
18923         if test "x$BORLANDC" = xyes; then
18924           BORLANDC_START='C0W32.OBJ'
18925           CFLAGS="$CFLAGS -tW"
18926           lib_w32gui_opt="-aa $lib_w32gui_opt"
18927         fi
18928         if test "x$WATCOM_C" = xyes; then
18929           CFLAGS="$CFLAGS -bw"
18930           WATCOM_LDFLAGS="$WATCOM_LDFLAGS SYS nt_win"
18931         fi
18932         if test "x$DMC" = xyes; then
18933           lib_w32gui_opt="$lib_w32gui_opt -L/SU:window"
18934           DLLFLAG="-WA"
18935         fi
18936     if test "x$POCC" = xyes; then
18937           POCC_LDFLAGS="$POCC_LDFLAGS -subsystem:windows "
18938     fi
18939   else
18940     lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
18941     lib_user32_opt='-luser32'
18942     LDFLAGS="-mwindows $LDFLAGS"
18943     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"
18944   fi
18945
18946   ;;
18947 xdynamic)
18948   dynamic_targets="$dynamic_targets if_w32gui.\$(so)"
18949
18950   ;;
18951 *)
18952
18953   ;;
18954 esac
18955
18956
18957
18958
18959
18960 if false; then
18961   ENABLE_PLUGIN_TRUE=
18962   ENABLE_PLUGIN_FALSE='#'
18963 else
18964   ENABLE_PLUGIN_TRUE='#'
18965   ENABLE_PLUGIN_FALSE=
18966 fi
18967
18968 # Check whether --enable-ump was given.
18969 if test "${enable_ump+set}" = set; then
18970   enableval=$enable_ump; case "x$enable_ump" in xyes|xdynamic)  if test ! -d ump; then
18971         { { echo "$as_me:$LINENO: error: UMP Package is not exists.  Can't configure it." >&5
18972 echo "$as_me: error: UMP Package is not exists.  Can't configure it." >&2;}
18973    { (exit 1); exit 1; }; }
18974     fi
18975     if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18976   { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
18977 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
18978 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18979   echo $ECHO_N "(cached) $ECHO_C" >&6
18980 fi
18981 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
18982 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
18983 else
18984   # Is the header compilable?
18985 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
18986 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
18987 cat >conftest.$ac_ext <<_ACEOF
18988 /* confdefs.h.  */
18989 _ACEOF
18990 cat confdefs.h >>conftest.$ac_ext
18991 cat >>conftest.$ac_ext <<_ACEOF
18992 /* end confdefs.h.  */
18993 $ac_includes_default
18994 #include <X11/xpm.h>
18995 _ACEOF
18996 rm -f conftest.$ac_objext
18997 if { (ac_try="$ac_compile"
18998 case "(($ac_try" in
18999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19000   *) ac_try_echo=$ac_try;;
19001 esac
19002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19003   (eval "$ac_compile") 2>conftest.er1
19004   ac_status=$?
19005   grep -v '^ *+' conftest.er1 >conftest.err
19006   rm -f conftest.er1
19007   cat conftest.err >&5
19008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009   (exit $ac_status); } && {
19010          test -z "$ac_c_werror_flag" ||
19011          test ! -s conftest.err
19012        } && test -s conftest.$ac_objext; then
19013   ac_header_compiler=yes
19014 else
19015   echo "$as_me: failed program was:" >&5
19016 sed 's/^/| /' conftest.$ac_ext >&5
19017
19018         ac_header_compiler=no
19019 fi
19020
19021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19022 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19023 echo "${ECHO_T}$ac_header_compiler" >&6; }
19024
19025 # Is the header present?
19026 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
19027 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
19028 cat >conftest.$ac_ext <<_ACEOF
19029 /* confdefs.h.  */
19030 _ACEOF
19031 cat confdefs.h >>conftest.$ac_ext
19032 cat >>conftest.$ac_ext <<_ACEOF
19033 /* end confdefs.h.  */
19034 #include <X11/xpm.h>
19035 _ACEOF
19036 if { (ac_try="$ac_cpp conftest.$ac_ext"
19037 case "(($ac_try" in
19038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19039   *) ac_try_echo=$ac_try;;
19040 esac
19041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19042   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19043   ac_status=$?
19044   grep -v '^ *+' conftest.er1 >conftest.err
19045   rm -f conftest.er1
19046   cat conftest.err >&5
19047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048   (exit $ac_status); } >/dev/null && {
19049          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19050          test ! -s conftest.err
19051        }; then
19052   ac_header_preproc=yes
19053 else
19054   echo "$as_me: failed program was:" >&5
19055 sed 's/^/| /' conftest.$ac_ext >&5
19056
19057   ac_header_preproc=no
19058 fi
19059
19060 rm -f conftest.err conftest.$ac_ext
19061 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19062 echo "${ECHO_T}$ac_header_preproc" >&6; }
19063
19064 # So?  What about this header?
19065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19066   yes:no: )
19067     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
19068 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19069     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
19070 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
19071     ac_header_preproc=yes
19072     ;;
19073   no:yes:* )
19074     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
19075 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
19076     { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&5
19077 echo "$as_me: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&2;}
19078     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
19079 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
19080     { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&5
19081 echo "$as_me: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19082     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
19083 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
19084     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
19085 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
19086     ( cat <<\_ASBOX
19087 ## ------------------------------- ##
19088 ## Report this to root@mput.dip.jp ##
19089 ## ------------------------------- ##
19090 _ASBOX
19091      ) | sed "s/^/$as_me: WARNING:     /" >&2
19092     ;;
19093 esac
19094 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
19095 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
19096 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
19097   echo $ECHO_N "(cached) $ECHO_C" >&6
19098 else
19099   ac_cv_header_X11_xpm_h=$ac_header_preproc
19100 fi
19101 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
19102 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
19103
19104 fi
19105 if test $ac_cv_header_X11_xpm_h = yes; then
19106   :
19107 else
19108   { { echo "$as_me:$LINENO: error: UMP Package needs xpm.h, but could not find it." >&5
19109 echo "$as_me: error: UMP Package needs xpm.h, but could not find it." >&2;}
19110    { (exit 1); exit 1; }; }
19111 fi
19112
19113
19114     { echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
19115 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6; }
19116 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
19117   echo $ECHO_N "(cached) $ECHO_C" >&6
19118 else
19119   ac_check_lib_save_LIBS=$LIBS
19120 LIBS="-lXpm  $LIBS"
19121 cat >conftest.$ac_ext <<_ACEOF
19122 /* confdefs.h.  */
19123 _ACEOF
19124 cat confdefs.h >>conftest.$ac_ext
19125 cat >>conftest.$ac_ext <<_ACEOF
19126 /* end confdefs.h.  */
19127
19128 /* Override any GCC internal prototype to avoid an error.
19129    Use char because int might match the return type of a GCC
19130    builtin and then its argument prototype would still apply.  */
19131 #ifdef __cplusplus
19132 extern "C"
19133 #endif
19134 char XpmCreatePixmapFromData ();
19135 int
19136 main ()
19137 {
19138 return XpmCreatePixmapFromData ();
19139   ;
19140   return 0;
19141 }
19142 _ACEOF
19143 rm -f conftest.$ac_objext conftest$ac_exeext
19144 if { (ac_try="$ac_link"
19145 case "(($ac_try" in
19146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19147   *) ac_try_echo=$ac_try;;
19148 esac
19149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19150   (eval "$ac_link") 2>conftest.er1
19151   ac_status=$?
19152   grep -v '^ *+' conftest.er1 >conftest.err
19153   rm -f conftest.er1
19154   cat conftest.err >&5
19155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156   (exit $ac_status); } && {
19157          test -z "$ac_c_werror_flag" ||
19158          test ! -s conftest.err
19159        } && test -s conftest$ac_exeext &&
19160        $as_test_x conftest$ac_exeext; then
19161   ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
19162 else
19163   echo "$as_me: failed program was:" >&5
19164 sed 's/^/| /' conftest.$ac_ext >&5
19165
19166         ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
19167 fi
19168
19169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19170       conftest$ac_exeext conftest.$ac_ext
19171 LIBS=$ac_check_lib_save_LIBS
19172 fi
19173 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
19174 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
19175 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
19176   :
19177 else
19178   { { echo "$as_me:$LINENO: error: UMP Package needs libXpm.a, but could not find it." >&5
19179 echo "$as_me: error: UMP Package needs libXpm.a, but could not find it." >&2;}
19180    { (exit 1); exit 1; }; }
19181 fi
19182
19183     if test "x$have_xext" = xyes; then
19184       lib_xext_opt=-lXext
19185     fi
19186     if test "x$have_xprelibs" = xyes; then
19187       lib_xprelibs_opt='-lSM -lICE'
19188     fi
19189     lib_xmu_opt=-lXmu
19190     lib_xt_opt=-lXt
19191    ;; esac
19192 fi
19193
19194 case "x$enable_ump" in
19195 xyes)
19196   cat >> confdefs.h <<EOF
19197 #define IA_PLUGIN 1
19198 EOF
19199
19200
19201
19202 if true; then
19203   ENABLE_PLUGIN_TRUE=
19204   ENABLE_PLUGIN_FALSE='#'
19205 else
19206   ENABLE_PLUGIN_TRUE='#'
19207   ENABLE_PLUGIN_FALSE=
19208 fi
19209
19210
19211   ;;
19212 xdynamic)
19213   dynamic_targets="$dynamic_targets if_ump.\$(so)"
19214
19215   ;;
19216 *)
19217
19218   ;;
19219 esac
19220
19221
19222
19223 # Check whether --enable-windrv was given.
19224 if test "${enable_windrv+set}" = set; then
19225   enableval=$enable_windrv;  if test "$enableval" = "yes"; then
19226       if test "x$VCPP" != "xyes" && test "x$MINGWGCC" != "xyes" && test "x$BORLANDC" != "xyes" && test "x$WATCOM_C" != "xyes" && test "x$DMC" != "xyes" && test "x$POCC" != "xyes"; then
19227         { { echo "$as_me:$LINENO: error: windrv: Only Support VC++ or Mingw or Borland C or Open Watcom PellesC and Digital Mars" >&5
19228 echo "$as_me: error: windrv: Only Support VC++ or Mingw or Borland C or Open Watcom PellesC and Digital Mars" >&2;}
19229    { (exit 1); exit 1; }; }
19230           elif test "x$WINSYN" != "xyes"; then
19231         { { echo "$as_me:$LINENO: error: windrv: Driver must have winsyn interface" >&5
19232 echo "$as_me: error: windrv: Driver must have winsyn interface" >&2;}
19233    { (exit 1); exit 1; }; }
19234           else
19235
19236 cat >>confdefs.h <<\_ACEOF
19237 #define WINDRV 1
19238 _ACEOF
19239
19240     WINDRV=yes
19241     if test "x$WATCOM_C" = "xyes"; then DLLFLAG="-bd" ;fi
19242     if test "x$DMC" = "xyes"; then DLLFLAG="-WD" ;fi
19243     CFLAGS="$CFLAGS -DANOTHER_MAIN "
19244       fi
19245     fi
19246 fi
19247
19248 CFLAGS="$CFLAGS $DLLFLAG "
19249
19250 # Check whether --enable-offix was given.
19251 if test "${enable_offix+set}" = set; then
19252   enableval=$enable_offix;  if test "$enableval" = "yes"; then
19253       KEEPCPPFLAGS=$CPPFLAGS
19254       KEEPLIBS=$LIBS
19255       KEEPLDFLAGS=$LDFLAGS
19256       CPPFLAGS="$CPPFLAGS $offix_include_dir"
19257       LDFLAGS="$LDFLAGS $offix_lib_dir"
19258       LIBS="$LIBS $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11"
19259       { echo "$as_me:$LINENO: checking for DndInitialize in -lDnd" >&5
19260 echo $ECHO_N "checking for DndInitialize in -lDnd... $ECHO_C" >&6; }
19261 if test "${ac_cv_lib_Dnd_DndInitialize+set}" = set; then
19262   echo $ECHO_N "(cached) $ECHO_C" >&6
19263 else
19264   ac_check_lib_save_LIBS=$LIBS
19265 LIBS="-lDnd  $LIBS"
19266 cat >conftest.$ac_ext <<_ACEOF
19267 /* confdefs.h.  */
19268 _ACEOF
19269 cat confdefs.h >>conftest.$ac_ext
19270 cat >>conftest.$ac_ext <<_ACEOF
19271 /* end confdefs.h.  */
19272
19273 /* Override any GCC internal prototype to avoid an error.
19274    Use char because int might match the return type of a GCC
19275    builtin and then its argument prototype would still apply.  */
19276 #ifdef __cplusplus
19277 extern "C"
19278 #endif
19279 char DndInitialize ();
19280 int
19281 main ()
19282 {
19283 return DndInitialize ();
19284   ;
19285   return 0;
19286 }
19287 _ACEOF
19288 rm -f conftest.$ac_objext conftest$ac_exeext
19289 if { (ac_try="$ac_link"
19290 case "(($ac_try" in
19291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19292   *) ac_try_echo=$ac_try;;
19293 esac
19294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19295   (eval "$ac_link") 2>conftest.er1
19296   ac_status=$?
19297   grep -v '^ *+' conftest.er1 >conftest.err
19298   rm -f conftest.er1
19299   cat conftest.err >&5
19300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301   (exit $ac_status); } && {
19302          test -z "$ac_c_werror_flag" ||
19303          test ! -s conftest.err
19304        } && test -s conftest$ac_exeext &&
19305        $as_test_x conftest$ac_exeext; then
19306   ac_cv_lib_Dnd_DndInitialize=yes
19307 else
19308   echo "$as_me: failed program was:" >&5
19309 sed 's/^/| /' conftest.$ac_ext >&5
19310
19311         ac_cv_lib_Dnd_DndInitialize=no
19312 fi
19313
19314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19315       conftest$ac_exeext conftest.$ac_ext
19316 LIBS=$ac_check_lib_save_LIBS
19317 fi
19318 { echo "$as_me:$LINENO: result: $ac_cv_lib_Dnd_DndInitialize" >&5
19319 echo "${ECHO_T}$ac_cv_lib_Dnd_DndInitialize" >&6; }
19320 if test $ac_cv_lib_Dnd_DndInitialize = yes; then
19321
19322         LIBS=$KEEPLIBS
19323         lib_offix_opt="-lDnd"
19324
19325 cat >>confdefs.h <<\_ACEOF
19326 #define OFFIX 1
19327 _ACEOF
19328
19329
19330 else
19331    LDFLAGS=$KEEPLDFLAGS
19332         CPPFLAGS=$KEEPCPPFLAGS
19333         LIBS=$KEEPLIBS
19334
19335 fi
19336
19337     fi
19338
19339 fi
19340
19341
19342 # Check whether --enable-network was given.
19343 if test "${enable_network+set}" = set; then
19344   enableval=$enable_network;  if test "$enableval" = "yes"; then
19345
19346 cat >>confdefs.h <<\_ACEOF
19347 #define SUPPORT_SOCKET 1
19348 _ACEOF
19349
19350     fi
19351 fi
19352
19353
19354
19355 if test "x$enable_network" = "xyes"; then
19356   ENABLE_NETWORK_TRUE=
19357   ENABLE_NETWORK_FALSE='#'
19358 else
19359   ENABLE_NETWORK_TRUE='#'
19360   ENABLE_NETWORK_FALSE=
19361 fi
19362
19363
19364 # Check whether --enable-spectrogram was given.
19365 if test "${enable_spectrogram+set}" = set; then
19366   enableval=$enable_spectrogram;  if test "$enableval" = "yes"; then
19367       if test "x$with_x" != xyes; then
19368         { { echo "$as_me:$LINENO: error: spectrogram: --with-x option must be specified" >&5
19369 echo "$as_me: error: spectrogram: --with-x option must be specified" >&2;}
19370    { (exit 1); exit 1; }; }
19371       fi
19372
19373 cat >>confdefs.h <<\_ACEOF
19374 #define SUPPORT_SOUNDSPEC 1
19375 _ACEOF
19376
19377     fi
19378 fi
19379
19380
19381
19382 if test "x$enable_spectrogram" = "xyes"; then
19383   ENABLE_SOUND_SPEC_TRUE=
19384   ENABLE_SOUND_SPEC_FALSE='#'
19385 else
19386   ENABLE_SOUND_SPEC_TRUE='#'
19387   ENABLE_SOUND_SPEC_FALSE=
19388 fi
19389
19390
19391 # Check whether --enable-spline was given.
19392 if test "${enable_spline+set}" = set; then
19393   enableval=$enable_spline;  case "x$enableval" in
19394       xlinear)
19395
19396 cat >>confdefs.h <<\_ACEOF
19397 #define DEFAULT_RESAMPLATION resample_linear
19398 _ACEOF
19399
19400         ;;
19401       xcubic)
19402
19403 cat >>confdefs.h <<\_ACEOF
19404 #define DEFAULT_RESAMPLATION resample_cspline
19405 _ACEOF
19406
19407         ;;
19408       xlagrange)
19409
19410 cat >>confdefs.h <<\_ACEOF
19411 #define DEFAULT_RESAMPLATION resample_lagrange
19412 _ACEOF
19413
19414         ;;
19415       xnewton)
19416
19417 cat >>confdefs.h <<\_ACEOF
19418 #define DEFAULT_RESAMPLATION resample_newton
19419 _ACEOF
19420
19421         ;;
19422       xgauss)
19423
19424 cat >>confdefs.h <<\_ACEOF
19425 #define DEFAULT_RESAMPLATION resample_gauss
19426 _ACEOF
19427
19428         ;;
19429       xno)
19430
19431 cat >>confdefs.h <<\_ACEOF
19432 #define DEFAULT_RESAMPLATION resample_none
19433 _ACEOF
19434
19435         ;;
19436       *)
19437         { { echo "$as_me:$LINENO: error: Invalid method of --enable-spline" >&5
19438 echo "$as_me: error: Invalid method of --enable-spline" >&2;}
19439    { (exit 1); exit 1; }; }
19440         ;;
19441     esac
19442 fi
19443
19444
19445 # Check whether --enable-wrd was given.
19446 if test "${enable_wrd+set}" = set; then
19447   enableval=$enable_wrd;  if test "$enableval" = "yes"; then
19448       if test "x$with_x" != xyes; then
19449         { { echo "$as_me:$LINENO: error: wrd: --with-x option must be specified" >&5
19450 echo "$as_me: error: wrd: --with-x option must be specified" >&2;}
19451    { (exit 1); exit 1; }; }
19452       fi
19453
19454 cat >>confdefs.h <<\_ACEOF
19455 #define WRDT_X 1
19456 _ACEOF
19457
19458       enable_sherry_wrd=yes
19459       { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
19460 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; }
19461 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
19462   echo $ECHO_N "(cached) $ECHO_C" >&6
19463 else
19464   ac_check_lib_save_LIBS=$LIBS
19465 LIBS="-lz  $LIBS"
19466 cat >conftest.$ac_ext <<_ACEOF
19467 /* confdefs.h.  */
19468 _ACEOF
19469 cat confdefs.h >>conftest.$ac_ext
19470 cat >>conftest.$ac_ext <<_ACEOF
19471 /* end confdefs.h.  */
19472
19473 /* Override any GCC internal prototype to avoid an error.
19474    Use char because int might match the return type of a GCC
19475    builtin and then its argument prototype would still apply.  */
19476 #ifdef __cplusplus
19477 extern "C"
19478 #endif
19479 char zlibVersion ();
19480 int
19481 main ()
19482 {
19483 return zlibVersion ();
19484   ;
19485   return 0;
19486 }
19487 _ACEOF
19488 rm -f conftest.$ac_objext conftest$ac_exeext
19489 if { (ac_try="$ac_link"
19490 case "(($ac_try" in
19491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19492   *) ac_try_echo=$ac_try;;
19493 esac
19494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19495   (eval "$ac_link") 2>conftest.er1
19496   ac_status=$?
19497   grep -v '^ *+' conftest.er1 >conftest.err
19498   rm -f conftest.er1
19499   cat conftest.err >&5
19500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501   (exit $ac_status); } && {
19502          test -z "$ac_c_werror_flag" ||
19503          test ! -s conftest.err
19504        } && test -s conftest$ac_exeext &&
19505        $as_test_x conftest$ac_exeext; then
19506   ac_cv_lib_z_zlibVersion=yes
19507 else
19508   echo "$as_me: failed program was:" >&5
19509 sed 's/^/| /' conftest.$ac_ext >&5
19510
19511         ac_cv_lib_z_zlibVersion=no
19512 fi
19513
19514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19515       conftest$ac_exeext conftest.$ac_ext
19516 LIBS=$ac_check_lib_save_LIBS
19517 fi
19518 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
19519 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; }
19520 if test $ac_cv_lib_z_zlibVersion = yes; then
19521   :
19522 else
19523   enable_sherry_wrd=no
19524 fi
19525
19526       if test "${ac_cv_header_png_h+set}" = set; then
19527   { echo "$as_me:$LINENO: checking for png.h" >&5
19528 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
19529 if test "${ac_cv_header_png_h+set}" = set; then
19530   echo $ECHO_N "(cached) $ECHO_C" >&6
19531 fi
19532 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19533 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
19534 else
19535   # Is the header compilable?
19536 { echo "$as_me:$LINENO: checking png.h usability" >&5
19537 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6; }
19538 cat >conftest.$ac_ext <<_ACEOF
19539 /* confdefs.h.  */
19540 _ACEOF
19541 cat confdefs.h >>conftest.$ac_ext
19542 cat >>conftest.$ac_ext <<_ACEOF
19543 /* end confdefs.h.  */
19544 $ac_includes_default
19545 #include <png.h>
19546 _ACEOF
19547 rm -f conftest.$ac_objext
19548 if { (ac_try="$ac_compile"
19549 case "(($ac_try" in
19550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551   *) ac_try_echo=$ac_try;;
19552 esac
19553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19554   (eval "$ac_compile") 2>conftest.er1
19555   ac_status=$?
19556   grep -v '^ *+' conftest.er1 >conftest.err
19557   rm -f conftest.er1
19558   cat conftest.err >&5
19559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560   (exit $ac_status); } && {
19561          test -z "$ac_c_werror_flag" ||
19562          test ! -s conftest.err
19563        } && test -s conftest.$ac_objext; then
19564   ac_header_compiler=yes
19565 else
19566   echo "$as_me: failed program was:" >&5
19567 sed 's/^/| /' conftest.$ac_ext >&5
19568
19569         ac_header_compiler=no
19570 fi
19571
19572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19573 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19574 echo "${ECHO_T}$ac_header_compiler" >&6; }
19575
19576 # Is the header present?
19577 { echo "$as_me:$LINENO: checking png.h presence" >&5
19578 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6; }
19579 cat >conftest.$ac_ext <<_ACEOF
19580 /* confdefs.h.  */
19581 _ACEOF
19582 cat confdefs.h >>conftest.$ac_ext
19583 cat >>conftest.$ac_ext <<_ACEOF
19584 /* end confdefs.h.  */
19585 #include <png.h>
19586 _ACEOF
19587 if { (ac_try="$ac_cpp conftest.$ac_ext"
19588 case "(($ac_try" in
19589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19590   *) ac_try_echo=$ac_try;;
19591 esac
19592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19593   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19594   ac_status=$?
19595   grep -v '^ *+' conftest.er1 >conftest.err
19596   rm -f conftest.er1
19597   cat conftest.err >&5
19598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599   (exit $ac_status); } >/dev/null && {
19600          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19601          test ! -s conftest.err
19602        }; then
19603   ac_header_preproc=yes
19604 else
19605   echo "$as_me: failed program was:" >&5
19606 sed 's/^/| /' conftest.$ac_ext >&5
19607
19608   ac_header_preproc=no
19609 fi
19610
19611 rm -f conftest.err conftest.$ac_ext
19612 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19613 echo "${ECHO_T}$ac_header_preproc" >&6; }
19614
19615 # So?  What about this header?
19616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19617   yes:no: )
19618     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
19619 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19620     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
19621 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
19622     ac_header_preproc=yes
19623     ;;
19624   no:yes:* )
19625     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
19626 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
19627     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
19628 echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
19629     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
19630 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
19631     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
19632 echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19633     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
19634 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
19635     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
19636 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
19637     ( cat <<\_ASBOX
19638 ## ------------------------------- ##
19639 ## Report this to root@mput.dip.jp ##
19640 ## ------------------------------- ##
19641 _ASBOX
19642      ) | sed "s/^/$as_me: WARNING:     /" >&2
19643     ;;
19644 esac
19645 { echo "$as_me:$LINENO: checking for png.h" >&5
19646 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
19647 if test "${ac_cv_header_png_h+set}" = set; then
19648   echo $ECHO_N "(cached) $ECHO_C" >&6
19649 else
19650   ac_cv_header_png_h=$ac_header_preproc
19651 fi
19652 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19653 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
19654
19655 fi
19656 if test $ac_cv_header_png_h = yes; then
19657   :
19658 else
19659   enable_sherry_wrd=no
19660 fi
19661
19662
19663       { echo "$as_me:$LINENO: checking for png_init_io in -lpng" >&5
19664 echo $ECHO_N "checking for png_init_io in -lpng... $ECHO_C" >&6; }
19665 if test "${ac_cv_lib_png_png_init_io+set}" = set; then
19666   echo $ECHO_N "(cached) $ECHO_C" >&6
19667 else
19668   ac_check_lib_save_LIBS=$LIBS
19669 LIBS="-lpng -lz $LIBS"
19670 cat >conftest.$ac_ext <<_ACEOF
19671 /* confdefs.h.  */
19672 _ACEOF
19673 cat confdefs.h >>conftest.$ac_ext
19674 cat >>conftest.$ac_ext <<_ACEOF
19675 /* end confdefs.h.  */
19676
19677 /* Override any GCC internal prototype to avoid an error.
19678    Use char because int might match the return type of a GCC
19679    builtin and then its argument prototype would still apply.  */
19680 #ifdef __cplusplus
19681 extern "C"
19682 #endif
19683 char png_init_io ();
19684 int
19685 main ()
19686 {
19687 return png_init_io ();
19688   ;
19689   return 0;
19690 }
19691 _ACEOF
19692 rm -f conftest.$ac_objext conftest$ac_exeext
19693 if { (ac_try="$ac_link"
19694 case "(($ac_try" in
19695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19696   *) ac_try_echo=$ac_try;;
19697 esac
19698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19699   (eval "$ac_link") 2>conftest.er1
19700   ac_status=$?
19701   grep -v '^ *+' conftest.er1 >conftest.err
19702   rm -f conftest.er1
19703   cat conftest.err >&5
19704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705   (exit $ac_status); } && {
19706          test -z "$ac_c_werror_flag" ||
19707          test ! -s conftest.err
19708        } && test -s conftest$ac_exeext &&
19709        $as_test_x conftest$ac_exeext; then
19710   ac_cv_lib_png_png_init_io=yes
19711 else
19712   echo "$as_me: failed program was:" >&5
19713 sed 's/^/| /' conftest.$ac_ext >&5
19714
19715         ac_cv_lib_png_png_init_io=no
19716 fi
19717
19718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19719       conftest$ac_exeext conftest.$ac_ext
19720 LIBS=$ac_check_lib_save_LIBS
19721 fi
19722 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_init_io" >&5
19723 echo "${ECHO_T}$ac_cv_lib_png_png_init_io" >&6; }
19724 if test $ac_cv_lib_png_png_init_io = yes; then
19725   :
19726 else
19727   enable_sherry_wrd=no
19728 fi
19729
19730       if test "$enable_sherry_wrd" = yes; then
19731
19732 cat >>confdefs.h <<\_ACEOF
19733 #define ENABLE_SHERRY 1
19734 _ACEOF
19735
19736         lib_zip_opt=-lz
19737         lib_png_opt=-lpng
19738       else
19739          { echo "$as_me:$LINENO: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&5
19740 echo "$as_me: WARNING: Sherry WRD is disabled: png.h, libpng.a, libz.a are required" >&2;}
19741       fi
19742       if test "x$have_xext" = xyes; then
19743         lib_xext_opt=-lXext
19744       fi
19745     fi
19746 fi
19747
19748
19749
19750
19751
19752 #
19753 # Finish up
19754 #
19755
19756
19757
19758 if test "x$enable_wrd" = "xyes"; then
19759   ENABLE_WRD_TRUE=
19760   ENABLE_WRD_FALSE='#'
19761 else
19762   ENABLE_WRD_TRUE='#'
19763   ENABLE_WRD_FALSE=
19764 fi
19765
19766
19767
19768 if test "x$W32G_GUI" = xyes; then
19769   W32G_GUI_TRUE=
19770   W32G_GUI_FALSE='#'
19771 else
19772   W32G_GUI_TRUE='#'
19773   W32G_GUI_FALSE=
19774 fi
19775
19776
19777
19778 if test "x$WINDRV" = xyes; then
19779   WINDRV_TRUE=
19780   WINDRV_FALSE='#'
19781 else
19782   WINDRV_TRUE='#'
19783   WINDRV_FALSE=
19784 fi
19785
19786
19787
19788 if test "x$MSYS" = xyes; then
19789   MSYS_TRUE=
19790   MSYS_FALSE='#'
19791 else
19792   MSYS_TRUE='#'
19793   MSYS_FALSE=
19794 fi
19795
19796
19797
19798 if test "x$VCPP" = xyes; then
19799   VCPP_TRUE=
19800   VCPP_FALSE='#'
19801 else
19802   VCPP_TRUE='#'
19803   VCPP_FALSE=
19804 fi
19805
19806
19807
19808 if test "x$POCC" = xyes; then
19809   POCC_TRUE=
19810   POCC_FALSE='#'
19811 else
19812   POCC_TRUE='#'
19813   POCC_FALSE=
19814 fi
19815
19816
19817
19818 if test "x$BORLANDC" = xyes; then
19819   BORLANDC_TRUE=
19820   BORLANDC_FALSE='#'
19821 else
19822   BORLANDC_TRUE='#'
19823   BORLANDC_FALSE=
19824 fi
19825
19826
19827
19828 if test "x$WATCOM_C" = xyes; then
19829   WATCOM_C_TRUE=
19830   WATCOM_C_FALSE='#'
19831 else
19832   WATCOM_C_TRUE='#'
19833   WATCOM_C_FALSE=
19834 fi
19835
19836
19837
19838 if test "x$DMC" = xyes; then
19839   DMC_TRUE=
19840   DMC_FALSE='#'
19841 else
19842   DMC_TRUE='#'
19843   DMC_FALSE=
19844 fi
19845
19846
19847
19848 if test "x$MINGWGCC" = xyes; then
19849   MINGWGCC_TRUE=
19850   MINGWGCC_FALSE='#'
19851 else
19852   MINGWGCC_TRUE='#'
19853   MINGWGCC_FALSE=
19854 fi
19855
19856
19857
19858
19859 if test "x$W32READDIR" = "xyes"; then
19860   W32READDIR_TRUE=
19861   W32READDIR_FALSE='#'
19862 else
19863   W32READDIR_TRUE='#'
19864   W32READDIR_FALSE=
19865 fi
19866
19867
19868 rm -f wordtmp >/dev/null 2>&1
19869 val=''
19870 for f in $LDFLAGS; do
19871   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19872   :
19873 else
19874   echo $f >>wordtmp; val="$val $f"
19875 fi
19876
19877 done
19878 LDFLAGS="$val"
19879 rm -f wordtmp >/dev/null 2>&1
19880
19881 rm -f wordtmp >/dev/null 2>&1
19882 val=''
19883 for f in $SHLDFLAGS; do
19884   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19885   :
19886 else
19887   echo $f >>wordtmp; val="$val $f"
19888 fi
19889
19890 done
19891 SHLDFLAGS="$val"
19892 rm -f wordtmp >/dev/null 2>&1
19893
19894 rm -f wordtmp >/dev/null 2>&1
19895 val=''
19896 for f in $EXTRACFLAGS $CFLAGS; do
19897   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19898   :
19899 else
19900   echo $f >>wordtmp; val="$val $f"
19901 fi
19902
19903 done
19904 CFLAGS="$val"
19905 rm -f wordtmp >/dev/null 2>&1
19906
19907 rm -f wordtmp >/dev/null 2>&1
19908 val=''
19909 for f in $CPPFLAGS $EXTRADEFS; do
19910   if $contains "^$f"'$' wordtmp >/dev/null 2>&1; then
19911   :
19912 else
19913   echo $f >>wordtmp; val="$val $f"
19914 fi
19915
19916 done
19917 CPPFLAGS="$val"
19918 rm -f wordtmp >/dev/null 2>&1
19919
19920
19921 if test "x$oss_device" != x; then
19922
19923 cat >>confdefs.h <<_ACEOF
19924 #define OSS_DEVICE "$oss_device"
19925 _ACEOF
19926
19927 fi
19928
19929 if test "x$TIMIDITY_OUTPUT_ID" != x; then
19930
19931 cat >>confdefs.h <<_ACEOF
19932 #define TIMIDITY_OUTPUT_ID "$TIMIDITY_OUTPUT_ID"
19933 _ACEOF
19934
19935 fi
19936
19937 if test "x$with_x" = xyes; then
19938     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/"`
19939 fi
19940 LIBS="$LIBS $lib_dl_opt $lib_png_opt $lib_zip_opt $lib_user32_opt $lib_w32gui_opt $EXTRALIBS"
19941 SHLD="$SHLD $SHLDFLAGS"
19942
19943
19944
19945
19946
19947
19948
19949
19950
19951
19952
19953
19954
19955
19956
19957
19958
19959
19960
19961
19962
19963
19964
19965
19966
19967 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 windrv/Makefile utils/Makefile script/Makefile TiMidity.ad TiMidity-uj.ad"
19968
19969 cat >confcache <<\_ACEOF
19970 # This file is a shell script that caches the results of configure
19971 # tests run on this system so they can be shared between configure
19972 # scripts and configure runs, see configure's option --config-cache.
19973 # It is not useful on other systems.  If it contains results you don't
19974 # want to keep, you may remove or edit it.
19975 #
19976 # config.status only pays attention to the cache file if you give it
19977 # the --recheck option to rerun configure.
19978 #
19979 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19980 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19981 # following values.
19982
19983 _ACEOF
19984
19985 # The following way of writing the cache mishandles newlines in values,
19986 # but we know of no workaround that is simple, portable, and efficient.
19987 # So, we kill variables containing newlines.
19988 # Ultrix sh set writes to stderr and can't be redirected directly,
19989 # and sets the high bit in the cache file unless we assign to the vars.
19990 (
19991   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19992     eval ac_val=\$$ac_var
19993     case $ac_val in #(
19994     *${as_nl}*)
19995       case $ac_var in #(
19996       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19997 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19998       esac
19999       case $ac_var in #(
20000       _ | IFS | as_nl) ;; #(
20001       *) $as_unset $ac_var ;;
20002       esac ;;
20003     esac
20004   done
20005
20006   (set) 2>&1 |
20007     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20008     *${as_nl}ac_space=\ *)
20009       # `set' does not quote correctly, so add quotes (double-quote
20010       # substitution turns \\\\ into \\, and sed turns \\ into \).
20011       sed -n \
20012         "s/'/'\\\\''/g;
20013           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20014       ;; #(
20015     *)
20016       # `set' quotes correctly as required by POSIX, so do not add quotes.
20017       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20018       ;;
20019     esac |
20020     sort
20021 ) |
20022   sed '
20023      /^ac_cv_env_/b end
20024      t clear
20025      :clear
20026      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20027      t end
20028      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20029      :end' >>confcache
20030 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20031   if test -w "$cache_file"; then
20032     test "x$cache_file" != "x/dev/null" &&
20033       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20034 echo "$as_me: updating cache $cache_file" >&6;}
20035     cat confcache >$cache_file
20036   else
20037     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20038 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20039   fi
20040 fi
20041 rm -f confcache
20042
20043 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20044 # Let make expand exec_prefix.
20045 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20046
20047 DEFS=-DHAVE_CONFIG_H
20048
20049 ac_libobjs=
20050 ac_ltlibobjs=
20051 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20052   # 1. Remove the extension, and $U if already installed.
20053   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20054   ac_i=`echo "$ac_i" | sed "$ac_script"`
20055   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20056   #    will be set to the directory where LIBOBJS objects are built.
20057   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20058   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20059 done
20060 LIBOBJS=$ac_libobjs
20061
20062 LTLIBOBJS=$ac_ltlibobjs
20063
20064
20065 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20066   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20067 Usually this means the macro was only invoked conditionally." >&5
20068 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20069 Usually this means the macro was only invoked conditionally." >&2;}
20070    { (exit 1); exit 1; }; }
20071 fi
20072 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20073   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20074 Usually this means the macro was only invoked conditionally." >&5
20075 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20076 Usually this means the macro was only invoked conditionally." >&2;}
20077    { (exit 1); exit 1; }; }
20078 fi
20079 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20080   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20081 Usually this means the macro was only invoked conditionally." >&5
20082 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20083 Usually this means the macro was only invoked conditionally." >&2;}
20084    { (exit 1); exit 1; }; }
20085 fi
20086 if test -z "${NEEDGETOPT_TRUE}" && test -z "${NEEDGETOPT_FALSE}"; then
20087   { { echo "$as_me:$LINENO: error: conditional \"NEEDGETOPT\" was never defined.
20088 Usually this means the macro was only invoked conditionally." >&5
20089 echo "$as_me: error: conditional \"NEEDGETOPT\" was never defined.
20090 Usually this means the macro was only invoked conditionally." >&2;}
20091    { (exit 1); exit 1; }; }
20092 fi
20093 if test -z "${NEEDDLOPEN_TRUE}" && test -z "${NEEDDLOPEN_FALSE}"; then
20094   { { echo "$as_me:$LINENO: error: conditional \"NEEDDLOPEN\" was never defined.
20095 Usually this means the macro was only invoked conditionally." >&5
20096 echo "$as_me: error: conditional \"NEEDDLOPEN\" was never defined.
20097 Usually this means the macro was only invoked conditionally." >&2;}
20098    { (exit 1); exit 1; }; }
20099 fi
20100 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
20101   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
20102 Usually this means the macro was only invoked conditionally." >&5
20103 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
20104 Usually this means the macro was only invoked conditionally." >&2;}
20105    { (exit 1); exit 1; }; }
20106 fi
20107 if test -z "${ENABLE_NCURSES_TRUE}" && test -z "${ENABLE_NCURSES_FALSE}"; then
20108   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NCURSES\" was never defined.
20109 Usually this means the macro was only invoked conditionally." >&5
20110 echo "$as_me: error: conditional \"ENABLE_NCURSES\" was never defined.
20111 Usually this means the macro was only invoked conditionally." >&2;}
20112    { (exit 1); exit 1; }; }
20113 fi
20114 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
20115   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
20116 Usually this means the macro was only invoked conditionally." >&5
20117 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
20118 Usually this means the macro was only invoked conditionally." >&2;}
20119    { (exit 1); exit 1; }; }
20120 fi
20121 if test -z "${ENABLE_SLANG_TRUE}" && test -z "${ENABLE_SLANG_FALSE}"; then
20122   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SLANG\" was never defined.
20123 Usually this means the macro was only invoked conditionally." >&5
20124 echo "$as_me: error: conditional \"ENABLE_SLANG\" was never defined.
20125 Usually this means the macro was only invoked conditionally." >&2;}
20126    { (exit 1); exit 1; }; }
20127 fi
20128 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
20129   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
20130 Usually this means the macro was only invoked conditionally." >&5
20131 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
20132 Usually this means the macro was only invoked conditionally." >&2;}
20133    { (exit 1); exit 1; }; }
20134 fi
20135 if test -z "${ENABLE_MOTIF_TRUE}" && test -z "${ENABLE_MOTIF_FALSE}"; then
20136   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOTIF\" was never defined.
20137 Usually this means the macro was only invoked conditionally." >&5
20138 echo "$as_me: error: conditional \"ENABLE_MOTIF\" was never defined.
20139 Usually this means the macro was only invoked conditionally." >&2;}
20140    { (exit 1); exit 1; }; }
20141 fi
20142 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
20143   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
20144 Usually this means the macro was only invoked conditionally." >&5
20145 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
20146 Usually this means the macro was only invoked conditionally." >&2;}
20147    { (exit 1); exit 1; }; }
20148 fi
20149 if test -z "${ENABLE_TCLTK_TRUE}" && test -z "${ENABLE_TCLTK_FALSE}"; then
20150   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCLTK\" was never defined.
20151 Usually this means the macro was only invoked conditionally." >&5
20152 echo "$as_me: error: conditional \"ENABLE_TCLTK\" was never defined.
20153 Usually this means the macro was only invoked conditionally." >&2;}
20154    { (exit 1); exit 1; }; }
20155 fi
20156 if test -z "${ENABLE_DYNAMIC_TCLTK_TRUE}" && test -z "${ENABLE_DYNAMIC_TCLTK_FALSE}"; then
20157   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
20158 Usually this means the macro was only invoked conditionally." >&5
20159 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_TCLTK\" was never defined.
20160 Usually this means the macro was only invoked conditionally." >&2;}
20161    { (exit 1); exit 1; }; }
20162 fi
20163 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
20164   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
20165 Usually this means the macro was only invoked conditionally." >&5
20166 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
20167 Usually this means the macro was only invoked conditionally." >&2;}
20168    { (exit 1); exit 1; }; }
20169 fi
20170 if test -z "${ENABLE_EMACS_TRUE}" && test -z "${ENABLE_EMACS_FALSE}"; then
20171   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EMACS\" was never defined.
20172 Usually this means the macro was only invoked conditionally." >&5
20173 echo "$as_me: error: conditional \"ENABLE_EMACS\" was never defined.
20174 Usually this means the macro was only invoked conditionally." >&2;}
20175    { (exit 1); exit 1; }; }
20176 fi
20177 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
20178   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
20179 Usually this means the macro was only invoked conditionally." >&5
20180 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
20181 Usually this means the macro was only invoked conditionally." >&2;}
20182    { (exit 1); exit 1; }; }
20183 fi
20184 if test -z "${ENABLE_VT100_TRUE}" && test -z "${ENABLE_VT100_FALSE}"; then
20185   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_VT100\" was never defined.
20186 Usually this means the macro was only invoked conditionally." >&5
20187 echo "$as_me: error: conditional \"ENABLE_VT100\" was never defined.
20188 Usually this means the macro was only invoked conditionally." >&2;}
20189    { (exit 1); exit 1; }; }
20190 fi
20191 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
20192   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
20193 Usually this means the macro was only invoked conditionally." >&5
20194 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
20195 Usually this means the macro was only invoked conditionally." >&2;}
20196    { (exit 1); exit 1; }; }
20197 fi
20198 if test -z "${ENABLE_XAW_TRUE}" && test -z "${ENABLE_XAW_FALSE}"; then
20199   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XAW\" was never defined.
20200 Usually this means the macro was only invoked conditionally." >&5
20201 echo "$as_me: error: conditional \"ENABLE_XAW\" was never defined.
20202 Usually this means the macro was only invoked conditionally." >&2;}
20203    { (exit 1); exit 1; }; }
20204 fi
20205 if test -z "${ENABLE_DYNAMIC_XAW_TRUE}" && test -z "${ENABLE_DYNAMIC_XAW_FALSE}"; then
20206   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
20207 Usually this means the macro was only invoked conditionally." >&5
20208 echo "$as_me: error: conditional \"ENABLE_DYNAMIC_XAW\" was never defined.
20209 Usually this means the macro was only invoked conditionally." >&2;}
20210    { (exit 1); exit 1; }; }
20211 fi
20212 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
20213   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
20214 Usually this means the macro was only invoked conditionally." >&5
20215 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
20216 Usually this means the macro was only invoked conditionally." >&2;}
20217    { (exit 1); exit 1; }; }
20218 fi
20219 if test -z "${ENABLE_XSKIN_TRUE}" && test -z "${ENABLE_XSKIN_FALSE}"; then
20220   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XSKIN\" was never defined.
20221 Usually this means the macro was only invoked conditionally." >&5
20222 echo "$as_me: error: conditional \"ENABLE_XSKIN\" was never defined.
20223 Usually this means the macro was only invoked conditionally." >&2;}
20224    { (exit 1); exit 1; }; }
20225 fi
20226 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
20227   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
20228 Usually this means the macro was only invoked conditionally." >&5
20229 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
20230 Usually this means the macro was only invoked conditionally." >&2;}
20231    { (exit 1); exit 1; }; }
20232 fi
20233 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
20234   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK\" was never defined.
20235 Usually this means the macro was only invoked conditionally." >&5
20236 echo "$as_me: error: conditional \"ENABLE_GTK\" was never defined.
20237 Usually this means the macro was only invoked conditionally." >&2;}
20238    { (exit 1); exit 1; }; }
20239 fi
20240 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
20241   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
20242 Usually this means the macro was only invoked conditionally." >&5
20243 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
20244 Usually this means the macro was only invoked conditionally." >&2;}
20245    { (exit 1); exit 1; }; }
20246 fi
20247 if test -z "${ENABLE_SERVER_TRUE}" && test -z "${ENABLE_SERVER_FALSE}"; then
20248   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SERVER\" was never defined.
20249 Usually this means the macro was only invoked conditionally." >&5
20250 echo "$as_me: error: conditional \"ENABLE_SERVER\" was never defined.
20251 Usually this means the macro was only invoked conditionally." >&2;}
20252    { (exit 1); exit 1; }; }
20253 fi
20254 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
20255   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
20256 Usually this means the macro was only invoked conditionally." >&5
20257 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
20258 Usually this means the macro was only invoked conditionally." >&2;}
20259    { (exit 1); exit 1; }; }
20260 fi
20261 if test -z "${ENABLE_ALSASEQ_TRUE}" && test -z "${ENABLE_ALSASEQ_FALSE}"; then
20262   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ALSASEQ\" was never defined.
20263 Usually this means the macro was only invoked conditionally." >&5
20264 echo "$as_me: error: conditional \"ENABLE_ALSASEQ\" was never defined.
20265 Usually this means the macro was only invoked conditionally." >&2;}
20266    { (exit 1); exit 1; }; }
20267 fi
20268 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
20269   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
20270 Usually this means the macro was only invoked conditionally." >&5
20271 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
20272 Usually this means the macro was only invoked conditionally." >&2;}
20273    { (exit 1); exit 1; }; }
20274 fi
20275 if test -z "${ENABLE_WINSYN_TRUE}" && test -z "${ENABLE_WINSYN_FALSE}"; then
20276   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WINSYN\" was never defined.
20277 Usually this means the macro was only invoked conditionally." >&5
20278 echo "$as_me: error: conditional \"ENABLE_WINSYN\" was never defined.
20279 Usually this means the macro was only invoked conditionally." >&2;}
20280    { (exit 1); exit 1; }; }
20281 fi
20282 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
20283   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
20284 Usually this means the macro was only invoked conditionally." >&5
20285 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
20286 Usually this means the macro was only invoked conditionally." >&2;}
20287    { (exit 1); exit 1; }; }
20288 fi
20289 if test -z "${ENABLE_PORTMIDISYN_TRUE}" && test -z "${ENABLE_PORTMIDISYN_FALSE}"; then
20290   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
20291 Usually this means the macro was only invoked conditionally." >&5
20292 echo "$as_me: error: conditional \"ENABLE_PORTMIDISYN\" was never defined.
20293 Usually this means the macro was only invoked conditionally." >&2;}
20294    { (exit 1); exit 1; }; }
20295 fi
20296 if test -z "${ENABLE_NPSYN_TRUE}" && test -z "${ENABLE_NPSYN_FALSE}"; then
20297   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NPSYN\" was never defined.
20298 Usually this means the macro was only invoked conditionally." >&5
20299 echo "$as_me: error: conditional \"ENABLE_NPSYN\" was never defined.
20300 Usually this means the macro was only invoked conditionally." >&2;}
20301    { (exit 1); exit 1; }; }
20302 fi
20303 if test -z "${ENABLE_NPSYN_TRUE}" && test -z "${ENABLE_NPSYN_FALSE}"; then
20304   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NPSYN\" was never defined.
20305 Usually this means the macro was only invoked conditionally." >&5
20306 echo "$as_me: error: conditional \"ENABLE_NPSYN\" was never defined.
20307 Usually this means the macro was only invoked conditionally." >&2;}
20308    { (exit 1); exit 1; }; }
20309 fi
20310 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
20311   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
20312 Usually this means the macro was only invoked conditionally." >&5
20313 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
20314 Usually this means the macro was only invoked conditionally." >&2;}
20315    { (exit 1); exit 1; }; }
20316 fi
20317 if test -z "${ENABLE_W32G_SYN_TRUE}" && test -z "${ENABLE_W32G_SYN_FALSE}"; then
20318   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32G_SYN\" was never defined.
20319 Usually this means the macro was only invoked conditionally." >&5
20320 echo "$as_me: error: conditional \"ENABLE_W32G_SYN\" was never defined.
20321 Usually this means the macro was only invoked conditionally." >&2;}
20322    { (exit 1); exit 1; }; }
20323 fi
20324 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
20325   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
20326 Usually this means the macro was only invoked conditionally." >&5
20327 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
20328 Usually this means the macro was only invoked conditionally." >&2;}
20329    { (exit 1); exit 1; }; }
20330 fi
20331 if test -z "${ENABLE_W32GUI_TRUE}" && test -z "${ENABLE_W32GUI_FALSE}"; then
20332   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_W32GUI\" was never defined.
20333 Usually this means the macro was only invoked conditionally." >&5
20334 echo "$as_me: error: conditional \"ENABLE_W32GUI\" was never defined.
20335 Usually this means the macro was only invoked conditionally." >&2;}
20336    { (exit 1); exit 1; }; }
20337 fi
20338 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
20339   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
20340 Usually this means the macro was only invoked conditionally." >&5
20341 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
20342 Usually this means the macro was only invoked conditionally." >&2;}
20343    { (exit 1); exit 1; }; }
20344 fi
20345 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
20346   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PLUGIN\" was never defined.
20347 Usually this means the macro was only invoked conditionally." >&5
20348 echo "$as_me: error: conditional \"ENABLE_PLUGIN\" was never defined.
20349 Usually this means the macro was only invoked conditionally." >&2;}
20350    { (exit 1); exit 1; }; }
20351 fi
20352 if test -z "${ENABLE_NETWORK_TRUE}" && test -z "${ENABLE_NETWORK_FALSE}"; then
20353   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NETWORK\" was never defined.
20354 Usually this means the macro was only invoked conditionally." >&5
20355 echo "$as_me: error: conditional \"ENABLE_NETWORK\" was never defined.
20356 Usually this means the macro was only invoked conditionally." >&2;}
20357    { (exit 1); exit 1; }; }
20358 fi
20359 if test -z "${ENABLE_SOUND_SPEC_TRUE}" && test -z "${ENABLE_SOUND_SPEC_FALSE}"; then
20360   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
20361 Usually this means the macro was only invoked conditionally." >&5
20362 echo "$as_me: error: conditional \"ENABLE_SOUND_SPEC\" was never defined.
20363 Usually this means the macro was only invoked conditionally." >&2;}
20364    { (exit 1); exit 1; }; }
20365 fi
20366 if test -z "${ENABLE_WRD_TRUE}" && test -z "${ENABLE_WRD_FALSE}"; then
20367   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WRD\" was never defined.
20368 Usually this means the macro was only invoked conditionally." >&5
20369 echo "$as_me: error: conditional \"ENABLE_WRD\" was never defined.
20370 Usually this means the macro was only invoked conditionally." >&2;}
20371    { (exit 1); exit 1; }; }
20372 fi
20373 if test -z "${W32G_GUI_TRUE}" && test -z "${W32G_GUI_FALSE}"; then
20374   { { echo "$as_me:$LINENO: error: conditional \"W32G_GUI\" was never defined.
20375 Usually this means the macro was only invoked conditionally." >&5
20376 echo "$as_me: error: conditional \"W32G_GUI\" was never defined.
20377 Usually this means the macro was only invoked conditionally." >&2;}
20378    { (exit 1); exit 1; }; }
20379 fi
20380 if test -z "${WINDRV_TRUE}" && test -z "${WINDRV_FALSE}"; then
20381   { { echo "$as_me:$LINENO: error: conditional \"WINDRV\" was never defined.
20382 Usually this means the macro was only invoked conditionally." >&5
20383 echo "$as_me: error: conditional \"WINDRV\" was never defined.
20384 Usually this means the macro was only invoked conditionally." >&2;}
20385    { (exit 1); exit 1; }; }
20386 fi
20387 if test -z "${MSYS_TRUE}" && test -z "${MSYS_FALSE}"; then
20388   { { echo "$as_me:$LINENO: error: conditional \"MSYS\" was never defined.
20389 Usually this means the macro was only invoked conditionally." >&5
20390 echo "$as_me: error: conditional \"MSYS\" was never defined.
20391 Usually this means the macro was only invoked conditionally." >&2;}
20392    { (exit 1); exit 1; }; }
20393 fi
20394 if test -z "${VCPP_TRUE}" && test -z "${VCPP_FALSE}"; then
20395   { { echo "$as_me:$LINENO: error: conditional \"VCPP\" was never defined.
20396 Usually this means the macro was only invoked conditionally." >&5
20397 echo "$as_me: error: conditional \"VCPP\" was never defined.
20398 Usually this means the macro was only invoked conditionally." >&2;}
20399    { (exit 1); exit 1; }; }
20400 fi
20401 if test -z "${POCC_TRUE}" && test -z "${POCC_FALSE}"; then
20402   { { echo "$as_me:$LINENO: error: conditional \"POCC\" was never defined.
20403 Usually this means the macro was only invoked conditionally." >&5
20404 echo "$as_me: error: conditional \"POCC\" was never defined.
20405 Usually this means the macro was only invoked conditionally." >&2;}
20406    { (exit 1); exit 1; }; }
20407 fi
20408 if test -z "${BORLANDC_TRUE}" && test -z "${BORLANDC_FALSE}"; then
20409   { { echo "$as_me:$LINENO: error: conditional \"BORLANDC\" was never defined.
20410 Usually this means the macro was only invoked conditionally." >&5
20411 echo "$as_me: error: conditional \"BORLANDC\" was never defined.
20412 Usually this means the macro was only invoked conditionally." >&2;}
20413    { (exit 1); exit 1; }; }
20414 fi
20415 if test -z "${WATCOM_C_TRUE}" && test -z "${WATCOM_C_FALSE}"; then
20416   { { echo "$as_me:$LINENO: error: conditional \"WATCOM_C\" was never defined.
20417 Usually this means the macro was only invoked conditionally." >&5
20418 echo "$as_me: error: conditional \"WATCOM_C\" was never defined.
20419 Usually this means the macro was only invoked conditionally." >&2;}
20420    { (exit 1); exit 1; }; }
20421 fi
20422 if test -z "${DMC_TRUE}" && test -z "${DMC_FALSE}"; then
20423   { { echo "$as_me:$LINENO: error: conditional \"DMC\" was never defined.
20424 Usually this means the macro was only invoked conditionally." >&5
20425 echo "$as_me: error: conditional \"DMC\" was never defined.
20426 Usually this means the macro was only invoked conditionally." >&2;}
20427    { (exit 1); exit 1; }; }
20428 fi
20429 if test -z "${MINGWGCC_TRUE}" && test -z "${MINGWGCC_FALSE}"; then
20430   { { echo "$as_me:$LINENO: error: conditional \"MINGWGCC\" was never defined.
20431 Usually this means the macro was only invoked conditionally." >&5
20432 echo "$as_me: error: conditional \"MINGWGCC\" was never defined.
20433 Usually this means the macro was only invoked conditionally." >&2;}
20434    { (exit 1); exit 1; }; }
20435 fi
20436 if test -z "${W32READDIR_TRUE}" && test -z "${W32READDIR_FALSE}"; then
20437   { { echo "$as_me:$LINENO: error: conditional \"W32READDIR\" was never defined.
20438 Usually this means the macro was only invoked conditionally." >&5
20439 echo "$as_me: error: conditional \"W32READDIR\" was never defined.
20440 Usually this means the macro was only invoked conditionally." >&2;}
20441    { (exit 1); exit 1; }; }
20442 fi
20443
20444 : ${CONFIG_STATUS=./config.status}
20445 ac_clean_files_save=$ac_clean_files
20446 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20447 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20448 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20449 cat >$CONFIG_STATUS <<_ACEOF
20450 #! $SHELL
20451 # Generated by $as_me.
20452 # Run this file to recreate the current configuration.
20453 # Compiler output produced by configure, useful for debugging
20454 # configure, is in config.log if it exists.
20455
20456 debug=false
20457 ac_cs_recheck=false
20458 ac_cs_silent=false
20459 SHELL=\${CONFIG_SHELL-$SHELL}
20460 _ACEOF
20461
20462 cat >>$CONFIG_STATUS <<\_ACEOF
20463 ## --------------------- ##
20464 ## M4sh Initialization.  ##
20465 ## --------------------- ##
20466
20467 # Be more Bourne compatible
20468 DUALCASE=1; export DUALCASE # for MKS sh
20469 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20470   emulate sh
20471   NULLCMD=:
20472   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20473   # is contrary to our usage.  Disable this feature.
20474   alias -g '${1+"$@"}'='"$@"'
20475   setopt NO_GLOB_SUBST
20476 else
20477   case `(set -o) 2>/dev/null` in
20478   *posix*) set -o posix ;;
20479 esac
20480
20481 fi
20482
20483
20484
20485
20486 # PATH needs CR
20487 # Avoid depending upon Character Ranges.
20488 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20489 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20490 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20491 as_cr_digits='0123456789'
20492 as_cr_alnum=$as_cr_Letters$as_cr_digits
20493
20494 # The user is always right.
20495 if test "${PATH_SEPARATOR+set}" != set; then
20496   echo "#! /bin/sh" >conf$$.sh
20497   echo  "exit 0"   >>conf$$.sh
20498   chmod +x conf$$.sh
20499   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20500     PATH_SEPARATOR=';'
20501   else
20502     PATH_SEPARATOR=:
20503   fi
20504   rm -f conf$$.sh
20505 fi
20506
20507 # Support unset when possible.
20508 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20509   as_unset=unset
20510 else
20511   as_unset=false
20512 fi
20513
20514
20515 # IFS
20516 # We need space, tab and new line, in precisely that order.  Quoting is
20517 # there to prevent editors from complaining about space-tab.
20518 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20519 # splitting by setting IFS to empty value.)
20520 as_nl='
20521 '
20522 IFS=" ""        $as_nl"
20523
20524 # Find who we are.  Look in the path if we contain no directory separator.
20525 case $0 in
20526   *[\\/]* ) as_myself=$0 ;;
20527   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20528 for as_dir in $PATH
20529 do
20530   IFS=$as_save_IFS
20531   test -z "$as_dir" && as_dir=.
20532   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20533 done
20534 IFS=$as_save_IFS
20535
20536      ;;
20537 esac
20538 # We did not find ourselves, most probably we were run as `sh COMMAND'
20539 # in which case we are not to be found in the path.
20540 if test "x$as_myself" = x; then
20541   as_myself=$0
20542 fi
20543 if test ! -f "$as_myself"; then
20544   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20545   { (exit 1); exit 1; }
20546 fi
20547
20548 # Work around bugs in pre-3.0 UWIN ksh.
20549 for as_var in ENV MAIL MAILPATH
20550 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20551 done
20552 PS1='$ '
20553 PS2='> '
20554 PS4='+ '
20555
20556 # NLS nuisances.
20557 for as_var in \
20558   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20559   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20560   LC_TELEPHONE LC_TIME
20561 do
20562   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20563     eval $as_var=C; export $as_var
20564   else
20565     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20566   fi
20567 done
20568
20569 # Required to use basename.
20570 if expr a : '\(a\)' >/dev/null 2>&1 &&
20571    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20572   as_expr=expr
20573 else
20574   as_expr=false
20575 fi
20576
20577 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20578   as_basename=basename
20579 else
20580   as_basename=false
20581 fi
20582
20583
20584 # Name of the executable.
20585 as_me=`$as_basename -- "$0" ||
20586 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20587          X"$0" : 'X\(//\)$' \| \
20588          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20589 echo X/"$0" |
20590     sed '/^.*\/\([^/][^/]*\)\/*$/{
20591             s//\1/
20592             q
20593           }
20594           /^X\/\(\/\/\)$/{
20595             s//\1/
20596             q
20597           }
20598           /^X\/\(\/\).*/{
20599             s//\1/
20600             q
20601           }
20602           s/.*/./; q'`
20603
20604 # CDPATH.
20605 $as_unset CDPATH
20606
20607
20608
20609   as_lineno_1=$LINENO
20610   as_lineno_2=$LINENO
20611   test "x$as_lineno_1" != "x$as_lineno_2" &&
20612   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20613
20614   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20615   # uniformly replaced by the line number.  The first 'sed' inserts a
20616   # line-number line after each line using $LINENO; the second 'sed'
20617   # does the real work.  The second script uses 'N' to pair each
20618   # line-number line with the line containing $LINENO, and appends
20619   # trailing '-' during substitution so that $LINENO is not a special
20620   # case at line end.
20621   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20622   # scripts with optimization help from Paolo Bonzini.  Blame Lee
20623   # E. McMahon (1931-1989) for sed's syntax.  :-)
20624   sed -n '
20625     p
20626     /[$]LINENO/=
20627   ' <$as_myself |
20628     sed '
20629       s/[$]LINENO.*/&-/
20630       t lineno
20631       b
20632       :lineno
20633       N
20634       :loop
20635       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20636       t loop
20637       s/-\n.*//
20638     ' >$as_me.lineno &&
20639   chmod +x "$as_me.lineno" ||
20640     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20641    { (exit 1); exit 1; }; }
20642
20643   # Don't try to exec as it changes $[0], causing all sort of problems
20644   # (the dirname of $[0] is not the place where we might find the
20645   # original and so on.  Autoconf is especially sensitive to this).
20646   . "./$as_me.lineno"
20647   # Exit status is that of the last command.
20648   exit
20649 }
20650
20651
20652 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20653   as_dirname=dirname
20654 else
20655   as_dirname=false
20656 fi
20657
20658 ECHO_C= ECHO_N= ECHO_T=
20659 case `echo -n x` in
20660 -n*)
20661   case `echo 'x\c'` in
20662   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20663   *)   ECHO_C='\c';;
20664   esac;;
20665 *)
20666   ECHO_N='-n';;
20667 esac
20668
20669 if expr a : '\(a\)' >/dev/null 2>&1 &&
20670    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20671   as_expr=expr
20672 else
20673   as_expr=false
20674 fi
20675
20676 rm -f conf$$ conf$$.exe conf$$.file
20677 if test -d conf$$.dir; then
20678   rm -f conf$$.dir/conf$$.file
20679 else
20680   rm -f conf$$.dir
20681   mkdir conf$$.dir
20682 fi
20683 echo >conf$$.file
20684 if ln -s conf$$.file conf$$ 2>/dev/null; then
20685   as_ln_s='ln -s'
20686   # ... but there are two gotchas:
20687   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20688   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20689   # In both cases, we have to default to `cp -p'.
20690   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20691     as_ln_s='cp -p'
20692 elif ln conf$$.file conf$$ 2>/dev/null; then
20693   as_ln_s=ln
20694 else
20695   as_ln_s='cp -p'
20696 fi
20697 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20698 rmdir conf$$.dir 2>/dev/null
20699
20700 if mkdir -p . 2>/dev/null; then
20701   as_mkdir_p=:
20702 else
20703   test -d ./-p && rmdir ./-p
20704   as_mkdir_p=false
20705 fi
20706
20707 if test -x / >/dev/null 2>&1; then
20708   as_test_x='test -x'
20709 else
20710   if ls -dL / >/dev/null 2>&1; then
20711     as_ls_L_option=L
20712   else
20713     as_ls_L_option=
20714   fi
20715   as_test_x='
20716     eval sh -c '\''
20717       if test -d "$1"; then
20718         test -d "$1/.";
20719       else
20720         case $1 in
20721         -*)set "./$1";;
20722         esac;
20723         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20724         ???[sx]*):;;*)false;;esac;fi
20725     '\'' sh
20726   '
20727 fi
20728 as_executable_p=$as_test_x
20729
20730 # Sed expression to map a string onto a valid CPP name.
20731 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20732
20733 # Sed expression to map a string onto a valid variable name.
20734 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20735
20736
20737 exec 6>&1
20738
20739 # Save the log message, to keep $[0] and so on meaningful, and to
20740 # report actual input values of CONFIG_FILES etc. instead of their
20741 # values after options handling.
20742 ac_log="
20743 This file was extended by TiMidity++ $as_me 2.13.2, which was
20744 generated by GNU Autoconf 2.61.  Invocation command line was
20745
20746   CONFIG_FILES    = $CONFIG_FILES
20747   CONFIG_HEADERS  = $CONFIG_HEADERS
20748   CONFIG_LINKS    = $CONFIG_LINKS
20749   CONFIG_COMMANDS = $CONFIG_COMMANDS
20750   $ $0 $@
20751
20752 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20753 "
20754
20755 _ACEOF
20756
20757 cat >>$CONFIG_STATUS <<_ACEOF
20758 # Files that config.status was made for.
20759 config_files="$ac_config_files"
20760 config_headers="$ac_config_headers"
20761 config_commands="$ac_config_commands"
20762
20763 _ACEOF
20764
20765 cat >>$CONFIG_STATUS <<\_ACEOF
20766 ac_cs_usage="\
20767 \`$as_me' instantiates files from templates according to the
20768 current configuration.
20769
20770 Usage: $0 [OPTIONS] [FILE]...
20771
20772   -h, --help       print this help, then exit
20773   -V, --version    print version number and configuration settings, then exit
20774   -q, --quiet      do not print progress messages
20775   -d, --debug      don't remove temporary files
20776       --recheck    update $as_me by reconfiguring in the same conditions
20777   --file=FILE[:TEMPLATE]
20778                    instantiate the configuration file FILE
20779   --header=FILE[:TEMPLATE]
20780                    instantiate the configuration header FILE
20781
20782 Configuration files:
20783 $config_files
20784
20785 Configuration headers:
20786 $config_headers
20787
20788 Configuration commands:
20789 $config_commands
20790
20791 Report bugs to <bug-autoconf@gnu.org>."
20792
20793 _ACEOF
20794 cat >>$CONFIG_STATUS <<_ACEOF
20795 ac_cs_version="\\
20796 TiMidity++ config.status 2.13.2
20797 configured by $0, generated by GNU Autoconf 2.61,
20798   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20799
20800 Copyright (C) 2006 Free Software Foundation, Inc.
20801 This config.status script is free software; the Free Software Foundation
20802 gives unlimited permission to copy, distribute and modify it."
20803
20804 ac_pwd='$ac_pwd'
20805 srcdir='$srcdir'
20806 INSTALL='$INSTALL'
20807 _ACEOF
20808
20809 cat >>$CONFIG_STATUS <<\_ACEOF
20810 # If no file are specified by the user, then we need to provide default
20811 # value.  By we need to know if files were specified by the user.
20812 ac_need_defaults=:
20813 while test $# != 0
20814 do
20815   case $1 in
20816   --*=*)
20817     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20818     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20819     ac_shift=:
20820     ;;
20821   *)
20822     ac_option=$1
20823     ac_optarg=$2
20824     ac_shift=shift
20825     ;;
20826   esac
20827
20828   case $ac_option in
20829   # Handling of the options.
20830   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20831     ac_cs_recheck=: ;;
20832   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20833     echo "$ac_cs_version"; exit ;;
20834   --debug | --debu | --deb | --de | --d | -d )
20835     debug=: ;;
20836   --file | --fil | --fi | --f )
20837     $ac_shift
20838     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20839     ac_need_defaults=false;;
20840   --header | --heade | --head | --hea )
20841     $ac_shift
20842     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20843     ac_need_defaults=false;;
20844   --he | --h)
20845     # Conflict between --help and --header
20846     { echo "$as_me: error: ambiguous option: $1
20847 Try \`$0 --help' for more information." >&2
20848    { (exit 1); exit 1; }; };;
20849   --help | --hel | -h )
20850     echo "$ac_cs_usage"; exit ;;
20851   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20852   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20853     ac_cs_silent=: ;;
20854
20855   # This is an error.
20856   -*) { echo "$as_me: error: unrecognized option: $1
20857 Try \`$0 --help' for more information." >&2
20858    { (exit 1); exit 1; }; } ;;
20859
20860   *) ac_config_targets="$ac_config_targets $1"
20861      ac_need_defaults=false ;;
20862
20863   esac
20864   shift
20865 done
20866
20867 ac_configure_extra_args=
20868
20869 if $ac_cs_silent; then
20870   exec 6>/dev/null
20871   ac_configure_extra_args="$ac_configure_extra_args --silent"
20872 fi
20873
20874 _ACEOF
20875 cat >>$CONFIG_STATUS <<_ACEOF
20876 if \$ac_cs_recheck; then
20877   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20878   CONFIG_SHELL=$SHELL
20879   export CONFIG_SHELL
20880   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20881 fi
20882
20883 _ACEOF
20884 cat >>$CONFIG_STATUS <<\_ACEOF
20885 exec 5>>config.log
20886 {
20887   echo
20888   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20889 ## Running $as_me. ##
20890 _ASBOX
20891   echo "$ac_log"
20892 } >&5
20893
20894 _ACEOF
20895 cat >>$CONFIG_STATUS <<_ACEOF
20896 #
20897 # INIT-COMMANDS
20898 #
20899 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20900
20901 _ACEOF
20902
20903 cat >>$CONFIG_STATUS <<\_ACEOF
20904
20905 # Handling of arguments.
20906 for ac_config_target in $ac_config_targets
20907 do
20908   case $ac_config_target in
20909     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20910     "interface.h") CONFIG_HEADERS="$CONFIG_HEADERS interface.h" ;;
20911     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20912     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20913     "autoconf/Makefile") CONFIG_FILES="$CONFIG_FILES autoconf/Makefile" ;;
20914     "common.makefile") CONFIG_FILES="$CONFIG_FILES common.makefile" ;;
20915     "configs/Makefile") CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
20916     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20917     "doc/C/Makefile") CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
20918     "doc/ja_JP.eucJP/Makefile") CONFIG_FILES="$CONFIG_FILES doc/ja_JP.eucJP/Makefile" ;;
20919     "interface/Makefile") CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
20920     "interface/motif_bitmaps/Makefile") CONFIG_FILES="$CONFIG_FILES interface/motif_bitmaps/Makefile" ;;
20921     "interface/bitmaps/Makefile") CONFIG_FILES="$CONFIG_FILES interface/bitmaps/Makefile" ;;
20922     "interface/pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES interface/pixmaps/Makefile" ;;
20923     "libarc/Makefile") CONFIG_FILES="$CONFIG_FILES libarc/Makefile" ;;
20924     "libunimod/Makefile") CONFIG_FILES="$CONFIG_FILES libunimod/Makefile" ;;
20925     "timidity/Makefile") CONFIG_FILES="$CONFIG_FILES timidity/Makefile" ;;
20926     "windrv/Makefile") CONFIG_FILES="$CONFIG_FILES windrv/Makefile" ;;
20927     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
20928     "script/Makefile") CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
20929     "TiMidity.ad") CONFIG_FILES="$CONFIG_FILES TiMidity.ad" ;;
20930     "TiMidity-uj.ad") CONFIG_FILES="$CONFIG_FILES TiMidity-uj.ad" ;;
20931
20932   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20933 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20934    { (exit 1); exit 1; }; };;
20935   esac
20936 done
20937
20938
20939 # If the user did not use the arguments to specify the items to instantiate,
20940 # then the envvar interface is used.  Set only those that are not.
20941 # We use the long form for the default assignment because of an extremely
20942 # bizarre bug on SunOS 4.1.3.
20943 if $ac_need_defaults; then
20944   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20945   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20946   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20947 fi
20948
20949 # Have a temporary directory for convenience.  Make it in the build tree
20950 # simply because there is no reason against having it here, and in addition,
20951 # creating and moving files from /tmp can sometimes cause problems.
20952 # Hook for its removal unless debugging.
20953 # Note that there is a small window in which the directory will not be cleaned:
20954 # after its creation but before its name has been assigned to `$tmp'.
20955 $debug ||
20956 {
20957   tmp=
20958   trap 'exit_status=$?
20959   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20960 ' 0
20961   trap '{ (exit 1); exit 1; }' 1 2 13 15
20962 }
20963 # Create a (secure) tmp directory for tmp files.
20964
20965 {
20966   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20967   test -n "$tmp" && test -d "$tmp"
20968 }  ||
20969 {
20970   tmp=./conf$$-$RANDOM
20971   (umask 077 && mkdir "$tmp")
20972 } ||
20973 {
20974    echo "$me: cannot create a temporary directory in ." >&2
20975    { (exit 1); exit 1; }
20976 }
20977
20978 #
20979 # Set up the sed scripts for CONFIG_FILES section.
20980 #
20981
20982 # No need to generate the scripts if there are no CONFIG_FILES.
20983 # This happens for instance when ./config.status config.h
20984 if test -n "$CONFIG_FILES"; then
20985
20986 _ACEOF
20987
20988
20989
20990 ac_delim='%!_!# '
20991 for ac_last_try in false false false false false :; do
20992   cat >conf$$subs.sed <<_ACEOF
20993 SHELL!$SHELL$ac_delim
20994 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20995 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20996 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20997 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20998 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20999 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21000 exec_prefix!$exec_prefix$ac_delim
21001 prefix!$prefix$ac_delim
21002 program_transform_name!$program_transform_name$ac_delim
21003 bindir!$bindir$ac_delim
21004 sbindir!$sbindir$ac_delim
21005 libexecdir!$libexecdir$ac_delim
21006 datarootdir!$datarootdir$ac_delim
21007 datadir!$datadir$ac_delim
21008 sysconfdir!$sysconfdir$ac_delim
21009 sharedstatedir!$sharedstatedir$ac_delim
21010 localstatedir!$localstatedir$ac_delim
21011 includedir!$includedir$ac_delim
21012 oldincludedir!$oldincludedir$ac_delim
21013 docdir!$docdir$ac_delim
21014 infodir!$infodir$ac_delim
21015 htmldir!$htmldir$ac_delim
21016 dvidir!$dvidir$ac_delim
21017 pdfdir!$pdfdir$ac_delim
21018 psdir!$psdir$ac_delim
21019 libdir!$libdir$ac_delim
21020 localedir!$localedir$ac_delim
21021 mandir!$mandir$ac_delim
21022 DEFS!$DEFS$ac_delim
21023 ECHO_C!$ECHO_C$ac_delim
21024 ECHO_N!$ECHO_N$ac_delim
21025 ECHO_T!$ECHO_T$ac_delim
21026 LIBS!$LIBS$ac_delim
21027 build_alias!$build_alias$ac_delim
21028 host_alias!$host_alias$ac_delim
21029 target_alias!$target_alias$ac_delim
21030 build!$build$ac_delim
21031 build_cpu!$build_cpu$ac_delim
21032 build_vendor!$build_vendor$ac_delim
21033 build_os!$build_os$ac_delim
21034 host!$host$ac_delim
21035 host_cpu!$host_cpu$ac_delim
21036 host_vendor!$host_vendor$ac_delim
21037 host_os!$host_os$ac_delim
21038 target!$target$ac_delim
21039 target_cpu!$target_cpu$ac_delim
21040 target_vendor!$target_vendor$ac_delim
21041 target_os!$target_os$ac_delim
21042 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21043 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21044 INSTALL_DATA!$INSTALL_DATA$ac_delim
21045 CYGPATH_W!$CYGPATH_W$ac_delim
21046 PACKAGE!$PACKAGE$ac_delim
21047 VERSION!$VERSION$ac_delim
21048 ACLOCAL!$ACLOCAL$ac_delim
21049 AUTOCONF!$AUTOCONF$ac_delim
21050 AUTOMAKE!$AUTOMAKE$ac_delim
21051 AUTOHEADER!$AUTOHEADER$ac_delim
21052 MAKEINFO!$MAKEINFO$ac_delim
21053 AMTAR!$AMTAR$ac_delim
21054 install_sh!$install_sh$ac_delim
21055 STRIP!$STRIP$ac_delim
21056 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21057 AWK!$AWK$ac_delim
21058 SET_MAKE!$SET_MAKE$ac_delim
21059 am__leading_dot!$am__leading_dot$ac_delim
21060 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
21061 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
21062 MAINT!$MAINT$ac_delim
21063 EMACS!$EMACS$ac_delim
21064 lispdir!$lispdir$ac_delim
21065 CC!$CC$ac_delim
21066 CFLAGS!$CFLAGS$ac_delim
21067 LDFLAGS!$LDFLAGS$ac_delim
21068 CPPFLAGS!$CPPFLAGS$ac_delim
21069 ac_ct_CC!$ac_ct_CC$ac_delim
21070 EXEEXT!$EXEEXT$ac_delim
21071 OBJEXT!$OBJEXT$ac_delim
21072 DEPDIR!$DEPDIR$ac_delim
21073 am__include!$am__include$ac_delim
21074 am__quote!$am__quote$ac_delim
21075 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21076 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21077 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21078 CCDEPMODE!$CCDEPMODE$ac_delim
21079 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21080 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21081 CPP!$CPP$ac_delim
21082 GREP!$GREP$ac_delim
21083 EGREP!$EGREP$ac_delim
21084 RANLIB!$RANLIB$ac_delim
21085 LN_S!$LN_S$ac_delim
21086 XMKMF!$XMKMF$ac_delim
21087 X_CFLAGS!$X_CFLAGS$ac_delim
21088 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
21089 X_LIBS!$X_LIBS$ac_delim
21090 _ACEOF
21091
21092   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21093     break
21094   elif $ac_last_try; then
21095     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21096 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21097    { (exit 1); exit 1; }; }
21098   else
21099     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21100   fi
21101 done
21102
21103 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21104 if test -n "$ac_eof"; then
21105   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21106   ac_eof=`expr $ac_eof + 1`
21107 fi
21108
21109 cat >>$CONFIG_STATUS <<_ACEOF
21110 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21111 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21112 _ACEOF
21113 sed '
21114 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21115 s/^/s,@/; s/!/@,|#_!!_#|/
21116 :n
21117 t n
21118 s/'"$ac_delim"'$/,g/; t
21119 s/$/\\/; p
21120 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21121 ' >>$CONFIG_STATUS <conf$$subs.sed
21122 rm -f conf$$subs.sed
21123 cat >>$CONFIG_STATUS <<_ACEOF
21124 CEOF$ac_eof
21125 _ACEOF
21126
21127
21128 ac_delim='%!_!# '
21129 for ac_last_try in false false false false false :; do
21130   cat >conf$$subs.sed <<_ACEOF
21131 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
21132 LIBOBJS!$LIBOBJS$ac_delim
21133 NEEDGETOPT_TRUE!$NEEDGETOPT_TRUE$ac_delim
21134 NEEDGETOPT_FALSE!$NEEDGETOPT_FALSE$ac_delim
21135 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
21136 ALSA_LIBS!$ALSA_LIBS$ac_delim
21137 ARTSCCONFIG!$ARTSCCONFIG$ac_delim
21138 ARTSLIBS!$ARTSLIBS$ac_delim
21139 ARTSINCL!$ARTSINCL$ac_delim
21140 ESD_CONFIG!$ESD_CONFIG$ac_delim
21141 ESD_CFLAGS!$ESD_CFLAGS$ac_delim
21142 ESD_LIBS!$ESD_LIBS$ac_delim
21143 AO_CFLAGS!$AO_CFLAGS$ac_delim
21144 AO_LIBS!$AO_LIBS$ac_delim
21145 VORBIS_CFLAGS!$VORBIS_CFLAGS$ac_delim
21146 VORBIS_LIBS!$VORBIS_LIBS$ac_delim
21147 VORBISFILE_LIBS!$VORBISFILE_LIBS$ac_delim
21148 VORBISENC_LIBS!$VORBISENC_LIBS$ac_delim
21149 OGG_CFLAGS!$OGG_CFLAGS$ac_delim
21150 OGG_LIBS!$OGG_LIBS$ac_delim
21151 LIBFLAC_CFLAGS!$LIBFLAC_CFLAGS$ac_delim
21152 LIBFLAC_LIBS!$LIBFLAC_LIBS$ac_delim
21153 LIBOGGFLAC_CFLAGS!$LIBOGGFLAC_CFLAGS$ac_delim
21154 LIBOGGFLAC_LIBS!$LIBOGGFLAC_LIBS$ac_delim
21155 NEEDDLOPEN_TRUE!$NEEDDLOPEN_TRUE$ac_delim
21156 NEEDDLOPEN_FALSE!$NEEDDLOPEN_FALSE$ac_delim
21157 ENABLE_NCURSES_TRUE!$ENABLE_NCURSES_TRUE$ac_delim
21158 ENABLE_NCURSES_FALSE!$ENABLE_NCURSES_FALSE$ac_delim
21159 n_so_libs!$n_so_libs$ac_delim
21160 ENABLE_SLANG_TRUE!$ENABLE_SLANG_TRUE$ac_delim
21161 ENABLE_SLANG_FALSE!$ENABLE_SLANG_FALSE$ac_delim
21162 s_so_libs!$s_so_libs$ac_delim
21163 ENABLE_MOTIF_TRUE!$ENABLE_MOTIF_TRUE$ac_delim
21164 ENABLE_MOTIF_FALSE!$ENABLE_MOTIF_FALSE$ac_delim
21165 m_so_libs!$m_so_libs$ac_delim
21166 ENABLE_TCLTK_TRUE!$ENABLE_TCLTK_TRUE$ac_delim
21167 ENABLE_TCLTK_FALSE!$ENABLE_TCLTK_FALSE$ac_delim
21168 k_so_libs!$k_so_libs$ac_delim
21169 ENABLE_DYNAMIC_TCLTK_TRUE!$ENABLE_DYNAMIC_TCLTK_TRUE$ac_delim
21170 ENABLE_DYNAMIC_TCLTK_FALSE!$ENABLE_DYNAMIC_TCLTK_FALSE$ac_delim
21171 ENABLE_EMACS_TRUE!$ENABLE_EMACS_TRUE$ac_delim
21172 ENABLE_EMACS_FALSE!$ENABLE_EMACS_FALSE$ac_delim
21173 e_so_libs!$e_so_libs$ac_delim
21174 ENABLE_VT100_TRUE!$ENABLE_VT100_TRUE$ac_delim
21175 ENABLE_VT100_FALSE!$ENABLE_VT100_FALSE$ac_delim
21176 T_so_libs!$T_so_libs$ac_delim
21177 ENABLE_XAW_TRUE!$ENABLE_XAW_TRUE$ac_delim
21178 ENABLE_XAW_FALSE!$ENABLE_XAW_FALSE$ac_delim
21179 a_so_libs!$a_so_libs$ac_delim
21180 ENABLE_DYNAMIC_XAW_TRUE!$ENABLE_DYNAMIC_XAW_TRUE$ac_delim
21181 ENABLE_DYNAMIC_XAW_FALSE!$ENABLE_DYNAMIC_XAW_FALSE$ac_delim
21182 ENABLE_XSKIN_TRUE!$ENABLE_XSKIN_TRUE$ac_delim
21183 ENABLE_XSKIN_FALSE!$ENABLE_XSKIN_FALSE$ac_delim
21184 i_so_libs!$i_so_libs$ac_delim
21185 ENABLE_GTK_TRUE!$ENABLE_GTK_TRUE$ac_delim
21186 ENABLE_GTK_FALSE!$ENABLE_GTK_FALSE$ac_delim
21187 PKG_CONFIG!$PKG_CONFIG$ac_delim
21188 GTK_CONFIG!$GTK_CONFIG$ac_delim
21189 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
21190 GTK_LIBS!$GTK_LIBS$ac_delim
21191 g_so_libs!$g_so_libs$ac_delim
21192 ENABLE_SERVER_TRUE!$ENABLE_SERVER_TRUE$ac_delim
21193 ENABLE_SERVER_FALSE!$ENABLE_SERVER_FALSE$ac_delim
21194 r_so_libs!$r_so_libs$ac_delim
21195 ENABLE_ALSASEQ_TRUE!$ENABLE_ALSASEQ_TRUE$ac_delim
21196 ENABLE_ALSASEQ_FALSE!$ENABLE_ALSASEQ_FALSE$ac_delim
21197 A_so_libs!$A_so_libs$ac_delim
21198 ENABLE_WINSYN_TRUE!$ENABLE_WINSYN_TRUE$ac_delim
21199 ENABLE_WINSYN_FALSE!$ENABLE_WINSYN_FALSE$ac_delim
21200 W_so_libs!$W_so_libs$ac_delim
21201 ENABLE_PORTMIDISYN_TRUE!$ENABLE_PORTMIDISYN_TRUE$ac_delim
21202 ENABLE_PORTMIDISYN_FALSE!$ENABLE_PORTMIDISYN_FALSE$ac_delim
21203 P_so_libs!$P_so_libs$ac_delim
21204 ENABLE_NPSYN_TRUE!$ENABLE_NPSYN_TRUE$ac_delim
21205 ENABLE_NPSYN_FALSE!$ENABLE_NPSYN_FALSE$ac_delim
21206 ENABLE_W32G_SYN_TRUE!$ENABLE_W32G_SYN_TRUE$ac_delim
21207 ENABLE_W32G_SYN_FALSE!$ENABLE_W32G_SYN_FALSE$ac_delim
21208 ENABLE_W32GUI_TRUE!$ENABLE_W32GUI_TRUE$ac_delim
21209 ENABLE_W32GUI_FALSE!$ENABLE_W32GUI_FALSE$ac_delim
21210 w_so_libs!$w_so_libs$ac_delim
21211 ENABLE_PLUGIN_TRUE!$ENABLE_PLUGIN_TRUE$ac_delim
21212 ENABLE_PLUGIN_FALSE!$ENABLE_PLUGIN_FALSE$ac_delim
21213 p_so_libs!$p_so_libs$ac_delim
21214 ENABLE_NETWORK_TRUE!$ENABLE_NETWORK_TRUE$ac_delim
21215 ENABLE_NETWORK_FALSE!$ENABLE_NETWORK_FALSE$ac_delim
21216 ENABLE_SOUND_SPEC_TRUE!$ENABLE_SOUND_SPEC_TRUE$ac_delim
21217 ENABLE_SOUND_SPEC_FALSE!$ENABLE_SOUND_SPEC_FALSE$ac_delim
21218 ENABLE_WRD_TRUE!$ENABLE_WRD_TRUE$ac_delim
21219 ENABLE_WRD_FALSE!$ENABLE_WRD_FALSE$ac_delim
21220 W32G_GUI_TRUE!$W32G_GUI_TRUE$ac_delim
21221 W32G_GUI_FALSE!$W32G_GUI_FALSE$ac_delim
21222 WINDRV_TRUE!$WINDRV_TRUE$ac_delim
21223 WINDRV_FALSE!$WINDRV_FALSE$ac_delim
21224 MSYS_TRUE!$MSYS_TRUE$ac_delim
21225 MSYS_FALSE!$MSYS_FALSE$ac_delim
21226 VCPP_TRUE!$VCPP_TRUE$ac_delim
21227 VCPP_FALSE!$VCPP_FALSE$ac_delim
21228 _ACEOF
21229
21230   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21231     break
21232   elif $ac_last_try; then
21233     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21234 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21235    { (exit 1); exit 1; }; }
21236   else
21237     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21238   fi
21239 done
21240
21241 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21242 if test -n "$ac_eof"; then
21243   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21244   ac_eof=`expr $ac_eof + 1`
21245 fi
21246
21247 cat >>$CONFIG_STATUS <<_ACEOF
21248 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21249 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21250 _ACEOF
21251 sed '
21252 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21253 s/^/s,@/; s/!/@,|#_!!_#|/
21254 :n
21255 t n
21256 s/'"$ac_delim"'$/,g/; t
21257 s/$/\\/; p
21258 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21259 ' >>$CONFIG_STATUS <conf$$subs.sed
21260 rm -f conf$$subs.sed
21261 cat >>$CONFIG_STATUS <<_ACEOF
21262 CEOF$ac_eof
21263 _ACEOF
21264
21265
21266 ac_delim='%!_!# '
21267 for ac_last_try in false false false false false :; do
21268   cat >conf$$subs.sed <<_ACEOF
21269 POCC_TRUE!$POCC_TRUE$ac_delim
21270 POCC_FALSE!$POCC_FALSE$ac_delim
21271 BORLANDC_TRUE!$BORLANDC_TRUE$ac_delim
21272 BORLANDC_FALSE!$BORLANDC_FALSE$ac_delim
21273 WATCOM_C_TRUE!$WATCOM_C_TRUE$ac_delim
21274 WATCOM_C_FALSE!$WATCOM_C_FALSE$ac_delim
21275 DMC_TRUE!$DMC_TRUE$ac_delim
21276 DMC_FALSE!$DMC_FALSE$ac_delim
21277 MINGWGCC_TRUE!$MINGWGCC_TRUE$ac_delim
21278 MINGWGCC_FALSE!$MINGWGCC_FALSE$ac_delim
21279 W32READDIR_TRUE!$W32READDIR_TRUE$ac_delim
21280 W32READDIR_FALSE!$W32READDIR_FALSE$ac_delim
21281 BORLANDC_START!$BORLANDC_START$ac_delim
21282 BORLANDC_LDFLAGS!$BORLANDC_LDFLAGS$ac_delim
21283 timidity_LDFLAGS!$timidity_LDFLAGS$ac_delim
21284 WATCOM_LDFLAGS!$WATCOM_LDFLAGS$ac_delim
21285 DMC_LDFLAGS!$DMC_LDFLAGS$ac_delim
21286 VCPP_LDFLAGS!$VCPP_LDFLAGS$ac_delim
21287 POCC_LDFLAGS!$POCC_LDFLAGS$ac_delim
21288 SYSEXTRAS!$SYSEXTRAS$ac_delim
21289 EXTRALIBS!$EXTRALIBS$ac_delim
21290 NETSRCS!$NETSRCS$ac_delim
21291 ELFILES!$ELFILES$ac_delim
21292 SHLD!$SHLD$ac_delim
21293 SHCFLAGS!$SHCFLAGS$ac_delim
21294 dynamic_targets!$dynamic_targets$ac_delim
21295 so!$so$ac_delim
21296 WISH!$WISH$ac_delim
21297 tcltk_dep!$tcltk_dep$ac_delim
21298 INTERFACE_SRCS!$INTERFACE_SRCS$ac_delim
21299 pkgdatadir!$pkgdatadir$ac_delim
21300 pkglibdir!$pkglibdir$ac_delim
21301 LTLIBOBJS!$LTLIBOBJS$ac_delim
21302 _ACEOF
21303
21304   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 33; then
21305     break
21306   elif $ac_last_try; then
21307     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21308 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21309    { (exit 1); exit 1; }; }
21310   else
21311     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21312   fi
21313 done
21314
21315 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21316 if test -n "$ac_eof"; then
21317   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21318   ac_eof=`expr $ac_eof + 1`
21319 fi
21320
21321 cat >>$CONFIG_STATUS <<_ACEOF
21322 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
21323 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21324 _ACEOF
21325 sed '
21326 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21327 s/^/s,@/; s/!/@,|#_!!_#|/
21328 :n
21329 t n
21330 s/'"$ac_delim"'$/,g/; t
21331 s/$/\\/; p
21332 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21333 ' >>$CONFIG_STATUS <conf$$subs.sed
21334 rm -f conf$$subs.sed
21335 cat >>$CONFIG_STATUS <<_ACEOF
21336 :end
21337 s/|#_!!_#|//g
21338 CEOF$ac_eof
21339 _ACEOF
21340
21341
21342 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21343 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21344 # trailing colons and then remove the whole line if VPATH becomes empty
21345 # (actually we leave an empty line to preserve line numbers).
21346 if test "x$srcdir" = x.; then
21347   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21348 s/:*\$(srcdir):*/:/
21349 s/:*\${srcdir}:*/:/
21350 s/:*@srcdir@:*/:/
21351 s/^\([^=]*=[     ]*\):*/\1/
21352 s/:*$//
21353 s/^[^=]*=[       ]*$//
21354 }'
21355 fi
21356
21357 cat >>$CONFIG_STATUS <<\_ACEOF
21358 fi # test -n "$CONFIG_FILES"
21359
21360
21361 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21362 do
21363   case $ac_tag in
21364   :[FHLC]) ac_mode=$ac_tag; continue;;
21365   esac
21366   case $ac_mode$ac_tag in
21367   :[FHL]*:*);;
21368   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21369 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21370    { (exit 1); exit 1; }; };;
21371   :[FH]-) ac_tag=-:-;;
21372   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21373   esac
21374   ac_save_IFS=$IFS
21375   IFS=:
21376   set x $ac_tag
21377   IFS=$ac_save_IFS
21378   shift
21379   ac_file=$1
21380   shift
21381
21382   case $ac_mode in
21383   :L) ac_source=$1;;
21384   :[FH])
21385     ac_file_inputs=
21386     for ac_f
21387     do
21388       case $ac_f in
21389       -) ac_f="$tmp/stdin";;
21390       *) # Look for the file first in the build tree, then in the source tree
21391          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21392          # because $ac_f cannot contain `:'.
21393          test -f "$ac_f" ||
21394            case $ac_f in
21395            [\\/$]*) false;;
21396            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21397            esac ||
21398            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21399 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21400    { (exit 1); exit 1; }; };;
21401       esac
21402       ac_file_inputs="$ac_file_inputs $ac_f"
21403     done
21404
21405     # Let's still pretend it is `configure' which instantiates (i.e., don't
21406     # use $as_me), people would be surprised to read:
21407     #    /* config.h.  Generated by config.status.  */
21408     configure_input="Generated from "`IFS=:
21409           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21410     if test x"$ac_file" != x-; then
21411       configure_input="$ac_file.  $configure_input"
21412       { echo "$as_me:$LINENO: creating $ac_file" >&5
21413 echo "$as_me: creating $ac_file" >&6;}
21414     fi
21415
21416     case $ac_tag in
21417     *:-:* | *:-) cat >"$tmp/stdin";;
21418     esac
21419     ;;
21420   esac
21421
21422   ac_dir=`$as_dirname -- "$ac_file" ||
21423 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21424          X"$ac_file" : 'X\(//\)[^/]' \| \
21425          X"$ac_file" : 'X\(//\)$' \| \
21426          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21427 echo X"$ac_file" |
21428     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21429             s//\1/
21430             q
21431           }
21432           /^X\(\/\/\)[^/].*/{
21433             s//\1/
21434             q
21435           }
21436           /^X\(\/\/\)$/{
21437             s//\1/
21438             q
21439           }
21440           /^X\(\/\).*/{
21441             s//\1/
21442             q
21443           }
21444           s/.*/./; q'`
21445   { as_dir="$ac_dir"
21446   case $as_dir in #(
21447   -*) as_dir=./$as_dir;;
21448   esac
21449   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21450     as_dirs=
21451     while :; do
21452       case $as_dir in #(
21453       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21454       *) as_qdir=$as_dir;;
21455       esac
21456       as_dirs="'$as_qdir' $as_dirs"
21457       as_dir=`$as_dirname -- "$as_dir" ||
21458 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21459          X"$as_dir" : 'X\(//\)[^/]' \| \
21460          X"$as_dir" : 'X\(//\)$' \| \
21461          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21462 echo X"$as_dir" |
21463     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21464             s//\1/
21465             q
21466           }
21467           /^X\(\/\/\)[^/].*/{
21468             s//\1/
21469             q
21470           }
21471           /^X\(\/\/\)$/{
21472             s//\1/
21473             q
21474           }
21475           /^X\(\/\).*/{
21476             s//\1/
21477             q
21478           }
21479           s/.*/./; q'`
21480       test -d "$as_dir" && break
21481     done
21482     test -z "$as_dirs" || eval "mkdir $as_dirs"
21483   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21484 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21485    { (exit 1); exit 1; }; }; }
21486   ac_builddir=.
21487
21488 case "$ac_dir" in
21489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21490 *)
21491   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21492   # A ".." for each directory in $ac_dir_suffix.
21493   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21494   case $ac_top_builddir_sub in
21495   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21496   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21497   esac ;;
21498 esac
21499 ac_abs_top_builddir=$ac_pwd
21500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21501 # for backward compatibility:
21502 ac_top_builddir=$ac_top_build_prefix
21503
21504 case $srcdir in
21505   .)  # We are building in place.
21506     ac_srcdir=.
21507     ac_top_srcdir=$ac_top_builddir_sub
21508     ac_abs_top_srcdir=$ac_pwd ;;
21509   [\\/]* | ?:[\\/]* )  # Absolute name.
21510     ac_srcdir=$srcdir$ac_dir_suffix;
21511     ac_top_srcdir=$srcdir
21512     ac_abs_top_srcdir=$srcdir ;;
21513   *) # Relative name.
21514     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21515     ac_top_srcdir=$ac_top_build_prefix$srcdir
21516     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21517 esac
21518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21519
21520
21521   case $ac_mode in
21522   :F)
21523   #
21524   # CONFIG_FILE
21525   #
21526
21527   case $INSTALL in
21528   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21529   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21530   esac
21531 _ACEOF
21532
21533 cat >>$CONFIG_STATUS <<\_ACEOF
21534 # If the template does not know about datarootdir, expand it.
21535 # FIXME: This hack should be removed a few years after 2.60.
21536 ac_datarootdir_hack=; ac_datarootdir_seen=
21537
21538 case `sed -n '/datarootdir/ {
21539   p
21540   q
21541 }
21542 /@datadir@/p
21543 /@docdir@/p
21544 /@infodir@/p
21545 /@localedir@/p
21546 /@mandir@/p
21547 ' $ac_file_inputs` in
21548 *datarootdir*) ac_datarootdir_seen=yes;;
21549 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21550   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21551 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21552 _ACEOF
21553 cat >>$CONFIG_STATUS <<_ACEOF
21554   ac_datarootdir_hack='
21555   s&@datadir@&$datadir&g
21556   s&@docdir@&$docdir&g
21557   s&@infodir@&$infodir&g
21558   s&@localedir@&$localedir&g
21559   s&@mandir@&$mandir&g
21560     s&\\\${datarootdir}&$datarootdir&g' ;;
21561 esac
21562 _ACEOF
21563
21564 # Neutralize VPATH when `$srcdir' = `.'.
21565 # Shell code in configure.ac might set extrasub.
21566 # FIXME: do we really want to maintain this feature?
21567 cat >>$CONFIG_STATUS <<_ACEOF
21568   sed "$ac_vpsub
21569 $extrasub
21570 _ACEOF
21571 cat >>$CONFIG_STATUS <<\_ACEOF
21572 :t
21573 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21574 s&@configure_input@&$configure_input&;t t
21575 s&@top_builddir@&$ac_top_builddir_sub&;t t
21576 s&@srcdir@&$ac_srcdir&;t t
21577 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21578 s&@top_srcdir@&$ac_top_srcdir&;t t
21579 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21580 s&@builddir@&$ac_builddir&;t t
21581 s&@abs_builddir@&$ac_abs_builddir&;t t
21582 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21583 s&@INSTALL@&$ac_INSTALL&;t t
21584 $ac_datarootdir_hack
21585 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
21586
21587 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21588   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21589   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21590   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21591 which seems to be undefined.  Please make sure it is defined." >&5
21592 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21593 which seems to be undefined.  Please make sure it is defined." >&2;}
21594
21595   rm -f "$tmp/stdin"
21596   case $ac_file in
21597   -) cat "$tmp/out"; rm -f "$tmp/out";;
21598   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21599   esac
21600  ;;
21601   :H)
21602   #
21603   # CONFIG_HEADER
21604   #
21605 _ACEOF
21606
21607 # Transform confdefs.h into a sed script `conftest.defines', that
21608 # substitutes the proper values into config.h.in to produce config.h.
21609 rm -f conftest.defines conftest.tail
21610 # First, append a space to every undef/define line, to ease matching.
21611 echo 's/$/ /' >conftest.defines
21612 # Then, protect against being on the right side of a sed subst, or in
21613 # an unquoted here document, in config.status.  If some macros were
21614 # called several times there might be several #defines for the same
21615 # symbol, which is useless.  But do not sort them, since the last
21616 # AC_DEFINE must be honored.
21617 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21618 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21619 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21620 # PARAMS is the parameter list in the macro definition--in most cases, it's
21621 # just an empty string.
21622 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
21623 ac_dB='\\)[      (].*,\\1define\\2'
21624 ac_dC=' '
21625 ac_dD=' ,'
21626
21627 uniq confdefs.h |
21628   sed -n '
21629         t rset
21630         :rset
21631         s/^[     ]*#[    ]*define[       ][      ]*//
21632         t ok
21633         d
21634         :ok
21635         s/[\\&,]/\\&/g
21636         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21637         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21638   ' >>conftest.defines
21639
21640 # Remove the space that was appended to ease matching.
21641 # Then replace #undef with comments.  This is necessary, for
21642 # example, in the case of _POSIX_SOURCE, which is predefined and required
21643 # on some systems where configure will not decide to define it.
21644 # (The regexp can be short, since the line contains either #define or #undef.)
21645 echo 's/ $//
21646 s,^[     #]*u.*,/* & */,' >>conftest.defines
21647
21648 # Break up conftest.defines:
21649 ac_max_sed_lines=50
21650
21651 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21652 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21653 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21654 # et cetera.
21655 ac_in='$ac_file_inputs'
21656 ac_out='"$tmp/out1"'
21657 ac_nxt='"$tmp/out2"'
21658
21659 while :
21660 do
21661   # Write a here document:
21662     cat >>$CONFIG_STATUS <<_ACEOF
21663     # First, check the format of the line:
21664     cat >"\$tmp/defines.sed" <<\\CEOF
21665 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
21666 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
21667 b
21668 :def
21669 _ACEOF
21670   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21671   echo 'CEOF
21672     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21673   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21674   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21675   grep . conftest.tail >/dev/null || break
21676   rm -f conftest.defines
21677   mv conftest.tail conftest.defines
21678 done
21679 rm -f conftest.defines conftest.tail
21680
21681 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21682 cat >>$CONFIG_STATUS <<\_ACEOF
21683   if test x"$ac_file" != x-; then
21684     echo "/* $configure_input  */" >"$tmp/config.h"
21685     cat "$ac_result" >>"$tmp/config.h"
21686     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21687       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21688 echo "$as_me: $ac_file is unchanged" >&6;}
21689     else
21690       rm -f $ac_file
21691       mv "$tmp/config.h" $ac_file
21692     fi
21693   else
21694     echo "/* $configure_input  */"
21695     cat "$ac_result"
21696   fi
21697   rm -f "$tmp/out12"
21698 # Compute $ac_file's index in $config_headers.
21699 _am_stamp_count=1
21700 for _am_header in $config_headers :; do
21701   case $_am_header in
21702     $ac_file | $ac_file:* )
21703       break ;;
21704     * )
21705       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21706   esac
21707 done
21708 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21709 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21710          X$ac_file : 'X\(//\)[^/]' \| \
21711          X$ac_file : 'X\(//\)$' \| \
21712          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21713 echo X$ac_file |
21714     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21715             s//\1/
21716             q
21717           }
21718           /^X\(\/\/\)[^/].*/{
21719             s//\1/
21720             q
21721           }
21722           /^X\(\/\/\)$/{
21723             s//\1/
21724             q
21725           }
21726           /^X\(\/\).*/{
21727             s//\1/
21728             q
21729           }
21730           s/.*/./; q'`/stamp-h$_am_stamp_count
21731  ;;
21732
21733   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21734 echo "$as_me: executing $ac_file commands" >&6;}
21735  ;;
21736   esac
21737
21738
21739   case $ac_file$ac_mode in
21740     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21741   # Strip MF so we end up with the name of the file.
21742   mf=`echo "$mf" | sed -e 's/:.*$//'`
21743   # Check whether this is an Automake generated Makefile or not.
21744   # We used to match only the files named `Makefile.in', but
21745   # some people rename them; so instead we look at the file content.
21746   # Grep'ing the first line is not enough: some people post-process
21747   # each Makefile.in and add a new line on top of each file to say so.
21748   # So let's grep whole file.
21749   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21750     dirpart=`$as_dirname -- "$mf" ||
21751 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21752          X"$mf" : 'X\(//\)[^/]' \| \
21753          X"$mf" : 'X\(//\)$' \| \
21754          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21755 echo X"$mf" |
21756     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21757             s//\1/
21758             q
21759           }
21760           /^X\(\/\/\)[^/].*/{
21761             s//\1/
21762             q
21763           }
21764           /^X\(\/\/\)$/{
21765             s//\1/
21766             q
21767           }
21768           /^X\(\/\).*/{
21769             s//\1/
21770             q
21771           }
21772           s/.*/./; q'`
21773   else
21774     continue
21775   fi
21776   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
21777   # Extract the definition of DEP_FILES from the Makefile without
21778   # running `make'.
21779   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
21780   test -z "$DEPDIR" && continue
21781   # When using ansi2knr, U may be empty or an underscore; expand it
21782   U=`sed -n -e '/^U = / s///p' < "$mf"`
21783   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
21784   # We invoke sed twice because it is the simplest approach to
21785   # changing $(DEPDIR) to its actual value in the expansion.
21786   for file in `sed -n -e '
21787     /^DEP_FILES = .*\\\\$/ {
21788       s/^DEP_FILES = //
21789       :loop
21790         s/\\\\$//
21791         p
21792         n
21793         /\\\\$/ b loop
21794       p
21795     }
21796     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
21797        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21798     # Make sure the directory exists.
21799     test -f "$dirpart/$file" && continue
21800     fdir=`$as_dirname -- "$file" ||
21801 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21802          X"$file" : 'X\(//\)[^/]' \| \
21803          X"$file" : 'X\(//\)$' \| \
21804          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21805 echo X"$file" |
21806     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21807             s//\1/
21808             q
21809           }
21810           /^X\(\/\/\)[^/].*/{
21811             s//\1/
21812             q
21813           }
21814           /^X\(\/\/\)$/{
21815             s//\1/
21816             q
21817           }
21818           /^X\(\/\).*/{
21819             s//\1/
21820             q
21821           }
21822           s/.*/./; q'`
21823     { as_dir=$dirpart/$fdir
21824   case $as_dir in #(
21825   -*) as_dir=./$as_dir;;
21826   esac
21827   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21828     as_dirs=
21829     while :; do
21830       case $as_dir in #(
21831       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21832       *) as_qdir=$as_dir;;
21833       esac
21834       as_dirs="'$as_qdir' $as_dirs"
21835       as_dir=`$as_dirname -- "$as_dir" ||
21836 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21837          X"$as_dir" : 'X\(//\)[^/]' \| \
21838          X"$as_dir" : 'X\(//\)$' \| \
21839          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21840 echo X"$as_dir" |
21841     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21842             s//\1/
21843             q
21844           }
21845           /^X\(\/\/\)[^/].*/{
21846             s//\1/
21847             q
21848           }
21849           /^X\(\/\/\)$/{
21850             s//\1/
21851             q
21852           }
21853           /^X\(\/\).*/{
21854             s//\1/
21855             q
21856           }
21857           s/.*/./; q'`
21858       test -d "$as_dir" && break
21859     done
21860     test -z "$as_dirs" || eval "mkdir $as_dirs"
21861   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21862 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21863    { (exit 1); exit 1; }; }; }
21864     # echo "creating $dirpart/$file"
21865     echo '# dummy' > "$dirpart/$file"
21866   done
21867 done
21868  ;;
21869
21870   esac
21871 done # for ac_tag
21872
21873
21874 { (exit 0); exit 0; }
21875 _ACEOF
21876 chmod +x $CONFIG_STATUS
21877 ac_clean_files=$ac_clean_files_save
21878
21879
21880 # configure is writing to config.log, and then calls config.status.
21881 # config.status does its own redirection, appending to config.log.
21882 # Unfortunately, on DOS this fails, as config.log is still kept open
21883 # by configure, so config.status won't be able to write to it; its
21884 # output is simply discarded.  So we exec the FD to /dev/null,
21885 # effectively closing config.log, so it can be properly (re)opened and
21886 # appended to by config.status.  When coming back to configure, we
21887 # need to make the FD available again.
21888 if test "$no_create" != yes; then
21889   ac_cs_success=:
21890   ac_config_status_args=
21891   test "$silent" = yes &&
21892     ac_config_status_args="$ac_config_status_args --quiet"
21893   exec 5>/dev/null
21894   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21895   exec 5>>config.log
21896   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21897   # would make configure fail if this is the last instruction.
21898   $ac_cs_success || { (exit 1); exit 1; }
21899 fi
21900