1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for jack-smf-utils 1.0.
4#
5# Report bugs to <trasz@FreeBSD.org>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
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  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44  echo "#! /bin/sh" >conf$$.sh
45  echo  "exit 0"   >>conf$$.sh
46  chmod +x conf$$.sh
47  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48    PATH_SEPARATOR=';'
49  else
50    PATH_SEPARATOR=:
51  fi
52  rm -f conf$$.sh
53fi
54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57  as_unset=unset
58else
59  as_unset=false
60fi
61
62
63# IFS
64# We need space, tab and new line, in precisely that order.  Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" ""	$as_nl"
71
72# Find who we are.  Look in the path if we contain no directory separator.
73case $0 in
74  *[\\/]* ) as_myself=$0 ;;
75  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78  IFS=$as_save_IFS
79  test -z "$as_dir" && as_dir=.
80  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84     ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89  as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93  { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108  LC_TELEPHONE LC_TIME
109do
110  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111    eval $as_var=C; export $as_var
112  else
113    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114  fi
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119   test "X`expr 00001 : '.*\(...\)'`" = X001; then
120  as_expr=expr
121else
122  as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126  as_basename=basename
127else
128  as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135	 X"$0" : 'X\(//\)$' \| \
136	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138    sed '/^.*\/\([^/][^/]*\)\/*$/{
139	    s//\1/
140	    q
141	  }
142	  /^X\/\(\/\/\)$/{
143	    s//\1/
144	    q
145	  }
146	  /^X\/\(\/\).*/{
147	    s//\1/
148	    q
149	  }
150	  s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157  if (eval ":") 2>/dev/null; then
158  as_have_required=yes
159else
160  as_have_required=no
161fi
162
163  if test $as_have_required = yes && 	 (eval ":
164(as_func_return () {
165  (exit \$1)
166}
167as_func_success () {
168  as_func_return 0
169}
170as_func_failure () {
171  as_func_return 1
172}
173as_func_ret_success () {
174  return 0
175}
176as_func_ret_failure () {
177  return 1
178}
179
180exitcode=0
181if as_func_success; then
182  :
183else
184  exitcode=1
185  echo as_func_success failed.
186fi
187
188if as_func_failure; then
189  exitcode=1
190  echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194  :
195else
196  exitcode=1
197  echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201  exitcode=1
202  echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206  :
207else
208  exitcode=1
209  echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215  as_lineno_1=\$LINENO
216  as_lineno_2=\$LINENO
217  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220  :
221else
222  as_candidate_shells=
223    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226  IFS=$as_save_IFS
227  test -z "$as_dir" && as_dir=.
228  case $as_dir in
229	 /*)
230	   for as_base in sh bash ksh sh5; do
231	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232	   done;;
233       esac
234done
235IFS=$as_save_IFS
236
237
238      for as_shell in $as_candidate_shells $SHELL; do
239	 # Try only shells that exist, to save several forks.
240	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241		{ ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243  emulate sh
244  NULLCMD=:
245  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246  # is contrary to our usage.  Disable this feature.
247  alias -g '${1+"$@"}'='"$@"'
248  setopt NO_GLOB_SUBST
249else
250  case `(set -o) 2>/dev/null` in
251  *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260  CONFIG_SHELL=$as_shell
261	       as_have_required=yes
262	       if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264  emulate sh
265  NULLCMD=:
266  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267  # is contrary to our usage.  Disable this feature.
268  alias -g '${1+"$@"}'='"$@"'
269  setopt NO_GLOB_SUBST
270else
271  case `(set -o) 2>/dev/null` in
272  *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280  (exit $1)
281}
282as_func_success () {
283  as_func_return 0
284}
285as_func_failure () {
286  as_func_return 1
287}
288as_func_ret_success () {
289  return 0
290}
291as_func_ret_failure () {
292  return 1
293}
294
295exitcode=0
296if as_func_success; then
297  :
298else
299  exitcode=1
300  echo as_func_success failed.
301fi
302
303if as_func_failure; then
304  exitcode=1
305  echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309  :
310else
311  exitcode=1
312  echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316  exitcode=1
317  echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321  :
322else
323  exitcode=1
324  echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
330  as_lineno_1=$LINENO
331  as_lineno_2=$LINENO
332  test "x$as_lineno_1" != "x$as_lineno_2" &&
333  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337  break
338fi
339
340fi
341
342      done
343
344      if test "x$CONFIG_SHELL" != x; then
345  for as_var in BASH_ENV ENV
346        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347        done
348        export CONFIG_SHELL
349        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353    if test $as_have_required = no; then
354  echo This script requires a shell more modern than all the
355      echo shells that I found on your system.  Please install a
356      echo modern shell, or manually run the script under such a
357      echo shell if you do have one.
358      { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369  (exit \$1)
370}
371as_func_success () {
372  as_func_return 0
373}
374as_func_failure () {
375  as_func_return 1
376}
377as_func_ret_success () {
378  return 0
379}
380as_func_ret_failure () {
381  return 1
382}
383
384exitcode=0
385if as_func_success; then
386  :
387else
388  exitcode=1
389  echo as_func_success failed.
390fi
391
392if as_func_failure; then
393  exitcode=1
394  echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398  :
399else
400  exitcode=1
401  echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405  exitcode=1
406  echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410  :
411else
412  exitcode=1
413  echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417  echo No shell found that supports shell functions.
418  echo Please tell autoconf@gnu.org about your system,
419  echo including any error possibly output before this
420  echo message
421}
422
423
424
425  as_lineno_1=$LINENO
426  as_lineno_2=$LINENO
427  test "x$as_lineno_1" != "x$as_lineno_2" &&
428  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431  # uniformly replaced by the line number.  The first 'sed' inserts a
432  # line-number line after each line using $LINENO; the second 'sed'
433  # does the real work.  The second script uses 'N' to pair each
434  # line-number line with the line containing $LINENO, and appends
435  # trailing '-' during substitution so that $LINENO is not a special
436  # case at line end.
437  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438  # scripts with optimization help from Paolo Bonzini.  Blame Lee
439  # E. McMahon (1931-1989) for sed's syntax.  :-)
440  sed -n '
441    p
442    /[$]LINENO/=
443  ' <$as_myself |
444    sed '
445      s/[$]LINENO.*/&-/
446      t lineno
447      b
448      :lineno
449      N
450      :loop
451      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452      t loop
453      s/-\n.*//
454    ' >$as_me.lineno &&
455  chmod +x "$as_me.lineno" ||
456    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457   { (exit 1); exit 1; }; }
458
459  # Don't try to exec as it changes $[0], causing all sort of problems
460  # (the dirname of $[0] is not the place where we might find the
461  # original and so on.  Autoconf is especially sensitive to this).
462  . "./$as_me.lineno"
463  # Exit status is that of the last command.
464  exit
465}
466
467
468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469  as_dirname=dirname
470else
471  as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477  case `echo 'x\c'` in
478  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
479  *)   ECHO_C='\c';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486   test "X`expr 00001 : '.*\(...\)'`" = X001; then
487  as_expr=expr
488else
489  as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494  rm -f conf$$.dir/conf$$.file
495else
496  rm -f conf$$.dir
497  mkdir conf$$.dir
498fi
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
501  as_ln_s='ln -s'
502  # ... but there are two gotchas:
503  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505  # In both cases, we have to default to `cp -p'.
506  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507    as_ln_s='cp -p'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509  as_ln_s=ln
510else
511  as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
515
516if mkdir -p . 2>/dev/null; then
517  as_mkdir_p=:
518else
519  test -d ./-p && rmdir ./-p
520  as_mkdir_p=false
521fi
522
523if test -x / >/dev/null 2>&1; then
524  as_test_x='test -x'
525else
526  if ls -dL / >/dev/null 2>&1; then
527    as_ls_L_option=L
528  else
529    as_ls_L_option=
530  fi
531  as_test_x='
532    eval sh -c '\''
533      if test -d "$1"; then
534        test -d "$1/.";
535      else
536	case $1 in
537        -*)set "./$1";;
538	esac;
539	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540	???[sx]*):;;*)false;;esac;fi
541    '\'' sh
542  '
543fi
544as_executable_p=$as_test_x
545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554exec 7<&0 </dev/null 6>&1
555
556# Name of the host.
557# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558# so uname gets run too.
559ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561#
562# Initializations.
563#
564ac_default_prefix=/usr/local
565ac_clean_files=
566ac_config_libobj_dir=.
567LIBOBJS=
568cross_compiling=no
569subdirs=
570MFLAGS=
571MAKEFLAGS=
572SHELL=${CONFIG_SHELL-/bin/sh}
573
574# Identity of this package.
575PACKAGE_NAME='jack-smf-utils'
576PACKAGE_TARNAME='jack-smf-utils'
577PACKAGE_VERSION='1.0'
578PACKAGE_STRING='jack-smf-utils 1.0'
579PACKAGE_BUGREPORT='trasz@FreeBSD.org'
580
581ac_unique_file="src/jack-smf-player.c"
582# Factoring default headers for most tests.
583ac_includes_default="\
584#include <stdio.h>
585#ifdef HAVE_SYS_TYPES_H
586# include <sys/types.h>
587#endif
588#ifdef HAVE_SYS_STAT_H
589# include <sys/stat.h>
590#endif
591#ifdef STDC_HEADERS
592# include <stdlib.h>
593# include <stddef.h>
594#else
595# ifdef HAVE_STDLIB_H
596#  include <stdlib.h>
597# endif
598#endif
599#ifdef HAVE_STRING_H
600# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601#  include <memory.h>
602# endif
603# include <string.h>
604#endif
605#ifdef HAVE_STRINGS_H
606# include <strings.h>
607#endif
608#ifdef HAVE_INTTYPES_H
609# include <inttypes.h>
610#endif
611#ifdef HAVE_STDINT_H
612# include <stdint.h>
613#endif
614#ifdef HAVE_UNISTD_H
615# include <unistd.h>
616#endif"
617
618ac_subst_vars='SHELL
619PATH_SEPARATOR
620PACKAGE_NAME
621PACKAGE_TARNAME
622PACKAGE_VERSION
623PACKAGE_STRING
624PACKAGE_BUGREPORT
625exec_prefix
626prefix
627program_transform_name
628bindir
629sbindir
630libexecdir
631datarootdir
632datadir
633sysconfdir
634sharedstatedir
635localstatedir
636includedir
637oldincludedir
638docdir
639infodir
640htmldir
641dvidir
642pdfdir
643psdir
644libdir
645localedir
646mandir
647DEFS
648ECHO_C
649ECHO_N
650ECHO_T
651LIBS
652build_alias
653host_alias
654target_alias
655INSTALL_PROGRAM
656INSTALL_SCRIPT
657INSTALL_DATA
658am__isrc
659CYGPATH_W
660PACKAGE
661VERSION
662ACLOCAL
663AUTOCONF
664AUTOMAKE
665AUTOHEADER
666MAKEINFO
667install_sh
668STRIP
669INSTALL_STRIP_PROGRAM
670mkdir_p
671AWK
672SET_MAKE
673am__leading_dot
674AMTAR
675am__tar
676am__untar
677CC
678CFLAGS
679LDFLAGS
680CPPFLAGS
681ac_ct_CC
682EXEEXT
683OBJEXT
684DEPDIR
685am__include
686am__quote
687AMDEP_TRUE
688AMDEP_FALSE
689AMDEPBACKSLASH
690CCDEPMODE
691am__fastdepCC_TRUE
692am__fastdepCC_FALSE
693RANLIB
694READLINE_LIBS
695CPP
696GREP
697EGREP
698LIBOBJS
699POW_LIB
700PKG_CONFIG
701GLIB_CFLAGS
702GLIB_LIBS
703GTHREAD_CFLAGS
704GTHREAD_LIBS
705JACK_CFLAGS
706JACK_LIBS
707JACK_MIDI_NEEDS_NFRAMES_CFLAGS
708JACK_MIDI_NEEDS_NFRAMES_LIBS
709LASH_CFLAGS
710LASH_LIBS
711LTLIBOBJS'
712ac_subst_files=''
713      ac_precious_vars='build_alias
714host_alias
715target_alias
716CC
717CFLAGS
718LDFLAGS
719LIBS
720CPPFLAGS
721CPP
722PKG_CONFIG
723GLIB_CFLAGS
724GLIB_LIBS
725GTHREAD_CFLAGS
726GTHREAD_LIBS
727JACK_CFLAGS
728JACK_LIBS
729JACK_MIDI_NEEDS_NFRAMES_CFLAGS
730JACK_MIDI_NEEDS_NFRAMES_LIBS
731LASH_CFLAGS
732LASH_LIBS'
733
734
735# Initialize some variables set by options.
736ac_init_help=
737ac_init_version=false
738# The variables have the same names as the options, with
739# dashes changed to underlines.
740cache_file=/dev/null
741exec_prefix=NONE
742no_create=
743no_recursion=
744prefix=NONE
745program_prefix=NONE
746program_suffix=NONE
747program_transform_name=s,x,x,
748silent=
749site=
750srcdir=
751verbose=
752x_includes=NONE
753x_libraries=NONE
754
755# Installation directory options.
756# These are left unexpanded so users can "make install exec_prefix=/foo"
757# and all the variables that are supposed to be based on exec_prefix
758# by default will actually change.
759# Use braces instead of parens because sh, perl, etc. also accept them.
760# (The list follows the same order as the GNU Coding Standards.)
761bindir='${exec_prefix}/bin'
762sbindir='${exec_prefix}/sbin'
763libexecdir='${exec_prefix}/libexec'
764datarootdir='${prefix}/share'
765datadir='${datarootdir}'
766sysconfdir='${prefix}/etc'
767sharedstatedir='${prefix}/com'
768localstatedir='${prefix}/var'
769includedir='${prefix}/include'
770oldincludedir='/usr/include'
771docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
772infodir='${datarootdir}/info'
773htmldir='${docdir}'
774dvidir='${docdir}'
775pdfdir='${docdir}'
776psdir='${docdir}'
777libdir='${exec_prefix}/lib'
778localedir='${datarootdir}/locale'
779mandir='${datarootdir}/man'
780
781ac_prev=
782ac_dashdash=
783for ac_option
784do
785  # If the previous option needs an argument, assign it.
786  if test -n "$ac_prev"; then
787    eval $ac_prev=\$ac_option
788    ac_prev=
789    continue
790  fi
791
792  case $ac_option in
793  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
794  *)	ac_optarg=yes ;;
795  esac
796
797  # Accept the important Cygnus configure options, so we can diagnose typos.
798
799  case $ac_dashdash$ac_option in
800  --)
801    ac_dashdash=yes ;;
802
803  -bindir | --bindir | --bindi | --bind | --bin | --bi)
804    ac_prev=bindir ;;
805  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
806    bindir=$ac_optarg ;;
807
808  -build | --build | --buil | --bui | --bu)
809    ac_prev=build_alias ;;
810  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
811    build_alias=$ac_optarg ;;
812
813  -cache-file | --cache-file | --cache-fil | --cache-fi \
814  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
815    ac_prev=cache_file ;;
816  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
817  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
818    cache_file=$ac_optarg ;;
819
820  --config-cache | -C)
821    cache_file=config.cache ;;
822
823  -datadir | --datadir | --datadi | --datad)
824    ac_prev=datadir ;;
825  -datadir=* | --datadir=* | --datadi=* | --datad=*)
826    datadir=$ac_optarg ;;
827
828  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
829  | --dataroo | --dataro | --datar)
830    ac_prev=datarootdir ;;
831  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
832  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
833    datarootdir=$ac_optarg ;;
834
835  -disable-* | --disable-*)
836    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
837    # Reject names that are not valid shell variable names.
838    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
839      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
840   { (exit 1); exit 1; }; }
841    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
842    eval enable_$ac_feature=no ;;
843
844  -docdir | --docdir | --docdi | --doc | --do)
845    ac_prev=docdir ;;
846  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
847    docdir=$ac_optarg ;;
848
849  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
850    ac_prev=dvidir ;;
851  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
852    dvidir=$ac_optarg ;;
853
854  -enable-* | --enable-*)
855    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
856    # Reject names that are not valid shell variable names.
857    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
858      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
859   { (exit 1); exit 1; }; }
860    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
861    eval enable_$ac_feature=\$ac_optarg ;;
862
863  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
864  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
865  | --exec | --exe | --ex)
866    ac_prev=exec_prefix ;;
867  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
868  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
869  | --exec=* | --exe=* | --ex=*)
870    exec_prefix=$ac_optarg ;;
871
872  -gas | --gas | --ga | --g)
873    # Obsolete; use --with-gas.
874    with_gas=yes ;;
875
876  -help | --help | --hel | --he | -h)
877    ac_init_help=long ;;
878  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
879    ac_init_help=recursive ;;
880  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
881    ac_init_help=short ;;
882
883  -host | --host | --hos | --ho)
884    ac_prev=host_alias ;;
885  -host=* | --host=* | --hos=* | --ho=*)
886    host_alias=$ac_optarg ;;
887
888  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
889    ac_prev=htmldir ;;
890  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
891  | --ht=*)
892    htmldir=$ac_optarg ;;
893
894  -includedir | --includedir | --includedi | --included | --include \
895  | --includ | --inclu | --incl | --inc)
896    ac_prev=includedir ;;
897  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
898  | --includ=* | --inclu=* | --incl=* | --inc=*)
899    includedir=$ac_optarg ;;
900
901  -infodir | --infodir | --infodi | --infod | --info | --inf)
902    ac_prev=infodir ;;
903  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
904    infodir=$ac_optarg ;;
905
906  -libdir | --libdir | --libdi | --libd)
907    ac_prev=libdir ;;
908  -libdir=* | --libdir=* | --libdi=* | --libd=*)
909    libdir=$ac_optarg ;;
910
911  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
912  | --libexe | --libex | --libe)
913    ac_prev=libexecdir ;;
914  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
915  | --libexe=* | --libex=* | --libe=*)
916    libexecdir=$ac_optarg ;;
917
918  -localedir | --localedir | --localedi | --localed | --locale)
919    ac_prev=localedir ;;
920  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
921    localedir=$ac_optarg ;;
922
923  -localstatedir | --localstatedir | --localstatedi | --localstated \
924  | --localstate | --localstat | --localsta | --localst | --locals)
925    ac_prev=localstatedir ;;
926  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
927  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
928    localstatedir=$ac_optarg ;;
929
930  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
931    ac_prev=mandir ;;
932  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
933    mandir=$ac_optarg ;;
934
935  -nfp | --nfp | --nf)
936    # Obsolete; use --without-fp.
937    with_fp=no ;;
938
939  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
940  | --no-cr | --no-c | -n)
941    no_create=yes ;;
942
943  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
944  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
945    no_recursion=yes ;;
946
947  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
948  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
949  | --oldin | --oldi | --old | --ol | --o)
950    ac_prev=oldincludedir ;;
951  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
952  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
953  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
954    oldincludedir=$ac_optarg ;;
955
956  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
957    ac_prev=prefix ;;
958  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
959    prefix=$ac_optarg ;;
960
961  -program-prefix | --program-prefix | --program-prefi | --program-pref \
962  | --program-pre | --program-pr | --program-p)
963    ac_prev=program_prefix ;;
964  -program-prefix=* | --program-prefix=* | --program-prefi=* \
965  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
966    program_prefix=$ac_optarg ;;
967
968  -program-suffix | --program-suffix | --program-suffi | --program-suff \
969  | --program-suf | --program-su | --program-s)
970    ac_prev=program_suffix ;;
971  -program-suffix=* | --program-suffix=* | --program-suffi=* \
972  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
973    program_suffix=$ac_optarg ;;
974
975  -program-transform-name | --program-transform-name \
976  | --program-transform-nam | --program-transform-na \
977  | --program-transform-n | --program-transform- \
978  | --program-transform | --program-transfor \
979  | --program-transfo | --program-transf \
980  | --program-trans | --program-tran \
981  | --progr-tra | --program-tr | --program-t)
982    ac_prev=program_transform_name ;;
983  -program-transform-name=* | --program-transform-name=* \
984  | --program-transform-nam=* | --program-transform-na=* \
985  | --program-transform-n=* | --program-transform-=* \
986  | --program-transform=* | --program-transfor=* \
987  | --program-transfo=* | --program-transf=* \
988  | --program-trans=* | --program-tran=* \
989  | --progr-tra=* | --program-tr=* | --program-t=*)
990    program_transform_name=$ac_optarg ;;
991
992  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
993    ac_prev=pdfdir ;;
994  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
995    pdfdir=$ac_optarg ;;
996
997  -psdir | --psdir | --psdi | --psd | --ps)
998    ac_prev=psdir ;;
999  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1000    psdir=$ac_optarg ;;
1001
1002  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1003  | -silent | --silent | --silen | --sile | --sil)
1004    silent=yes ;;
1005
1006  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1007    ac_prev=sbindir ;;
1008  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1009  | --sbi=* | --sb=*)
1010    sbindir=$ac_optarg ;;
1011
1012  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1013  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1014  | --sharedst | --shareds | --shared | --share | --shar \
1015  | --sha | --sh)
1016    ac_prev=sharedstatedir ;;
1017  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1018  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1019  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1020  | --sha=* | --sh=*)
1021    sharedstatedir=$ac_optarg ;;
1022
1023  -site | --site | --sit)
1024    ac_prev=site ;;
1025  -site=* | --site=* | --sit=*)
1026    site=$ac_optarg ;;
1027
1028  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1029    ac_prev=srcdir ;;
1030  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1031    srcdir=$ac_optarg ;;
1032
1033  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1034  | --syscon | --sysco | --sysc | --sys | --sy)
1035    ac_prev=sysconfdir ;;
1036  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1037  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1038    sysconfdir=$ac_optarg ;;
1039
1040  -target | --target | --targe | --targ | --tar | --ta | --t)
1041    ac_prev=target_alias ;;
1042  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1043    target_alias=$ac_optarg ;;
1044
1045  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1046    verbose=yes ;;
1047
1048  -version | --version | --versio | --versi | --vers | -V)
1049    ac_init_version=: ;;
1050
1051  -with-* | --with-*)
1052    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1053    # Reject names that are not valid shell variable names.
1054    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1055      { echo "$as_me: error: invalid package name: $ac_package" >&2
1056   { (exit 1); exit 1; }; }
1057    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1058    eval with_$ac_package=\$ac_optarg ;;
1059
1060  -without-* | --without-*)
1061    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1062    # Reject names that are not valid shell variable names.
1063    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1064      { echo "$as_me: error: invalid package name: $ac_package" >&2
1065   { (exit 1); exit 1; }; }
1066    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1067    eval with_$ac_package=no ;;
1068
1069  --x)
1070    # Obsolete; use --with-x.
1071    with_x=yes ;;
1072
1073  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1074  | --x-incl | --x-inc | --x-in | --x-i)
1075    ac_prev=x_includes ;;
1076  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1077  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1078    x_includes=$ac_optarg ;;
1079
1080  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1081  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1082    ac_prev=x_libraries ;;
1083  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1084  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1085    x_libraries=$ac_optarg ;;
1086
1087  -*) { echo "$as_me: error: unrecognized option: $ac_option
1088Try \`$0 --help' for more information." >&2
1089   { (exit 1); exit 1; }; }
1090    ;;
1091
1092  *=*)
1093    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1094    # Reject names that are not valid shell variable names.
1095    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1096      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1097   { (exit 1); exit 1; }; }
1098    eval $ac_envvar=\$ac_optarg
1099    export $ac_envvar ;;
1100
1101  *)
1102    # FIXME: should be removed in autoconf 3.0.
1103    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1104    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1105      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1106    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1107    ;;
1108
1109  esac
1110done
1111
1112if test -n "$ac_prev"; then
1113  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1114  { echo "$as_me: error: missing argument to $ac_option" >&2
1115   { (exit 1); exit 1; }; }
1116fi
1117
1118# Be sure to have absolute directory names.
1119for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1120		datadir sysconfdir sharedstatedir localstatedir includedir \
1121		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1122		libdir localedir mandir
1123do
1124  eval ac_val=\$$ac_var
1125  case $ac_val in
1126    [\\/$]* | ?:[\\/]* )  continue;;
1127    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1128  esac
1129  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1130   { (exit 1); exit 1; }; }
1131done
1132
1133# There might be people who depend on the old broken behavior: `$host'
1134# used to hold the argument of --host etc.
1135# FIXME: To remove some day.
1136build=$build_alias
1137host=$host_alias
1138target=$target_alias
1139
1140# FIXME: To remove some day.
1141if test "x$host_alias" != x; then
1142  if test "x$build_alias" = x; then
1143    cross_compiling=maybe
1144    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1145    If a cross compiler is detected then cross compile mode will be used." >&2
1146  elif test "x$build_alias" != "x$host_alias"; then
1147    cross_compiling=yes
1148  fi
1149fi
1150
1151ac_tool_prefix=
1152test -n "$host_alias" && ac_tool_prefix=$host_alias-
1153
1154test "$silent" = yes && exec 6>/dev/null
1155
1156
1157ac_pwd=`pwd` && test -n "$ac_pwd" &&
1158ac_ls_di=`ls -di .` &&
1159ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1160  { echo "$as_me: error: Working directory cannot be determined" >&2
1161   { (exit 1); exit 1; }; }
1162test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1163  { echo "$as_me: error: pwd does not report name of working directory" >&2
1164   { (exit 1); exit 1; }; }
1165
1166
1167# Find the source files, if location was not specified.
1168if test -z "$srcdir"; then
1169  ac_srcdir_defaulted=yes
1170  # Try the directory containing this script, then the parent directory.
1171  ac_confdir=`$as_dirname -- "$0" ||
1172$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1173	 X"$0" : 'X\(//\)[^/]' \| \
1174	 X"$0" : 'X\(//\)$' \| \
1175	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1176echo X"$0" |
1177    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1178	    s//\1/
1179	    q
1180	  }
1181	  /^X\(\/\/\)[^/].*/{
1182	    s//\1/
1183	    q
1184	  }
1185	  /^X\(\/\/\)$/{
1186	    s//\1/
1187	    q
1188	  }
1189	  /^X\(\/\).*/{
1190	    s//\1/
1191	    q
1192	  }
1193	  s/.*/./; q'`
1194  srcdir=$ac_confdir
1195  if test ! -r "$srcdir/$ac_unique_file"; then
1196    srcdir=..
1197  fi
1198else
1199  ac_srcdir_defaulted=no
1200fi
1201if test ! -r "$srcdir/$ac_unique_file"; then
1202  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1203  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1204   { (exit 1); exit 1; }; }
1205fi
1206ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1207ac_abs_confdir=`(
1208	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1209   { (exit 1); exit 1; }; }
1210	pwd)`
1211# When building in place, set srcdir=.
1212if test "$ac_abs_confdir" = "$ac_pwd"; then
1213  srcdir=.
1214fi
1215# Remove unnecessary trailing slashes from srcdir.
1216# Double slashes in file names in object file debugging info
1217# mess up M-x gdb in Emacs.
1218case $srcdir in
1219*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1220esac
1221for ac_var in $ac_precious_vars; do
1222  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1223  eval ac_env_${ac_var}_value=\$${ac_var}
1224  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1225  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1226done
1227
1228#
1229# Report the --help message.
1230#
1231if test "$ac_init_help" = "long"; then
1232  # Omit some internal or obsolete options to make the list less imposing.
1233  # This message is too long to be a string in the A/UX 3.1 sh.
1234  cat <<_ACEOF
1235\`configure' configures jack-smf-utils 1.0 to adapt to many kinds of systems.
1236
1237Usage: $0 [OPTION]... [VAR=VALUE]...
1238
1239To assign environment variables (e.g., CC, CFLAGS...), specify them as
1240VAR=VALUE.  See below for descriptions of some of the useful variables.
1241
1242Defaults for the options are specified in brackets.
1243
1244Configuration:
1245  -h, --help              display this help and exit
1246      --help=short        display options specific to this package
1247      --help=recursive    display the short help of all the included packages
1248  -V, --version           display version information and exit
1249  -q, --quiet, --silent   do not print \`checking...' messages
1250      --cache-file=FILE   cache test results in FILE [disabled]
1251  -C, --config-cache      alias for \`--cache-file=config.cache'
1252  -n, --no-create         do not create output files
1253      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1254
1255Installation directories:
1256  --prefix=PREFIX         install architecture-independent files in PREFIX
1257			  [$ac_default_prefix]
1258  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1259			  [PREFIX]
1260
1261By default, \`make install' will install all the files in
1262\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1263an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1264for instance \`--prefix=\$HOME'.
1265
1266For better control, use the options below.
1267
1268Fine tuning of the installation directories:
1269  --bindir=DIR           user executables [EPREFIX/bin]
1270  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1271  --libexecdir=DIR       program executables [EPREFIX/libexec]
1272  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1273  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1274  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1275  --libdir=DIR           object code libraries [EPREFIX/lib]
1276  --includedir=DIR       C header files [PREFIX/include]
1277  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1278  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1279  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1280  --infodir=DIR          info documentation [DATAROOTDIR/info]
1281  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1282  --mandir=DIR           man documentation [DATAROOTDIR/man]
1283  --docdir=DIR           documentation root [DATAROOTDIR/doc/jack-smf-utils]
1284  --htmldir=DIR          html documentation [DOCDIR]
1285  --dvidir=DIR           dvi documentation [DOCDIR]
1286  --pdfdir=DIR           pdf documentation [DOCDIR]
1287  --psdir=DIR            ps documentation [DOCDIR]
1288_ACEOF
1289
1290  cat <<\_ACEOF
1291
1292Program names:
1293  --program-prefix=PREFIX            prepend PREFIX to installed program names
1294  --program-suffix=SUFFIX            append SUFFIX to installed program names
1295  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1296_ACEOF
1297fi
1298
1299if test -n "$ac_init_help"; then
1300  case $ac_init_help in
1301     short | recursive ) echo "Configuration of jack-smf-utils 1.0:";;
1302   esac
1303  cat <<\_ACEOF
1304
1305Optional Features:
1306  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1307  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1308  --disable-dependency-tracking  speeds up one-time build
1309  --enable-dependency-tracking   do not reject slow dependency extractors
1310
1311Optional Packages:
1312  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1313  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1314  --with-readline         support fancy command line editing [default=check]
1315  --with-lash             support LASH [default=check]
1316
1317Some influential environment variables:
1318  CC          C compiler command
1319  CFLAGS      C compiler flags
1320  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1321              nonstandard directory <lib dir>
1322  LIBS        libraries to pass to the linker, e.g. -l<library>
1323  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1324              you have headers in a nonstandard directory <include dir>
1325  CPP         C preprocessor
1326  PKG_CONFIG  path to pkg-config utility
1327  GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1328  GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1329  GTHREAD_CFLAGS
1330              C compiler flags for GTHREAD, overriding pkg-config
1331  GTHREAD_LIBS
1332              linker flags for GTHREAD, overriding pkg-config
1333  JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
1334  JACK_LIBS   linker flags for JACK, overriding pkg-config
1335  JACK_MIDI_NEEDS_NFRAMES_CFLAGS
1336              C compiler flags for JACK_MIDI_NEEDS_NFRAMES, overriding
1337              pkg-config
1338  JACK_MIDI_NEEDS_NFRAMES_LIBS
1339              linker flags for JACK_MIDI_NEEDS_NFRAMES, overriding pkg-config
1340  LASH_CFLAGS C compiler flags for LASH, overriding pkg-config
1341  LASH_LIBS   linker flags for LASH, overriding pkg-config
1342
1343Use these variables to override the choices made by `configure' or to help
1344it to find libraries and programs with nonstandard names/locations.
1345
1346Report bugs to <trasz@FreeBSD.org>.
1347_ACEOF
1348ac_status=$?
1349fi
1350
1351if test "$ac_init_help" = "recursive"; then
1352  # If there are subdirs, report their specific --help.
1353  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1354    test -d "$ac_dir" || continue
1355    ac_builddir=.
1356
1357case "$ac_dir" in
1358.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1359*)
1360  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1361  # A ".." for each directory in $ac_dir_suffix.
1362  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1363  case $ac_top_builddir_sub in
1364  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1365  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1366  esac ;;
1367esac
1368ac_abs_top_builddir=$ac_pwd
1369ac_abs_builddir=$ac_pwd$ac_dir_suffix
1370# for backward compatibility:
1371ac_top_builddir=$ac_top_build_prefix
1372
1373case $srcdir in
1374  .)  # We are building in place.
1375    ac_srcdir=.
1376    ac_top_srcdir=$ac_top_builddir_sub
1377    ac_abs_top_srcdir=$ac_pwd ;;
1378  [\\/]* | ?:[\\/]* )  # Absolute name.
1379    ac_srcdir=$srcdir$ac_dir_suffix;
1380    ac_top_srcdir=$srcdir
1381    ac_abs_top_srcdir=$srcdir ;;
1382  *) # Relative name.
1383    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1384    ac_top_srcdir=$ac_top_build_prefix$srcdir
1385    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1386esac
1387ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1388
1389    cd "$ac_dir" || { ac_status=$?; continue; }
1390    # Check for guested configure.
1391    if test -f "$ac_srcdir/configure.gnu"; then
1392      echo &&
1393      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1394    elif test -f "$ac_srcdir/configure"; then
1395      echo &&
1396      $SHELL "$ac_srcdir/configure" --help=recursive
1397    else
1398      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1399    fi || ac_status=$?
1400    cd "$ac_pwd" || { ac_status=$?; break; }
1401  done
1402fi
1403
1404test -n "$ac_init_help" && exit $ac_status
1405if $ac_init_version; then
1406  cat <<\_ACEOF
1407jack-smf-utils configure 1.0
1408generated by GNU Autoconf 2.61
1409
1410Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14112002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1412This configure script is free software; the Free Software Foundation
1413gives unlimited permission to copy, distribute and modify it.
1414_ACEOF
1415  exit
1416fi
1417cat >config.log <<_ACEOF
1418This file contains any messages produced by compilers while
1419running configure, to aid debugging if configure makes a mistake.
1420
1421It was created by jack-smf-utils $as_me 1.0, which was
1422generated by GNU Autoconf 2.61.  Invocation command line was
1423
1424  $ $0 $@
1425
1426_ACEOF
1427exec 5>>config.log
1428{
1429cat <<_ASUNAME
1430## --------- ##
1431## Platform. ##
1432## --------- ##
1433
1434hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1435uname -m = `(uname -m) 2>/dev/null || echo unknown`
1436uname -r = `(uname -r) 2>/dev/null || echo unknown`
1437uname -s = `(uname -s) 2>/dev/null || echo unknown`
1438uname -v = `(uname -v) 2>/dev/null || echo unknown`
1439
1440/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1441/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1442
1443/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1444/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1445/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1446/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1447/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1448/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1449/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1450
1451_ASUNAME
1452
1453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1454for as_dir in $PATH
1455do
1456  IFS=$as_save_IFS
1457  test -z "$as_dir" && as_dir=.
1458  echo "PATH: $as_dir"
1459done
1460IFS=$as_save_IFS
1461
1462} >&5
1463
1464cat >&5 <<_ACEOF
1465
1466
1467## ----------- ##
1468## Core tests. ##
1469## ----------- ##
1470
1471_ACEOF
1472
1473
1474# Keep a trace of the command line.
1475# Strip out --no-create and --no-recursion so they do not pile up.
1476# Strip out --silent because we don't want to record it for future runs.
1477# Also quote any args containing shell meta-characters.
1478# Make two passes to allow for proper duplicate-argument suppression.
1479ac_configure_args=
1480ac_configure_args0=
1481ac_configure_args1=
1482ac_must_keep_next=false
1483for ac_pass in 1 2
1484do
1485  for ac_arg
1486  do
1487    case $ac_arg in
1488    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1489    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1490    | -silent | --silent | --silen | --sile | --sil)
1491      continue ;;
1492    *\'*)
1493      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1494    esac
1495    case $ac_pass in
1496    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1497    2)
1498      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1499      if test $ac_must_keep_next = true; then
1500	ac_must_keep_next=false # Got value, back to normal.
1501      else
1502	case $ac_arg in
1503	  *=* | --config-cache | -C | -disable-* | --disable-* \
1504	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1505	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1506	  | -with-* | --with-* | -without-* | --without-* | --x)
1507	    case "$ac_configure_args0 " in
1508	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1509	    esac
1510	    ;;
1511	  -* ) ac_must_keep_next=true ;;
1512	esac
1513      fi
1514      ac_configure_args="$ac_configure_args '$ac_arg'"
1515      ;;
1516    esac
1517  done
1518done
1519$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1520$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1521
1522# When interrupted or exit'd, cleanup temporary files, and complete
1523# config.log.  We remove comments because anyway the quotes in there
1524# would cause problems or look ugly.
1525# WARNING: Use '\'' to represent an apostrophe within the trap.
1526# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1527trap 'exit_status=$?
1528  # Save into config.log some information that might help in debugging.
1529  {
1530    echo
1531
1532    cat <<\_ASBOX
1533## ---------------- ##
1534## Cache variables. ##
1535## ---------------- ##
1536_ASBOX
1537    echo
1538    # The following way of writing the cache mishandles newlines in values,
1539(
1540  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1541    eval ac_val=\$$ac_var
1542    case $ac_val in #(
1543    *${as_nl}*)
1544      case $ac_var in #(
1545      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1546echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1547      esac
1548      case $ac_var in #(
1549      _ | IFS | as_nl) ;; #(
1550      *) $as_unset $ac_var ;;
1551      esac ;;
1552    esac
1553  done
1554  (set) 2>&1 |
1555    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1556    *${as_nl}ac_space=\ *)
1557      sed -n \
1558	"s/'\''/'\''\\\\'\'''\''/g;
1559	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1560      ;; #(
1561    *)
1562      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1563      ;;
1564    esac |
1565    sort
1566)
1567    echo
1568
1569    cat <<\_ASBOX
1570## ----------------- ##
1571## Output variables. ##
1572## ----------------- ##
1573_ASBOX
1574    echo
1575    for ac_var in $ac_subst_vars
1576    do
1577      eval ac_val=\$$ac_var
1578      case $ac_val in
1579      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1580      esac
1581      echo "$ac_var='\''$ac_val'\''"
1582    done | sort
1583    echo
1584
1585    if test -n "$ac_subst_files"; then
1586      cat <<\_ASBOX
1587## ------------------- ##
1588## File substitutions. ##
1589## ------------------- ##
1590_ASBOX
1591      echo
1592      for ac_var in $ac_subst_files
1593      do
1594	eval ac_val=\$$ac_var
1595	case $ac_val in
1596	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1597	esac
1598	echo "$ac_var='\''$ac_val'\''"
1599      done | sort
1600      echo
1601    fi
1602
1603    if test -s confdefs.h; then
1604      cat <<\_ASBOX
1605## ----------- ##
1606## confdefs.h. ##
1607## ----------- ##
1608_ASBOX
1609      echo
1610      cat confdefs.h
1611      echo
1612    fi
1613    test "$ac_signal" != 0 &&
1614      echo "$as_me: caught signal $ac_signal"
1615    echo "$as_me: exit $exit_status"
1616  } >&5
1617  rm -f core *.core core.conftest.* &&
1618    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1619    exit $exit_status
1620' 0
1621for ac_signal in 1 2 13 15; do
1622  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1623done
1624ac_signal=0
1625
1626# confdefs.h avoids OS command line length limits that DEFS can exceed.
1627rm -f -r conftest* confdefs.h
1628
1629# Predefined preprocessor variables.
1630
1631cat >>confdefs.h <<_ACEOF
1632#define PACKAGE_NAME "$PACKAGE_NAME"
1633_ACEOF
1634
1635
1636cat >>confdefs.h <<_ACEOF
1637#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1638_ACEOF
1639
1640
1641cat >>confdefs.h <<_ACEOF
1642#define PACKAGE_VERSION "$PACKAGE_VERSION"
1643_ACEOF
1644
1645
1646cat >>confdefs.h <<_ACEOF
1647#define PACKAGE_STRING "$PACKAGE_STRING"
1648_ACEOF
1649
1650
1651cat >>confdefs.h <<_ACEOF
1652#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1653_ACEOF
1654
1655
1656# Let the site file select an alternate cache file if it wants to.
1657# Prefer explicitly selected file to automatically selected ones.
1658if test -n "$CONFIG_SITE"; then
1659  set x "$CONFIG_SITE"
1660elif test "x$prefix" != xNONE; then
1661  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1662else
1663  set x "$ac_default_prefix/share/config.site" \
1664	"$ac_default_prefix/etc/config.site"
1665fi
1666shift
1667for ac_site_file
1668do
1669  if test -r "$ac_site_file"; then
1670    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1671echo "$as_me: loading site script $ac_site_file" >&6;}
1672    sed 's/^/| /' "$ac_site_file" >&5
1673    . "$ac_site_file"
1674  fi
1675done
1676
1677if test -r "$cache_file"; then
1678  # Some versions of bash will fail to source /dev/null (special
1679  # files actually), so we avoid doing that.
1680  if test -f "$cache_file"; then
1681    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1682echo "$as_me: loading cache $cache_file" >&6;}
1683    case $cache_file in
1684      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1685      *)                      . "./$cache_file";;
1686    esac
1687  fi
1688else
1689  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1690echo "$as_me: creating cache $cache_file" >&6;}
1691  >$cache_file
1692fi
1693
1694# Check that the precious variables saved in the cache have kept the same
1695# value.
1696ac_cache_corrupted=false
1697for ac_var in $ac_precious_vars; do
1698  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1699  eval ac_new_set=\$ac_env_${ac_var}_set
1700  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1701  eval ac_new_val=\$ac_env_${ac_var}_value
1702  case $ac_old_set,$ac_new_set in
1703    set,)
1704      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1705echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1706      ac_cache_corrupted=: ;;
1707    ,set)
1708      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1709echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1710      ac_cache_corrupted=: ;;
1711    ,);;
1712    *)
1713      if test "x$ac_old_val" != "x$ac_new_val"; then
1714	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1715echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1716	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1717echo "$as_me:   former value:  $ac_old_val" >&2;}
1718	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1719echo "$as_me:   current value: $ac_new_val" >&2;}
1720	ac_cache_corrupted=:
1721      fi;;
1722  esac
1723  # Pass precious variables to config.status.
1724  if test "$ac_new_set" = set; then
1725    case $ac_new_val in
1726    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1727    *) ac_arg=$ac_var=$ac_new_val ;;
1728    esac
1729    case " $ac_configure_args " in
1730      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1731      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1732    esac
1733  fi
1734done
1735if $ac_cache_corrupted; then
1736  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1737echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1738  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1739echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1740   { (exit 1); exit 1; }; }
1741fi
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767ac_ext=c
1768ac_cpp='$CPP $CPPFLAGS'
1769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1771ac_compiler_gnu=$ac_cv_c_compiler_gnu
1772
1773
1774am__api_version='1.10'
1775
1776ac_aux_dir=
1777for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1778  if test -f "$ac_dir/install-sh"; then
1779    ac_aux_dir=$ac_dir
1780    ac_install_sh="$ac_aux_dir/install-sh -c"
1781    break
1782  elif test -f "$ac_dir/install.sh"; then
1783    ac_aux_dir=$ac_dir
1784    ac_install_sh="$ac_aux_dir/install.sh -c"
1785    break
1786  elif test -f "$ac_dir/shtool"; then
1787    ac_aux_dir=$ac_dir
1788    ac_install_sh="$ac_aux_dir/shtool install -c"
1789    break
1790  fi
1791done
1792if test -z "$ac_aux_dir"; then
1793  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1794echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1795   { (exit 1); exit 1; }; }
1796fi
1797
1798# These three variables are undocumented and unsupported,
1799# and are intended to be withdrawn in a future Autoconf release.
1800# They can cause serious problems if a builder's source tree is in a directory
1801# whose full name contains unusual characters.
1802ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1803ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1804ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1805
1806
1807# Find a good install program.  We prefer a C program (faster),
1808# so one script is as good as another.  But avoid the broken or
1809# incompatible versions:
1810# SysV /etc/install, /usr/sbin/install
1811# SunOS /usr/etc/install
1812# IRIX /sbin/install
1813# AIX /bin/install
1814# AmigaOS /C/install, which installs bootblocks on floppy discs
1815# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1816# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1817# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1818# OS/2's system install, which has a completely different semantic
1819# ./install, which can be erroneously created by make from ./install.sh.
1820{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1821echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1822if test -z "$INSTALL"; then
1823if test "${ac_cv_path_install+set}" = set; then
1824  echo $ECHO_N "(cached) $ECHO_C" >&6
1825else
1826  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827for as_dir in $PATH
1828do
1829  IFS=$as_save_IFS
1830  test -z "$as_dir" && as_dir=.
1831  # Account for people who put trailing slashes in PATH elements.
1832case $as_dir/ in
1833  ./ | .// | /cC/* | \
1834  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1835  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1836  /usr/ucb/* ) ;;
1837  *)
1838    # OSF1 and SCO ODT 3.0 have their own names for install.
1839    # Don't use installbsd from OSF since it installs stuff as root
1840    # by default.
1841    for ac_prog in ginstall scoinst install; do
1842      for ac_exec_ext in '' $ac_executable_extensions; do
1843	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1844	  if test $ac_prog = install &&
1845	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1846	    # AIX install.  It has an incompatible calling convention.
1847	    :
1848	  elif test $ac_prog = install &&
1849	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1850	    # program-specific install script used by HP pwplus--don't use.
1851	    :
1852	  else
1853	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1854	    break 3
1855	  fi
1856	fi
1857      done
1858    done
1859    ;;
1860esac
1861done
1862IFS=$as_save_IFS
1863
1864
1865fi
1866  if test "${ac_cv_path_install+set}" = set; then
1867    INSTALL=$ac_cv_path_install
1868  else
1869    # As a last resort, use the slow shell script.  Don't cache a
1870    # value for INSTALL within a source directory, because that will
1871    # break other packages using the cache if that directory is
1872    # removed, or if the value is a relative name.
1873    INSTALL=$ac_install_sh
1874  fi
1875fi
1876{ echo "$as_me:$LINENO: result: $INSTALL" >&5
1877echo "${ECHO_T}$INSTALL" >&6; }
1878
1879# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1880# It thinks the first close brace ends the variable substitution.
1881test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1882
1883test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1884
1885test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1886
1887{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1888echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1889# Just in case
1890sleep 1
1891echo timestamp > conftest.file
1892# Do `set' in a subshell so we don't clobber the current shell's
1893# arguments.  Must try -L first in case configure is actually a
1894# symlink; some systems play weird games with the mod time of symlinks
1895# (eg FreeBSD returns the mod time of the symlink's containing
1896# directory).
1897if (
1898   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1899   if test "$*" = "X"; then
1900      # -L didn't work.
1901      set X `ls -t $srcdir/configure conftest.file`
1902   fi
1903   rm -f conftest.file
1904   if test "$*" != "X $srcdir/configure conftest.file" \
1905      && test "$*" != "X conftest.file $srcdir/configure"; then
1906
1907      # If neither matched, then we have a broken ls.  This can happen
1908      # if, for instance, CONFIG_SHELL is bash and it inherits a
1909      # broken ls alias from the environment.  This has actually
1910      # happened.  Such a system could not be considered "sane".
1911      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1912alias in your environment" >&5
1913echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1914alias in your environment" >&2;}
1915   { (exit 1); exit 1; }; }
1916   fi
1917
1918   test "$2" = conftest.file
1919   )
1920then
1921   # Ok.
1922   :
1923else
1924   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1925Check your system clock" >&5
1926echo "$as_me: error: newly created file is older than distributed files!
1927Check your system clock" >&2;}
1928   { (exit 1); exit 1; }; }
1929fi
1930{ echo "$as_me:$LINENO: result: yes" >&5
1931echo "${ECHO_T}yes" >&6; }
1932test "$program_prefix" != NONE &&
1933  program_transform_name="s&^&$program_prefix&;$program_transform_name"
1934# Use a double $ so make ignores it.
1935test "$program_suffix" != NONE &&
1936  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1937# Double any \ or $.  echo might interpret backslashes.
1938# By default was `s,x,x', remove it if useless.
1939cat <<\_ACEOF >conftest.sed
1940s/[\\$]/&&/g;s/;s,x,x,$//
1941_ACEOF
1942program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1943rm -f conftest.sed
1944
1945# expand $ac_aux_dir to an absolute path
1946am_aux_dir=`cd $ac_aux_dir && pwd`
1947
1948test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1949# Use eval to expand $SHELL
1950if eval "$MISSING --run true"; then
1951  am_missing_run="$MISSING --run "
1952else
1953  am_missing_run=
1954  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1955echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1956fi
1957
1958{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
1959echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
1960if test -z "$MKDIR_P"; then
1961  if test "${ac_cv_path_mkdir+set}" = set; then
1962  echo $ECHO_N "(cached) $ECHO_C" >&6
1963else
1964  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1966do
1967  IFS=$as_save_IFS
1968  test -z "$as_dir" && as_dir=.
1969  for ac_prog in mkdir gmkdir; do
1970	 for ac_exec_ext in '' $ac_executable_extensions; do
1971	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
1972	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
1973	     'mkdir (GNU coreutils) '* | \
1974	     'mkdir (coreutils) '* | \
1975	     'mkdir (fileutils) '4.1*)
1976	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
1977	       break 3;;
1978	   esac
1979	 done
1980       done
1981done
1982IFS=$as_save_IFS
1983
1984fi
1985
1986  if test "${ac_cv_path_mkdir+set}" = set; then
1987    MKDIR_P="$ac_cv_path_mkdir -p"
1988  else
1989    # As a last resort, use the slow shell script.  Don't cache a
1990    # value for MKDIR_P within a source directory, because that will
1991    # break other packages using the cache if that directory is
1992    # removed, or if the value is a relative name.
1993    test -d ./--version && rmdir ./--version
1994    MKDIR_P="$ac_install_sh -d"
1995  fi
1996fi
1997{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
1998echo "${ECHO_T}$MKDIR_P" >&6; }
1999
2000mkdir_p="$MKDIR_P"
2001case $mkdir_p in
2002  [\\/$]* | ?:[\\/]*) ;;
2003  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2004esac
2005
2006for ac_prog in gawk mawk nawk awk
2007do
2008  # Extract the first word of "$ac_prog", so it can be a program name with args.
2009set dummy $ac_prog; ac_word=$2
2010{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2012if test "${ac_cv_prog_AWK+set}" = set; then
2013  echo $ECHO_N "(cached) $ECHO_C" >&6
2014else
2015  if test -n "$AWK"; then
2016  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2017else
2018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019for as_dir in $PATH
2020do
2021  IFS=$as_save_IFS
2022  test -z "$as_dir" && as_dir=.
2023  for ac_exec_ext in '' $ac_executable_extensions; do
2024  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2025    ac_cv_prog_AWK="$ac_prog"
2026    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027    break 2
2028  fi
2029done
2030done
2031IFS=$as_save_IFS
2032
2033fi
2034fi
2035AWK=$ac_cv_prog_AWK
2036if test -n "$AWK"; then
2037  { echo "$as_me:$LINENO: result: $AWK" >&5
2038echo "${ECHO_T}$AWK" >&6; }
2039else
2040  { echo "$as_me:$LINENO: result: no" >&5
2041echo "${ECHO_T}no" >&6; }
2042fi
2043
2044
2045  test -n "$AWK" && break
2046done
2047
2048{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2049echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2050set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2051if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2052  echo $ECHO_N "(cached) $ECHO_C" >&6
2053else
2054  cat >conftest.make <<\_ACEOF
2055SHELL = /bin/sh
2056all:
2057	@echo '@@@%%%=$(MAKE)=@@@%%%'
2058_ACEOF
2059# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2060case `${MAKE-make} -f conftest.make 2>/dev/null` in
2061  *@@@%%%=?*=@@@%%%*)
2062    eval ac_cv_prog_make_${ac_make}_set=yes;;
2063  *)
2064    eval ac_cv_prog_make_${ac_make}_set=no;;
2065esac
2066rm -f conftest.make
2067fi
2068if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2069  { echo "$as_me:$LINENO: result: yes" >&5
2070echo "${ECHO_T}yes" >&6; }
2071  SET_MAKE=
2072else
2073  { echo "$as_me:$LINENO: result: no" >&5
2074echo "${ECHO_T}no" >&6; }
2075  SET_MAKE="MAKE=${MAKE-make}"
2076fi
2077
2078rm -rf .tst 2>/dev/null
2079mkdir .tst 2>/dev/null
2080if test -d .tst; then
2081  am__leading_dot=.
2082else
2083  am__leading_dot=_
2084fi
2085rmdir .tst 2>/dev/null
2086
2087if test "`cd $srcdir && pwd`" != "`pwd`"; then
2088  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2089  # is not polluted with repeated "-I."
2090  am__isrc=' -I$(srcdir)'
2091  # test to see if srcdir already configured
2092  if test -f $srcdir/config.status; then
2093    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2094echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2095   { (exit 1); exit 1; }; }
2096  fi
2097fi
2098
2099# test whether we have cygpath
2100if test -z "$CYGPATH_W"; then
2101  if (cygpath --version) >/dev/null 2>/dev/null; then
2102    CYGPATH_W='cygpath -w'
2103  else
2104    CYGPATH_W=echo
2105  fi
2106fi
2107
2108
2109# Define the identity of the package.
2110 PACKAGE='jack-smf-utils'
2111 VERSION='1.0'
2112
2113
2114cat >>confdefs.h <<_ACEOF
2115#define PACKAGE "$PACKAGE"
2116_ACEOF
2117
2118
2119cat >>confdefs.h <<_ACEOF
2120#define VERSION "$VERSION"
2121_ACEOF
2122
2123# Some tools Automake needs.
2124
2125ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2126
2127
2128AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2129
2130
2131AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2132
2133
2134AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2135
2136
2137MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2138
2139install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2140
2141# Installed binaries are usually stripped using `strip' when the user
2142# run `make install-strip'.  However `strip' might not be the right
2143# tool to use in cross-compilation environments, therefore Automake
2144# will honor the `STRIP' environment variable to overrule this program.
2145if test "$cross_compiling" != no; then
2146  if test -n "$ac_tool_prefix"; then
2147  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2148set dummy ${ac_tool_prefix}strip; ac_word=$2
2149{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2151if test "${ac_cv_prog_STRIP+set}" = set; then
2152  echo $ECHO_N "(cached) $ECHO_C" >&6
2153else
2154  if test -n "$STRIP"; then
2155  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2156else
2157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158for as_dir in $PATH
2159do
2160  IFS=$as_save_IFS
2161  test -z "$as_dir" && as_dir=.
2162  for ac_exec_ext in '' $ac_executable_extensions; do
2163  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2164    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2165    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2166    break 2
2167  fi
2168done
2169done
2170IFS=$as_save_IFS
2171
2172fi
2173fi
2174STRIP=$ac_cv_prog_STRIP
2175if test -n "$STRIP"; then
2176  { echo "$as_me:$LINENO: result: $STRIP" >&5
2177echo "${ECHO_T}$STRIP" >&6; }
2178else
2179  { echo "$as_me:$LINENO: result: no" >&5
2180echo "${ECHO_T}no" >&6; }
2181fi
2182
2183
2184fi
2185if test -z "$ac_cv_prog_STRIP"; then
2186  ac_ct_STRIP=$STRIP
2187  # Extract the first word of "strip", so it can be a program name with args.
2188set dummy strip; ac_word=$2
2189{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2191if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2192  echo $ECHO_N "(cached) $ECHO_C" >&6
2193else
2194  if test -n "$ac_ct_STRIP"; then
2195  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2196else
2197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2198for as_dir in $PATH
2199do
2200  IFS=$as_save_IFS
2201  test -z "$as_dir" && as_dir=.
2202  for ac_exec_ext in '' $ac_executable_extensions; do
2203  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2204    ac_cv_prog_ac_ct_STRIP="strip"
2205    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2206    break 2
2207  fi
2208done
2209done
2210IFS=$as_save_IFS
2211
2212fi
2213fi
2214ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2215if test -n "$ac_ct_STRIP"; then
2216  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2217echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2218else
2219  { echo "$as_me:$LINENO: result: no" >&5
2220echo "${ECHO_T}no" >&6; }
2221fi
2222
2223  if test "x$ac_ct_STRIP" = x; then
2224    STRIP=":"
2225  else
2226    case $cross_compiling:$ac_tool_warned in
2227yes:)
2228{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2229whose name does not start with the host triplet.  If you think this
2230configuration is useful to you, please write to autoconf@gnu.org." >&5
2231echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2232whose name does not start with the host triplet.  If you think this
2233configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2234ac_tool_warned=yes ;;
2235esac
2236    STRIP=$ac_ct_STRIP
2237  fi
2238else
2239  STRIP="$ac_cv_prog_STRIP"
2240fi
2241
2242fi
2243INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2244
2245# We need awk for the "check" target.  The system "awk" is bad on
2246# some platforms.
2247# Always define AMTAR for backward compatibility.
2248
2249AMTAR=${AMTAR-"${am_missing_run}tar"}
2250
2251am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2252
2253
2254
2255
2256
2257
2258ac_config_headers="$ac_config_headers config.h"
2259
2260
2261# Checks for programs.
2262ac_ext=c
2263ac_cpp='$CPP $CPPFLAGS'
2264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2266ac_compiler_gnu=$ac_cv_c_compiler_gnu
2267if test -n "$ac_tool_prefix"; then
2268  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2269set dummy ${ac_tool_prefix}gcc; ac_word=$2
2270{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2272if test "${ac_cv_prog_CC+set}" = set; then
2273  echo $ECHO_N "(cached) $ECHO_C" >&6
2274else
2275  if test -n "$CC"; then
2276  ac_cv_prog_CC="$CC" # Let the user override the test.
2277else
2278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279for as_dir in $PATH
2280do
2281  IFS=$as_save_IFS
2282  test -z "$as_dir" && as_dir=.
2283  for ac_exec_ext in '' $ac_executable_extensions; do
2284  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2285    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2286    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2287    break 2
2288  fi
2289done
2290done
2291IFS=$as_save_IFS
2292
2293fi
2294fi
2295CC=$ac_cv_prog_CC
2296if test -n "$CC"; then
2297  { echo "$as_me:$LINENO: result: $CC" >&5
2298echo "${ECHO_T}$CC" >&6; }
2299else
2300  { echo "$as_me:$LINENO: result: no" >&5
2301echo "${ECHO_T}no" >&6; }
2302fi
2303
2304
2305fi
2306if test -z "$ac_cv_prog_CC"; then
2307  ac_ct_CC=$CC
2308  # Extract the first word of "gcc", so it can be a program name with args.
2309set dummy gcc; ac_word=$2
2310{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2312if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2313  echo $ECHO_N "(cached) $ECHO_C" >&6
2314else
2315  if test -n "$ac_ct_CC"; then
2316  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2317else
2318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319for as_dir in $PATH
2320do
2321  IFS=$as_save_IFS
2322  test -z "$as_dir" && as_dir=.
2323  for ac_exec_ext in '' $ac_executable_extensions; do
2324  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2325    ac_cv_prog_ac_ct_CC="gcc"
2326    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2327    break 2
2328  fi
2329done
2330done
2331IFS=$as_save_IFS
2332
2333fi
2334fi
2335ac_ct_CC=$ac_cv_prog_ac_ct_CC
2336if test -n "$ac_ct_CC"; then
2337  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2338echo "${ECHO_T}$ac_ct_CC" >&6; }
2339else
2340  { echo "$as_me:$LINENO: result: no" >&5
2341echo "${ECHO_T}no" >&6; }
2342fi
2343
2344  if test "x$ac_ct_CC" = x; then
2345    CC=""
2346  else
2347    case $cross_compiling:$ac_tool_warned in
2348yes:)
2349{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2350whose name does not start with the host triplet.  If you think this
2351configuration is useful to you, please write to autoconf@gnu.org." >&5
2352echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2353whose name does not start with the host triplet.  If you think this
2354configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2355ac_tool_warned=yes ;;
2356esac
2357    CC=$ac_ct_CC
2358  fi
2359else
2360  CC="$ac_cv_prog_CC"
2361fi
2362
2363if test -z "$CC"; then
2364          if test -n "$ac_tool_prefix"; then
2365    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2366set dummy ${ac_tool_prefix}cc; ac_word=$2
2367{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2369if test "${ac_cv_prog_CC+set}" = set; then
2370  echo $ECHO_N "(cached) $ECHO_C" >&6
2371else
2372  if test -n "$CC"; then
2373  ac_cv_prog_CC="$CC" # Let the user override the test.
2374else
2375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376for as_dir in $PATH
2377do
2378  IFS=$as_save_IFS
2379  test -z "$as_dir" && as_dir=.
2380  for ac_exec_ext in '' $ac_executable_extensions; do
2381  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2382    ac_cv_prog_CC="${ac_tool_prefix}cc"
2383    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2384    break 2
2385  fi
2386done
2387done
2388IFS=$as_save_IFS
2389
2390fi
2391fi
2392CC=$ac_cv_prog_CC
2393if test -n "$CC"; then
2394  { echo "$as_me:$LINENO: result: $CC" >&5
2395echo "${ECHO_T}$CC" >&6; }
2396else
2397  { echo "$as_me:$LINENO: result: no" >&5
2398echo "${ECHO_T}no" >&6; }
2399fi
2400
2401
2402  fi
2403fi
2404if test -z "$CC"; then
2405  # Extract the first word of "cc", so it can be a program name with args.
2406set dummy cc; ac_word=$2
2407{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2409if test "${ac_cv_prog_CC+set}" = set; then
2410  echo $ECHO_N "(cached) $ECHO_C" >&6
2411else
2412  if test -n "$CC"; then
2413  ac_cv_prog_CC="$CC" # Let the user override the test.
2414else
2415  ac_prog_rejected=no
2416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417for as_dir in $PATH
2418do
2419  IFS=$as_save_IFS
2420  test -z "$as_dir" && as_dir=.
2421  for ac_exec_ext in '' $ac_executable_extensions; do
2422  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2423    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2424       ac_prog_rejected=yes
2425       continue
2426     fi
2427    ac_cv_prog_CC="cc"
2428    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2429    break 2
2430  fi
2431done
2432done
2433IFS=$as_save_IFS
2434
2435if test $ac_prog_rejected = yes; then
2436  # We found a bogon in the path, so make sure we never use it.
2437  set dummy $ac_cv_prog_CC
2438  shift
2439  if test $# != 0; then
2440    # We chose a different compiler from the bogus one.
2441    # However, it has the same basename, so the bogon will be chosen
2442    # first if we set CC to just the basename; use the full file name.
2443    shift
2444    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2445  fi
2446fi
2447fi
2448fi
2449CC=$ac_cv_prog_CC
2450if test -n "$CC"; then
2451  { echo "$as_me:$LINENO: result: $CC" >&5
2452echo "${ECHO_T}$CC" >&6; }
2453else
2454  { echo "$as_me:$LINENO: result: no" >&5
2455echo "${ECHO_T}no" >&6; }
2456fi
2457
2458
2459fi
2460if test -z "$CC"; then
2461  if test -n "$ac_tool_prefix"; then
2462  for ac_prog in cl.exe
2463  do
2464    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2465set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2466{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2468if test "${ac_cv_prog_CC+set}" = set; then
2469  echo $ECHO_N "(cached) $ECHO_C" >&6
2470else
2471  if test -n "$CC"; then
2472  ac_cv_prog_CC="$CC" # Let the user override the test.
2473else
2474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475for as_dir in $PATH
2476do
2477  IFS=$as_save_IFS
2478  test -z "$as_dir" && as_dir=.
2479  for ac_exec_ext in '' $ac_executable_extensions; do
2480  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2481    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2482    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483    break 2
2484  fi
2485done
2486done
2487IFS=$as_save_IFS
2488
2489fi
2490fi
2491CC=$ac_cv_prog_CC
2492if test -n "$CC"; then
2493  { echo "$as_me:$LINENO: result: $CC" >&5
2494echo "${ECHO_T}$CC" >&6; }
2495else
2496  { echo "$as_me:$LINENO: result: no" >&5
2497echo "${ECHO_T}no" >&6; }
2498fi
2499
2500
2501    test -n "$CC" && break
2502  done
2503fi
2504if test -z "$CC"; then
2505  ac_ct_CC=$CC
2506  for ac_prog in cl.exe
2507do
2508  # Extract the first word of "$ac_prog", so it can be a program name with args.
2509set dummy $ac_prog; ac_word=$2
2510{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2512if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2513  echo $ECHO_N "(cached) $ECHO_C" >&6
2514else
2515  if test -n "$ac_ct_CC"; then
2516  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2517else
2518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519for as_dir in $PATH
2520do
2521  IFS=$as_save_IFS
2522  test -z "$as_dir" && as_dir=.
2523  for ac_exec_ext in '' $ac_executable_extensions; do
2524  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2525    ac_cv_prog_ac_ct_CC="$ac_prog"
2526    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527    break 2
2528  fi
2529done
2530done
2531IFS=$as_save_IFS
2532
2533fi
2534fi
2535ac_ct_CC=$ac_cv_prog_ac_ct_CC
2536if test -n "$ac_ct_CC"; then
2537  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2538echo "${ECHO_T}$ac_ct_CC" >&6; }
2539else
2540  { echo "$as_me:$LINENO: result: no" >&5
2541echo "${ECHO_T}no" >&6; }
2542fi
2543
2544
2545  test -n "$ac_ct_CC" && break
2546done
2547
2548  if test "x$ac_ct_CC" = x; then
2549    CC=""
2550  else
2551    case $cross_compiling:$ac_tool_warned in
2552yes:)
2553{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2554whose name does not start with the host triplet.  If you think this
2555configuration is useful to you, please write to autoconf@gnu.org." >&5
2556echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2557whose name does not start with the host triplet.  If you think this
2558configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2559ac_tool_warned=yes ;;
2560esac
2561    CC=$ac_ct_CC
2562  fi
2563fi
2564
2565fi
2566
2567
2568test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2569See \`config.log' for more details." >&5
2570echo "$as_me: error: no acceptable C compiler found in \$PATH
2571See \`config.log' for more details." >&2;}
2572   { (exit 1); exit 1; }; }
2573
2574# Provide some information about the compiler.
2575echo "$as_me:$LINENO: checking for C compiler version" >&5
2576ac_compiler=`set X $ac_compile; echo $2`
2577{ (ac_try="$ac_compiler --version >&5"
2578case "(($ac_try" in
2579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2580  *) ac_try_echo=$ac_try;;
2581esac
2582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2583  (eval "$ac_compiler --version >&5") 2>&5
2584  ac_status=$?
2585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586  (exit $ac_status); }
2587{ (ac_try="$ac_compiler -v >&5"
2588case "(($ac_try" in
2589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2590  *) ac_try_echo=$ac_try;;
2591esac
2592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2593  (eval "$ac_compiler -v >&5") 2>&5
2594  ac_status=$?
2595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596  (exit $ac_status); }
2597{ (ac_try="$ac_compiler -V >&5"
2598case "(($ac_try" in
2599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2600  *) ac_try_echo=$ac_try;;
2601esac
2602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2603  (eval "$ac_compiler -V >&5") 2>&5
2604  ac_status=$?
2605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606  (exit $ac_status); }
2607
2608cat >conftest.$ac_ext <<_ACEOF
2609/* confdefs.h.  */
2610_ACEOF
2611cat confdefs.h >>conftest.$ac_ext
2612cat >>conftest.$ac_ext <<_ACEOF
2613/* end confdefs.h.  */
2614
2615int
2616main ()
2617{
2618
2619  ;
2620  return 0;
2621}
2622_ACEOF
2623ac_clean_files_save=$ac_clean_files
2624ac_clean_files="$ac_clean_files a.out a.exe b.out"
2625# Try to create an executable without -o first, disregard a.out.
2626# It will help us diagnose broken compilers, and finding out an intuition
2627# of exeext.
2628{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2629echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2630ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2631#
2632# List of possible output files, starting from the most likely.
2633# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2634# only as a last resort.  b.out is created by i960 compilers.
2635ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2636#
2637# The IRIX 6 linker writes into existing files which may not be
2638# executable, retaining their permissions.  Remove them first so a
2639# subsequent execution test works.
2640ac_rmfiles=
2641for ac_file in $ac_files
2642do
2643  case $ac_file in
2644    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2645    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2646  esac
2647done
2648rm -f $ac_rmfiles
2649
2650if { (ac_try="$ac_link_default"
2651case "(($ac_try" in
2652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2653  *) ac_try_echo=$ac_try;;
2654esac
2655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2656  (eval "$ac_link_default") 2>&5
2657  ac_status=$?
2658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659  (exit $ac_status); }; then
2660  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2661# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2662# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2663# so that the user can short-circuit this test for compilers unknown to
2664# Autoconf.
2665for ac_file in $ac_files ''
2666do
2667  test -f "$ac_file" || continue
2668  case $ac_file in
2669    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2670	;;
2671    [ab].out )
2672	# We found the default executable, but exeext='' is most
2673	# certainly right.
2674	break;;
2675    *.* )
2676        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2677	then :; else
2678	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2679	fi
2680	# We set ac_cv_exeext here because the later test for it is not
2681	# safe: cross compilers may not add the suffix if given an `-o'
2682	# argument, so we may need to know it at that point already.
2683	# Even if this section looks crufty: it has the advantage of
2684	# actually working.
2685	break;;
2686    * )
2687	break;;
2688  esac
2689done
2690test "$ac_cv_exeext" = no && ac_cv_exeext=
2691
2692else
2693  ac_file=''
2694fi
2695
2696{ echo "$as_me:$LINENO: result: $ac_file" >&5
2697echo "${ECHO_T}$ac_file" >&6; }
2698if test -z "$ac_file"; then
2699  echo "$as_me: failed program was:" >&5
2700sed 's/^/| /' conftest.$ac_ext >&5
2701
2702{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2703See \`config.log' for more details." >&5
2704echo "$as_me: error: C compiler cannot create executables
2705See \`config.log' for more details." >&2;}
2706   { (exit 77); exit 77; }; }
2707fi
2708
2709ac_exeext=$ac_cv_exeext
2710
2711# Check that the compiler produces executables we can run.  If not, either
2712# the compiler is broken, or we cross compile.
2713{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2714echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2715# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2716# If not cross compiling, check that we can run a simple program.
2717if test "$cross_compiling" != yes; then
2718  if { ac_try='./$ac_file'
2719  { (case "(($ac_try" in
2720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721  *) ac_try_echo=$ac_try;;
2722esac
2723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724  (eval "$ac_try") 2>&5
2725  ac_status=$?
2726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727  (exit $ac_status); }; }; then
2728    cross_compiling=no
2729  else
2730    if test "$cross_compiling" = maybe; then
2731	cross_compiling=yes
2732    else
2733	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2734If you meant to cross compile, use \`--host'.
2735See \`config.log' for more details." >&5
2736echo "$as_me: error: cannot run C compiled programs.
2737If you meant to cross compile, use \`--host'.
2738See \`config.log' for more details." >&2;}
2739   { (exit 1); exit 1; }; }
2740    fi
2741  fi
2742fi
2743{ echo "$as_me:$LINENO: result: yes" >&5
2744echo "${ECHO_T}yes" >&6; }
2745
2746rm -f a.out a.exe conftest$ac_cv_exeext b.out
2747ac_clean_files=$ac_clean_files_save
2748# Check that the compiler produces executables we can run.  If not, either
2749# the compiler is broken, or we cross compile.
2750{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2751echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2752{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2753echo "${ECHO_T}$cross_compiling" >&6; }
2754
2755{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2756echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2757if { (ac_try="$ac_link"
2758case "(($ac_try" in
2759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760  *) ac_try_echo=$ac_try;;
2761esac
2762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2763  (eval "$ac_link") 2>&5
2764  ac_status=$?
2765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766  (exit $ac_status); }; then
2767  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2768# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2769# work properly (i.e., refer to `conftest.exe'), while it won't with
2770# `rm'.
2771for ac_file in conftest.exe conftest conftest.*; do
2772  test -f "$ac_file" || continue
2773  case $ac_file in
2774    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2775    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2776	  break;;
2777    * ) break;;
2778  esac
2779done
2780else
2781  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2782See \`config.log' for more details." >&5
2783echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2784See \`config.log' for more details." >&2;}
2785   { (exit 1); exit 1; }; }
2786fi
2787
2788rm -f conftest$ac_cv_exeext
2789{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2790echo "${ECHO_T}$ac_cv_exeext" >&6; }
2791
2792rm -f conftest.$ac_ext
2793EXEEXT=$ac_cv_exeext
2794ac_exeext=$EXEEXT
2795{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2796echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2797if test "${ac_cv_objext+set}" = set; then
2798  echo $ECHO_N "(cached) $ECHO_C" >&6
2799else
2800  cat >conftest.$ac_ext <<_ACEOF
2801/* confdefs.h.  */
2802_ACEOF
2803cat confdefs.h >>conftest.$ac_ext
2804cat >>conftest.$ac_ext <<_ACEOF
2805/* end confdefs.h.  */
2806
2807int
2808main ()
2809{
2810
2811  ;
2812  return 0;
2813}
2814_ACEOF
2815rm -f conftest.o conftest.obj
2816if { (ac_try="$ac_compile"
2817case "(($ac_try" in
2818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2819  *) ac_try_echo=$ac_try;;
2820esac
2821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2822  (eval "$ac_compile") 2>&5
2823  ac_status=$?
2824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825  (exit $ac_status); }; then
2826  for ac_file in conftest.o conftest.obj conftest.*; do
2827  test -f "$ac_file" || continue;
2828  case $ac_file in
2829    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2830    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2831       break;;
2832  esac
2833done
2834else
2835  echo "$as_me: failed program was:" >&5
2836sed 's/^/| /' conftest.$ac_ext >&5
2837
2838{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2839See \`config.log' for more details." >&5
2840echo "$as_me: error: cannot compute suffix of object files: cannot compile
2841See \`config.log' for more details." >&2;}
2842   { (exit 1); exit 1; }; }
2843fi
2844
2845rm -f conftest.$ac_cv_objext conftest.$ac_ext
2846fi
2847{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2848echo "${ECHO_T}$ac_cv_objext" >&6; }
2849OBJEXT=$ac_cv_objext
2850ac_objext=$OBJEXT
2851{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2852echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2853if test "${ac_cv_c_compiler_gnu+set}" = set; then
2854  echo $ECHO_N "(cached) $ECHO_C" >&6
2855else
2856  cat >conftest.$ac_ext <<_ACEOF
2857/* confdefs.h.  */
2858_ACEOF
2859cat confdefs.h >>conftest.$ac_ext
2860cat >>conftest.$ac_ext <<_ACEOF
2861/* end confdefs.h.  */
2862
2863int
2864main ()
2865{
2866#ifndef __GNUC__
2867       choke me
2868#endif
2869
2870  ;
2871  return 0;
2872}
2873_ACEOF
2874rm -f conftest.$ac_objext
2875if { (ac_try="$ac_compile"
2876case "(($ac_try" in
2877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878  *) ac_try_echo=$ac_try;;
2879esac
2880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2881  (eval "$ac_compile") 2>conftest.er1
2882  ac_status=$?
2883  grep -v '^ *+' conftest.er1 >conftest.err
2884  rm -f conftest.er1
2885  cat conftest.err >&5
2886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887  (exit $ac_status); } && {
2888	 test -z "$ac_c_werror_flag" ||
2889	 test ! -s conftest.err
2890       } && test -s conftest.$ac_objext; then
2891  ac_compiler_gnu=yes
2892else
2893  echo "$as_me: failed program was:" >&5
2894sed 's/^/| /' conftest.$ac_ext >&5
2895
2896	ac_compiler_gnu=no
2897fi
2898
2899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2900ac_cv_c_compiler_gnu=$ac_compiler_gnu
2901
2902fi
2903{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2904echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2905GCC=`test $ac_compiler_gnu = yes && echo yes`
2906ac_test_CFLAGS=${CFLAGS+set}
2907ac_save_CFLAGS=$CFLAGS
2908{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2909echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2910if test "${ac_cv_prog_cc_g+set}" = set; then
2911  echo $ECHO_N "(cached) $ECHO_C" >&6
2912else
2913  ac_save_c_werror_flag=$ac_c_werror_flag
2914   ac_c_werror_flag=yes
2915   ac_cv_prog_cc_g=no
2916   CFLAGS="-g"
2917   cat >conftest.$ac_ext <<_ACEOF
2918/* confdefs.h.  */
2919_ACEOF
2920cat confdefs.h >>conftest.$ac_ext
2921cat >>conftest.$ac_ext <<_ACEOF
2922/* end confdefs.h.  */
2923
2924int
2925main ()
2926{
2927
2928  ;
2929  return 0;
2930}
2931_ACEOF
2932rm -f conftest.$ac_objext
2933if { (ac_try="$ac_compile"
2934case "(($ac_try" in
2935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936  *) ac_try_echo=$ac_try;;
2937esac
2938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2939  (eval "$ac_compile") 2>conftest.er1
2940  ac_status=$?
2941  grep -v '^ *+' conftest.er1 >conftest.err
2942  rm -f conftest.er1
2943  cat conftest.err >&5
2944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945  (exit $ac_status); } && {
2946	 test -z "$ac_c_werror_flag" ||
2947	 test ! -s conftest.err
2948       } && test -s conftest.$ac_objext; then
2949  ac_cv_prog_cc_g=yes
2950else
2951  echo "$as_me: failed program was:" >&5
2952sed 's/^/| /' conftest.$ac_ext >&5
2953
2954	CFLAGS=""
2955      cat >conftest.$ac_ext <<_ACEOF
2956/* confdefs.h.  */
2957_ACEOF
2958cat confdefs.h >>conftest.$ac_ext
2959cat >>conftest.$ac_ext <<_ACEOF
2960/* end confdefs.h.  */
2961
2962int
2963main ()
2964{
2965
2966  ;
2967  return 0;
2968}
2969_ACEOF
2970rm -f conftest.$ac_objext
2971if { (ac_try="$ac_compile"
2972case "(($ac_try" in
2973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974  *) ac_try_echo=$ac_try;;
2975esac
2976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977  (eval "$ac_compile") 2>conftest.er1
2978  ac_status=$?
2979  grep -v '^ *+' conftest.er1 >conftest.err
2980  rm -f conftest.er1
2981  cat conftest.err >&5
2982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983  (exit $ac_status); } && {
2984	 test -z "$ac_c_werror_flag" ||
2985	 test ! -s conftest.err
2986       } && test -s conftest.$ac_objext; then
2987  :
2988else
2989  echo "$as_me: failed program was:" >&5
2990sed 's/^/| /' conftest.$ac_ext >&5
2991
2992	ac_c_werror_flag=$ac_save_c_werror_flag
2993	 CFLAGS="-g"
2994	 cat >conftest.$ac_ext <<_ACEOF
2995/* confdefs.h.  */
2996_ACEOF
2997cat confdefs.h >>conftest.$ac_ext
2998cat >>conftest.$ac_ext <<_ACEOF
2999/* end confdefs.h.  */
3000
3001int
3002main ()
3003{
3004
3005  ;
3006  return 0;
3007}
3008_ACEOF
3009rm -f conftest.$ac_objext
3010if { (ac_try="$ac_compile"
3011case "(($ac_try" in
3012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013  *) ac_try_echo=$ac_try;;
3014esac
3015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3016  (eval "$ac_compile") 2>conftest.er1
3017  ac_status=$?
3018  grep -v '^ *+' conftest.er1 >conftest.err
3019  rm -f conftest.er1
3020  cat conftest.err >&5
3021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022  (exit $ac_status); } && {
3023	 test -z "$ac_c_werror_flag" ||
3024	 test ! -s conftest.err
3025       } && test -s conftest.$ac_objext; then
3026  ac_cv_prog_cc_g=yes
3027else
3028  echo "$as_me: failed program was:" >&5
3029sed 's/^/| /' conftest.$ac_ext >&5
3030
3031
3032fi
3033
3034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3035fi
3036
3037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3038fi
3039
3040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3041   ac_c_werror_flag=$ac_save_c_werror_flag
3042fi
3043{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3044echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3045if test "$ac_test_CFLAGS" = set; then
3046  CFLAGS=$ac_save_CFLAGS
3047elif test $ac_cv_prog_cc_g = yes; then
3048  if test "$GCC" = yes; then
3049    CFLAGS="-g -O2"
3050  else
3051    CFLAGS="-g"
3052  fi
3053else
3054  if test "$GCC" = yes; then
3055    CFLAGS="-O2"
3056  else
3057    CFLAGS=
3058  fi
3059fi
3060{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3061echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3062if test "${ac_cv_prog_cc_c89+set}" = set; then
3063  echo $ECHO_N "(cached) $ECHO_C" >&6
3064else
3065  ac_cv_prog_cc_c89=no
3066ac_save_CC=$CC
3067cat >conftest.$ac_ext <<_ACEOF
3068/* confdefs.h.  */
3069_ACEOF
3070cat confdefs.h >>conftest.$ac_ext
3071cat >>conftest.$ac_ext <<_ACEOF
3072/* end confdefs.h.  */
3073#include <stdarg.h>
3074#include <stdio.h>
3075#include <sys/types.h>
3076#include <sys/stat.h>
3077/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3078struct buf { int x; };
3079FILE * (*rcsopen) (struct buf *, struct stat *, int);
3080static char *e (p, i)
3081     char **p;
3082     int i;
3083{
3084  return p[i];
3085}
3086static char *f (char * (*g) (char **, int), char **p, ...)
3087{
3088  char *s;
3089  va_list v;
3090  va_start (v,p);
3091  s = g (p, va_arg (v,int));
3092  va_end (v);
3093  return s;
3094}
3095
3096/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3097   function prototypes and stuff, but not '\xHH' hex character constants.
3098   These don't provoke an error unfortunately, instead are silently treated
3099   as 'x'.  The following induces an error, until -std is added to get
3100   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3101   array size at least.  It's necessary to write '\x00'==0 to get something
3102   that's true only with -std.  */
3103int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3104
3105/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3106   inside strings and character constants.  */
3107#define FOO(x) 'x'
3108int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3109
3110int test (int i, double x);
3111struct s1 {int (*f) (int a);};
3112struct s2 {int (*f) (double a);};
3113int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3114int argc;
3115char **argv;
3116int
3117main ()
3118{
3119return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3120  ;
3121  return 0;
3122}
3123_ACEOF
3124for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3125	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3126do
3127  CC="$ac_save_CC $ac_arg"
3128  rm -f conftest.$ac_objext
3129if { (ac_try="$ac_compile"
3130case "(($ac_try" in
3131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132  *) ac_try_echo=$ac_try;;
3133esac
3134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135  (eval "$ac_compile") 2>conftest.er1
3136  ac_status=$?
3137  grep -v '^ *+' conftest.er1 >conftest.err
3138  rm -f conftest.er1
3139  cat conftest.err >&5
3140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141  (exit $ac_status); } && {
3142	 test -z "$ac_c_werror_flag" ||
3143	 test ! -s conftest.err
3144       } && test -s conftest.$ac_objext; then
3145  ac_cv_prog_cc_c89=$ac_arg
3146else
3147  echo "$as_me: failed program was:" >&5
3148sed 's/^/| /' conftest.$ac_ext >&5
3149
3150
3151fi
3152
3153rm -f core conftest.err conftest.$ac_objext
3154  test "x$ac_cv_prog_cc_c89" != "xno" && break
3155done
3156rm -f conftest.$ac_ext
3157CC=$ac_save_CC
3158
3159fi
3160# AC_CACHE_VAL
3161case "x$ac_cv_prog_cc_c89" in
3162  x)
3163    { echo "$as_me:$LINENO: result: none needed" >&5
3164echo "${ECHO_T}none needed" >&6; } ;;
3165  xno)
3166    { echo "$as_me:$LINENO: result: unsupported" >&5
3167echo "${ECHO_T}unsupported" >&6; } ;;
3168  *)
3169    CC="$CC $ac_cv_prog_cc_c89"
3170    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3171echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3172esac
3173
3174
3175ac_ext=c
3176ac_cpp='$CPP $CPPFLAGS'
3177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3179ac_compiler_gnu=$ac_cv_c_compiler_gnu
3180DEPDIR="${am__leading_dot}deps"
3181
3182ac_config_commands="$ac_config_commands depfiles"
3183
3184
3185am_make=${MAKE-make}
3186cat > confinc << 'END'
3187am__doit:
3188	@echo done
3189.PHONY: am__doit
3190END
3191# If we don't find an include directive, just comment out the code.
3192{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3193echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3194am__include="#"
3195am__quote=
3196_am_result=none
3197# First try GNU make style include.
3198echo "include confinc" > confmf
3199# We grep out `Entering directory' and `Leaving directory'
3200# messages which can occur if `w' ends up in MAKEFLAGS.
3201# In particular we don't look at `^make:' because GNU make might
3202# be invoked under some other name (usually "gmake"), in which
3203# case it prints its new name instead of `make'.
3204if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3205   am__include=include
3206   am__quote=
3207   _am_result=GNU
3208fi
3209# Now try BSD make style include.
3210if test "$am__include" = "#"; then
3211   echo '.include "confinc"' > confmf
3212   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3213      am__include=.include
3214      am__quote="\""
3215      _am_result=BSD
3216   fi
3217fi
3218
3219
3220{ echo "$as_me:$LINENO: result: $_am_result" >&5
3221echo "${ECHO_T}$_am_result" >&6; }
3222rm -f confinc confmf
3223
3224# Check whether --enable-dependency-tracking was given.
3225if test "${enable_dependency_tracking+set}" = set; then
3226  enableval=$enable_dependency_tracking;
3227fi
3228
3229if test "x$enable_dependency_tracking" != xno; then
3230  am_depcomp="$ac_aux_dir/depcomp"
3231  AMDEPBACKSLASH='\'
3232fi
3233 if test "x$enable_dependency_tracking" != xno; then
3234  AMDEP_TRUE=
3235  AMDEP_FALSE='#'
3236else
3237  AMDEP_TRUE='#'
3238  AMDEP_FALSE=
3239fi
3240
3241
3242
3243depcc="$CC"   am_compiler_list=
3244
3245{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3246echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3247if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3248  echo $ECHO_N "(cached) $ECHO_C" >&6
3249else
3250  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3251  # We make a subdir and do the tests there.  Otherwise we can end up
3252  # making bogus files that we don't know about and never remove.  For
3253  # instance it was reported that on HP-UX the gcc test will end up
3254  # making a dummy file named `D' -- because `-MD' means `put the output
3255  # in D'.
3256  mkdir conftest.dir
3257  # Copy depcomp to subdir because otherwise we won't find it if we're
3258  # using a relative directory.
3259  cp "$am_depcomp" conftest.dir
3260  cd conftest.dir
3261  # We will build objects and dependencies in a subdirectory because
3262  # it helps to detect inapplicable dependency modes.  For instance
3263  # both Tru64's cc and ICC support -MD to output dependencies as a
3264  # side effect of compilation, but ICC will put the dependencies in
3265  # the current directory while Tru64 will put them in the object
3266  # directory.
3267  mkdir sub
3268
3269  am_cv_CC_dependencies_compiler_type=none
3270  if test "$am_compiler_list" = ""; then
3271     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3272  fi
3273  for depmode in $am_compiler_list; do
3274    # Setup a source with many dependencies, because some compilers
3275    # like to wrap large dependency lists on column 80 (with \), and
3276    # we should not choose a depcomp mode which is confused by this.
3277    #
3278    # We need to recreate these files for each test, as the compiler may
3279    # overwrite some of them when testing with obscure command lines.
3280    # This happens at least with the AIX C compiler.
3281    : > sub/conftest.c
3282    for i in 1 2 3 4 5 6; do
3283      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3284      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3285      # Solaris 8's {/usr,}/bin/sh.
3286      touch sub/conftst$i.h
3287    done
3288    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3289
3290    case $depmode in
3291    nosideeffect)
3292      # after this tag, mechanisms are not by side-effect, so they'll
3293      # only be used when explicitly requested
3294      if test "x$enable_dependency_tracking" = xyes; then
3295	continue
3296      else
3297	break
3298      fi
3299      ;;
3300    none) break ;;
3301    esac
3302    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3303    # mode.  It turns out that the SunPro C++ compiler does not properly
3304    # handle `-M -o', and we need to detect this.
3305    if depmode=$depmode \
3306       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3307       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3308       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3309         >/dev/null 2>conftest.err &&
3310       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3311       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3312       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3313       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3314      # icc doesn't choke on unknown options, it will just issue warnings
3315      # or remarks (even with -Werror).  So we grep stderr for any message
3316      # that says an option was ignored or not supported.
3317      # When given -MP, icc 7.0 and 7.1 complain thusly:
3318      #   icc: Command line warning: ignoring option '-M'; no argument required
3319      # The diagnosis changed in icc 8.0:
3320      #   icc: Command line remark: option '-MP' not supported
3321      if (grep 'ignoring option' conftest.err ||
3322          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3323        am_cv_CC_dependencies_compiler_type=$depmode
3324        break
3325      fi
3326    fi
3327  done
3328
3329  cd ..
3330  rm -rf conftest.dir
3331else
3332  am_cv_CC_dependencies_compiler_type=none
3333fi
3334
3335fi
3336{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3337echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3338CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3339
3340 if
3341  test "x$enable_dependency_tracking" != xno \
3342  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3343  am__fastdepCC_TRUE=
3344  am__fastdepCC_FALSE='#'
3345else
3346  am__fastdepCC_TRUE='#'
3347  am__fastdepCC_FALSE=
3348fi
3349
3350
3351# Find a good install program.  We prefer a C program (faster),
3352# so one script is as good as another.  But avoid the broken or
3353# incompatible versions:
3354# SysV /etc/install, /usr/sbin/install
3355# SunOS /usr/etc/install
3356# IRIX /sbin/install
3357# AIX /bin/install
3358# AmigaOS /C/install, which installs bootblocks on floppy discs
3359# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3360# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3361# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3362# OS/2's system install, which has a completely different semantic
3363# ./install, which can be erroneously created by make from ./install.sh.
3364{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3365echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3366if test -z "$INSTALL"; then
3367if test "${ac_cv_path_install+set}" = set; then
3368  echo $ECHO_N "(cached) $ECHO_C" >&6
3369else
3370  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371for as_dir in $PATH
3372do
3373  IFS=$as_save_IFS
3374  test -z "$as_dir" && as_dir=.
3375  # Account for people who put trailing slashes in PATH elements.
3376case $as_dir/ in
3377  ./ | .// | /cC/* | \
3378  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3379  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3380  /usr/ucb/* ) ;;
3381  *)
3382    # OSF1 and SCO ODT 3.0 have their own names for install.
3383    # Don't use installbsd from OSF since it installs stuff as root
3384    # by default.
3385    for ac_prog in ginstall scoinst install; do
3386      for ac_exec_ext in '' $ac_executable_extensions; do
3387	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3388	  if test $ac_prog = install &&
3389	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3390	    # AIX install.  It has an incompatible calling convention.
3391	    :
3392	  elif test $ac_prog = install &&
3393	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3394	    # program-specific install script used by HP pwplus--don't use.
3395	    :
3396	  else
3397	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3398	    break 3
3399	  fi
3400	fi
3401      done
3402    done
3403    ;;
3404esac
3405done
3406IFS=$as_save_IFS
3407
3408
3409fi
3410  if test "${ac_cv_path_install+set}" = set; then
3411    INSTALL=$ac_cv_path_install
3412  else
3413    # As a last resort, use the slow shell script.  Don't cache a
3414    # value for INSTALL within a source directory, because that will
3415    # break other packages using the cache if that directory is
3416    # removed, or if the value is a relative name.
3417    INSTALL=$ac_install_sh
3418  fi
3419fi
3420{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3421echo "${ECHO_T}$INSTALL" >&6; }
3422
3423# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3424# It thinks the first close brace ends the variable substitution.
3425test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3426
3427test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3428
3429test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3430
3431if test -n "$ac_tool_prefix"; then
3432  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3433set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3434{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3436if test "${ac_cv_prog_RANLIB+set}" = set; then
3437  echo $ECHO_N "(cached) $ECHO_C" >&6
3438else
3439  if test -n "$RANLIB"; then
3440  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3441else
3442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443for as_dir in $PATH
3444do
3445  IFS=$as_save_IFS
3446  test -z "$as_dir" && as_dir=.
3447  for ac_exec_ext in '' $ac_executable_extensions; do
3448  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3449    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3450    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3451    break 2
3452  fi
3453done
3454done
3455IFS=$as_save_IFS
3456
3457fi
3458fi
3459RANLIB=$ac_cv_prog_RANLIB
3460if test -n "$RANLIB"; then
3461  { echo "$as_me:$LINENO: result: $RANLIB" >&5
3462echo "${ECHO_T}$RANLIB" >&6; }
3463else
3464  { echo "$as_me:$LINENO: result: no" >&5
3465echo "${ECHO_T}no" >&6; }
3466fi
3467
3468
3469fi
3470if test -z "$ac_cv_prog_RANLIB"; then
3471  ac_ct_RANLIB=$RANLIB
3472  # Extract the first word of "ranlib", so it can be a program name with args.
3473set dummy ranlib; ac_word=$2
3474{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3476if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3477  echo $ECHO_N "(cached) $ECHO_C" >&6
3478else
3479  if test -n "$ac_ct_RANLIB"; then
3480  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3481else
3482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483for as_dir in $PATH
3484do
3485  IFS=$as_save_IFS
3486  test -z "$as_dir" && as_dir=.
3487  for ac_exec_ext in '' $ac_executable_extensions; do
3488  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3489    ac_cv_prog_ac_ct_RANLIB="ranlib"
3490    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3491    break 2
3492  fi
3493done
3494done
3495IFS=$as_save_IFS
3496
3497fi
3498fi
3499ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3500if test -n "$ac_ct_RANLIB"; then
3501  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3502echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3503else
3504  { echo "$as_me:$LINENO: result: no" >&5
3505echo "${ECHO_T}no" >&6; }
3506fi
3507
3508  if test "x$ac_ct_RANLIB" = x; then
3509    RANLIB=":"
3510  else
3511    case $cross_compiling:$ac_tool_warned in
3512yes:)
3513{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3514whose name does not start with the host triplet.  If you think this
3515configuration is useful to you, please write to autoconf@gnu.org." >&5
3516echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3517whose name does not start with the host triplet.  If you think this
3518configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3519ac_tool_warned=yes ;;
3520esac
3521    RANLIB=$ac_ct_RANLIB
3522  fi
3523else
3524  RANLIB="$ac_cv_prog_RANLIB"
3525fi
3526
3527
3528# Checks for libraries.
3529
3530
3531{ echo "$as_me:$LINENO: checking for pow in -lm" >&5
3532echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
3533if test "${ac_cv_lib_m_pow+set}" = set; then
3534  echo $ECHO_N "(cached) $ECHO_C" >&6
3535else
3536  ac_check_lib_save_LIBS=$LIBS
3537LIBS="-lm  $LIBS"
3538cat >conftest.$ac_ext <<_ACEOF
3539/* confdefs.h.  */
3540_ACEOF
3541cat confdefs.h >>conftest.$ac_ext
3542cat >>conftest.$ac_ext <<_ACEOF
3543/* end confdefs.h.  */
3544
3545/* Override any GCC internal prototype to avoid an error.
3546   Use char because int might match the return type of a GCC
3547   builtin and then its argument prototype would still apply.  */
3548#ifdef __cplusplus
3549extern "C"
3550#endif
3551char pow ();
3552int
3553main ()
3554{
3555return pow ();
3556  ;
3557  return 0;
3558}
3559_ACEOF
3560rm -f conftest.$ac_objext conftest$ac_exeext
3561if { (ac_try="$ac_link"
3562case "(($ac_try" in
3563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564  *) ac_try_echo=$ac_try;;
3565esac
3566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3567  (eval "$ac_link") 2>conftest.er1
3568  ac_status=$?
3569  grep -v '^ *+' conftest.er1 >conftest.err
3570  rm -f conftest.er1
3571  cat conftest.err >&5
3572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573  (exit $ac_status); } && {
3574	 test -z "$ac_c_werror_flag" ||
3575	 test ! -s conftest.err
3576       } && test -s conftest$ac_exeext &&
3577       $as_test_x conftest$ac_exeext; then
3578  ac_cv_lib_m_pow=yes
3579else
3580  echo "$as_me: failed program was:" >&5
3581sed 's/^/| /' conftest.$ac_ext >&5
3582
3583	ac_cv_lib_m_pow=no
3584fi
3585
3586rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3587      conftest$ac_exeext conftest.$ac_ext
3588LIBS=$ac_check_lib_save_LIBS
3589fi
3590{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
3591echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
3592if test $ac_cv_lib_m_pow = yes; then
3593  cat >>confdefs.h <<_ACEOF
3594#define HAVE_LIBM 1
3595_ACEOF
3596
3597  LIBS="-lm $LIBS"
3598
3599fi
3600
3601
3602# Check whether --with-readline was given.
3603if test "${with_readline+set}" = set; then
3604  withval=$with_readline;
3605else
3606  with_readline=check
3607fi
3608
3609
3610if test "x$with_readline" != xno; then
3611  { echo "$as_me:$LINENO: checking for main in -lreadline" >&5
3612echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6; }
3613if test "${ac_cv_lib_readline_main+set}" = set; then
3614  echo $ECHO_N "(cached) $ECHO_C" >&6
3615else
3616  ac_check_lib_save_LIBS=$LIBS
3617LIBS="-lreadline -lncurses $LIBS"
3618cat >conftest.$ac_ext <<_ACEOF
3619/* confdefs.h.  */
3620_ACEOF
3621cat confdefs.h >>conftest.$ac_ext
3622cat >>conftest.$ac_ext <<_ACEOF
3623/* end confdefs.h.  */
3624
3625
3626int
3627main ()
3628{
3629return main ();
3630  ;
3631  return 0;
3632}
3633_ACEOF
3634rm -f conftest.$ac_objext conftest$ac_exeext
3635if { (ac_try="$ac_link"
3636case "(($ac_try" in
3637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638  *) ac_try_echo=$ac_try;;
3639esac
3640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3641  (eval "$ac_link") 2>conftest.er1
3642  ac_status=$?
3643  grep -v '^ *+' conftest.er1 >conftest.err
3644  rm -f conftest.er1
3645  cat conftest.err >&5
3646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647  (exit $ac_status); } && {
3648	 test -z "$ac_c_werror_flag" ||
3649	 test ! -s conftest.err
3650       } && test -s conftest$ac_exeext &&
3651       $as_test_x conftest$ac_exeext; then
3652  ac_cv_lib_readline_main=yes
3653else
3654  echo "$as_me: failed program was:" >&5
3655sed 's/^/| /' conftest.$ac_ext >&5
3656
3657	ac_cv_lib_readline_main=no
3658fi
3659
3660rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3661      conftest$ac_exeext conftest.$ac_ext
3662LIBS=$ac_check_lib_save_LIBS
3663fi
3664{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
3665echo "${ECHO_T}$ac_cv_lib_readline_main" >&6; }
3666if test $ac_cv_lib_readline_main = yes; then
3667  READLINE_LIBS="-lreadline -lncurses"
3668
3669
3670cat >>confdefs.h <<\_ACEOF
3671#define HAVE_LIBREADLINE 1
3672_ACEOF
3673
3674else
3675  if test "x$with_readline" != xcheck; then
3676		     { { echo "$as_me:$LINENO: error: --with-readline was given, but test for readline failed
3677See \`config.log' for more details." >&5
3678echo "$as_me: error: --with-readline was given, but test for readline failed
3679See \`config.log' for more details." >&2;}
3680   { (exit 1); exit 1; }; }
3681		     fi
3682
3683fi
3684
3685fi
3686
3687
3688# Checks for header files.
3689ac_ext=c
3690ac_cpp='$CPP $CPPFLAGS'
3691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3693ac_compiler_gnu=$ac_cv_c_compiler_gnu
3694{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3695echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3696# On Suns, sometimes $CPP names a directory.
3697if test -n "$CPP" && test -d "$CPP"; then
3698  CPP=
3699fi
3700if test -z "$CPP"; then
3701  if test "${ac_cv_prog_CPP+set}" = set; then
3702  echo $ECHO_N "(cached) $ECHO_C" >&6
3703else
3704      # Double quotes because CPP needs to be expanded
3705    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3706    do
3707      ac_preproc_ok=false
3708for ac_c_preproc_warn_flag in '' yes
3709do
3710  # Use a header file that comes with gcc, so configuring glibc
3711  # with a fresh cross-compiler works.
3712  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3713  # <limits.h> exists even on freestanding compilers.
3714  # On the NeXT, cc -E runs the code through the compiler's parser,
3715  # not just through cpp. "Syntax error" is here to catch this case.
3716  cat >conftest.$ac_ext <<_ACEOF
3717/* confdefs.h.  */
3718_ACEOF
3719cat confdefs.h >>conftest.$ac_ext
3720cat >>conftest.$ac_ext <<_ACEOF
3721/* end confdefs.h.  */
3722#ifdef __STDC__
3723# include <limits.h>
3724#else
3725# include <assert.h>
3726#endif
3727		     Syntax error
3728_ACEOF
3729if { (ac_try="$ac_cpp conftest.$ac_ext"
3730case "(($ac_try" in
3731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732  *) ac_try_echo=$ac_try;;
3733esac
3734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3735  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3736  ac_status=$?
3737  grep -v '^ *+' conftest.er1 >conftest.err
3738  rm -f conftest.er1
3739  cat conftest.err >&5
3740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741  (exit $ac_status); } >/dev/null && {
3742	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3743	 test ! -s conftest.err
3744       }; then
3745  :
3746else
3747  echo "$as_me: failed program was:" >&5
3748sed 's/^/| /' conftest.$ac_ext >&5
3749
3750  # Broken: fails on valid input.
3751continue
3752fi
3753
3754rm -f conftest.err conftest.$ac_ext
3755
3756  # OK, works on sane cases.  Now check whether nonexistent headers
3757  # can be detected and how.
3758  cat >conftest.$ac_ext <<_ACEOF
3759/* confdefs.h.  */
3760_ACEOF
3761cat confdefs.h >>conftest.$ac_ext
3762cat >>conftest.$ac_ext <<_ACEOF
3763/* end confdefs.h.  */
3764#include <ac_nonexistent.h>
3765_ACEOF
3766if { (ac_try="$ac_cpp conftest.$ac_ext"
3767case "(($ac_try" in
3768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769  *) ac_try_echo=$ac_try;;
3770esac
3771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3772  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3773  ac_status=$?
3774  grep -v '^ *+' conftest.er1 >conftest.err
3775  rm -f conftest.er1
3776  cat conftest.err >&5
3777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778  (exit $ac_status); } >/dev/null && {
3779	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3780	 test ! -s conftest.err
3781       }; then
3782  # Broken: success on invalid input.
3783continue
3784else
3785  echo "$as_me: failed program was:" >&5
3786sed 's/^/| /' conftest.$ac_ext >&5
3787
3788  # Passes both tests.
3789ac_preproc_ok=:
3790break
3791fi
3792
3793rm -f conftest.err conftest.$ac_ext
3794
3795done
3796# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3797rm -f conftest.err conftest.$ac_ext
3798if $ac_preproc_ok; then
3799  break
3800fi
3801
3802    done
3803    ac_cv_prog_CPP=$CPP
3804
3805fi
3806  CPP=$ac_cv_prog_CPP
3807else
3808  ac_cv_prog_CPP=$CPP
3809fi
3810{ echo "$as_me:$LINENO: result: $CPP" >&5
3811echo "${ECHO_T}$CPP" >&6; }
3812ac_preproc_ok=false
3813for ac_c_preproc_warn_flag in '' yes
3814do
3815  # Use a header file that comes with gcc, so configuring glibc
3816  # with a fresh cross-compiler works.
3817  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3818  # <limits.h> exists even on freestanding compilers.
3819  # On the NeXT, cc -E runs the code through the compiler's parser,
3820  # not just through cpp. "Syntax error" is here to catch this case.
3821  cat >conftest.$ac_ext <<_ACEOF
3822/* confdefs.h.  */
3823_ACEOF
3824cat confdefs.h >>conftest.$ac_ext
3825cat >>conftest.$ac_ext <<_ACEOF
3826/* end confdefs.h.  */
3827#ifdef __STDC__
3828# include <limits.h>
3829#else
3830# include <assert.h>
3831#endif
3832		     Syntax error
3833_ACEOF
3834if { (ac_try="$ac_cpp conftest.$ac_ext"
3835case "(($ac_try" in
3836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837  *) ac_try_echo=$ac_try;;
3838esac
3839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3840  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3841  ac_status=$?
3842  grep -v '^ *+' conftest.er1 >conftest.err
3843  rm -f conftest.er1
3844  cat conftest.err >&5
3845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846  (exit $ac_status); } >/dev/null && {
3847	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3848	 test ! -s conftest.err
3849       }; then
3850  :
3851else
3852  echo "$as_me: failed program was:" >&5
3853sed 's/^/| /' conftest.$ac_ext >&5
3854
3855  # Broken: fails on valid input.
3856continue
3857fi
3858
3859rm -f conftest.err conftest.$ac_ext
3860
3861  # OK, works on sane cases.  Now check whether nonexistent headers
3862  # can be detected and how.
3863  cat >conftest.$ac_ext <<_ACEOF
3864/* confdefs.h.  */
3865_ACEOF
3866cat confdefs.h >>conftest.$ac_ext
3867cat >>conftest.$ac_ext <<_ACEOF
3868/* end confdefs.h.  */
3869#include <ac_nonexistent.h>
3870_ACEOF
3871if { (ac_try="$ac_cpp conftest.$ac_ext"
3872case "(($ac_try" in
3873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874  *) ac_try_echo=$ac_try;;
3875esac
3876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3877  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3878  ac_status=$?
3879  grep -v '^ *+' conftest.er1 >conftest.err
3880  rm -f conftest.er1
3881  cat conftest.err >&5
3882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883  (exit $ac_status); } >/dev/null && {
3884	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3885	 test ! -s conftest.err
3886       }; then
3887  # Broken: success on invalid input.
3888continue
3889else
3890  echo "$as_me: failed program was:" >&5
3891sed 's/^/| /' conftest.$ac_ext >&5
3892
3893  # Passes both tests.
3894ac_preproc_ok=:
3895break
3896fi
3897
3898rm -f conftest.err conftest.$ac_ext
3899
3900done
3901# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3902rm -f conftest.err conftest.$ac_ext
3903if $ac_preproc_ok; then
3904  :
3905else
3906  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3907See \`config.log' for more details." >&5
3908echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3909See \`config.log' for more details." >&2;}
3910   { (exit 1); exit 1; }; }
3911fi
3912
3913ac_ext=c
3914ac_cpp='$CPP $CPPFLAGS'
3915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3917ac_compiler_gnu=$ac_cv_c_compiler_gnu
3918
3919
3920{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3921echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3922if test "${ac_cv_path_GREP+set}" = set; then
3923  echo $ECHO_N "(cached) $ECHO_C" >&6
3924else
3925  # Extract the first word of "grep ggrep" to use in msg output
3926if test -z "$GREP"; then
3927set dummy grep ggrep; ac_prog_name=$2
3928if test "${ac_cv_path_GREP+set}" = set; then
3929  echo $ECHO_N "(cached) $ECHO_C" >&6
3930else
3931  ac_path_GREP_found=false
3932# Loop through the user's path and test for each of PROGNAME-LIST
3933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3935do
3936  IFS=$as_save_IFS
3937  test -z "$as_dir" && as_dir=.
3938  for ac_prog in grep ggrep; do
3939  for ac_exec_ext in '' $ac_executable_extensions; do
3940    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3941    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3942    # Check for GNU ac_path_GREP and select it if it is found.
3943  # Check for GNU $ac_path_GREP
3944case `"$ac_path_GREP" --version 2>&1` in
3945*GNU*)
3946  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3947*)
3948  ac_count=0
3949  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3950  while :
3951  do
3952    cat "conftest.in" "conftest.in" >"conftest.tmp"
3953    mv "conftest.tmp" "conftest.in"
3954    cp "conftest.in" "conftest.nl"
3955    echo 'GREP' >> "conftest.nl"
3956    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3957    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3958    ac_count=`expr $ac_count + 1`
3959    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3960      # Best one so far, save it but keep looking for a better one
3961      ac_cv_path_GREP="$ac_path_GREP"
3962      ac_path_GREP_max=$ac_count
3963    fi
3964    # 10*(2^10) chars as input seems more than enough
3965    test $ac_count -gt 10 && break
3966  done
3967  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3968esac
3969
3970
3971    $ac_path_GREP_found && break 3
3972  done
3973done
3974
3975done
3976IFS=$as_save_IFS
3977
3978
3979fi
3980
3981GREP="$ac_cv_path_GREP"
3982if test -z "$GREP"; then
3983  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3984echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3985   { (exit 1); exit 1; }; }
3986fi
3987
3988else
3989  ac_cv_path_GREP=$GREP
3990fi
3991
3992
3993fi
3994{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3995echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3996 GREP="$ac_cv_path_GREP"
3997
3998
3999{ echo "$as_me:$LINENO: checking for egrep" >&5
4000echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4001if test "${ac_cv_path_EGREP+set}" = set; then
4002  echo $ECHO_N "(cached) $ECHO_C" >&6
4003else
4004  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4005   then ac_cv_path_EGREP="$GREP -E"
4006   else
4007     # Extract the first word of "egrep" to use in msg output
4008if test -z "$EGREP"; then
4009set dummy egrep; ac_prog_name=$2
4010if test "${ac_cv_path_EGREP+set}" = set; then
4011  echo $ECHO_N "(cached) $ECHO_C" >&6
4012else
4013  ac_path_EGREP_found=false
4014# Loop through the user's path and test for each of PROGNAME-LIST
4015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4017do
4018  IFS=$as_save_IFS
4019  test -z "$as_dir" && as_dir=.
4020  for ac_prog in egrep; do
4021  for ac_exec_ext in '' $ac_executable_extensions; do
4022    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4023    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4024    # Check for GNU ac_path_EGREP and select it if it is found.
4025  # Check for GNU $ac_path_EGREP
4026case `"$ac_path_EGREP" --version 2>&1` in
4027*GNU*)
4028  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4029*)
4030  ac_count=0
4031  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4032  while :
4033  do
4034    cat "conftest.in" "conftest.in" >"conftest.tmp"
4035    mv "conftest.tmp" "conftest.in"
4036    cp "conftest.in" "conftest.nl"
4037    echo 'EGREP' >> "conftest.nl"
4038    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4039    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4040    ac_count=`expr $ac_count + 1`
4041    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4042      # Best one so far, save it but keep looking for a better one
4043      ac_cv_path_EGREP="$ac_path_EGREP"
4044      ac_path_EGREP_max=$ac_count
4045    fi
4046    # 10*(2^10) chars as input seems more than enough
4047    test $ac_count -gt 10 && break
4048  done
4049  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4050esac
4051
4052
4053    $ac_path_EGREP_found && break 3
4054  done
4055done
4056
4057done
4058IFS=$as_save_IFS
4059
4060
4061fi
4062
4063EGREP="$ac_cv_path_EGREP"
4064if test -z "$EGREP"; then
4065  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4066echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4067   { (exit 1); exit 1; }; }
4068fi
4069
4070else
4071  ac_cv_path_EGREP=$EGREP
4072fi
4073
4074
4075   fi
4076fi
4077{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4078echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4079 EGREP="$ac_cv_path_EGREP"
4080
4081
4082{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4083echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4084if test "${ac_cv_header_stdc+set}" = set; then
4085  echo $ECHO_N "(cached) $ECHO_C" >&6
4086else
4087  cat >conftest.$ac_ext <<_ACEOF
4088/* confdefs.h.  */
4089_ACEOF
4090cat confdefs.h >>conftest.$ac_ext
4091cat >>conftest.$ac_ext <<_ACEOF
4092/* end confdefs.h.  */
4093#include <stdlib.h>
4094#include <stdarg.h>
4095#include <string.h>
4096#include <float.h>
4097
4098int
4099main ()
4100{
4101
4102  ;
4103  return 0;
4104}
4105_ACEOF
4106rm -f conftest.$ac_objext
4107if { (ac_try="$ac_compile"
4108case "(($ac_try" in
4109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4110  *) ac_try_echo=$ac_try;;
4111esac
4112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4113  (eval "$ac_compile") 2>conftest.er1
4114  ac_status=$?
4115  grep -v '^ *+' conftest.er1 >conftest.err
4116  rm -f conftest.er1
4117  cat conftest.err >&5
4118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119  (exit $ac_status); } && {
4120	 test -z "$ac_c_werror_flag" ||
4121	 test ! -s conftest.err
4122       } && test -s conftest.$ac_objext; then
4123  ac_cv_header_stdc=yes
4124else
4125  echo "$as_me: failed program was:" >&5
4126sed 's/^/| /' conftest.$ac_ext >&5
4127
4128	ac_cv_header_stdc=no
4129fi
4130
4131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132
4133if test $ac_cv_header_stdc = yes; then
4134  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4135  cat >conftest.$ac_ext <<_ACEOF
4136/* confdefs.h.  */
4137_ACEOF
4138cat confdefs.h >>conftest.$ac_ext
4139cat >>conftest.$ac_ext <<_ACEOF
4140/* end confdefs.h.  */
4141#include <string.h>
4142
4143_ACEOF
4144if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4145  $EGREP "memchr" >/dev/null 2>&1; then
4146  :
4147else
4148  ac_cv_header_stdc=no
4149fi
4150rm -f conftest*
4151
4152fi
4153
4154if test $ac_cv_header_stdc = yes; then
4155  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4156  cat >conftest.$ac_ext <<_ACEOF
4157/* confdefs.h.  */
4158_ACEOF
4159cat confdefs.h >>conftest.$ac_ext
4160cat >>conftest.$ac_ext <<_ACEOF
4161/* end confdefs.h.  */
4162#include <stdlib.h>
4163
4164_ACEOF
4165if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4166  $EGREP "free" >/dev/null 2>&1; then
4167  :
4168else
4169  ac_cv_header_stdc=no
4170fi
4171rm -f conftest*
4172
4173fi
4174
4175if test $ac_cv_header_stdc = yes; then
4176  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4177  if test "$cross_compiling" = yes; then
4178  :
4179else
4180  cat >conftest.$ac_ext <<_ACEOF
4181/* confdefs.h.  */
4182_ACEOF
4183cat confdefs.h >>conftest.$ac_ext
4184cat >>conftest.$ac_ext <<_ACEOF
4185/* end confdefs.h.  */
4186#include <ctype.h>
4187#include <stdlib.h>
4188#if ((' ' & 0x0FF) == 0x020)
4189# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4190# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4191#else
4192# define ISLOWER(c) \
4193		   (('a' <= (c) && (c) <= 'i') \
4194		     || ('j' <= (c) && (c) <= 'r') \
4195		     || ('s' <= (c) && (c) <= 'z'))
4196# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4197#endif
4198
4199#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4200int
4201main ()
4202{
4203  int i;
4204  for (i = 0; i < 256; i++)
4205    if (XOR (islower (i), ISLOWER (i))
4206	|| toupper (i) != TOUPPER (i))
4207      return 2;
4208  return 0;
4209}
4210_ACEOF
4211rm -f conftest$ac_exeext
4212if { (ac_try="$ac_link"
4213case "(($ac_try" in
4214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215  *) ac_try_echo=$ac_try;;
4216esac
4217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4218  (eval "$ac_link") 2>&5
4219  ac_status=$?
4220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4222  { (case "(($ac_try" in
4223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224  *) ac_try_echo=$ac_try;;
4225esac
4226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227  (eval "$ac_try") 2>&5
4228  ac_status=$?
4229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230  (exit $ac_status); }; }; then
4231  :
4232else
4233  echo "$as_me: program exited with status $ac_status" >&5
4234echo "$as_me: failed program was:" >&5
4235sed 's/^/| /' conftest.$ac_ext >&5
4236
4237( exit $ac_status )
4238ac_cv_header_stdc=no
4239fi
4240rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4241fi
4242
4243
4244fi
4245fi
4246{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4247echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4248if test $ac_cv_header_stdc = yes; then
4249
4250cat >>confdefs.h <<\_ACEOF
4251#define STDC_HEADERS 1
4252_ACEOF
4253
4254fi
4255
4256# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4267		  inttypes.h stdint.h unistd.h
4268do
4269as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4270{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4271echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4272if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4273  echo $ECHO_N "(cached) $ECHO_C" >&6
4274else
4275  cat >conftest.$ac_ext <<_ACEOF
4276/* confdefs.h.  */
4277_ACEOF
4278cat confdefs.h >>conftest.$ac_ext
4279cat >>conftest.$ac_ext <<_ACEOF
4280/* end confdefs.h.  */
4281$ac_includes_default
4282
4283#include <$ac_header>
4284_ACEOF
4285rm -f conftest.$ac_objext
4286if { (ac_try="$ac_compile"
4287case "(($ac_try" in
4288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289  *) ac_try_echo=$ac_try;;
4290esac
4291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292  (eval "$ac_compile") 2>conftest.er1
4293  ac_status=$?
4294  grep -v '^ *+' conftest.er1 >conftest.err
4295  rm -f conftest.er1
4296  cat conftest.err >&5
4297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298  (exit $ac_status); } && {
4299	 test -z "$ac_c_werror_flag" ||
4300	 test ! -s conftest.err
4301       } && test -s conftest.$ac_objext; then
4302  eval "$as_ac_Header=yes"
4303else
4304  echo "$as_me: failed program was:" >&5
4305sed 's/^/| /' conftest.$ac_ext >&5
4306
4307	eval "$as_ac_Header=no"
4308fi
4309
4310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311fi
4312ac_res=`eval echo '${'$as_ac_Header'}'`
4313	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4314echo "${ECHO_T}$ac_res" >&6; }
4315if test `eval echo '${'$as_ac_Header'}'` = yes; then
4316  cat >>confdefs.h <<_ACEOF
4317#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4318_ACEOF
4319
4320fi
4321
4322done
4323
4324
4325
4326
4327
4328
4329
4330for ac_header in arpa/inet.h stdlib.h string.h sys/time.h unistd.h
4331do
4332as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4333if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4334  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4335echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4336if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4337  echo $ECHO_N "(cached) $ECHO_C" >&6
4338fi
4339ac_res=`eval echo '${'$as_ac_Header'}'`
4340	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4341echo "${ECHO_T}$ac_res" >&6; }
4342else
4343  # Is the header compilable?
4344{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4345echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4346cat >conftest.$ac_ext <<_ACEOF
4347/* confdefs.h.  */
4348_ACEOF
4349cat confdefs.h >>conftest.$ac_ext
4350cat >>conftest.$ac_ext <<_ACEOF
4351/* end confdefs.h.  */
4352$ac_includes_default
4353#include <$ac_header>
4354_ACEOF
4355rm -f conftest.$ac_objext
4356if { (ac_try="$ac_compile"
4357case "(($ac_try" in
4358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4359  *) ac_try_echo=$ac_try;;
4360esac
4361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4362  (eval "$ac_compile") 2>conftest.er1
4363  ac_status=$?
4364  grep -v '^ *+' conftest.er1 >conftest.err
4365  rm -f conftest.er1
4366  cat conftest.err >&5
4367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368  (exit $ac_status); } && {
4369	 test -z "$ac_c_werror_flag" ||
4370	 test ! -s conftest.err
4371       } && test -s conftest.$ac_objext; then
4372  ac_header_compiler=yes
4373else
4374  echo "$as_me: failed program was:" >&5
4375sed 's/^/| /' conftest.$ac_ext >&5
4376
4377	ac_header_compiler=no
4378fi
4379
4380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4382echo "${ECHO_T}$ac_header_compiler" >&6; }
4383
4384# Is the header present?
4385{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4386echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4387cat >conftest.$ac_ext <<_ACEOF
4388/* confdefs.h.  */
4389_ACEOF
4390cat confdefs.h >>conftest.$ac_ext
4391cat >>conftest.$ac_ext <<_ACEOF
4392/* end confdefs.h.  */
4393#include <$ac_header>
4394_ACEOF
4395if { (ac_try="$ac_cpp conftest.$ac_ext"
4396case "(($ac_try" in
4397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398  *) ac_try_echo=$ac_try;;
4399esac
4400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4402  ac_status=$?
4403  grep -v '^ *+' conftest.er1 >conftest.err
4404  rm -f conftest.er1
4405  cat conftest.err >&5
4406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407  (exit $ac_status); } >/dev/null && {
4408	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4409	 test ! -s conftest.err
4410       }; then
4411  ac_header_preproc=yes
4412else
4413  echo "$as_me: failed program was:" >&5
4414sed 's/^/| /' conftest.$ac_ext >&5
4415
4416  ac_header_preproc=no
4417fi
4418
4419rm -f conftest.err conftest.$ac_ext
4420{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4421echo "${ECHO_T}$ac_header_preproc" >&6; }
4422
4423# So?  What about this header?
4424case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4425  yes:no: )
4426    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4427echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4428    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4429echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4430    ac_header_preproc=yes
4431    ;;
4432  no:yes:* )
4433    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4434echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4435    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4436echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4437    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4438echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4439    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4440echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4441    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4442echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4443    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4444echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4445    ( cat <<\_ASBOX
4446## -------------------------------- ##
4447## Report this to trasz@FreeBSD.org ##
4448## -------------------------------- ##
4449_ASBOX
4450     ) | sed "s/^/$as_me: WARNING:     /" >&2
4451    ;;
4452esac
4453{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4454echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4455if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4456  echo $ECHO_N "(cached) $ECHO_C" >&6
4457else
4458  eval "$as_ac_Header=\$ac_header_preproc"
4459fi
4460ac_res=`eval echo '${'$as_ac_Header'}'`
4461	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4462echo "${ECHO_T}$ac_res" >&6; }
4463
4464fi
4465if test `eval echo '${'$as_ac_Header'}'` = yes; then
4466  cat >>confdefs.h <<_ACEOF
4467#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4468_ACEOF
4469
4470fi
4471
4472done
4473
4474
4475# Checks for typedefs, structures, and compiler characteristics.
4476{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4477echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4478if test "${ac_cv_c_const+set}" = set; then
4479  echo $ECHO_N "(cached) $ECHO_C" >&6
4480else
4481  cat >conftest.$ac_ext <<_ACEOF
4482/* confdefs.h.  */
4483_ACEOF
4484cat confdefs.h >>conftest.$ac_ext
4485cat >>conftest.$ac_ext <<_ACEOF
4486/* end confdefs.h.  */
4487
4488int
4489main ()
4490{
4491/* FIXME: Include the comments suggested by Paul. */
4492#ifndef __cplusplus
4493  /* Ultrix mips cc rejects this.  */
4494  typedef int charset[2];
4495  const charset cs;
4496  /* SunOS 4.1.1 cc rejects this.  */
4497  char const *const *pcpcc;
4498  char **ppc;
4499  /* NEC SVR4.0.2 mips cc rejects this.  */
4500  struct point {int x, y;};
4501  static struct point const zero = {0,0};
4502  /* AIX XL C 1.02.0.0 rejects this.
4503     It does not let you subtract one const X* pointer from another in
4504     an arm of an if-expression whose if-part is not a constant
4505     expression */
4506  const char *g = "string";
4507  pcpcc = &g + (g ? g-g : 0);
4508  /* HPUX 7.0 cc rejects these. */
4509  ++pcpcc;
4510  ppc = (char**) pcpcc;
4511  pcpcc = (char const *const *) ppc;
4512  { /* SCO 3.2v4 cc rejects this.  */
4513    char *t;
4514    char const *s = 0 ? (char *) 0 : (char const *) 0;
4515
4516    *t++ = 0;
4517    if (s) return 0;
4518  }
4519  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4520    int x[] = {25, 17};
4521    const int *foo = &x[0];
4522    ++foo;
4523  }
4524  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4525    typedef const int *iptr;
4526    iptr p = 0;
4527    ++p;
4528  }
4529  { /* AIX XL C 1.02.0.0 rejects this saying
4530       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4531    struct s { int j; const int *ap[3]; };
4532    struct s *b; b->j = 5;
4533  }
4534  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4535    const int foo = 10;
4536    if (!foo) return 0;
4537  }
4538  return !cs[0] && !zero.x;
4539#endif
4540
4541  ;
4542  return 0;
4543}
4544_ACEOF
4545rm -f conftest.$ac_objext
4546if { (ac_try="$ac_compile"
4547case "(($ac_try" in
4548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549  *) ac_try_echo=$ac_try;;
4550esac
4551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4552  (eval "$ac_compile") 2>conftest.er1
4553  ac_status=$?
4554  grep -v '^ *+' conftest.er1 >conftest.err
4555  rm -f conftest.er1
4556  cat conftest.err >&5
4557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558  (exit $ac_status); } && {
4559	 test -z "$ac_c_werror_flag" ||
4560	 test ! -s conftest.err
4561       } && test -s conftest.$ac_objext; then
4562  ac_cv_c_const=yes
4563else
4564  echo "$as_me: failed program was:" >&5
4565sed 's/^/| /' conftest.$ac_ext >&5
4566
4567	ac_cv_c_const=no
4568fi
4569
4570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4571fi
4572{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4573echo "${ECHO_T}$ac_cv_c_const" >&6; }
4574if test $ac_cv_c_const = no; then
4575
4576cat >>confdefs.h <<\_ACEOF
4577#define const
4578_ACEOF
4579
4580fi
4581
4582
4583  { echo "$as_me:$LINENO: checking for int8_t" >&5
4584echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
4585if test "${ac_cv_c_int8_t+set}" = set; then
4586  echo $ECHO_N "(cached) $ECHO_C" >&6
4587else
4588  ac_cv_c_int8_t=no
4589     for ac_type in 'int8_t' 'int' 'long int' \
4590	 'long long int' 'short int' 'signed char'; do
4591       cat >conftest.$ac_ext <<_ACEOF
4592/* confdefs.h.  */
4593_ACEOF
4594cat confdefs.h >>conftest.$ac_ext
4595cat >>conftest.$ac_ext <<_ACEOF
4596/* end confdefs.h.  */
4597$ac_includes_default
4598int
4599main ()
4600{
4601static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
4602test_array [0] = 0
4603
4604  ;
4605  return 0;
4606}
4607_ACEOF
4608rm -f conftest.$ac_objext
4609if { (ac_try="$ac_compile"
4610case "(($ac_try" in
4611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612  *) ac_try_echo=$ac_try;;
4613esac
4614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4615  (eval "$ac_compile") 2>conftest.er1
4616  ac_status=$?
4617  grep -v '^ *+' conftest.er1 >conftest.err
4618  rm -f conftest.er1
4619  cat conftest.err >&5
4620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621  (exit $ac_status); } && {
4622	 test -z "$ac_c_werror_flag" ||
4623	 test ! -s conftest.err
4624       } && test -s conftest.$ac_objext; then
4625  cat >conftest.$ac_ext <<_ACEOF
4626/* confdefs.h.  */
4627_ACEOF
4628cat confdefs.h >>conftest.$ac_ext
4629cat >>conftest.$ac_ext <<_ACEOF
4630/* end confdefs.h.  */
4631$ac_includes_default
4632int
4633main ()
4634{
4635static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
4636	         < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
4637test_array [0] = 0
4638
4639  ;
4640  return 0;
4641}
4642_ACEOF
4643rm -f conftest.$ac_objext
4644if { (ac_try="$ac_compile"
4645case "(($ac_try" in
4646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4647  *) ac_try_echo=$ac_try;;
4648esac
4649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4650  (eval "$ac_compile") 2>conftest.er1
4651  ac_status=$?
4652  grep -v '^ *+' conftest.er1 >conftest.err
4653  rm -f conftest.er1
4654  cat conftest.err >&5
4655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656  (exit $ac_status); } && {
4657	 test -z "$ac_c_werror_flag" ||
4658	 test ! -s conftest.err
4659       } && test -s conftest.$ac_objext; then
4660  :
4661else
4662  echo "$as_me: failed program was:" >&5
4663sed 's/^/| /' conftest.$ac_ext >&5
4664
4665	case $ac_type in
4666  int8_t) ac_cv_c_int8_t=yes ;;
4667  *) ac_cv_c_int8_t=$ac_type ;;
4668esac
4669
4670fi
4671
4672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4673else
4674  echo "$as_me: failed program was:" >&5
4675sed 's/^/| /' conftest.$ac_ext >&5
4676
4677
4678fi
4679
4680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4681       test "$ac_cv_c_int8_t" != no && break
4682     done
4683fi
4684{ echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
4685echo "${ECHO_T}$ac_cv_c_int8_t" >&6; }
4686  case $ac_cv_c_int8_t in #(
4687  no|yes) ;; #(
4688  *)
4689
4690cat >>confdefs.h <<_ACEOF
4691#define int8_t $ac_cv_c_int8_t
4692_ACEOF
4693;;
4694  esac
4695
4696{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4697echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4698if test "${ac_cv_header_time+set}" = set; then
4699  echo $ECHO_N "(cached) $ECHO_C" >&6
4700else
4701  cat >conftest.$ac_ext <<_ACEOF
4702/* confdefs.h.  */
4703_ACEOF
4704cat confdefs.h >>conftest.$ac_ext
4705cat >>conftest.$ac_ext <<_ACEOF
4706/* end confdefs.h.  */
4707#include <sys/types.h>
4708#include <sys/time.h>
4709#include <time.h>
4710
4711int
4712main ()
4713{
4714if ((struct tm *) 0)
4715return 0;
4716  ;
4717  return 0;
4718}
4719_ACEOF
4720rm -f conftest.$ac_objext
4721if { (ac_try="$ac_compile"
4722case "(($ac_try" in
4723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724  *) ac_try_echo=$ac_try;;
4725esac
4726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4727  (eval "$ac_compile") 2>conftest.er1
4728  ac_status=$?
4729  grep -v '^ *+' conftest.er1 >conftest.err
4730  rm -f conftest.er1
4731  cat conftest.err >&5
4732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733  (exit $ac_status); } && {
4734	 test -z "$ac_c_werror_flag" ||
4735	 test ! -s conftest.err
4736       } && test -s conftest.$ac_objext; then
4737  ac_cv_header_time=yes
4738else
4739  echo "$as_me: failed program was:" >&5
4740sed 's/^/| /' conftest.$ac_ext >&5
4741
4742	ac_cv_header_time=no
4743fi
4744
4745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746fi
4747{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4748echo "${ECHO_T}$ac_cv_header_time" >&6; }
4749if test $ac_cv_header_time = yes; then
4750
4751cat >>confdefs.h <<\_ACEOF
4752#define TIME_WITH_SYS_TIME 1
4753_ACEOF
4754
4755fi
4756
4757
4758  { echo "$as_me:$LINENO: checking for uint16_t" >&5
4759echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
4760if test "${ac_cv_c_uint16_t+set}" = set; then
4761  echo $ECHO_N "(cached) $ECHO_C" >&6
4762else
4763  ac_cv_c_uint16_t=no
4764     for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
4765	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
4766       cat >conftest.$ac_ext <<_ACEOF
4767/* confdefs.h.  */
4768_ACEOF
4769cat confdefs.h >>conftest.$ac_ext
4770cat >>conftest.$ac_ext <<_ACEOF
4771/* end confdefs.h.  */
4772$ac_includes_default
4773int
4774main ()
4775{
4776static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
4777test_array [0] = 0
4778
4779  ;
4780  return 0;
4781}
4782_ACEOF
4783rm -f conftest.$ac_objext
4784if { (ac_try="$ac_compile"
4785case "(($ac_try" in
4786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4787  *) ac_try_echo=$ac_try;;
4788esac
4789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4790  (eval "$ac_compile") 2>conftest.er1
4791  ac_status=$?
4792  grep -v '^ *+' conftest.er1 >conftest.err
4793  rm -f conftest.er1
4794  cat conftest.err >&5
4795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796  (exit $ac_status); } && {
4797	 test -z "$ac_c_werror_flag" ||
4798	 test ! -s conftest.err
4799       } && test -s conftest.$ac_objext; then
4800  case $ac_type in
4801  uint16_t) ac_cv_c_uint16_t=yes ;;
4802  *) ac_cv_c_uint16_t=$ac_type ;;
4803esac
4804
4805else
4806  echo "$as_me: failed program was:" >&5
4807sed 's/^/| /' conftest.$ac_ext >&5
4808
4809
4810fi
4811
4812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813       test "$ac_cv_c_uint16_t" != no && break
4814     done
4815fi
4816{ echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
4817echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
4818  case $ac_cv_c_uint16_t in #(
4819  no|yes) ;; #(
4820  *)
4821
4822
4823cat >>confdefs.h <<_ACEOF
4824#define uint16_t $ac_cv_c_uint16_t
4825_ACEOF
4826;;
4827  esac
4828
4829
4830  { echo "$as_me:$LINENO: checking for uint32_t" >&5
4831echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
4832if test "${ac_cv_c_uint32_t+set}" = set; then
4833  echo $ECHO_N "(cached) $ECHO_C" >&6
4834else
4835  ac_cv_c_uint32_t=no
4836     for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
4837	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
4838       cat >conftest.$ac_ext <<_ACEOF
4839/* confdefs.h.  */
4840_ACEOF
4841cat confdefs.h >>conftest.$ac_ext
4842cat >>conftest.$ac_ext <<_ACEOF
4843/* end confdefs.h.  */
4844$ac_includes_default
4845int
4846main ()
4847{
4848static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
4849test_array [0] = 0
4850
4851  ;
4852  return 0;
4853}
4854_ACEOF
4855rm -f conftest.$ac_objext
4856if { (ac_try="$ac_compile"
4857case "(($ac_try" in
4858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859  *) ac_try_echo=$ac_try;;
4860esac
4861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4862  (eval "$ac_compile") 2>conftest.er1
4863  ac_status=$?
4864  grep -v '^ *+' conftest.er1 >conftest.err
4865  rm -f conftest.er1
4866  cat conftest.err >&5
4867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868  (exit $ac_status); } && {
4869	 test -z "$ac_c_werror_flag" ||
4870	 test ! -s conftest.err
4871       } && test -s conftest.$ac_objext; then
4872  case $ac_type in
4873  uint32_t) ac_cv_c_uint32_t=yes ;;
4874  *) ac_cv_c_uint32_t=$ac_type ;;
4875esac
4876
4877else
4878  echo "$as_me: failed program was:" >&5
4879sed 's/^/| /' conftest.$ac_ext >&5
4880
4881
4882fi
4883
4884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4885       test "$ac_cv_c_uint32_t" != no && break
4886     done
4887fi
4888{ echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
4889echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
4890  case $ac_cv_c_uint32_t in #(
4891  no|yes) ;; #(
4892  *)
4893
4894cat >>confdefs.h <<\_ACEOF
4895#define _UINT32_T 1
4896_ACEOF
4897
4898
4899cat >>confdefs.h <<_ACEOF
4900#define uint32_t $ac_cv_c_uint32_t
4901_ACEOF
4902;;
4903  esac
4904
4905{ echo "$as_me:$LINENO: checking for working volatile" >&5
4906echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
4907if test "${ac_cv_c_volatile+set}" = set; then
4908  echo $ECHO_N "(cached) $ECHO_C" >&6
4909else
4910  cat >conftest.$ac_ext <<_ACEOF
4911/* confdefs.h.  */
4912_ACEOF
4913cat confdefs.h >>conftest.$ac_ext
4914cat >>conftest.$ac_ext <<_ACEOF
4915/* end confdefs.h.  */
4916
4917int
4918main ()
4919{
4920
4921volatile int x;
4922int * volatile y = (int *) 0;
4923return !x && !y;
4924  ;
4925  return 0;
4926}
4927_ACEOF
4928rm -f conftest.$ac_objext
4929if { (ac_try="$ac_compile"
4930case "(($ac_try" in
4931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4932  *) ac_try_echo=$ac_try;;
4933esac
4934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4935  (eval "$ac_compile") 2>conftest.er1
4936  ac_status=$?
4937  grep -v '^ *+' conftest.er1 >conftest.err
4938  rm -f conftest.er1
4939  cat conftest.err >&5
4940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941  (exit $ac_status); } && {
4942	 test -z "$ac_c_werror_flag" ||
4943	 test ! -s conftest.err
4944       } && test -s conftest.$ac_objext; then
4945  ac_cv_c_volatile=yes
4946else
4947  echo "$as_me: failed program was:" >&5
4948sed 's/^/| /' conftest.$ac_ext >&5
4949
4950	ac_cv_c_volatile=no
4951fi
4952
4953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954fi
4955{ echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
4956echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
4957if test $ac_cv_c_volatile = no; then
4958
4959cat >>confdefs.h <<\_ACEOF
4960#define volatile
4961_ACEOF
4962
4963fi
4964
4965
4966# Checks for library functions.
4967
4968for ac_header in stdlib.h
4969do
4970as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4971if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4972  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4975  echo $ECHO_N "(cached) $ECHO_C" >&6
4976fi
4977ac_res=`eval echo '${'$as_ac_Header'}'`
4978	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4979echo "${ECHO_T}$ac_res" >&6; }
4980else
4981  # Is the header compilable?
4982{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4983echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4984cat >conftest.$ac_ext <<_ACEOF
4985/* confdefs.h.  */
4986_ACEOF
4987cat confdefs.h >>conftest.$ac_ext
4988cat >>conftest.$ac_ext <<_ACEOF
4989/* end confdefs.h.  */
4990$ac_includes_default
4991#include <$ac_header>
4992_ACEOF
4993rm -f conftest.$ac_objext
4994if { (ac_try="$ac_compile"
4995case "(($ac_try" in
4996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4997  *) ac_try_echo=$ac_try;;
4998esac
4999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5000  (eval "$ac_compile") 2>conftest.er1
5001  ac_status=$?
5002  grep -v '^ *+' conftest.er1 >conftest.err
5003  rm -f conftest.er1
5004  cat conftest.err >&5
5005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006  (exit $ac_status); } && {
5007	 test -z "$ac_c_werror_flag" ||
5008	 test ! -s conftest.err
5009       } && test -s conftest.$ac_objext; then
5010  ac_header_compiler=yes
5011else
5012  echo "$as_me: failed program was:" >&5
5013sed 's/^/| /' conftest.$ac_ext >&5
5014
5015	ac_header_compiler=no
5016fi
5017
5018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5020echo "${ECHO_T}$ac_header_compiler" >&6; }
5021
5022# Is the header present?
5023{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5024echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5025cat >conftest.$ac_ext <<_ACEOF
5026/* confdefs.h.  */
5027_ACEOF
5028cat confdefs.h >>conftest.$ac_ext
5029cat >>conftest.$ac_ext <<_ACEOF
5030/* end confdefs.h.  */
5031#include <$ac_header>
5032_ACEOF
5033if { (ac_try="$ac_cpp conftest.$ac_ext"
5034case "(($ac_try" in
5035  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5036  *) ac_try_echo=$ac_try;;
5037esac
5038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5039  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5040  ac_status=$?
5041  grep -v '^ *+' conftest.er1 >conftest.err
5042  rm -f conftest.er1
5043  cat conftest.err >&5
5044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045  (exit $ac_status); } >/dev/null && {
5046	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5047	 test ! -s conftest.err
5048       }; then
5049  ac_header_preproc=yes
5050else
5051  echo "$as_me: failed program was:" >&5
5052sed 's/^/| /' conftest.$ac_ext >&5
5053
5054  ac_header_preproc=no
5055fi
5056
5057rm -f conftest.err conftest.$ac_ext
5058{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5059echo "${ECHO_T}$ac_header_preproc" >&6; }
5060
5061# So?  What about this header?
5062case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5063  yes:no: )
5064    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5065echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5066    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5067echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5068    ac_header_preproc=yes
5069    ;;
5070  no:yes:* )
5071    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5072echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5073    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5074echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5075    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5076echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5077    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5078echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5079    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5080echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5081    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5082echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5083    ( cat <<\_ASBOX
5084## -------------------------------- ##
5085## Report this to trasz@FreeBSD.org ##
5086## -------------------------------- ##
5087_ASBOX
5088     ) | sed "s/^/$as_me: WARNING:     /" >&2
5089    ;;
5090esac
5091{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5092echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5093if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5094  echo $ECHO_N "(cached) $ECHO_C" >&6
5095else
5096  eval "$as_ac_Header=\$ac_header_preproc"
5097fi
5098ac_res=`eval echo '${'$as_ac_Header'}'`
5099	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5100echo "${ECHO_T}$ac_res" >&6; }
5101
5102fi
5103if test `eval echo '${'$as_ac_Header'}'` = yes; then
5104  cat >>confdefs.h <<_ACEOF
5105#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5106_ACEOF
5107
5108fi
5109
5110done
5111
5112{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
5113echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
5114if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
5115  echo $ECHO_N "(cached) $ECHO_C" >&6
5116else
5117  if test "$cross_compiling" = yes; then
5118  ac_cv_func_malloc_0_nonnull=no
5119else
5120  cat >conftest.$ac_ext <<_ACEOF
5121/* confdefs.h.  */
5122_ACEOF
5123cat confdefs.h >>conftest.$ac_ext
5124cat >>conftest.$ac_ext <<_ACEOF
5125/* end confdefs.h.  */
5126#if defined STDC_HEADERS || defined HAVE_STDLIB_H
5127# include <stdlib.h>
5128#else
5129char *malloc ();
5130#endif
5131
5132int
5133main ()
5134{
5135return ! malloc (0);
5136  ;
5137  return 0;
5138}
5139_ACEOF
5140rm -f conftest$ac_exeext
5141if { (ac_try="$ac_link"
5142case "(($ac_try" in
5143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5144  *) ac_try_echo=$ac_try;;
5145esac
5146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5147  (eval "$ac_link") 2>&5
5148  ac_status=$?
5149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5151  { (case "(($ac_try" in
5152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5153  *) ac_try_echo=$ac_try;;
5154esac
5155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5156  (eval "$ac_try") 2>&5
5157  ac_status=$?
5158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159  (exit $ac_status); }; }; then
5160  ac_cv_func_malloc_0_nonnull=yes
5161else
5162  echo "$as_me: program exited with status $ac_status" >&5
5163echo "$as_me: failed program was:" >&5
5164sed 's/^/| /' conftest.$ac_ext >&5
5165
5166( exit $ac_status )
5167ac_cv_func_malloc_0_nonnull=no
5168fi
5169rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5170fi
5171
5172
5173fi
5174{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
5175echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
5176if test $ac_cv_func_malloc_0_nonnull = yes; then
5177
5178cat >>confdefs.h <<\_ACEOF
5179#define HAVE_MALLOC 1
5180_ACEOF
5181
5182else
5183  cat >>confdefs.h <<\_ACEOF
5184#define HAVE_MALLOC 0
5185_ACEOF
5186
5187   case " $LIBOBJS " in
5188  *" malloc.$ac_objext "* ) ;;
5189  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
5190 ;;
5191esac
5192
5193
5194cat >>confdefs.h <<\_ACEOF
5195#define malloc rpl_malloc
5196_ACEOF
5197
5198fi
5199
5200
5201
5202{ echo "$as_me:$LINENO: checking for working memcmp" >&5
5203echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
5204if test "${ac_cv_func_memcmp_working+set}" = set; then
5205  echo $ECHO_N "(cached) $ECHO_C" >&6
5206else
5207  if test "$cross_compiling" = yes; then
5208  ac_cv_func_memcmp_working=no
5209else
5210  cat >conftest.$ac_ext <<_ACEOF
5211/* confdefs.h.  */
5212_ACEOF
5213cat confdefs.h >>conftest.$ac_ext
5214cat >>conftest.$ac_ext <<_ACEOF
5215/* end confdefs.h.  */
5216$ac_includes_default
5217int
5218main ()
5219{
5220
5221  /* Some versions of memcmp are not 8-bit clean.  */
5222  char c0 = '\100', c1 = '\200', c2 = '\201';
5223  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5224    return 1;
5225
5226  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5227     or more and with at least one buffer not starting on a 4-byte boundary.
5228     William Lewis provided this test program.   */
5229  {
5230    char foo[21];
5231    char bar[21];
5232    int i;
5233    for (i = 0; i < 4; i++)
5234      {
5235	char *a = foo + i;
5236	char *b = bar + i;
5237	strcpy (a, "--------01111111");
5238	strcpy (b, "--------10000000");
5239	if (memcmp (a, b, 16) >= 0)
5240	  return 1;
5241      }
5242    return 0;
5243  }
5244
5245  ;
5246  return 0;
5247}
5248_ACEOF
5249rm -f conftest$ac_exeext
5250if { (ac_try="$ac_link"
5251case "(($ac_try" in
5252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5253  *) ac_try_echo=$ac_try;;
5254esac
5255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5256  (eval "$ac_link") 2>&5
5257  ac_status=$?
5258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5260  { (case "(($ac_try" in
5261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262  *) ac_try_echo=$ac_try;;
5263esac
5264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5265  (eval "$ac_try") 2>&5
5266  ac_status=$?
5267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268  (exit $ac_status); }; }; then
5269  ac_cv_func_memcmp_working=yes
5270else
5271  echo "$as_me: program exited with status $ac_status" >&5
5272echo "$as_me: failed program was:" >&5
5273sed 's/^/| /' conftest.$ac_ext >&5
5274
5275( exit $ac_status )
5276ac_cv_func_memcmp_working=no
5277fi
5278rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5279fi
5280
5281
5282fi
5283{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
5284echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
5285test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
5286  *" memcmp.$ac_objext "* ) ;;
5287  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
5288 ;;
5289esac
5290
5291
5292
5293for ac_header in stdlib.h
5294do
5295as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5296if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5297  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5298echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5299if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5300  echo $ECHO_N "(cached) $ECHO_C" >&6
5301fi
5302ac_res=`eval echo '${'$as_ac_Header'}'`
5303	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5304echo "${ECHO_T}$ac_res" >&6; }
5305else
5306  # Is the header compilable?
5307{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5308echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5309cat >conftest.$ac_ext <<_ACEOF
5310/* confdefs.h.  */
5311_ACEOF
5312cat confdefs.h >>conftest.$ac_ext
5313cat >>conftest.$ac_ext <<_ACEOF
5314/* end confdefs.h.  */
5315$ac_includes_default
5316#include <$ac_header>
5317_ACEOF
5318rm -f conftest.$ac_objext
5319if { (ac_try="$ac_compile"
5320case "(($ac_try" in
5321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5322  *) ac_try_echo=$ac_try;;
5323esac
5324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5325  (eval "$ac_compile") 2>conftest.er1
5326  ac_status=$?
5327  grep -v '^ *+' conftest.er1 >conftest.err
5328  rm -f conftest.er1
5329  cat conftest.err >&5
5330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331  (exit $ac_status); } && {
5332	 test -z "$ac_c_werror_flag" ||
5333	 test ! -s conftest.err
5334       } && test -s conftest.$ac_objext; then
5335  ac_header_compiler=yes
5336else
5337  echo "$as_me: failed program was:" >&5
5338sed 's/^/| /' conftest.$ac_ext >&5
5339
5340	ac_header_compiler=no
5341fi
5342
5343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5344{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5345echo "${ECHO_T}$ac_header_compiler" >&6; }
5346
5347# Is the header present?
5348{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5349echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5350cat >conftest.$ac_ext <<_ACEOF
5351/* confdefs.h.  */
5352_ACEOF
5353cat confdefs.h >>conftest.$ac_ext
5354cat >>conftest.$ac_ext <<_ACEOF
5355/* end confdefs.h.  */
5356#include <$ac_header>
5357_ACEOF
5358if { (ac_try="$ac_cpp conftest.$ac_ext"
5359case "(($ac_try" in
5360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5361  *) ac_try_echo=$ac_try;;
5362esac
5363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5364  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5365  ac_status=$?
5366  grep -v '^ *+' conftest.er1 >conftest.err
5367  rm -f conftest.er1
5368  cat conftest.err >&5
5369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370  (exit $ac_status); } >/dev/null && {
5371	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5372	 test ! -s conftest.err
5373       }; then
5374  ac_header_preproc=yes
5375else
5376  echo "$as_me: failed program was:" >&5
5377sed 's/^/| /' conftest.$ac_ext >&5
5378
5379  ac_header_preproc=no
5380fi
5381
5382rm -f conftest.err conftest.$ac_ext
5383{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5384echo "${ECHO_T}$ac_header_preproc" >&6; }
5385
5386# So?  What about this header?
5387case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5388  yes:no: )
5389    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5390echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5391    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5392echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5393    ac_header_preproc=yes
5394    ;;
5395  no:yes:* )
5396    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5397echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5398    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5399echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5400    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5401echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5402    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5403echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5404    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5405echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5406    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5407echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5408    ( cat <<\_ASBOX
5409## -------------------------------- ##
5410## Report this to trasz@FreeBSD.org ##
5411## -------------------------------- ##
5412_ASBOX
5413     ) | sed "s/^/$as_me: WARNING:     /" >&2
5414    ;;
5415esac
5416{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5417echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5418if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5419  echo $ECHO_N "(cached) $ECHO_C" >&6
5420else
5421  eval "$as_ac_Header=\$ac_header_preproc"
5422fi
5423ac_res=`eval echo '${'$as_ac_Header'}'`
5424	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5425echo "${ECHO_T}$ac_res" >&6; }
5426
5427fi
5428if test `eval echo '${'$as_ac_Header'}'` = yes; then
5429  cat >>confdefs.h <<_ACEOF
5430#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5431_ACEOF
5432
5433fi
5434
5435done
5436
5437{ echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
5438echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
5439if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
5440  echo $ECHO_N "(cached) $ECHO_C" >&6
5441else
5442  if test "$cross_compiling" = yes; then
5443  ac_cv_func_realloc_0_nonnull=no
5444else
5445  cat >conftest.$ac_ext <<_ACEOF
5446/* confdefs.h.  */
5447_ACEOF
5448cat confdefs.h >>conftest.$ac_ext
5449cat >>conftest.$ac_ext <<_ACEOF
5450/* end confdefs.h.  */
5451#if defined STDC_HEADERS || defined HAVE_STDLIB_H
5452# include <stdlib.h>
5453#else
5454char *realloc ();
5455#endif
5456
5457int
5458main ()
5459{
5460return ! realloc (0, 0);
5461  ;
5462  return 0;
5463}
5464_ACEOF
5465rm -f conftest$ac_exeext
5466if { (ac_try="$ac_link"
5467case "(($ac_try" in
5468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5469  *) ac_try_echo=$ac_try;;
5470esac
5471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5472  (eval "$ac_link") 2>&5
5473  ac_status=$?
5474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5476  { (case "(($ac_try" in
5477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5478  *) ac_try_echo=$ac_try;;
5479esac
5480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5481  (eval "$ac_try") 2>&5
5482  ac_status=$?
5483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484  (exit $ac_status); }; }; then
5485  ac_cv_func_realloc_0_nonnull=yes
5486else
5487  echo "$as_me: program exited with status $ac_status" >&5
5488echo "$as_me: failed program was:" >&5
5489sed 's/^/| /' conftest.$ac_ext >&5
5490
5491( exit $ac_status )
5492ac_cv_func_realloc_0_nonnull=no
5493fi
5494rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5495fi
5496
5497
5498fi
5499{ echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
5500echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
5501if test $ac_cv_func_realloc_0_nonnull = yes; then
5502
5503cat >>confdefs.h <<\_ACEOF
5504#define HAVE_REALLOC 1
5505_ACEOF
5506
5507else
5508  cat >>confdefs.h <<\_ACEOF
5509#define HAVE_REALLOC 0
5510_ACEOF
5511
5512   case " $LIBOBJS " in
5513  *" realloc.$ac_objext "* ) ;;
5514  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
5515 ;;
5516esac
5517
5518
5519cat >>confdefs.h <<\_ACEOF
5520#define realloc rpl_realloc
5521_ACEOF
5522
5523fi
5524
5525
5526
5527{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5528echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
5529if test "${ac_cv_type_signal+set}" = set; then
5530  echo $ECHO_N "(cached) $ECHO_C" >&6
5531else
5532  cat >conftest.$ac_ext <<_ACEOF
5533/* confdefs.h.  */
5534_ACEOF
5535cat confdefs.h >>conftest.$ac_ext
5536cat >>conftest.$ac_ext <<_ACEOF
5537/* end confdefs.h.  */
5538#include <sys/types.h>
5539#include <signal.h>
5540
5541int
5542main ()
5543{
5544return *(signal (0, 0)) (0) == 1;
5545  ;
5546  return 0;
5547}
5548_ACEOF
5549rm -f conftest.$ac_objext
5550if { (ac_try="$ac_compile"
5551case "(($ac_try" in
5552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5553  *) ac_try_echo=$ac_try;;
5554esac
5555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5556  (eval "$ac_compile") 2>conftest.er1
5557  ac_status=$?
5558  grep -v '^ *+' conftest.er1 >conftest.err
5559  rm -f conftest.er1
5560  cat conftest.err >&5
5561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562  (exit $ac_status); } && {
5563	 test -z "$ac_c_werror_flag" ||
5564	 test ! -s conftest.err
5565       } && test -s conftest.$ac_objext; then
5566  ac_cv_type_signal=int
5567else
5568  echo "$as_me: failed program was:" >&5
5569sed 's/^/| /' conftest.$ac_ext >&5
5570
5571	ac_cv_type_signal=void
5572fi
5573
5574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5575fi
5576{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5577echo "${ECHO_T}$ac_cv_type_signal" >&6; }
5578
5579cat >>confdefs.h <<_ACEOF
5580#define RETSIGTYPE $ac_cv_type_signal
5581_ACEOF
5582
5583
5584{ echo "$as_me:$LINENO: checking for working strtod" >&5
5585echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
5586if test "${ac_cv_func_strtod+set}" = set; then
5587  echo $ECHO_N "(cached) $ECHO_C" >&6
5588else
5589  if test "$cross_compiling" = yes; then
5590  ac_cv_func_strtod=no
5591else
5592  cat >conftest.$ac_ext <<_ACEOF
5593/* confdefs.h.  */
5594_ACEOF
5595cat confdefs.h >>conftest.$ac_ext
5596cat >>conftest.$ac_ext <<_ACEOF
5597/* end confdefs.h.  */
5598
5599$ac_includes_default
5600#ifndef strtod
5601double strtod ();
5602#endif
5603int
5604main()
5605{
5606  {
5607    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
5608    char *string = " +69";
5609    char *term;
5610    double value;
5611    value = strtod (string, &term);
5612    if (value != 69 || term != (string + 4))
5613      return 1;
5614  }
5615
5616  {
5617    /* Under Solaris 2.4, strtod returns the wrong value for the
5618       terminating character under some conditions.  */
5619    char *string = "NaN";
5620    char *term;
5621    strtod (string, &term);
5622    if (term != string && *(term - 1) == 0)
5623      return 1;
5624  }
5625  return 0;
5626}
5627
5628_ACEOF
5629rm -f conftest$ac_exeext
5630if { (ac_try="$ac_link"
5631case "(($ac_try" in
5632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633  *) ac_try_echo=$ac_try;;
5634esac
5635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636  (eval "$ac_link") 2>&5
5637  ac_status=$?
5638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5640  { (case "(($ac_try" in
5641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5642  *) ac_try_echo=$ac_try;;
5643esac
5644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5645  (eval "$ac_try") 2>&5
5646  ac_status=$?
5647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648  (exit $ac_status); }; }; then
5649  ac_cv_func_strtod=yes
5650else
5651  echo "$as_me: program exited with status $ac_status" >&5
5652echo "$as_me: failed program was:" >&5
5653sed 's/^/| /' conftest.$ac_ext >&5
5654
5655( exit $ac_status )
5656ac_cv_func_strtod=no
5657fi
5658rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5659fi
5660
5661
5662fi
5663{ echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
5664echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
5665if test $ac_cv_func_strtod = no; then
5666  case " $LIBOBJS " in
5667  *" strtod.$ac_objext "* ) ;;
5668  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
5669 ;;
5670esac
5671
5672{ echo "$as_me:$LINENO: checking for pow" >&5
5673echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
5674if test "${ac_cv_func_pow+set}" = set; then
5675  echo $ECHO_N "(cached) $ECHO_C" >&6
5676else
5677  cat >conftest.$ac_ext <<_ACEOF
5678/* confdefs.h.  */
5679_ACEOF
5680cat confdefs.h >>conftest.$ac_ext
5681cat >>conftest.$ac_ext <<_ACEOF
5682/* end confdefs.h.  */
5683/* Define pow to an innocuous variant, in case <limits.h> declares pow.
5684   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5685#define pow innocuous_pow
5686
5687/* System header to define __stub macros and hopefully few prototypes,
5688    which can conflict with char pow (); below.
5689    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5690    <limits.h> exists even on freestanding compilers.  */
5691
5692#ifdef __STDC__
5693# include <limits.h>
5694#else
5695# include <assert.h>
5696#endif
5697
5698#undef pow
5699
5700/* Override any GCC internal prototype to avoid an error.
5701   Use char because int might match the return type of a GCC
5702   builtin and then its argument prototype would still apply.  */
5703#ifdef __cplusplus
5704extern "C"
5705#endif
5706char pow ();
5707/* The GNU C library defines this for functions which it implements
5708    to always fail with ENOSYS.  Some functions are actually named
5709    something starting with __ and the normal name is an alias.  */
5710#if defined __stub_pow || defined __stub___pow
5711choke me
5712#endif
5713
5714int
5715main ()
5716{
5717return pow ();
5718  ;
5719  return 0;
5720}
5721_ACEOF
5722rm -f conftest.$ac_objext conftest$ac_exeext
5723if { (ac_try="$ac_link"
5724case "(($ac_try" in
5725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726  *) ac_try_echo=$ac_try;;
5727esac
5728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5729  (eval "$ac_link") 2>conftest.er1
5730  ac_status=$?
5731  grep -v '^ *+' conftest.er1 >conftest.err
5732  rm -f conftest.er1
5733  cat conftest.err >&5
5734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735  (exit $ac_status); } && {
5736	 test -z "$ac_c_werror_flag" ||
5737	 test ! -s conftest.err
5738       } && test -s conftest$ac_exeext &&
5739       $as_test_x conftest$ac_exeext; then
5740  ac_cv_func_pow=yes
5741else
5742  echo "$as_me: failed program was:" >&5
5743sed 's/^/| /' conftest.$ac_ext >&5
5744
5745	ac_cv_func_pow=no
5746fi
5747
5748rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5749      conftest$ac_exeext conftest.$ac_ext
5750fi
5751{ echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
5752echo "${ECHO_T}$ac_cv_func_pow" >&6; }
5753
5754if test $ac_cv_func_pow = no; then
5755  { echo "$as_me:$LINENO: checking for pow in -lm" >&5
5756echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
5757if test "${ac_cv_lib_m_pow+set}" = set; then
5758  echo $ECHO_N "(cached) $ECHO_C" >&6
5759else
5760  ac_check_lib_save_LIBS=$LIBS
5761LIBS="-lm  $LIBS"
5762cat >conftest.$ac_ext <<_ACEOF
5763/* confdefs.h.  */
5764_ACEOF
5765cat confdefs.h >>conftest.$ac_ext
5766cat >>conftest.$ac_ext <<_ACEOF
5767/* end confdefs.h.  */
5768
5769/* Override any GCC internal prototype to avoid an error.
5770   Use char because int might match the return type of a GCC
5771   builtin and then its argument prototype would still apply.  */
5772#ifdef __cplusplus
5773extern "C"
5774#endif
5775char pow ();
5776int
5777main ()
5778{
5779return pow ();
5780  ;
5781  return 0;
5782}
5783_ACEOF
5784rm -f conftest.$ac_objext conftest$ac_exeext
5785if { (ac_try="$ac_link"
5786case "(($ac_try" in
5787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5788  *) ac_try_echo=$ac_try;;
5789esac
5790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5791  (eval "$ac_link") 2>conftest.er1
5792  ac_status=$?
5793  grep -v '^ *+' conftest.er1 >conftest.err
5794  rm -f conftest.er1
5795  cat conftest.err >&5
5796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797  (exit $ac_status); } && {
5798	 test -z "$ac_c_werror_flag" ||
5799	 test ! -s conftest.err
5800       } && test -s conftest$ac_exeext &&
5801       $as_test_x conftest$ac_exeext; then
5802  ac_cv_lib_m_pow=yes
5803else
5804  echo "$as_me: failed program was:" >&5
5805sed 's/^/| /' conftest.$ac_ext >&5
5806
5807	ac_cv_lib_m_pow=no
5808fi
5809
5810rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5811      conftest$ac_exeext conftest.$ac_ext
5812LIBS=$ac_check_lib_save_LIBS
5813fi
5814{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
5815echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
5816if test $ac_cv_lib_m_pow = yes; then
5817  POW_LIB=-lm
5818else
5819  { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
5820echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
5821fi
5822
5823fi
5824
5825fi
5826
5827
5828
5829
5830
5831
5832
5833for ac_func in gettimeofday memset pow strdup strerror strtol
5834do
5835as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5836{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5837echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5838if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5839  echo $ECHO_N "(cached) $ECHO_C" >&6
5840else
5841  cat >conftest.$ac_ext <<_ACEOF
5842/* confdefs.h.  */
5843_ACEOF
5844cat confdefs.h >>conftest.$ac_ext
5845cat >>conftest.$ac_ext <<_ACEOF
5846/* end confdefs.h.  */
5847/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5848   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5849#define $ac_func innocuous_$ac_func
5850
5851/* System header to define __stub macros and hopefully few prototypes,
5852    which can conflict with char $ac_func (); below.
5853    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5854    <limits.h> exists even on freestanding compilers.  */
5855
5856#ifdef __STDC__
5857# include <limits.h>
5858#else
5859# include <assert.h>
5860#endif
5861
5862#undef $ac_func
5863
5864/* Override any GCC internal prototype to avoid an error.
5865   Use char because int might match the return type of a GCC
5866   builtin and then its argument prototype would still apply.  */
5867#ifdef __cplusplus
5868extern "C"
5869#endif
5870char $ac_func ();
5871/* The GNU C library defines this for functions which it implements
5872    to always fail with ENOSYS.  Some functions are actually named
5873    something starting with __ and the normal name is an alias.  */
5874#if defined __stub_$ac_func || defined __stub___$ac_func
5875choke me
5876#endif
5877
5878int
5879main ()
5880{
5881return $ac_func ();
5882  ;
5883  return 0;
5884}
5885_ACEOF
5886rm -f conftest.$ac_objext conftest$ac_exeext
5887if { (ac_try="$ac_link"
5888case "(($ac_try" in
5889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5890  *) ac_try_echo=$ac_try;;
5891esac
5892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5893  (eval "$ac_link") 2>conftest.er1
5894  ac_status=$?
5895  grep -v '^ *+' conftest.er1 >conftest.err
5896  rm -f conftest.er1
5897  cat conftest.err >&5
5898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899  (exit $ac_status); } && {
5900	 test -z "$ac_c_werror_flag" ||
5901	 test ! -s conftest.err
5902       } && test -s conftest$ac_exeext &&
5903       $as_test_x conftest$ac_exeext; then
5904  eval "$as_ac_var=yes"
5905else
5906  echo "$as_me: failed program was:" >&5
5907sed 's/^/| /' conftest.$ac_ext >&5
5908
5909	eval "$as_ac_var=no"
5910fi
5911
5912rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5913      conftest$ac_exeext conftest.$ac_ext
5914fi
5915ac_res=`eval echo '${'$as_ac_var'}'`
5916	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5917echo "${ECHO_T}$ac_res" >&6; }
5918if test `eval echo '${'$as_ac_var'}'` = yes; then
5919  cat >>confdefs.h <<_ACEOF
5920#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5921_ACEOF
5922
5923fi
5924done
5925
5926
5927
5928
5929if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5930	if test -n "$ac_tool_prefix"; then
5931  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5932set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5933{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5935if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5936  echo $ECHO_N "(cached) $ECHO_C" >&6
5937else
5938  case $PKG_CONFIG in
5939  [\\/]* | ?:[\\/]*)
5940  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5941  ;;
5942  *)
5943  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944for as_dir in $PATH
5945do
5946  IFS=$as_save_IFS
5947  test -z "$as_dir" && as_dir=.
5948  for ac_exec_ext in '' $ac_executable_extensions; do
5949  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5950    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5951    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5952    break 2
5953  fi
5954done
5955done
5956IFS=$as_save_IFS
5957
5958  ;;
5959esac
5960fi
5961PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5962if test -n "$PKG_CONFIG"; then
5963  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5964echo "${ECHO_T}$PKG_CONFIG" >&6; }
5965else
5966  { echo "$as_me:$LINENO: result: no" >&5
5967echo "${ECHO_T}no" >&6; }
5968fi
5969
5970
5971fi
5972if test -z "$ac_cv_path_PKG_CONFIG"; then
5973  ac_pt_PKG_CONFIG=$PKG_CONFIG
5974  # Extract the first word of "pkg-config", so it can be a program name with args.
5975set dummy pkg-config; ac_word=$2
5976{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5978if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
5979  echo $ECHO_N "(cached) $ECHO_C" >&6
5980else
5981  case $ac_pt_PKG_CONFIG in
5982  [\\/]* | ?:[\\/]*)
5983  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5984  ;;
5985  *)
5986  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987for as_dir in $PATH
5988do
5989  IFS=$as_save_IFS
5990  test -z "$as_dir" && as_dir=.
5991  for ac_exec_ext in '' $ac_executable_extensions; do
5992  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5993    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5994    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5995    break 2
5996  fi
5997done
5998done
5999IFS=$as_save_IFS
6000
6001  ;;
6002esac
6003fi
6004ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6005if test -n "$ac_pt_PKG_CONFIG"; then
6006  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
6007echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
6008else
6009  { echo "$as_me:$LINENO: result: no" >&5
6010echo "${ECHO_T}no" >&6; }
6011fi
6012
6013  if test "x$ac_pt_PKG_CONFIG" = x; then
6014    PKG_CONFIG=""
6015  else
6016    case $cross_compiling:$ac_tool_warned in
6017yes:)
6018{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6019whose name does not start with the host triplet.  If you think this
6020configuration is useful to you, please write to autoconf@gnu.org." >&5
6021echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6022whose name does not start with the host triplet.  If you think this
6023configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6024ac_tool_warned=yes ;;
6025esac
6026    PKG_CONFIG=$ac_pt_PKG_CONFIG
6027  fi
6028else
6029  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6030fi
6031
6032fi
6033if test -n "$PKG_CONFIG"; then
6034	_pkg_min_version=0.9.0
6035	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
6036echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
6037	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6038		{ echo "$as_me:$LINENO: result: yes" >&5
6039echo "${ECHO_T}yes" >&6; }
6040	else
6041		{ echo "$as_me:$LINENO: result: no" >&5
6042echo "${ECHO_T}no" >&6; }
6043		PKG_CONFIG=""
6044	fi
6045
6046fi
6047
6048pkg_failed=no
6049{ echo "$as_me:$LINENO: checking for GLIB" >&5
6050echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
6051
6052if test -n "$GLIB_CFLAGS"; then
6053    pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
6054 elif test -n "$PKG_CONFIG"; then
6055    if test -n "$PKG_CONFIG" && \
6056    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.2\"") >&5
6057  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.2") 2>&5
6058  ac_status=$?
6059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060  (exit $ac_status); }; then
6061  pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.2" 2>/dev/null`
6062else
6063  pkg_failed=yes
6064fi
6065 else
6066    pkg_failed=untried
6067fi
6068if test -n "$GLIB_LIBS"; then
6069    pkg_cv_GLIB_LIBS="$GLIB_LIBS"
6070 elif test -n "$PKG_CONFIG"; then
6071    if test -n "$PKG_CONFIG" && \
6072    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.2\"") >&5
6073  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.2") 2>&5
6074  ac_status=$?
6075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076  (exit $ac_status); }; then
6077  pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.2" 2>/dev/null`
6078else
6079  pkg_failed=yes
6080fi
6081 else
6082    pkg_failed=untried
6083fi
6084
6085
6086
6087if test $pkg_failed = yes; then
6088
6089if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6090        _pkg_short_errors_supported=yes
6091else
6092        _pkg_short_errors_supported=no
6093fi
6094        if test $_pkg_short_errors_supported = yes; then
6095	        GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.2" 2>&1`
6096        else
6097	        GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.2" 2>&1`
6098        fi
6099	# Put the nasty error message in config.log where it belongs
6100	echo "$GLIB_PKG_ERRORS" >&5
6101
6102	{ { echo "$as_me:$LINENO: error: Package requirements (glib-2.0 >= 2.2) were not met:
6103
6104$GLIB_PKG_ERRORS
6105
6106Consider adjusting the PKG_CONFIG_PATH environment variable if you
6107installed software in a non-standard prefix.
6108
6109Alternatively, you may set the environment variables GLIB_CFLAGS
6110and GLIB_LIBS to avoid the need to call pkg-config.
6111See the pkg-config man page for more details.
6112" >&5
6113echo "$as_me: error: Package requirements (glib-2.0 >= 2.2) were not met:
6114
6115$GLIB_PKG_ERRORS
6116
6117Consider adjusting the PKG_CONFIG_PATH environment variable if you
6118installed software in a non-standard prefix.
6119
6120Alternatively, you may set the environment variables GLIB_CFLAGS
6121and GLIB_LIBS to avoid the need to call pkg-config.
6122See the pkg-config man page for more details.
6123" >&2;}
6124   { (exit 1); exit 1; }; }
6125elif test $pkg_failed = untried; then
6126	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
6127is in your PATH or set the PKG_CONFIG environment variable to the full
6128path to pkg-config.
6129
6130Alternatively, you may set the environment variables GLIB_CFLAGS
6131and GLIB_LIBS to avoid the need to call pkg-config.
6132See the pkg-config man page for more details.
6133
6134To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6135See \`config.log' for more details." >&5
6136echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
6137is in your PATH or set the PKG_CONFIG environment variable to the full
6138path to pkg-config.
6139
6140Alternatively, you may set the environment variables GLIB_CFLAGS
6141and GLIB_LIBS to avoid the need to call pkg-config.
6142See the pkg-config man page for more details.
6143
6144To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6145See \`config.log' for more details." >&2;}
6146   { (exit 1); exit 1; }; }
6147else
6148	GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
6149	GLIB_LIBS=$pkg_cv_GLIB_LIBS
6150        { echo "$as_me:$LINENO: result: yes" >&5
6151echo "${ECHO_T}yes" >&6; }
6152	:
6153fi
6154
6155
6156
6157
6158pkg_failed=no
6159{ echo "$as_me:$LINENO: checking for GTHREAD" >&5
6160echo $ECHO_N "checking for GTHREAD... $ECHO_C" >&6; }
6161
6162if test -n "$GTHREAD_CFLAGS"; then
6163    pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
6164 elif test -n "$PKG_CONFIG"; then
6165    if test -n "$PKG_CONFIG" && \
6166    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= 2.2\"") >&5
6167  ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= 2.2") 2>&5
6168  ac_status=$?
6169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170  (exit $ac_status); }; then
6171  pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0 >= 2.2" 2>/dev/null`
6172else
6173  pkg_failed=yes
6174fi
6175 else
6176    pkg_failed=untried
6177fi
6178if test -n "$GTHREAD_LIBS"; then
6179    pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
6180 elif test -n "$PKG_CONFIG"; then
6181    if test -n "$PKG_CONFIG" && \
6182    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= 2.2\"") >&5
6183  ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= 2.2") 2>&5
6184  ac_status=$?
6185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186  (exit $ac_status); }; then
6187  pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0 >= 2.2" 2>/dev/null`
6188else
6189  pkg_failed=yes
6190fi
6191 else
6192    pkg_failed=untried
6193fi
6194
6195
6196
6197if test $pkg_failed = yes; then
6198
6199if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6200        _pkg_short_errors_supported=yes
6201else
6202        _pkg_short_errors_supported=no
6203fi
6204        if test $_pkg_short_errors_supported = yes; then
6205	        GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gthread-2.0 >= 2.2" 2>&1`
6206        else
6207	        GTHREAD_PKG_ERRORS=`$PKG_CONFIG --print-errors "gthread-2.0 >= 2.2" 2>&1`
6208        fi
6209	# Put the nasty error message in config.log where it belongs
6210	echo "$GTHREAD_PKG_ERRORS" >&5
6211
6212	{ { echo "$as_me:$LINENO: error: Package requirements (gthread-2.0 >= 2.2) were not met:
6213
6214$GTHREAD_PKG_ERRORS
6215
6216Consider adjusting the PKG_CONFIG_PATH environment variable if you
6217installed software in a non-standard prefix.
6218
6219Alternatively, you may set the environment variables GTHREAD_CFLAGS
6220and GTHREAD_LIBS to avoid the need to call pkg-config.
6221See the pkg-config man page for more details.
6222" >&5
6223echo "$as_me: error: Package requirements (gthread-2.0 >= 2.2) were not met:
6224
6225$GTHREAD_PKG_ERRORS
6226
6227Consider adjusting the PKG_CONFIG_PATH environment variable if you
6228installed software in a non-standard prefix.
6229
6230Alternatively, you may set the environment variables GTHREAD_CFLAGS
6231and GTHREAD_LIBS to avoid the need to call pkg-config.
6232See the pkg-config man page for more details.
6233" >&2;}
6234   { (exit 1); exit 1; }; }
6235elif test $pkg_failed = untried; then
6236	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
6237is in your PATH or set the PKG_CONFIG environment variable to the full
6238path to pkg-config.
6239
6240Alternatively, you may set the environment variables GTHREAD_CFLAGS
6241and GTHREAD_LIBS to avoid the need to call pkg-config.
6242See the pkg-config man page for more details.
6243
6244To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6245See \`config.log' for more details." >&5
6246echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
6247is in your PATH or set the PKG_CONFIG environment variable to the full
6248path to pkg-config.
6249
6250Alternatively, you may set the environment variables GTHREAD_CFLAGS
6251and GTHREAD_LIBS to avoid the need to call pkg-config.
6252See the pkg-config man page for more details.
6253
6254To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6255See \`config.log' for more details." >&2;}
6256   { (exit 1); exit 1; }; }
6257else
6258	GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
6259	GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
6260        { echo "$as_me:$LINENO: result: yes" >&5
6261echo "${ECHO_T}yes" >&6; }
6262	:
6263fi
6264
6265
6266
6267
6268pkg_failed=no
6269{ echo "$as_me:$LINENO: checking for JACK" >&5
6270echo $ECHO_N "checking for JACK... $ECHO_C" >&6; }
6271
6272if test -n "$JACK_CFLAGS"; then
6273    pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
6274 elif test -n "$PKG_CONFIG"; then
6275    if test -n "$PKG_CONFIG" && \
6276    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"jack >= 0.102.0\"") >&5
6277  ($PKG_CONFIG --exists --print-errors "jack >= 0.102.0") 2>&5
6278  ac_status=$?
6279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280  (exit $ac_status); }; then
6281  pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.102.0" 2>/dev/null`
6282else
6283  pkg_failed=yes
6284fi
6285 else
6286    pkg_failed=untried
6287fi
6288if test -n "$JACK_LIBS"; then
6289    pkg_cv_JACK_LIBS="$JACK_LIBS"
6290 elif test -n "$PKG_CONFIG"; then
6291    if test -n "$PKG_CONFIG" && \
6292    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"jack >= 0.102.0\"") >&5
6293  ($PKG_CONFIG --exists --print-errors "jack >= 0.102.0") 2>&5
6294  ac_status=$?
6295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296  (exit $ac_status); }; then
6297  pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.102.0" 2>/dev/null`
6298else
6299  pkg_failed=yes
6300fi
6301 else
6302    pkg_failed=untried
6303fi
6304
6305
6306
6307if test $pkg_failed = yes; then
6308
6309if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6310        _pkg_short_errors_supported=yes
6311else
6312        _pkg_short_errors_supported=no
6313fi
6314        if test $_pkg_short_errors_supported = yes; then
6315	        JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "jack >= 0.102.0" 2>&1`
6316        else
6317	        JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors "jack >= 0.102.0" 2>&1`
6318        fi
6319	# Put the nasty error message in config.log where it belongs
6320	echo "$JACK_PKG_ERRORS" >&5
6321
6322	{ { echo "$as_me:$LINENO: error: Package requirements (jack >= 0.102.0) were not met:
6323
6324$JACK_PKG_ERRORS
6325
6326Consider adjusting the PKG_CONFIG_PATH environment variable if you
6327installed software in a non-standard prefix.
6328
6329Alternatively, you may set the environment variables JACK_CFLAGS
6330and JACK_LIBS to avoid the need to call pkg-config.
6331See the pkg-config man page for more details.
6332" >&5
6333echo "$as_me: error: Package requirements (jack >= 0.102.0) were not met:
6334
6335$JACK_PKG_ERRORS
6336
6337Consider adjusting the PKG_CONFIG_PATH environment variable if you
6338installed software in a non-standard prefix.
6339
6340Alternatively, you may set the environment variables JACK_CFLAGS
6341and JACK_LIBS to avoid the need to call pkg-config.
6342See the pkg-config man page for more details.
6343" >&2;}
6344   { (exit 1); exit 1; }; }
6345elif test $pkg_failed = untried; then
6346	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
6347is in your PATH or set the PKG_CONFIG environment variable to the full
6348path to pkg-config.
6349
6350Alternatively, you may set the environment variables JACK_CFLAGS
6351and JACK_LIBS to avoid the need to call pkg-config.
6352See the pkg-config man page for more details.
6353
6354To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6355See \`config.log' for more details." >&5
6356echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
6357is in your PATH or set the PKG_CONFIG environment variable to the full
6358path to pkg-config.
6359
6360Alternatively, you may set the environment variables JACK_CFLAGS
6361and JACK_LIBS to avoid the need to call pkg-config.
6362See the pkg-config man page for more details.
6363
6364To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6365See \`config.log' for more details." >&2;}
6366   { (exit 1); exit 1; }; }
6367else
6368	JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
6369	JACK_LIBS=$pkg_cv_JACK_LIBS
6370        { echo "$as_me:$LINENO: result: yes" >&5
6371echo "${ECHO_T}yes" >&6; }
6372	:
6373fi
6374
6375
6376
6377
6378pkg_failed=no
6379{ echo "$as_me:$LINENO: checking for JACK_MIDI_NEEDS_NFRAMES" >&5
6380echo $ECHO_N "checking for JACK_MIDI_NEEDS_NFRAMES... $ECHO_C" >&6; }
6381
6382if test -n "$JACK_MIDI_NEEDS_NFRAMES_CFLAGS"; then
6383    pkg_cv_JACK_MIDI_NEEDS_NFRAMES_CFLAGS="$JACK_MIDI_NEEDS_NFRAMES_CFLAGS"
6384 elif test -n "$PKG_CONFIG"; then
6385    if test -n "$PKG_CONFIG" && \
6386    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"jack < 0.105.00\"") >&5
6387  ($PKG_CONFIG --exists --print-errors "jack < 0.105.00") 2>&5
6388  ac_status=$?
6389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390  (exit $ac_status); }; then
6391  pkg_cv_JACK_MIDI_NEEDS_NFRAMES_CFLAGS=`$PKG_CONFIG --cflags "jack < 0.105.00" 2>/dev/null`
6392else
6393  pkg_failed=yes
6394fi
6395 else
6396    pkg_failed=untried
6397fi
6398if test -n "$JACK_MIDI_NEEDS_NFRAMES_LIBS"; then
6399    pkg_cv_JACK_MIDI_NEEDS_NFRAMES_LIBS="$JACK_MIDI_NEEDS_NFRAMES_LIBS"
6400 elif test -n "$PKG_CONFIG"; then
6401    if test -n "$PKG_CONFIG" && \
6402    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"jack < 0.105.00\"") >&5
6403  ($PKG_CONFIG --exists --print-errors "jack < 0.105.00") 2>&5
6404  ac_status=$?
6405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406  (exit $ac_status); }; then
6407  pkg_cv_JACK_MIDI_NEEDS_NFRAMES_LIBS=`$PKG_CONFIG --libs "jack < 0.105.00" 2>/dev/null`
6408else
6409  pkg_failed=yes
6410fi
6411 else
6412    pkg_failed=untried
6413fi
6414
6415
6416
6417if test $pkg_failed = yes; then
6418
6419if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6420        _pkg_short_errors_supported=yes
6421else
6422        _pkg_short_errors_supported=no
6423fi
6424        if test $_pkg_short_errors_supported = yes; then
6425	        JACK_MIDI_NEEDS_NFRAMES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "jack < 0.105.00" 2>&1`
6426        else
6427	        JACK_MIDI_NEEDS_NFRAMES_PKG_ERRORS=`$PKG_CONFIG --print-errors "jack < 0.105.00" 2>&1`
6428        fi
6429	# Put the nasty error message in config.log where it belongs
6430	echo "$JACK_MIDI_NEEDS_NFRAMES_PKG_ERRORS" >&5
6431
6432	{ echo "$as_me:$LINENO: result: no" >&5
6433echo "${ECHO_T}no" >&6; }
6434                true
6435elif test $pkg_failed = untried; then
6436	true
6437else
6438	JACK_MIDI_NEEDS_NFRAMES_CFLAGS=$pkg_cv_JACK_MIDI_NEEDS_NFRAMES_CFLAGS
6439	JACK_MIDI_NEEDS_NFRAMES_LIBS=$pkg_cv_JACK_MIDI_NEEDS_NFRAMES_LIBS
6440        { echo "$as_me:$LINENO: result: yes" >&5
6441echo "${ECHO_T}yes" >&6; }
6442
6443cat >>confdefs.h <<\_ACEOF
6444#define JACK_MIDI_NEEDS_NFRAMES 1
6445_ACEOF
6446
6447fi
6448
6449
6450# Check whether --with-lash was given.
6451if test "${with_lash+set}" = set; then
6452  withval=$with_lash;
6453else
6454  with_lash=check
6455fi
6456
6457
6458if test "x$with_lash" != xno; then
6459
6460pkg_failed=no
6461{ echo "$as_me:$LINENO: checking for LASH" >&5
6462echo $ECHO_N "checking for LASH... $ECHO_C" >&6; }
6463
6464if test -n "$LASH_CFLAGS"; then
6465    pkg_cv_LASH_CFLAGS="$LASH_CFLAGS"
6466 elif test -n "$PKG_CONFIG"; then
6467    if test -n "$PKG_CONFIG" && \
6468    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lash-1.0\"") >&5
6469  ($PKG_CONFIG --exists --print-errors "lash-1.0") 2>&5
6470  ac_status=$?
6471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472  (exit $ac_status); }; then
6473  pkg_cv_LASH_CFLAGS=`$PKG_CONFIG --cflags "lash-1.0" 2>/dev/null`
6474else
6475  pkg_failed=yes
6476fi
6477 else
6478    pkg_failed=untried
6479fi
6480if test -n "$LASH_LIBS"; then
6481    pkg_cv_LASH_LIBS="$LASH_LIBS"
6482 elif test -n "$PKG_CONFIG"; then
6483    if test -n "$PKG_CONFIG" && \
6484    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lash-1.0\"") >&5
6485  ($PKG_CONFIG --exists --print-errors "lash-1.0") 2>&5
6486  ac_status=$?
6487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488  (exit $ac_status); }; then
6489  pkg_cv_LASH_LIBS=`$PKG_CONFIG --libs "lash-1.0" 2>/dev/null`
6490else
6491  pkg_failed=yes
6492fi
6493 else
6494    pkg_failed=untried
6495fi
6496
6497
6498
6499if test $pkg_failed = yes; then
6500
6501if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6502        _pkg_short_errors_supported=yes
6503else
6504        _pkg_short_errors_supported=no
6505fi
6506        if test $_pkg_short_errors_supported = yes; then
6507	        LASH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lash-1.0" 2>&1`
6508        else
6509	        LASH_PKG_ERRORS=`$PKG_CONFIG --print-errors "lash-1.0" 2>&1`
6510        fi
6511	# Put the nasty error message in config.log where it belongs
6512	echo "$LASH_PKG_ERRORS" >&5
6513
6514	{ echo "$as_me:$LINENO: result: no" >&5
6515echo "${ECHO_T}no" >&6; }
6516                if test "x$with_lash" != xcheck; then
6517       { { echo "$as_me:$LINENO: error: --with-lash was given, but LASH was not found
6518See \`config.log' for more details." >&5
6519echo "$as_me: error: --with-lash was given, but LASH was not found
6520See \`config.log' for more details." >&2;}
6521   { (exit 1); exit 1; }; }
6522       fi
6523
6524elif test $pkg_failed = untried; then
6525	if test "x$with_lash" != xcheck; then
6526       { { echo "$as_me:$LINENO: error: --with-lash was given, but LASH was not found
6527See \`config.log' for more details." >&5
6528echo "$as_me: error: --with-lash was given, but LASH was not found
6529See \`config.log' for more details." >&2;}
6530   { (exit 1); exit 1; }; }
6531       fi
6532
6533else
6534	LASH_CFLAGS=$pkg_cv_LASH_CFLAGS
6535	LASH_LIBS=$pkg_cv_LASH_LIBS
6536        { echo "$as_me:$LINENO: result: yes" >&5
6537echo "${ECHO_T}yes" >&6; }
6538
6539cat >>confdefs.h <<\_ACEOF
6540#define HAVE_LASH
6541_ACEOF
6542
6543fi
6544fi
6545
6546
6547
6548
6549
6550ac_config_files="$ac_config_files Makefile libsmf/Makefile man/Makefile src/Makefile"
6551
6552cat >confcache <<\_ACEOF
6553# This file is a shell script that caches the results of configure
6554# tests run on this system so they can be shared between configure
6555# scripts and configure runs, see configure's option --config-cache.
6556# It is not useful on other systems.  If it contains results you don't
6557# want to keep, you may remove or edit it.
6558#
6559# config.status only pays attention to the cache file if you give it
6560# the --recheck option to rerun configure.
6561#
6562# `ac_cv_env_foo' variables (set or unset) will be overridden when
6563# loading this file, other *unset* `ac_cv_foo' will be assigned the
6564# following values.
6565
6566_ACEOF
6567
6568# The following way of writing the cache mishandles newlines in values,
6569# but we know of no workaround that is simple, portable, and efficient.
6570# So, we kill variables containing newlines.
6571# Ultrix sh set writes to stderr and can't be redirected directly,
6572# and sets the high bit in the cache file unless we assign to the vars.
6573(
6574  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6575    eval ac_val=\$$ac_var
6576    case $ac_val in #(
6577    *${as_nl}*)
6578      case $ac_var in #(
6579      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6580echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6581      esac
6582      case $ac_var in #(
6583      _ | IFS | as_nl) ;; #(
6584      *) $as_unset $ac_var ;;
6585      esac ;;
6586    esac
6587  done
6588
6589  (set) 2>&1 |
6590    case $as_nl`(ac_space=' '; set) 2>&1` in #(
6591    *${as_nl}ac_space=\ *)
6592      # `set' does not quote correctly, so add quotes (double-quote
6593      # substitution turns \\\\ into \\, and sed turns \\ into \).
6594      sed -n \
6595	"s/'/'\\\\''/g;
6596	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6597      ;; #(
6598    *)
6599      # `set' quotes correctly as required by POSIX, so do not add quotes.
6600      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6601      ;;
6602    esac |
6603    sort
6604) |
6605  sed '
6606     /^ac_cv_env_/b end
6607     t clear
6608     :clear
6609     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6610     t end
6611     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6612     :end' >>confcache
6613if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6614  if test -w "$cache_file"; then
6615    test "x$cache_file" != "x/dev/null" &&
6616      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6617echo "$as_me: updating cache $cache_file" >&6;}
6618    cat confcache >$cache_file
6619  else
6620    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6621echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6622  fi
6623fi
6624rm -f confcache
6625
6626test "x$prefix" = xNONE && prefix=$ac_default_prefix
6627# Let make expand exec_prefix.
6628test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6629
6630DEFS=-DHAVE_CONFIG_H
6631
6632ac_libobjs=
6633ac_ltlibobjs=
6634for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6635  # 1. Remove the extension, and $U if already installed.
6636  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6637  ac_i=`echo "$ac_i" | sed "$ac_script"`
6638  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6639  #    will be set to the directory where LIBOBJS objects are built.
6640  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6641  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6642done
6643LIBOBJS=$ac_libobjs
6644
6645LTLIBOBJS=$ac_ltlibobjs
6646
6647
6648if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6649  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6650Usually this means the macro was only invoked conditionally." >&5
6651echo "$as_me: error: conditional \"AMDEP\" was never defined.
6652Usually this means the macro was only invoked conditionally." >&2;}
6653   { (exit 1); exit 1; }; }
6654fi
6655if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6656  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6657Usually this means the macro was only invoked conditionally." >&5
6658echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6659Usually this means the macro was only invoked conditionally." >&2;}
6660   { (exit 1); exit 1; }; }
6661fi
6662
6663: ${CONFIG_STATUS=./config.status}
6664ac_clean_files_save=$ac_clean_files
6665ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6666{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6667echo "$as_me: creating $CONFIG_STATUS" >&6;}
6668cat >$CONFIG_STATUS <<_ACEOF
6669#! $SHELL
6670# Generated by $as_me.
6671# Run this file to recreate the current configuration.
6672# Compiler output produced by configure, useful for debugging
6673# configure, is in config.log if it exists.
6674
6675debug=false
6676ac_cs_recheck=false
6677ac_cs_silent=false
6678SHELL=\${CONFIG_SHELL-$SHELL}
6679_ACEOF
6680
6681cat >>$CONFIG_STATUS <<\_ACEOF
6682## --------------------- ##
6683## M4sh Initialization.  ##
6684## --------------------- ##
6685
6686# Be more Bourne compatible
6687DUALCASE=1; export DUALCASE # for MKS sh
6688if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6689  emulate sh
6690  NULLCMD=:
6691  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6692  # is contrary to our usage.  Disable this feature.
6693  alias -g '${1+"$@"}'='"$@"'
6694  setopt NO_GLOB_SUBST
6695else
6696  case `(set -o) 2>/dev/null` in
6697  *posix*) set -o posix ;;
6698esac
6699
6700fi
6701
6702
6703
6704
6705# PATH needs CR
6706# Avoid depending upon Character Ranges.
6707as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6708as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6709as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6710as_cr_digits='0123456789'
6711as_cr_alnum=$as_cr_Letters$as_cr_digits
6712
6713# The user is always right.
6714if test "${PATH_SEPARATOR+set}" != set; then
6715  echo "#! /bin/sh" >conf$$.sh
6716  echo  "exit 0"   >>conf$$.sh
6717  chmod +x conf$$.sh
6718  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6719    PATH_SEPARATOR=';'
6720  else
6721    PATH_SEPARATOR=:
6722  fi
6723  rm -f conf$$.sh
6724fi
6725
6726# Support unset when possible.
6727if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6728  as_unset=unset
6729else
6730  as_unset=false
6731fi
6732
6733
6734# IFS
6735# We need space, tab and new line, in precisely that order.  Quoting is
6736# there to prevent editors from complaining about space-tab.
6737# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6738# splitting by setting IFS to empty value.)
6739as_nl='
6740'
6741IFS=" ""	$as_nl"
6742
6743# Find who we are.  Look in the path if we contain no directory separator.
6744case $0 in
6745  *[\\/]* ) as_myself=$0 ;;
6746  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747for as_dir in $PATH
6748do
6749  IFS=$as_save_IFS
6750  test -z "$as_dir" && as_dir=.
6751  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6752done
6753IFS=$as_save_IFS
6754
6755     ;;
6756esac
6757# We did not find ourselves, most probably we were run as `sh COMMAND'
6758# in which case we are not to be found in the path.
6759if test "x$as_myself" = x; then
6760  as_myself=$0
6761fi
6762if test ! -f "$as_myself"; then
6763  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6764  { (exit 1); exit 1; }
6765fi
6766
6767# Work around bugs in pre-3.0 UWIN ksh.
6768for as_var in ENV MAIL MAILPATH
6769do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6770done
6771PS1='$ '
6772PS2='> '
6773PS4='+ '
6774
6775# NLS nuisances.
6776for as_var in \
6777  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6778  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6779  LC_TELEPHONE LC_TIME
6780do
6781  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6782    eval $as_var=C; export $as_var
6783  else
6784    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6785  fi
6786done
6787
6788# Required to use basename.
6789if expr a : '\(a\)' >/dev/null 2>&1 &&
6790   test "X`expr 00001 : '.*\(...\)'`" = X001; then
6791  as_expr=expr
6792else
6793  as_expr=false
6794fi
6795
6796if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6797  as_basename=basename
6798else
6799  as_basename=false
6800fi
6801
6802
6803# Name of the executable.
6804as_me=`$as_basename -- "$0" ||
6805$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6806	 X"$0" : 'X\(//\)$' \| \
6807	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6808echo X/"$0" |
6809    sed '/^.*\/\([^/][^/]*\)\/*$/{
6810	    s//\1/
6811	    q
6812	  }
6813	  /^X\/\(\/\/\)$/{
6814	    s//\1/
6815	    q
6816	  }
6817	  /^X\/\(\/\).*/{
6818	    s//\1/
6819	    q
6820	  }
6821	  s/.*/./; q'`
6822
6823# CDPATH.
6824$as_unset CDPATH
6825
6826
6827
6828  as_lineno_1=$LINENO
6829  as_lineno_2=$LINENO
6830  test "x$as_lineno_1" != "x$as_lineno_2" &&
6831  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
6832
6833  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6834  # uniformly replaced by the line number.  The first 'sed' inserts a
6835  # line-number line after each line using $LINENO; the second 'sed'
6836  # does the real work.  The second script uses 'N' to pair each
6837  # line-number line with the line containing $LINENO, and appends
6838  # trailing '-' during substitution so that $LINENO is not a special
6839  # case at line end.
6840  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6841  # scripts with optimization help from Paolo Bonzini.  Blame Lee
6842  # E. McMahon (1931-1989) for sed's syntax.  :-)
6843  sed -n '
6844    p
6845    /[$]LINENO/=
6846  ' <$as_myself |
6847    sed '
6848      s/[$]LINENO.*/&-/
6849      t lineno
6850      b
6851      :lineno
6852      N
6853      :loop
6854      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6855      t loop
6856      s/-\n.*//
6857    ' >$as_me.lineno &&
6858  chmod +x "$as_me.lineno" ||
6859    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6860   { (exit 1); exit 1; }; }
6861
6862  # Don't try to exec as it changes $[0], causing all sort of problems
6863  # (the dirname of $[0] is not the place where we might find the
6864  # original and so on.  Autoconf is especially sensitive to this).
6865  . "./$as_me.lineno"
6866  # Exit status is that of the last command.
6867  exit
6868}
6869
6870
6871if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6872  as_dirname=dirname
6873else
6874  as_dirname=false
6875fi
6876
6877ECHO_C= ECHO_N= ECHO_T=
6878case `echo -n x` in
6879-n*)
6880  case `echo 'x\c'` in
6881  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
6882  *)   ECHO_C='\c';;
6883  esac;;
6884*)
6885  ECHO_N='-n';;
6886esac
6887
6888if expr a : '\(a\)' >/dev/null 2>&1 &&
6889   test "X`expr 00001 : '.*\(...\)'`" = X001; then
6890  as_expr=expr
6891else
6892  as_expr=false
6893fi
6894
6895rm -f conf$$ conf$$.exe conf$$.file
6896if test -d conf$$.dir; then
6897  rm -f conf$$.dir/conf$$.file
6898else
6899  rm -f conf$$.dir
6900  mkdir conf$$.dir
6901fi
6902echo >conf$$.file
6903if ln -s conf$$.file conf$$ 2>/dev/null; then
6904  as_ln_s='ln -s'
6905  # ... but there are two gotchas:
6906  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6907  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6908  # In both cases, we have to default to `cp -p'.
6909  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6910    as_ln_s='cp -p'
6911elif ln conf$$.file conf$$ 2>/dev/null; then
6912  as_ln_s=ln
6913else
6914  as_ln_s='cp -p'
6915fi
6916rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6917rmdir conf$$.dir 2>/dev/null
6918
6919if mkdir -p . 2>/dev/null; then
6920  as_mkdir_p=:
6921else
6922  test -d ./-p && rmdir ./-p
6923  as_mkdir_p=false
6924fi
6925
6926if test -x / >/dev/null 2>&1; then
6927  as_test_x='test -x'
6928else
6929  if ls -dL / >/dev/null 2>&1; then
6930    as_ls_L_option=L
6931  else
6932    as_ls_L_option=
6933  fi
6934  as_test_x='
6935    eval sh -c '\''
6936      if test -d "$1"; then
6937        test -d "$1/.";
6938      else
6939	case $1 in
6940        -*)set "./$1";;
6941	esac;
6942	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
6943	???[sx]*):;;*)false;;esac;fi
6944    '\'' sh
6945  '
6946fi
6947as_executable_p=$as_test_x
6948
6949# Sed expression to map a string onto a valid CPP name.
6950as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6951
6952# Sed expression to map a string onto a valid variable name.
6953as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6954
6955
6956exec 6>&1
6957
6958# Save the log message, to keep $[0] and so on meaningful, and to
6959# report actual input values of CONFIG_FILES etc. instead of their
6960# values after options handling.
6961ac_log="
6962This file was extended by jack-smf-utils $as_me 1.0, which was
6963generated by GNU Autoconf 2.61.  Invocation command line was
6964
6965  CONFIG_FILES    = $CONFIG_FILES
6966  CONFIG_HEADERS  = $CONFIG_HEADERS
6967  CONFIG_LINKS    = $CONFIG_LINKS
6968  CONFIG_COMMANDS = $CONFIG_COMMANDS
6969  $ $0 $@
6970
6971on `(hostname || uname -n) 2>/dev/null | sed 1q`
6972"
6973
6974_ACEOF
6975
6976cat >>$CONFIG_STATUS <<_ACEOF
6977# Files that config.status was made for.
6978config_files="$ac_config_files"
6979config_headers="$ac_config_headers"
6980config_commands="$ac_config_commands"
6981
6982_ACEOF
6983
6984cat >>$CONFIG_STATUS <<\_ACEOF
6985ac_cs_usage="\
6986\`$as_me' instantiates files from templates according to the
6987current configuration.
6988
6989Usage: $0 [OPTIONS] [FILE]...
6990
6991  -h, --help       print this help, then exit
6992  -V, --version    print version number and configuration settings, then exit
6993  -q, --quiet      do not print progress messages
6994  -d, --debug      don't remove temporary files
6995      --recheck    update $as_me by reconfiguring in the same conditions
6996  --file=FILE[:TEMPLATE]
6997		   instantiate the configuration file FILE
6998  --header=FILE[:TEMPLATE]
6999		   instantiate the configuration header FILE
7000
7001Configuration files:
7002$config_files
7003
7004Configuration headers:
7005$config_headers
7006
7007Configuration commands:
7008$config_commands
7009
7010Report bugs to <bug-autoconf@gnu.org>."
7011
7012_ACEOF
7013cat >>$CONFIG_STATUS <<_ACEOF
7014ac_cs_version="\\
7015jack-smf-utils config.status 1.0
7016configured by $0, generated by GNU Autoconf 2.61,
7017  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7018
7019Copyright (C) 2006 Free Software Foundation, Inc.
7020This config.status script is free software; the Free Software Foundation
7021gives unlimited permission to copy, distribute and modify it."
7022
7023ac_pwd='$ac_pwd'
7024srcdir='$srcdir'
7025INSTALL='$INSTALL'
7026MKDIR_P='$MKDIR_P'
7027_ACEOF
7028
7029cat >>$CONFIG_STATUS <<\_ACEOF
7030# If no file are specified by the user, then we need to provide default
7031# value.  By we need to know if files were specified by the user.
7032ac_need_defaults=:
7033while test $# != 0
7034do
7035  case $1 in
7036  --*=*)
7037    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7038    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7039    ac_shift=:
7040    ;;
7041  *)
7042    ac_option=$1
7043    ac_optarg=$2
7044    ac_shift=shift
7045    ;;
7046  esac
7047
7048  case $ac_option in
7049  # Handling of the options.
7050  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7051    ac_cs_recheck=: ;;
7052  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7053    echo "$ac_cs_version"; exit ;;
7054  --debug | --debu | --deb | --de | --d | -d )
7055    debug=: ;;
7056  --file | --fil | --fi | --f )
7057    $ac_shift
7058    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7059    ac_need_defaults=false;;
7060  --header | --heade | --head | --hea )
7061    $ac_shift
7062    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7063    ac_need_defaults=false;;
7064  --he | --h)
7065    # Conflict between --help and --header
7066    { echo "$as_me: error: ambiguous option: $1
7067Try \`$0 --help' for more information." >&2
7068   { (exit 1); exit 1; }; };;
7069  --help | --hel | -h )
7070    echo "$ac_cs_usage"; exit ;;
7071  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7072  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7073    ac_cs_silent=: ;;
7074
7075  # This is an error.
7076  -*) { echo "$as_me: error: unrecognized option: $1
7077Try \`$0 --help' for more information." >&2
7078   { (exit 1); exit 1; }; } ;;
7079
7080  *) ac_config_targets="$ac_config_targets $1"
7081     ac_need_defaults=false ;;
7082
7083  esac
7084  shift
7085done
7086
7087ac_configure_extra_args=
7088
7089if $ac_cs_silent; then
7090  exec 6>/dev/null
7091  ac_configure_extra_args="$ac_configure_extra_args --silent"
7092fi
7093
7094_ACEOF
7095cat >>$CONFIG_STATUS <<_ACEOF
7096if \$ac_cs_recheck; then
7097  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7098  CONFIG_SHELL=$SHELL
7099  export CONFIG_SHELL
7100  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7101fi
7102
7103_ACEOF
7104cat >>$CONFIG_STATUS <<\_ACEOF
7105exec 5>>config.log
7106{
7107  echo
7108  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7109## Running $as_me. ##
7110_ASBOX
7111  echo "$ac_log"
7112} >&5
7113
7114_ACEOF
7115cat >>$CONFIG_STATUS <<_ACEOF
7116#
7117# INIT-COMMANDS
7118#
7119AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7120
7121_ACEOF
7122
7123cat >>$CONFIG_STATUS <<\_ACEOF
7124
7125# Handling of arguments.
7126for ac_config_target in $ac_config_targets
7127do
7128  case $ac_config_target in
7129    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7130    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7131    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7132    "libsmf/Makefile") CONFIG_FILES="$CONFIG_FILES libsmf/Makefile" ;;
7133    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
7134    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7135
7136  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7137echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7138   { (exit 1); exit 1; }; };;
7139  esac
7140done
7141
7142
7143# If the user did not use the arguments to specify the items to instantiate,
7144# then the envvar interface is used.  Set only those that are not.
7145# We use the long form for the default assignment because of an extremely
7146# bizarre bug on SunOS 4.1.3.
7147if $ac_need_defaults; then
7148  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7149  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7150  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7151fi
7152
7153# Have a temporary directory for convenience.  Make it in the build tree
7154# simply because there is no reason against having it here, and in addition,
7155# creating and moving files from /tmp can sometimes cause problems.
7156# Hook for its removal unless debugging.
7157# Note that there is a small window in which the directory will not be cleaned:
7158# after its creation but before its name has been assigned to `$tmp'.
7159$debug ||
7160{
7161  tmp=
7162  trap 'exit_status=$?
7163  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7164' 0
7165  trap '{ (exit 1); exit 1; }' 1 2 13 15
7166}
7167# Create a (secure) tmp directory for tmp files.
7168
7169{
7170  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7171  test -n "$tmp" && test -d "$tmp"
7172}  ||
7173{
7174  tmp=./conf$$-$RANDOM
7175  (umask 077 && mkdir "$tmp")
7176} ||
7177{
7178   echo "$me: cannot create a temporary directory in ." >&2
7179   { (exit 1); exit 1; }
7180}
7181
7182#
7183# Set up the sed scripts for CONFIG_FILES section.
7184#
7185
7186# No need to generate the scripts if there are no CONFIG_FILES.
7187# This happens for instance when ./config.status config.h
7188if test -n "$CONFIG_FILES"; then
7189
7190_ACEOF
7191
7192
7193
7194ac_delim='%!_!# '
7195for ac_last_try in false false false false false :; do
7196  cat >conf$$subs.sed <<_ACEOF
7197SHELL!$SHELL$ac_delim
7198PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
7199PACKAGE_NAME!$PACKAGE_NAME$ac_delim
7200PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
7201PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
7202PACKAGE_STRING!$PACKAGE_STRING$ac_delim
7203PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
7204exec_prefix!$exec_prefix$ac_delim
7205prefix!$prefix$ac_delim
7206program_transform_name!$program_transform_name$ac_delim
7207bindir!$bindir$ac_delim
7208sbindir!$sbindir$ac_delim
7209libexecdir!$libexecdir$ac_delim
7210datarootdir!$datarootdir$ac_delim
7211datadir!$datadir$ac_delim
7212sysconfdir!$sysconfdir$ac_delim
7213sharedstatedir!$sharedstatedir$ac_delim
7214localstatedir!$localstatedir$ac_delim
7215includedir!$includedir$ac_delim
7216oldincludedir!$oldincludedir$ac_delim
7217docdir!$docdir$ac_delim
7218infodir!$infodir$ac_delim
7219htmldir!$htmldir$ac_delim
7220dvidir!$dvidir$ac_delim
7221pdfdir!$pdfdir$ac_delim
7222psdir!$psdir$ac_delim
7223libdir!$libdir$ac_delim
7224localedir!$localedir$ac_delim
7225mandir!$mandir$ac_delim
7226DEFS!$DEFS$ac_delim
7227ECHO_C!$ECHO_C$ac_delim
7228ECHO_N!$ECHO_N$ac_delim
7229ECHO_T!$ECHO_T$ac_delim
7230LIBS!$LIBS$ac_delim
7231build_alias!$build_alias$ac_delim
7232host_alias!$host_alias$ac_delim
7233target_alias!$target_alias$ac_delim
7234INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
7235INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
7236INSTALL_DATA!$INSTALL_DATA$ac_delim
7237am__isrc!$am__isrc$ac_delim
7238CYGPATH_W!$CYGPATH_W$ac_delim
7239PACKAGE!$PACKAGE$ac_delim
7240VERSION!$VERSION$ac_delim
7241ACLOCAL!$ACLOCAL$ac_delim
7242AUTOCONF!$AUTOCONF$ac_delim
7243AUTOMAKE!$AUTOMAKE$ac_delim
7244AUTOHEADER!$AUTOHEADER$ac_delim
7245MAKEINFO!$MAKEINFO$ac_delim
7246install_sh!$install_sh$ac_delim
7247STRIP!$STRIP$ac_delim
7248INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
7249mkdir_p!$mkdir_p$ac_delim
7250AWK!$AWK$ac_delim
7251SET_MAKE!$SET_MAKE$ac_delim
7252am__leading_dot!$am__leading_dot$ac_delim
7253AMTAR!$AMTAR$ac_delim
7254am__tar!$am__tar$ac_delim
7255am__untar!$am__untar$ac_delim
7256CC!$CC$ac_delim
7257CFLAGS!$CFLAGS$ac_delim
7258LDFLAGS!$LDFLAGS$ac_delim
7259CPPFLAGS!$CPPFLAGS$ac_delim
7260ac_ct_CC!$ac_ct_CC$ac_delim
7261EXEEXT!$EXEEXT$ac_delim
7262OBJEXT!$OBJEXT$ac_delim
7263DEPDIR!$DEPDIR$ac_delim
7264am__include!$am__include$ac_delim
7265am__quote!$am__quote$ac_delim
7266AMDEP_TRUE!$AMDEP_TRUE$ac_delim
7267AMDEP_FALSE!$AMDEP_FALSE$ac_delim
7268AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
7269CCDEPMODE!$CCDEPMODE$ac_delim
7270am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
7271am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
7272RANLIB!$RANLIB$ac_delim
7273READLINE_LIBS!$READLINE_LIBS$ac_delim
7274CPP!$CPP$ac_delim
7275GREP!$GREP$ac_delim
7276EGREP!$EGREP$ac_delim
7277LIBOBJS!$LIBOBJS$ac_delim
7278POW_LIB!$POW_LIB$ac_delim
7279PKG_CONFIG!$PKG_CONFIG$ac_delim
7280GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
7281GLIB_LIBS!$GLIB_LIBS$ac_delim
7282GTHREAD_CFLAGS!$GTHREAD_CFLAGS$ac_delim
7283GTHREAD_LIBS!$GTHREAD_LIBS$ac_delim
7284JACK_CFLAGS!$JACK_CFLAGS$ac_delim
7285JACK_LIBS!$JACK_LIBS$ac_delim
7286JACK_MIDI_NEEDS_NFRAMES_CFLAGS!$JACK_MIDI_NEEDS_NFRAMES_CFLAGS$ac_delim
7287JACK_MIDI_NEEDS_NFRAMES_LIBS!$JACK_MIDI_NEEDS_NFRAMES_LIBS$ac_delim
7288LASH_CFLAGS!$LASH_CFLAGS$ac_delim
7289LASH_LIBS!$LASH_LIBS$ac_delim
7290LTLIBOBJS!$LTLIBOBJS$ac_delim
7291_ACEOF
7292
7293  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
7294    break
7295  elif $ac_last_try; then
7296    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7297echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7298   { (exit 1); exit 1; }; }
7299  else
7300    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7301  fi
7302done
7303
7304ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7305if test -n "$ac_eof"; then
7306  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7307  ac_eof=`expr $ac_eof + 1`
7308fi
7309
7310cat >>$CONFIG_STATUS <<_ACEOF
7311cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
7312/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
7313_ACEOF
7314sed '
7315s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7316s/^/s,@/; s/!/@,|#_!!_#|/
7317:n
7318t n
7319s/'"$ac_delim"'$/,g/; t
7320s/$/\\/; p
7321N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7322' >>$CONFIG_STATUS <conf$$subs.sed
7323rm -f conf$$subs.sed
7324cat >>$CONFIG_STATUS <<_ACEOF
7325:end
7326s/|#_!!_#|//g
7327CEOF$ac_eof
7328_ACEOF
7329
7330
7331# VPATH may cause trouble with some makes, so we remove $(srcdir),
7332# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7333# trailing colons and then remove the whole line if VPATH becomes empty
7334# (actually we leave an empty line to preserve line numbers).
7335if test "x$srcdir" = x.; then
7336  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
7337s/:*\$(srcdir):*/:/
7338s/:*\${srcdir}:*/:/
7339s/:*@srcdir@:*/:/
7340s/^\([^=]*=[	 ]*\):*/\1/
7341s/:*$//
7342s/^[^=]*=[	 ]*$//
7343}'
7344fi
7345
7346cat >>$CONFIG_STATUS <<\_ACEOF
7347fi # test -n "$CONFIG_FILES"
7348
7349
7350for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
7351do
7352  case $ac_tag in
7353  :[FHLC]) ac_mode=$ac_tag; continue;;
7354  esac
7355  case $ac_mode$ac_tag in
7356  :[FHL]*:*);;
7357  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
7358echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7359   { (exit 1); exit 1; }; };;
7360  :[FH]-) ac_tag=-:-;;
7361  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7362  esac
7363  ac_save_IFS=$IFS
7364  IFS=:
7365  set x $ac_tag
7366  IFS=$ac_save_IFS
7367  shift
7368  ac_file=$1
7369  shift
7370
7371  case $ac_mode in
7372  :L) ac_source=$1;;
7373  :[FH])
7374    ac_file_inputs=
7375    for ac_f
7376    do
7377      case $ac_f in
7378      -) ac_f="$tmp/stdin";;
7379      *) # Look for the file first in the build tree, then in the source tree
7380	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
7381	 # because $ac_f cannot contain `:'.
7382	 test -f "$ac_f" ||
7383	   case $ac_f in
7384	   [\\/$]*) false;;
7385	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7386	   esac ||
7387	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
7388echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7389   { (exit 1); exit 1; }; };;
7390      esac
7391      ac_file_inputs="$ac_file_inputs $ac_f"
7392    done
7393
7394    # Let's still pretend it is `configure' which instantiates (i.e., don't
7395    # use $as_me), people would be surprised to read:
7396    #    /* config.h.  Generated by config.status.  */
7397    configure_input="Generated from "`IFS=:
7398	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7399    if test x"$ac_file" != x-; then
7400      configure_input="$ac_file.  $configure_input"
7401      { echo "$as_me:$LINENO: creating $ac_file" >&5
7402echo "$as_me: creating $ac_file" >&6;}
7403    fi
7404
7405    case $ac_tag in
7406    *:-:* | *:-) cat >"$tmp/stdin";;
7407    esac
7408    ;;
7409  esac
7410
7411  ac_dir=`$as_dirname -- "$ac_file" ||
7412$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7413	 X"$ac_file" : 'X\(//\)[^/]' \| \
7414	 X"$ac_file" : 'X\(//\)$' \| \
7415	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7416echo X"$ac_file" |
7417    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7418	    s//\1/
7419	    q
7420	  }
7421	  /^X\(\/\/\)[^/].*/{
7422	    s//\1/
7423	    q
7424	  }
7425	  /^X\(\/\/\)$/{
7426	    s//\1/
7427	    q
7428	  }
7429	  /^X\(\/\).*/{
7430	    s//\1/
7431	    q
7432	  }
7433	  s/.*/./; q'`
7434  { as_dir="$ac_dir"
7435  case $as_dir in #(
7436  -*) as_dir=./$as_dir;;
7437  esac
7438  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7439    as_dirs=
7440    while :; do
7441      case $as_dir in #(
7442      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7443      *) as_qdir=$as_dir;;
7444      esac
7445      as_dirs="'$as_qdir' $as_dirs"
7446      as_dir=`$as_dirname -- "$as_dir" ||
7447$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7448	 X"$as_dir" : 'X\(//\)[^/]' \| \
7449	 X"$as_dir" : 'X\(//\)$' \| \
7450	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7451echo X"$as_dir" |
7452    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7453	    s//\1/
7454	    q
7455	  }
7456	  /^X\(\/\/\)[^/].*/{
7457	    s//\1/
7458	    q
7459	  }
7460	  /^X\(\/\/\)$/{
7461	    s//\1/
7462	    q
7463	  }
7464	  /^X\(\/\).*/{
7465	    s//\1/
7466	    q
7467	  }
7468	  s/.*/./; q'`
7469      test -d "$as_dir" && break
7470    done
7471    test -z "$as_dirs" || eval "mkdir $as_dirs"
7472  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7473echo "$as_me: error: cannot create directory $as_dir" >&2;}
7474   { (exit 1); exit 1; }; }; }
7475  ac_builddir=.
7476
7477case "$ac_dir" in
7478.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7479*)
7480  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7481  # A ".." for each directory in $ac_dir_suffix.
7482  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7483  case $ac_top_builddir_sub in
7484  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7485  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7486  esac ;;
7487esac
7488ac_abs_top_builddir=$ac_pwd
7489ac_abs_builddir=$ac_pwd$ac_dir_suffix
7490# for backward compatibility:
7491ac_top_builddir=$ac_top_build_prefix
7492
7493case $srcdir in
7494  .)  # We are building in place.
7495    ac_srcdir=.
7496    ac_top_srcdir=$ac_top_builddir_sub
7497    ac_abs_top_srcdir=$ac_pwd ;;
7498  [\\/]* | ?:[\\/]* )  # Absolute name.
7499    ac_srcdir=$srcdir$ac_dir_suffix;
7500    ac_top_srcdir=$srcdir
7501    ac_abs_top_srcdir=$srcdir ;;
7502  *) # Relative name.
7503    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7504    ac_top_srcdir=$ac_top_build_prefix$srcdir
7505    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7506esac
7507ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7508
7509
7510  case $ac_mode in
7511  :F)
7512  #
7513  # CONFIG_FILE
7514  #
7515
7516  case $INSTALL in
7517  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7518  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7519  esac
7520  ac_MKDIR_P=$MKDIR_P
7521  case $MKDIR_P in
7522  [\\/$]* | ?:[\\/]* ) ;;
7523  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7524  esac
7525_ACEOF
7526
7527cat >>$CONFIG_STATUS <<\_ACEOF
7528# If the template does not know about datarootdir, expand it.
7529# FIXME: This hack should be removed a few years after 2.60.
7530ac_datarootdir_hack=; ac_datarootdir_seen=
7531
7532case `sed -n '/datarootdir/ {
7533  p
7534  q
7535}
7536/@datadir@/p
7537/@docdir@/p
7538/@infodir@/p
7539/@localedir@/p
7540/@mandir@/p
7541' $ac_file_inputs` in
7542*datarootdir*) ac_datarootdir_seen=yes;;
7543*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7544  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7545echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7546_ACEOF
7547cat >>$CONFIG_STATUS <<_ACEOF
7548  ac_datarootdir_hack='
7549  s&@datadir@&$datadir&g
7550  s&@docdir@&$docdir&g
7551  s&@infodir@&$infodir&g
7552  s&@localedir@&$localedir&g
7553  s&@mandir@&$mandir&g
7554    s&\\\${datarootdir}&$datarootdir&g' ;;
7555esac
7556_ACEOF
7557
7558# Neutralize VPATH when `$srcdir' = `.'.
7559# Shell code in configure.ac might set extrasub.
7560# FIXME: do we really want to maintain this feature?
7561cat >>$CONFIG_STATUS <<_ACEOF
7562  sed "$ac_vpsub
7563$extrasub
7564_ACEOF
7565cat >>$CONFIG_STATUS <<\_ACEOF
7566:t
7567/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7568s&@configure_input@&$configure_input&;t t
7569s&@top_builddir@&$ac_top_builddir_sub&;t t
7570s&@srcdir@&$ac_srcdir&;t t
7571s&@abs_srcdir@&$ac_abs_srcdir&;t t
7572s&@top_srcdir@&$ac_top_srcdir&;t t
7573s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7574s&@builddir@&$ac_builddir&;t t
7575s&@abs_builddir@&$ac_abs_builddir&;t t
7576s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7577s&@INSTALL@&$ac_INSTALL&;t t
7578s&@MKDIR_P@&$ac_MKDIR_P&;t t
7579$ac_datarootdir_hack
7580" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
7581
7582test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7583  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7584  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7585  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7586which seems to be undefined.  Please make sure it is defined." >&5
7587echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7588which seems to be undefined.  Please make sure it is defined." >&2;}
7589
7590  rm -f "$tmp/stdin"
7591  case $ac_file in
7592  -) cat "$tmp/out"; rm -f "$tmp/out";;
7593  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
7594  esac
7595 ;;
7596  :H)
7597  #
7598  # CONFIG_HEADER
7599  #
7600_ACEOF
7601
7602# Transform confdefs.h into a sed script `conftest.defines', that
7603# substitutes the proper values into config.h.in to produce config.h.
7604rm -f conftest.defines conftest.tail
7605# First, append a space to every undef/define line, to ease matching.
7606echo 's/$/ /' >conftest.defines
7607# Then, protect against being on the right side of a sed subst, or in
7608# an unquoted here document, in config.status.  If some macros were
7609# called several times there might be several #defines for the same
7610# symbol, which is useless.  But do not sort them, since the last
7611# AC_DEFINE must be honored.
7612ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7613# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
7614# NAME is the cpp macro being defined, VALUE is the value it is being given.
7615# PARAMS is the parameter list in the macro definition--in most cases, it's
7616# just an empty string.
7617ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
7618ac_dB='\\)[	 (].*,\\1define\\2'
7619ac_dC=' '
7620ac_dD=' ,'
7621
7622uniq confdefs.h |
7623  sed -n '
7624	t rset
7625	:rset
7626	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
7627	t ok
7628	d
7629	:ok
7630	s/[\\&,]/\\&/g
7631	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
7632	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
7633  ' >>conftest.defines
7634
7635# Remove the space that was appended to ease matching.
7636# Then replace #undef with comments.  This is necessary, for
7637# example, in the case of _POSIX_SOURCE, which is predefined and required
7638# on some systems where configure will not decide to define it.
7639# (The regexp can be short, since the line contains either #define or #undef.)
7640echo 's/ $//
7641s,^[	 #]*u.*,/* & */,' >>conftest.defines
7642
7643# Break up conftest.defines:
7644ac_max_sed_lines=50
7645
7646# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
7647# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
7648# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
7649# et cetera.
7650ac_in='$ac_file_inputs'
7651ac_out='"$tmp/out1"'
7652ac_nxt='"$tmp/out2"'
7653
7654while :
7655do
7656  # Write a here document:
7657    cat >>$CONFIG_STATUS <<_ACEOF
7658    # First, check the format of the line:
7659    cat >"\$tmp/defines.sed" <<\\CEOF
7660/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
7661/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
7662b
7663:def
7664_ACEOF
7665  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
7666  echo 'CEOF
7667    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
7668  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
7669  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
7670  grep . conftest.tail >/dev/null || break
7671  rm -f conftest.defines
7672  mv conftest.tail conftest.defines
7673done
7674rm -f conftest.defines conftest.tail
7675
7676echo "ac_result=$ac_in" >>$CONFIG_STATUS
7677cat >>$CONFIG_STATUS <<\_ACEOF
7678  if test x"$ac_file" != x-; then
7679    echo "/* $configure_input  */" >"$tmp/config.h"
7680    cat "$ac_result" >>"$tmp/config.h"
7681    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
7682      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7683echo "$as_me: $ac_file is unchanged" >&6;}
7684    else
7685      rm -f $ac_file
7686      mv "$tmp/config.h" $ac_file
7687    fi
7688  else
7689    echo "/* $configure_input  */"
7690    cat "$ac_result"
7691  fi
7692  rm -f "$tmp/out12"
7693# Compute $ac_file's index in $config_headers.
7694_am_stamp_count=1
7695for _am_header in $config_headers :; do
7696  case $_am_header in
7697    $ac_file | $ac_file:* )
7698      break ;;
7699    * )
7700      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7701  esac
7702done
7703echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
7704$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7705	 X$ac_file : 'X\(//\)[^/]' \| \
7706	 X$ac_file : 'X\(//\)$' \| \
7707	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
7708echo X$ac_file |
7709    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7710	    s//\1/
7711	    q
7712	  }
7713	  /^X\(\/\/\)[^/].*/{
7714	    s//\1/
7715	    q
7716	  }
7717	  /^X\(\/\/\)$/{
7718	    s//\1/
7719	    q
7720	  }
7721	  /^X\(\/\).*/{
7722	    s//\1/
7723	    q
7724	  }
7725	  s/.*/./; q'`/stamp-h$_am_stamp_count
7726 ;;
7727
7728  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
7729echo "$as_me: executing $ac_file commands" >&6;}
7730 ;;
7731  esac
7732
7733
7734  case $ac_file$ac_mode in
7735    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7736  # Strip MF so we end up with the name of the file.
7737  mf=`echo "$mf" | sed -e 's/:.*$//'`
7738  # Check whether this is an Automake generated Makefile or not.
7739  # We used to match only the files named `Makefile.in', but
7740  # some people rename them; so instead we look at the file content.
7741  # Grep'ing the first line is not enough: some people post-process
7742  # each Makefile.in and add a new line on top of each file to say so.
7743  # Grep'ing the whole file is not good either: AIX grep has a line
7744  # limit of 2048, but all sed's we know have understand at least 4000.
7745  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
7746    dirpart=`$as_dirname -- "$mf" ||
7747$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7748	 X"$mf" : 'X\(//\)[^/]' \| \
7749	 X"$mf" : 'X\(//\)$' \| \
7750	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7751echo X"$mf" |
7752    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7753	    s//\1/
7754	    q
7755	  }
7756	  /^X\(\/\/\)[^/].*/{
7757	    s//\1/
7758	    q
7759	  }
7760	  /^X\(\/\/\)$/{
7761	    s//\1/
7762	    q
7763	  }
7764	  /^X\(\/\).*/{
7765	    s//\1/
7766	    q
7767	  }
7768	  s/.*/./; q'`
7769  else
7770    continue
7771  fi
7772  # Extract the definition of DEPDIR, am__include, and am__quote
7773  # from the Makefile without running `make'.
7774  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7775  test -z "$DEPDIR" && continue
7776  am__include=`sed -n 's/^am__include = //p' < "$mf"`
7777  test -z "am__include" && continue
7778  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7779  # When using ansi2knr, U may be empty or an underscore; expand it
7780  U=`sed -n 's/^U = //p' < "$mf"`
7781  # Find all dependency output files, they are included files with
7782  # $(DEPDIR) in their names.  We invoke sed twice because it is the
7783  # simplest approach to changing $(DEPDIR) to its actual value in the
7784  # expansion.
7785  for file in `sed -n "
7786    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7787       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7788    # Make sure the directory exists.
7789    test -f "$dirpart/$file" && continue
7790    fdir=`$as_dirname -- "$file" ||
7791$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7792	 X"$file" : 'X\(//\)[^/]' \| \
7793	 X"$file" : 'X\(//\)$' \| \
7794	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7795echo X"$file" |
7796    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7797	    s//\1/
7798	    q
7799	  }
7800	  /^X\(\/\/\)[^/].*/{
7801	    s//\1/
7802	    q
7803	  }
7804	  /^X\(\/\/\)$/{
7805	    s//\1/
7806	    q
7807	  }
7808	  /^X\(\/\).*/{
7809	    s//\1/
7810	    q
7811	  }
7812	  s/.*/./; q'`
7813    { as_dir=$dirpart/$fdir
7814  case $as_dir in #(
7815  -*) as_dir=./$as_dir;;
7816  esac
7817  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7818    as_dirs=
7819    while :; do
7820      case $as_dir in #(
7821      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7822      *) as_qdir=$as_dir;;
7823      esac
7824      as_dirs="'$as_qdir' $as_dirs"
7825      as_dir=`$as_dirname -- "$as_dir" ||
7826$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7827	 X"$as_dir" : 'X\(//\)[^/]' \| \
7828	 X"$as_dir" : 'X\(//\)$' \| \
7829	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7830echo X"$as_dir" |
7831    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7832	    s//\1/
7833	    q
7834	  }
7835	  /^X\(\/\/\)[^/].*/{
7836	    s//\1/
7837	    q
7838	  }
7839	  /^X\(\/\/\)$/{
7840	    s//\1/
7841	    q
7842	  }
7843	  /^X\(\/\).*/{
7844	    s//\1/
7845	    q
7846	  }
7847	  s/.*/./; q'`
7848      test -d "$as_dir" && break
7849    done
7850    test -z "$as_dirs" || eval "mkdir $as_dirs"
7851  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7852echo "$as_me: error: cannot create directory $as_dir" >&2;}
7853   { (exit 1); exit 1; }; }; }
7854    # echo "creating $dirpart/$file"
7855    echo '# dummy' > "$dirpart/$file"
7856  done
7857done
7858 ;;
7859
7860  esac
7861done # for ac_tag
7862
7863
7864{ (exit 0); exit 0; }
7865_ACEOF
7866chmod +x $CONFIG_STATUS
7867ac_clean_files=$ac_clean_files_save
7868
7869
7870# configure is writing to config.log, and then calls config.status.
7871# config.status does its own redirection, appending to config.log.
7872# Unfortunately, on DOS this fails, as config.log is still kept open
7873# by configure, so config.status won't be able to write to it; its
7874# output is simply discarded.  So we exec the FD to /dev/null,
7875# effectively closing config.log, so it can be properly (re)opened and
7876# appended to by config.status.  When coming back to configure, we
7877# need to make the FD available again.
7878if test "$no_create" != yes; then
7879  ac_cs_success=:
7880  ac_config_status_args=
7881  test "$silent" = yes &&
7882    ac_config_status_args="$ac_config_status_args --quiet"
7883  exec 5>/dev/null
7884  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7885  exec 5>>config.log
7886  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7887  # would make configure fail if this is the last instruction.
7888  $ac_cs_success || { (exit 1); exit 1; }
7889fi
7890
7891
7892