1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
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
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212  IFS=$as_save_IFS
213  test -z "$as_dir" && as_dir=.
214  as_found=:
215  case $as_dir in #(
216	 /*)
217	   for as_base in sh bash ksh sh5; do
218	     # Try only shells that exist, to save several forks.
219	     as_shell=$as_dir/$as_base
220	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222  CONFIG_SHELL=$as_shell as_have_required=yes
223		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  break 2
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233  CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238      if test "x$CONFIG_SHELL" != x; then :
239  export CONFIG_SHELL
240             # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260    if test x$as_have_required = xno; then :
261  $as_echo "$0: This script requires a shell more modern than all"
262  $as_echo "$0: the shells that I found on your system."
263  if test x${ZSH_VERSION+set} = xset ; then
264    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266  else
267    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271  fi
272  exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299  return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307  set +e
308  as_fn_set_status $1
309  exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318  case $as_dir in #(
319  -*) as_dir=./$as_dir;;
320  esac
321  test -d "$as_dir" || eval $as_mkdir_p || {
322    as_dirs=
323    while :; do
324      case $as_dir in #(
325      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326      *) as_qdir=$as_dir;;
327      esac
328      as_dirs="'$as_qdir' $as_dirs"
329      as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331	 X"$as_dir" : 'X\(//\)[^/]' \| \
332	 X"$as_dir" : 'X\(//\)$' \| \
333	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336	    s//\1/
337	    q
338	  }
339	  /^X\(\/\/\)[^/].*/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\).*/{
348	    s//\1/
349	    q
350	  }
351	  s/.*/./; q'`
352      test -d "$as_dir" && break
353    done
354    test -z "$as_dirs" || eval "mkdir $as_dirs"
355  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365  test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374  eval 'as_fn_append ()
375  {
376    eval $1+=\$2
377  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410  as_status=$1; test $as_status -eq 0 && as_status=1
411  if test "$4"; then
412    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414  fi
415  $as_echo "$as_me: error: $2" >&2
416  as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440	 X"$0" : 'X\(//\)$' \| \
441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443    sed '/^.*\/\([^/][^/]*\)\/*$/{
444	    s//\1/
445	    q
446	  }
447	  /^X\/\(\/\/\)$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\).*/{
452	    s//\1/
453	    q
454	  }
455	  s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470  sed -n '
471    p
472    /[$]LINENO/=
473  ' <$as_myself |
474    sed '
475      s/[$]LINENO.*/&-/
476      t lineno
477      b
478      :lineno
479      N
480      :loop
481      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482      t loop
483      s/-\n.*//
484    ' >$as_me.lineno &&
485  chmod +x "$as_me.lineno" ||
486    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489  # already done that, so ensure we don't try to do so again and fall
490  # in an infinite loop.  This has already happened in practice.
491  _as_can_reexec=no; export _as_can_reexec
492  # Don't try to exec as it changes $[0], causing all sort of problems
493  # (the dirname of $[0] is not the place where we might find the
494  # original and so on.  Autoconf is especially sensitive to this).
495  . "./$as_me.lineno"
496  # Exit status is that of the last command.
497  exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503  case `echo 'xy\c'` in
504  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505  xy)  ECHO_C='\c';;
506  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507       ECHO_T='	';;
508  esac;;
509*)
510  ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521  if ln -s conf$$.file conf$$ 2>/dev/null; then
522    as_ln_s='ln -s'
523    # ... but there are two gotchas:
524    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526    # In both cases, we have to default to `cp -pR'.
527    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528      as_ln_s='cp -pR'
529  elif ln conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s=ln
531  else
532    as_ln_s='cp -pR'
533  fi
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
583PACKAGE_URL=
584
585ac_unique_file="src/chunk.c"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
589#ifdef HAVE_SYS_TYPES_H
590# include <sys/types.h>
591#endif
592#ifdef HAVE_SYS_STAT_H
593# include <sys/stat.h>
594#endif
595#ifdef STDC_HEADERS
596# include <stdlib.h>
597# include <stddef.h>
598#else
599# ifdef HAVE_STDLIB_H
600#  include <stdlib.h>
601# endif
602#endif
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605#  include <memory.h>
606# endif
607# include <string.h>
608#endif
609#ifdef HAVE_STRINGS_H
610# include <strings.h>
611#endif
612#ifdef HAVE_INTTYPES_H
613# include <inttypes.h>
614#endif
615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
618#ifdef HAVE_UNISTD_H
619# include <unistd.h>
620#endif"
621
622ac_subst_vars='am__EXEEXT_FALSE
623am__EXEEXT_TRUE
624LTLIBOBJS
625POW_LIB
626LIBOBJS
627GTHREAD_LIBS
628GTHREAD_CFLAGS
629GTK_CONFIG
630GTK_LIBS
631GTK_CFLAGS
632ARTSC_LIBS
633ARTSC_CFLAGS
634ARTSC_CONFIG
635ESOUND_LIBS
636ESOUND_CFLAGS
637PULSE_LIBS
638PULSE_CFLAGS
639JACK_LIBS
640JACK_CFLAGS
641ALSALIB_LIBS
642SDL_LIBS
643SDL_CFLAGS
644SDL_CONFIG
645PORTAUDIO_LIBS
646LIBSAMPLERATE_LIBS
647LIBSAMPLERATE_CFLAGS
648SNDFILE_LIBS
649SNDFILE_CFLAGS
650LN_S
651EGREP
652GREP
653CPP
654PKG_CONFIG_LIBDIR
655PKG_CONFIG_PATH
656PKG_CONFIG
657POSUB
658LTLIBINTL
659LIBINTL
660INTLLIBS
661LTLIBICONV
662LIBICONV
663USE_NLS
664am__fastdepCC_FALSE
665am__fastdepCC_TRUE
666CCDEPMODE
667am__nodep
668AMDEPBACKSLASH
669AMDEP_FALSE
670AMDEP_TRUE
671am__quote
672am__include
673DEPDIR
674OBJEXT
675EXEEXT
676ac_ct_CC
677CPPFLAGS
678LDFLAGS
679CFLAGS
680CC
681MSGMERGE
682XGETTEXT
683GMSGFMT
684MSGFMT
685MKINSTALLDIRS
686MAINT
687MAINTAINER_MODE_FALSE
688MAINTAINER_MODE_TRUE
689AM_BACKSLASH
690AM_DEFAULT_VERBOSITY
691AM_DEFAULT_V
692AM_V
693am__untar
694am__tar
695AMTAR
696am__leading_dot
697SET_MAKE
698AWK
699mkdir_p
700MKDIR_P
701INSTALL_STRIP_PROGRAM
702STRIP
703install_sh
704MAKEINFO
705AUTOHEADER
706AUTOMAKE
707AUTOCONF
708ACLOCAL
709VERSION
710PACKAGE
711CYGPATH_W
712am__isrc
713INSTALL_DATA
714INSTALL_SCRIPT
715INSTALL_PROGRAM
716target_os
717target_vendor
718target_cpu
719target
720host_os
721host_vendor
722host_cpu
723host
724build_os
725build_vendor
726build_cpu
727build
728target_alias
729host_alias
730build_alias
731LIBS
732ECHO_T
733ECHO_N
734ECHO_C
735DEFS
736mandir
737localedir
738libdir
739psdir
740pdfdir
741dvidir
742htmldir
743infodir
744docdir
745oldincludedir
746includedir
747localstatedir
748sharedstatedir
749sysconfdir
750datadir
751datarootdir
752libexecdir
753sbindir
754bindir
755program_transform_name
756prefix
757exec_prefix
758PACKAGE_URL
759PACKAGE_BUGREPORT
760PACKAGE_STRING
761PACKAGE_VERSION
762PACKAGE_TARNAME
763PACKAGE_NAME
764PATH_SEPARATOR
765SHELL'
766ac_subst_files=''
767ac_user_opts='
768enable_option_checking
769enable_silent_rules
770enable_maintainer_mode
771enable_dependency_tracking
772with_gnu_ld
773enable_rpath
774with_libiconv_prefix
775enable_nls
776with_libintl_prefix
777with_double_samples
778with_check_casts
779enable_werror
780with_default_driver
781with_default_ladspa_path
782with_default_mixerapp
783with_build_date
784with_build_time
785with_libsndfile
786with_libsamplerate
787with_portaudio
788with_sdl
789with_sdl_prefix
790with_sdl_exec_prefix
791enable_sdltest
792with_alsalib
793with_oss
794with_jack
795with_pulse
796with_esound
797with_sun
798with_arts
799enable_gtk2
800enable_gtktest
801with_gtk_prefix
802with_gtk_exec_prefix
803enable_largefile
804enable_ladspa
805'
806      ac_precious_vars='build_alias
807host_alias
808target_alias
809CC
810CFLAGS
811LDFLAGS
812LIBS
813CPPFLAGS
814PKG_CONFIG
815PKG_CONFIG_PATH
816PKG_CONFIG_LIBDIR
817CPP
818SNDFILE_CFLAGS
819SNDFILE_LIBS
820LIBSAMPLERATE_CFLAGS
821LIBSAMPLERATE_LIBS
822JACK_CFLAGS
823JACK_LIBS
824PULSE_CFLAGS
825PULSE_LIBS
826ESOUND_CFLAGS
827ESOUND_LIBS
828GTHREAD_CFLAGS
829GTHREAD_LIBS'
830
831
832# Initialize some variables set by options.
833ac_init_help=
834ac_init_version=false
835ac_unrecognized_opts=
836ac_unrecognized_sep=
837# The variables have the same names as the options, with
838# dashes changed to underlines.
839cache_file=/dev/null
840exec_prefix=NONE
841no_create=
842no_recursion=
843prefix=NONE
844program_prefix=NONE
845program_suffix=NONE
846program_transform_name=s,x,x,
847silent=
848site=
849srcdir=
850verbose=
851x_includes=NONE
852x_libraries=NONE
853
854# Installation directory options.
855# These are left unexpanded so users can "make install exec_prefix=/foo"
856# and all the variables that are supposed to be based on exec_prefix
857# by default will actually change.
858# Use braces instead of parens because sh, perl, etc. also accept them.
859# (The list follows the same order as the GNU Coding Standards.)
860bindir='${exec_prefix}/bin'
861sbindir='${exec_prefix}/sbin'
862libexecdir='${exec_prefix}/libexec'
863datarootdir='${prefix}/share'
864datadir='${datarootdir}'
865sysconfdir='${prefix}/etc'
866sharedstatedir='${prefix}/com'
867localstatedir='${prefix}/var'
868includedir='${prefix}/include'
869oldincludedir='/usr/include'
870docdir='${datarootdir}/doc/${PACKAGE}'
871infodir='${datarootdir}/info'
872htmldir='${docdir}'
873dvidir='${docdir}'
874pdfdir='${docdir}'
875psdir='${docdir}'
876libdir='${exec_prefix}/lib'
877localedir='${datarootdir}/locale'
878mandir='${datarootdir}/man'
879
880ac_prev=
881ac_dashdash=
882for ac_option
883do
884  # If the previous option needs an argument, assign it.
885  if test -n "$ac_prev"; then
886    eval $ac_prev=\$ac_option
887    ac_prev=
888    continue
889  fi
890
891  case $ac_option in
892  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893  *=)   ac_optarg= ;;
894  *)    ac_optarg=yes ;;
895  esac
896
897  # Accept the important Cygnus configure options, so we can diagnose typos.
898
899  case $ac_dashdash$ac_option in
900  --)
901    ac_dashdash=yes ;;
902
903  -bindir | --bindir | --bindi | --bind | --bin | --bi)
904    ac_prev=bindir ;;
905  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
906    bindir=$ac_optarg ;;
907
908  -build | --build | --buil | --bui | --bu)
909    ac_prev=build_alias ;;
910  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
911    build_alias=$ac_optarg ;;
912
913  -cache-file | --cache-file | --cache-fil | --cache-fi \
914  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
915    ac_prev=cache_file ;;
916  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
917  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
918    cache_file=$ac_optarg ;;
919
920  --config-cache | -C)
921    cache_file=config.cache ;;
922
923  -datadir | --datadir | --datadi | --datad)
924    ac_prev=datadir ;;
925  -datadir=* | --datadir=* | --datadi=* | --datad=*)
926    datadir=$ac_optarg ;;
927
928  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
929  | --dataroo | --dataro | --datar)
930    ac_prev=datarootdir ;;
931  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
932  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
933    datarootdir=$ac_optarg ;;
934
935  -disable-* | --disable-*)
936    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
937    # Reject names that are not valid shell variable names.
938    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939      as_fn_error $? "invalid feature name: $ac_useropt"
940    ac_useropt_orig=$ac_useropt
941    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942    case $ac_user_opts in
943      *"
944"enable_$ac_useropt"
945"*) ;;
946      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
947	 ac_unrecognized_sep=', ';;
948    esac
949    eval enable_$ac_useropt=no ;;
950
951  -docdir | --docdir | --docdi | --doc | --do)
952    ac_prev=docdir ;;
953  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
954    docdir=$ac_optarg ;;
955
956  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957    ac_prev=dvidir ;;
958  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
959    dvidir=$ac_optarg ;;
960
961  -enable-* | --enable-*)
962    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
963    # Reject names that are not valid shell variable names.
964    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965      as_fn_error $? "invalid feature name: $ac_useropt"
966    ac_useropt_orig=$ac_useropt
967    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968    case $ac_user_opts in
969      *"
970"enable_$ac_useropt"
971"*) ;;
972      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
973	 ac_unrecognized_sep=', ';;
974    esac
975    eval enable_$ac_useropt=\$ac_optarg ;;
976
977  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
978  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
979  | --exec | --exe | --ex)
980    ac_prev=exec_prefix ;;
981  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
982  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
983  | --exec=* | --exe=* | --ex=*)
984    exec_prefix=$ac_optarg ;;
985
986  -gas | --gas | --ga | --g)
987    # Obsolete; use --with-gas.
988    with_gas=yes ;;
989
990  -help | --help | --hel | --he | -h)
991    ac_init_help=long ;;
992  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
993    ac_init_help=recursive ;;
994  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
995    ac_init_help=short ;;
996
997  -host | --host | --hos | --ho)
998    ac_prev=host_alias ;;
999  -host=* | --host=* | --hos=* | --ho=*)
1000    host_alias=$ac_optarg ;;
1001
1002  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1003    ac_prev=htmldir ;;
1004  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1005  | --ht=*)
1006    htmldir=$ac_optarg ;;
1007
1008  -includedir | --includedir | --includedi | --included | --include \
1009  | --includ | --inclu | --incl | --inc)
1010    ac_prev=includedir ;;
1011  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1012  | --includ=* | --inclu=* | --incl=* | --inc=*)
1013    includedir=$ac_optarg ;;
1014
1015  -infodir | --infodir | --infodi | --infod | --info | --inf)
1016    ac_prev=infodir ;;
1017  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1018    infodir=$ac_optarg ;;
1019
1020  -libdir | --libdir | --libdi | --libd)
1021    ac_prev=libdir ;;
1022  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1023    libdir=$ac_optarg ;;
1024
1025  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1026  | --libexe | --libex | --libe)
1027    ac_prev=libexecdir ;;
1028  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1029  | --libexe=* | --libex=* | --libe=*)
1030    libexecdir=$ac_optarg ;;
1031
1032  -localedir | --localedir | --localedi | --localed | --locale)
1033    ac_prev=localedir ;;
1034  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1035    localedir=$ac_optarg ;;
1036
1037  -localstatedir | --localstatedir | --localstatedi | --localstated \
1038  | --localstate | --localstat | --localsta | --localst | --locals)
1039    ac_prev=localstatedir ;;
1040  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1041  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1042    localstatedir=$ac_optarg ;;
1043
1044  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1045    ac_prev=mandir ;;
1046  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1047    mandir=$ac_optarg ;;
1048
1049  -nfp | --nfp | --nf)
1050    # Obsolete; use --without-fp.
1051    with_fp=no ;;
1052
1053  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1054  | --no-cr | --no-c | -n)
1055    no_create=yes ;;
1056
1057  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1058  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1059    no_recursion=yes ;;
1060
1061  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1062  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1063  | --oldin | --oldi | --old | --ol | --o)
1064    ac_prev=oldincludedir ;;
1065  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1066  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1067  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1068    oldincludedir=$ac_optarg ;;
1069
1070  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1071    ac_prev=prefix ;;
1072  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1073    prefix=$ac_optarg ;;
1074
1075  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1076  | --program-pre | --program-pr | --program-p)
1077    ac_prev=program_prefix ;;
1078  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1079  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1080    program_prefix=$ac_optarg ;;
1081
1082  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1083  | --program-suf | --program-su | --program-s)
1084    ac_prev=program_suffix ;;
1085  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1086  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1087    program_suffix=$ac_optarg ;;
1088
1089  -program-transform-name | --program-transform-name \
1090  | --program-transform-nam | --program-transform-na \
1091  | --program-transform-n | --program-transform- \
1092  | --program-transform | --program-transfor \
1093  | --program-transfo | --program-transf \
1094  | --program-trans | --program-tran \
1095  | --progr-tra | --program-tr | --program-t)
1096    ac_prev=program_transform_name ;;
1097  -program-transform-name=* | --program-transform-name=* \
1098  | --program-transform-nam=* | --program-transform-na=* \
1099  | --program-transform-n=* | --program-transform-=* \
1100  | --program-transform=* | --program-transfor=* \
1101  | --program-transfo=* | --program-transf=* \
1102  | --program-trans=* | --program-tran=* \
1103  | --progr-tra=* | --program-tr=* | --program-t=*)
1104    program_transform_name=$ac_optarg ;;
1105
1106  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1107    ac_prev=pdfdir ;;
1108  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1109    pdfdir=$ac_optarg ;;
1110
1111  -psdir | --psdir | --psdi | --psd | --ps)
1112    ac_prev=psdir ;;
1113  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1114    psdir=$ac_optarg ;;
1115
1116  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1117  | -silent | --silent | --silen | --sile | --sil)
1118    silent=yes ;;
1119
1120  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121    ac_prev=sbindir ;;
1122  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123  | --sbi=* | --sb=*)
1124    sbindir=$ac_optarg ;;
1125
1126  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128  | --sharedst | --shareds | --shared | --share | --shar \
1129  | --sha | --sh)
1130    ac_prev=sharedstatedir ;;
1131  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134  | --sha=* | --sh=*)
1135    sharedstatedir=$ac_optarg ;;
1136
1137  -site | --site | --sit)
1138    ac_prev=site ;;
1139  -site=* | --site=* | --sit=*)
1140    site=$ac_optarg ;;
1141
1142  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143    ac_prev=srcdir ;;
1144  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1145    srcdir=$ac_optarg ;;
1146
1147  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148  | --syscon | --sysco | --sysc | --sys | --sy)
1149    ac_prev=sysconfdir ;;
1150  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1152    sysconfdir=$ac_optarg ;;
1153
1154  -target | --target | --targe | --targ | --tar | --ta | --t)
1155    ac_prev=target_alias ;;
1156  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1157    target_alias=$ac_optarg ;;
1158
1159  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160    verbose=yes ;;
1161
1162  -version | --version | --versio | --versi | --vers | -V)
1163    ac_init_version=: ;;
1164
1165  -with-* | --with-*)
1166    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1167    # Reject names that are not valid shell variable names.
1168    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169      as_fn_error $? "invalid package name: $ac_useropt"
1170    ac_useropt_orig=$ac_useropt
1171    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172    case $ac_user_opts in
1173      *"
1174"with_$ac_useropt"
1175"*) ;;
1176      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1177	 ac_unrecognized_sep=', ';;
1178    esac
1179    eval with_$ac_useropt=\$ac_optarg ;;
1180
1181  -without-* | --without-*)
1182    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1183    # Reject names that are not valid shell variable names.
1184    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185      as_fn_error $? "invalid package name: $ac_useropt"
1186    ac_useropt_orig=$ac_useropt
1187    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188    case $ac_user_opts in
1189      *"
1190"with_$ac_useropt"
1191"*) ;;
1192      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1193	 ac_unrecognized_sep=', ';;
1194    esac
1195    eval with_$ac_useropt=no ;;
1196
1197  --x)
1198    # Obsolete; use --with-x.
1199    with_x=yes ;;
1200
1201  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202  | --x-incl | --x-inc | --x-in | --x-i)
1203    ac_prev=x_includes ;;
1204  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1206    x_includes=$ac_optarg ;;
1207
1208  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210    ac_prev=x_libraries ;;
1211  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1213    x_libraries=$ac_optarg ;;
1214
1215  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1216Try \`$0 --help' for more information"
1217    ;;
1218
1219  *=*)
1220    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221    # Reject names that are not valid shell variable names.
1222    case $ac_envvar in #(
1223      '' | [0-9]* | *[!_$as_cr_alnum]* )
1224      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1225    esac
1226    eval $ac_envvar=\$ac_optarg
1227    export $ac_envvar ;;
1228
1229  *)
1230    # FIXME: should be removed in autoconf 3.0.
1231    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1232    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1234    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1235    ;;
1236
1237  esac
1238done
1239
1240if test -n "$ac_prev"; then
1241  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1242  as_fn_error $? "missing argument to $ac_option"
1243fi
1244
1245if test -n "$ac_unrecognized_opts"; then
1246  case $enable_option_checking in
1247    no) ;;
1248    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1249    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1250  esac
1251fi
1252
1253# Check all directory arguments for consistency.
1254for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255		datadir sysconfdir sharedstatedir localstatedir includedir \
1256		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1257		libdir localedir mandir
1258do
1259  eval ac_val=\$$ac_var
1260  # Remove trailing slashes.
1261  case $ac_val in
1262    */ )
1263      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264      eval $ac_var=\$ac_val;;
1265  esac
1266  # Be sure to have absolute directory names.
1267  case $ac_val in
1268    [\\/$]* | ?:[\\/]* )  continue;;
1269    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1270  esac
1271  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1272done
1273
1274# There might be people who depend on the old broken behavior: `$host'
1275# used to hold the argument of --host etc.
1276# FIXME: To remove some day.
1277build=$build_alias
1278host=$host_alias
1279target=$target_alias
1280
1281# FIXME: To remove some day.
1282if test "x$host_alias" != x; then
1283  if test "x$build_alias" = x; then
1284    cross_compiling=maybe
1285  elif test "x$build_alias" != "x$host_alias"; then
1286    cross_compiling=yes
1287  fi
1288fi
1289
1290ac_tool_prefix=
1291test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292
1293test "$silent" = yes && exec 6>/dev/null
1294
1295
1296ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297ac_ls_di=`ls -di .` &&
1298ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299  as_fn_error $? "working directory cannot be determined"
1300test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1301  as_fn_error $? "pwd does not report name of working directory"
1302
1303
1304# Find the source files, if location was not specified.
1305if test -z "$srcdir"; then
1306  ac_srcdir_defaulted=yes
1307  # Try the directory containing this script, then the parent directory.
1308  ac_confdir=`$as_dirname -- "$as_myself" ||
1309$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310	 X"$as_myself" : 'X\(//\)[^/]' \| \
1311	 X"$as_myself" : 'X\(//\)$' \| \
1312	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313$as_echo X"$as_myself" |
1314    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315	    s//\1/
1316	    q
1317	  }
1318	  /^X\(\/\/\)[^/].*/{
1319	    s//\1/
1320	    q
1321	  }
1322	  /^X\(\/\/\)$/{
1323	    s//\1/
1324	    q
1325	  }
1326	  /^X\(\/\).*/{
1327	    s//\1/
1328	    q
1329	  }
1330	  s/.*/./; q'`
1331  srcdir=$ac_confdir
1332  if test ! -r "$srcdir/$ac_unique_file"; then
1333    srcdir=..
1334  fi
1335else
1336  ac_srcdir_defaulted=no
1337fi
1338if test ! -r "$srcdir/$ac_unique_file"; then
1339  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1341fi
1342ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343ac_abs_confdir=`(
1344	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1345	pwd)`
1346# When building in place, set srcdir=.
1347if test "$ac_abs_confdir" = "$ac_pwd"; then
1348  srcdir=.
1349fi
1350# Remove unnecessary trailing slashes from srcdir.
1351# Double slashes in file names in object file debugging info
1352# mess up M-x gdb in Emacs.
1353case $srcdir in
1354*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355esac
1356for ac_var in $ac_precious_vars; do
1357  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1358  eval ac_env_${ac_var}_value=\$${ac_var}
1359  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1360  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1361done
1362
1363#
1364# Report the --help message.
1365#
1366if test "$ac_init_help" = "long"; then
1367  # Omit some internal or obsolete options to make the list less imposing.
1368  # This message is too long to be a string in the A/UX 3.1 sh.
1369  cat <<_ACEOF
1370\`configure' configures this package to adapt to many kinds of systems.
1371
1372Usage: $0 [OPTION]... [VAR=VALUE]...
1373
1374To assign environment variables (e.g., CC, CFLAGS...), specify them as
1375VAR=VALUE.  See below for descriptions of some of the useful variables.
1376
1377Defaults for the options are specified in brackets.
1378
1379Configuration:
1380  -h, --help              display this help and exit
1381      --help=short        display options specific to this package
1382      --help=recursive    display the short help of all the included packages
1383  -V, --version           display version information and exit
1384  -q, --quiet, --silent   do not print \`checking ...' messages
1385      --cache-file=FILE   cache test results in FILE [disabled]
1386  -C, --config-cache      alias for \`--cache-file=config.cache'
1387  -n, --no-create         do not create output files
1388      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1389
1390Installation directories:
1391  --prefix=PREFIX         install architecture-independent files in PREFIX
1392                          [$ac_default_prefix]
1393  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1394                          [PREFIX]
1395
1396By default, \`make install' will install all the files in
1397\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1398an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1399for instance \`--prefix=\$HOME'.
1400
1401For better control, use the options below.
1402
1403Fine tuning of the installation directories:
1404  --bindir=DIR            user executables [EPREFIX/bin]
1405  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1406  --libexecdir=DIR        program executables [EPREFIX/libexec]
1407  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1408  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1409  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1410  --libdir=DIR            object code libraries [EPREFIX/lib]
1411  --includedir=DIR        C header files [PREFIX/include]
1412  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1413  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1414  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1415  --infodir=DIR           info documentation [DATAROOTDIR/info]
1416  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1417  --mandir=DIR            man documentation [DATAROOTDIR/man]
1418  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1419  --htmldir=DIR           html documentation [DOCDIR]
1420  --dvidir=DIR            dvi documentation [DOCDIR]
1421  --pdfdir=DIR            pdf documentation [DOCDIR]
1422  --psdir=DIR             ps documentation [DOCDIR]
1423_ACEOF
1424
1425  cat <<\_ACEOF
1426
1427Program names:
1428  --program-prefix=PREFIX            prepend PREFIX to installed program names
1429  --program-suffix=SUFFIX            append SUFFIX to installed program names
1430  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1431
1432System types:
1433  --build=BUILD     configure for building on BUILD [guessed]
1434  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1435  --target=TARGET   configure for building compilers for TARGET [HOST]
1436_ACEOF
1437fi
1438
1439if test -n "$ac_init_help"; then
1440
1441  cat <<\_ACEOF
1442
1443Optional Features:
1444  --disable-option-checking  ignore unrecognized --enable/--with options
1445  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1446  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1447  --enable-silent-rules   less verbose build output (undo: "make V=1")
1448  --disable-silent-rules  verbose build output (undo: "make V=0")
1449  --enable-maintainer-mode
1450                          enable make rules and dependencies not useful (and
1451                          sometimes confusing) to the casual installer
1452  --enable-dependency-tracking
1453                          do not reject slow dependency extractors
1454  --disable-dependency-tracking
1455                          speeds up one-time build
1456  --disable-rpath         do not hardcode runtime library paths
1457  --disable-nls           do not use Native Language Support
1458  --enable-werror         Treat warnings as errors during compilation
1459  --disable-sdltest       Do not try to compile and run a test SDL program
1460  --disable-gtk2          Don't use GTK+ 2, use 1.2 instead
1461  --disable-gtktest       do not try to compile and run a test GTK+ program
1462  --disable-gtktest       Do not try to compile and run a test GTK program
1463  --disable-largefile     omit support for large files
1464  --disable-ladspa        Don't include any Ladspa support
1465
1466Optional Packages:
1467  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1468  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1469  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1470  --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1471  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1472  --with-libintl-prefix=DIR  search for libintl in DIR/include and DIR/lib
1473  --without-libintl-prefix     don't search for libintl in includedir and libdir
1474  --with-double-samples   Use double precision floating point numbers for sound
1475                          processing (slows down program but may increase
1476                          quality for 24/32-bit samplerates).
1477  --without-check-casts   Do not type-check GTK casts.
1478  --with-default-driver=driver
1479                           Choose default sound driver (one of oss,alsa,pulse,
1480                           jack,sun,pa,sdl,esound,arts,auto; default: auto)
1481  --with-default-ladspa-path=path
1482                           Path to use if LADSPA_PATH variable is not set
1483                           (default: "/usr/lib/ladspa:/usr/local/lib/ladspa")
1484  --with-default-mixerapp=appname
1485                           Default command for "launch mixer" button
1486                           (default: "xmixer")
1487  --with-build-date=str   Fixed string to use instead of __DATE__
1488  --with-build-time=str   Fixed string to use instead of __TIME__
1489  --with-libsndfile=prefix Prefix where libsndfile is installed (optional)
1490  --without-libsndfile    Don't use libsndfile library
1491  --with-libsamplerate=prefix Prefix where libsamplerate is installed (optional)
1492  --without-libsamplerate Don't use libsamplerate library
1493  --without-portaudio     Don't use portaudio library
1494  --without-sdl           Don't use SDL library
1495  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1496  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1497  --without-alsalib       Don't compile ALSA-lib driver
1498  --without-oss           Don't compile OSS driver
1499  --without-jack          Don't compile JACK driver
1500  --without-pulse          Don't compile PulseAudio driver
1501  --without-esound        Don't compile EsounD driver
1502  --without-sun           Don't compile Sun audio driver
1503  --without-arts          Don't compile aRts driver
1504  --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1505  --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1506
1507Some influential environment variables:
1508  CC          C compiler command
1509  CFLAGS      C compiler flags
1510  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1511              nonstandard directory <lib dir>
1512  LIBS        libraries to pass to the linker, e.g. -l<library>
1513  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1514              you have headers in a nonstandard directory <include dir>
1515  PKG_CONFIG  path to pkg-config utility
1516  PKG_CONFIG_PATH
1517              directories to add to pkg-config's search path
1518  PKG_CONFIG_LIBDIR
1519              path overriding pkg-config's built-in search path
1520  CPP         C preprocessor
1521  SNDFILE_CFLAGS
1522              C compiler flags for SNDFILE, overriding pkg-config
1523  SNDFILE_LIBS
1524              linker flags for SNDFILE, overriding pkg-config
1525  LIBSAMPLERATE_CFLAGS
1526              C compiler flags for LIBSAMPLERATE, overriding pkg-config
1527  LIBSAMPLERATE_LIBS
1528              linker flags for LIBSAMPLERATE, overriding pkg-config
1529  JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
1530  JACK_LIBS   linker flags for JACK, overriding pkg-config
1531  PULSE_CFLAGS
1532              C compiler flags for PULSE, overriding pkg-config
1533  PULSE_LIBS  linker flags for PULSE, overriding pkg-config
1534  ESOUND_CFLAGS
1535              C compiler flags for ESOUND, overriding pkg-config
1536  ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1537  GTHREAD_CFLAGS
1538              C compiler flags for GTHREAD, overriding pkg-config
1539  GTHREAD_LIBS
1540              linker flags for GTHREAD, overriding pkg-config
1541
1542Use these variables to override the choices made by `configure' or to help
1543it to find libraries and programs with nonstandard names/locations.
1544
1545Report bugs to the package provider.
1546_ACEOF
1547ac_status=$?
1548fi
1549
1550if test "$ac_init_help" = "recursive"; then
1551  # If there are subdirs, report their specific --help.
1552  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1553    test -d "$ac_dir" ||
1554      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1555      continue
1556    ac_builddir=.
1557
1558case "$ac_dir" in
1559.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560*)
1561  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1562  # A ".." for each directory in $ac_dir_suffix.
1563  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1564  case $ac_top_builddir_sub in
1565  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1566  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1567  esac ;;
1568esac
1569ac_abs_top_builddir=$ac_pwd
1570ac_abs_builddir=$ac_pwd$ac_dir_suffix
1571# for backward compatibility:
1572ac_top_builddir=$ac_top_build_prefix
1573
1574case $srcdir in
1575  .)  # We are building in place.
1576    ac_srcdir=.
1577    ac_top_srcdir=$ac_top_builddir_sub
1578    ac_abs_top_srcdir=$ac_pwd ;;
1579  [\\/]* | ?:[\\/]* )  # Absolute name.
1580    ac_srcdir=$srcdir$ac_dir_suffix;
1581    ac_top_srcdir=$srcdir
1582    ac_abs_top_srcdir=$srcdir ;;
1583  *) # Relative name.
1584    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1585    ac_top_srcdir=$ac_top_build_prefix$srcdir
1586    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1587esac
1588ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1589
1590    cd "$ac_dir" || { ac_status=$?; continue; }
1591    # Check for guested configure.
1592    if test -f "$ac_srcdir/configure.gnu"; then
1593      echo &&
1594      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1595    elif test -f "$ac_srcdir/configure"; then
1596      echo &&
1597      $SHELL "$ac_srcdir/configure" --help=recursive
1598    else
1599      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1600    fi || ac_status=$?
1601    cd "$ac_pwd" || { ac_status=$?; break; }
1602  done
1603fi
1604
1605test -n "$ac_init_help" && exit $ac_status
1606if $ac_init_version; then
1607  cat <<\_ACEOF
1608configure
1609generated by GNU Autoconf 2.69
1610
1611Copyright (C) 2012 Free Software Foundation, Inc.
1612This configure script is free software; the Free Software Foundation
1613gives unlimited permission to copy, distribute and modify it.
1614_ACEOF
1615  exit
1616fi
1617
1618## ------------------------ ##
1619## Autoconf initialization. ##
1620## ------------------------ ##
1621
1622# ac_fn_c_try_compile LINENO
1623# --------------------------
1624# Try to compile conftest.$ac_ext, and return whether this succeeded.
1625ac_fn_c_try_compile ()
1626{
1627  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628  rm -f conftest.$ac_objext
1629  if { { ac_try="$ac_compile"
1630case "(($ac_try" in
1631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632  *) ac_try_echo=$ac_try;;
1633esac
1634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635$as_echo "$ac_try_echo"; } >&5
1636  (eval "$ac_compile") 2>conftest.err
1637  ac_status=$?
1638  if test -s conftest.err; then
1639    grep -v '^ *+' conftest.err >conftest.er1
1640    cat conftest.er1 >&5
1641    mv -f conftest.er1 conftest.err
1642  fi
1643  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644  test $ac_status = 0; } && {
1645	 test -z "$ac_c_werror_flag" ||
1646	 test ! -s conftest.err
1647       } && test -s conftest.$ac_objext; then :
1648  ac_retval=0
1649else
1650  $as_echo "$as_me: failed program was:" >&5
1651sed 's/^/| /' conftest.$ac_ext >&5
1652
1653	ac_retval=1
1654fi
1655  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656  as_fn_set_status $ac_retval
1657
1658} # ac_fn_c_try_compile
1659
1660# ac_fn_c_try_link LINENO
1661# -----------------------
1662# Try to link conftest.$ac_ext, and return whether this succeeded.
1663ac_fn_c_try_link ()
1664{
1665  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666  rm -f conftest.$ac_objext conftest$ac_exeext
1667  if { { ac_try="$ac_link"
1668case "(($ac_try" in
1669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670  *) ac_try_echo=$ac_try;;
1671esac
1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673$as_echo "$ac_try_echo"; } >&5
1674  (eval "$ac_link") 2>conftest.err
1675  ac_status=$?
1676  if test -s conftest.err; then
1677    grep -v '^ *+' conftest.err >conftest.er1
1678    cat conftest.er1 >&5
1679    mv -f conftest.er1 conftest.err
1680  fi
1681  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682  test $ac_status = 0; } && {
1683	 test -z "$ac_c_werror_flag" ||
1684	 test ! -s conftest.err
1685       } && test -s conftest$ac_exeext && {
1686	 test "$cross_compiling" = yes ||
1687	 test -x conftest$ac_exeext
1688       }; then :
1689  ac_retval=0
1690else
1691  $as_echo "$as_me: failed program was:" >&5
1692sed 's/^/| /' conftest.$ac_ext >&5
1693
1694	ac_retval=1
1695fi
1696  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1697  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1698  # interfere with the next link command; also delete a directory that is
1699  # left behind by Apple's compiler.  We do this before executing the actions.
1700  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702  as_fn_set_status $ac_retval
1703
1704} # ac_fn_c_try_link
1705
1706# ac_fn_c_try_cpp LINENO
1707# ----------------------
1708# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1709ac_fn_c_try_cpp ()
1710{
1711  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712  if { { ac_try="$ac_cpp conftest.$ac_ext"
1713case "(($ac_try" in
1714  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715  *) ac_try_echo=$ac_try;;
1716esac
1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718$as_echo "$ac_try_echo"; } >&5
1719  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1720  ac_status=$?
1721  if test -s conftest.err; then
1722    grep -v '^ *+' conftest.err >conftest.er1
1723    cat conftest.er1 >&5
1724    mv -f conftest.er1 conftest.err
1725  fi
1726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727  test $ac_status = 0; } > conftest.i && {
1728	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1729	 test ! -s conftest.err
1730       }; then :
1731  ac_retval=0
1732else
1733  $as_echo "$as_me: failed program was:" >&5
1734sed 's/^/| /' conftest.$ac_ext >&5
1735
1736    ac_retval=1
1737fi
1738  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739  as_fn_set_status $ac_retval
1740
1741} # ac_fn_c_try_cpp
1742
1743# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1744# -------------------------------------------------------
1745# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1746# the include files in INCLUDES and setting the cache variable VAR
1747# accordingly.
1748ac_fn_c_check_header_mongrel ()
1749{
1750  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751  if eval \${$3+:} false; then :
1752  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753$as_echo_n "checking for $2... " >&6; }
1754if eval \${$3+:} false; then :
1755  $as_echo_n "(cached) " >&6
1756fi
1757eval ac_res=\$$3
1758	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759$as_echo "$ac_res" >&6; }
1760else
1761  # Is the header compilable?
1762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1763$as_echo_n "checking $2 usability... " >&6; }
1764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1765/* end confdefs.h.  */
1766$4
1767#include <$2>
1768_ACEOF
1769if ac_fn_c_try_compile "$LINENO"; then :
1770  ac_header_compiler=yes
1771else
1772  ac_header_compiler=no
1773fi
1774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1776$as_echo "$ac_header_compiler" >&6; }
1777
1778# Is the header present?
1779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1780$as_echo_n "checking $2 presence... " >&6; }
1781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782/* end confdefs.h.  */
1783#include <$2>
1784_ACEOF
1785if ac_fn_c_try_cpp "$LINENO"; then :
1786  ac_header_preproc=yes
1787else
1788  ac_header_preproc=no
1789fi
1790rm -f conftest.err conftest.i conftest.$ac_ext
1791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1792$as_echo "$ac_header_preproc" >&6; }
1793
1794# So?  What about this header?
1795case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1796  yes:no: )
1797    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1798$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1799    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1800$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1801    ;;
1802  no:yes:* )
1803    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1804$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1805    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1806$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1807    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1808$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1809    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1810$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1811    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1812$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1813    ;;
1814esac
1815  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816$as_echo_n "checking for $2... " >&6; }
1817if eval \${$3+:} false; then :
1818  $as_echo_n "(cached) " >&6
1819else
1820  eval "$3=\$ac_header_compiler"
1821fi
1822eval ac_res=\$$3
1823	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824$as_echo "$ac_res" >&6; }
1825fi
1826  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827
1828} # ac_fn_c_check_header_mongrel
1829
1830# ac_fn_c_try_run LINENO
1831# ----------------------
1832# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1833# that executables *can* be run.
1834ac_fn_c_try_run ()
1835{
1836  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837  if { { ac_try="$ac_link"
1838case "(($ac_try" in
1839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840  *) ac_try_echo=$ac_try;;
1841esac
1842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843$as_echo "$ac_try_echo"; } >&5
1844  (eval "$ac_link") 2>&5
1845  ac_status=$?
1846  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1848  { { case "(($ac_try" in
1849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850  *) ac_try_echo=$ac_try;;
1851esac
1852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853$as_echo "$ac_try_echo"; } >&5
1854  (eval "$ac_try") 2>&5
1855  ac_status=$?
1856  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857  test $ac_status = 0; }; }; then :
1858  ac_retval=0
1859else
1860  $as_echo "$as_me: program exited with status $ac_status" >&5
1861       $as_echo "$as_me: failed program was:" >&5
1862sed 's/^/| /' conftest.$ac_ext >&5
1863
1864       ac_retval=$ac_status
1865fi
1866  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1867  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868  as_fn_set_status $ac_retval
1869
1870} # ac_fn_c_try_run
1871
1872# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1873# -------------------------------------------------------
1874# Tests whether HEADER exists and can be compiled using the include files in
1875# INCLUDES, setting the cache variable VAR accordingly.
1876ac_fn_c_check_header_compile ()
1877{
1878  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880$as_echo_n "checking for $2... " >&6; }
1881if eval \${$3+:} false; then :
1882  $as_echo_n "(cached) " >&6
1883else
1884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885/* end confdefs.h.  */
1886$4
1887#include <$2>
1888_ACEOF
1889if ac_fn_c_try_compile "$LINENO"; then :
1890  eval "$3=yes"
1891else
1892  eval "$3=no"
1893fi
1894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1895fi
1896eval ac_res=\$$3
1897	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898$as_echo "$ac_res" >&6; }
1899  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900
1901} # ac_fn_c_check_header_compile
1902
1903# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1904# -------------------------------------------
1905# Tests whether TYPE exists after having included INCLUDES, setting cache
1906# variable VAR accordingly.
1907ac_fn_c_check_type ()
1908{
1909  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911$as_echo_n "checking for $2... " >&6; }
1912if eval \${$3+:} false; then :
1913  $as_echo_n "(cached) " >&6
1914else
1915  eval "$3=no"
1916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917/* end confdefs.h.  */
1918$4
1919int
1920main ()
1921{
1922if (sizeof ($2))
1923	 return 0;
1924  ;
1925  return 0;
1926}
1927_ACEOF
1928if ac_fn_c_try_compile "$LINENO"; then :
1929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930/* end confdefs.h.  */
1931$4
1932int
1933main ()
1934{
1935if (sizeof (($2)))
1936	    return 0;
1937  ;
1938  return 0;
1939}
1940_ACEOF
1941if ac_fn_c_try_compile "$LINENO"; then :
1942
1943else
1944  eval "$3=yes"
1945fi
1946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947fi
1948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949fi
1950eval ac_res=\$$3
1951	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952$as_echo "$ac_res" >&6; }
1953  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954
1955} # ac_fn_c_check_type
1956
1957# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1958# --------------------------------------------
1959# Tries to find the compile-time value of EXPR in a program that includes
1960# INCLUDES, setting VAR accordingly. Returns whether the value could be
1961# computed
1962ac_fn_c_compute_int ()
1963{
1964  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965  if test "$cross_compiling" = yes; then
1966    # Depending upon the size, compute the lo and hi bounds.
1967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968/* end confdefs.h.  */
1969$4
1970int
1971main ()
1972{
1973static int test_array [1 - 2 * !(($2) >= 0)];
1974test_array [0] = 0;
1975return test_array [0];
1976
1977  ;
1978  return 0;
1979}
1980_ACEOF
1981if ac_fn_c_try_compile "$LINENO"; then :
1982  ac_lo=0 ac_mid=0
1983  while :; do
1984    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985/* end confdefs.h.  */
1986$4
1987int
1988main ()
1989{
1990static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1991test_array [0] = 0;
1992return test_array [0];
1993
1994  ;
1995  return 0;
1996}
1997_ACEOF
1998if ac_fn_c_try_compile "$LINENO"; then :
1999  ac_hi=$ac_mid; break
2000else
2001  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2002			if test $ac_lo -le $ac_mid; then
2003			  ac_lo= ac_hi=
2004			  break
2005			fi
2006			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2007fi
2008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009  done
2010else
2011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012/* end confdefs.h.  */
2013$4
2014int
2015main ()
2016{
2017static int test_array [1 - 2 * !(($2) < 0)];
2018test_array [0] = 0;
2019return test_array [0];
2020
2021  ;
2022  return 0;
2023}
2024_ACEOF
2025if ac_fn_c_try_compile "$LINENO"; then :
2026  ac_hi=-1 ac_mid=-1
2027  while :; do
2028    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029/* end confdefs.h.  */
2030$4
2031int
2032main ()
2033{
2034static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2035test_array [0] = 0;
2036return test_array [0];
2037
2038  ;
2039  return 0;
2040}
2041_ACEOF
2042if ac_fn_c_try_compile "$LINENO"; then :
2043  ac_lo=$ac_mid; break
2044else
2045  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2046			if test $ac_mid -le $ac_hi; then
2047			  ac_lo= ac_hi=
2048			  break
2049			fi
2050			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2051fi
2052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053  done
2054else
2055  ac_lo= ac_hi=
2056fi
2057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058fi
2059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060# Binary search between lo and hi bounds.
2061while test "x$ac_lo" != "x$ac_hi"; do
2062  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064/* end confdefs.h.  */
2065$4
2066int
2067main ()
2068{
2069static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2070test_array [0] = 0;
2071return test_array [0];
2072
2073  ;
2074  return 0;
2075}
2076_ACEOF
2077if ac_fn_c_try_compile "$LINENO"; then :
2078  ac_hi=$ac_mid
2079else
2080  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2081fi
2082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083done
2084case $ac_lo in #((
2085?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2086'') ac_retval=1 ;;
2087esac
2088  else
2089    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090/* end confdefs.h.  */
2091$4
2092static long int longval () { return $2; }
2093static unsigned long int ulongval () { return $2; }
2094#include <stdio.h>
2095#include <stdlib.h>
2096int
2097main ()
2098{
2099
2100  FILE *f = fopen ("conftest.val", "w");
2101  if (! f)
2102    return 1;
2103  if (($2) < 0)
2104    {
2105      long int i = longval ();
2106      if (i != ($2))
2107	return 1;
2108      fprintf (f, "%ld", i);
2109    }
2110  else
2111    {
2112      unsigned long int i = ulongval ();
2113      if (i != ($2))
2114	return 1;
2115      fprintf (f, "%lu", i);
2116    }
2117  /* Do not output a trailing newline, as this causes \r\n confusion
2118     on some platforms.  */
2119  return ferror (f) || fclose (f) != 0;
2120
2121  ;
2122  return 0;
2123}
2124_ACEOF
2125if ac_fn_c_try_run "$LINENO"; then :
2126  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2127else
2128  ac_retval=1
2129fi
2130rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2131  conftest.$ac_objext conftest.beam conftest.$ac_ext
2132rm -f conftest.val
2133
2134  fi
2135  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136  as_fn_set_status $ac_retval
2137
2138} # ac_fn_c_compute_int
2139
2140# ac_fn_c_check_func LINENO FUNC VAR
2141# ----------------------------------
2142# Tests whether FUNC exists, setting the cache variable VAR accordingly
2143ac_fn_c_check_func ()
2144{
2145  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2147$as_echo_n "checking for $2... " >&6; }
2148if eval \${$3+:} false; then :
2149  $as_echo_n "(cached) " >&6
2150else
2151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152/* end confdefs.h.  */
2153/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2154   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2155#define $2 innocuous_$2
2156
2157/* System header to define __stub macros and hopefully few prototypes,
2158    which can conflict with char $2 (); below.
2159    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2160    <limits.h> exists even on freestanding compilers.  */
2161
2162#ifdef __STDC__
2163# include <limits.h>
2164#else
2165# include <assert.h>
2166#endif
2167
2168#undef $2
2169
2170/* Override any GCC internal prototype to avoid an error.
2171   Use char because int might match the return type of a GCC
2172   builtin and then its argument prototype would still apply.  */
2173#ifdef __cplusplus
2174extern "C"
2175#endif
2176char $2 ();
2177/* The GNU C library defines this for functions which it implements
2178    to always fail with ENOSYS.  Some functions are actually named
2179    something starting with __ and the normal name is an alias.  */
2180#if defined __stub_$2 || defined __stub___$2
2181choke me
2182#endif
2183
2184int
2185main ()
2186{
2187return $2 ();
2188  ;
2189  return 0;
2190}
2191_ACEOF
2192if ac_fn_c_try_link "$LINENO"; then :
2193  eval "$3=yes"
2194else
2195  eval "$3=no"
2196fi
2197rm -f core conftest.err conftest.$ac_objext \
2198    conftest$ac_exeext conftest.$ac_ext
2199fi
2200eval ac_res=\$$3
2201	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2202$as_echo "$ac_res" >&6; }
2203  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2204
2205} # ac_fn_c_check_func
2206cat >config.log <<_ACEOF
2207This file contains any messages produced by compilers while
2208running configure, to aid debugging if configure makes a mistake.
2209
2210It was created by $as_me, which was
2211generated by GNU Autoconf 2.69.  Invocation command line was
2212
2213  $ $0 $@
2214
2215_ACEOF
2216exec 5>>config.log
2217{
2218cat <<_ASUNAME
2219## --------- ##
2220## Platform. ##
2221## --------- ##
2222
2223hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2224uname -m = `(uname -m) 2>/dev/null || echo unknown`
2225uname -r = `(uname -r) 2>/dev/null || echo unknown`
2226uname -s = `(uname -s) 2>/dev/null || echo unknown`
2227uname -v = `(uname -v) 2>/dev/null || echo unknown`
2228
2229/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2230/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2231
2232/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2233/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2234/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2235/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2236/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2237/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2238/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2239
2240_ASUNAME
2241
2242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243for as_dir in $PATH
2244do
2245  IFS=$as_save_IFS
2246  test -z "$as_dir" && as_dir=.
2247    $as_echo "PATH: $as_dir"
2248  done
2249IFS=$as_save_IFS
2250
2251} >&5
2252
2253cat >&5 <<_ACEOF
2254
2255
2256## ----------- ##
2257## Core tests. ##
2258## ----------- ##
2259
2260_ACEOF
2261
2262
2263# Keep a trace of the command line.
2264# Strip out --no-create and --no-recursion so they do not pile up.
2265# Strip out --silent because we don't want to record it for future runs.
2266# Also quote any args containing shell meta-characters.
2267# Make two passes to allow for proper duplicate-argument suppression.
2268ac_configure_args=
2269ac_configure_args0=
2270ac_configure_args1=
2271ac_must_keep_next=false
2272for ac_pass in 1 2
2273do
2274  for ac_arg
2275  do
2276    case $ac_arg in
2277    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2278    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2279    | -silent | --silent | --silen | --sile | --sil)
2280      continue ;;
2281    *\'*)
2282      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2283    esac
2284    case $ac_pass in
2285    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2286    2)
2287      as_fn_append ac_configure_args1 " '$ac_arg'"
2288      if test $ac_must_keep_next = true; then
2289	ac_must_keep_next=false # Got value, back to normal.
2290      else
2291	case $ac_arg in
2292	  *=* | --config-cache | -C | -disable-* | --disable-* \
2293	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2294	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2295	  | -with-* | --with-* | -without-* | --without-* | --x)
2296	    case "$ac_configure_args0 " in
2297	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2298	    esac
2299	    ;;
2300	  -* ) ac_must_keep_next=true ;;
2301	esac
2302      fi
2303      as_fn_append ac_configure_args " '$ac_arg'"
2304      ;;
2305    esac
2306  done
2307done
2308{ ac_configure_args0=; unset ac_configure_args0;}
2309{ ac_configure_args1=; unset ac_configure_args1;}
2310
2311# When interrupted or exit'd, cleanup temporary files, and complete
2312# config.log.  We remove comments because anyway the quotes in there
2313# would cause problems or look ugly.
2314# WARNING: Use '\'' to represent an apostrophe within the trap.
2315# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2316trap 'exit_status=$?
2317  # Save into config.log some information that might help in debugging.
2318  {
2319    echo
2320
2321    $as_echo "## ---------------- ##
2322## Cache variables. ##
2323## ---------------- ##"
2324    echo
2325    # The following way of writing the cache mishandles newlines in values,
2326(
2327  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2328    eval ac_val=\$$ac_var
2329    case $ac_val in #(
2330    *${as_nl}*)
2331      case $ac_var in #(
2332      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2333$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2334      esac
2335      case $ac_var in #(
2336      _ | IFS | as_nl) ;; #(
2337      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2338      *) { eval $ac_var=; unset $ac_var;} ;;
2339      esac ;;
2340    esac
2341  done
2342  (set) 2>&1 |
2343    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2344    *${as_nl}ac_space=\ *)
2345      sed -n \
2346	"s/'\''/'\''\\\\'\'''\''/g;
2347	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2348      ;; #(
2349    *)
2350      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2351      ;;
2352    esac |
2353    sort
2354)
2355    echo
2356
2357    $as_echo "## ----------------- ##
2358## Output variables. ##
2359## ----------------- ##"
2360    echo
2361    for ac_var in $ac_subst_vars
2362    do
2363      eval ac_val=\$$ac_var
2364      case $ac_val in
2365      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2366      esac
2367      $as_echo "$ac_var='\''$ac_val'\''"
2368    done | sort
2369    echo
2370
2371    if test -n "$ac_subst_files"; then
2372      $as_echo "## ------------------- ##
2373## File substitutions. ##
2374## ------------------- ##"
2375      echo
2376      for ac_var in $ac_subst_files
2377      do
2378	eval ac_val=\$$ac_var
2379	case $ac_val in
2380	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2381	esac
2382	$as_echo "$ac_var='\''$ac_val'\''"
2383      done | sort
2384      echo
2385    fi
2386
2387    if test -s confdefs.h; then
2388      $as_echo "## ----------- ##
2389## confdefs.h. ##
2390## ----------- ##"
2391      echo
2392      cat confdefs.h
2393      echo
2394    fi
2395    test "$ac_signal" != 0 &&
2396      $as_echo "$as_me: caught signal $ac_signal"
2397    $as_echo "$as_me: exit $exit_status"
2398  } >&5
2399  rm -f core *.core core.conftest.* &&
2400    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2401    exit $exit_status
2402' 0
2403for ac_signal in 1 2 13 15; do
2404  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2405done
2406ac_signal=0
2407
2408# confdefs.h avoids OS command line length limits that DEFS can exceed.
2409rm -f -r conftest* confdefs.h
2410
2411$as_echo "/* confdefs.h */" > confdefs.h
2412
2413# Predefined preprocessor variables.
2414
2415cat >>confdefs.h <<_ACEOF
2416#define PACKAGE_NAME "$PACKAGE_NAME"
2417_ACEOF
2418
2419cat >>confdefs.h <<_ACEOF
2420#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2421_ACEOF
2422
2423cat >>confdefs.h <<_ACEOF
2424#define PACKAGE_VERSION "$PACKAGE_VERSION"
2425_ACEOF
2426
2427cat >>confdefs.h <<_ACEOF
2428#define PACKAGE_STRING "$PACKAGE_STRING"
2429_ACEOF
2430
2431cat >>confdefs.h <<_ACEOF
2432#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2433_ACEOF
2434
2435cat >>confdefs.h <<_ACEOF
2436#define PACKAGE_URL "$PACKAGE_URL"
2437_ACEOF
2438
2439
2440# Let the site file select an alternate cache file if it wants to.
2441# Prefer an explicitly selected file to automatically selected ones.
2442ac_site_file1=NONE
2443ac_site_file2=NONE
2444if test -n "$CONFIG_SITE"; then
2445  # We do not want a PATH search for config.site.
2446  case $CONFIG_SITE in #((
2447    -*)  ac_site_file1=./$CONFIG_SITE;;
2448    */*) ac_site_file1=$CONFIG_SITE;;
2449    *)   ac_site_file1=./$CONFIG_SITE;;
2450  esac
2451elif test "x$prefix" != xNONE; then
2452  ac_site_file1=$prefix/share/config.site
2453  ac_site_file2=$prefix/etc/config.site
2454else
2455  ac_site_file1=$ac_default_prefix/share/config.site
2456  ac_site_file2=$ac_default_prefix/etc/config.site
2457fi
2458for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2459do
2460  test "x$ac_site_file" = xNONE && continue
2461  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2462    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2463$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2464    sed 's/^/| /' "$ac_site_file" >&5
2465    . "$ac_site_file" \
2466      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2467$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2468as_fn_error $? "failed to load site script $ac_site_file
2469See \`config.log' for more details" "$LINENO" 5; }
2470  fi
2471done
2472
2473if test -r "$cache_file"; then
2474  # Some versions of bash will fail to source /dev/null (special files
2475  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2476  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2477    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2478$as_echo "$as_me: loading cache $cache_file" >&6;}
2479    case $cache_file in
2480      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2481      *)                      . "./$cache_file";;
2482    esac
2483  fi
2484else
2485  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2486$as_echo "$as_me: creating cache $cache_file" >&6;}
2487  >$cache_file
2488fi
2489
2490# Check that the precious variables saved in the cache have kept the same
2491# value.
2492ac_cache_corrupted=false
2493for ac_var in $ac_precious_vars; do
2494  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2495  eval ac_new_set=\$ac_env_${ac_var}_set
2496  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2497  eval ac_new_val=\$ac_env_${ac_var}_value
2498  case $ac_old_set,$ac_new_set in
2499    set,)
2500      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2501$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2502      ac_cache_corrupted=: ;;
2503    ,set)
2504      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2505$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2506      ac_cache_corrupted=: ;;
2507    ,);;
2508    *)
2509      if test "x$ac_old_val" != "x$ac_new_val"; then
2510	# differences in whitespace do not lead to failure.
2511	ac_old_val_w=`echo x $ac_old_val`
2512	ac_new_val_w=`echo x $ac_new_val`
2513	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2514	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2515$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2516	  ac_cache_corrupted=:
2517	else
2518	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2519$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2520	  eval $ac_var=\$ac_old_val
2521	fi
2522	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2523$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2524	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2525$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2526      fi;;
2527  esac
2528  # Pass precious variables to config.status.
2529  if test "$ac_new_set" = set; then
2530    case $ac_new_val in
2531    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2532    *) ac_arg=$ac_var=$ac_new_val ;;
2533    esac
2534    case " $ac_configure_args " in
2535      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2536      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2537    esac
2538  fi
2539done
2540if $ac_cache_corrupted; then
2541  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2542$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2543  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2544$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2545  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2546fi
2547## -------------------- ##
2548## Main body of script. ##
2549## -------------------- ##
2550
2551ac_ext=c
2552ac_cpp='$CPP $CPPFLAGS'
2553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2555ac_compiler_gnu=$ac_cv_c_compiler_gnu
2556
2557
2558
2559ac_config_headers="$ac_config_headers config.h"
2560
2561
2562
2563ac_aux_dir=
2564for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2565  if test -f "$ac_dir/install-sh"; then
2566    ac_aux_dir=$ac_dir
2567    ac_install_sh="$ac_aux_dir/install-sh -c"
2568    break
2569  elif test -f "$ac_dir/install.sh"; then
2570    ac_aux_dir=$ac_dir
2571    ac_install_sh="$ac_aux_dir/install.sh -c"
2572    break
2573  elif test -f "$ac_dir/shtool"; then
2574    ac_aux_dir=$ac_dir
2575    ac_install_sh="$ac_aux_dir/shtool install -c"
2576    break
2577  fi
2578done
2579if test -z "$ac_aux_dir"; then
2580  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2581fi
2582
2583# These three variables are undocumented and unsupported,
2584# and are intended to be withdrawn in a future Autoconf release.
2585# They can cause serious problems if a builder's source tree is in a directory
2586# whose full name contains unusual characters.
2587ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2588ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2589ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2590
2591
2592# Make sure we can run config.sub.
2593$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2594  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2595
2596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2597$as_echo_n "checking build system type... " >&6; }
2598if ${ac_cv_build+:} false; then :
2599  $as_echo_n "(cached) " >&6
2600else
2601  ac_build_alias=$build_alias
2602test "x$ac_build_alias" = x &&
2603  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2604test "x$ac_build_alias" = x &&
2605  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2606ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2607  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2608
2609fi
2610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2611$as_echo "$ac_cv_build" >&6; }
2612case $ac_cv_build in
2613*-*-*) ;;
2614*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2615esac
2616build=$ac_cv_build
2617ac_save_IFS=$IFS; IFS='-'
2618set x $ac_cv_build
2619shift
2620build_cpu=$1
2621build_vendor=$2
2622shift; shift
2623# Remember, the first character of IFS is used to create $*,
2624# except with old shells:
2625build_os=$*
2626IFS=$ac_save_IFS
2627case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2628
2629
2630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2631$as_echo_n "checking host system type... " >&6; }
2632if ${ac_cv_host+:} false; then :
2633  $as_echo_n "(cached) " >&6
2634else
2635  if test "x$host_alias" = x; then
2636  ac_cv_host=$ac_cv_build
2637else
2638  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2639    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2640fi
2641
2642fi
2643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2644$as_echo "$ac_cv_host" >&6; }
2645case $ac_cv_host in
2646*-*-*) ;;
2647*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2648esac
2649host=$ac_cv_host
2650ac_save_IFS=$IFS; IFS='-'
2651set x $ac_cv_host
2652shift
2653host_cpu=$1
2654host_vendor=$2
2655shift; shift
2656# Remember, the first character of IFS is used to create $*,
2657# except with old shells:
2658host_os=$*
2659IFS=$ac_save_IFS
2660case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2661
2662
2663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2664$as_echo_n "checking target system type... " >&6; }
2665if ${ac_cv_target+:} false; then :
2666  $as_echo_n "(cached) " >&6
2667else
2668  if test "x$target_alias" = x; then
2669  ac_cv_target=$ac_cv_host
2670else
2671  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2672    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2673fi
2674
2675fi
2676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2677$as_echo "$ac_cv_target" >&6; }
2678case $ac_cv_target in
2679*-*-*) ;;
2680*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2681esac
2682target=$ac_cv_target
2683ac_save_IFS=$IFS; IFS='-'
2684set x $ac_cv_target
2685shift
2686target_cpu=$1
2687target_vendor=$2
2688shift; shift
2689# Remember, the first character of IFS is used to create $*,
2690# except with old shells:
2691target_os=$*
2692IFS=$ac_save_IFS
2693case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2694
2695
2696# The aliases save the names the user supplied, while $host etc.
2697# will get canonicalized.
2698test -n "$target_alias" &&
2699  test "$program_prefix$program_suffix$program_transform_name" = \
2700    NONENONEs,x,x, &&
2701  program_prefix=${target_alias}-
2702
2703MHW_VERSION=1.4.24
2704
2705am__api_version='1.15'
2706
2707# Find a good install program.  We prefer a C program (faster),
2708# so one script is as good as another.  But avoid the broken or
2709# incompatible versions:
2710# SysV /etc/install, /usr/sbin/install
2711# SunOS /usr/etc/install
2712# IRIX /sbin/install
2713# AIX /bin/install
2714# AmigaOS /C/install, which installs bootblocks on floppy discs
2715# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2716# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2717# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2718# OS/2's system install, which has a completely different semantic
2719# ./install, which can be erroneously created by make from ./install.sh.
2720# Reject install programs that cannot install multiple files.
2721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2722$as_echo_n "checking for a BSD-compatible install... " >&6; }
2723if test -z "$INSTALL"; then
2724if ${ac_cv_path_install+:} false; then :
2725  $as_echo_n "(cached) " >&6
2726else
2727  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728for as_dir in $PATH
2729do
2730  IFS=$as_save_IFS
2731  test -z "$as_dir" && as_dir=.
2732    # Account for people who put trailing slashes in PATH elements.
2733case $as_dir/ in #((
2734  ./ | .// | /[cC]/* | \
2735  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2736  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2737  /usr/ucb/* ) ;;
2738  *)
2739    # OSF1 and SCO ODT 3.0 have their own names for install.
2740    # Don't use installbsd from OSF since it installs stuff as root
2741    # by default.
2742    for ac_prog in ginstall scoinst install; do
2743      for ac_exec_ext in '' $ac_executable_extensions; do
2744	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2745	  if test $ac_prog = install &&
2746	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2747	    # AIX install.  It has an incompatible calling convention.
2748	    :
2749	  elif test $ac_prog = install &&
2750	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2751	    # program-specific install script used by HP pwplus--don't use.
2752	    :
2753	  else
2754	    rm -rf conftest.one conftest.two conftest.dir
2755	    echo one > conftest.one
2756	    echo two > conftest.two
2757	    mkdir conftest.dir
2758	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2759	      test -s conftest.one && test -s conftest.two &&
2760	      test -s conftest.dir/conftest.one &&
2761	      test -s conftest.dir/conftest.two
2762	    then
2763	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2764	      break 3
2765	    fi
2766	  fi
2767	fi
2768      done
2769    done
2770    ;;
2771esac
2772
2773  done
2774IFS=$as_save_IFS
2775
2776rm -rf conftest.one conftest.two conftest.dir
2777
2778fi
2779  if test "${ac_cv_path_install+set}" = set; then
2780    INSTALL=$ac_cv_path_install
2781  else
2782    # As a last resort, use the slow shell script.  Don't cache a
2783    # value for INSTALL within a source directory, because that will
2784    # break other packages using the cache if that directory is
2785    # removed, or if the value is a relative name.
2786    INSTALL=$ac_install_sh
2787  fi
2788fi
2789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2790$as_echo "$INSTALL" >&6; }
2791
2792# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2793# It thinks the first close brace ends the variable substitution.
2794test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2795
2796test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2797
2798test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2799
2800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2801$as_echo_n "checking whether build environment is sane... " >&6; }
2802# Reject unsafe characters in $srcdir or the absolute working directory
2803# name.  Accept space and tab only in the latter.
2804am_lf='
2805'
2806case `pwd` in
2807  *[\\\"\#\$\&\'\`$am_lf]*)
2808    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2809esac
2810case $srcdir in
2811  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2812    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2813esac
2814
2815# Do 'set' in a subshell so we don't clobber the current shell's
2816# arguments.  Must try -L first in case configure is actually a
2817# symlink; some systems play weird games with the mod time of symlinks
2818# (eg FreeBSD returns the mod time of the symlink's containing
2819# directory).
2820if (
2821   am_has_slept=no
2822   for am_try in 1 2; do
2823     echo "timestamp, slept: $am_has_slept" > conftest.file
2824     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2825     if test "$*" = "X"; then
2826	# -L didn't work.
2827	set X `ls -t "$srcdir/configure" conftest.file`
2828     fi
2829     if test "$*" != "X $srcdir/configure conftest.file" \
2830	&& test "$*" != "X conftest.file $srcdir/configure"; then
2831
2832	# If neither matched, then we have a broken ls.  This can happen
2833	# if, for instance, CONFIG_SHELL is bash and it inherits a
2834	# broken ls alias from the environment.  This has actually
2835	# happened.  Such a system could not be considered "sane".
2836	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2837  alias in your environment" "$LINENO" 5
2838     fi
2839     if test "$2" = conftest.file || test $am_try -eq 2; then
2840       break
2841     fi
2842     # Just in case.
2843     sleep 1
2844     am_has_slept=yes
2845   done
2846   test "$2" = conftest.file
2847   )
2848then
2849   # Ok.
2850   :
2851else
2852   as_fn_error $? "newly created file is older than distributed files!
2853Check your system clock" "$LINENO" 5
2854fi
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2856$as_echo "yes" >&6; }
2857# If we didn't sleep, we still need to ensure time stamps of config.status and
2858# generated files are strictly newer.
2859am_sleep_pid=
2860if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2861  ( sleep 1 ) &
2862  am_sleep_pid=$!
2863fi
2864
2865rm -f conftest.file
2866
2867test "$program_prefix" != NONE &&
2868  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2869# Use a double $ so make ignores it.
2870test "$program_suffix" != NONE &&
2871  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2872# Double any \ or $.
2873# By default was `s,x,x', remove it if useless.
2874ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2875program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2876
2877# Expand $ac_aux_dir to an absolute path.
2878am_aux_dir=`cd "$ac_aux_dir" && pwd`
2879
2880if test x"${MISSING+set}" != xset; then
2881  case $am_aux_dir in
2882  *\ * | *\	*)
2883    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2884  *)
2885    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2886  esac
2887fi
2888# Use eval to expand $SHELL
2889if eval "$MISSING --is-lightweight"; then
2890  am_missing_run="$MISSING "
2891else
2892  am_missing_run=
2893  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2894$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2895fi
2896
2897if test x"${install_sh+set}" != xset; then
2898  case $am_aux_dir in
2899  *\ * | *\	*)
2900    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2901  *)
2902    install_sh="\${SHELL} $am_aux_dir/install-sh"
2903  esac
2904fi
2905
2906# Installed binaries are usually stripped using 'strip' when the user
2907# run "make install-strip".  However 'strip' might not be the right
2908# tool to use in cross-compilation environments, therefore Automake
2909# will honor the 'STRIP' environment variable to overrule this program.
2910if test "$cross_compiling" != no; then
2911  if test -n "$ac_tool_prefix"; then
2912  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2913set dummy ${ac_tool_prefix}strip; ac_word=$2
2914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915$as_echo_n "checking for $ac_word... " >&6; }
2916if ${ac_cv_prog_STRIP+:} false; then :
2917  $as_echo_n "(cached) " >&6
2918else
2919  if test -n "$STRIP"; then
2920  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2921else
2922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923for as_dir in $PATH
2924do
2925  IFS=$as_save_IFS
2926  test -z "$as_dir" && as_dir=.
2927    for ac_exec_ext in '' $ac_executable_extensions; do
2928  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2930    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2931    break 2
2932  fi
2933done
2934  done
2935IFS=$as_save_IFS
2936
2937fi
2938fi
2939STRIP=$ac_cv_prog_STRIP
2940if test -n "$STRIP"; then
2941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2942$as_echo "$STRIP" >&6; }
2943else
2944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945$as_echo "no" >&6; }
2946fi
2947
2948
2949fi
2950if test -z "$ac_cv_prog_STRIP"; then
2951  ac_ct_STRIP=$STRIP
2952  # Extract the first word of "strip", so it can be a program name with args.
2953set dummy strip; ac_word=$2
2954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2955$as_echo_n "checking for $ac_word... " >&6; }
2956if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2957  $as_echo_n "(cached) " >&6
2958else
2959  if test -n "$ac_ct_STRIP"; then
2960  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2961else
2962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963for as_dir in $PATH
2964do
2965  IFS=$as_save_IFS
2966  test -z "$as_dir" && as_dir=.
2967    for ac_exec_ext in '' $ac_executable_extensions; do
2968  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2969    ac_cv_prog_ac_ct_STRIP="strip"
2970    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2971    break 2
2972  fi
2973done
2974  done
2975IFS=$as_save_IFS
2976
2977fi
2978fi
2979ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2980if test -n "$ac_ct_STRIP"; then
2981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2982$as_echo "$ac_ct_STRIP" >&6; }
2983else
2984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985$as_echo "no" >&6; }
2986fi
2987
2988  if test "x$ac_ct_STRIP" = x; then
2989    STRIP=":"
2990  else
2991    case $cross_compiling:$ac_tool_warned in
2992yes:)
2993{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2994$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2995ac_tool_warned=yes ;;
2996esac
2997    STRIP=$ac_ct_STRIP
2998  fi
2999else
3000  STRIP="$ac_cv_prog_STRIP"
3001fi
3002
3003fi
3004INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3005
3006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3007$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3008if test -z "$MKDIR_P"; then
3009  if ${ac_cv_path_mkdir+:} false; then :
3010  $as_echo_n "(cached) " >&6
3011else
3012  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3014do
3015  IFS=$as_save_IFS
3016  test -z "$as_dir" && as_dir=.
3017    for ac_prog in mkdir gmkdir; do
3018	 for ac_exec_ext in '' $ac_executable_extensions; do
3019	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3020	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3021	     'mkdir (GNU coreutils) '* | \
3022	     'mkdir (coreutils) '* | \
3023	     'mkdir (fileutils) '4.1*)
3024	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3025	       break 3;;
3026	   esac
3027	 done
3028       done
3029  done
3030IFS=$as_save_IFS
3031
3032fi
3033
3034  test -d ./--version && rmdir ./--version
3035  if test "${ac_cv_path_mkdir+set}" = set; then
3036    MKDIR_P="$ac_cv_path_mkdir -p"
3037  else
3038    # As a last resort, use the slow shell script.  Don't cache a
3039    # value for MKDIR_P within a source directory, because that will
3040    # break other packages using the cache if that directory is
3041    # removed, or if the value is a relative name.
3042    MKDIR_P="$ac_install_sh -d"
3043  fi
3044fi
3045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3046$as_echo "$MKDIR_P" >&6; }
3047
3048for ac_prog in gawk mawk nawk awk
3049do
3050  # Extract the first word of "$ac_prog", so it can be a program name with args.
3051set dummy $ac_prog; ac_word=$2
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3053$as_echo_n "checking for $ac_word... " >&6; }
3054if ${ac_cv_prog_AWK+:} false; then :
3055  $as_echo_n "(cached) " >&6
3056else
3057  if test -n "$AWK"; then
3058  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3059else
3060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061for as_dir in $PATH
3062do
3063  IFS=$as_save_IFS
3064  test -z "$as_dir" && as_dir=.
3065    for ac_exec_ext in '' $ac_executable_extensions; do
3066  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3067    ac_cv_prog_AWK="$ac_prog"
3068    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3069    break 2
3070  fi
3071done
3072  done
3073IFS=$as_save_IFS
3074
3075fi
3076fi
3077AWK=$ac_cv_prog_AWK
3078if test -n "$AWK"; then
3079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3080$as_echo "$AWK" >&6; }
3081else
3082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083$as_echo "no" >&6; }
3084fi
3085
3086
3087  test -n "$AWK" && break
3088done
3089
3090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3091$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3092set x ${MAKE-make}
3093ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3094if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3095  $as_echo_n "(cached) " >&6
3096else
3097  cat >conftest.make <<\_ACEOF
3098SHELL = /bin/sh
3099all:
3100	@echo '@@@%%%=$(MAKE)=@@@%%%'
3101_ACEOF
3102# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3103case `${MAKE-make} -f conftest.make 2>/dev/null` in
3104  *@@@%%%=?*=@@@%%%*)
3105    eval ac_cv_prog_make_${ac_make}_set=yes;;
3106  *)
3107    eval ac_cv_prog_make_${ac_make}_set=no;;
3108esac
3109rm -f conftest.make
3110fi
3111if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3113$as_echo "yes" >&6; }
3114  SET_MAKE=
3115else
3116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117$as_echo "no" >&6; }
3118  SET_MAKE="MAKE=${MAKE-make}"
3119fi
3120
3121rm -rf .tst 2>/dev/null
3122mkdir .tst 2>/dev/null
3123if test -d .tst; then
3124  am__leading_dot=.
3125else
3126  am__leading_dot=_
3127fi
3128rmdir .tst 2>/dev/null
3129
3130# Check whether --enable-silent-rules was given.
3131if test "${enable_silent_rules+set}" = set; then :
3132  enableval=$enable_silent_rules;
3133fi
3134
3135case $enable_silent_rules in # (((
3136  yes) AM_DEFAULT_VERBOSITY=0;;
3137   no) AM_DEFAULT_VERBOSITY=1;;
3138    *) AM_DEFAULT_VERBOSITY=1;;
3139esac
3140am_make=${MAKE-make}
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3142$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3143if ${am_cv_make_support_nested_variables+:} false; then :
3144  $as_echo_n "(cached) " >&6
3145else
3146  if $as_echo 'TRUE=$(BAR$(V))
3147BAR0=false
3148BAR1=true
3149V=1
3150am__doit:
3151	@$(TRUE)
3152.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3153  am_cv_make_support_nested_variables=yes
3154else
3155  am_cv_make_support_nested_variables=no
3156fi
3157fi
3158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3159$as_echo "$am_cv_make_support_nested_variables" >&6; }
3160if test $am_cv_make_support_nested_variables = yes; then
3161    AM_V='$(V)'
3162  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3163else
3164  AM_V=$AM_DEFAULT_VERBOSITY
3165  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3166fi
3167AM_BACKSLASH='\'
3168
3169if test "`cd $srcdir && pwd`" != "`pwd`"; then
3170  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3171  # is not polluted with repeated "-I."
3172  am__isrc=' -I$(srcdir)'
3173  # test to see if srcdir already configured
3174  if test -f $srcdir/config.status; then
3175    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3176  fi
3177fi
3178
3179# test whether we have cygpath
3180if test -z "$CYGPATH_W"; then
3181  if (cygpath --version) >/dev/null 2>/dev/null; then
3182    CYGPATH_W='cygpath -w'
3183  else
3184    CYGPATH_W=echo
3185  fi
3186fi
3187
3188
3189# Define the identity of the package.
3190
3191 PACKAGE=mhWaveEdit
3192 VERSION=$MHW_VERSION
3193
3194
3195cat >>confdefs.h <<_ACEOF
3196#define PACKAGE "$PACKAGE"
3197_ACEOF
3198
3199
3200cat >>confdefs.h <<_ACEOF
3201#define VERSION "$VERSION"
3202_ACEOF
3203
3204# Some tools Automake needs.
3205
3206ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3207
3208
3209AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3210
3211
3212AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3213
3214
3215AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3216
3217
3218MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3219
3220# For better backward compatibility.  To be removed once Automake 1.9.x
3221# dies out for good.  For more background, see:
3222# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3223# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3224mkdir_p='$(MKDIR_P)'
3225
3226# We need awk for the "check" target (and possibly the TAP driver).  The
3227# system "awk" is bad on some platforms.
3228# Always define AMTAR for backward compatibility.  Yes, it's still used
3229# in the wild :-(  We should find a proper way to deprecate it ...
3230AMTAR='$${TAR-tar}'
3231
3232
3233# We'll loop over all known methods to create a tar archive until one works.
3234_am_tools='gnutar  pax cpio none'
3235
3236am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3237
3238
3239
3240
3241
3242
3243# POSIX will say in a future version that running "rm -f" with no argument
3244# is OK; and we want to be able to make that assumption in our Makefile
3245# recipes.  So use an aggressive probe to check that the usage we want is
3246# actually supported "in the wild" to an acceptable degree.
3247# See automake bug#10828.
3248# To make any issue more visible, cause the running configure to be aborted
3249# by default if the 'rm' program in use doesn't match our expectations; the
3250# user can still override this though.
3251if rm -f && rm -fr && rm -rf; then : OK; else
3252  cat >&2 <<'END'
3253Oops!
3254
3255Your 'rm' program seems unable to run without file operands specified
3256on the command line, even when the '-f' option is present.  This is contrary
3257to the behaviour of most rm programs out there, and not conforming with
3258the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3259
3260Please tell bug-automake@gnu.org about your system, including the value
3261of your $PATH and any error possibly output before this message.  This
3262can help us improve future automake versions.
3263
3264END
3265  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3266    echo 'Configuration will proceed anyway, since you have set the' >&2
3267    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3268    echo >&2
3269  else
3270    cat >&2 <<'END'
3271Aborting the configuration process, to ensure you take notice of the issue.
3272
3273You can download and install GNU coreutils to get an 'rm' implementation
3274that behaves properly: <http://www.gnu.org/software/coreutils/>.
3275
3276If you want to complete the configuration process using your problematic
3277'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3278to "yes", and re-run configure.
3279
3280END
3281    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3282  fi
3283fi
3284
3285# This is disabled in releases because timestamps can not be preserved through
3286# the current Github-based release flow.
3287
3288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3289$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3290    # Check whether --enable-maintainer-mode was given.
3291if test "${enable_maintainer_mode+set}" = set; then :
3292  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3293else
3294  USE_MAINTAINER_MODE=no
3295fi
3296
3297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3298$as_echo "$USE_MAINTAINER_MODE" >&6; }
3299   if test $USE_MAINTAINER_MODE = yes; then
3300  MAINTAINER_MODE_TRUE=
3301  MAINTAINER_MODE_FALSE='#'
3302else
3303  MAINTAINER_MODE_TRUE='#'
3304  MAINTAINER_MODE_FALSE=
3305fi
3306
3307  MAINT=$MAINTAINER_MODE_TRUE
3308
3309
3310
3311
3312        MKINSTALLDIRS=
3313  if test -n "$ac_aux_dir"; then
3314    MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3315  fi
3316  if test -z "$MKINSTALLDIRS"; then
3317    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3318  fi
3319
3320
3321
3322
3323
3324        # Extract the first word of "msgfmt", so it can be a program name with args.
3325set dummy msgfmt; ac_word=$2
3326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3327$as_echo_n "checking for $ac_word... " >&6; }
3328if ${ac_cv_path_MSGFMT+:} false; then :
3329  $as_echo_n "(cached) " >&6
3330else
3331  case "$MSGFMT" in
3332  /*)
3333  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3334  ;;
3335  *)
3336  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3337  for ac_dir in $PATH; do
3338    test -z "$ac_dir" && ac_dir=.
3339    if test -f $ac_dir/$ac_word; then
3340      if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3341     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3342	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3343	break
3344      fi
3345    fi
3346  done
3347  IFS="$ac_save_ifs"
3348  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3349  ;;
3350esac
3351fi
3352MSGFMT="$ac_cv_path_MSGFMT"
3353if test "$MSGFMT" != ":"; then
3354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
3355$as_echo "$MSGFMT" >&6; }
3356else
3357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3358$as_echo "no" >&6; }
3359fi
3360
3361  # Extract the first word of "gmsgfmt", so it can be a program name with args.
3362set dummy gmsgfmt; ac_word=$2
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3364$as_echo_n "checking for $ac_word... " >&6; }
3365if ${ac_cv_path_GMSGFMT+:} false; then :
3366  $as_echo_n "(cached) " >&6
3367else
3368  case $GMSGFMT in
3369  [\\/]* | ?:[\\/]*)
3370  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3371  ;;
3372  *)
3373  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374for as_dir in $PATH
3375do
3376  IFS=$as_save_IFS
3377  test -z "$as_dir" && as_dir=.
3378    for ac_exec_ext in '' $ac_executable_extensions; do
3379  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3380    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3381    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3382    break 2
3383  fi
3384done
3385  done
3386IFS=$as_save_IFS
3387
3388  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3389  ;;
3390esac
3391fi
3392GMSGFMT=$ac_cv_path_GMSGFMT
3393if test -n "$GMSGFMT"; then
3394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
3395$as_echo "$GMSGFMT" >&6; }
3396else
3397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398$as_echo "no" >&6; }
3399fi
3400
3401
3402
3403        # Extract the first word of "xgettext", so it can be a program name with args.
3404set dummy xgettext; ac_word=$2
3405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3406$as_echo_n "checking for $ac_word... " >&6; }
3407if ${ac_cv_path_XGETTEXT+:} false; then :
3408  $as_echo_n "(cached) " >&6
3409else
3410  case "$XGETTEXT" in
3411  /*)
3412  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3413  ;;
3414  *)
3415  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3416  for ac_dir in $PATH; do
3417    test -z "$ac_dir" && ac_dir=.
3418    if test -f $ac_dir/$ac_word; then
3419      if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
3420     (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3421	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3422	break
3423      fi
3424    fi
3425  done
3426  IFS="$ac_save_ifs"
3427  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3428  ;;
3429esac
3430fi
3431XGETTEXT="$ac_cv_path_XGETTEXT"
3432if test "$XGETTEXT" != ":"; then
3433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
3434$as_echo "$XGETTEXT" >&6; }
3435else
3436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437$as_echo "no" >&6; }
3438fi
3439
3440    rm -f messages.po
3441
3442    # Extract the first word of "msgmerge", so it can be a program name with args.
3443set dummy msgmerge; ac_word=$2
3444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3445$as_echo_n "checking for $ac_word... " >&6; }
3446if ${ac_cv_path_MSGMERGE+:} false; then :
3447  $as_echo_n "(cached) " >&6
3448else
3449  case "$MSGMERGE" in
3450  /*)
3451  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3452  ;;
3453  *)
3454  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3455  for ac_dir in $PATH; do
3456    test -z "$ac_dir" && ac_dir=.
3457    if test -f $ac_dir/$ac_word; then
3458      if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3459	ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
3460	break
3461      fi
3462    fi
3463  done
3464  IFS="$ac_save_ifs"
3465  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3466  ;;
3467esac
3468fi
3469MSGMERGE="$ac_cv_path_MSGMERGE"
3470if test "$MSGMERGE" != ":"; then
3471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3472$as_echo "$MSGMERGE" >&6; }
3473else
3474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3475$as_echo "no" >&6; }
3476fi
3477
3478
3479      if test "$GMSGFMT" != ":"; then
3480            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3481       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3482      : ;
3483    else
3484      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3485      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3486$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
3487      GMSGFMT=":"
3488    fi
3489  fi
3490
3491      if test "$XGETTEXT" != ":"; then
3492            if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
3493       (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3494      : ;
3495    else
3496      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
3497$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
3498      XGETTEXT=":"
3499    fi
3500        rm -f messages.po
3501  fi
3502
3503  ac_config_commands="$ac_config_commands default-1"
3504
3505
3506
3507      if test "X$prefix" = "XNONE"; then
3508    acl_final_prefix="$ac_default_prefix"
3509  else
3510    acl_final_prefix="$prefix"
3511  fi
3512  if test "X$exec_prefix" = "XNONE"; then
3513    acl_final_exec_prefix='${prefix}'
3514  else
3515    acl_final_exec_prefix="$exec_prefix"
3516  fi
3517  acl_save_prefix="$prefix"
3518  prefix="$acl_final_prefix"
3519  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
3520  prefix="$acl_save_prefix"
3521
3522DEPDIR="${am__leading_dot}deps"
3523
3524ac_config_commands="$ac_config_commands depfiles"
3525
3526
3527am_make=${MAKE-make}
3528cat > confinc << 'END'
3529am__doit:
3530	@echo this is the am__doit target
3531.PHONY: am__doit
3532END
3533# If we don't find an include directive, just comment out the code.
3534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3535$as_echo_n "checking for style of include used by $am_make... " >&6; }
3536am__include="#"
3537am__quote=
3538_am_result=none
3539# First try GNU make style include.
3540echo "include confinc" > confmf
3541# Ignore all kinds of additional output from 'make'.
3542case `$am_make -s -f confmf 2> /dev/null` in #(
3543*the\ am__doit\ target*)
3544  am__include=include
3545  am__quote=
3546  _am_result=GNU
3547  ;;
3548esac
3549# Now try BSD make style include.
3550if test "$am__include" = "#"; then
3551   echo '.include "confinc"' > confmf
3552   case `$am_make -s -f confmf 2> /dev/null` in #(
3553   *the\ am__doit\ target*)
3554     am__include=.include
3555     am__quote="\""
3556     _am_result=BSD
3557     ;;
3558   esac
3559fi
3560
3561
3562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3563$as_echo "$_am_result" >&6; }
3564rm -f confinc confmf
3565
3566# Check whether --enable-dependency-tracking was given.
3567if test "${enable_dependency_tracking+set}" = set; then :
3568  enableval=$enable_dependency_tracking;
3569fi
3570
3571if test "x$enable_dependency_tracking" != xno; then
3572  am_depcomp="$ac_aux_dir/depcomp"
3573  AMDEPBACKSLASH='\'
3574  am__nodep='_no'
3575fi
3576 if test "x$enable_dependency_tracking" != xno; then
3577  AMDEP_TRUE=
3578  AMDEP_FALSE='#'
3579else
3580  AMDEP_TRUE='#'
3581  AMDEP_FALSE=
3582fi
3583
3584
3585ac_ext=c
3586ac_cpp='$CPP $CPPFLAGS'
3587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3589ac_compiler_gnu=$ac_cv_c_compiler_gnu
3590if test -n "$ac_tool_prefix"; then
3591  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3592set dummy ${ac_tool_prefix}gcc; ac_word=$2
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594$as_echo_n "checking for $ac_word... " >&6; }
3595if ${ac_cv_prog_CC+:} false; then :
3596  $as_echo_n "(cached) " >&6
3597else
3598  if test -n "$CC"; then
3599  ac_cv_prog_CC="$CC" # Let the user override the test.
3600else
3601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602for as_dir in $PATH
3603do
3604  IFS=$as_save_IFS
3605  test -z "$as_dir" && as_dir=.
3606    for ac_exec_ext in '' $ac_executable_extensions; do
3607  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3608    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3609    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3610    break 2
3611  fi
3612done
3613  done
3614IFS=$as_save_IFS
3615
3616fi
3617fi
3618CC=$ac_cv_prog_CC
3619if test -n "$CC"; then
3620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3621$as_echo "$CC" >&6; }
3622else
3623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624$as_echo "no" >&6; }
3625fi
3626
3627
3628fi
3629if test -z "$ac_cv_prog_CC"; then
3630  ac_ct_CC=$CC
3631  # Extract the first word of "gcc", so it can be a program name with args.
3632set dummy gcc; ac_word=$2
3633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634$as_echo_n "checking for $ac_word... " >&6; }
3635if ${ac_cv_prog_ac_ct_CC+:} false; then :
3636  $as_echo_n "(cached) " >&6
3637else
3638  if test -n "$ac_ct_CC"; then
3639  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3640else
3641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642for as_dir in $PATH
3643do
3644  IFS=$as_save_IFS
3645  test -z "$as_dir" && as_dir=.
3646    for ac_exec_ext in '' $ac_executable_extensions; do
3647  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3648    ac_cv_prog_ac_ct_CC="gcc"
3649    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3650    break 2
3651  fi
3652done
3653  done
3654IFS=$as_save_IFS
3655
3656fi
3657fi
3658ac_ct_CC=$ac_cv_prog_ac_ct_CC
3659if test -n "$ac_ct_CC"; then
3660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3661$as_echo "$ac_ct_CC" >&6; }
3662else
3663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3664$as_echo "no" >&6; }
3665fi
3666
3667  if test "x$ac_ct_CC" = x; then
3668    CC=""
3669  else
3670    case $cross_compiling:$ac_tool_warned in
3671yes:)
3672{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3673$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3674ac_tool_warned=yes ;;
3675esac
3676    CC=$ac_ct_CC
3677  fi
3678else
3679  CC="$ac_cv_prog_CC"
3680fi
3681
3682if test -z "$CC"; then
3683          if test -n "$ac_tool_prefix"; then
3684    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3685set dummy ${ac_tool_prefix}cc; ac_word=$2
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3687$as_echo_n "checking for $ac_word... " >&6; }
3688if ${ac_cv_prog_CC+:} false; then :
3689  $as_echo_n "(cached) " >&6
3690else
3691  if test -n "$CC"; then
3692  ac_cv_prog_CC="$CC" # Let the user override the test.
3693else
3694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695for as_dir in $PATH
3696do
3697  IFS=$as_save_IFS
3698  test -z "$as_dir" && as_dir=.
3699    for ac_exec_ext in '' $ac_executable_extensions; do
3700  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3701    ac_cv_prog_CC="${ac_tool_prefix}cc"
3702    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3703    break 2
3704  fi
3705done
3706  done
3707IFS=$as_save_IFS
3708
3709fi
3710fi
3711CC=$ac_cv_prog_CC
3712if test -n "$CC"; then
3713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3714$as_echo "$CC" >&6; }
3715else
3716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717$as_echo "no" >&6; }
3718fi
3719
3720
3721  fi
3722fi
3723if test -z "$CC"; then
3724  # Extract the first word of "cc", so it can be a program name with args.
3725set dummy cc; ac_word=$2
3726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3727$as_echo_n "checking for $ac_word... " >&6; }
3728if ${ac_cv_prog_CC+:} false; then :
3729  $as_echo_n "(cached) " >&6
3730else
3731  if test -n "$CC"; then
3732  ac_cv_prog_CC="$CC" # Let the user override the test.
3733else
3734  ac_prog_rejected=no
3735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736for as_dir in $PATH
3737do
3738  IFS=$as_save_IFS
3739  test -z "$as_dir" && as_dir=.
3740    for ac_exec_ext in '' $ac_executable_extensions; do
3741  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3742    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3743       ac_prog_rejected=yes
3744       continue
3745     fi
3746    ac_cv_prog_CC="cc"
3747    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3748    break 2
3749  fi
3750done
3751  done
3752IFS=$as_save_IFS
3753
3754if test $ac_prog_rejected = yes; then
3755  # We found a bogon in the path, so make sure we never use it.
3756  set dummy $ac_cv_prog_CC
3757  shift
3758  if test $# != 0; then
3759    # We chose a different compiler from the bogus one.
3760    # However, it has the same basename, so the bogon will be chosen
3761    # first if we set CC to just the basename; use the full file name.
3762    shift
3763    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3764  fi
3765fi
3766fi
3767fi
3768CC=$ac_cv_prog_CC
3769if test -n "$CC"; then
3770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3771$as_echo "$CC" >&6; }
3772else
3773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3774$as_echo "no" >&6; }
3775fi
3776
3777
3778fi
3779if test -z "$CC"; then
3780  if test -n "$ac_tool_prefix"; then
3781  for ac_prog in cl.exe
3782  do
3783    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3784set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786$as_echo_n "checking for $ac_word... " >&6; }
3787if ${ac_cv_prog_CC+:} false; then :
3788  $as_echo_n "(cached) " >&6
3789else
3790  if test -n "$CC"; then
3791  ac_cv_prog_CC="$CC" # Let the user override the test.
3792else
3793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794for as_dir in $PATH
3795do
3796  IFS=$as_save_IFS
3797  test -z "$as_dir" && as_dir=.
3798    for ac_exec_ext in '' $ac_executable_extensions; do
3799  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3800    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3801    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3802    break 2
3803  fi
3804done
3805  done
3806IFS=$as_save_IFS
3807
3808fi
3809fi
3810CC=$ac_cv_prog_CC
3811if test -n "$CC"; then
3812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3813$as_echo "$CC" >&6; }
3814else
3815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816$as_echo "no" >&6; }
3817fi
3818
3819
3820    test -n "$CC" && break
3821  done
3822fi
3823if test -z "$CC"; then
3824  ac_ct_CC=$CC
3825  for ac_prog in cl.exe
3826do
3827  # Extract the first word of "$ac_prog", so it can be a program name with args.
3828set dummy $ac_prog; ac_word=$2
3829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3830$as_echo_n "checking for $ac_word... " >&6; }
3831if ${ac_cv_prog_ac_ct_CC+:} false; then :
3832  $as_echo_n "(cached) " >&6
3833else
3834  if test -n "$ac_ct_CC"; then
3835  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3836else
3837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838for as_dir in $PATH
3839do
3840  IFS=$as_save_IFS
3841  test -z "$as_dir" && as_dir=.
3842    for ac_exec_ext in '' $ac_executable_extensions; do
3843  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3844    ac_cv_prog_ac_ct_CC="$ac_prog"
3845    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3846    break 2
3847  fi
3848done
3849  done
3850IFS=$as_save_IFS
3851
3852fi
3853fi
3854ac_ct_CC=$ac_cv_prog_ac_ct_CC
3855if test -n "$ac_ct_CC"; then
3856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3857$as_echo "$ac_ct_CC" >&6; }
3858else
3859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3860$as_echo "no" >&6; }
3861fi
3862
3863
3864  test -n "$ac_ct_CC" && break
3865done
3866
3867  if test "x$ac_ct_CC" = x; then
3868    CC=""
3869  else
3870    case $cross_compiling:$ac_tool_warned in
3871yes:)
3872{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3873$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3874ac_tool_warned=yes ;;
3875esac
3876    CC=$ac_ct_CC
3877  fi
3878fi
3879
3880fi
3881
3882
3883test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3884$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3885as_fn_error $? "no acceptable C compiler found in \$PATH
3886See \`config.log' for more details" "$LINENO" 5; }
3887
3888# Provide some information about the compiler.
3889$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3890set X $ac_compile
3891ac_compiler=$2
3892for ac_option in --version -v -V -qversion; do
3893  { { ac_try="$ac_compiler $ac_option >&5"
3894case "(($ac_try" in
3895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896  *) ac_try_echo=$ac_try;;
3897esac
3898eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3899$as_echo "$ac_try_echo"; } >&5
3900  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3901  ac_status=$?
3902  if test -s conftest.err; then
3903    sed '10a\
3904... rest of stderr output deleted ...
3905         10q' conftest.err >conftest.er1
3906    cat conftest.er1 >&5
3907  fi
3908  rm -f conftest.er1 conftest.err
3909  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3910  test $ac_status = 0; }
3911done
3912
3913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914/* end confdefs.h.  */
3915
3916int
3917main ()
3918{
3919
3920  ;
3921  return 0;
3922}
3923_ACEOF
3924ac_clean_files_save=$ac_clean_files
3925ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3926# Try to create an executable without -o first, disregard a.out.
3927# It will help us diagnose broken compilers, and finding out an intuition
3928# of exeext.
3929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3930$as_echo_n "checking whether the C compiler works... " >&6; }
3931ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3932
3933# The possible output files:
3934ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3935
3936ac_rmfiles=
3937for ac_file in $ac_files
3938do
3939  case $ac_file in
3940    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3941    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3942  esac
3943done
3944rm -f $ac_rmfiles
3945
3946if { { ac_try="$ac_link_default"
3947case "(($ac_try" in
3948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949  *) ac_try_echo=$ac_try;;
3950esac
3951eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3952$as_echo "$ac_try_echo"; } >&5
3953  (eval "$ac_link_default") 2>&5
3954  ac_status=$?
3955  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3956  test $ac_status = 0; }; then :
3957  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3958# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3959# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3960# so that the user can short-circuit this test for compilers unknown to
3961# Autoconf.
3962for ac_file in $ac_files ''
3963do
3964  test -f "$ac_file" || continue
3965  case $ac_file in
3966    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3967	;;
3968    [ab].out )
3969	# We found the default executable, but exeext='' is most
3970	# certainly right.
3971	break;;
3972    *.* )
3973	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3974	then :; else
3975	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3976	fi
3977	# We set ac_cv_exeext here because the later test for it is not
3978	# safe: cross compilers may not add the suffix if given an `-o'
3979	# argument, so we may need to know it at that point already.
3980	# Even if this section looks crufty: it has the advantage of
3981	# actually working.
3982	break;;
3983    * )
3984	break;;
3985  esac
3986done
3987test "$ac_cv_exeext" = no && ac_cv_exeext=
3988
3989else
3990  ac_file=''
3991fi
3992if test -z "$ac_file"; then :
3993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3994$as_echo "no" >&6; }
3995$as_echo "$as_me: failed program was:" >&5
3996sed 's/^/| /' conftest.$ac_ext >&5
3997
3998{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3999$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4000as_fn_error 77 "C compiler cannot create executables
4001See \`config.log' for more details" "$LINENO" 5; }
4002else
4003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4004$as_echo "yes" >&6; }
4005fi
4006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4007$as_echo_n "checking for C compiler default output file name... " >&6; }
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4009$as_echo "$ac_file" >&6; }
4010ac_exeext=$ac_cv_exeext
4011
4012rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4013ac_clean_files=$ac_clean_files_save
4014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4015$as_echo_n "checking for suffix of executables... " >&6; }
4016if { { ac_try="$ac_link"
4017case "(($ac_try" in
4018  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019  *) ac_try_echo=$ac_try;;
4020esac
4021eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4022$as_echo "$ac_try_echo"; } >&5
4023  (eval "$ac_link") 2>&5
4024  ac_status=$?
4025  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4026  test $ac_status = 0; }; then :
4027  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4028# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4029# work properly (i.e., refer to `conftest.exe'), while it won't with
4030# `rm'.
4031for ac_file in conftest.exe conftest conftest.*; do
4032  test -f "$ac_file" || continue
4033  case $ac_file in
4034    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4035    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4036	  break;;
4037    * ) break;;
4038  esac
4039done
4040else
4041  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4042$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4043as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4044See \`config.log' for more details" "$LINENO" 5; }
4045fi
4046rm -f conftest conftest$ac_cv_exeext
4047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4048$as_echo "$ac_cv_exeext" >&6; }
4049
4050rm -f conftest.$ac_ext
4051EXEEXT=$ac_cv_exeext
4052ac_exeext=$EXEEXT
4053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054/* end confdefs.h.  */
4055#include <stdio.h>
4056int
4057main ()
4058{
4059FILE *f = fopen ("conftest.out", "w");
4060 return ferror (f) || fclose (f) != 0;
4061
4062  ;
4063  return 0;
4064}
4065_ACEOF
4066ac_clean_files="$ac_clean_files conftest.out"
4067# Check that the compiler produces executables we can run.  If not, either
4068# the compiler is broken, or we cross compile.
4069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4070$as_echo_n "checking whether we are cross compiling... " >&6; }
4071if test "$cross_compiling" != yes; then
4072  { { ac_try="$ac_link"
4073case "(($ac_try" in
4074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075  *) ac_try_echo=$ac_try;;
4076esac
4077eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4078$as_echo "$ac_try_echo"; } >&5
4079  (eval "$ac_link") 2>&5
4080  ac_status=$?
4081  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4082  test $ac_status = 0; }
4083  if { ac_try='./conftest$ac_cv_exeext'
4084  { { case "(($ac_try" in
4085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086  *) ac_try_echo=$ac_try;;
4087esac
4088eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4089$as_echo "$ac_try_echo"; } >&5
4090  (eval "$ac_try") 2>&5
4091  ac_status=$?
4092  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4093  test $ac_status = 0; }; }; then
4094    cross_compiling=no
4095  else
4096    if test "$cross_compiling" = maybe; then
4097	cross_compiling=yes
4098    else
4099	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4100$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4101as_fn_error $? "cannot run C compiled programs.
4102If you meant to cross compile, use \`--host'.
4103See \`config.log' for more details" "$LINENO" 5; }
4104    fi
4105  fi
4106fi
4107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4108$as_echo "$cross_compiling" >&6; }
4109
4110rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4111ac_clean_files=$ac_clean_files_save
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4113$as_echo_n "checking for suffix of object files... " >&6; }
4114if ${ac_cv_objext+:} false; then :
4115  $as_echo_n "(cached) " >&6
4116else
4117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118/* end confdefs.h.  */
4119
4120int
4121main ()
4122{
4123
4124  ;
4125  return 0;
4126}
4127_ACEOF
4128rm -f conftest.o conftest.obj
4129if { { ac_try="$ac_compile"
4130case "(($ac_try" in
4131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132  *) ac_try_echo=$ac_try;;
4133esac
4134eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4135$as_echo "$ac_try_echo"; } >&5
4136  (eval "$ac_compile") 2>&5
4137  ac_status=$?
4138  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4139  test $ac_status = 0; }; then :
4140  for ac_file in conftest.o conftest.obj conftest.*; do
4141  test -f "$ac_file" || continue;
4142  case $ac_file in
4143    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4144    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4145       break;;
4146  esac
4147done
4148else
4149  $as_echo "$as_me: failed program was:" >&5
4150sed 's/^/| /' conftest.$ac_ext >&5
4151
4152{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4153$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4154as_fn_error $? "cannot compute suffix of object files: cannot compile
4155See \`config.log' for more details" "$LINENO" 5; }
4156fi
4157rm -f conftest.$ac_cv_objext conftest.$ac_ext
4158fi
4159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4160$as_echo "$ac_cv_objext" >&6; }
4161OBJEXT=$ac_cv_objext
4162ac_objext=$OBJEXT
4163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4164$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4165if ${ac_cv_c_compiler_gnu+:} false; then :
4166  $as_echo_n "(cached) " >&6
4167else
4168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169/* end confdefs.h.  */
4170
4171int
4172main ()
4173{
4174#ifndef __GNUC__
4175       choke me
4176#endif
4177
4178  ;
4179  return 0;
4180}
4181_ACEOF
4182if ac_fn_c_try_compile "$LINENO"; then :
4183  ac_compiler_gnu=yes
4184else
4185  ac_compiler_gnu=no
4186fi
4187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4188ac_cv_c_compiler_gnu=$ac_compiler_gnu
4189
4190fi
4191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4192$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4193if test $ac_compiler_gnu = yes; then
4194  GCC=yes
4195else
4196  GCC=
4197fi
4198ac_test_CFLAGS=${CFLAGS+set}
4199ac_save_CFLAGS=$CFLAGS
4200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4201$as_echo_n "checking whether $CC accepts -g... " >&6; }
4202if ${ac_cv_prog_cc_g+:} false; then :
4203  $as_echo_n "(cached) " >&6
4204else
4205  ac_save_c_werror_flag=$ac_c_werror_flag
4206   ac_c_werror_flag=yes
4207   ac_cv_prog_cc_g=no
4208   CFLAGS="-g"
4209   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210/* end confdefs.h.  */
4211
4212int
4213main ()
4214{
4215
4216  ;
4217  return 0;
4218}
4219_ACEOF
4220if ac_fn_c_try_compile "$LINENO"; then :
4221  ac_cv_prog_cc_g=yes
4222else
4223  CFLAGS=""
4224      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225/* end confdefs.h.  */
4226
4227int
4228main ()
4229{
4230
4231  ;
4232  return 0;
4233}
4234_ACEOF
4235if ac_fn_c_try_compile "$LINENO"; then :
4236
4237else
4238  ac_c_werror_flag=$ac_save_c_werror_flag
4239	 CFLAGS="-g"
4240	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241/* end confdefs.h.  */
4242
4243int
4244main ()
4245{
4246
4247  ;
4248  return 0;
4249}
4250_ACEOF
4251if ac_fn_c_try_compile "$LINENO"; then :
4252  ac_cv_prog_cc_g=yes
4253fi
4254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4255fi
4256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4257fi
4258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4259   ac_c_werror_flag=$ac_save_c_werror_flag
4260fi
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4262$as_echo "$ac_cv_prog_cc_g" >&6; }
4263if test "$ac_test_CFLAGS" = set; then
4264  CFLAGS=$ac_save_CFLAGS
4265elif test $ac_cv_prog_cc_g = yes; then
4266  if test "$GCC" = yes; then
4267    CFLAGS="-g -O2"
4268  else
4269    CFLAGS="-g"
4270  fi
4271else
4272  if test "$GCC" = yes; then
4273    CFLAGS="-O2"
4274  else
4275    CFLAGS=
4276  fi
4277fi
4278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4279$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4280if ${ac_cv_prog_cc_c89+:} false; then :
4281  $as_echo_n "(cached) " >&6
4282else
4283  ac_cv_prog_cc_c89=no
4284ac_save_CC=$CC
4285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286/* end confdefs.h.  */
4287#include <stdarg.h>
4288#include <stdio.h>
4289struct stat;
4290/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4291struct buf { int x; };
4292FILE * (*rcsopen) (struct buf *, struct stat *, int);
4293static char *e (p, i)
4294     char **p;
4295     int i;
4296{
4297  return p[i];
4298}
4299static char *f (char * (*g) (char **, int), char **p, ...)
4300{
4301  char *s;
4302  va_list v;
4303  va_start (v,p);
4304  s = g (p, va_arg (v,int));
4305  va_end (v);
4306  return s;
4307}
4308
4309/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4310   function prototypes and stuff, but not '\xHH' hex character constants.
4311   These don't provoke an error unfortunately, instead are silently treated
4312   as 'x'.  The following induces an error, until -std is added to get
4313   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4314   array size at least.  It's necessary to write '\x00'==0 to get something
4315   that's true only with -std.  */
4316int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4317
4318/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4319   inside strings and character constants.  */
4320#define FOO(x) 'x'
4321int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4322
4323int test (int i, double x);
4324struct s1 {int (*f) (int a);};
4325struct s2 {int (*f) (double a);};
4326int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4327int argc;
4328char **argv;
4329int
4330main ()
4331{
4332return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4333  ;
4334  return 0;
4335}
4336_ACEOF
4337for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4338	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4339do
4340  CC="$ac_save_CC $ac_arg"
4341  if ac_fn_c_try_compile "$LINENO"; then :
4342  ac_cv_prog_cc_c89=$ac_arg
4343fi
4344rm -f core conftest.err conftest.$ac_objext
4345  test "x$ac_cv_prog_cc_c89" != "xno" && break
4346done
4347rm -f conftest.$ac_ext
4348CC=$ac_save_CC
4349
4350fi
4351# AC_CACHE_VAL
4352case "x$ac_cv_prog_cc_c89" in
4353  x)
4354    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4355$as_echo "none needed" >&6; } ;;
4356  xno)
4357    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4358$as_echo "unsupported" >&6; } ;;
4359  *)
4360    CC="$CC $ac_cv_prog_cc_c89"
4361    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4362$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4363esac
4364if test "x$ac_cv_prog_cc_c89" != xno; then :
4365
4366fi
4367
4368ac_ext=c
4369ac_cpp='$CPP $CPPFLAGS'
4370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4372ac_compiler_gnu=$ac_cv_c_compiler_gnu
4373
4374ac_ext=c
4375ac_cpp='$CPP $CPPFLAGS'
4376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4378ac_compiler_gnu=$ac_cv_c_compiler_gnu
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4380$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4381if ${am_cv_prog_cc_c_o+:} false; then :
4382  $as_echo_n "(cached) " >&6
4383else
4384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385/* end confdefs.h.  */
4386
4387int
4388main ()
4389{
4390
4391  ;
4392  return 0;
4393}
4394_ACEOF
4395  # Make sure it works both with $CC and with simple cc.
4396  # Following AC_PROG_CC_C_O, we do the test twice because some
4397  # compilers refuse to overwrite an existing .o file with -o,
4398  # though they will create one.
4399  am_cv_prog_cc_c_o=yes
4400  for am_i in 1 2; do
4401    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4402   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4403   ac_status=$?
4404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405   (exit $ac_status); } \
4406         && test -f conftest2.$ac_objext; then
4407      : OK
4408    else
4409      am_cv_prog_cc_c_o=no
4410      break
4411    fi
4412  done
4413  rm -f core conftest*
4414  unset am_i
4415fi
4416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4417$as_echo "$am_cv_prog_cc_c_o" >&6; }
4418if test "$am_cv_prog_cc_c_o" != yes; then
4419   # Losing compiler, so override with the script.
4420   # FIXME: It is wrong to rewrite CC.
4421   # But if we don't then we get into trouble of one sort or another.
4422   # A longer-term fix would be to have automake use am__CC in this case,
4423   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4424   CC="$am_aux_dir/compile $CC"
4425fi
4426ac_ext=c
4427ac_cpp='$CPP $CPPFLAGS'
4428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4430ac_compiler_gnu=$ac_cv_c_compiler_gnu
4431
4432
4433depcc="$CC"   am_compiler_list=
4434
4435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4436$as_echo_n "checking dependency style of $depcc... " >&6; }
4437if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4438  $as_echo_n "(cached) " >&6
4439else
4440  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4441  # We make a subdir and do the tests there.  Otherwise we can end up
4442  # making bogus files that we don't know about and never remove.  For
4443  # instance it was reported that on HP-UX the gcc test will end up
4444  # making a dummy file named 'D' -- because '-MD' means "put the output
4445  # in D".
4446  rm -rf conftest.dir
4447  mkdir conftest.dir
4448  # Copy depcomp to subdir because otherwise we won't find it if we're
4449  # using a relative directory.
4450  cp "$am_depcomp" conftest.dir
4451  cd conftest.dir
4452  # We will build objects and dependencies in a subdirectory because
4453  # it helps to detect inapplicable dependency modes.  For instance
4454  # both Tru64's cc and ICC support -MD to output dependencies as a
4455  # side effect of compilation, but ICC will put the dependencies in
4456  # the current directory while Tru64 will put them in the object
4457  # directory.
4458  mkdir sub
4459
4460  am_cv_CC_dependencies_compiler_type=none
4461  if test "$am_compiler_list" = ""; then
4462     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4463  fi
4464  am__universal=false
4465  case " $depcc " in #(
4466     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4467     esac
4468
4469  for depmode in $am_compiler_list; do
4470    # Setup a source with many dependencies, because some compilers
4471    # like to wrap large dependency lists on column 80 (with \), and
4472    # we should not choose a depcomp mode which is confused by this.
4473    #
4474    # We need to recreate these files for each test, as the compiler may
4475    # overwrite some of them when testing with obscure command lines.
4476    # This happens at least with the AIX C compiler.
4477    : > sub/conftest.c
4478    for i in 1 2 3 4 5 6; do
4479      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4480      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4481      # Solaris 10 /bin/sh.
4482      echo '/* dummy */' > sub/conftst$i.h
4483    done
4484    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4485
4486    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4487    # mode.  It turns out that the SunPro C++ compiler does not properly
4488    # handle '-M -o', and we need to detect this.  Also, some Intel
4489    # versions had trouble with output in subdirs.
4490    am__obj=sub/conftest.${OBJEXT-o}
4491    am__minus_obj="-o $am__obj"
4492    case $depmode in
4493    gcc)
4494      # This depmode causes a compiler race in universal mode.
4495      test "$am__universal" = false || continue
4496      ;;
4497    nosideeffect)
4498      # After this tag, mechanisms are not by side-effect, so they'll
4499      # only be used when explicitly requested.
4500      if test "x$enable_dependency_tracking" = xyes; then
4501	continue
4502      else
4503	break
4504      fi
4505      ;;
4506    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4507      # This compiler won't grok '-c -o', but also, the minuso test has
4508      # not run yet.  These depmodes are late enough in the game, and
4509      # so weak that their functioning should not be impacted.
4510      am__obj=conftest.${OBJEXT-o}
4511      am__minus_obj=
4512      ;;
4513    none) break ;;
4514    esac
4515    if depmode=$depmode \
4516       source=sub/conftest.c object=$am__obj \
4517       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4518       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4519         >/dev/null 2>conftest.err &&
4520       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4521       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4522       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4523       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4524      # icc doesn't choke on unknown options, it will just issue warnings
4525      # or remarks (even with -Werror).  So we grep stderr for any message
4526      # that says an option was ignored or not supported.
4527      # When given -MP, icc 7.0 and 7.1 complain thusly:
4528      #   icc: Command line warning: ignoring option '-M'; no argument required
4529      # The diagnosis changed in icc 8.0:
4530      #   icc: Command line remark: option '-MP' not supported
4531      if (grep 'ignoring option' conftest.err ||
4532          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4533        am_cv_CC_dependencies_compiler_type=$depmode
4534        break
4535      fi
4536    fi
4537  done
4538
4539  cd ..
4540  rm -rf conftest.dir
4541else
4542  am_cv_CC_dependencies_compiler_type=none
4543fi
4544
4545fi
4546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4547$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4548CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4549
4550 if
4551  test "x$enable_dependency_tracking" != xno \
4552  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4553  am__fastdepCC_TRUE=
4554  am__fastdepCC_FALSE='#'
4555else
4556  am__fastdepCC_TRUE='#'
4557  am__fastdepCC_FALSE=
4558fi
4559
4560
4561
4562# Check whether --with-gnu-ld was given.
4563if test "${with_gnu_ld+set}" = set; then :
4564  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4565else
4566  with_gnu_ld=no
4567fi
4568
4569ac_prog=ld
4570if test "$GCC" = yes; then
4571  # Check if gcc -print-prog-name=ld gives a path.
4572  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4573$as_echo_n "checking for ld used by GCC... " >&6; }
4574  case $host in
4575  *-*-mingw*)
4576    # gcc leaves a trailing carriage return which upsets mingw
4577    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4578  *)
4579    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4580  esac
4581  case $ac_prog in
4582    # Accept absolute paths.
4583    [\\/]* | [A-Za-z]:[\\/]*)
4584      re_direlt='/[^/][^/]*/\.\./'
4585      # Canonicalize the path of ld
4586      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4587      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4588	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4589      done
4590      test -z "$LD" && LD="$ac_prog"
4591      ;;
4592  "")
4593    # If it fails, then pretend we aren't using GCC.
4594    ac_prog=ld
4595    ;;
4596  *)
4597    # If it is relative, then search for the first ld in PATH.
4598    with_gnu_ld=unknown
4599    ;;
4600  esac
4601elif test "$with_gnu_ld" = yes; then
4602  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4603$as_echo_n "checking for GNU ld... " >&6; }
4604else
4605  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4606$as_echo_n "checking for non-GNU ld... " >&6; }
4607fi
4608if ${acl_cv_path_LD+:} false; then :
4609  $as_echo_n "(cached) " >&6
4610else
4611  if test -z "$LD"; then
4612  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4613  for ac_dir in $PATH; do
4614    test -z "$ac_dir" && ac_dir=.
4615    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4616      acl_cv_path_LD="$ac_dir/$ac_prog"
4617      # Check to see if the program is GNU ld.  I'd rather use --version,
4618      # but apparently some GNU ld's only accept -v.
4619      # Break only if it was the GNU/non-GNU ld that we prefer.
4620      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4621	test "$with_gnu_ld" != no && break
4622      else
4623	test "$with_gnu_ld" != yes && break
4624      fi
4625    fi
4626  done
4627  IFS="$ac_save_ifs"
4628else
4629  acl_cv_path_LD="$LD" # Let the user override the test with a path.
4630fi
4631fi
4632
4633LD="$acl_cv_path_LD"
4634if test -n "$LD"; then
4635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4636$as_echo "$LD" >&6; }
4637else
4638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4639$as_echo "no" >&6; }
4640fi
4641test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4643$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4644if ${acl_cv_prog_gnu_ld+:} false; then :
4645  $as_echo_n "(cached) " >&6
4646else
4647  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4648if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4649  acl_cv_prog_gnu_ld=yes
4650else
4651  acl_cv_prog_gnu_ld=no
4652fi
4653fi
4654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4655$as_echo "$acl_cv_prog_gnu_ld" >&6; }
4656with_gnu_ld=$acl_cv_prog_gnu_ld
4657
4658
4659
4660                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4661$as_echo_n "checking for shared library run path origin... " >&6; }
4662if ${acl_cv_rpath+:} false; then :
4663  $as_echo_n "(cached) " >&6
4664else
4665
4666    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4667    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4668    . ./conftest.sh
4669    rm -f ./conftest.sh
4670    acl_cv_rpath=done
4671
4672fi
4673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4674$as_echo "$acl_cv_rpath" >&6; }
4675  wl="$acl_cv_wl"
4676  libext="$acl_cv_libext"
4677  shlibext="$acl_cv_shlibext"
4678  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4679  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4680  hardcode_direct="$acl_cv_hardcode_direct"
4681  hardcode_minus_L="$acl_cv_hardcode_minus_L"
4682  sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
4683  sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
4684    # Check whether --enable-rpath was given.
4685if test "${enable_rpath+set}" = set; then :
4686  enableval=$enable_rpath; :
4687else
4688  enable_rpath=yes
4689fi
4690
4691
4692
4693
4694
4695
4696
4697
4698    use_additional=yes
4699
4700  acl_save_prefix="$prefix"
4701  prefix="$acl_final_prefix"
4702  acl_save_exec_prefix="$exec_prefix"
4703  exec_prefix="$acl_final_exec_prefix"
4704
4705    eval additional_includedir=\"$includedir\"
4706    eval additional_libdir=\"$libdir\"
4707
4708  exec_prefix="$acl_save_exec_prefix"
4709  prefix="$acl_save_prefix"
4710
4711
4712# Check whether --with-libiconv-prefix was given.
4713if test "${with_libiconv_prefix+set}" = set; then :
4714  withval=$with_libiconv_prefix;
4715    if test "X$withval" = "Xno"; then
4716      use_additional=no
4717    else
4718      if test "X$withval" = "X"; then
4719
4720  acl_save_prefix="$prefix"
4721  prefix="$acl_final_prefix"
4722  acl_save_exec_prefix="$exec_prefix"
4723  exec_prefix="$acl_final_exec_prefix"
4724
4725          eval additional_includedir=\"$includedir\"
4726          eval additional_libdir=\"$libdir\"
4727
4728  exec_prefix="$acl_save_exec_prefix"
4729  prefix="$acl_save_prefix"
4730
4731      else
4732        additional_includedir="$withval/include"
4733        additional_libdir="$withval/lib"
4734      fi
4735    fi
4736
4737fi
4738
4739      LIBICONV=
4740  LTLIBICONV=
4741  INCICONV=
4742  rpathdirs=
4743  ltrpathdirs=
4744  names_already_handled=
4745  names_next_round='iconv '
4746  while test -n "$names_next_round"; do
4747    names_this_round="$names_next_round"
4748    names_next_round=
4749    for name in $names_this_round; do
4750      already_handled=
4751      for n in $names_already_handled; do
4752        if test "$n" = "$name"; then
4753          already_handled=yes
4754          break
4755        fi
4756      done
4757      if test -z "$already_handled"; then
4758        names_already_handled="$names_already_handled $name"
4759                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4760        eval value=\"\$HAVE_LIB$uppername\"
4761        if test -n "$value"; then
4762          if test "$value" = yes; then
4763            eval value=\"\$LIB$uppername\"
4764            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4765            eval value=\"\$LTLIB$uppername\"
4766            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4767          else
4768                                    :
4769          fi
4770        else
4771                              found_dir=
4772          found_la=
4773          found_so=
4774          found_a=
4775          if test $use_additional = yes; then
4776            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4777              found_dir="$additional_libdir"
4778              found_so="$additional_libdir/lib$name.$shlibext"
4779              if test -f "$additional_libdir/lib$name.la"; then
4780                found_la="$additional_libdir/lib$name.la"
4781              fi
4782            else
4783              if test -f "$additional_libdir/lib$name.$libext"; then
4784                found_dir="$additional_libdir"
4785                found_a="$additional_libdir/lib$name.$libext"
4786                if test -f "$additional_libdir/lib$name.la"; then
4787                  found_la="$additional_libdir/lib$name.la"
4788                fi
4789              fi
4790            fi
4791          fi
4792          if test "X$found_dir" = "X"; then
4793            for x in $LDFLAGS $LTLIBICONV; do
4794
4795  acl_save_prefix="$prefix"
4796  prefix="$acl_final_prefix"
4797  acl_save_exec_prefix="$exec_prefix"
4798  exec_prefix="$acl_final_exec_prefix"
4799  eval x=\"$x\"
4800  exec_prefix="$acl_save_exec_prefix"
4801  prefix="$acl_save_prefix"
4802
4803              case "$x" in
4804                -L*)
4805                  dir=`echo "X$x" | sed -e 's/^X-L//'`
4806                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4807                    found_dir="$dir"
4808                    found_so="$dir/lib$name.$shlibext"
4809                    if test -f "$dir/lib$name.la"; then
4810                      found_la="$dir/lib$name.la"
4811                    fi
4812                  else
4813                    if test -f "$dir/lib$name.$libext"; then
4814                      found_dir="$dir"
4815                      found_a="$dir/lib$name.$libext"
4816                      if test -f "$dir/lib$name.la"; then
4817                        found_la="$dir/lib$name.la"
4818                      fi
4819                    fi
4820                  fi
4821                  ;;
4822              esac
4823              if test "X$found_dir" != "X"; then
4824                break
4825              fi
4826            done
4827          fi
4828          if test "X$found_dir" != "X"; then
4829                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4830            if test "X$found_so" != "X"; then
4831                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4832                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4833              else
4834                                                                                haveit=
4835                for x in $ltrpathdirs; do
4836                  if test "X$x" = "X$found_dir"; then
4837                    haveit=yes
4838                    break
4839                  fi
4840                done
4841                if test -z "$haveit"; then
4842                  ltrpathdirs="$ltrpathdirs $found_dir"
4843                fi
4844                                if test "$hardcode_direct" = yes; then
4845                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4846                else
4847                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4848                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4849                                                            haveit=
4850                    for x in $rpathdirs; do
4851                      if test "X$x" = "X$found_dir"; then
4852                        haveit=yes
4853                        break
4854                      fi
4855                    done
4856                    if test -z "$haveit"; then
4857                      rpathdirs="$rpathdirs $found_dir"
4858                    fi
4859                  else
4860                                                                                haveit=
4861                    for x in $LDFLAGS $LIBICONV; do
4862
4863  acl_save_prefix="$prefix"
4864  prefix="$acl_final_prefix"
4865  acl_save_exec_prefix="$exec_prefix"
4866  exec_prefix="$acl_final_exec_prefix"
4867  eval x=\"$x\"
4868  exec_prefix="$acl_save_exec_prefix"
4869  prefix="$acl_save_prefix"
4870
4871                      if test "X$x" = "X-L$found_dir"; then
4872                        haveit=yes
4873                        break
4874                      fi
4875                    done
4876                    if test -z "$haveit"; then
4877                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4878                    fi
4879                    if test "$hardcode_minus_L" != no; then
4880                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4881                    else
4882                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4883                    fi
4884                  fi
4885                fi
4886              fi
4887            else
4888              if test "X$found_a" != "X"; then
4889                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4890              else
4891                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4892              fi
4893            fi
4894                        additional_includedir=
4895            case "$found_dir" in
4896              */lib | */lib/)
4897                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4898                additional_includedir="$basedir/include"
4899                ;;
4900            esac
4901            if test "X$additional_includedir" != "X"; then
4902                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
4903                haveit=
4904                if test "X$additional_includedir" = "X/usr/local/include"; then
4905                  if test -n "$GCC"; then
4906                    case $host_os in
4907                      linux*) haveit=yes;;
4908                    esac
4909                  fi
4910                fi
4911                if test -z "$haveit"; then
4912                  for x in $CPPFLAGS $INCICONV; do
4913
4914  acl_save_prefix="$prefix"
4915  prefix="$acl_final_prefix"
4916  acl_save_exec_prefix="$exec_prefix"
4917  exec_prefix="$acl_final_exec_prefix"
4918  eval x=\"$x\"
4919  exec_prefix="$acl_save_exec_prefix"
4920  prefix="$acl_save_prefix"
4921
4922                    if test "X$x" = "X-I$additional_includedir"; then
4923                      haveit=yes
4924                      break
4925                    fi
4926                  done
4927                  if test -z "$haveit"; then
4928                    if test -d "$additional_includedir"; then
4929                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4930                    fi
4931                  fi
4932                fi
4933              fi
4934            fi
4935                        if test -n "$found_la"; then
4936                                                        save_libdir="$libdir"
4937              case "$found_la" in
4938                */* | *\\*) . "$found_la" ;;
4939                *) . "./$found_la" ;;
4940              esac
4941              libdir="$save_libdir"
4942                            for dep in $dependency_libs; do
4943                case "$dep" in
4944                  -L*)
4945                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4946                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
4947                      haveit=
4948                      if test "X$additional_libdir" = "X/usr/local/lib"; then
4949                        if test -n "$GCC"; then
4950                          case $host_os in
4951                            linux*) haveit=yes;;
4952                          esac
4953                        fi
4954                      fi
4955                      if test -z "$haveit"; then
4956                        haveit=
4957                        for x in $LDFLAGS $LIBICONV; do
4958
4959  acl_save_prefix="$prefix"
4960  prefix="$acl_final_prefix"
4961  acl_save_exec_prefix="$exec_prefix"
4962  exec_prefix="$acl_final_exec_prefix"
4963  eval x=\"$x\"
4964  exec_prefix="$acl_save_exec_prefix"
4965  prefix="$acl_save_prefix"
4966
4967                          if test "X$x" = "X-L$additional_libdir"; then
4968                            haveit=yes
4969                            break
4970                          fi
4971                        done
4972                        if test -z "$haveit"; then
4973                          if test -d "$additional_libdir"; then
4974                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4975                          fi
4976                        fi
4977                        haveit=
4978                        for x in $LDFLAGS $LTLIBICONV; do
4979
4980  acl_save_prefix="$prefix"
4981  prefix="$acl_final_prefix"
4982  acl_save_exec_prefix="$exec_prefix"
4983  exec_prefix="$acl_final_exec_prefix"
4984  eval x=\"$x\"
4985  exec_prefix="$acl_save_exec_prefix"
4986  prefix="$acl_save_prefix"
4987
4988                          if test "X$x" = "X-L$additional_libdir"; then
4989                            haveit=yes
4990                            break
4991                          fi
4992                        done
4993                        if test -z "$haveit"; then
4994                          if test -d "$additional_libdir"; then
4995                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4996                          fi
4997                        fi
4998                      fi
4999                    fi
5000                    ;;
5001                  -R*)
5002                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
5003                    if test "$enable_rpath" != no; then
5004                                                                  haveit=
5005                      for x in $rpathdirs; do
5006                        if test "X$x" = "X$dir"; then
5007                          haveit=yes
5008                          break
5009                        fi
5010                      done
5011                      if test -z "$haveit"; then
5012                        rpathdirs="$rpathdirs $dir"
5013                      fi
5014                                                                  haveit=
5015                      for x in $ltrpathdirs; do
5016                        if test "X$x" = "X$dir"; then
5017                          haveit=yes
5018                          break
5019                        fi
5020                      done
5021                      if test -z "$haveit"; then
5022                        ltrpathdirs="$ltrpathdirs $dir"
5023                      fi
5024                    fi
5025                    ;;
5026                  -l*)
5027                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5028                    ;;
5029                  *.la)
5030                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5031                    ;;
5032                  *)
5033                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5034                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5035                    ;;
5036                esac
5037              done
5038            fi
5039          else
5040                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5041            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5042          fi
5043        fi
5044      fi
5045    done
5046  done
5047  if test "X$rpathdirs" != "X"; then
5048    if test -n "$hardcode_libdir_separator"; then
5049                        alldirs=
5050      for found_dir in $rpathdirs; do
5051        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5052      done
5053            acl_save_libdir="$libdir"
5054      libdir="$alldirs"
5055      eval flag=\"$hardcode_libdir_flag_spec\"
5056      libdir="$acl_save_libdir"
5057      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5058    else
5059            for found_dir in $rpathdirs; do
5060        acl_save_libdir="$libdir"
5061        libdir="$found_dir"
5062        eval flag=\"$hardcode_libdir_flag_spec\"
5063        libdir="$acl_save_libdir"
5064        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5065      done
5066    fi
5067  fi
5068  if test "X$ltrpathdirs" != "X"; then
5069            for found_dir in $ltrpathdirs; do
5070      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5071    done
5072  fi
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5092$as_echo_n "checking whether NLS is requested... " >&6; }
5093    # Check whether --enable-nls was given.
5094if test "${enable_nls+set}" = set; then :
5095  enableval=$enable_nls; USE_NLS=$enableval
5096else
5097  USE_NLS=yes
5098fi
5099
5100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5101$as_echo "$USE_NLS" >&6; }
5102
5103
5104
5105  LIBINTL=
5106  LTLIBINTL=
5107  POSUB=
5108
5109    if test "$USE_NLS" = "yes"; then
5110    gt_use_preinstalled_gnugettext=no
5111
5112
5113
5114
5115
5116
5117        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5118$as_echo_n "checking for GNU gettext in libc... " >&6; }
5119if ${gt_cv_func_gnugettext1_libc+:} false; then :
5120  $as_echo_n "(cached) " >&6
5121else
5122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123/* end confdefs.h.  */
5124#include <libintl.h>
5125extern int _nl_msg_cat_cntr;
5126extern int *_nl_domain_bindings;
5127int
5128main ()
5129{
5130bindtextdomain ("", "");
5131return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5132  ;
5133  return 0;
5134}
5135_ACEOF
5136if ac_fn_c_try_link "$LINENO"; then :
5137  gt_cv_func_gnugettext1_libc=yes
5138else
5139  gt_cv_func_gnugettext1_libc=no
5140fi
5141rm -f core conftest.err conftest.$ac_objext \
5142    conftest$ac_exeext conftest.$ac_ext
5143fi
5144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
5145$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
5146
5147        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5148
5149
5150
5151
5152
5153          am_save_CPPFLAGS="$CPPFLAGS"
5154
5155  for element in $INCICONV; do
5156    haveit=
5157    for x in $CPPFLAGS; do
5158
5159  acl_save_prefix="$prefix"
5160  prefix="$acl_final_prefix"
5161  acl_save_exec_prefix="$exec_prefix"
5162  exec_prefix="$acl_final_exec_prefix"
5163  eval x=\"$x\"
5164  exec_prefix="$acl_save_exec_prefix"
5165  prefix="$acl_save_prefix"
5166
5167      if test "X$x" = "X$element"; then
5168        haveit=yes
5169        break
5170      fi
5171    done
5172    if test -z "$haveit"; then
5173      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5174    fi
5175  done
5176
5177
5178  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5179$as_echo_n "checking for iconv... " >&6; }
5180if ${am_cv_func_iconv+:} false; then :
5181  $as_echo_n "(cached) " >&6
5182else
5183
5184    am_cv_func_iconv="no, consider installing GNU libiconv"
5185    am_cv_lib_iconv=no
5186    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187/* end confdefs.h.  */
5188#include <stdlib.h>
5189#include <iconv.h>
5190int
5191main ()
5192{
5193iconv_t cd = iconv_open("","");
5194       iconv(cd,NULL,NULL,NULL,NULL);
5195       iconv_close(cd);
5196  ;
5197  return 0;
5198}
5199_ACEOF
5200if ac_fn_c_try_link "$LINENO"; then :
5201  am_cv_func_iconv=yes
5202fi
5203rm -f core conftest.err conftest.$ac_objext \
5204    conftest$ac_exeext conftest.$ac_ext
5205    if test "$am_cv_func_iconv" != yes; then
5206      am_save_LIBS="$LIBS"
5207      LIBS="$LIBS $LIBICONV"
5208      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5209/* end confdefs.h.  */
5210#include <stdlib.h>
5211#include <iconv.h>
5212int
5213main ()
5214{
5215iconv_t cd = iconv_open("","");
5216         iconv(cd,NULL,NULL,NULL,NULL);
5217         iconv_close(cd);
5218  ;
5219  return 0;
5220}
5221_ACEOF
5222if ac_fn_c_try_link "$LINENO"; then :
5223  am_cv_lib_iconv=yes
5224        am_cv_func_iconv=yes
5225fi
5226rm -f core conftest.err conftest.$ac_objext \
5227    conftest$ac_exeext conftest.$ac_ext
5228      LIBS="$am_save_LIBS"
5229    fi
5230
5231fi
5232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5233$as_echo "$am_cv_func_iconv" >&6; }
5234  if test "$am_cv_func_iconv" = yes; then
5235
5236$as_echo "#define HAVE_ICONV 1" >>confdefs.h
5237
5238  fi
5239  if test "$am_cv_lib_iconv" = yes; then
5240    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5241$as_echo_n "checking how to link with libiconv... " >&6; }
5242    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5243$as_echo "$LIBICONV" >&6; }
5244  else
5245            CPPFLAGS="$am_save_CPPFLAGS"
5246    LIBICONV=
5247    LTLIBICONV=
5248  fi
5249
5250
5251
5252
5253
5254
5255    use_additional=yes
5256
5257  acl_save_prefix="$prefix"
5258  prefix="$acl_final_prefix"
5259  acl_save_exec_prefix="$exec_prefix"
5260  exec_prefix="$acl_final_exec_prefix"
5261
5262    eval additional_includedir=\"$includedir\"
5263    eval additional_libdir=\"$libdir\"
5264
5265  exec_prefix="$acl_save_exec_prefix"
5266  prefix="$acl_save_prefix"
5267
5268
5269# Check whether --with-libintl-prefix was given.
5270if test "${with_libintl_prefix+set}" = set; then :
5271  withval=$with_libintl_prefix;
5272    if test "X$withval" = "Xno"; then
5273      use_additional=no
5274    else
5275      if test "X$withval" = "X"; then
5276
5277  acl_save_prefix="$prefix"
5278  prefix="$acl_final_prefix"
5279  acl_save_exec_prefix="$exec_prefix"
5280  exec_prefix="$acl_final_exec_prefix"
5281
5282          eval additional_includedir=\"$includedir\"
5283          eval additional_libdir=\"$libdir\"
5284
5285  exec_prefix="$acl_save_exec_prefix"
5286  prefix="$acl_save_prefix"
5287
5288      else
5289        additional_includedir="$withval/include"
5290        additional_libdir="$withval/lib"
5291      fi
5292    fi
5293
5294fi
5295
5296      LIBINTL=
5297  LTLIBINTL=
5298  INCINTL=
5299  rpathdirs=
5300  ltrpathdirs=
5301  names_already_handled=
5302  names_next_round='intl '
5303  while test -n "$names_next_round"; do
5304    names_this_round="$names_next_round"
5305    names_next_round=
5306    for name in $names_this_round; do
5307      already_handled=
5308      for n in $names_already_handled; do
5309        if test "$n" = "$name"; then
5310          already_handled=yes
5311          break
5312        fi
5313      done
5314      if test -z "$already_handled"; then
5315        names_already_handled="$names_already_handled $name"
5316                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5317        eval value=\"\$HAVE_LIB$uppername\"
5318        if test -n "$value"; then
5319          if test "$value" = yes; then
5320            eval value=\"\$LIB$uppername\"
5321            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5322            eval value=\"\$LTLIB$uppername\"
5323            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5324          else
5325                                    :
5326          fi
5327        else
5328                              found_dir=
5329          found_la=
5330          found_so=
5331          found_a=
5332          if test $use_additional = yes; then
5333            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5334              found_dir="$additional_libdir"
5335              found_so="$additional_libdir/lib$name.$shlibext"
5336              if test -f "$additional_libdir/lib$name.la"; then
5337                found_la="$additional_libdir/lib$name.la"
5338              fi
5339            else
5340              if test -f "$additional_libdir/lib$name.$libext"; then
5341                found_dir="$additional_libdir"
5342                found_a="$additional_libdir/lib$name.$libext"
5343                if test -f "$additional_libdir/lib$name.la"; then
5344                  found_la="$additional_libdir/lib$name.la"
5345                fi
5346              fi
5347            fi
5348          fi
5349          if test "X$found_dir" = "X"; then
5350            for x in $LDFLAGS $LTLIBINTL; do
5351
5352  acl_save_prefix="$prefix"
5353  prefix="$acl_final_prefix"
5354  acl_save_exec_prefix="$exec_prefix"
5355  exec_prefix="$acl_final_exec_prefix"
5356  eval x=\"$x\"
5357  exec_prefix="$acl_save_exec_prefix"
5358  prefix="$acl_save_prefix"
5359
5360              case "$x" in
5361                -L*)
5362                  dir=`echo "X$x" | sed -e 's/^X-L//'`
5363                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5364                    found_dir="$dir"
5365                    found_so="$dir/lib$name.$shlibext"
5366                    if test -f "$dir/lib$name.la"; then
5367                      found_la="$dir/lib$name.la"
5368                    fi
5369                  else
5370                    if test -f "$dir/lib$name.$libext"; then
5371                      found_dir="$dir"
5372                      found_a="$dir/lib$name.$libext"
5373                      if test -f "$dir/lib$name.la"; then
5374                        found_la="$dir/lib$name.la"
5375                      fi
5376                    fi
5377                  fi
5378                  ;;
5379              esac
5380              if test "X$found_dir" != "X"; then
5381                break
5382              fi
5383            done
5384          fi
5385          if test "X$found_dir" != "X"; then
5386                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5387            if test "X$found_so" != "X"; then
5388                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5389                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5390              else
5391                                                                                haveit=
5392                for x in $ltrpathdirs; do
5393                  if test "X$x" = "X$found_dir"; then
5394                    haveit=yes
5395                    break
5396                  fi
5397                done
5398                if test -z "$haveit"; then
5399                  ltrpathdirs="$ltrpathdirs $found_dir"
5400                fi
5401                                if test "$hardcode_direct" = yes; then
5402                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5403                else
5404                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5405                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5406                                                            haveit=
5407                    for x in $rpathdirs; do
5408                      if test "X$x" = "X$found_dir"; then
5409                        haveit=yes
5410                        break
5411                      fi
5412                    done
5413                    if test -z "$haveit"; then
5414                      rpathdirs="$rpathdirs $found_dir"
5415                    fi
5416                  else
5417                                                                                haveit=
5418                    for x in $LDFLAGS $LIBINTL; do
5419
5420  acl_save_prefix="$prefix"
5421  prefix="$acl_final_prefix"
5422  acl_save_exec_prefix="$exec_prefix"
5423  exec_prefix="$acl_final_exec_prefix"
5424  eval x=\"$x\"
5425  exec_prefix="$acl_save_exec_prefix"
5426  prefix="$acl_save_prefix"
5427
5428                      if test "X$x" = "X-L$found_dir"; then
5429                        haveit=yes
5430                        break
5431                      fi
5432                    done
5433                    if test -z "$haveit"; then
5434                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5435                    fi
5436                    if test "$hardcode_minus_L" != no; then
5437                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5438                    else
5439                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5440                    fi
5441                  fi
5442                fi
5443              fi
5444            else
5445              if test "X$found_a" != "X"; then
5446                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5447              else
5448                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5449              fi
5450            fi
5451                        additional_includedir=
5452            case "$found_dir" in
5453              */lib | */lib/)
5454                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5455                additional_includedir="$basedir/include"
5456                ;;
5457            esac
5458            if test "X$additional_includedir" != "X"; then
5459                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
5460                haveit=
5461                if test "X$additional_includedir" = "X/usr/local/include"; then
5462                  if test -n "$GCC"; then
5463                    case $host_os in
5464                      linux*) haveit=yes;;
5465                    esac
5466                  fi
5467                fi
5468                if test -z "$haveit"; then
5469                  for x in $CPPFLAGS $INCINTL; do
5470
5471  acl_save_prefix="$prefix"
5472  prefix="$acl_final_prefix"
5473  acl_save_exec_prefix="$exec_prefix"
5474  exec_prefix="$acl_final_exec_prefix"
5475  eval x=\"$x\"
5476  exec_prefix="$acl_save_exec_prefix"
5477  prefix="$acl_save_prefix"
5478
5479                    if test "X$x" = "X-I$additional_includedir"; then
5480                      haveit=yes
5481                      break
5482                    fi
5483                  done
5484                  if test -z "$haveit"; then
5485                    if test -d "$additional_includedir"; then
5486                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5487                    fi
5488                  fi
5489                fi
5490              fi
5491            fi
5492                        if test -n "$found_la"; then
5493                                                        save_libdir="$libdir"
5494              case "$found_la" in
5495                */* | *\\*) . "$found_la" ;;
5496                *) . "./$found_la" ;;
5497              esac
5498              libdir="$save_libdir"
5499                            for dep in $dependency_libs; do
5500                case "$dep" in
5501                  -L*)
5502                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5503                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
5504                      haveit=
5505                      if test "X$additional_libdir" = "X/usr/local/lib"; then
5506                        if test -n "$GCC"; then
5507                          case $host_os in
5508                            linux*) haveit=yes;;
5509                          esac
5510                        fi
5511                      fi
5512                      if test -z "$haveit"; then
5513                        haveit=
5514                        for x in $LDFLAGS $LIBINTL; do
5515
5516  acl_save_prefix="$prefix"
5517  prefix="$acl_final_prefix"
5518  acl_save_exec_prefix="$exec_prefix"
5519  exec_prefix="$acl_final_exec_prefix"
5520  eval x=\"$x\"
5521  exec_prefix="$acl_save_exec_prefix"
5522  prefix="$acl_save_prefix"
5523
5524                          if test "X$x" = "X-L$additional_libdir"; then
5525                            haveit=yes
5526                            break
5527                          fi
5528                        done
5529                        if test -z "$haveit"; then
5530                          if test -d "$additional_libdir"; then
5531                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5532                          fi
5533                        fi
5534                        haveit=
5535                        for x in $LDFLAGS $LTLIBINTL; do
5536
5537  acl_save_prefix="$prefix"
5538  prefix="$acl_final_prefix"
5539  acl_save_exec_prefix="$exec_prefix"
5540  exec_prefix="$acl_final_exec_prefix"
5541  eval x=\"$x\"
5542  exec_prefix="$acl_save_exec_prefix"
5543  prefix="$acl_save_prefix"
5544
5545                          if test "X$x" = "X-L$additional_libdir"; then
5546                            haveit=yes
5547                            break
5548                          fi
5549                        done
5550                        if test -z "$haveit"; then
5551                          if test -d "$additional_libdir"; then
5552                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5553                          fi
5554                        fi
5555                      fi
5556                    fi
5557                    ;;
5558                  -R*)
5559                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
5560                    if test "$enable_rpath" != no; then
5561                                                                  haveit=
5562                      for x in $rpathdirs; do
5563                        if test "X$x" = "X$dir"; then
5564                          haveit=yes
5565                          break
5566                        fi
5567                      done
5568                      if test -z "$haveit"; then
5569                        rpathdirs="$rpathdirs $dir"
5570                      fi
5571                                                                  haveit=
5572                      for x in $ltrpathdirs; do
5573                        if test "X$x" = "X$dir"; then
5574                          haveit=yes
5575                          break
5576                        fi
5577                      done
5578                      if test -z "$haveit"; then
5579                        ltrpathdirs="$ltrpathdirs $dir"
5580                      fi
5581                    fi
5582                    ;;
5583                  -l*)
5584                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5585                    ;;
5586                  *.la)
5587                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5588                    ;;
5589                  *)
5590                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5591                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5592                    ;;
5593                esac
5594              done
5595            fi
5596          else
5597                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5598            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5599          fi
5600        fi
5601      fi
5602    done
5603  done
5604  if test "X$rpathdirs" != "X"; then
5605    if test -n "$hardcode_libdir_separator"; then
5606                        alldirs=
5607      for found_dir in $rpathdirs; do
5608        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5609      done
5610            acl_save_libdir="$libdir"
5611      libdir="$alldirs"
5612      eval flag=\"$hardcode_libdir_flag_spec\"
5613      libdir="$acl_save_libdir"
5614      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5615    else
5616            for found_dir in $rpathdirs; do
5617        acl_save_libdir="$libdir"
5618        libdir="$found_dir"
5619        eval flag=\"$hardcode_libdir_flag_spec\"
5620        libdir="$acl_save_libdir"
5621        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5622      done
5623    fi
5624  fi
5625  if test "X$ltrpathdirs" != "X"; then
5626            for found_dir in $ltrpathdirs; do
5627      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5628    done
5629  fi
5630
5631          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
5632$as_echo_n "checking for GNU gettext in libintl... " >&6; }
5633if ${gt_cv_func_gnugettext1_libintl+:} false; then :
5634  $as_echo_n "(cached) " >&6
5635else
5636  gt_save_CPPFLAGS="$CPPFLAGS"
5637            CPPFLAGS="$CPPFLAGS $INCINTL"
5638            gt_save_LIBS="$LIBS"
5639            LIBS="$LIBS $LIBINTL"
5640                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641/* end confdefs.h.  */
5642#include <libintl.h>
5643extern int _nl_msg_cat_cntr;
5644extern
5645#ifdef __cplusplus
5646"C"
5647#endif
5648const char *_nl_expand_alias ();
5649int
5650main ()
5651{
5652bindtextdomain ("", "");
5653return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5654  ;
5655  return 0;
5656}
5657_ACEOF
5658if ac_fn_c_try_link "$LINENO"; then :
5659  gt_cv_func_gnugettext1_libintl=yes
5660else
5661  gt_cv_func_gnugettext1_libintl=no
5662fi
5663rm -f core conftest.err conftest.$ac_objext \
5664    conftest$ac_exeext conftest.$ac_ext
5665                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
5666              LIBS="$LIBS $LIBICONV"
5667              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668/* end confdefs.h.  */
5669#include <libintl.h>
5670extern int _nl_msg_cat_cntr;
5671extern
5672#ifdef __cplusplus
5673"C"
5674#endif
5675const char *_nl_expand_alias ();
5676int
5677main ()
5678{
5679bindtextdomain ("", "");
5680return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5681  ;
5682  return 0;
5683}
5684_ACEOF
5685if ac_fn_c_try_link "$LINENO"; then :
5686  LIBINTL="$LIBINTL $LIBICONV"
5687                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
5688                gt_cv_func_gnugettext1_libintl=yes
5689
5690fi
5691rm -f core conftest.err conftest.$ac_objext \
5692    conftest$ac_exeext conftest.$ac_ext
5693            fi
5694            CPPFLAGS="$gt_save_CPPFLAGS"
5695            LIBS="$gt_save_LIBS"
5696fi
5697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
5698$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
5699        fi
5700
5701                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
5702           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
5703                && test "$PACKAGE" != gettext; }; then
5704          gt_use_preinstalled_gnugettext=yes
5705        else
5706                    LIBINTL=
5707          LTLIBINTL=
5708          INCINTL=
5709        fi
5710
5711
5712
5713    if test "$gt_use_preinstalled_gnugettext" = "yes" \
5714       || test "$nls_cv_use_gnu_gettext" = "yes"; then
5715
5716$as_echo "#define ENABLE_NLS 1" >>confdefs.h
5717
5718    else
5719      USE_NLS=no
5720    fi
5721  fi
5722
5723  if test "$USE_NLS" = "yes"; then
5724
5725    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5726      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5727        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
5728$as_echo_n "checking how to link with libintl... " >&6; }
5729        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
5730$as_echo "$LIBINTL" >&6; }
5731
5732  for element in $INCINTL; do
5733    haveit=
5734    for x in $CPPFLAGS; do
5735
5736  acl_save_prefix="$prefix"
5737  prefix="$acl_final_prefix"
5738  acl_save_exec_prefix="$exec_prefix"
5739  exec_prefix="$acl_final_exec_prefix"
5740  eval x=\"$x\"
5741  exec_prefix="$acl_save_exec_prefix"
5742  prefix="$acl_save_prefix"
5743
5744      if test "X$x" = "X$element"; then
5745        haveit=yes
5746        break
5747      fi
5748    done
5749    if test -z "$haveit"; then
5750      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5751    fi
5752  done
5753
5754      fi
5755
5756
5757$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
5758
5759
5760$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
5761
5762    fi
5763
5764        POSUB=po
5765  fi
5766
5767
5768
5769    INTLLIBS="$LIBINTL"
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5785	if test -n "$ac_tool_prefix"; then
5786  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5787set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5789$as_echo_n "checking for $ac_word... " >&6; }
5790if ${ac_cv_path_PKG_CONFIG+:} false; then :
5791  $as_echo_n "(cached) " >&6
5792else
5793  case $PKG_CONFIG in
5794  [\\/]* | ?:[\\/]*)
5795  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5796  ;;
5797  *)
5798  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799for as_dir in $PATH
5800do
5801  IFS=$as_save_IFS
5802  test -z "$as_dir" && as_dir=.
5803    for ac_exec_ext in '' $ac_executable_extensions; do
5804  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5805    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5806    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5807    break 2
5808  fi
5809done
5810  done
5811IFS=$as_save_IFS
5812
5813  ;;
5814esac
5815fi
5816PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5817if test -n "$PKG_CONFIG"; then
5818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5819$as_echo "$PKG_CONFIG" >&6; }
5820else
5821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822$as_echo "no" >&6; }
5823fi
5824
5825
5826fi
5827if test -z "$ac_cv_path_PKG_CONFIG"; then
5828  ac_pt_PKG_CONFIG=$PKG_CONFIG
5829  # Extract the first word of "pkg-config", so it can be a program name with args.
5830set dummy pkg-config; ac_word=$2
5831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5832$as_echo_n "checking for $ac_word... " >&6; }
5833if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5834  $as_echo_n "(cached) " >&6
5835else
5836  case $ac_pt_PKG_CONFIG in
5837  [\\/]* | ?:[\\/]*)
5838  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5839  ;;
5840  *)
5841  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842for as_dir in $PATH
5843do
5844  IFS=$as_save_IFS
5845  test -z "$as_dir" && as_dir=.
5846    for ac_exec_ext in '' $ac_executable_extensions; do
5847  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5848    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5850    break 2
5851  fi
5852done
5853  done
5854IFS=$as_save_IFS
5855
5856  ;;
5857esac
5858fi
5859ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5860if test -n "$ac_pt_PKG_CONFIG"; then
5861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5862$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5863else
5864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865$as_echo "no" >&6; }
5866fi
5867
5868  if test "x$ac_pt_PKG_CONFIG" = x; then
5869    PKG_CONFIG=""
5870  else
5871    case $cross_compiling:$ac_tool_warned in
5872yes:)
5873{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5874$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5875ac_tool_warned=yes ;;
5876esac
5877    PKG_CONFIG=$ac_pt_PKG_CONFIG
5878  fi
5879else
5880  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5881fi
5882
5883fi
5884if test -n "$PKG_CONFIG"; then
5885	_pkg_min_version=0.9.0
5886	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5887$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5888	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5889		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5890$as_echo "yes" >&6; }
5891	else
5892		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5893$as_echo "no" >&6; }
5894		PKG_CONFIG=""
5895	fi
5896fi
5897
5898
5899
5900# Check whether --with-double-samples was given.
5901if test "${with_double_samples+set}" = set; then :
5902  withval=$with_double_samples;
5903$as_echo "#define USE_DOUBLE_SAMPLES /**/" >>confdefs.h
5904
5905MHW_DOUBLE="yes"
5906fi
5907
5908
5909
5910
5911
5912# Check whether --with-check-casts was given.
5913if test "${with_check_casts+set}" = set; then :
5914  withval=$with_check_casts;
5915	if test "x$withval" = "xno" ; then
5916
5917$as_echo "#define GTK_NO_CHECK_CASTS /**/" >>confdefs.h
5918
5919	fi
5920
5921fi
5922
5923
5924
5925
5926# Check whether --enable-werror was given.
5927if test "${enable_werror+set}" = set; then :
5928  enableval=$enable_werror;
5929	if test "x$enableval" = "xyes" ; then
5930	AM_CFLAGS="$AM_CFLAGS -Werror"
5931	fi
5932
5933fi
5934
5935
5936DEFAULT_DRIVER=auto
5937
5938# Check whether --with-default-driver was given.
5939if test "${with_default_driver+set}" = set; then :
5940  withval=$with_default_driver; DEFAULT_DRIVER=$withval
5941fi
5942
5943
5944cat >>confdefs.h <<_ACEOF
5945#define DEFAULT_DRIVER "${DEFAULT_DRIVER}"
5946_ACEOF
5947
5948
5949DEFAULT_LADSPA_PATH="/usr/lib/ladspa:/usr/local/lib/ladspa"
5950
5951# Check whether --with-default-ladspa-path was given.
5952if test "${with_default_ladspa_path+set}" = set; then :
5953  withval=$with_default_ladspa_path; DEFAULT_LADSPA_PATH=$withval
5954fi
5955
5956
5957cat >>confdefs.h <<_ACEOF
5958#define DEFAULT_LADSPA_PATH "${DEFAULT_LADSPA_PATH}"
5959_ACEOF
5960
5961
5962DEFAULT_MIXERAPP=xmixer
5963
5964# Check whether --with-default-mixerapp was given.
5965if test "${with_default_mixerapp+set}" = set; then :
5966  withval=$with_default_mixerapp; DEFAULT_MIXERAPP=$withval
5967fi
5968
5969
5970cat >>confdefs.h <<_ACEOF
5971#define DEFAULT_MIXERAPP "${DEFAULT_MIXERAPP}"
5972_ACEOF
5973
5974
5975FIXED_DATE_STR="__DATE__ (actual compile date)"
5976FIXED_TIME_STR="__TIME__ (actual compile time)"
5977
5978# Check whether --with-build-date was given.
5979if test "${with_build_date+set}" = set; then :
5980  withval=$with_build_date; if test "x$withval" != "xno" ; then
5981
5982cat >>confdefs.h <<_ACEOF
5983#define FIXED_DATE "${withval}"
5984_ACEOF
5985
5986FIXED_DATE_STR=${withval}
5987fi
5988
5989fi
5990
5991
5992
5993# Check whether --with-build-time was given.
5994if test "${with_build_time+set}" = set; then :
5995  withval=$with_build_time; if test "x$withval" != "xno" ; then
5996
5997cat >>confdefs.h <<_ACEOF
5998#define FIXED_TIME "${withval}"
5999_ACEOF
6000
6001FIXED_TIME_STR=${withval}
6002fi
6003
6004fi
6005
6006
6007ac_ext=c
6008ac_cpp='$CPP $CPPFLAGS'
6009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6011ac_compiler_gnu=$ac_cv_c_compiler_gnu
6012if test -n "$ac_tool_prefix"; then
6013  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6014set dummy ${ac_tool_prefix}gcc; ac_word=$2
6015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016$as_echo_n "checking for $ac_word... " >&6; }
6017if ${ac_cv_prog_CC+:} false; then :
6018  $as_echo_n "(cached) " >&6
6019else
6020  if test -n "$CC"; then
6021  ac_cv_prog_CC="$CC" # Let the user override the test.
6022else
6023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024for as_dir in $PATH
6025do
6026  IFS=$as_save_IFS
6027  test -z "$as_dir" && as_dir=.
6028    for ac_exec_ext in '' $ac_executable_extensions; do
6029  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6030    ac_cv_prog_CC="${ac_tool_prefix}gcc"
6031    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6032    break 2
6033  fi
6034done
6035  done
6036IFS=$as_save_IFS
6037
6038fi
6039fi
6040CC=$ac_cv_prog_CC
6041if test -n "$CC"; then
6042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6043$as_echo "$CC" >&6; }
6044else
6045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046$as_echo "no" >&6; }
6047fi
6048
6049
6050fi
6051if test -z "$ac_cv_prog_CC"; then
6052  ac_ct_CC=$CC
6053  # Extract the first word of "gcc", so it can be a program name with args.
6054set dummy gcc; ac_word=$2
6055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6056$as_echo_n "checking for $ac_word... " >&6; }
6057if ${ac_cv_prog_ac_ct_CC+:} false; then :
6058  $as_echo_n "(cached) " >&6
6059else
6060  if test -n "$ac_ct_CC"; then
6061  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6062else
6063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064for as_dir in $PATH
6065do
6066  IFS=$as_save_IFS
6067  test -z "$as_dir" && as_dir=.
6068    for ac_exec_ext in '' $ac_executable_extensions; do
6069  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6070    ac_cv_prog_ac_ct_CC="gcc"
6071    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6072    break 2
6073  fi
6074done
6075  done
6076IFS=$as_save_IFS
6077
6078fi
6079fi
6080ac_ct_CC=$ac_cv_prog_ac_ct_CC
6081if test -n "$ac_ct_CC"; then
6082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6083$as_echo "$ac_ct_CC" >&6; }
6084else
6085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6086$as_echo "no" >&6; }
6087fi
6088
6089  if test "x$ac_ct_CC" = x; then
6090    CC=""
6091  else
6092    case $cross_compiling:$ac_tool_warned in
6093yes:)
6094{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6095$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6096ac_tool_warned=yes ;;
6097esac
6098    CC=$ac_ct_CC
6099  fi
6100else
6101  CC="$ac_cv_prog_CC"
6102fi
6103
6104if test -z "$CC"; then
6105          if test -n "$ac_tool_prefix"; then
6106    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6107set dummy ${ac_tool_prefix}cc; ac_word=$2
6108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6109$as_echo_n "checking for $ac_word... " >&6; }
6110if ${ac_cv_prog_CC+:} false; then :
6111  $as_echo_n "(cached) " >&6
6112else
6113  if test -n "$CC"; then
6114  ac_cv_prog_CC="$CC" # Let the user override the test.
6115else
6116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117for as_dir in $PATH
6118do
6119  IFS=$as_save_IFS
6120  test -z "$as_dir" && as_dir=.
6121    for ac_exec_ext in '' $ac_executable_extensions; do
6122  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6123    ac_cv_prog_CC="${ac_tool_prefix}cc"
6124    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6125    break 2
6126  fi
6127done
6128  done
6129IFS=$as_save_IFS
6130
6131fi
6132fi
6133CC=$ac_cv_prog_CC
6134if test -n "$CC"; then
6135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6136$as_echo "$CC" >&6; }
6137else
6138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6139$as_echo "no" >&6; }
6140fi
6141
6142
6143  fi
6144fi
6145if test -z "$CC"; then
6146  # Extract the first word of "cc", so it can be a program name with args.
6147set dummy cc; ac_word=$2
6148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6149$as_echo_n "checking for $ac_word... " >&6; }
6150if ${ac_cv_prog_CC+:} false; then :
6151  $as_echo_n "(cached) " >&6
6152else
6153  if test -n "$CC"; then
6154  ac_cv_prog_CC="$CC" # Let the user override the test.
6155else
6156  ac_prog_rejected=no
6157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158for as_dir in $PATH
6159do
6160  IFS=$as_save_IFS
6161  test -z "$as_dir" && as_dir=.
6162    for ac_exec_ext in '' $ac_executable_extensions; do
6163  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6164    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6165       ac_prog_rejected=yes
6166       continue
6167     fi
6168    ac_cv_prog_CC="cc"
6169    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6170    break 2
6171  fi
6172done
6173  done
6174IFS=$as_save_IFS
6175
6176if test $ac_prog_rejected = yes; then
6177  # We found a bogon in the path, so make sure we never use it.
6178  set dummy $ac_cv_prog_CC
6179  shift
6180  if test $# != 0; then
6181    # We chose a different compiler from the bogus one.
6182    # However, it has the same basename, so the bogon will be chosen
6183    # first if we set CC to just the basename; use the full file name.
6184    shift
6185    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6186  fi
6187fi
6188fi
6189fi
6190CC=$ac_cv_prog_CC
6191if test -n "$CC"; then
6192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6193$as_echo "$CC" >&6; }
6194else
6195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6196$as_echo "no" >&6; }
6197fi
6198
6199
6200fi
6201if test -z "$CC"; then
6202  if test -n "$ac_tool_prefix"; then
6203  for ac_prog in cl.exe
6204  do
6205    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6206set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6208$as_echo_n "checking for $ac_word... " >&6; }
6209if ${ac_cv_prog_CC+:} false; then :
6210  $as_echo_n "(cached) " >&6
6211else
6212  if test -n "$CC"; then
6213  ac_cv_prog_CC="$CC" # Let the user override the test.
6214else
6215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216for as_dir in $PATH
6217do
6218  IFS=$as_save_IFS
6219  test -z "$as_dir" && as_dir=.
6220    for ac_exec_ext in '' $ac_executable_extensions; do
6221  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6222    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6223    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6224    break 2
6225  fi
6226done
6227  done
6228IFS=$as_save_IFS
6229
6230fi
6231fi
6232CC=$ac_cv_prog_CC
6233if test -n "$CC"; then
6234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6235$as_echo "$CC" >&6; }
6236else
6237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6238$as_echo "no" >&6; }
6239fi
6240
6241
6242    test -n "$CC" && break
6243  done
6244fi
6245if test -z "$CC"; then
6246  ac_ct_CC=$CC
6247  for ac_prog in cl.exe
6248do
6249  # Extract the first word of "$ac_prog", so it can be a program name with args.
6250set dummy $ac_prog; ac_word=$2
6251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6252$as_echo_n "checking for $ac_word... " >&6; }
6253if ${ac_cv_prog_ac_ct_CC+:} false; then :
6254  $as_echo_n "(cached) " >&6
6255else
6256  if test -n "$ac_ct_CC"; then
6257  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6258else
6259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260for as_dir in $PATH
6261do
6262  IFS=$as_save_IFS
6263  test -z "$as_dir" && as_dir=.
6264    for ac_exec_ext in '' $ac_executable_extensions; do
6265  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6266    ac_cv_prog_ac_ct_CC="$ac_prog"
6267    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6268    break 2
6269  fi
6270done
6271  done
6272IFS=$as_save_IFS
6273
6274fi
6275fi
6276ac_ct_CC=$ac_cv_prog_ac_ct_CC
6277if test -n "$ac_ct_CC"; then
6278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6279$as_echo "$ac_ct_CC" >&6; }
6280else
6281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6282$as_echo "no" >&6; }
6283fi
6284
6285
6286  test -n "$ac_ct_CC" && break
6287done
6288
6289  if test "x$ac_ct_CC" = x; then
6290    CC=""
6291  else
6292    case $cross_compiling:$ac_tool_warned in
6293yes:)
6294{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6295$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6296ac_tool_warned=yes ;;
6297esac
6298    CC=$ac_ct_CC
6299  fi
6300fi
6301
6302fi
6303
6304
6305test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6306$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6307as_fn_error $? "no acceptable C compiler found in \$PATH
6308See \`config.log' for more details" "$LINENO" 5; }
6309
6310# Provide some information about the compiler.
6311$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6312set X $ac_compile
6313ac_compiler=$2
6314for ac_option in --version -v -V -qversion; do
6315  { { ac_try="$ac_compiler $ac_option >&5"
6316case "(($ac_try" in
6317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6318  *) ac_try_echo=$ac_try;;
6319esac
6320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6321$as_echo "$ac_try_echo"; } >&5
6322  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6323  ac_status=$?
6324  if test -s conftest.err; then
6325    sed '10a\
6326... rest of stderr output deleted ...
6327         10q' conftest.err >conftest.er1
6328    cat conftest.er1 >&5
6329  fi
6330  rm -f conftest.er1 conftest.err
6331  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6332  test $ac_status = 0; }
6333done
6334
6335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6336$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6337if ${ac_cv_c_compiler_gnu+:} false; then :
6338  $as_echo_n "(cached) " >&6
6339else
6340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6341/* end confdefs.h.  */
6342
6343int
6344main ()
6345{
6346#ifndef __GNUC__
6347       choke me
6348#endif
6349
6350  ;
6351  return 0;
6352}
6353_ACEOF
6354if ac_fn_c_try_compile "$LINENO"; then :
6355  ac_compiler_gnu=yes
6356else
6357  ac_compiler_gnu=no
6358fi
6359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6360ac_cv_c_compiler_gnu=$ac_compiler_gnu
6361
6362fi
6363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6364$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6365if test $ac_compiler_gnu = yes; then
6366  GCC=yes
6367else
6368  GCC=
6369fi
6370ac_test_CFLAGS=${CFLAGS+set}
6371ac_save_CFLAGS=$CFLAGS
6372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6373$as_echo_n "checking whether $CC accepts -g... " >&6; }
6374if ${ac_cv_prog_cc_g+:} false; then :
6375  $as_echo_n "(cached) " >&6
6376else
6377  ac_save_c_werror_flag=$ac_c_werror_flag
6378   ac_c_werror_flag=yes
6379   ac_cv_prog_cc_g=no
6380   CFLAGS="-g"
6381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382/* end confdefs.h.  */
6383
6384int
6385main ()
6386{
6387
6388  ;
6389  return 0;
6390}
6391_ACEOF
6392if ac_fn_c_try_compile "$LINENO"; then :
6393  ac_cv_prog_cc_g=yes
6394else
6395  CFLAGS=""
6396      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6397/* end confdefs.h.  */
6398
6399int
6400main ()
6401{
6402
6403  ;
6404  return 0;
6405}
6406_ACEOF
6407if ac_fn_c_try_compile "$LINENO"; then :
6408
6409else
6410  ac_c_werror_flag=$ac_save_c_werror_flag
6411	 CFLAGS="-g"
6412	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6413/* end confdefs.h.  */
6414
6415int
6416main ()
6417{
6418
6419  ;
6420  return 0;
6421}
6422_ACEOF
6423if ac_fn_c_try_compile "$LINENO"; then :
6424  ac_cv_prog_cc_g=yes
6425fi
6426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6427fi
6428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6429fi
6430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6431   ac_c_werror_flag=$ac_save_c_werror_flag
6432fi
6433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6434$as_echo "$ac_cv_prog_cc_g" >&6; }
6435if test "$ac_test_CFLAGS" = set; then
6436  CFLAGS=$ac_save_CFLAGS
6437elif test $ac_cv_prog_cc_g = yes; then
6438  if test "$GCC" = yes; then
6439    CFLAGS="-g -O2"
6440  else
6441    CFLAGS="-g"
6442  fi
6443else
6444  if test "$GCC" = yes; then
6445    CFLAGS="-O2"
6446  else
6447    CFLAGS=
6448  fi
6449fi
6450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6451$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6452if ${ac_cv_prog_cc_c89+:} false; then :
6453  $as_echo_n "(cached) " >&6
6454else
6455  ac_cv_prog_cc_c89=no
6456ac_save_CC=$CC
6457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458/* end confdefs.h.  */
6459#include <stdarg.h>
6460#include <stdio.h>
6461struct stat;
6462/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6463struct buf { int x; };
6464FILE * (*rcsopen) (struct buf *, struct stat *, int);
6465static char *e (p, i)
6466     char **p;
6467     int i;
6468{
6469  return p[i];
6470}
6471static char *f (char * (*g) (char **, int), char **p, ...)
6472{
6473  char *s;
6474  va_list v;
6475  va_start (v,p);
6476  s = g (p, va_arg (v,int));
6477  va_end (v);
6478  return s;
6479}
6480
6481/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6482   function prototypes and stuff, but not '\xHH' hex character constants.
6483   These don't provoke an error unfortunately, instead are silently treated
6484   as 'x'.  The following induces an error, until -std is added to get
6485   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6486   array size at least.  It's necessary to write '\x00'==0 to get something
6487   that's true only with -std.  */
6488int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6489
6490/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6491   inside strings and character constants.  */
6492#define FOO(x) 'x'
6493int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6494
6495int test (int i, double x);
6496struct s1 {int (*f) (int a);};
6497struct s2 {int (*f) (double a);};
6498int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6499int argc;
6500char **argv;
6501int
6502main ()
6503{
6504return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6505  ;
6506  return 0;
6507}
6508_ACEOF
6509for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6510	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6511do
6512  CC="$ac_save_CC $ac_arg"
6513  if ac_fn_c_try_compile "$LINENO"; then :
6514  ac_cv_prog_cc_c89=$ac_arg
6515fi
6516rm -f core conftest.err conftest.$ac_objext
6517  test "x$ac_cv_prog_cc_c89" != "xno" && break
6518done
6519rm -f conftest.$ac_ext
6520CC=$ac_save_CC
6521
6522fi
6523# AC_CACHE_VAL
6524case "x$ac_cv_prog_cc_c89" in
6525  x)
6526    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6527$as_echo "none needed" >&6; } ;;
6528  xno)
6529    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6530$as_echo "unsupported" >&6; } ;;
6531  *)
6532    CC="$CC $ac_cv_prog_cc_c89"
6533    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6534$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6535esac
6536if test "x$ac_cv_prog_cc_c89" != xno; then :
6537
6538fi
6539
6540ac_ext=c
6541ac_cpp='$CPP $CPPFLAGS'
6542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6544ac_compiler_gnu=$ac_cv_c_compiler_gnu
6545
6546ac_ext=c
6547ac_cpp='$CPP $CPPFLAGS'
6548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6550ac_compiler_gnu=$ac_cv_c_compiler_gnu
6551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6552$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6553if ${am_cv_prog_cc_c_o+:} false; then :
6554  $as_echo_n "(cached) " >&6
6555else
6556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6557/* end confdefs.h.  */
6558
6559int
6560main ()
6561{
6562
6563  ;
6564  return 0;
6565}
6566_ACEOF
6567  # Make sure it works both with $CC and with simple cc.
6568  # Following AC_PROG_CC_C_O, we do the test twice because some
6569  # compilers refuse to overwrite an existing .o file with -o,
6570  # though they will create one.
6571  am_cv_prog_cc_c_o=yes
6572  for am_i in 1 2; do
6573    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6574   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6575   ac_status=$?
6576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577   (exit $ac_status); } \
6578         && test -f conftest2.$ac_objext; then
6579      : OK
6580    else
6581      am_cv_prog_cc_c_o=no
6582      break
6583    fi
6584  done
6585  rm -f core conftest*
6586  unset am_i
6587fi
6588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6589$as_echo "$am_cv_prog_cc_c_o" >&6; }
6590if test "$am_cv_prog_cc_c_o" != yes; then
6591   # Losing compiler, so override with the script.
6592   # FIXME: It is wrong to rewrite CC.
6593   # But if we don't then we get into trouble of one sort or another.
6594   # A longer-term fix would be to have automake use am__CC in this case,
6595   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6596   CC="$am_aux_dir/compile $CC"
6597fi
6598ac_ext=c
6599ac_cpp='$CPP $CPPFLAGS'
6600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6602ac_compiler_gnu=$ac_cv_c_compiler_gnu
6603
6604
6605depcc="$CC"   am_compiler_list=
6606
6607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6608$as_echo_n "checking dependency style of $depcc... " >&6; }
6609if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6610  $as_echo_n "(cached) " >&6
6611else
6612  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6613  # We make a subdir and do the tests there.  Otherwise we can end up
6614  # making bogus files that we don't know about and never remove.  For
6615  # instance it was reported that on HP-UX the gcc test will end up
6616  # making a dummy file named 'D' -- because '-MD' means "put the output
6617  # in D".
6618  rm -rf conftest.dir
6619  mkdir conftest.dir
6620  # Copy depcomp to subdir because otherwise we won't find it if we're
6621  # using a relative directory.
6622  cp "$am_depcomp" conftest.dir
6623  cd conftest.dir
6624  # We will build objects and dependencies in a subdirectory because
6625  # it helps to detect inapplicable dependency modes.  For instance
6626  # both Tru64's cc and ICC support -MD to output dependencies as a
6627  # side effect of compilation, but ICC will put the dependencies in
6628  # the current directory while Tru64 will put them in the object
6629  # directory.
6630  mkdir sub
6631
6632  am_cv_CC_dependencies_compiler_type=none
6633  if test "$am_compiler_list" = ""; then
6634     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6635  fi
6636  am__universal=false
6637  case " $depcc " in #(
6638     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6639     esac
6640
6641  for depmode in $am_compiler_list; do
6642    # Setup a source with many dependencies, because some compilers
6643    # like to wrap large dependency lists on column 80 (with \), and
6644    # we should not choose a depcomp mode which is confused by this.
6645    #
6646    # We need to recreate these files for each test, as the compiler may
6647    # overwrite some of them when testing with obscure command lines.
6648    # This happens at least with the AIX C compiler.
6649    : > sub/conftest.c
6650    for i in 1 2 3 4 5 6; do
6651      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6652      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6653      # Solaris 10 /bin/sh.
6654      echo '/* dummy */' > sub/conftst$i.h
6655    done
6656    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6657
6658    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6659    # mode.  It turns out that the SunPro C++ compiler does not properly
6660    # handle '-M -o', and we need to detect this.  Also, some Intel
6661    # versions had trouble with output in subdirs.
6662    am__obj=sub/conftest.${OBJEXT-o}
6663    am__minus_obj="-o $am__obj"
6664    case $depmode in
6665    gcc)
6666      # This depmode causes a compiler race in universal mode.
6667      test "$am__universal" = false || continue
6668      ;;
6669    nosideeffect)
6670      # After this tag, mechanisms are not by side-effect, so they'll
6671      # only be used when explicitly requested.
6672      if test "x$enable_dependency_tracking" = xyes; then
6673	continue
6674      else
6675	break
6676      fi
6677      ;;
6678    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6679      # This compiler won't grok '-c -o', but also, the minuso test has
6680      # not run yet.  These depmodes are late enough in the game, and
6681      # so weak that their functioning should not be impacted.
6682      am__obj=conftest.${OBJEXT-o}
6683      am__minus_obj=
6684      ;;
6685    none) break ;;
6686    esac
6687    if depmode=$depmode \
6688       source=sub/conftest.c object=$am__obj \
6689       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6690       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6691         >/dev/null 2>conftest.err &&
6692       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6693       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6694       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6695       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6696      # icc doesn't choke on unknown options, it will just issue warnings
6697      # or remarks (even with -Werror).  So we grep stderr for any message
6698      # that says an option was ignored or not supported.
6699      # When given -MP, icc 7.0 and 7.1 complain thusly:
6700      #   icc: Command line warning: ignoring option '-M'; no argument required
6701      # The diagnosis changed in icc 8.0:
6702      #   icc: Command line remark: option '-MP' not supported
6703      if (grep 'ignoring option' conftest.err ||
6704          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6705        am_cv_CC_dependencies_compiler_type=$depmode
6706        break
6707      fi
6708    fi
6709  done
6710
6711  cd ..
6712  rm -rf conftest.dir
6713else
6714  am_cv_CC_dependencies_compiler_type=none
6715fi
6716
6717fi
6718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6719$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6720CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6721
6722 if
6723  test "x$enable_dependency_tracking" != xno \
6724  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6725  am__fastdepCC_TRUE=
6726  am__fastdepCC_FALSE='#'
6727else
6728  am__fastdepCC_TRUE='#'
6729  am__fastdepCC_FALSE=
6730fi
6731
6732
6733ac_ext=c
6734ac_cpp='$CPP $CPPFLAGS'
6735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6737ac_compiler_gnu=$ac_cv_c_compiler_gnu
6738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6739$as_echo_n "checking how to run the C preprocessor... " >&6; }
6740# On Suns, sometimes $CPP names a directory.
6741if test -n "$CPP" && test -d "$CPP"; then
6742  CPP=
6743fi
6744if test -z "$CPP"; then
6745  if ${ac_cv_prog_CPP+:} false; then :
6746  $as_echo_n "(cached) " >&6
6747else
6748      # Double quotes because CPP needs to be expanded
6749    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6750    do
6751      ac_preproc_ok=false
6752for ac_c_preproc_warn_flag in '' yes
6753do
6754  # Use a header file that comes with gcc, so configuring glibc
6755  # with a fresh cross-compiler works.
6756  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6757  # <limits.h> exists even on freestanding compilers.
6758  # On the NeXT, cc -E runs the code through the compiler's parser,
6759  # not just through cpp. "Syntax error" is here to catch this case.
6760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761/* end confdefs.h.  */
6762#ifdef __STDC__
6763# include <limits.h>
6764#else
6765# include <assert.h>
6766#endif
6767		     Syntax error
6768_ACEOF
6769if ac_fn_c_try_cpp "$LINENO"; then :
6770
6771else
6772  # Broken: fails on valid input.
6773continue
6774fi
6775rm -f conftest.err conftest.i conftest.$ac_ext
6776
6777  # OK, works on sane cases.  Now check whether nonexistent headers
6778  # can be detected and how.
6779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6780/* end confdefs.h.  */
6781#include <ac_nonexistent.h>
6782_ACEOF
6783if ac_fn_c_try_cpp "$LINENO"; then :
6784  # Broken: success on invalid input.
6785continue
6786else
6787  # Passes both tests.
6788ac_preproc_ok=:
6789break
6790fi
6791rm -f conftest.err conftest.i conftest.$ac_ext
6792
6793done
6794# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6795rm -f conftest.i conftest.err conftest.$ac_ext
6796if $ac_preproc_ok; then :
6797  break
6798fi
6799
6800    done
6801    ac_cv_prog_CPP=$CPP
6802
6803fi
6804  CPP=$ac_cv_prog_CPP
6805else
6806  ac_cv_prog_CPP=$CPP
6807fi
6808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6809$as_echo "$CPP" >&6; }
6810ac_preproc_ok=false
6811for ac_c_preproc_warn_flag in '' yes
6812do
6813  # Use a header file that comes with gcc, so configuring glibc
6814  # with a fresh cross-compiler works.
6815  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6816  # <limits.h> exists even on freestanding compilers.
6817  # On the NeXT, cc -E runs the code through the compiler's parser,
6818  # not just through cpp. "Syntax error" is here to catch this case.
6819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6820/* end confdefs.h.  */
6821#ifdef __STDC__
6822# include <limits.h>
6823#else
6824# include <assert.h>
6825#endif
6826		     Syntax error
6827_ACEOF
6828if ac_fn_c_try_cpp "$LINENO"; then :
6829
6830else
6831  # Broken: fails on valid input.
6832continue
6833fi
6834rm -f conftest.err conftest.i conftest.$ac_ext
6835
6836  # OK, works on sane cases.  Now check whether nonexistent headers
6837  # can be detected and how.
6838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6839/* end confdefs.h.  */
6840#include <ac_nonexistent.h>
6841_ACEOF
6842if ac_fn_c_try_cpp "$LINENO"; then :
6843  # Broken: success on invalid input.
6844continue
6845else
6846  # Passes both tests.
6847ac_preproc_ok=:
6848break
6849fi
6850rm -f conftest.err conftest.i conftest.$ac_ext
6851
6852done
6853# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6854rm -f conftest.i conftest.err conftest.$ac_ext
6855if $ac_preproc_ok; then :
6856
6857else
6858  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6859$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6860as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6861See \`config.log' for more details" "$LINENO" 5; }
6862fi
6863
6864ac_ext=c
6865ac_cpp='$CPP $CPPFLAGS'
6866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6868ac_compiler_gnu=$ac_cv_c_compiler_gnu
6869
6870
6871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6872$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6873if ${ac_cv_path_GREP+:} false; then :
6874  $as_echo_n "(cached) " >&6
6875else
6876  if test -z "$GREP"; then
6877  ac_path_GREP_found=false
6878  # Loop through the user's path and test for each of PROGNAME-LIST
6879  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6881do
6882  IFS=$as_save_IFS
6883  test -z "$as_dir" && as_dir=.
6884    for ac_prog in grep ggrep; do
6885    for ac_exec_ext in '' $ac_executable_extensions; do
6886      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6887      as_fn_executable_p "$ac_path_GREP" || continue
6888# Check for GNU ac_path_GREP and select it if it is found.
6889  # Check for GNU $ac_path_GREP
6890case `"$ac_path_GREP" --version 2>&1` in
6891*GNU*)
6892  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6893*)
6894  ac_count=0
6895  $as_echo_n 0123456789 >"conftest.in"
6896  while :
6897  do
6898    cat "conftest.in" "conftest.in" >"conftest.tmp"
6899    mv "conftest.tmp" "conftest.in"
6900    cp "conftest.in" "conftest.nl"
6901    $as_echo 'GREP' >> "conftest.nl"
6902    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6903    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6904    as_fn_arith $ac_count + 1 && ac_count=$as_val
6905    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6906      # Best one so far, save it but keep looking for a better one
6907      ac_cv_path_GREP="$ac_path_GREP"
6908      ac_path_GREP_max=$ac_count
6909    fi
6910    # 10*(2^10) chars as input seems more than enough
6911    test $ac_count -gt 10 && break
6912  done
6913  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6914esac
6915
6916      $ac_path_GREP_found && break 3
6917    done
6918  done
6919  done
6920IFS=$as_save_IFS
6921  if test -z "$ac_cv_path_GREP"; then
6922    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6923  fi
6924else
6925  ac_cv_path_GREP=$GREP
6926fi
6927
6928fi
6929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6930$as_echo "$ac_cv_path_GREP" >&6; }
6931 GREP="$ac_cv_path_GREP"
6932
6933
6934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6935$as_echo_n "checking for egrep... " >&6; }
6936if ${ac_cv_path_EGREP+:} false; then :
6937  $as_echo_n "(cached) " >&6
6938else
6939  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6940   then ac_cv_path_EGREP="$GREP -E"
6941   else
6942     if test -z "$EGREP"; then
6943  ac_path_EGREP_found=false
6944  # Loop through the user's path and test for each of PROGNAME-LIST
6945  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6947do
6948  IFS=$as_save_IFS
6949  test -z "$as_dir" && as_dir=.
6950    for ac_prog in egrep; do
6951    for ac_exec_ext in '' $ac_executable_extensions; do
6952      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6953      as_fn_executable_p "$ac_path_EGREP" || continue
6954# Check for GNU ac_path_EGREP and select it if it is found.
6955  # Check for GNU $ac_path_EGREP
6956case `"$ac_path_EGREP" --version 2>&1` in
6957*GNU*)
6958  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6959*)
6960  ac_count=0
6961  $as_echo_n 0123456789 >"conftest.in"
6962  while :
6963  do
6964    cat "conftest.in" "conftest.in" >"conftest.tmp"
6965    mv "conftest.tmp" "conftest.in"
6966    cp "conftest.in" "conftest.nl"
6967    $as_echo 'EGREP' >> "conftest.nl"
6968    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6969    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6970    as_fn_arith $ac_count + 1 && ac_count=$as_val
6971    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6972      # Best one so far, save it but keep looking for a better one
6973      ac_cv_path_EGREP="$ac_path_EGREP"
6974      ac_path_EGREP_max=$ac_count
6975    fi
6976    # 10*(2^10) chars as input seems more than enough
6977    test $ac_count -gt 10 && break
6978  done
6979  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6980esac
6981
6982      $ac_path_EGREP_found && break 3
6983    done
6984  done
6985  done
6986IFS=$as_save_IFS
6987  if test -z "$ac_cv_path_EGREP"; then
6988    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6989  fi
6990else
6991  ac_cv_path_EGREP=$EGREP
6992fi
6993
6994   fi
6995fi
6996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6997$as_echo "$ac_cv_path_EGREP" >&6; }
6998 EGREP="$ac_cv_path_EGREP"
6999
7000
7001if test $ac_cv_c_compiler_gnu = yes; then
7002    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
7003$as_echo_n "checking whether $CC needs -traditional... " >&6; }
7004if ${ac_cv_prog_gcc_traditional+:} false; then :
7005  $as_echo_n "(cached) " >&6
7006else
7007    ac_pattern="Autoconf.*'x'"
7008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7009/* end confdefs.h.  */
7010#include <sgtty.h>
7011Autoconf TIOCGETP
7012_ACEOF
7013if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7014  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
7015  ac_cv_prog_gcc_traditional=yes
7016else
7017  ac_cv_prog_gcc_traditional=no
7018fi
7019rm -f conftest*
7020
7021
7022  if test $ac_cv_prog_gcc_traditional = no; then
7023    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024/* end confdefs.h.  */
7025#include <termio.h>
7026Autoconf TCGETA
7027_ACEOF
7028if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7029  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
7030  ac_cv_prog_gcc_traditional=yes
7031fi
7032rm -f conftest*
7033
7034  fi
7035fi
7036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
7037$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
7038  if test $ac_cv_prog_gcc_traditional = yes; then
7039    CC="$CC -traditional"
7040  fi
7041fi
7042
7043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7044$as_echo_n "checking whether ln -s works... " >&6; }
7045LN_S=$as_ln_s
7046if test "$LN_S" = "ln -s"; then
7047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7048$as_echo "yes" >&6; }
7049else
7050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7051$as_echo "no, using $LN_S" >&6; }
7052fi
7053
7054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7055$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7056set x ${MAKE-make}
7057ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7058if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7059  $as_echo_n "(cached) " >&6
7060else
7061  cat >conftest.make <<\_ACEOF
7062SHELL = /bin/sh
7063all:
7064	@echo '@@@%%%=$(MAKE)=@@@%%%'
7065_ACEOF
7066# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7067case `${MAKE-make} -f conftest.make 2>/dev/null` in
7068  *@@@%%%=?*=@@@%%%*)
7069    eval ac_cv_prog_make_${ac_make}_set=yes;;
7070  *)
7071    eval ac_cv_prog_make_${ac_make}_set=no;;
7072esac
7073rm -f conftest.make
7074fi
7075if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7077$as_echo "yes" >&6; }
7078  SET_MAKE=
7079else
7080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7081$as_echo "no" >&6; }
7082  SET_MAKE="MAKE=${MAKE-make}"
7083fi
7084
7085
7086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -libs" >&5
7087$as_echo_n "checking for main in -libs... " >&6; }
7088if ${ac_cv_lib_ibs_main+:} false; then :
7089  $as_echo_n "(cached) " >&6
7090else
7091  ac_check_lib_save_LIBS=$LIBS
7092LIBS="-libs  $LIBS"
7093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7094/* end confdefs.h.  */
7095
7096
7097int
7098main ()
7099{
7100return main ();
7101  ;
7102  return 0;
7103}
7104_ACEOF
7105if ac_fn_c_try_link "$LINENO"; then :
7106  ac_cv_lib_ibs_main=yes
7107else
7108  ac_cv_lib_ibs_main=no
7109fi
7110rm -f core conftest.err conftest.$ac_objext \
7111    conftest$ac_exeext conftest.$ac_ext
7112LIBS=$ac_check_lib_save_LIBS
7113fi
7114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibs_main" >&5
7115$as_echo "$ac_cv_lib_ibs_main" >&6; }
7116if test "x$ac_cv_lib_ibs_main" = xyes; then :
7117  cat >>confdefs.h <<_ACEOF
7118#define HAVE_LIBIBS 1
7119_ACEOF
7120
7121  LIBS="-libs $LIBS"
7122
7123fi
7124
7125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for round in -lm" >&5
7126$as_echo_n "checking for round in -lm... " >&6; }
7127if ${ac_cv_lib_m_round+:} false; then :
7128  $as_echo_n "(cached) " >&6
7129else
7130  ac_check_lib_save_LIBS=$LIBS
7131LIBS="-lm  $LIBS"
7132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133/* end confdefs.h.  */
7134
7135/* Override any GCC internal prototype to avoid an error.
7136   Use char because int might match the return type of a GCC
7137   builtin and then its argument prototype would still apply.  */
7138#ifdef __cplusplus
7139extern "C"
7140#endif
7141char round ();
7142int
7143main ()
7144{
7145return round ();
7146  ;
7147  return 0;
7148}
7149_ACEOF
7150if ac_fn_c_try_link "$LINENO"; then :
7151  ac_cv_lib_m_round=yes
7152else
7153  ac_cv_lib_m_round=no
7154fi
7155rm -f core conftest.err conftest.$ac_objext \
7156    conftest$ac_exeext conftest.$ac_ext
7157LIBS=$ac_check_lib_save_LIBS
7158fi
7159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_round" >&5
7160$as_echo "$ac_cv_lib_m_round" >&6; }
7161if test "x$ac_cv_lib_m_round" = xyes; then :
7162  cat >>confdefs.h <<_ACEOF
7163#define HAVE_LIBM 1
7164_ACEOF
7165
7166  LIBS="-lm $LIBS"
7167
7168fi
7169
7170
7171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7172$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7173if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7174  $as_echo_n "(cached) " >&6
7175else
7176  ac_check_lib_save_LIBS=$LIBS
7177LIBS="-lpthread  $LIBS"
7178cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179/* end confdefs.h.  */
7180
7181/* Override any GCC internal prototype to avoid an error.
7182   Use char because int might match the return type of a GCC
7183   builtin and then its argument prototype would still apply.  */
7184#ifdef __cplusplus
7185extern "C"
7186#endif
7187char pthread_create ();
7188int
7189main ()
7190{
7191return pthread_create ();
7192  ;
7193  return 0;
7194}
7195_ACEOF
7196if ac_fn_c_try_link "$LINENO"; then :
7197  ac_cv_lib_pthread_pthread_create=yes
7198else
7199  ac_cv_lib_pthread_pthread_create=no
7200fi
7201rm -f core conftest.err conftest.$ac_objext \
7202    conftest$ac_exeext conftest.$ac_ext
7203LIBS=$ac_check_lib_save_LIBS
7204fi
7205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7206$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7207if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7208  cat >>confdefs.h <<_ACEOF
7209#define HAVE_LIBPTHREAD 1
7210_ACEOF
7211
7212  LIBS="-lpthread $LIBS"
7213
7214fi
7215
7216
7217
7218HAVE_SNDFILE=yes
7219SKIP_SNDFILE_CHECK=no
7220SNDFILE_LIBS=""
7221SNDFILE_CFLAGS=""
7222
7223
7224
7225
7226# Check whether --with-libsndfile was given.
7227if test "${with_libsndfile+set}" = set; then :
7228  withval=$with_libsndfile;
7229	if test "x$withval" = "xno" ; then
7230		HAVE_SNDFILE=no
7231	else
7232		SNDFILE_LIBS="-L$withval/lib -lsndfile -lm"
7233		SNDFILE_CFLAGS="-I$withval/include"
7234		SKIP_SNDFILE_CHECK=yes
7235	fi
7236
7237fi
7238
7239
7240if test "x$HAVE_SNDFILE" = "xyes" -a "x$SKIP_SNDFILE_CHECK" = "xno"; then
7241
7242pkg_failed=no
7243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SNDFILE" >&5
7244$as_echo_n "checking for SNDFILE... " >&6; }
7245
7246if test -n "$SNDFILE_CFLAGS"; then
7247    pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS"
7248 elif test -n "$PKG_CONFIG"; then
7249    if test -n "$PKG_CONFIG" && \
7250    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile\""; } >&5
7251  ($PKG_CONFIG --exists --print-errors "sndfile") 2>&5
7252  ac_status=$?
7253  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7254  test $ac_status = 0; }; then
7255  pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile" 2>/dev/null`
7256		      test "x$?" != "x0" && pkg_failed=yes
7257else
7258  pkg_failed=yes
7259fi
7260 else
7261    pkg_failed=untried
7262fi
7263if test -n "$SNDFILE_LIBS"; then
7264    pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS"
7265 elif test -n "$PKG_CONFIG"; then
7266    if test -n "$PKG_CONFIG" && \
7267    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile\""; } >&5
7268  ($PKG_CONFIG --exists --print-errors "sndfile") 2>&5
7269  ac_status=$?
7270  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7271  test $ac_status = 0; }; then
7272  pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile" 2>/dev/null`
7273		      test "x$?" != "x0" && pkg_failed=yes
7274else
7275  pkg_failed=yes
7276fi
7277 else
7278    pkg_failed=untried
7279fi
7280
7281
7282
7283if test $pkg_failed = yes; then
7284   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7285$as_echo "no" >&6; }
7286
7287if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7288        _pkg_short_errors_supported=yes
7289else
7290        _pkg_short_errors_supported=no
7291fi
7292        if test $_pkg_short_errors_supported = yes; then
7293	        SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndfile" 2>&1`
7294        else
7295	        SNDFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndfile" 2>&1`
7296        fi
7297	# Put the nasty error message in config.log where it belongs
7298	echo "$SNDFILE_PKG_ERRORS" >&5
7299
7300	HAVE_SNDFILE=no
7301elif test $pkg_failed = untried; then
7302     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7303$as_echo "no" >&6; }
7304	HAVE_SNDFILE=no
7305else
7306	SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS
7307	SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS
7308        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7309$as_echo "yes" >&6; }
7310
7311fi
7312fi
7313
7314if test "x$HAVE_SNDFILE" = "xyes" ; then
7315
7316$as_echo "#define HAVE_LIBSNDFILE /**/" >>confdefs.h
7317
7318fi
7319
7320
7321
7322
7323
7324HAVE_LIBSAMPLERATE=yes
7325SKIP_LIBSAMPLERATE_CHECK=no
7326LIBSAMPLERATE_LIBS=""
7327LIBSAMPLERATE_CFLAGS=""
7328
7329
7330
7331
7332# Check whether --with-libsamplerate was given.
7333if test "${with_libsamplerate+set}" = set; then :
7334  withval=$with_libsamplerate;
7335	if test "x$withval" = "xno" ; then
7336		HAVE_LIBSAMPLERATE=no
7337	else
7338		LIBSAMPLERATE_LIBS="-L$withval/lib -lsamplerate"
7339		LIBSAMPLERATE_CFLAGS="-I$withval/include"
7340		SKIP_LIBSAMPLERATE_CHECK=yes
7341	fi
7342
7343fi
7344
7345
7346if test "x$HAVE_LIBSAMPLERATE" = "xyes" -a "x$SKIP_LIBSAMPLERATE_CHECK" = "xno"; then
7347
7348pkg_failed=no
7349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSAMPLERATE" >&5
7350$as_echo_n "checking for LIBSAMPLERATE... " >&6; }
7351
7352if test -n "$LIBSAMPLERATE_CFLAGS"; then
7353    pkg_cv_LIBSAMPLERATE_CFLAGS="$LIBSAMPLERATE_CFLAGS"
7354 elif test -n "$PKG_CONFIG"; then
7355    if test -n "$PKG_CONFIG" && \
7356    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"samplerate\""; } >&5
7357  ($PKG_CONFIG --exists --print-errors "samplerate") 2>&5
7358  ac_status=$?
7359  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7360  test $ac_status = 0; }; then
7361  pkg_cv_LIBSAMPLERATE_CFLAGS=`$PKG_CONFIG --cflags "samplerate" 2>/dev/null`
7362		      test "x$?" != "x0" && pkg_failed=yes
7363else
7364  pkg_failed=yes
7365fi
7366 else
7367    pkg_failed=untried
7368fi
7369if test -n "$LIBSAMPLERATE_LIBS"; then
7370    pkg_cv_LIBSAMPLERATE_LIBS="$LIBSAMPLERATE_LIBS"
7371 elif test -n "$PKG_CONFIG"; then
7372    if test -n "$PKG_CONFIG" && \
7373    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"samplerate\""; } >&5
7374  ($PKG_CONFIG --exists --print-errors "samplerate") 2>&5
7375  ac_status=$?
7376  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7377  test $ac_status = 0; }; then
7378  pkg_cv_LIBSAMPLERATE_LIBS=`$PKG_CONFIG --libs "samplerate" 2>/dev/null`
7379		      test "x$?" != "x0" && pkg_failed=yes
7380else
7381  pkg_failed=yes
7382fi
7383 else
7384    pkg_failed=untried
7385fi
7386
7387
7388
7389if test $pkg_failed = yes; then
7390   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7391$as_echo "no" >&6; }
7392
7393if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7394        _pkg_short_errors_supported=yes
7395else
7396        _pkg_short_errors_supported=no
7397fi
7398        if test $_pkg_short_errors_supported = yes; then
7399	        LIBSAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "samplerate" 2>&1`
7400        else
7401	        LIBSAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "samplerate" 2>&1`
7402        fi
7403	# Put the nasty error message in config.log where it belongs
7404	echo "$LIBSAMPLERATE_PKG_ERRORS" >&5
7405
7406	HAVE_LIBSAMPLERATE=no
7407elif test $pkg_failed = untried; then
7408     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7409$as_echo "no" >&6; }
7410	HAVE_LIBSAMPLERATE=no
7411else
7412	LIBSAMPLERATE_CFLAGS=$pkg_cv_LIBSAMPLERATE_CFLAGS
7413	LIBSAMPLERATE_LIBS=$pkg_cv_LIBSAMPLERATE_LIBS
7414        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7415$as_echo "yes" >&6; }
7416
7417fi
7418fi
7419
7420if test "x$HAVE_LIBSAMPLERATE" = "xyes" ; then
7421
7422$as_echo "#define HAVE_LIBSAMPLERATE /**/" >>confdefs.h
7423
7424fi
7425
7426
7427
7428
7429
7430PORTAUDIO_LIBS=""
7431MHW_HAVE_PORTAUDIO=yes
7432
7433
7434# Check whether --with-portaudio was given.
7435if test "${with_portaudio+set}" = set; then :
7436  withval=$with_portaudio; if test "x$withval" = "xno"; then
7437MHW_HAVE_PORTAUDIO=no
7438fi
7439
7440fi
7441
7442
7443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7444$as_echo_n "checking for ANSI C header files... " >&6; }
7445if ${ac_cv_header_stdc+:} false; then :
7446  $as_echo_n "(cached) " >&6
7447else
7448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449/* end confdefs.h.  */
7450#include <stdlib.h>
7451#include <stdarg.h>
7452#include <string.h>
7453#include <float.h>
7454
7455int
7456main ()
7457{
7458
7459  ;
7460  return 0;
7461}
7462_ACEOF
7463if ac_fn_c_try_compile "$LINENO"; then :
7464  ac_cv_header_stdc=yes
7465else
7466  ac_cv_header_stdc=no
7467fi
7468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7469
7470if test $ac_cv_header_stdc = yes; then
7471  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473/* end confdefs.h.  */
7474#include <string.h>
7475
7476_ACEOF
7477if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7478  $EGREP "memchr" >/dev/null 2>&1; then :
7479
7480else
7481  ac_cv_header_stdc=no
7482fi
7483rm -f conftest*
7484
7485fi
7486
7487if test $ac_cv_header_stdc = yes; then
7488  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7490/* end confdefs.h.  */
7491#include <stdlib.h>
7492
7493_ACEOF
7494if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7495  $EGREP "free" >/dev/null 2>&1; then :
7496
7497else
7498  ac_cv_header_stdc=no
7499fi
7500rm -f conftest*
7501
7502fi
7503
7504if test $ac_cv_header_stdc = yes; then
7505  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7506  if test "$cross_compiling" = yes; then :
7507  :
7508else
7509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510/* end confdefs.h.  */
7511#include <ctype.h>
7512#include <stdlib.h>
7513#if ((' ' & 0x0FF) == 0x020)
7514# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7515# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7516#else
7517# define ISLOWER(c) \
7518		   (('a' <= (c) && (c) <= 'i') \
7519		     || ('j' <= (c) && (c) <= 'r') \
7520		     || ('s' <= (c) && (c) <= 'z'))
7521# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7522#endif
7523
7524#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7525int
7526main ()
7527{
7528  int i;
7529  for (i = 0; i < 256; i++)
7530    if (XOR (islower (i), ISLOWER (i))
7531	|| toupper (i) != TOUPPER (i))
7532      return 2;
7533  return 0;
7534}
7535_ACEOF
7536if ac_fn_c_try_run "$LINENO"; then :
7537
7538else
7539  ac_cv_header_stdc=no
7540fi
7541rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7542  conftest.$ac_objext conftest.beam conftest.$ac_ext
7543fi
7544
7545fi
7546fi
7547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7548$as_echo "$ac_cv_header_stdc" >&6; }
7549if test $ac_cv_header_stdc = yes; then
7550
7551$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7552
7553fi
7554
7555# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7556for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7557		  inttypes.h stdint.h unistd.h
7558do :
7559  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7560ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7561"
7562if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7563  cat >>confdefs.h <<_ACEOF
7564#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7565_ACEOF
7566
7567fi
7568
7569done
7570
7571
7572ac_fn_c_check_header_mongrel "$LINENO" "portaudio.h" "ac_cv_header_portaudio_h" "$ac_includes_default"
7573if test "x$ac_cv_header_portaudio_h" = xyes; then :
7574  mhw_found_header=yes
7575else
7576  mhw_found_header=no
7577fi
7578
7579
7580if test "x$mhw_found_header" = "xno"; then
7581MHW_HAVE_PORTAUDIO=no
7582fi
7583
7584if test "x$MHW_HAVE_PORTAUDIO" = "xyes"; then
7585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Pa_Initialize in -lportaudio" >&5
7586$as_echo_n "checking for Pa_Initialize in -lportaudio... " >&6; }
7587if ${ac_cv_lib_portaudio_Pa_Initialize+:} false; then :
7588  $as_echo_n "(cached) " >&6
7589else
7590  ac_check_lib_save_LIBS=$LIBS
7591LIBS="-lportaudio  $LIBS"
7592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593/* end confdefs.h.  */
7594
7595/* Override any GCC internal prototype to avoid an error.
7596   Use char because int might match the return type of a GCC
7597   builtin and then its argument prototype would still apply.  */
7598#ifdef __cplusplus
7599extern "C"
7600#endif
7601char Pa_Initialize ();
7602int
7603main ()
7604{
7605return Pa_Initialize ();
7606  ;
7607  return 0;
7608}
7609_ACEOF
7610if ac_fn_c_try_link "$LINENO"; then :
7611  ac_cv_lib_portaudio_Pa_Initialize=yes
7612else
7613  ac_cv_lib_portaudio_Pa_Initialize=no
7614fi
7615rm -f core conftest.err conftest.$ac_objext \
7616    conftest$ac_exeext conftest.$ac_ext
7617LIBS=$ac_check_lib_save_LIBS
7618fi
7619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_portaudio_Pa_Initialize" >&5
7620$as_echo "$ac_cv_lib_portaudio_Pa_Initialize" >&6; }
7621if test "x$ac_cv_lib_portaudio_Pa_Initialize" = xyes; then :
7622  MHW_HAVE_PORTAUDIO=yes
7623else
7624  MHW_HAVE_PORTAUDIO=no
7625fi
7626
7627fi
7628
7629if test "x$MHW_HAVE_PORTAUDIO" = "xyes"; then
7630ac_fn_c_check_type "$LINENO" "PaTimestamp" "ac_cv_type_PaTimestamp" "#include <portaudio.h>
7631"
7632if test "x$ac_cv_type_PaTimestamp" = xyes; then :
7633
7634else
7635  MHW_HAVE_PORTAUDIO=no
7636fi
7637
7638fi
7639
7640if test "x$MHW_HAVE_PORTAUDIO" = "xyes"; then
7641
7642$as_echo "#define HAVE_PORTAUDIO /**/" >>confdefs.h
7643
7644	PORTAUDIO_LIBS="-lportaudio $PORTAUDIO_LIBS"
7645fi
7646
7647
7648
7649
7650SKIP_SDL_TEST=no
7651MHW_HAVE_SDL=no
7652
7653
7654
7655
7656# Check whether --with-sdl was given.
7657if test "${with_sdl+set}" = set; then :
7658  withval=$with_sdl;
7659	if test "x$withval" = "xno" ; then
7660		SKIP_SDL_TEST=yes
7661	fi
7662
7663fi
7664
7665
7666if test "x$SKIP_SDL_TEST" = "xno"; then
7667
7668# Check whether --with-sdl-prefix was given.
7669if test "${with_sdl_prefix+set}" = set; then :
7670  withval=$with_sdl_prefix; sdl_prefix="$withval"
7671else
7672  sdl_prefix=""
7673fi
7674
7675
7676# Check whether --with-sdl-exec-prefix was given.
7677if test "${with_sdl_exec_prefix+set}" = set; then :
7678  withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
7679else
7680  sdl_exec_prefix=""
7681fi
7682
7683# Check whether --enable-sdltest was given.
7684if test "${enable_sdltest+set}" = set; then :
7685  enableval=$enable_sdltest;
7686else
7687  enable_sdltest=yes
7688fi
7689
7690
7691  if test x$sdl_exec_prefix != x ; then
7692    sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
7693    if test x${SDL_CONFIG+set} != xset ; then
7694      SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
7695    fi
7696  fi
7697  if test x$sdl_prefix != x ; then
7698    sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
7699    if test x${SDL_CONFIG+set} != xset ; then
7700      SDL_CONFIG=$sdl_prefix/bin/sdl-config
7701    fi
7702  fi
7703
7704  as_save_PATH="$PATH"
7705  if test "x$prefix" != xNONE; then
7706    PATH="$prefix/bin:$prefix/usr/bin:$PATH"
7707  fi
7708  # Extract the first word of "sdl-config", so it can be a program name with args.
7709set dummy sdl-config; ac_word=$2
7710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7711$as_echo_n "checking for $ac_word... " >&6; }
7712if ${ac_cv_path_SDL_CONFIG+:} false; then :
7713  $as_echo_n "(cached) " >&6
7714else
7715  case $SDL_CONFIG in
7716  [\\/]* | ?:[\\/]*)
7717  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7718  ;;
7719  *)
7720  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721for as_dir in $PATH
7722do
7723  IFS=$as_save_IFS
7724  test -z "$as_dir" && as_dir=.
7725    for ac_exec_ext in '' $ac_executable_extensions; do
7726  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7727    ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7728    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7729    break 2
7730  fi
7731done
7732  done
7733IFS=$as_save_IFS
7734
7735  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7736  ;;
7737esac
7738fi
7739SDL_CONFIG=$ac_cv_path_SDL_CONFIG
7740if test -n "$SDL_CONFIG"; then
7741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
7742$as_echo "$SDL_CONFIG" >&6; }
7743else
7744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7745$as_echo "no" >&6; }
7746fi
7747
7748
7749  PATH="$as_save_PATH"
7750  min_sdl_version=1.2.3
7751  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
7752$as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
7753  no_sdl=""
7754  if test "$SDL_CONFIG" = "no" ; then
7755    no_sdl=yes
7756  else
7757    SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
7758    SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
7759
7760    sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
7761           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7762    sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
7763           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7764    sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
7765           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7766    if test "x$enable_sdltest" = "xyes" ; then
7767      ac_save_CFLAGS="$CFLAGS"
7768      ac_save_CXXFLAGS="$CXXFLAGS"
7769      ac_save_LIBS="$LIBS"
7770      CFLAGS="$CFLAGS $SDL_CFLAGS"
7771      CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
7772      LIBS="$LIBS $SDL_LIBS"
7773      rm -f conf.sdltest
7774      if test "$cross_compiling" = yes; then :
7775  echo $ac_n "cross compiling; assumed OK... $ac_c"
7776else
7777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778/* end confdefs.h.  */
7779
7780#include <stdio.h>
7781#include <stdlib.h>
7782#include <string.h>
7783#include "SDL.h"
7784
7785char*
7786my_strdup (char *str)
7787{
7788  char *new_str;
7789
7790  if (str)
7791    {
7792      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
7793      strcpy (new_str, str);
7794    }
7795  else
7796    new_str = NULL;
7797
7798  return new_str;
7799}
7800
7801int main (int argc, char *argv[])
7802{
7803  int major, minor, micro;
7804  char *tmp_version;
7805
7806  /* This hangs on some systems (?)
7807  system ("touch conf.sdltest");
7808  */
7809  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
7810
7811  /* HP/UX 9 (%@#!) writes to sscanf strings */
7812  tmp_version = my_strdup("$min_sdl_version");
7813  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7814     printf("%s, bad version string\n", "$min_sdl_version");
7815     exit(1);
7816   }
7817
7818   if (($sdl_major_version > major) ||
7819      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
7820      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
7821    {
7822      return 0;
7823    }
7824  else
7825    {
7826      printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
7827      printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
7828      printf("*** best to upgrade to the required version.\n");
7829      printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
7830      printf("*** to point to the correct copy of sdl-config, and remove the file\n");
7831      printf("*** config.cache before re-running configure\n");
7832      return 1;
7833    }
7834}
7835
7836
7837_ACEOF
7838if ac_fn_c_try_run "$LINENO"; then :
7839
7840else
7841  no_sdl=yes
7842fi
7843rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7844  conftest.$ac_objext conftest.beam conftest.$ac_ext
7845fi
7846
7847       CFLAGS="$ac_save_CFLAGS"
7848       CXXFLAGS="$ac_save_CXXFLAGS"
7849       LIBS="$ac_save_LIBS"
7850     fi
7851  fi
7852  if test "x$no_sdl" = x ; then
7853     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7854$as_echo "yes" >&6; }
7855
7856$as_echo "#define HAVE_SDL /**/" >>confdefs.h
7857
7858	 MHW_HAVE_SDL=yes
7859  else
7860     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7861$as_echo "no" >&6; }
7862     if test "$SDL_CONFIG" = "no" ; then
7863       echo "*** The sdl-config script installed by SDL could not be found"
7864       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
7865       echo "*** your path, or set the SDL_CONFIG environment variable to the"
7866       echo "*** full path to sdl-config."
7867     else
7868       if test -f conf.sdltest ; then
7869        :
7870       else
7871          echo "*** Could not run SDL test program, checking why..."
7872          CFLAGS="$CFLAGS $SDL_CFLAGS"
7873          CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
7874          LIBS="$LIBS $SDL_LIBS"
7875          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7876/* end confdefs.h.  */
7877
7878#include <stdio.h>
7879#include "SDL.h"
7880
7881int main(int argc, char *argv[])
7882{ return 0; }
7883#undef  main
7884#define main K_and_R_C_main
7885
7886int
7887main ()
7888{
7889 return 0;
7890  ;
7891  return 0;
7892}
7893_ACEOF
7894if ac_fn_c_try_link "$LINENO"; then :
7895   echo "*** The test program compiled, but did not run. This usually means"
7896          echo "*** that the run-time linker is not finding SDL or finding the wrong"
7897          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
7898          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7899          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
7900          echo "*** is required on your system"
7901	  echo "***"
7902          echo "*** If you have an old version installed, it is best to remove it, although"
7903          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7904else
7905   echo "*** The test program failed to compile or link. See the file config.log for the"
7906          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
7907          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
7908          echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
7909fi
7910rm -f core conftest.err conftest.$ac_objext \
7911    conftest$ac_exeext conftest.$ac_ext
7912          CFLAGS="$ac_save_CFLAGS"
7913          CXXFLAGS="$ac_save_CXXFLAGS"
7914          LIBS="$ac_save_LIBS"
7915       fi
7916     fi
7917     SDL_CFLAGS=""
7918     SDL_LIBS=""
7919     :
7920  fi
7921
7922
7923  rm -f conf.sdltest
7924
7925fi
7926
7927
7928ALSALIB_LIBS=""
7929
7930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
7931$as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
7932if ${ac_cv_lib_asound_snd_pcm_open+:} false; then :
7933  $as_echo_n "(cached) " >&6
7934else
7935  ac_check_lib_save_LIBS=$LIBS
7936LIBS="-lasound  $LIBS"
7937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938/* end confdefs.h.  */
7939
7940/* Override any GCC internal prototype to avoid an error.
7941   Use char because int might match the return type of a GCC
7942   builtin and then its argument prototype would still apply.  */
7943#ifdef __cplusplus
7944extern "C"
7945#endif
7946char snd_pcm_open ();
7947int
7948main ()
7949{
7950return snd_pcm_open ();
7951  ;
7952  return 0;
7953}
7954_ACEOF
7955if ac_fn_c_try_link "$LINENO"; then :
7956  ac_cv_lib_asound_snd_pcm_open=yes
7957else
7958  ac_cv_lib_asound_snd_pcm_open=no
7959fi
7960rm -f core conftest.err conftest.$ac_objext \
7961    conftest$ac_exeext conftest.$ac_ext
7962LIBS=$ac_check_lib_save_LIBS
7963fi
7964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
7965$as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
7966if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then :
7967  HAVE_ALSALIB=yes
7968else
7969  HAVE_ALSALIB=no
7970fi
7971
7972
7973
7974
7975
7976# Check whether --with-alsalib was given.
7977if test "${with_alsalib+set}" = set; then :
7978  withval=$with_alsalib;
7979	if test "x$withval" = "xno" ; then
7980		HAVE_ALSALIB=no
7981	fi
7982
7983fi
7984
7985
7986ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
7987if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then :
7988  mhw_found_header=yes
7989else
7990  mhw_found_header=no
7991fi
7992
7993
7994if test "x$mhw_found_header" = "xno"; then
7995   HAVE_ALSALIB="no"
7996fi
7997
7998if test "x$HAVE_ALSALIB" = "xyes"; then
7999	ALSALIB_LIBS="-lasound"
8000
8001$as_echo "#define HAVE_ALSALIB /**/" >>confdefs.h
8002
8003fi
8004
8005
8006
8007
8008HAVE_OSS=yes
8009
8010
8011
8012
8013# Check whether --with-oss was given.
8014if test "${with_oss+set}" = set; then :
8015  withval=$with_oss;
8016	if test "x$withval" = "xno" ; then
8017		HAVE_OSS=no
8018	fi
8019
8020fi
8021
8022
8023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8024$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8025if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
8026  $as_echo_n "(cached) " >&6
8027else
8028  ac_check_lib_save_LIBS=$LIBS
8029LIBS="-lossaudio  $LIBS"
8030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8031/* end confdefs.h.  */
8032
8033/* Override any GCC internal prototype to avoid an error.
8034   Use char because int might match the return type of a GCC
8035   builtin and then its argument prototype would still apply.  */
8036#ifdef __cplusplus
8037extern "C"
8038#endif
8039char _oss_ioctl ();
8040int
8041main ()
8042{
8043return _oss_ioctl ();
8044  ;
8045  return 0;
8046}
8047_ACEOF
8048if ac_fn_c_try_link "$LINENO"; then :
8049  ac_cv_lib_ossaudio__oss_ioctl=yes
8050else
8051  ac_cv_lib_ossaudio__oss_ioctl=no
8052fi
8053rm -f core conftest.err conftest.$ac_objext \
8054    conftest$ac_exeext conftest.$ac_ext
8055LIBS=$ac_check_lib_save_LIBS
8056fi
8057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8058$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8059if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
8060  cat >>confdefs.h <<_ACEOF
8061#define HAVE_LIBOSSAUDIO 1
8062_ACEOF
8063
8064  LIBS="-lossaudio $LIBS"
8065
8066fi
8067
8068
8069mhw_found_one=no
8070for ac_header in soundcard.h sys/soundcard.h
8071do :
8072  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8073ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8074if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8075  cat >>confdefs.h <<_ACEOF
8076#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8077_ACEOF
8078 mhw_found_one=yes
8079fi
8080
8081done
8082
8083if test "x$mhw_found_one" = "xno"; then
8084	HAVE_OSS=no
8085fi
8086
8087if test "x$HAVE_OSS" = "xyes"; then
8088
8089$as_echo "#define HAVE_OSS /**/" >>confdefs.h
8090
8091fi
8092
8093
8094MHW_HAVE_JACK=no
8095MHW_SKIP_JACKTEST=no
8096
8097
8098
8099
8100# Check whether --with-jack was given.
8101if test "${with_jack+set}" = set; then :
8102  withval=$with_jack;
8103	if test "x$withval" = "xno" ; then
8104	   MHW_SKIP_JACKTEST='yes'
8105	fi
8106
8107fi
8108
8109
8110if test "x$MHW_SKIP_JACKTEST" = "xno"
8111then
8112
8113pkg_failed=no
8114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5
8115$as_echo_n "checking for JACK... " >&6; }
8116
8117if test -n "$JACK_CFLAGS"; then
8118    pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
8119 elif test -n "$PKG_CONFIG"; then
8120    if test -n "$PKG_CONFIG" && \
8121    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.98.0\""; } >&5
8122  ($PKG_CONFIG --exists --print-errors "jack >= 0.98.0") 2>&5
8123  ac_status=$?
8124  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8125  test $ac_status = 0; }; then
8126  pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.98.0" 2>/dev/null`
8127		      test "x$?" != "x0" && pkg_failed=yes
8128else
8129  pkg_failed=yes
8130fi
8131 else
8132    pkg_failed=untried
8133fi
8134if test -n "$JACK_LIBS"; then
8135    pkg_cv_JACK_LIBS="$JACK_LIBS"
8136 elif test -n "$PKG_CONFIG"; then
8137    if test -n "$PKG_CONFIG" && \
8138    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.98.0\""; } >&5
8139  ($PKG_CONFIG --exists --print-errors "jack >= 0.98.0") 2>&5
8140  ac_status=$?
8141  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8142  test $ac_status = 0; }; then
8143  pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.98.0" 2>/dev/null`
8144		      test "x$?" != "x0" && pkg_failed=yes
8145else
8146  pkg_failed=yes
8147fi
8148 else
8149    pkg_failed=untried
8150fi
8151
8152
8153
8154if test $pkg_failed = yes; then
8155   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156$as_echo "no" >&6; }
8157
8158if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8159        _pkg_short_errors_supported=yes
8160else
8161        _pkg_short_errors_supported=no
8162fi
8163        if test $_pkg_short_errors_supported = yes; then
8164	        JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.98.0" 2>&1`
8165        else
8166	        JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.98.0" 2>&1`
8167        fi
8168	# Put the nasty error message in config.log where it belongs
8169	echo "$JACK_PKG_ERRORS" >&5
8170
8171	MHW_HAVE_JACK=no
8172elif test $pkg_failed = untried; then
8173     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8174$as_echo "no" >&6; }
8175	MHW_HAVE_JACK=no
8176else
8177	JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
8178	JACK_LIBS=$pkg_cv_JACK_LIBS
8179        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8180$as_echo "yes" >&6; }
8181	MHW_HAVE_JACK=yes
8182fi
8183fi
8184
8185if test "x$MHW_HAVE_JACK" = "xyes" ; then
8186
8187$as_echo "#define HAVE_JACK /**/" >>confdefs.h
8188
8189fi
8190
8191
8192MHW_HAVE_PULSE=no
8193MHW_SKIP_PULSETEST=no
8194
8195
8196
8197
8198# Check whether --with-pulse was given.
8199if test "${with_pulse+set}" = set; then :
8200  withval=$with_pulse;
8201	if test "x$withval" = "xno" ; then
8202	   MHW_SKIP_PULSETEST='yes'
8203	fi
8204
8205fi
8206
8207
8208if test "x$MHW_SKIP_PULSETEST" = "xno"
8209then
8210
8211pkg_failed=no
8212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PULSE" >&5
8213$as_echo_n "checking for PULSE... " >&6; }
8214
8215if test -n "$PULSE_CFLAGS"; then
8216    pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
8217 elif test -n "$PKG_CONFIG"; then
8218    if test -n "$PKG_CONFIG" && \
8219    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= 0.9.10\""; } >&5
8220  ($PKG_CONFIG --exists --print-errors "libpulse >= 0.9.10") 2>&5
8221  ac_status=$?
8222  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8223  test $ac_status = 0; }; then
8224  pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse >= 0.9.10" 2>/dev/null`
8225		      test "x$?" != "x0" && pkg_failed=yes
8226else
8227  pkg_failed=yes
8228fi
8229 else
8230    pkg_failed=untried
8231fi
8232if test -n "$PULSE_LIBS"; then
8233    pkg_cv_PULSE_LIBS="$PULSE_LIBS"
8234 elif test -n "$PKG_CONFIG"; then
8235    if test -n "$PKG_CONFIG" && \
8236    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= 0.9.10\""; } >&5
8237  ($PKG_CONFIG --exists --print-errors "libpulse >= 0.9.10") 2>&5
8238  ac_status=$?
8239  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8240  test $ac_status = 0; }; then
8241  pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse >= 0.9.10" 2>/dev/null`
8242		      test "x$?" != "x0" && pkg_failed=yes
8243else
8244  pkg_failed=yes
8245fi
8246 else
8247    pkg_failed=untried
8248fi
8249
8250
8251
8252if test $pkg_failed = yes; then
8253   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8254$as_echo "no" >&6; }
8255
8256if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8257        _pkg_short_errors_supported=yes
8258else
8259        _pkg_short_errors_supported=no
8260fi
8261        if test $_pkg_short_errors_supported = yes; then
8262	        PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse >= 0.9.10" 2>&1`
8263        else
8264	        PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse >= 0.9.10" 2>&1`
8265        fi
8266	# Put the nasty error message in config.log where it belongs
8267	echo "$PULSE_PKG_ERRORS" >&5
8268
8269	MHW_HAVE_PULSE=no
8270elif test $pkg_failed = untried; then
8271     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8272$as_echo "no" >&6; }
8273	MHW_HAVE_PULSE=no
8274else
8275	PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
8276	PULSE_LIBS=$pkg_cv_PULSE_LIBS
8277        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8278$as_echo "yes" >&6; }
8279	MHW_HAVE_PULSE=yes
8280fi
8281fi
8282
8283if test "x$MHW_HAVE_PULSE" = "xyes" ; then
8284
8285$as_echo "#define HAVE_PULSEAUDIO /**/" >>confdefs.h
8286
8287fi
8288
8289
8290MHW_HAVE_ESOUND=yes
8291
8292# Check whether --with-esound was given.
8293if test "${with_esound+set}" = set; then :
8294  withval=$with_esound; if test "x$withval" = "xno"; then
8295	   MHW_HAVE_ESOUND=no
8296	fi
8297
8298fi
8299
8300if test "x$MHW_HAVE_ESOUND" = "xyes"
8301then
8302
8303pkg_failed=no
8304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESOUND" >&5
8305$as_echo_n "checking for ESOUND... " >&6; }
8306
8307if test -n "$ESOUND_CFLAGS"; then
8308    pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
8309 elif test -n "$PKG_CONFIG"; then
8310    if test -n "$PKG_CONFIG" && \
8311    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.0\""; } >&5
8312  ($PKG_CONFIG --exists --print-errors "esound >= 0.2.0") 2>&5
8313  ac_status=$?
8314  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8315  test $ac_status = 0; }; then
8316  pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound >= 0.2.0" 2>/dev/null`
8317		      test "x$?" != "x0" && pkg_failed=yes
8318else
8319  pkg_failed=yes
8320fi
8321 else
8322    pkg_failed=untried
8323fi
8324if test -n "$ESOUND_LIBS"; then
8325    pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
8326 elif test -n "$PKG_CONFIG"; then
8327    if test -n "$PKG_CONFIG" && \
8328    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.0\""; } >&5
8329  ($PKG_CONFIG --exists --print-errors "esound >= 0.2.0") 2>&5
8330  ac_status=$?
8331  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8332  test $ac_status = 0; }; then
8333  pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound >= 0.2.0" 2>/dev/null`
8334		      test "x$?" != "x0" && pkg_failed=yes
8335else
8336  pkg_failed=yes
8337fi
8338 else
8339    pkg_failed=untried
8340fi
8341
8342
8343
8344if test $pkg_failed = yes; then
8345   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8346$as_echo "no" >&6; }
8347
8348if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8349        _pkg_short_errors_supported=yes
8350else
8351        _pkg_short_errors_supported=no
8352fi
8353        if test $_pkg_short_errors_supported = yes; then
8354	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "esound >= 0.2.0" 2>&1`
8355        else
8356	        ESOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "esound >= 0.2.0" 2>&1`
8357        fi
8358	# Put the nasty error message in config.log where it belongs
8359	echo "$ESOUND_PKG_ERRORS" >&5
8360
8361	MHW_HAVE_ESOUND=no
8362elif test $pkg_failed = untried; then
8363     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364$as_echo "no" >&6; }
8365	MHW_HAVE_ESOUND=no
8366else
8367	ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
8368	ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
8369        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8370$as_echo "yes" >&6; }
8371	MHW_HAVE_ESOUND=yes
8372fi
8373fi
8374
8375if test "x$MHW_HAVE_ESOUND" = "xyes"; then
8376
8377$as_echo "#define HAVE_ESOUND /**/" >>confdefs.h
8378
8379fi
8380
8381
8382MHW_HAVE_SUNAUDIO=yes
8383
8384
8385
8386
8387# Check whether --with-sun was given.
8388if test "${with_sun+set}" = set; then :
8389  withval=$with_sun;
8390	if test "x$withval" = "xno" ; then
8391		MHW_HAVE_SUNAUDIO=no
8392	fi
8393
8394fi
8395
8396
8397ac_fn_c_check_header_mongrel "$LINENO" "sys/audio.h" "ac_cv_header_sys_audio_h" "$ac_includes_default"
8398if test "x$ac_cv_header_sys_audio_h" = xyes; then :
8399  mhw_found_one=yes
8400else
8401  mhw_found_one=no
8402fi
8403
8404
8405if test "x$mhw_found_one" = "xno"; then
8406	MHW_HAVE_SUNAUDIO=no
8407fi
8408
8409if test "x$MHW_HAVE_SUNAUDIO" = "xyes"; then
8410
8411$as_echo "#define HAVE_SUN /**/" >>confdefs.h
8412
8413fi
8414
8415
8416MHW_HAVE_ARTSC=yes
8417ARTSC_LIBS=""
8418ARTSC_CFLAGS=""
8419
8420
8421
8422
8423# Check whether --with-arts was given.
8424if test "${with_arts+set}" = set; then :
8425  withval=$with_arts;
8426	if test "x$withval" = "xno"; then
8427	        MHW_HAVE_ARTSC=no
8428	fi
8429
8430fi
8431
8432
8433ARTSC_CONFIG=no
8434if test "x$MHW_HAVE_ARTSC" = "xyes"; then
8435        # Extract the first word of "artsc-config", so it can be a program name with args.
8436set dummy artsc-config; ac_word=$2
8437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8438$as_echo_n "checking for $ac_word... " >&6; }
8439if ${ac_cv_path_ARTSC_CONFIG+:} false; then :
8440  $as_echo_n "(cached) " >&6
8441else
8442  case $ARTSC_CONFIG in
8443  [\\/]* | ?:[\\/]*)
8444  ac_cv_path_ARTSC_CONFIG="$ARTSC_CONFIG" # Let the user override the test with a path.
8445  ;;
8446  *)
8447  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8448for as_dir in $PATH
8449do
8450  IFS=$as_save_IFS
8451  test -z "$as_dir" && as_dir=.
8452    for ac_exec_ext in '' $ac_executable_extensions; do
8453  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8454    ac_cv_path_ARTSC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8455    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8456    break 2
8457  fi
8458done
8459  done
8460IFS=$as_save_IFS
8461
8462  test -z "$ac_cv_path_ARTSC_CONFIG" && ac_cv_path_ARTSC_CONFIG="no"
8463  ;;
8464esac
8465fi
8466ARTSC_CONFIG=$ac_cv_path_ARTSC_CONFIG
8467if test -n "$ARTSC_CONFIG"; then
8468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSC_CONFIG" >&5
8469$as_echo "$ARTSC_CONFIG" >&6; }
8470else
8471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8472$as_echo "no" >&6; }
8473fi
8474
8475
8476fi
8477
8478if test "x$ARTSC_CONFIG" = "xno"; then
8479    MHW_HAVE_ARTSC=no
8480else
8481	ARTSC_CFLAGS=`$ARTSC_CONFIG --cflags`
8482	ARTSC_LIBS=`$ARTSC_CONFIG --libs`
8483
8484$as_echo "#define HAVE_ARTSC /**/" >>confdefs.h
8485
8486fi
8487
8488
8489
8490
8491
8492
8493
8494# Check whether --enable-gtk2 was given.
8495if test "${enable_gtk2+set}" = set; then :
8496  enableval=$enable_gtk2;
8497	if test "x$enableval" = "xno" ; then
8498	DISABLE_GTK2='yes'
8499	fi
8500
8501else
8502  DISABLE_GTK2='no'
8503fi
8504
8505
8506
8507
8508FOUND_GTK="no"
8509USES_GTK2="no"
8510
8511if test "x$FOUND_GTK" = "xno"; then
8512	if test "x$DISABLE_GTK2" != "xyes"; then
8513	# Check whether --enable-gtktest was given.
8514if test "${enable_gtktest+set}" = set; then :
8515  enableval=$enable_gtktest;
8516else
8517  enable_gtktest=yes
8518fi
8519
8520
8521  pkg_config_args=gtk+-2.0
8522  for module in .
8523  do
8524      case "$module" in
8525         gthread)
8526             pkg_config_args="$pkg_config_args gthread-2.0"
8527         ;;
8528      esac
8529  done
8530
8531  no_gtk=""
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8542	if test -n "$ac_tool_prefix"; then
8543  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8544set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8546$as_echo_n "checking for $ac_word... " >&6; }
8547if ${ac_cv_path_PKG_CONFIG+:} false; then :
8548  $as_echo_n "(cached) " >&6
8549else
8550  case $PKG_CONFIG in
8551  [\\/]* | ?:[\\/]*)
8552  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8553  ;;
8554  *)
8555  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8556for as_dir in $PATH
8557do
8558  IFS=$as_save_IFS
8559  test -z "$as_dir" && as_dir=.
8560    for ac_exec_ext in '' $ac_executable_extensions; do
8561  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8562    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8563    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8564    break 2
8565  fi
8566done
8567  done
8568IFS=$as_save_IFS
8569
8570  ;;
8571esac
8572fi
8573PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8574if test -n "$PKG_CONFIG"; then
8575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8576$as_echo "$PKG_CONFIG" >&6; }
8577else
8578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8579$as_echo "no" >&6; }
8580fi
8581
8582
8583fi
8584if test -z "$ac_cv_path_PKG_CONFIG"; then
8585  ac_pt_PKG_CONFIG=$PKG_CONFIG
8586  # Extract the first word of "pkg-config", so it can be a program name with args.
8587set dummy pkg-config; ac_word=$2
8588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8589$as_echo_n "checking for $ac_word... " >&6; }
8590if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8591  $as_echo_n "(cached) " >&6
8592else
8593  case $ac_pt_PKG_CONFIG in
8594  [\\/]* | ?:[\\/]*)
8595  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8596  ;;
8597  *)
8598  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8599for as_dir in $PATH
8600do
8601  IFS=$as_save_IFS
8602  test -z "$as_dir" && as_dir=.
8603    for ac_exec_ext in '' $ac_executable_extensions; do
8604  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8605    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8606    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8607    break 2
8608  fi
8609done
8610  done
8611IFS=$as_save_IFS
8612
8613  ;;
8614esac
8615fi
8616ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8617if test -n "$ac_pt_PKG_CONFIG"; then
8618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8619$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8620else
8621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8622$as_echo "no" >&6; }
8623fi
8624
8625  if test "x$ac_pt_PKG_CONFIG" = x; then
8626    PKG_CONFIG=""
8627  else
8628    case $cross_compiling:$ac_tool_warned in
8629yes:)
8630{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8631$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8632ac_tool_warned=yes ;;
8633esac
8634    PKG_CONFIG=$ac_pt_PKG_CONFIG
8635  fi
8636else
8637  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8638fi
8639
8640fi
8641if test -n "$PKG_CONFIG"; then
8642	_pkg_min_version=0.7
8643	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8644$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8645	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8646		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8647$as_echo "yes" >&6; }
8648	else
8649		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8650$as_echo "no" >&6; }
8651		PKG_CONFIG=""
8652	fi
8653fi
8654
8655  min_gtk_version=2.0.0
8656  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5
8657$as_echo_n "checking for GTK+ - version >= $min_gtk_version... " >&6; }
8658
8659  if test x$PKG_CONFIG != xno ; then
8660    ## don't try to run the test against uninstalled libtool libs
8661    if $PKG_CONFIG --uninstalled $pkg_config_args; then
8662	  echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
8663	  enable_gtktest=no
8664    fi
8665
8666    if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
8667	  :
8668    else
8669	  no_gtk=yes
8670    fi
8671  fi
8672
8673  if test x"$no_gtk" = x ; then
8674    GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
8675    GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
8676    gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8677           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8678    gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8679           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8680    gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8681           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8682    if test "x$enable_gtktest" = "xyes" ; then
8683      ac_save_CFLAGS="$CFLAGS"
8684      ac_save_LIBS="$LIBS"
8685      CFLAGS="$CFLAGS $GTK_CFLAGS"
8686      LIBS="$GTK_LIBS $LIBS"
8687      rm -f conf.gtktest
8688      if test "$cross_compiling" = yes; then :
8689  echo $ac_n "cross compiling; assumed OK... $ac_c"
8690else
8691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8692/* end confdefs.h.  */
8693
8694#include <gtk/gtk.h>
8695#include <stdio.h>
8696#include <stdlib.h>
8697
8698int
8699main ()
8700{
8701  int major, minor, micro;
8702  char *tmp_version;
8703
8704  fclose (fopen ("conf.gtktest", "w"));
8705
8706  /* HP/UX 9 (%@#!) writes to sscanf strings */
8707  tmp_version = g_strdup("$min_gtk_version");
8708  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8709     printf("%s, bad version string\n", "$min_gtk_version");
8710     exit(1);
8711   }
8712
8713  if ((gtk_major_version != $gtk_config_major_version) ||
8714      (gtk_minor_version != $gtk_config_minor_version) ||
8715      (gtk_micro_version != $gtk_config_micro_version))
8716    {
8717      printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
8718             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
8719             gtk_major_version, gtk_minor_version, gtk_micro_version);
8720      printf ("*** was found! If pkg-config was correct, then it is best\n");
8721      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
8722      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
8723      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
8724      printf("*** required on your system.\n");
8725      printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
8726      printf("*** to point to the correct configuration files\n");
8727    }
8728  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8729	   (gtk_minor_version != GTK_MINOR_VERSION) ||
8730           (gtk_micro_version != GTK_MICRO_VERSION))
8731    {
8732      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8733	     GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
8734      printf("*** library (version %d.%d.%d)\n",
8735	     gtk_major_version, gtk_minor_version, gtk_micro_version);
8736    }
8737  else
8738    {
8739      if ((gtk_major_version > major) ||
8740        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8741        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
8742      {
8743        return 0;
8744       }
8745     else
8746      {
8747        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
8748               gtk_major_version, gtk_minor_version, gtk_micro_version);
8749        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8750	       major, minor, micro);
8751        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
8752        printf("***\n");
8753        printf("*** If you have already installed a sufficiently new version, this error\n");
8754        printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
8755        printf("*** being found. The easiest way to fix this is to remove the old version\n");
8756        printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
8757        printf("*** correct copy of pkg-config. (In this case, you will have to\n");
8758        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
8759        printf("*** so that the correct libraries are found at run-time))\n");
8760      }
8761    }
8762  return 1;
8763}
8764
8765_ACEOF
8766if ac_fn_c_try_run "$LINENO"; then :
8767
8768else
8769  no_gtk=yes
8770fi
8771rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8772  conftest.$ac_objext conftest.beam conftest.$ac_ext
8773fi
8774
8775       CFLAGS="$ac_save_CFLAGS"
8776       LIBS="$ac_save_LIBS"
8777     fi
8778  fi
8779  if test "x$no_gtk" = x ; then
8780     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
8781$as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
8782     USES_GTK2="yes" FOUND_GTK="yes"
8783  else
8784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8785$as_echo "no" >&6; }
8786     if test "$PKG_CONFIG" = "no" ; then
8787       echo "*** A new enough version of pkg-config was not found."
8788       echo "*** See http://pkgconfig.sourceforge.net"
8789     else
8790       if test -f conf.gtktest ; then
8791        :
8792       else
8793          echo "*** Could not run GTK+ test program, checking why..."
8794	  ac_save_CFLAGS="$CFLAGS"
8795	  ac_save_LIBS="$LIBS"
8796          CFLAGS="$CFLAGS $GTK_CFLAGS"
8797          LIBS="$LIBS $GTK_LIBS"
8798          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8799/* end confdefs.h.  */
8800
8801#include <gtk/gtk.h>
8802#include <stdio.h>
8803
8804int
8805main ()
8806{
8807 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
8808  ;
8809  return 0;
8810}
8811_ACEOF
8812if ac_fn_c_try_link "$LINENO"; then :
8813   echo "*** The test program compiled, but did not run. This usually means"
8814          echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
8815          echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
8816          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
8817          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
8818          echo "*** is required on your system"
8819	  echo "***"
8820          echo "*** If you have an old version installed, it is best to remove it, although"
8821          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
8822else
8823   echo "*** The test program failed to compile or link. See the file config.log for the"
8824          echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
8825fi
8826rm -f core conftest.err conftest.$ac_objext \
8827    conftest$ac_exeext conftest.$ac_ext
8828          CFLAGS="$ac_save_CFLAGS"
8829          LIBS="$ac_save_LIBS"
8830       fi
8831     fi
8832     GTK_CFLAGS=""
8833     GTK_LIBS=""
8834     :
8835  fi
8836
8837
8838  rm -f conf.gtktest
8839
8840	fi
8841fi
8842
8843if test "x$FOUND_GTK" = "xno"; then
8844
8845# Check whether --with-gtk-prefix was given.
8846if test "${with_gtk_prefix+set}" = set; then :
8847  withval=$with_gtk_prefix; gtk_config_prefix="$withval"
8848else
8849  gtk_config_prefix=""
8850fi
8851
8852
8853# Check whether --with-gtk-exec-prefix was given.
8854if test "${with_gtk_exec_prefix+set}" = set; then :
8855  withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
8856else
8857  gtk_config_exec_prefix=""
8858fi
8859
8860# Check whether --enable-gtktest was given.
8861if test "${enable_gtktest+set}" = set; then :
8862  enableval=$enable_gtktest;
8863else
8864  enable_gtktest=yes
8865fi
8866
8867
8868  for module in .
8869  do
8870      case "$module" in
8871         gthread)
8872             gtk_config_args="$gtk_config_args gthread"
8873         ;;
8874      esac
8875  done
8876
8877  if test x$gtk_config_exec_prefix != x ; then
8878     gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8879     if test x${GTK_CONFIG+set} != xset ; then
8880        GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8881     fi
8882  fi
8883  if test x$gtk_config_prefix != x ; then
8884     gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8885     if test x${GTK_CONFIG+set} != xset ; then
8886        GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8887     fi
8888  fi
8889
8890  # Extract the first word of "gtk-config", so it can be a program name with args.
8891set dummy gtk-config; ac_word=$2
8892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8893$as_echo_n "checking for $ac_word... " >&6; }
8894if ${ac_cv_path_GTK_CONFIG+:} false; then :
8895  $as_echo_n "(cached) " >&6
8896else
8897  case $GTK_CONFIG in
8898  [\\/]* | ?:[\\/]*)
8899  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8900  ;;
8901  *)
8902  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8903for as_dir in $PATH
8904do
8905  IFS=$as_save_IFS
8906  test -z "$as_dir" && as_dir=.
8907    for ac_exec_ext in '' $ac_executable_extensions; do
8908  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8909    ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8910    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8911    break 2
8912  fi
8913done
8914  done
8915IFS=$as_save_IFS
8916
8917  test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8918  ;;
8919esac
8920fi
8921GTK_CONFIG=$ac_cv_path_GTK_CONFIG
8922if test -n "$GTK_CONFIG"; then
8923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CONFIG" >&5
8924$as_echo "$GTK_CONFIG" >&6; }
8925else
8926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8927$as_echo "no" >&6; }
8928fi
8929
8930
8931  min_gtk_version=1.2.5
8932  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
8933$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8934  no_gtk=""
8935  if test "$GTK_CONFIG" = "no" ; then
8936    no_gtk=yes
8937  else
8938    GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8939    GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8940    gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8941           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8942    gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8943           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8944    gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8945           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8946    if test "x$enable_gtktest" = "xyes" ; then
8947      ac_save_CFLAGS="$CFLAGS"
8948      ac_save_LIBS="$LIBS"
8949      CFLAGS="$CFLAGS $GTK_CFLAGS"
8950      LIBS="$GTK_LIBS $LIBS"
8951      rm -f conf.gtktest
8952      if test "$cross_compiling" = yes; then :
8953  echo $ac_n "cross compiling; assumed OK... $ac_c"
8954else
8955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8956/* end confdefs.h.  */
8957
8958#include <gtk/gtk.h>
8959#include <stdio.h>
8960#include <stdlib.h>
8961
8962int
8963main ()
8964{
8965  int major, minor, micro;
8966  char *tmp_version;
8967
8968  system ("touch conf.gtktest");
8969
8970  /* HP/UX 9 (%@#!) writes to sscanf strings */
8971  tmp_version = g_strdup("$min_gtk_version");
8972  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8973     printf("%s, bad version string\n", "$min_gtk_version");
8974     exit(1);
8975   }
8976
8977  if ((gtk_major_version != $gtk_config_major_version) ||
8978      (gtk_minor_version != $gtk_config_minor_version) ||
8979      (gtk_micro_version != $gtk_config_micro_version))
8980    {
8981      printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
8982             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
8983             gtk_major_version, gtk_minor_version, gtk_micro_version);
8984      printf ("*** was found! If gtk-config was correct, then it is best\n");
8985      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
8986      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
8987      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
8988      printf("*** required on your system.\n");
8989      printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
8990      printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
8991      printf("*** before re-running configure\n");
8992    }
8993#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
8994  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8995	   (gtk_minor_version != GTK_MINOR_VERSION) ||
8996           (gtk_micro_version != GTK_MICRO_VERSION))
8997    {
8998      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8999	     GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
9000      printf("*** library (version %d.%d.%d)\n",
9001	     gtk_major_version, gtk_minor_version, gtk_micro_version);
9002    }
9003#endif /* defined (GTK_MAJOR_VERSION) ... */
9004  else
9005    {
9006      if ((gtk_major_version > major) ||
9007        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9008        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
9009      {
9010        return 0;
9011       }
9012     else
9013      {
9014        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
9015               gtk_major_version, gtk_minor_version, gtk_micro_version);
9016        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
9017	       major, minor, micro);
9018        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
9019        printf("***\n");
9020        printf("*** If you have already installed a sufficiently new version, this error\n");
9021        printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
9022        printf("*** being found. The easiest way to fix this is to remove the old version\n");
9023        printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
9024        printf("*** correct copy of gtk-config. (In this case, you will have to\n");
9025        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
9026        printf("*** so that the correct libraries are found at run-time))\n");
9027      }
9028    }
9029  return 1;
9030}
9031
9032_ACEOF
9033if ac_fn_c_try_run "$LINENO"; then :
9034
9035else
9036  no_gtk=yes
9037fi
9038rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9039  conftest.$ac_objext conftest.beam conftest.$ac_ext
9040fi
9041
9042       CFLAGS="$ac_save_CFLAGS"
9043       LIBS="$ac_save_LIBS"
9044     fi
9045  fi
9046  if test "x$no_gtk" = x ; then
9047     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9048$as_echo "yes" >&6; }
9049     FOUND_GTK="yes"
9050  else
9051     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9052$as_echo "no" >&6; }
9053     if test "$GTK_CONFIG" = "no" ; then
9054       echo "*** The gtk-config script installed by GTK could not be found"
9055       echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
9056       echo "*** your path, or set the GTK_CONFIG environment variable to the"
9057       echo "*** full path to gtk-config."
9058     else
9059       if test -f conf.gtktest ; then
9060        :
9061       else
9062          echo "*** Could not run GTK test program, checking why..."
9063          CFLAGS="$CFLAGS $GTK_CFLAGS"
9064          LIBS="$LIBS $GTK_LIBS"
9065          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9066/* end confdefs.h.  */
9067
9068#include <gtk/gtk.h>
9069#include <stdio.h>
9070
9071int
9072main ()
9073{
9074 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
9075  ;
9076  return 0;
9077}
9078_ACEOF
9079if ac_fn_c_try_link "$LINENO"; then :
9080   echo "*** The test program compiled, but did not run. This usually means"
9081          echo "*** that the run-time linker is not finding GTK or finding the wrong"
9082          echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
9083          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9084          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
9085          echo "*** is required on your system"
9086	  echo "***"
9087          echo "*** If you have an old version installed, it is best to remove it, although"
9088          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9089          echo "***"
9090          echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
9091          echo "*** came with the system with the command"
9092          echo "***"
9093          echo "***    rpm --erase --nodeps gtk gtk-devel"
9094else
9095   echo "*** The test program failed to compile or link. See the file config.log for the"
9096          echo "*** exact error that occured. This usually means GTK was incorrectly installed"
9097          echo "*** or that you have moved GTK since it was installed. In the latter case, you"
9098          echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
9099fi
9100rm -f core conftest.err conftest.$ac_objext \
9101    conftest$ac_exeext conftest.$ac_ext
9102          CFLAGS="$ac_save_CFLAGS"
9103          LIBS="$ac_save_LIBS"
9104       fi
9105     fi
9106     GTK_CFLAGS=""
9107     GTK_LIBS=""
9108     as_fn_error $? "mhWaveEdit requires GTK+ version 1.2.5 or higher..." "$LINENO" 5
9109  fi
9110
9111
9112  rm -f conf.gtktest
9113
9114fi
9115
9116GTHREAD_CFLAGS=""
9117GTHREAD_LIBS=""
9118HAVE_GTHREAD="no"
9119
9120if test "x$USES_GTK2" = "xyes"; then
9121   HAVE_GTHREAD="yes"
9122
9123pkg_failed=no
9124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTHREAD" >&5
9125$as_echo_n "checking for GTHREAD... " >&6; }
9126
9127if test -n "$GTHREAD_CFLAGS"; then
9128    pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
9129 elif test -n "$PKG_CONFIG"; then
9130    if test -n "$PKG_CONFIG" && \
9131    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
9132  ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
9133  ac_status=$?
9134  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9135  test $ac_status = 0; }; then
9136  pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0" 2>/dev/null`
9137		      test "x$?" != "x0" && pkg_failed=yes
9138else
9139  pkg_failed=yes
9140fi
9141 else
9142    pkg_failed=untried
9143fi
9144if test -n "$GTHREAD_LIBS"; then
9145    pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
9146 elif test -n "$PKG_CONFIG"; then
9147    if test -n "$PKG_CONFIG" && \
9148    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
9149  ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
9150  ac_status=$?
9151  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9152  test $ac_status = 0; }; then
9153  pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0" 2>/dev/null`
9154		      test "x$?" != "x0" && pkg_failed=yes
9155else
9156  pkg_failed=yes
9157fi
9158 else
9159    pkg_failed=untried
9160fi
9161
9162
9163
9164if test $pkg_failed = yes; then
9165   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9166$as_echo "no" >&6; }
9167
9168if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9169        _pkg_short_errors_supported=yes
9170else
9171        _pkg_short_errors_supported=no
9172fi
9173        if test $_pkg_short_errors_supported = yes; then
9174	        GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gthread-2.0" 2>&1`
9175        else
9176	        GTHREAD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gthread-2.0" 2>&1`
9177        fi
9178	# Put the nasty error message in config.log where it belongs
9179	echo "$GTHREAD_PKG_ERRORS" >&5
9180
9181	HAVE_GTHREAD="no"
9182elif test $pkg_failed = untried; then
9183     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9184$as_echo "no" >&6; }
9185	HAVE_GTHREAD="no"
9186else
9187	GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
9188	GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
9189        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9190$as_echo "yes" >&6; }
9191
9192fi
9193fi
9194if test "x$HAVE_GTHREAD" = "xyes"; then
9195
9196$as_echo "#define HAVE_GTHREAD /**/" >>confdefs.h
9197
9198fi
9199
9200
9201
9202
9203
9204# Check whether --enable-largefile was given.
9205if test "${enable_largefile+set}" = set; then :
9206  enableval=$enable_largefile;
9207fi
9208
9209if test "$enable_largefile" != no; then
9210
9211  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9212$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9213if ${ac_cv_sys_largefile_CC+:} false; then :
9214  $as_echo_n "(cached) " >&6
9215else
9216  ac_cv_sys_largefile_CC=no
9217     if test "$GCC" != yes; then
9218       ac_save_CC=$CC
9219       while :; do
9220	 # IRIX 6.2 and later do not support large files by default,
9221	 # so use the C compiler's -n32 option if that helps.
9222	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9223/* end confdefs.h.  */
9224#include <sys/types.h>
9225 /* Check that off_t can represent 2**63 - 1 correctly.
9226    We can't simply define LARGE_OFF_T to be 9223372036854775807,
9227    since some C++ compilers masquerading as C compilers
9228    incorrectly reject 9223372036854775807.  */
9229#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9230  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9231		       && LARGE_OFF_T % 2147483647 == 1)
9232		      ? 1 : -1];
9233int
9234main ()
9235{
9236
9237  ;
9238  return 0;
9239}
9240_ACEOF
9241	 if ac_fn_c_try_compile "$LINENO"; then :
9242  break
9243fi
9244rm -f core conftest.err conftest.$ac_objext
9245	 CC="$CC -n32"
9246	 if ac_fn_c_try_compile "$LINENO"; then :
9247  ac_cv_sys_largefile_CC=' -n32'; break
9248fi
9249rm -f core conftest.err conftest.$ac_objext
9250	 break
9251       done
9252       CC=$ac_save_CC
9253       rm -f conftest.$ac_ext
9254    fi
9255fi
9256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
9257$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9258  if test "$ac_cv_sys_largefile_CC" != no; then
9259    CC=$CC$ac_cv_sys_largefile_CC
9260  fi
9261
9262  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9263$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
9264if ${ac_cv_sys_file_offset_bits+:} false; then :
9265  $as_echo_n "(cached) " >&6
9266else
9267  while :; do
9268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9269/* end confdefs.h.  */
9270#include <sys/types.h>
9271 /* Check that off_t can represent 2**63 - 1 correctly.
9272    We can't simply define LARGE_OFF_T to be 9223372036854775807,
9273    since some C++ compilers masquerading as C compilers
9274    incorrectly reject 9223372036854775807.  */
9275#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9276  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9277		       && LARGE_OFF_T % 2147483647 == 1)
9278		      ? 1 : -1];
9279int
9280main ()
9281{
9282
9283  ;
9284  return 0;
9285}
9286_ACEOF
9287if ac_fn_c_try_compile "$LINENO"; then :
9288  ac_cv_sys_file_offset_bits=no; break
9289fi
9290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9292/* end confdefs.h.  */
9293#define _FILE_OFFSET_BITS 64
9294#include <sys/types.h>
9295 /* Check that off_t can represent 2**63 - 1 correctly.
9296    We can't simply define LARGE_OFF_T to be 9223372036854775807,
9297    since some C++ compilers masquerading as C compilers
9298    incorrectly reject 9223372036854775807.  */
9299#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9300  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9301		       && LARGE_OFF_T % 2147483647 == 1)
9302		      ? 1 : -1];
9303int
9304main ()
9305{
9306
9307  ;
9308  return 0;
9309}
9310_ACEOF
9311if ac_fn_c_try_compile "$LINENO"; then :
9312  ac_cv_sys_file_offset_bits=64; break
9313fi
9314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9315  ac_cv_sys_file_offset_bits=unknown
9316  break
9317done
9318fi
9319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
9320$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9321case $ac_cv_sys_file_offset_bits in #(
9322  no | unknown) ;;
9323  *)
9324cat >>confdefs.h <<_ACEOF
9325#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9326_ACEOF
9327;;
9328esac
9329rm -rf conftest*
9330  if test $ac_cv_sys_file_offset_bits = unknown; then
9331    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
9332$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
9333if ${ac_cv_sys_large_files+:} false; then :
9334  $as_echo_n "(cached) " >&6
9335else
9336  while :; do
9337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9338/* end confdefs.h.  */
9339#include <sys/types.h>
9340 /* Check that off_t can represent 2**63 - 1 correctly.
9341    We can't simply define LARGE_OFF_T to be 9223372036854775807,
9342    since some C++ compilers masquerading as C compilers
9343    incorrectly reject 9223372036854775807.  */
9344#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9345  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9346		       && LARGE_OFF_T % 2147483647 == 1)
9347		      ? 1 : -1];
9348int
9349main ()
9350{
9351
9352  ;
9353  return 0;
9354}
9355_ACEOF
9356if ac_fn_c_try_compile "$LINENO"; then :
9357  ac_cv_sys_large_files=no; break
9358fi
9359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9361/* end confdefs.h.  */
9362#define _LARGE_FILES 1
9363#include <sys/types.h>
9364 /* Check that off_t can represent 2**63 - 1 correctly.
9365    We can't simply define LARGE_OFF_T to be 9223372036854775807,
9366    since some C++ compilers masquerading as C compilers
9367    incorrectly reject 9223372036854775807.  */
9368#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9369  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9370		       && LARGE_OFF_T % 2147483647 == 1)
9371		      ? 1 : -1];
9372int
9373main ()
9374{
9375
9376  ;
9377  return 0;
9378}
9379_ACEOF
9380if ac_fn_c_try_compile "$LINENO"; then :
9381  ac_cv_sys_large_files=1; break
9382fi
9383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9384  ac_cv_sys_large_files=unknown
9385  break
9386done
9387fi
9388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9389$as_echo "$ac_cv_sys_large_files" >&6; }
9390case $ac_cv_sys_large_files in #(
9391  no | unknown) ;;
9392  *)
9393cat >>confdefs.h <<_ACEOF
9394#define _LARGE_FILES $ac_cv_sys_large_files
9395_ACEOF
9396;;
9397esac
9398rm -rf conftest*
9399  fi
9400
9401
9402fi
9403
9404
9405$as_echo "#define _LARGEFILE_SOURCE /**/" >>confdefs.h
9406
9407# The cast to long int works around a bug in the HP C Compiler
9408# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9409# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9410# This bug is HP SR number 8606223364.
9411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
9412$as_echo_n "checking size of off_t... " >&6; }
9413if ${ac_cv_sizeof_off_t+:} false; then :
9414  $as_echo_n "(cached) " >&6
9415else
9416  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
9417
9418else
9419  if test "$ac_cv_type_off_t" = yes; then
9420     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9421$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9422as_fn_error 77 "cannot compute sizeof (off_t)
9423See \`config.log' for more details" "$LINENO" 5; }
9424   else
9425     ac_cv_sizeof_off_t=0
9426   fi
9427fi
9428
9429fi
9430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
9431$as_echo "$ac_cv_sizeof_off_t" >&6; }
9432
9433
9434
9435cat >>confdefs.h <<_ACEOF
9436#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
9437_ACEOF
9438
9439
9440
9441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9442$as_echo_n "checking for ANSI C header files... " >&6; }
9443if ${ac_cv_header_stdc+:} false; then :
9444  $as_echo_n "(cached) " >&6
9445else
9446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9447/* end confdefs.h.  */
9448#include <stdlib.h>
9449#include <stdarg.h>
9450#include <string.h>
9451#include <float.h>
9452
9453int
9454main ()
9455{
9456
9457  ;
9458  return 0;
9459}
9460_ACEOF
9461if ac_fn_c_try_compile "$LINENO"; then :
9462  ac_cv_header_stdc=yes
9463else
9464  ac_cv_header_stdc=no
9465fi
9466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9467
9468if test $ac_cv_header_stdc = yes; then
9469  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9471/* end confdefs.h.  */
9472#include <string.h>
9473
9474_ACEOF
9475if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9476  $EGREP "memchr" >/dev/null 2>&1; then :
9477
9478else
9479  ac_cv_header_stdc=no
9480fi
9481rm -f conftest*
9482
9483fi
9484
9485if test $ac_cv_header_stdc = yes; then
9486  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9488/* end confdefs.h.  */
9489#include <stdlib.h>
9490
9491_ACEOF
9492if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9493  $EGREP "free" >/dev/null 2>&1; then :
9494
9495else
9496  ac_cv_header_stdc=no
9497fi
9498rm -f conftest*
9499
9500fi
9501
9502if test $ac_cv_header_stdc = yes; then
9503  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9504  if test "$cross_compiling" = yes; then :
9505  :
9506else
9507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9508/* end confdefs.h.  */
9509#include <ctype.h>
9510#include <stdlib.h>
9511#if ((' ' & 0x0FF) == 0x020)
9512# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9513# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9514#else
9515# define ISLOWER(c) \
9516		   (('a' <= (c) && (c) <= 'i') \
9517		     || ('j' <= (c) && (c) <= 'r') \
9518		     || ('s' <= (c) && (c) <= 'z'))
9519# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9520#endif
9521
9522#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9523int
9524main ()
9525{
9526  int i;
9527  for (i = 0; i < 256; i++)
9528    if (XOR (islower (i), ISLOWER (i))
9529	|| toupper (i) != TOUPPER (i))
9530      return 2;
9531  return 0;
9532}
9533_ACEOF
9534if ac_fn_c_try_run "$LINENO"; then :
9535
9536else
9537  ac_cv_header_stdc=no
9538fi
9539rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9540  conftest.$ac_objext conftest.beam conftest.$ac_ext
9541fi
9542
9543fi
9544fi
9545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9546$as_echo "$ac_cv_header_stdc" >&6; }
9547if test $ac_cv_header_stdc = yes; then
9548
9549$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9550
9551fi
9552
9553for ac_header in sys/time.h time.h sys/ioctl.h sys/types.h unistd.h fcntl.h sched.h libintl.h locale.h
9554do :
9555  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9556ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9557if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9558  cat >>confdefs.h <<_ACEOF
9559#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9560_ACEOF
9561
9562fi
9563
9564done
9565
9566
9567HAVE_LADSPA=yes
9568HAVE_LADSPA_GLOBAL=yes
9569ac_fn_c_check_header_mongrel "$LINENO" "ladspa.h" "ac_cv_header_ladspa_h" "$ac_includes_default"
9570if test "x$ac_cv_header_ladspa_h" = xyes; then :
9571
9572else
9573  HAVE_LADSPA_GLOBAL=no
9574fi
9575
9576
9577# Check whether --enable-ladspa was given.
9578if test "${enable_ladspa+set}" = set; then :
9579  enableval=$enable_ladspa; if test "x$enableval" = "xno"; then HAVE_LADSPA=no; fi
9580fi
9581
9582if test "x$HAVE_LADSPA" = "xyes"; then
9583	ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
9584if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9585
9586else
9587  HAVE_LADSPA=no
9588fi
9589
9590
9591fi
9592if test "x$HAVE_LADSPA" = "xyes"; then
9593	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9594$as_echo_n "checking for dlopen in -ldl... " >&6; }
9595if ${ac_cv_lib_dl_dlopen+:} false; then :
9596  $as_echo_n "(cached) " >&6
9597else
9598  ac_check_lib_save_LIBS=$LIBS
9599LIBS="-ldl  $LIBS"
9600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9601/* end confdefs.h.  */
9602
9603/* Override any GCC internal prototype to avoid an error.
9604   Use char because int might match the return type of a GCC
9605   builtin and then its argument prototype would still apply.  */
9606#ifdef __cplusplus
9607extern "C"
9608#endif
9609char dlopen ();
9610int
9611main ()
9612{
9613return dlopen ();
9614  ;
9615  return 0;
9616}
9617_ACEOF
9618if ac_fn_c_try_link "$LINENO"; then :
9619  ac_cv_lib_dl_dlopen=yes
9620else
9621  ac_cv_lib_dl_dlopen=no
9622fi
9623rm -f core conftest.err conftest.$ac_objext \
9624    conftest$ac_exeext conftest.$ac_ext
9625LIBS=$ac_check_lib_save_LIBS
9626fi
9627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9628$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9629if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9630  LIBS="-ldl $LIBS"
9631else
9632  HAVE_LADSPA=no
9633fi
9634
9635fi
9636if test "x$HAVE_LADSPA" = "xyes"; then
9637
9638$as_echo "#define HAVE_LADSPA /**/" >>confdefs.h
9639
9640fi
9641if test "x$HAVE_LADSPA_GLOBAL" = "xyes"; then
9642
9643$as_echo "#define HAVE_SYS_LADSPA_H /**/" >>confdefs.h
9644
9645fi
9646
9647ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9648if test "x$ac_cv_type_size_t" = xyes; then :
9649
9650else
9651
9652cat >>confdefs.h <<_ACEOF
9653#define size_t unsigned int
9654_ACEOF
9655
9656fi
9657
9658ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9659if test "x$ac_cv_type_off_t" = xyes; then :
9660
9661else
9662
9663cat >>confdefs.h <<_ACEOF
9664#define off_t long int
9665_ACEOF
9666
9667fi
9668
9669ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9670if test "x$ac_cv_type_pid_t" = xyes; then :
9671
9672else
9673
9674cat >>confdefs.h <<_ACEOF
9675#define pid_t int
9676_ACEOF
9677
9678fi
9679
9680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9681$as_echo_n "checking return type of signal handlers... " >&6; }
9682if ${ac_cv_type_signal+:} false; then :
9683  $as_echo_n "(cached) " >&6
9684else
9685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9686/* end confdefs.h.  */
9687#include <sys/types.h>
9688#include <signal.h>
9689
9690int
9691main ()
9692{
9693return *(signal (0, 0)) (0) == 1;
9694  ;
9695  return 0;
9696}
9697_ACEOF
9698if ac_fn_c_try_compile "$LINENO"; then :
9699  ac_cv_type_signal=int
9700else
9701  ac_cv_type_signal=void
9702fi
9703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9704fi
9705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9706$as_echo "$ac_cv_type_signal" >&6; }
9707
9708cat >>confdefs.h <<_ACEOF
9709#define RETSIGTYPE $ac_cv_type_signal
9710_ACEOF
9711
9712
9713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9714$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9715if ${ac_cv_header_time+:} false; then :
9716  $as_echo_n "(cached) " >&6
9717else
9718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9719/* end confdefs.h.  */
9720#include <sys/types.h>
9721#include <sys/time.h>
9722#include <time.h>
9723
9724int
9725main ()
9726{
9727if ((struct tm *) 0)
9728return 0;
9729  ;
9730  return 0;
9731}
9732_ACEOF
9733if ac_fn_c_try_compile "$LINENO"; then :
9734  ac_cv_header_time=yes
9735else
9736  ac_cv_header_time=no
9737fi
9738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9739fi
9740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9741$as_echo "$ac_cv_header_time" >&6; }
9742if test $ac_cv_header_time = yes; then
9743
9744$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9745
9746fi
9747
9748ac_header_dirent=no
9749for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9750  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9752$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9753if eval \${$as_ac_Header+:} false; then :
9754  $as_echo_n "(cached) " >&6
9755else
9756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9757/* end confdefs.h.  */
9758#include <sys/types.h>
9759#include <$ac_hdr>
9760
9761int
9762main ()
9763{
9764if ((DIR *) 0)
9765return 0;
9766  ;
9767  return 0;
9768}
9769_ACEOF
9770if ac_fn_c_try_compile "$LINENO"; then :
9771  eval "$as_ac_Header=yes"
9772else
9773  eval "$as_ac_Header=no"
9774fi
9775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9776fi
9777eval ac_res=\$$as_ac_Header
9778	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9779$as_echo "$ac_res" >&6; }
9780if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9781  cat >>confdefs.h <<_ACEOF
9782#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9783_ACEOF
9784
9785ac_header_dirent=$ac_hdr; break
9786fi
9787
9788done
9789# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9790if test $ac_header_dirent = dirent.h; then
9791  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9792$as_echo_n "checking for library containing opendir... " >&6; }
9793if ${ac_cv_search_opendir+:} false; then :
9794  $as_echo_n "(cached) " >&6
9795else
9796  ac_func_search_save_LIBS=$LIBS
9797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9798/* end confdefs.h.  */
9799
9800/* Override any GCC internal prototype to avoid an error.
9801   Use char because int might match the return type of a GCC
9802   builtin and then its argument prototype would still apply.  */
9803#ifdef __cplusplus
9804extern "C"
9805#endif
9806char opendir ();
9807int
9808main ()
9809{
9810return opendir ();
9811  ;
9812  return 0;
9813}
9814_ACEOF
9815for ac_lib in '' dir; do
9816  if test -z "$ac_lib"; then
9817    ac_res="none required"
9818  else
9819    ac_res=-l$ac_lib
9820    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9821  fi
9822  if ac_fn_c_try_link "$LINENO"; then :
9823  ac_cv_search_opendir=$ac_res
9824fi
9825rm -f core conftest.err conftest.$ac_objext \
9826    conftest$ac_exeext
9827  if ${ac_cv_search_opendir+:} false; then :
9828  break
9829fi
9830done
9831if ${ac_cv_search_opendir+:} false; then :
9832
9833else
9834  ac_cv_search_opendir=no
9835fi
9836rm conftest.$ac_ext
9837LIBS=$ac_func_search_save_LIBS
9838fi
9839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9840$as_echo "$ac_cv_search_opendir" >&6; }
9841ac_res=$ac_cv_search_opendir
9842if test "$ac_res" != no; then :
9843  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9844
9845fi
9846
9847else
9848  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9849$as_echo_n "checking for library containing opendir... " >&6; }
9850if ${ac_cv_search_opendir+:} false; then :
9851  $as_echo_n "(cached) " >&6
9852else
9853  ac_func_search_save_LIBS=$LIBS
9854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9855/* end confdefs.h.  */
9856
9857/* Override any GCC internal prototype to avoid an error.
9858   Use char because int might match the return type of a GCC
9859   builtin and then its argument prototype would still apply.  */
9860#ifdef __cplusplus
9861extern "C"
9862#endif
9863char opendir ();
9864int
9865main ()
9866{
9867return opendir ();
9868  ;
9869  return 0;
9870}
9871_ACEOF
9872for ac_lib in '' x; do
9873  if test -z "$ac_lib"; then
9874    ac_res="none required"
9875  else
9876    ac_res=-l$ac_lib
9877    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9878  fi
9879  if ac_fn_c_try_link "$LINENO"; then :
9880  ac_cv_search_opendir=$ac_res
9881fi
9882rm -f core conftest.err conftest.$ac_objext \
9883    conftest$ac_exeext
9884  if ${ac_cv_search_opendir+:} false; then :
9885  break
9886fi
9887done
9888if ${ac_cv_search_opendir+:} false; then :
9889
9890else
9891  ac_cv_search_opendir=no
9892fi
9893rm conftest.$ac_ext
9894LIBS=$ac_func_search_save_LIBS
9895fi
9896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9897$as_echo "$ac_cv_search_opendir" >&6; }
9898ac_res=$ac_cv_search_opendir
9899if test "$ac_res" != no; then :
9900  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9901
9902fi
9903
9904fi
9905
9906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9907$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9908if ${ac_cv_header_sys_wait_h+:} false; then :
9909  $as_echo_n "(cached) " >&6
9910else
9911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9912/* end confdefs.h.  */
9913#include <sys/types.h>
9914#include <sys/wait.h>
9915#ifndef WEXITSTATUS
9916# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9917#endif
9918#ifndef WIFEXITED
9919# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9920#endif
9921
9922int
9923main ()
9924{
9925  int s;
9926  wait (&s);
9927  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9928  ;
9929  return 0;
9930}
9931_ACEOF
9932if ac_fn_c_try_compile "$LINENO"; then :
9933  ac_cv_header_sys_wait_h=yes
9934else
9935  ac_cv_header_sys_wait_h=no
9936fi
9937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9938fi
9939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9940$as_echo "$ac_cv_header_sys_wait_h" >&6; }
9941if test $ac_cv_header_sys_wait_h = yes; then
9942
9943$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9944
9945fi
9946
9947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9948$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9949if ${ac_cv_c_const+:} false; then :
9950  $as_echo_n "(cached) " >&6
9951else
9952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9953/* end confdefs.h.  */
9954
9955int
9956main ()
9957{
9958
9959#ifndef __cplusplus
9960  /* Ultrix mips cc rejects this sort of thing.  */
9961  typedef int charset[2];
9962  const charset cs = { 0, 0 };
9963  /* SunOS 4.1.1 cc rejects this.  */
9964  char const *const *pcpcc;
9965  char **ppc;
9966  /* NEC SVR4.0.2 mips cc rejects this.  */
9967  struct point {int x, y;};
9968  static struct point const zero = {0,0};
9969  /* AIX XL C 1.02.0.0 rejects this.
9970     It does not let you subtract one const X* pointer from another in
9971     an arm of an if-expression whose if-part is not a constant
9972     expression */
9973  const char *g = "string";
9974  pcpcc = &g + (g ? g-g : 0);
9975  /* HPUX 7.0 cc rejects these. */
9976  ++pcpcc;
9977  ppc = (char**) pcpcc;
9978  pcpcc = (char const *const *) ppc;
9979  { /* SCO 3.2v4 cc rejects this sort of thing.  */
9980    char tx;
9981    char *t = &tx;
9982    char const *s = 0 ? (char *) 0 : (char const *) 0;
9983
9984    *t++ = 0;
9985    if (s) return 0;
9986  }
9987  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9988    int x[] = {25, 17};
9989    const int *foo = &x[0];
9990    ++foo;
9991  }
9992  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9993    typedef const int *iptr;
9994    iptr p = 0;
9995    ++p;
9996  }
9997  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
9998       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9999    struct s { int j; const int *ap[3]; } bx;
10000    struct s *b = &bx; b->j = 5;
10001  }
10002  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10003    const int foo = 10;
10004    if (!foo) return 0;
10005  }
10006  return !cs[0] && !zero.x;
10007#endif
10008
10009  ;
10010  return 0;
10011}
10012_ACEOF
10013if ac_fn_c_try_compile "$LINENO"; then :
10014  ac_cv_c_const=yes
10015else
10016  ac_cv_c_const=no
10017fi
10018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10019fi
10020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10021$as_echo "$ac_cv_c_const" >&6; }
10022if test $ac_cv_c_const = no; then
10023
10024$as_echo "#define const /**/" >>confdefs.h
10025
10026fi
10027
10028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
10029$as_echo_n "checking for working volatile... " >&6; }
10030if ${ac_cv_c_volatile+:} false; then :
10031  $as_echo_n "(cached) " >&6
10032else
10033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10034/* end confdefs.h.  */
10035
10036int
10037main ()
10038{
10039
10040volatile int x;
10041int * volatile y = (int *) 0;
10042return !x && !y;
10043  ;
10044  return 0;
10045}
10046_ACEOF
10047if ac_fn_c_try_compile "$LINENO"; then :
10048  ac_cv_c_volatile=yes
10049else
10050  ac_cv_c_volatile=no
10051fi
10052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10053fi
10054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
10055$as_echo "$ac_cv_c_volatile" >&6; }
10056if test $ac_cv_c_volatile = no; then
10057
10058$as_echo "#define volatile /**/" >>confdefs.h
10059
10060fi
10061
10062
10063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv returns a value" >&5
10064$as_echo_n "checking whether unsetenv returns a value... " >&6; }
10065HAVE_INT_UNSETENV=no
10066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10067/* end confdefs.h.  */
10068
10069#include <stdlib.h>
10070
10071int
10072main ()
10073{
10074int i; i = unsetenv("dummy"); return 0;
10075  ;
10076  return 0;
10077}
10078_ACEOF
10079if ac_fn_c_try_compile "$LINENO"; then :
10080  HAVE_INT_UNSETENV=yes
10081fi
10082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10083if test "x$HAVE_INT_UNSETENV" = "xyes";
10084then
10085
10086$as_echo "#define UNSETENV_RETVAL /**/" >>confdefs.h
10087
10088fi
10089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_INT_UNSETENV" >&5
10090$as_echo "$HAVE_INT_UNSETENV" >&6; }
10091
10092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
10093$as_echo_n "checking for working memcmp... " >&6; }
10094if ${ac_cv_func_memcmp_working+:} false; then :
10095  $as_echo_n "(cached) " >&6
10096else
10097  if test "$cross_compiling" = yes; then :
10098  ac_cv_func_memcmp_working=no
10099else
10100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10101/* end confdefs.h.  */
10102$ac_includes_default
10103int
10104main ()
10105{
10106
10107  /* Some versions of memcmp are not 8-bit clean.  */
10108  char c0 = '\100', c1 = '\200', c2 = '\201';
10109  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10110    return 1;
10111
10112  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10113     or more and with at least one buffer not starting on a 4-byte boundary.
10114     William Lewis provided this test program.   */
10115  {
10116    char foo[21];
10117    char bar[21];
10118    int i;
10119    for (i = 0; i < 4; i++)
10120      {
10121	char *a = foo + i;
10122	char *b = bar + i;
10123	strcpy (a, "--------01111111");
10124	strcpy (b, "--------10000000");
10125	if (memcmp (a, b, 16) >= 0)
10126	  return 1;
10127      }
10128    return 0;
10129  }
10130
10131  ;
10132  return 0;
10133}
10134_ACEOF
10135if ac_fn_c_try_run "$LINENO"; then :
10136  ac_cv_func_memcmp_working=yes
10137else
10138  ac_cv_func_memcmp_working=no
10139fi
10140rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10141  conftest.$ac_objext conftest.beam conftest.$ac_ext
10142fi
10143
10144fi
10145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
10146$as_echo "$ac_cv_func_memcmp_working" >&6; }
10147test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
10148  *" memcmp.$ac_objext "* ) ;;
10149  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10150 ;;
10151esac
10152
10153
10154for ac_func in gettimeofday mkdir strerror strtod strtol sched_yield ceill setlocale fseeko ftello lrint lrintf dup2 memchr memmove memset pow putenv select sqrt strchr strrchr strstr strtoul
10155do :
10156  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10157ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10158if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10159  cat >>confdefs.h <<_ACEOF
10160#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10161_ACEOF
10162
10163fi
10164done
10165
10166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
10167$as_echo_n "checking whether closedir returns void... " >&6; }
10168if ${ac_cv_func_closedir_void+:} false; then :
10169  $as_echo_n "(cached) " >&6
10170else
10171  if test "$cross_compiling" = yes; then :
10172  ac_cv_func_closedir_void=yes
10173else
10174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10175/* end confdefs.h.  */
10176$ac_includes_default
10177#include <$ac_header_dirent>
10178#ifndef __cplusplus
10179int closedir ();
10180#endif
10181
10182int
10183main ()
10184{
10185return closedir (opendir (".")) != 0;
10186  ;
10187  return 0;
10188}
10189_ACEOF
10190if ac_fn_c_try_run "$LINENO"; then :
10191  ac_cv_func_closedir_void=no
10192else
10193  ac_cv_func_closedir_void=yes
10194fi
10195rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10196  conftest.$ac_objext conftest.beam conftest.$ac_ext
10197fi
10198
10199fi
10200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
10201$as_echo "$ac_cv_func_closedir_void" >&6; }
10202if test $ac_cv_func_closedir_void = yes; then
10203
10204$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
10205
10206fi
10207
10208for ac_header in vfork.h
10209do :
10210  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
10211if test "x$ac_cv_header_vfork_h" = xyes; then :
10212  cat >>confdefs.h <<_ACEOF
10213#define HAVE_VFORK_H 1
10214_ACEOF
10215
10216fi
10217
10218done
10219
10220for ac_func in fork vfork
10221do :
10222  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10223ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10224if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10225  cat >>confdefs.h <<_ACEOF
10226#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10227_ACEOF
10228
10229fi
10230done
10231
10232if test "x$ac_cv_func_fork" = xyes; then
10233  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10234$as_echo_n "checking for working fork... " >&6; }
10235if ${ac_cv_func_fork_works+:} false; then :
10236  $as_echo_n "(cached) " >&6
10237else
10238  if test "$cross_compiling" = yes; then :
10239  ac_cv_func_fork_works=cross
10240else
10241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10242/* end confdefs.h.  */
10243$ac_includes_default
10244int
10245main ()
10246{
10247
10248	  /* By Ruediger Kuhlmann. */
10249	  return fork () < 0;
10250
10251  ;
10252  return 0;
10253}
10254_ACEOF
10255if ac_fn_c_try_run "$LINENO"; then :
10256  ac_cv_func_fork_works=yes
10257else
10258  ac_cv_func_fork_works=no
10259fi
10260rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10261  conftest.$ac_objext conftest.beam conftest.$ac_ext
10262fi
10263
10264fi
10265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10266$as_echo "$ac_cv_func_fork_works" >&6; }
10267
10268else
10269  ac_cv_func_fork_works=$ac_cv_func_fork
10270fi
10271if test "x$ac_cv_func_fork_works" = xcross; then
10272  case $host in
10273    *-*-amigaos* | *-*-msdosdjgpp*)
10274      # Override, as these systems have only a dummy fork() stub
10275      ac_cv_func_fork_works=no
10276      ;;
10277    *)
10278      ac_cv_func_fork_works=yes
10279      ;;
10280  esac
10281  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10282$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10283fi
10284ac_cv_func_vfork_works=$ac_cv_func_vfork
10285if test "x$ac_cv_func_vfork" = xyes; then
10286  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10287$as_echo_n "checking for working vfork... " >&6; }
10288if ${ac_cv_func_vfork_works+:} false; then :
10289  $as_echo_n "(cached) " >&6
10290else
10291  if test "$cross_compiling" = yes; then :
10292  ac_cv_func_vfork_works=cross
10293else
10294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10295/* end confdefs.h.  */
10296/* Thanks to Paul Eggert for this test.  */
10297$ac_includes_default
10298#include <sys/wait.h>
10299#ifdef HAVE_VFORK_H
10300# include <vfork.h>
10301#endif
10302/* On some sparc systems, changes by the child to local and incoming
10303   argument registers are propagated back to the parent.  The compiler
10304   is told about this with #include <vfork.h>, but some compilers
10305   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
10306   static variable whose address is put into a register that is
10307   clobbered by the vfork.  */
10308static void
10309#ifdef __cplusplus
10310sparc_address_test (int arg)
10311# else
10312sparc_address_test (arg) int arg;
10313#endif
10314{
10315  static pid_t child;
10316  if (!child) {
10317    child = vfork ();
10318    if (child < 0) {
10319      perror ("vfork");
10320      _exit(2);
10321    }
10322    if (!child) {
10323      arg = getpid();
10324      write(-1, "", 0);
10325      _exit (arg);
10326    }
10327  }
10328}
10329
10330int
10331main ()
10332{
10333  pid_t parent = getpid ();
10334  pid_t child;
10335
10336  sparc_address_test (0);
10337
10338  child = vfork ();
10339
10340  if (child == 0) {
10341    /* Here is another test for sparc vfork register problems.  This
10342       test uses lots of local variables, at least as many local
10343       variables as main has allocated so far including compiler
10344       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10345       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10346       reuse the register of parent for one of the local variables,
10347       since it will think that parent can't possibly be used any more
10348       in this routine.  Assigning to the local variable will thus
10349       munge parent in the parent process.  */
10350    pid_t
10351      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10352      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10353    /* Convince the compiler that p..p7 are live; otherwise, it might
10354       use the same hardware register for all 8 local variables.  */
10355    if (p != p1 || p != p2 || p != p3 || p != p4
10356	|| p != p5 || p != p6 || p != p7)
10357      _exit(1);
10358
10359    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10360       from child file descriptors.  If the child closes a descriptor
10361       before it execs or exits, this munges the parent's descriptor
10362       as well.  Test for this by closing stdout in the child.  */
10363    _exit(close(fileno(stdout)) != 0);
10364  } else {
10365    int status;
10366    struct stat st;
10367
10368    while (wait(&status) != child)
10369      ;
10370    return (
10371	 /* Was there some problem with vforking?  */
10372	 child < 0
10373
10374	 /* Did the child fail?  (This shouldn't happen.)  */
10375	 || status
10376
10377	 /* Did the vfork/compiler bug occur?  */
10378	 || parent != getpid()
10379
10380	 /* Did the file descriptor bug occur?  */
10381	 || fstat(fileno(stdout), &st) != 0
10382	 );
10383  }
10384}
10385_ACEOF
10386if ac_fn_c_try_run "$LINENO"; then :
10387  ac_cv_func_vfork_works=yes
10388else
10389  ac_cv_func_vfork_works=no
10390fi
10391rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10392  conftest.$ac_objext conftest.beam conftest.$ac_ext
10393fi
10394
10395fi
10396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10397$as_echo "$ac_cv_func_vfork_works" >&6; }
10398
10399fi;
10400if test "x$ac_cv_func_fork_works" = xcross; then
10401  ac_cv_func_vfork_works=$ac_cv_func_vfork
10402  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10403$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10404fi
10405
10406if test "x$ac_cv_func_vfork_works" = xyes; then
10407
10408$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10409
10410else
10411
10412$as_echo "#define vfork fork" >>confdefs.h
10413
10414fi
10415if test "x$ac_cv_func_fork_works" = xyes; then
10416
10417$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10418
10419fi
10420
10421for ac_header in sys/select.h sys/socket.h
10422do :
10423  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10424ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10425if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10426  cat >>confdefs.h <<_ACEOF
10427#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10428_ACEOF
10429
10430fi
10431
10432done
10433
10434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
10435$as_echo_n "checking types of arguments for select... " >&6; }
10436if ${ac_cv_func_select_args+:} false; then :
10437  $as_echo_n "(cached) " >&6
10438else
10439  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
10440 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
10441  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
10442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10443/* end confdefs.h.  */
10444$ac_includes_default
10445#ifdef HAVE_SYS_SELECT_H
10446# include <sys/select.h>
10447#endif
10448#ifdef HAVE_SYS_SOCKET_H
10449# include <sys/socket.h>
10450#endif
10451
10452int
10453main ()
10454{
10455extern int select ($ac_arg1,
10456					    $ac_arg234, $ac_arg234, $ac_arg234,
10457					    $ac_arg5);
10458  ;
10459  return 0;
10460}
10461_ACEOF
10462if ac_fn_c_try_compile "$LINENO"; then :
10463  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10464fi
10465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10466  done
10467 done
10468done
10469# Provide a safe default value.
10470: "${ac_cv_func_select_args=int,int *,struct timeval *}"
10471
10472fi
10473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
10474$as_echo "$ac_cv_func_select_args" >&6; }
10475ac_save_IFS=$IFS; IFS=','
10476set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10477IFS=$ac_save_IFS
10478shift
10479
10480cat >>confdefs.h <<_ACEOF
10481#define SELECT_TYPE_ARG1 $1
10482_ACEOF
10483
10484
10485cat >>confdefs.h <<_ACEOF
10486#define SELECT_TYPE_ARG234 ($2)
10487_ACEOF
10488
10489
10490cat >>confdefs.h <<_ACEOF
10491#define SELECT_TYPE_ARG5 ($3)
10492_ACEOF
10493
10494rm -f conftest*
10495
10496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
10497$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
10498if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
10499  $as_echo_n "(cached) " >&6
10500else
10501  rm -f conftest.sym conftest.file
10502echo >conftest.file
10503if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
10504  if test "$cross_compiling" = yes; then :
10505  ac_cv_func_lstat_dereferences_slashed_symlink=no
10506else
10507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10508/* end confdefs.h.  */
10509$ac_includes_default
10510int
10511main ()
10512{
10513struct stat sbuf;
10514     /* Linux will dereference the symlink and fail, as required by POSIX.
10515	That is better in the sense that it means we will not
10516	have to compile and use the lstat wrapper.  */
10517     return lstat ("conftest.sym/", &sbuf) == 0;
10518  ;
10519  return 0;
10520}
10521_ACEOF
10522if ac_fn_c_try_run "$LINENO"; then :
10523  ac_cv_func_lstat_dereferences_slashed_symlink=yes
10524else
10525  ac_cv_func_lstat_dereferences_slashed_symlink=no
10526fi
10527rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10528  conftest.$ac_objext conftest.beam conftest.$ac_ext
10529fi
10530
10531else
10532  # If the `ln -s' command failed, then we probably don't even
10533  # have an lstat function.
10534  ac_cv_func_lstat_dereferences_slashed_symlink=no
10535fi
10536rm -f conftest.sym conftest.file
10537
10538fi
10539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
10540$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
10541
10542test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
10543
10544cat >>confdefs.h <<_ACEOF
10545#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
10546_ACEOF
10547
10548
10549if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
10550  case " $LIBOBJS " in
10551  *" lstat.$ac_objext "* ) ;;
10552  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
10553 ;;
10554esac
10555
10556fi
10557
10558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
10559$as_echo_n "checking whether stat accepts an empty string... " >&6; }
10560if ${ac_cv_func_stat_empty_string_bug+:} false; then :
10561  $as_echo_n "(cached) " >&6
10562else
10563  if test "$cross_compiling" = yes; then :
10564  ac_cv_func_stat_empty_string_bug=yes
10565else
10566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10567/* end confdefs.h.  */
10568$ac_includes_default
10569int
10570main ()
10571{
10572struct stat sbuf;
10573  return stat ("", &sbuf) == 0;
10574  ;
10575  return 0;
10576}
10577_ACEOF
10578if ac_fn_c_try_run "$LINENO"; then :
10579  ac_cv_func_stat_empty_string_bug=no
10580else
10581  ac_cv_func_stat_empty_string_bug=yes
10582fi
10583rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10584  conftest.$ac_objext conftest.beam conftest.$ac_ext
10585fi
10586
10587fi
10588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
10589$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
10590if test $ac_cv_func_stat_empty_string_bug = yes; then
10591  case " $LIBOBJS " in
10592  *" stat.$ac_objext "* ) ;;
10593  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
10594 ;;
10595esac
10596
10597
10598cat >>confdefs.h <<_ACEOF
10599#define HAVE_STAT_EMPTY_STRING_BUG 1
10600_ACEOF
10601
10602fi
10603
10604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
10605$as_echo_n "checking for working strtod... " >&6; }
10606if ${ac_cv_func_strtod+:} false; then :
10607  $as_echo_n "(cached) " >&6
10608else
10609  if test "$cross_compiling" = yes; then :
10610  ac_cv_func_strtod=no
10611else
10612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10613/* end confdefs.h.  */
10614
10615$ac_includes_default
10616#ifndef strtod
10617double strtod ();
10618#endif
10619int
10620main()
10621{
10622  {
10623    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
10624    char *string = " +69";
10625    char *term;
10626    double value;
10627    value = strtod (string, &term);
10628    if (value != 69 || term != (string + 4))
10629      return 1;
10630  }
10631
10632  {
10633    /* Under Solaris 2.4, strtod returns the wrong value for the
10634       terminating character under some conditions.  */
10635    char *string = "NaN";
10636    char *term;
10637    strtod (string, &term);
10638    if (term != string && *(term - 1) == 0)
10639      return 1;
10640  }
10641  return 0;
10642}
10643
10644_ACEOF
10645if ac_fn_c_try_run "$LINENO"; then :
10646  ac_cv_func_strtod=yes
10647else
10648  ac_cv_func_strtod=no
10649fi
10650rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10651  conftest.$ac_objext conftest.beam conftest.$ac_ext
10652fi
10653
10654fi
10655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
10656$as_echo "$ac_cv_func_strtod" >&6; }
10657if test $ac_cv_func_strtod = no; then
10658  case " $LIBOBJS " in
10659  *" strtod.$ac_objext "* ) ;;
10660  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
10661 ;;
10662esac
10663
10664ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
10665if test "x$ac_cv_func_pow" = xyes; then :
10666
10667fi
10668
10669if test $ac_cv_func_pow = no; then
10670  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
10671$as_echo_n "checking for pow in -lm... " >&6; }
10672if ${ac_cv_lib_m_pow+:} false; then :
10673  $as_echo_n "(cached) " >&6
10674else
10675  ac_check_lib_save_LIBS=$LIBS
10676LIBS="-lm  $LIBS"
10677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10678/* end confdefs.h.  */
10679
10680/* Override any GCC internal prototype to avoid an error.
10681   Use char because int might match the return type of a GCC
10682   builtin and then its argument prototype would still apply.  */
10683#ifdef __cplusplus
10684extern "C"
10685#endif
10686char pow ();
10687int
10688main ()
10689{
10690return pow ();
10691  ;
10692  return 0;
10693}
10694_ACEOF
10695if ac_fn_c_try_link "$LINENO"; then :
10696  ac_cv_lib_m_pow=yes
10697else
10698  ac_cv_lib_m_pow=no
10699fi
10700rm -f core conftest.err conftest.$ac_objext \
10701    conftest$ac_exeext conftest.$ac_ext
10702LIBS=$ac_check_lib_save_LIBS
10703fi
10704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
10705$as_echo "$ac_cv_lib_m_pow" >&6; }
10706if test "x$ac_cv_lib_m_pow" = xyes; then :
10707  POW_LIB=-lm
10708else
10709  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
10710$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
10711fi
10712
10713fi
10714
10715fi
10716
10717
10718ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in m4/Makefile share/Makefile"
10719
10720cat >confcache <<\_ACEOF
10721# This file is a shell script that caches the results of configure
10722# tests run on this system so they can be shared between configure
10723# scripts and configure runs, see configure's option --config-cache.
10724# It is not useful on other systems.  If it contains results you don't
10725# want to keep, you may remove or edit it.
10726#
10727# config.status only pays attention to the cache file if you give it
10728# the --recheck option to rerun configure.
10729#
10730# `ac_cv_env_foo' variables (set or unset) will be overridden when
10731# loading this file, other *unset* `ac_cv_foo' will be assigned the
10732# following values.
10733
10734_ACEOF
10735
10736# The following way of writing the cache mishandles newlines in values,
10737# but we know of no workaround that is simple, portable, and efficient.
10738# So, we kill variables containing newlines.
10739# Ultrix sh set writes to stderr and can't be redirected directly,
10740# and sets the high bit in the cache file unless we assign to the vars.
10741(
10742  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10743    eval ac_val=\$$ac_var
10744    case $ac_val in #(
10745    *${as_nl}*)
10746      case $ac_var in #(
10747      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10748$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10749      esac
10750      case $ac_var in #(
10751      _ | IFS | as_nl) ;; #(
10752      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10753      *) { eval $ac_var=; unset $ac_var;} ;;
10754      esac ;;
10755    esac
10756  done
10757
10758  (set) 2>&1 |
10759    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10760    *${as_nl}ac_space=\ *)
10761      # `set' does not quote correctly, so add quotes: double-quote
10762      # substitution turns \\\\ into \\, and sed turns \\ into \.
10763      sed -n \
10764	"s/'/'\\\\''/g;
10765	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10766      ;; #(
10767    *)
10768      # `set' quotes correctly as required by POSIX, so do not add quotes.
10769      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10770      ;;
10771    esac |
10772    sort
10773) |
10774  sed '
10775     /^ac_cv_env_/b end
10776     t clear
10777     :clear
10778     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10779     t end
10780     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10781     :end' >>confcache
10782if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10783  if test -w "$cache_file"; then
10784    if test "x$cache_file" != "x/dev/null"; then
10785      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10786$as_echo "$as_me: updating cache $cache_file" >&6;}
10787      if test ! -f "$cache_file" || test -h "$cache_file"; then
10788	cat confcache >"$cache_file"
10789      else
10790        case $cache_file in #(
10791        */* | ?:*)
10792	  mv -f confcache "$cache_file"$$ &&
10793	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10794        *)
10795	  mv -f confcache "$cache_file" ;;
10796	esac
10797      fi
10798    fi
10799  else
10800    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10801$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10802  fi
10803fi
10804rm -f confcache
10805
10806test "x$prefix" = xNONE && prefix=$ac_default_prefix
10807# Let make expand exec_prefix.
10808test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10809
10810DEFS=-DHAVE_CONFIG_H
10811
10812ac_libobjs=
10813ac_ltlibobjs=
10814U=
10815for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10816  # 1. Remove the extension, and $U if already installed.
10817  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10818  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10819  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10820  #    will be set to the directory where LIBOBJS objects are built.
10821  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10822  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10823done
10824LIBOBJS=$ac_libobjs
10825
10826LTLIBOBJS=$ac_ltlibobjs
10827
10828
10829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10830$as_echo_n "checking that generated files are newer than configure... " >&6; }
10831   if test -n "$am_sleep_pid"; then
10832     # Hide warnings about reused PIDs.
10833     wait $am_sleep_pid 2>/dev/null
10834   fi
10835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10836$as_echo "done" >&6; }
10837 if test -n "$EXEEXT"; then
10838  am__EXEEXT_TRUE=
10839  am__EXEEXT_FALSE='#'
10840else
10841  am__EXEEXT_TRUE='#'
10842  am__EXEEXT_FALSE=
10843fi
10844
10845if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10846  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10847Usually this means the macro was only invoked conditionally." "$LINENO" 5
10848fi
10849if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10850  as_fn_error $? "conditional \"AMDEP\" was never defined.
10851Usually this means the macro was only invoked conditionally." "$LINENO" 5
10852fi
10853if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10854  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10855Usually this means the macro was only invoked conditionally." "$LINENO" 5
10856fi
10857if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10858  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10859Usually this means the macro was only invoked conditionally." "$LINENO" 5
10860fi
10861
10862: "${CONFIG_STATUS=./config.status}"
10863ac_write_fail=0
10864ac_clean_files_save=$ac_clean_files
10865ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10866{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10867$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10868as_write_fail=0
10869cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10870#! $SHELL
10871# Generated by $as_me.
10872# Run this file to recreate the current configuration.
10873# Compiler output produced by configure, useful for debugging
10874# configure, is in config.log if it exists.
10875
10876debug=false
10877ac_cs_recheck=false
10878ac_cs_silent=false
10879
10880SHELL=\${CONFIG_SHELL-$SHELL}
10881export SHELL
10882_ASEOF
10883cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10884## -------------------- ##
10885## M4sh Initialization. ##
10886## -------------------- ##
10887
10888# Be more Bourne compatible
10889DUALCASE=1; export DUALCASE # for MKS sh
10890if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10891  emulate sh
10892  NULLCMD=:
10893  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10894  # is contrary to our usage.  Disable this feature.
10895  alias -g '${1+"$@"}'='"$@"'
10896  setopt NO_GLOB_SUBST
10897else
10898  case `(set -o) 2>/dev/null` in #(
10899  *posix*) :
10900    set -o posix ;; #(
10901  *) :
10902     ;;
10903esac
10904fi
10905
10906
10907as_nl='
10908'
10909export as_nl
10910# Printing a long string crashes Solaris 7 /usr/bin/printf.
10911as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10912as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10913as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10914# Prefer a ksh shell builtin over an external printf program on Solaris,
10915# but without wasting forks for bash or zsh.
10916if test -z "$BASH_VERSION$ZSH_VERSION" \
10917    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10918  as_echo='print -r --'
10919  as_echo_n='print -rn --'
10920elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10921  as_echo='printf %s\n'
10922  as_echo_n='printf %s'
10923else
10924  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10925    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10926    as_echo_n='/usr/ucb/echo -n'
10927  else
10928    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10929    as_echo_n_body='eval
10930      arg=$1;
10931      case $arg in #(
10932      *"$as_nl"*)
10933	expr "X$arg" : "X\\(.*\\)$as_nl";
10934	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10935      esac;
10936      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10937    '
10938    export as_echo_n_body
10939    as_echo_n='sh -c $as_echo_n_body as_echo'
10940  fi
10941  export as_echo_body
10942  as_echo='sh -c $as_echo_body as_echo'
10943fi
10944
10945# The user is always right.
10946if test "${PATH_SEPARATOR+set}" != set; then
10947  PATH_SEPARATOR=:
10948  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10949    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10950      PATH_SEPARATOR=';'
10951  }
10952fi
10953
10954
10955# IFS
10956# We need space, tab and new line, in precisely that order.  Quoting is
10957# there to prevent editors from complaining about space-tab.
10958# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10959# splitting by setting IFS to empty value.)
10960IFS=" ""	$as_nl"
10961
10962# Find who we are.  Look in the path if we contain no directory separator.
10963as_myself=
10964case $0 in #((
10965  *[\\/]* ) as_myself=$0 ;;
10966  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10967for as_dir in $PATH
10968do
10969  IFS=$as_save_IFS
10970  test -z "$as_dir" && as_dir=.
10971    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10972  done
10973IFS=$as_save_IFS
10974
10975     ;;
10976esac
10977# We did not find ourselves, most probably we were run as `sh COMMAND'
10978# in which case we are not to be found in the path.
10979if test "x$as_myself" = x; then
10980  as_myself=$0
10981fi
10982if test ! -f "$as_myself"; then
10983  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10984  exit 1
10985fi
10986
10987# Unset variables that we do not need and which cause bugs (e.g. in
10988# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
10989# suppresses any "Segmentation fault" message there.  '((' could
10990# trigger a bug in pdksh 5.2.14.
10991for as_var in BASH_ENV ENV MAIL MAILPATH
10992do eval test x\${$as_var+set} = xset \
10993  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10994done
10995PS1='$ '
10996PS2='> '
10997PS4='+ '
10998
10999# NLS nuisances.
11000LC_ALL=C
11001export LC_ALL
11002LANGUAGE=C
11003export LANGUAGE
11004
11005# CDPATH.
11006(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11007
11008
11009# as_fn_error STATUS ERROR [LINENO LOG_FD]
11010# ----------------------------------------
11011# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11012# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11013# script with STATUS, using 1 if that was 0.
11014as_fn_error ()
11015{
11016  as_status=$1; test $as_status -eq 0 && as_status=1
11017  if test "$4"; then
11018    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11019    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11020  fi
11021  $as_echo "$as_me: error: $2" >&2
11022  as_fn_exit $as_status
11023} # as_fn_error
11024
11025
11026# as_fn_set_status STATUS
11027# -----------------------
11028# Set $? to STATUS, without forking.
11029as_fn_set_status ()
11030{
11031  return $1
11032} # as_fn_set_status
11033
11034# as_fn_exit STATUS
11035# -----------------
11036# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11037as_fn_exit ()
11038{
11039  set +e
11040  as_fn_set_status $1
11041  exit $1
11042} # as_fn_exit
11043
11044# as_fn_unset VAR
11045# ---------------
11046# Portably unset VAR.
11047as_fn_unset ()
11048{
11049  { eval $1=; unset $1;}
11050}
11051as_unset=as_fn_unset
11052# as_fn_append VAR VALUE
11053# ----------------------
11054# Append the text in VALUE to the end of the definition contained in VAR. Take
11055# advantage of any shell optimizations that allow amortized linear growth over
11056# repeated appends, instead of the typical quadratic growth present in naive
11057# implementations.
11058if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11059  eval 'as_fn_append ()
11060  {
11061    eval $1+=\$2
11062  }'
11063else
11064  as_fn_append ()
11065  {
11066    eval $1=\$$1\$2
11067  }
11068fi # as_fn_append
11069
11070# as_fn_arith ARG...
11071# ------------------
11072# Perform arithmetic evaluation on the ARGs, and store the result in the
11073# global $as_val. Take advantage of shells that can avoid forks. The arguments
11074# must be portable across $(()) and expr.
11075if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11076  eval 'as_fn_arith ()
11077  {
11078    as_val=$(( $* ))
11079  }'
11080else
11081  as_fn_arith ()
11082  {
11083    as_val=`expr "$@" || test $? -eq 1`
11084  }
11085fi # as_fn_arith
11086
11087
11088if expr a : '\(a\)' >/dev/null 2>&1 &&
11089   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11090  as_expr=expr
11091else
11092  as_expr=false
11093fi
11094
11095if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11096  as_basename=basename
11097else
11098  as_basename=false
11099fi
11100
11101if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11102  as_dirname=dirname
11103else
11104  as_dirname=false
11105fi
11106
11107as_me=`$as_basename -- "$0" ||
11108$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11109	 X"$0" : 'X\(//\)$' \| \
11110	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11111$as_echo X/"$0" |
11112    sed '/^.*\/\([^/][^/]*\)\/*$/{
11113	    s//\1/
11114	    q
11115	  }
11116	  /^X\/\(\/\/\)$/{
11117	    s//\1/
11118	    q
11119	  }
11120	  /^X\/\(\/\).*/{
11121	    s//\1/
11122	    q
11123	  }
11124	  s/.*/./; q'`
11125
11126# Avoid depending upon Character Ranges.
11127as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11128as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11129as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11130as_cr_digits='0123456789'
11131as_cr_alnum=$as_cr_Letters$as_cr_digits
11132
11133ECHO_C= ECHO_N= ECHO_T=
11134case `echo -n x` in #(((((
11135-n*)
11136  case `echo 'xy\c'` in
11137  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11138  xy)  ECHO_C='\c';;
11139  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11140       ECHO_T='	';;
11141  esac;;
11142*)
11143  ECHO_N='-n';;
11144esac
11145
11146rm -f conf$$ conf$$.exe conf$$.file
11147if test -d conf$$.dir; then
11148  rm -f conf$$.dir/conf$$.file
11149else
11150  rm -f conf$$.dir
11151  mkdir conf$$.dir 2>/dev/null
11152fi
11153if (echo >conf$$.file) 2>/dev/null; then
11154  if ln -s conf$$.file conf$$ 2>/dev/null; then
11155    as_ln_s='ln -s'
11156    # ... but there are two gotchas:
11157    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11158    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11159    # In both cases, we have to default to `cp -pR'.
11160    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11161      as_ln_s='cp -pR'
11162  elif ln conf$$.file conf$$ 2>/dev/null; then
11163    as_ln_s=ln
11164  else
11165    as_ln_s='cp -pR'
11166  fi
11167else
11168  as_ln_s='cp -pR'
11169fi
11170rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11171rmdir conf$$.dir 2>/dev/null
11172
11173
11174# as_fn_mkdir_p
11175# -------------
11176# Create "$as_dir" as a directory, including parents if necessary.
11177as_fn_mkdir_p ()
11178{
11179
11180  case $as_dir in #(
11181  -*) as_dir=./$as_dir;;
11182  esac
11183  test -d "$as_dir" || eval $as_mkdir_p || {
11184    as_dirs=
11185    while :; do
11186      case $as_dir in #(
11187      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11188      *) as_qdir=$as_dir;;
11189      esac
11190      as_dirs="'$as_qdir' $as_dirs"
11191      as_dir=`$as_dirname -- "$as_dir" ||
11192$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11193	 X"$as_dir" : 'X\(//\)[^/]' \| \
11194	 X"$as_dir" : 'X\(//\)$' \| \
11195	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11196$as_echo X"$as_dir" |
11197    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11198	    s//\1/
11199	    q
11200	  }
11201	  /^X\(\/\/\)[^/].*/{
11202	    s//\1/
11203	    q
11204	  }
11205	  /^X\(\/\/\)$/{
11206	    s//\1/
11207	    q
11208	  }
11209	  /^X\(\/\).*/{
11210	    s//\1/
11211	    q
11212	  }
11213	  s/.*/./; q'`
11214      test -d "$as_dir" && break
11215    done
11216    test -z "$as_dirs" || eval "mkdir $as_dirs"
11217  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11218
11219
11220} # as_fn_mkdir_p
11221if mkdir -p . 2>/dev/null; then
11222  as_mkdir_p='mkdir -p "$as_dir"'
11223else
11224  test -d ./-p && rmdir ./-p
11225  as_mkdir_p=false
11226fi
11227
11228
11229# as_fn_executable_p FILE
11230# -----------------------
11231# Test if FILE is an executable regular file.
11232as_fn_executable_p ()
11233{
11234  test -f "$1" && test -x "$1"
11235} # as_fn_executable_p
11236as_test_x='test -x'
11237as_executable_p=as_fn_executable_p
11238
11239# Sed expression to map a string onto a valid CPP name.
11240as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11241
11242# Sed expression to map a string onto a valid variable name.
11243as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11244
11245
11246exec 6>&1
11247## ----------------------------------- ##
11248## Main body of $CONFIG_STATUS script. ##
11249## ----------------------------------- ##
11250_ASEOF
11251test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11252
11253cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11254# Save the log message, to keep $0 and so on meaningful, and to
11255# report actual input values of CONFIG_FILES etc. instead of their
11256# values after options handling.
11257ac_log="
11258This file was extended by $as_me, which was
11259generated by GNU Autoconf 2.69.  Invocation command line was
11260
11261  CONFIG_FILES    = $CONFIG_FILES
11262  CONFIG_HEADERS  = $CONFIG_HEADERS
11263  CONFIG_LINKS    = $CONFIG_LINKS
11264  CONFIG_COMMANDS = $CONFIG_COMMANDS
11265  $ $0 $@
11266
11267on `(hostname || uname -n) 2>/dev/null | sed 1q`
11268"
11269
11270_ACEOF
11271
11272case $ac_config_files in *"
11273"*) set x $ac_config_files; shift; ac_config_files=$*;;
11274esac
11275
11276case $ac_config_headers in *"
11277"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11278esac
11279
11280
11281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11282# Files that config.status was made for.
11283config_files="$ac_config_files"
11284config_headers="$ac_config_headers"
11285config_commands="$ac_config_commands"
11286
11287_ACEOF
11288
11289cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11290ac_cs_usage="\
11291\`$as_me' instantiates files and other configuration actions
11292from templates according to the current configuration.  Unless the files
11293and actions are specified as TAGs, all are instantiated by default.
11294
11295Usage: $0 [OPTION]... [TAG]...
11296
11297  -h, --help       print this help, then exit
11298  -V, --version    print version number and configuration settings, then exit
11299      --config     print configuration, then exit
11300  -q, --quiet, --silent
11301                   do not print progress messages
11302  -d, --debug      don't remove temporary files
11303      --recheck    update $as_me by reconfiguring in the same conditions
11304      --file=FILE[:TEMPLATE]
11305                   instantiate the configuration file FILE
11306      --header=FILE[:TEMPLATE]
11307                   instantiate the configuration header FILE
11308
11309Configuration files:
11310$config_files
11311
11312Configuration headers:
11313$config_headers
11314
11315Configuration commands:
11316$config_commands
11317
11318Report bugs to the package provider."
11319
11320_ACEOF
11321cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11322ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11323ac_cs_version="\\
11324config.status
11325configured by $0, generated by GNU Autoconf 2.69,
11326  with options \\"\$ac_cs_config\\"
11327
11328Copyright (C) 2012 Free Software Foundation, Inc.
11329This config.status script is free software; the Free Software Foundation
11330gives unlimited permission to copy, distribute and modify it."
11331
11332ac_pwd='$ac_pwd'
11333srcdir='$srcdir'
11334INSTALL='$INSTALL'
11335MKDIR_P='$MKDIR_P'
11336AWK='$AWK'
11337test -n "\$AWK" || AWK=awk
11338_ACEOF
11339
11340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11341# The default lists apply if the user does not specify any file.
11342ac_need_defaults=:
11343while test $# != 0
11344do
11345  case $1 in
11346  --*=?*)
11347    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11348    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11349    ac_shift=:
11350    ;;
11351  --*=)
11352    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11353    ac_optarg=
11354    ac_shift=:
11355    ;;
11356  *)
11357    ac_option=$1
11358    ac_optarg=$2
11359    ac_shift=shift
11360    ;;
11361  esac
11362
11363  case $ac_option in
11364  # Handling of the options.
11365  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11366    ac_cs_recheck=: ;;
11367  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11368    $as_echo "$ac_cs_version"; exit ;;
11369  --config | --confi | --conf | --con | --co | --c )
11370    $as_echo "$ac_cs_config"; exit ;;
11371  --debug | --debu | --deb | --de | --d | -d )
11372    debug=: ;;
11373  --file | --fil | --fi | --f )
11374    $ac_shift
11375    case $ac_optarg in
11376    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11377    '') as_fn_error $? "missing file argument" ;;
11378    esac
11379    as_fn_append CONFIG_FILES " '$ac_optarg'"
11380    ac_need_defaults=false;;
11381  --header | --heade | --head | --hea )
11382    $ac_shift
11383    case $ac_optarg in
11384    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11385    esac
11386    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11387    ac_need_defaults=false;;
11388  --he | --h)
11389    # Conflict between --help and --header
11390    as_fn_error $? "ambiguous option: \`$1'
11391Try \`$0 --help' for more information.";;
11392  --help | --hel | -h )
11393    $as_echo "$ac_cs_usage"; exit ;;
11394  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11395  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11396    ac_cs_silent=: ;;
11397
11398  # This is an error.
11399  -*) as_fn_error $? "unrecognized option: \`$1'
11400Try \`$0 --help' for more information." ;;
11401
11402  *) as_fn_append ac_config_targets " $1"
11403     ac_need_defaults=false ;;
11404
11405  esac
11406  shift
11407done
11408
11409ac_configure_extra_args=
11410
11411if $ac_cs_silent; then
11412  exec 6>/dev/null
11413  ac_configure_extra_args="$ac_configure_extra_args --silent"
11414fi
11415
11416_ACEOF
11417cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11418if \$ac_cs_recheck; then
11419  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11420  shift
11421  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11422  CONFIG_SHELL='$SHELL'
11423  export CONFIG_SHELL
11424  exec "\$@"
11425fi
11426
11427_ACEOF
11428cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11429exec 5>>config.log
11430{
11431  echo
11432  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11433## Running $as_me. ##
11434_ASBOX
11435  $as_echo "$ac_log"
11436} >&5
11437
11438_ACEOF
11439cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11440#
11441# INIT-COMMANDS
11442#
11443# Capture the value of obsolete ALL_LINGUAS because we need it to compute
11444    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
11445    # from automake.
11446    eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
11447    # Capture the value of LINGUAS because we need it to compute CATALOGS.
11448    LINGUAS="${LINGUAS-%UNSET%}"
11449
11450AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11451
11452_ACEOF
11453
11454cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11455
11456# Handling of arguments.
11457for ac_config_target in $ac_config_targets
11458do
11459  case $ac_config_target in
11460    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11461    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11462    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11463    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11464    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11465    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
11466    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
11467    "share/Makefile") CONFIG_FILES="$CONFIG_FILES share/Makefile" ;;
11468
11469  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11470  esac
11471done
11472
11473
11474# If the user did not use the arguments to specify the items to instantiate,
11475# then the envvar interface is used.  Set only those that are not.
11476# We use the long form for the default assignment because of an extremely
11477# bizarre bug on SunOS 4.1.3.
11478if $ac_need_defaults; then
11479  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11480  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11481  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11482fi
11483
11484# Have a temporary directory for convenience.  Make it in the build tree
11485# simply because there is no reason against having it here, and in addition,
11486# creating and moving files from /tmp can sometimes cause problems.
11487# Hook for its removal unless debugging.
11488# Note that there is a small window in which the directory will not be cleaned:
11489# after its creation but before its name has been assigned to `$tmp'.
11490$debug ||
11491{
11492  tmp= ac_tmp=
11493  trap 'exit_status=$?
11494  : "${ac_tmp:=$tmp}"
11495  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11496' 0
11497  trap 'as_fn_exit 1' 1 2 13 15
11498}
11499# Create a (secure) tmp directory for tmp files.
11500
11501{
11502  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11503  test -d "$tmp"
11504}  ||
11505{
11506  tmp=./conf$$-$RANDOM
11507  (umask 077 && mkdir "$tmp")
11508} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11509ac_tmp=$tmp
11510
11511# Set up the scripts for CONFIG_FILES section.
11512# No need to generate them if there are no CONFIG_FILES.
11513# This happens for instance with `./config.status config.h'.
11514if test -n "$CONFIG_FILES"; then
11515
11516
11517ac_cr=`echo X | tr X '\015'`
11518# On cygwin, bash can eat \r inside `` if the user requested igncr.
11519# But we know of no other shell where ac_cr would be empty at this
11520# point, so we can use a bashism as a fallback.
11521if test "x$ac_cr" = x; then
11522  eval ac_cr=\$\'\\r\'
11523fi
11524ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11525if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11526  ac_cs_awk_cr='\\r'
11527else
11528  ac_cs_awk_cr=$ac_cr
11529fi
11530
11531echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11532_ACEOF
11533
11534
11535{
11536  echo "cat >conf$$subs.awk <<_ACEOF" &&
11537  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11538  echo "_ACEOF"
11539} >conf$$subs.sh ||
11540  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11541ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11542ac_delim='%!_!# '
11543for ac_last_try in false false false false false :; do
11544  . ./conf$$subs.sh ||
11545    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11546
11547  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11548  if test $ac_delim_n = $ac_delim_num; then
11549    break
11550  elif $ac_last_try; then
11551    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11552  else
11553    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11554  fi
11555done
11556rm -f conf$$subs.sh
11557
11558cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11559cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11560_ACEOF
11561sed -n '
11562h
11563s/^/S["/; s/!.*/"]=/
11564p
11565g
11566s/^[^!]*!//
11567:repl
11568t repl
11569s/'"$ac_delim"'$//
11570t delim
11571:nl
11572h
11573s/\(.\{148\}\)..*/\1/
11574t more1
11575s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11576p
11577n
11578b repl
11579:more1
11580s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11581p
11582g
11583s/.\{148\}//
11584t nl
11585:delim
11586h
11587s/\(.\{148\}\)..*/\1/
11588t more2
11589s/["\\]/\\&/g; s/^/"/; s/$/"/
11590p
11591b
11592:more2
11593s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11594p
11595g
11596s/.\{148\}//
11597t delim
11598' <conf$$subs.awk | sed '
11599/^[^""]/{
11600  N
11601  s/\n//
11602}
11603' >>$CONFIG_STATUS || ac_write_fail=1
11604rm -f conf$$subs.awk
11605cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11606_ACAWK
11607cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11608  for (key in S) S_is_set[key] = 1
11609  FS = ""
11610
11611}
11612{
11613  line = $ 0
11614  nfields = split(line, field, "@")
11615  substed = 0
11616  len = length(field[1])
11617  for (i = 2; i < nfields; i++) {
11618    key = field[i]
11619    keylen = length(key)
11620    if (S_is_set[key]) {
11621      value = S[key]
11622      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11623      len += length(value) + length(field[++i])
11624      substed = 1
11625    } else
11626      len += 1 + keylen
11627  }
11628
11629  print line
11630}
11631
11632_ACAWK
11633_ACEOF
11634cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11635if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11636  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11637else
11638  cat
11639fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11640  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11641_ACEOF
11642
11643# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11644# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11645# trailing colons and then remove the whole line if VPATH becomes empty
11646# (actually we leave an empty line to preserve line numbers).
11647if test "x$srcdir" = x.; then
11648  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11649h
11650s///
11651s/^/:/
11652s/[	 ]*$/:/
11653s/:\$(srcdir):/:/g
11654s/:\${srcdir}:/:/g
11655s/:@srcdir@:/:/g
11656s/^:*//
11657s/:*$//
11658x
11659s/\(=[	 ]*\).*/\1/
11660G
11661s/\n//
11662s/^[^=]*=[	 ]*$//
11663}'
11664fi
11665
11666cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11667fi # test -n "$CONFIG_FILES"
11668
11669# Set up the scripts for CONFIG_HEADERS section.
11670# No need to generate them if there are no CONFIG_HEADERS.
11671# This happens for instance with `./config.status Makefile'.
11672if test -n "$CONFIG_HEADERS"; then
11673cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11674BEGIN {
11675_ACEOF
11676
11677# Transform confdefs.h into an awk script `defines.awk', embedded as
11678# here-document in config.status, that substitutes the proper values into
11679# config.h.in to produce config.h.
11680
11681# Create a delimiter string that does not exist in confdefs.h, to ease
11682# handling of long lines.
11683ac_delim='%!_!# '
11684for ac_last_try in false false :; do
11685  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11686  if test -z "$ac_tt"; then
11687    break
11688  elif $ac_last_try; then
11689    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11690  else
11691    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11692  fi
11693done
11694
11695# For the awk script, D is an array of macro values keyed by name,
11696# likewise P contains macro parameters if any.  Preserve backslash
11697# newline sequences.
11698
11699ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11700sed -n '
11701s/.\{148\}/&'"$ac_delim"'/g
11702t rset
11703:rset
11704s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11705t def
11706d
11707:def
11708s/\\$//
11709t bsnl
11710s/["\\]/\\&/g
11711s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11712D["\1"]=" \3"/p
11713s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11714d
11715:bsnl
11716s/["\\]/\\&/g
11717s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11718D["\1"]=" \3\\\\\\n"\\/p
11719t cont
11720s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11721t cont
11722d
11723:cont
11724n
11725s/.\{148\}/&'"$ac_delim"'/g
11726t clear
11727:clear
11728s/\\$//
11729t bsnlc
11730s/["\\]/\\&/g; s/^/"/; s/$/"/p
11731d
11732:bsnlc
11733s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11734b cont
11735' <confdefs.h | sed '
11736s/'"$ac_delim"'/"\\\
11737"/g' >>$CONFIG_STATUS || ac_write_fail=1
11738
11739cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11740  for (key in D) D_is_set[key] = 1
11741  FS = ""
11742}
11743/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11744  line = \$ 0
11745  split(line, arg, " ")
11746  if (arg[1] == "#") {
11747    defundef = arg[2]
11748    mac1 = arg[3]
11749  } else {
11750    defundef = substr(arg[1], 2)
11751    mac1 = arg[2]
11752  }
11753  split(mac1, mac2, "(") #)
11754  macro = mac2[1]
11755  prefix = substr(line, 1, index(line, defundef) - 1)
11756  if (D_is_set[macro]) {
11757    # Preserve the white space surrounding the "#".
11758    print prefix "define", macro P[macro] D[macro]
11759    next
11760  } else {
11761    # Replace #undef with comments.  This is necessary, for example,
11762    # in the case of _POSIX_SOURCE, which is predefined and required
11763    # on some systems where configure will not decide to define it.
11764    if (defundef == "undef") {
11765      print "/*", prefix defundef, macro, "*/"
11766      next
11767    }
11768  }
11769}
11770{ print }
11771_ACAWK
11772_ACEOF
11773cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11774  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11775fi # test -n "$CONFIG_HEADERS"
11776
11777
11778eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11779shift
11780for ac_tag
11781do
11782  case $ac_tag in
11783  :[FHLC]) ac_mode=$ac_tag; continue;;
11784  esac
11785  case $ac_mode$ac_tag in
11786  :[FHL]*:*);;
11787  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11788  :[FH]-) ac_tag=-:-;;
11789  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11790  esac
11791  ac_save_IFS=$IFS
11792  IFS=:
11793  set x $ac_tag
11794  IFS=$ac_save_IFS
11795  shift
11796  ac_file=$1
11797  shift
11798
11799  case $ac_mode in
11800  :L) ac_source=$1;;
11801  :[FH])
11802    ac_file_inputs=
11803    for ac_f
11804    do
11805      case $ac_f in
11806      -) ac_f="$ac_tmp/stdin";;
11807      *) # Look for the file first in the build tree, then in the source tree
11808	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11809	 # because $ac_f cannot contain `:'.
11810	 test -f "$ac_f" ||
11811	   case $ac_f in
11812	   [\\/$]*) false;;
11813	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11814	   esac ||
11815	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11816      esac
11817      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11818      as_fn_append ac_file_inputs " '$ac_f'"
11819    done
11820
11821    # Let's still pretend it is `configure' which instantiates (i.e., don't
11822    # use $as_me), people would be surprised to read:
11823    #    /* config.h.  Generated by config.status.  */
11824    configure_input='Generated from '`
11825	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11826	`' by configure.'
11827    if test x"$ac_file" != x-; then
11828      configure_input="$ac_file.  $configure_input"
11829      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11830$as_echo "$as_me: creating $ac_file" >&6;}
11831    fi
11832    # Neutralize special characters interpreted by sed in replacement strings.
11833    case $configure_input in #(
11834    *\&* | *\|* | *\\* )
11835       ac_sed_conf_input=`$as_echo "$configure_input" |
11836       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11837    *) ac_sed_conf_input=$configure_input;;
11838    esac
11839
11840    case $ac_tag in
11841    *:-:* | *:-) cat >"$ac_tmp/stdin" \
11842      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11843    esac
11844    ;;
11845  esac
11846
11847  ac_dir=`$as_dirname -- "$ac_file" ||
11848$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11849	 X"$ac_file" : 'X\(//\)[^/]' \| \
11850	 X"$ac_file" : 'X\(//\)$' \| \
11851	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11852$as_echo X"$ac_file" |
11853    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11854	    s//\1/
11855	    q
11856	  }
11857	  /^X\(\/\/\)[^/].*/{
11858	    s//\1/
11859	    q
11860	  }
11861	  /^X\(\/\/\)$/{
11862	    s//\1/
11863	    q
11864	  }
11865	  /^X\(\/\).*/{
11866	    s//\1/
11867	    q
11868	  }
11869	  s/.*/./; q'`
11870  as_dir="$ac_dir"; as_fn_mkdir_p
11871  ac_builddir=.
11872
11873case "$ac_dir" in
11874.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11875*)
11876  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11877  # A ".." for each directory in $ac_dir_suffix.
11878  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11879  case $ac_top_builddir_sub in
11880  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11881  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11882  esac ;;
11883esac
11884ac_abs_top_builddir=$ac_pwd
11885ac_abs_builddir=$ac_pwd$ac_dir_suffix
11886# for backward compatibility:
11887ac_top_builddir=$ac_top_build_prefix
11888
11889case $srcdir in
11890  .)  # We are building in place.
11891    ac_srcdir=.
11892    ac_top_srcdir=$ac_top_builddir_sub
11893    ac_abs_top_srcdir=$ac_pwd ;;
11894  [\\/]* | ?:[\\/]* )  # Absolute name.
11895    ac_srcdir=$srcdir$ac_dir_suffix;
11896    ac_top_srcdir=$srcdir
11897    ac_abs_top_srcdir=$srcdir ;;
11898  *) # Relative name.
11899    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11900    ac_top_srcdir=$ac_top_build_prefix$srcdir
11901    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11902esac
11903ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11904
11905
11906  case $ac_mode in
11907  :F)
11908  #
11909  # CONFIG_FILE
11910  #
11911
11912  case $INSTALL in
11913  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11914  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11915  esac
11916  ac_MKDIR_P=$MKDIR_P
11917  case $MKDIR_P in
11918  [\\/$]* | ?:[\\/]* ) ;;
11919  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11920  esac
11921_ACEOF
11922
11923cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11924# If the template does not know about datarootdir, expand it.
11925# FIXME: This hack should be removed a few years after 2.60.
11926ac_datarootdir_hack=; ac_datarootdir_seen=
11927ac_sed_dataroot='
11928/datarootdir/ {
11929  p
11930  q
11931}
11932/@datadir@/p
11933/@docdir@/p
11934/@infodir@/p
11935/@localedir@/p
11936/@mandir@/p'
11937case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11938*datarootdir*) ac_datarootdir_seen=yes;;
11939*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11940  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11941$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11942_ACEOF
11943cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11944  ac_datarootdir_hack='
11945  s&@datadir@&$datadir&g
11946  s&@docdir@&$docdir&g
11947  s&@infodir@&$infodir&g
11948  s&@localedir@&$localedir&g
11949  s&@mandir@&$mandir&g
11950  s&\\\${datarootdir}&$datarootdir&g' ;;
11951esac
11952_ACEOF
11953
11954# Neutralize VPATH when `$srcdir' = `.'.
11955# Shell code in configure.ac might set extrasub.
11956# FIXME: do we really want to maintain this feature?
11957cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11958ac_sed_extra="$ac_vpsub
11959$extrasub
11960_ACEOF
11961cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11962:t
11963/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11964s|@configure_input@|$ac_sed_conf_input|;t t
11965s&@top_builddir@&$ac_top_builddir_sub&;t t
11966s&@top_build_prefix@&$ac_top_build_prefix&;t t
11967s&@srcdir@&$ac_srcdir&;t t
11968s&@abs_srcdir@&$ac_abs_srcdir&;t t
11969s&@top_srcdir@&$ac_top_srcdir&;t t
11970s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11971s&@builddir@&$ac_builddir&;t t
11972s&@abs_builddir@&$ac_abs_builddir&;t t
11973s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11974s&@INSTALL@&$ac_INSTALL&;t t
11975s&@MKDIR_P@&$ac_MKDIR_P&;t t
11976$ac_datarootdir_hack
11977"
11978eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11979  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11980
11981test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11982  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11983  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
11984      "$ac_tmp/out"`; test -z "$ac_out"; } &&
11985  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11986which seems to be undefined.  Please make sure it is defined" >&5
11987$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11988which seems to be undefined.  Please make sure it is defined" >&2;}
11989
11990  rm -f "$ac_tmp/stdin"
11991  case $ac_file in
11992  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11993  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11994  esac \
11995  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11996 ;;
11997  :H)
11998  #
11999  # CONFIG_HEADER
12000  #
12001  if test x"$ac_file" != x-; then
12002    {
12003      $as_echo "/* $configure_input  */" \
12004      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12005    } >"$ac_tmp/config.h" \
12006      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12007    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12008      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12009$as_echo "$as_me: $ac_file is unchanged" >&6;}
12010    else
12011      rm -f "$ac_file"
12012      mv "$ac_tmp/config.h" "$ac_file" \
12013	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12014    fi
12015  else
12016    $as_echo "/* $configure_input  */" \
12017      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12018      || as_fn_error $? "could not create -" "$LINENO" 5
12019  fi
12020# Compute "$ac_file"'s index in $config_headers.
12021_am_arg="$ac_file"
12022_am_stamp_count=1
12023for _am_header in $config_headers :; do
12024  case $_am_header in
12025    $_am_arg | $_am_arg:* )
12026      break ;;
12027    * )
12028      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12029  esac
12030done
12031echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12032$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12033	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12034	 X"$_am_arg" : 'X\(//\)$' \| \
12035	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12036$as_echo X"$_am_arg" |
12037    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12038	    s//\1/
12039	    q
12040	  }
12041	  /^X\(\/\/\)[^/].*/{
12042	    s//\1/
12043	    q
12044	  }
12045	  /^X\(\/\/\)$/{
12046	    s//\1/
12047	    q
12048	  }
12049	  /^X\(\/\).*/{
12050	    s//\1/
12051	    q
12052	  }
12053	  s/.*/./; q'`/stamp-h$_am_stamp_count
12054 ;;
12055
12056  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12057$as_echo "$as_me: executing $ac_file commands" >&6;}
12058 ;;
12059  esac
12060
12061
12062  case $ac_file$ac_mode in
12063    "default-1":C)
12064    for ac_file in $CONFIG_FILES; do
12065      # Support "outfile[:infile[:infile...]]"
12066      case "$ac_file" in
12067        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12068      esac
12069      # PO directories have a Makefile.in generated from Makefile.in.in.
12070      case "$ac_file" in */Makefile.in)
12071        # Adjust a relative srcdir.
12072        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12073        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12074        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12075        # In autoconf-2.13 it is called $ac_given_srcdir.
12076        # In autoconf-2.50 it is called $srcdir.
12077        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12078        case "$ac_given_srcdir" in
12079          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12080          /*) top_srcdir="$ac_given_srcdir" ;;
12081          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
12082        esac
12083        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12084          rm -f "$ac_dir/POTFILES"
12085          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12086          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12087          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
12088          # on $ac_dir but don't depend on user-specified configuration
12089          # parameters.
12090          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12091            # The LINGUAS file contains the set of available languages.
12092            if test -n "$ALL_LINGUAS"; then
12093              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12094            fi
12095            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12096            # Hide the ALL_LINGUAS assigment from automake.
12097            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12098          fi
12099          case "$ac_given_srcdir" in
12100            .) srcdirpre= ;;
12101            *) srcdirpre='$(srcdir)/' ;;
12102          esac
12103          POFILES=
12104          GMOFILES=
12105          UPDATEPOFILES=
12106          DUMMYPOFILES=
12107          for lang in $ALL_LINGUAS; do
12108            POFILES="$POFILES $srcdirpre$lang.po"
12109            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12110            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12111            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12112          done
12113          # CATALOGS depends on both $ac_dir and the user's LINGUAS
12114          # environment variable.
12115          INST_LINGUAS=
12116          if test -n "$ALL_LINGUAS"; then
12117            for presentlang in $ALL_LINGUAS; do
12118              useit=no
12119              if test "%UNSET%" != "$LINGUAS"; then
12120                desiredlanguages="$LINGUAS"
12121              else
12122                desiredlanguages="$ALL_LINGUAS"
12123              fi
12124              for desiredlang in $desiredlanguages; do
12125                # Use the presentlang catalog if desiredlang is
12126                #   a. equal to presentlang, or
12127                #   b. a variant of presentlang (because in this case,
12128                #      presentlang can be used as a fallback for messages
12129                #      which are not translated in the desiredlang catalog).
12130                case "$desiredlang" in
12131                  "$presentlang"*) useit=yes;;
12132                esac
12133              done
12134              if test $useit = yes; then
12135                INST_LINGUAS="$INST_LINGUAS $presentlang"
12136              fi
12137            done
12138          fi
12139          CATALOGS=
12140          if test -n "$INST_LINGUAS"; then
12141            for lang in $INST_LINGUAS; do
12142              CATALOGS="$CATALOGS $lang.gmo"
12143            done
12144          fi
12145          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12146          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
12147          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12148            if test -f "$f"; then
12149              case "$f" in
12150                *.orig | *.bak | *~) ;;
12151                *) cat "$f" >> "$ac_dir/Makefile" ;;
12152              esac
12153            fi
12154          done
12155        fi
12156        ;;
12157      esac
12158    done ;;
12159    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12160  # Older Autoconf quotes --file arguments for eval, but not when files
12161  # are listed without --file.  Let's play safe and only enable the eval
12162  # if we detect the quoting.
12163  case $CONFIG_FILES in
12164  *\'*) eval set x "$CONFIG_FILES" ;;
12165  *)   set x $CONFIG_FILES ;;
12166  esac
12167  shift
12168  for mf
12169  do
12170    # Strip MF so we end up with the name of the file.
12171    mf=`echo "$mf" | sed -e 's/:.*$//'`
12172    # Check whether this is an Automake generated Makefile or not.
12173    # We used to match only the files named 'Makefile.in', but
12174    # some people rename them; so instead we look at the file content.
12175    # Grep'ing the first line is not enough: some people post-process
12176    # each Makefile.in and add a new line on top of each file to say so.
12177    # Grep'ing the whole file is not good either: AIX grep has a line
12178    # limit of 2048, but all sed's we know have understand at least 4000.
12179    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12180      dirpart=`$as_dirname -- "$mf" ||
12181$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12182	 X"$mf" : 'X\(//\)[^/]' \| \
12183	 X"$mf" : 'X\(//\)$' \| \
12184	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12185$as_echo X"$mf" |
12186    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12187	    s//\1/
12188	    q
12189	  }
12190	  /^X\(\/\/\)[^/].*/{
12191	    s//\1/
12192	    q
12193	  }
12194	  /^X\(\/\/\)$/{
12195	    s//\1/
12196	    q
12197	  }
12198	  /^X\(\/\).*/{
12199	    s//\1/
12200	    q
12201	  }
12202	  s/.*/./; q'`
12203    else
12204      continue
12205    fi
12206    # Extract the definition of DEPDIR, am__include, and am__quote
12207    # from the Makefile without running 'make'.
12208    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12209    test -z "$DEPDIR" && continue
12210    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12211    test -z "$am__include" && continue
12212    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12213    # Find all dependency output files, they are included files with
12214    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12215    # simplest approach to changing $(DEPDIR) to its actual value in the
12216    # expansion.
12217    for file in `sed -n "
12218      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12219	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12220      # Make sure the directory exists.
12221      test -f "$dirpart/$file" && continue
12222      fdir=`$as_dirname -- "$file" ||
12223$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12224	 X"$file" : 'X\(//\)[^/]' \| \
12225	 X"$file" : 'X\(//\)$' \| \
12226	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12227$as_echo X"$file" |
12228    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12229	    s//\1/
12230	    q
12231	  }
12232	  /^X\(\/\/\)[^/].*/{
12233	    s//\1/
12234	    q
12235	  }
12236	  /^X\(\/\/\)$/{
12237	    s//\1/
12238	    q
12239	  }
12240	  /^X\(\/\).*/{
12241	    s//\1/
12242	    q
12243	  }
12244	  s/.*/./; q'`
12245      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12246      # echo "creating $dirpart/$file"
12247      echo '# dummy' > "$dirpart/$file"
12248    done
12249  done
12250}
12251 ;;
12252
12253  esac
12254done # for ac_tag
12255
12256
12257as_fn_exit 0
12258_ACEOF
12259ac_clean_files=$ac_clean_files_save
12260
12261test $ac_write_fail = 0 ||
12262  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12263
12264
12265# configure is writing to config.log, and then calls config.status.
12266# config.status does its own redirection, appending to config.log.
12267# Unfortunately, on DOS this fails, as config.log is still kept open
12268# by configure, so config.status won't be able to write to it; its
12269# output is simply discarded.  So we exec the FD to /dev/null,
12270# effectively closing config.log, so it can be properly (re)opened and
12271# appended to by config.status.  When coming back to configure, we
12272# need to make the FD available again.
12273if test "$no_create" != yes; then
12274  ac_cs_success=:
12275  ac_config_status_args=
12276  test "$silent" = yes &&
12277    ac_config_status_args="$ac_config_status_args --quiet"
12278  exec 5>/dev/null
12279  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12280  exec 5>>config.log
12281  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12282  # would make configure fail if this is the last instruction.
12283  $ac_cs_success || as_fn_exit 1
12284fi
12285if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12286  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12287$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12288fi
12289
12290
12291
12292echo
12293echo
12294echo "------------------------"
12295echo "mhWaveEdit configuration"
12296echo "------------------------"
12297echo
12298echo "Version: $MHW_VERSION"
12299echo
12300echo "Libraries: "
12301echo -n "  GTK+ version:           "
12302if test "x$USES_GTK2" = "xyes"; then
12303	echo "2.x"
12304else
12305	echo "1.2"
12306fi
12307echo    "  Libsndfile:             $HAVE_SNDFILE"
12308echo    "  Libsamplerate:          $HAVE_LIBSAMPLERATE"
12309echo
12310echo    "Sound drivers:"
12311INCLUDED_DRIVERS=""
12312EXCLUDED_DRIVERS=""
12313
12314 if test "x$HAVE_OSS" = "xyes"; then INCLUDED_DRIVERS="$INCLUDED_DRIVERS OSS"; else EXCLUDED_DRIVERS="$EXCLUDED_DRIVERS OSS"; fi;
12315 if test "x$HAVE_ALSALIB" = "xyes"; then INCLUDED_DRIVERS="$INCLUDED_DRIVERS ALSA"; else EXCLUDED_DRIVERS="$EXCLUDED_DRIVERS ALSA"; fi;
12316 if test "x$MHW_HAVE_JACK" = "xyes"; then INCLUDED_DRIVERS="$INCLUDED_DRIVERS JACK"; else EXCLUDED_DRIVERS="$EXCLUDED_DRIVERS JACK"; fi;
12317 if test "x$MHW_HAVE_SUNAUDIO" = "xyes"; then INCLUDED_DRIVERS="$INCLUDED_DRIVERS Sun"; else EXCLUDED_DRIVERS="$EXCLUDED_DRIVERS Sun"; fi;
12318 if test "x$MHW_HAVE_PORTAUDIO" = "xyes"; then INCLUDED_DRIVERS="$INCLUDED_DRIVERS PortAudio"; else EXCLUDED_DRIVERS="$EXCLUDED_DRIVERS PortAudio"; fi;
12319 if test "x$MHW_HAVE_SDL" = "xyes"; then INCLUDED_DRIVERS="$INCLUDED_DRIVERS SDL"; else EXCLUDED_DRIVERS="$EXCLUDED_DRIVERS SDL"; fi;
12320 if test "x$MHW_HAVE_ESOUND" = "xyes"; then INCLUDED_DRIVERS="$INCLUDED_DRIVERS EsounD"; else EXCLUDED_DRIVERS="$EXCLUDED_DRIVERS EsounD"; fi;
12321 if test "x$MHW_HAVE_ARTSC" = "xyes"; then INCLUDED_DRIVERS="$INCLUDED_DRIVERS aRts"; else EXCLUDED_DRIVERS="$EXCLUDED_DRIVERS aRts"; fi;
12322 if test "x$MHW_HAVE_PULSE" = "xyes"; then INCLUDED_DRIVERS="$INCLUDED_DRIVERS PulseAudio"; else EXCLUDED_DRIVERS="$EXCLUDED_DRIVERS PulseAudio"; fi;
12323echo    "  Included drivers:      $INCLUDED_DRIVERS"
12324echo    "  Drivers not included:  $EXCLUDED_DRIVERS"
12325echo -n "  Default sound driver:   $DEFAULT_DRIVER "
12326if test "x$DEFAULT_DRIVER" = "xauto"; then
12327echo -n "(detect at startup)"
12328fi
12329echo
12330echo
12331echo    "Other settings:"
12332
12333
12334echo    "  LADSPA Support:         $HAVE_LADSPA"
12335if test "x$HAVE_LADSPA" = "xyes"; then
12336echo -n "    ladspa.h header file: "
12337if test "x$HAVE_LADSPA_GLOBAL" = "xyes"; then
12338echo "system"
12339else
12340echo "local"
12341fi
12342echo    "    Default plugin path:  $DEFAULT_LADSPA_PATH"
12343fi
12344
12345echo -n "  Floating-point samples: "
12346if test "x$MHW_DOUBLE" = "xyes"; then
12347	echo "double precision"
12348else
12349	echo "normal precision"
12350fi
12351
12352echo    "  Default mixer app:      $DEFAULT_MIXERAPP"
12353echo
12354echo "Build settings:"
12355echo -n "  Compiler options:       "
12356echo    $CFLAGS
12357echo    "  Build date string:      ${FIXED_DATE_STR}"
12358echo    "  Build time string:      ${FIXED_TIME_STR}"
12359echo
12360if test "x$USES_GTK2$MHW_HAVE_ARTSC" = "xnoyes"; then
12361        echo "---------------------------------------------------------------"
12362        echo "WARNING: There are known issues when building with GTK+ 1.2 "
12363	echo "and newer versions of aRts. If you are experiencing problems,"
12364	echo "try running configure with the --without-arts option to disable "
12365	echo "aRts support"
12366	echo "---------------------------------------------------------------"
12367        echo
12368fi
12369echo    "Type make (or gmake) to compile mhWaveEdit!"
12370