1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14
15# Initialize some variables set by options.
16# The variables have the same names as the options, with
17# dashes changed to underlines.
18build=NONE
19cache_file=./config.cache
20exec_prefix=NONE
21host=NONE
22no_create=
23nonopt=NONE
24no_recursion=
25prefix=NONE
26program_prefix=NONE
27program_suffix=NONE
28program_transform_name=s,x,x,
29silent=
30site=
31srcdir=
32target=NONE
33verbose=
34x_includes=NONE
35x_libraries=NONE
36bindir='${exec_prefix}/bin'
37sbindir='${exec_prefix}/sbin'
38libexecdir='${exec_prefix}/libexec'
39datadir='${prefix}/share'
40sysconfdir='${prefix}/etc'
41sharedstatedir='${prefix}/com'
42localstatedir='${prefix}/var'
43libdir='${exec_prefix}/lib'
44includedir='${prefix}/include'
45oldincludedir='/usr/include'
46infodir='${prefix}/info'
47mandir='${prefix}/man'
48
49# Initialize some other variables.
50subdirs=
51MFLAGS= MAKEFLAGS=
52SHELL=${CONFIG_SHELL-/bin/sh}
53# Maximum number of lines to put in a shell here document.
54ac_max_here_lines=12
55
56ac_prev=
57for ac_option
58do
59
60  # If the previous option needs an argument, assign it.
61  if test -n "$ac_prev"; then
62    eval "$ac_prev=\$ac_option"
63    ac_prev=
64    continue
65  fi
66
67  case "$ac_option" in
68  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
69  *) ac_optarg= ;;
70  esac
71
72  # Accept the important Cygnus configure options, so we can diagnose typos.
73
74  case "$ac_option" in
75
76  -bindir | --bindir | --bindi | --bind | --bin | --bi)
77    ac_prev=bindir ;;
78  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
79    bindir="$ac_optarg" ;;
80
81  -build | --build | --buil | --bui | --bu)
82    ac_prev=build ;;
83  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
84    build="$ac_optarg" ;;
85
86  -cache-file | --cache-file | --cache-fil | --cache-fi \
87  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
88    ac_prev=cache_file ;;
89  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
90  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
91    cache_file="$ac_optarg" ;;
92
93  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
94    ac_prev=datadir ;;
95  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
96  | --da=*)
97    datadir="$ac_optarg" ;;
98
99  -disable-* | --disable-*)
100    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
101    # Reject names that are not valid shell variable names.
102    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
103      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
104    fi
105    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
106    eval "enable_${ac_feature}=no" ;;
107
108  -enable-* | --enable-*)
109    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
110    # Reject names that are not valid shell variable names.
111    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
112      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
113    fi
114    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
115    case "$ac_option" in
116      *=*) ;;
117      *) ac_optarg=yes ;;
118    esac
119    eval "enable_${ac_feature}='$ac_optarg'" ;;
120
121  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
122  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
123  | --exec | --exe | --ex)
124    ac_prev=exec_prefix ;;
125  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
126  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
127  | --exec=* | --exe=* | --ex=*)
128    exec_prefix="$ac_optarg" ;;
129
130  -gas | --gas | --ga | --g)
131    # Obsolete; use --with-gas.
132    with_gas=yes ;;
133
134  -help | --help | --hel | --he)
135    # Omit some internal or obsolete options to make the list less imposing.
136    # This message is too long to be a string in the A/UX 3.1 sh.
137    cat << EOF
138Usage: configure [options] [host]
139Options: [defaults in brackets after descriptions]
140Configuration:
141  --cache-file=FILE       cache test results in FILE
142  --help                  print this message
143  --no-create             do not create output files
144  --quiet, --silent       do not print \`checking...' messages
145  --version               print the version of autoconf that created configure
146Directory and file names:
147  --prefix=PREFIX         install architecture-independent files in PREFIX
148                          [$ac_default_prefix]
149  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
150                          [same as prefix]
151  --bindir=DIR            user executables in DIR [EPREFIX/bin]
152  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
153  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
154  --datadir=DIR           read-only architecture-independent data in DIR
155                          [PREFIX/share]
156  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
157  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
158                          [PREFIX/com]
159  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
160  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
161  --includedir=DIR        C header files in DIR [PREFIX/include]
162  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
163  --infodir=DIR           info documentation in DIR [PREFIX/info]
164  --mandir=DIR            man documentation in DIR [PREFIX/man]
165  --srcdir=DIR            find the sources in DIR [configure dir or ..]
166  --program-prefix=PREFIX prepend PREFIX to installed program names
167  --program-suffix=SUFFIX append SUFFIX to installed program names
168  --program-transform-name=PROGRAM
169                          run sed PROGRAM on installed program names
170EOF
171    cat << EOF
172Host type:
173  --build=BUILD           configure for building on BUILD [BUILD=HOST]
174  --host=HOST             configure for HOST [guessed]
175  --target=TARGET         configure for TARGET [TARGET=HOST]
176Features and packages:
177  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
178  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
179  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
180  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
181  --x-includes=DIR        X include files are in DIR
182  --x-libraries=DIR       X library files are in DIR
183EOF
184    if test -n "$ac_help"; then
185      echo "--enable and --with options recognized:$ac_help"
186    fi
187    exit 0 ;;
188
189  -host | --host | --hos | --ho)
190    ac_prev=host ;;
191  -host=* | --host=* | --hos=* | --ho=*)
192    host="$ac_optarg" ;;
193
194  -includedir | --includedir | --includedi | --included | --include \
195  | --includ | --inclu | --incl | --inc)
196    ac_prev=includedir ;;
197  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
198  | --includ=* | --inclu=* | --incl=* | --inc=*)
199    includedir="$ac_optarg" ;;
200
201  -infodir | --infodir | --infodi | --infod | --info | --inf)
202    ac_prev=infodir ;;
203  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
204    infodir="$ac_optarg" ;;
205
206  -libdir | --libdir | --libdi | --libd)
207    ac_prev=libdir ;;
208  -libdir=* | --libdir=* | --libdi=* | --libd=*)
209    libdir="$ac_optarg" ;;
210
211  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
212  | --libexe | --libex | --libe)
213    ac_prev=libexecdir ;;
214  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
215  | --libexe=* | --libex=* | --libe=*)
216    libexecdir="$ac_optarg" ;;
217
218  -localstatedir | --localstatedir | --localstatedi | --localstated \
219  | --localstate | --localstat | --localsta | --localst \
220  | --locals | --local | --loca | --loc | --lo)
221    ac_prev=localstatedir ;;
222  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
223  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
224  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
225    localstatedir="$ac_optarg" ;;
226
227  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
228    ac_prev=mandir ;;
229  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
230    mandir="$ac_optarg" ;;
231
232  -nfp | --nfp | --nf)
233    # Obsolete; use --without-fp.
234    with_fp=no ;;
235
236  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
237  | --no-cr | --no-c)
238    no_create=yes ;;
239
240  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
241  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
242    no_recursion=yes ;;
243
244  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
245  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
246  | --oldin | --oldi | --old | --ol | --o)
247    ac_prev=oldincludedir ;;
248  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
249  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
250  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
251    oldincludedir="$ac_optarg" ;;
252
253  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
254    ac_prev=prefix ;;
255  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
256    prefix="$ac_optarg" ;;
257
258  -program-prefix | --program-prefix | --program-prefi | --program-pref \
259  | --program-pre | --program-pr | --program-p)
260    ac_prev=program_prefix ;;
261  -program-prefix=* | --program-prefix=* | --program-prefi=* \
262  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
263    program_prefix="$ac_optarg" ;;
264
265  -program-suffix | --program-suffix | --program-suffi | --program-suff \
266  | --program-suf | --program-su | --program-s)
267    ac_prev=program_suffix ;;
268  -program-suffix=* | --program-suffix=* | --program-suffi=* \
269  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
270    program_suffix="$ac_optarg" ;;
271
272  -program-transform-name | --program-transform-name \
273  | --program-transform-nam | --program-transform-na \
274  | --program-transform-n | --program-transform- \
275  | --program-transform | --program-transfor \
276  | --program-transfo | --program-transf \
277  | --program-trans | --program-tran \
278  | --progr-tra | --program-tr | --program-t)
279    ac_prev=program_transform_name ;;
280  -program-transform-name=* | --program-transform-name=* \
281  | --program-transform-nam=* | --program-transform-na=* \
282  | --program-transform-n=* | --program-transform-=* \
283  | --program-transform=* | --program-transfor=* \
284  | --program-transfo=* | --program-transf=* \
285  | --program-trans=* | --program-tran=* \
286  | --progr-tra=* | --program-tr=* | --program-t=*)
287    program_transform_name="$ac_optarg" ;;
288
289  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
290  | -silent | --silent | --silen | --sile | --sil)
291    silent=yes ;;
292
293  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
294    ac_prev=sbindir ;;
295  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
296  | --sbi=* | --sb=*)
297    sbindir="$ac_optarg" ;;
298
299  -sharedstatedir | --sharedstatedir | --sharedstatedi \
300  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
301  | --sharedst | --shareds | --shared | --share | --shar \
302  | --sha | --sh)
303    ac_prev=sharedstatedir ;;
304  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
305  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
306  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
307  | --sha=* | --sh=*)
308    sharedstatedir="$ac_optarg" ;;
309
310  -site | --site | --sit)
311    ac_prev=site ;;
312  -site=* | --site=* | --sit=*)
313    site="$ac_optarg" ;;
314
315  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
316    ac_prev=srcdir ;;
317  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
318    srcdir="$ac_optarg" ;;
319
320  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
321  | --syscon | --sysco | --sysc | --sys | --sy)
322    ac_prev=sysconfdir ;;
323  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
324  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
325    sysconfdir="$ac_optarg" ;;
326
327  -target | --target | --targe | --targ | --tar | --ta | --t)
328    ac_prev=target ;;
329  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
330    target="$ac_optarg" ;;
331
332  -v | -verbose | --verbose | --verbos | --verbo | --verb)
333    verbose=yes ;;
334
335  -version | --version | --versio | --versi | --vers)
336    echo "configure generated by autoconf version 2.13"
337    exit 0 ;;
338
339  -with-* | --with-*)
340    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
341    # Reject names that are not valid shell variable names.
342    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
343      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
344    fi
345    ac_package=`echo $ac_package| sed 's/-/_/g'`
346    case "$ac_option" in
347      *=*) ;;
348      *) ac_optarg=yes ;;
349    esac
350    eval "with_${ac_package}='$ac_optarg'" ;;
351
352  -without-* | --without-*)
353    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
354    # Reject names that are not valid shell variable names.
355    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
356      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357    fi
358    ac_package=`echo $ac_package| sed 's/-/_/g'`
359    eval "with_${ac_package}=no" ;;
360
361  --x)
362    # Obsolete; use --with-x.
363    with_x=yes ;;
364
365  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
366  | --x-incl | --x-inc | --x-in | --x-i)
367    ac_prev=x_includes ;;
368  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
369  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
370    x_includes="$ac_optarg" ;;
371
372  -x-libraries | --x-libraries | --x-librarie | --x-librari \
373  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
374    ac_prev=x_libraries ;;
375  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
376  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
377    x_libraries="$ac_optarg" ;;
378
379  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
380    ;;
381
382  *)
383    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
384      echo "configure: warning: $ac_option: invalid host type" 1>&2
385    fi
386    if test "x$nonopt" != xNONE; then
387      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
388    fi
389    nonopt="$ac_option"
390    ;;
391
392  esac
393done
394
395if test -n "$ac_prev"; then
396  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
397fi
398
399trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
400
401# File descriptor usage:
402# 0 standard input
403# 1 file creation
404# 2 errors and warnings
405# 3 some systems may open it to /dev/tty
406# 4 used on the Kubota Titan
407# 6 checking for... messages and results
408# 5 compiler messages saved in config.log
409if test "$silent" = yes; then
410  exec 6>/dev/null
411else
412  exec 6>&1
413fi
414exec 5>./config.log
415
416echo "\
417This file contains any messages produced by compilers while
418running configure, to aid debugging if configure makes a mistake.
419" 1>&5
420
421# Strip out --no-create and --no-recursion so they do not pile up.
422# Also quote any args containing shell metacharacters.
423ac_configure_args=
424for ac_arg
425do
426  case "$ac_arg" in
427  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
428  | --no-cr | --no-c) ;;
429  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
430  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
431  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
432  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
433  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
434  esac
435done
436
437# NLS nuisances.
438# Only set these to C if already set.  These must not be set unconditionally
439# because not all systems understand e.g. LANG=C (notably SCO).
440# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
441# Non-C LC_CTYPE values break the ctype check.
442if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
443if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
444if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
445if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
446
447# confdefs.h avoids OS command line length limits that DEFS can exceed.
448rm -rf conftest* confdefs.h
449# AIX cpp loses on an empty file, so make sure it contains at least a newline.
450echo > confdefs.h
451
452# A filename unique to this package, relative to the directory that
453# configure is in, which we can look for to find out if srcdir is correct.
454ac_unique_file=README
455
456# Find the source files, if location was not specified.
457if test -z "$srcdir"; then
458  ac_srcdir_defaulted=yes
459  # Try the directory containing this script, then its parent.
460  ac_prog=$0
461  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
462  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
463  srcdir=$ac_confdir
464  if test ! -r $srcdir/$ac_unique_file; then
465    srcdir=..
466  fi
467else
468  ac_srcdir_defaulted=no
469fi
470if test ! -r $srcdir/$ac_unique_file; then
471  if test "$ac_srcdir_defaulted" = yes; then
472    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
473  else
474    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
475  fi
476fi
477srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
478
479# Prefer explicitly selected file to automatically selected ones.
480if test -z "$CONFIG_SITE"; then
481  if test "x$prefix" != xNONE; then
482    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
483  else
484    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
485  fi
486fi
487for ac_site_file in $CONFIG_SITE; do
488  if test -r "$ac_site_file"; then
489    echo "loading site script $ac_site_file"
490    . "$ac_site_file"
491  fi
492done
493
494if test -r "$cache_file"; then
495  echo "loading cache $cache_file"
496  . $cache_file
497else
498  echo "creating cache $cache_file"
499  > $cache_file
500fi
501
502ac_ext=c
503# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
504ac_cpp='$CPP $CPPFLAGS'
505ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
506ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
507cross_compiling=$ac_cv_prog_cc_cross
508
509ac_exeext=
510ac_objext=o
511if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
512  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
513  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
514    ac_n= ac_c='
515' ac_t='	'
516  else
517    ac_n=-n ac_c= ac_t=
518  fi
519else
520  ac_n= ac_c='\c' ac_t=
521fi
522
523
524
525ac_aux_dir=
526for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
527  if test -f $ac_dir/install-sh; then
528    ac_aux_dir=$ac_dir
529    ac_install_sh="$ac_aux_dir/install-sh -c"
530    break
531  elif test -f $ac_dir/install.sh; then
532    ac_aux_dir=$ac_dir
533    ac_install_sh="$ac_aux_dir/install.sh -c"
534    break
535  fi
536done
537if test -z "$ac_aux_dir"; then
538  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
539fi
540ac_config_guess=$ac_aux_dir/config.guess
541ac_config_sub=$ac_aux_dir/config.sub
542ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
543
544
545# Make sure we can run config.sub.
546if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
547else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
548fi
549
550echo $ac_n "checking host system type""... $ac_c" 1>&6
551echo "configure:552: checking host system type" >&5
552
553host_alias=$host
554case "$host_alias" in
555NONE)
556  case $nonopt in
557  NONE)
558    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
559    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
560    fi ;;
561  *) host_alias=$nonopt ;;
562  esac ;;
563esac
564
565host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
566host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
567host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
568host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
569echo "$ac_t""$host" 1>&6
570
571echo $ac_n "checking target system type""... $ac_c" 1>&6
572echo "configure:573: checking target system type" >&5
573
574target_alias=$target
575case "$target_alias" in
576NONE)
577  case $nonopt in
578  NONE) target_alias=$host_alias ;;
579  *) target_alias=$nonopt ;;
580  esac ;;
581esac
582
583target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
584target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
585target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
586target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
587echo "$ac_t""$target" 1>&6
588
589case "$target" in
590	*-*-netbsd*)
591		CPPFLAGS="${CPPFLAGS} -I/usr/pkg/include";
592		LDFLAGS="${LDFLAGS} -L/usr/pkg/lib -rpath/usr/pkg/lib";
593		;;
594esac
595
596CFLAGS="$CFLAGS -Wall -O2 -pipe -fomit-frame-pointer"
597
598# Find a good install program.  We prefer a C program (faster),
599# so one script is as good as another.  But avoid the broken or
600# incompatible versions:
601# SysV /etc/install, /usr/sbin/install
602# SunOS /usr/etc/install
603# IRIX /sbin/install
604# AIX /bin/install
605# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
606# AFS /usr/afsws/bin/install, which mishandles nonexistent args
607# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
608# ./install, which can be erroneously created by make from ./install.sh.
609echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
610echo "configure:611: checking for a BSD compatible install" >&5
611if test -z "$INSTALL"; then
612if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
613  echo $ac_n "(cached) $ac_c" 1>&6
614else
615    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
616  for ac_dir in $PATH; do
617    # Account for people who put trailing slashes in PATH elements.
618    case "$ac_dir/" in
619    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
620    *)
621      # OSF1 and SCO ODT 3.0 have their own names for install.
622      # Don't use installbsd from OSF since it installs stuff as root
623      # by default.
624      for ac_prog in ginstall scoinst install; do
625        if test -f $ac_dir/$ac_prog; then
626	  if test $ac_prog = install &&
627            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
628	    # AIX install.  It has an incompatible calling convention.
629	    :
630	  else
631	    ac_cv_path_install="$ac_dir/$ac_prog -c"
632	    break 2
633	  fi
634	fi
635      done
636      ;;
637    esac
638  done
639  IFS="$ac_save_IFS"
640
641fi
642  if test "${ac_cv_path_install+set}" = set; then
643    INSTALL="$ac_cv_path_install"
644  else
645    # As a last resort, use the slow shell script.  We don't cache a
646    # path for INSTALL within a source directory, because that will
647    # break other packages using the cache if that directory is
648    # removed, or if the path is relative.
649    INSTALL="$ac_install_sh"
650  fi
651fi
652echo "$ac_t""$INSTALL" 1>&6
653
654# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
655# It thinks the first close brace ends the variable substitution.
656test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
657
658test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
659
660test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
661
662echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
663echo "configure:664: checking whether build environment is sane" >&5
664# Just in case
665sleep 1
666echo timestamp > conftestfile
667# Do `set' in a subshell so we don't clobber the current shell's
668# arguments.  Must try -L first in case configure is actually a
669# symlink; some systems play weird games with the mod time of symlinks
670# (eg FreeBSD returns the mod time of the symlink's containing
671# directory).
672if (
673   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
674   if test "$*" = "X"; then
675      # -L didn't work.
676      set X `ls -t $srcdir/configure conftestfile`
677   fi
678   if test "$*" != "X $srcdir/configure conftestfile" \
679      && test "$*" != "X conftestfile $srcdir/configure"; then
680
681      # If neither matched, then we have a broken ls.  This can happen
682      # if, for instance, CONFIG_SHELL is bash and it inherits a
683      # broken ls alias from the environment.  This has actually
684      # happened.  Such a system could not be considered "sane".
685      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
686alias in your environment" 1>&2; exit 1; }
687   fi
688
689   test "$2" = conftestfile
690   )
691then
692   # Ok.
693   :
694else
695   { echo "configure: error: newly created file is older than distributed files!
696Check your system clock" 1>&2; exit 1; }
697fi
698rm -f conftest*
699echo "$ac_t""yes" 1>&6
700if test "$program_transform_name" = s,x,x,; then
701  program_transform_name=
702else
703  # Double any \ or $.  echo might interpret backslashes.
704  cat <<\EOF_SED > conftestsed
705s,\\,\\\\,g; s,\$,$$,g
706EOF_SED
707  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
708  rm -f conftestsed
709fi
710test "$program_prefix" != NONE &&
711  program_transform_name="s,^,${program_prefix},; $program_transform_name"
712# Use a double $ so make ignores it.
713test "$program_suffix" != NONE &&
714  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
715
716# sed with no file args requires a program.
717test "$program_transform_name" = "" && program_transform_name="s,x,x,"
718
719echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
720echo "configure:721: checking whether ${MAKE-make} sets \${MAKE}" >&5
721set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
722if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
723  echo $ac_n "(cached) $ac_c" 1>&6
724else
725  cat > conftestmake <<\EOF
726all:
727	@echo 'ac_maketemp="${MAKE}"'
728EOF
729# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
730eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
731if test -n "$ac_maketemp"; then
732  eval ac_cv_prog_make_${ac_make}_set=yes
733else
734  eval ac_cv_prog_make_${ac_make}_set=no
735fi
736rm -f conftestmake
737fi
738if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
739  echo "$ac_t""yes" 1>&6
740  SET_MAKE=
741else
742  echo "$ac_t""no" 1>&6
743  SET_MAKE="MAKE=${MAKE-make}"
744fi
745
746
747PACKAGE=juke
748
749VERSION=0.7
750
751if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
752  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
753fi
754cat >> confdefs.h <<EOF
755#define PACKAGE "$PACKAGE"
756EOF
757
758cat >> confdefs.h <<EOF
759#define VERSION "$VERSION"
760EOF
761
762
763
764missing_dir=`cd $ac_aux_dir && pwd`
765echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
766echo "configure:767: checking for working aclocal" >&5
767# Run test in a subshell; some versions of sh will print an error if
768# an executable is not found, even if stderr is redirected.
769# Redirect stdin to placate older versions of autoconf.  Sigh.
770if (aclocal --version) < /dev/null > /dev/null 2>&1; then
771   ACLOCAL=aclocal
772   echo "$ac_t""found" 1>&6
773else
774   ACLOCAL="$missing_dir/missing aclocal"
775   echo "$ac_t""missing" 1>&6
776fi
777
778echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
779echo "configure:780: checking for working autoconf" >&5
780# Run test in a subshell; some versions of sh will print an error if
781# an executable is not found, even if stderr is redirected.
782# Redirect stdin to placate older versions of autoconf.  Sigh.
783if (autoconf --version) < /dev/null > /dev/null 2>&1; then
784   AUTOCONF=autoconf
785   echo "$ac_t""found" 1>&6
786else
787   AUTOCONF="$missing_dir/missing autoconf"
788   echo "$ac_t""missing" 1>&6
789fi
790
791echo $ac_n "checking for working automake""... $ac_c" 1>&6
792echo "configure:793: checking for working automake" >&5
793# Run test in a subshell; some versions of sh will print an error if
794# an executable is not found, even if stderr is redirected.
795# Redirect stdin to placate older versions of autoconf.  Sigh.
796if (automake --version) < /dev/null > /dev/null 2>&1; then
797   AUTOMAKE=automake
798   echo "$ac_t""found" 1>&6
799else
800   AUTOMAKE="$missing_dir/missing automake"
801   echo "$ac_t""missing" 1>&6
802fi
803
804echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
805echo "configure:806: checking for working autoheader" >&5
806# Run test in a subshell; some versions of sh will print an error if
807# an executable is not found, even if stderr is redirected.
808# Redirect stdin to placate older versions of autoconf.  Sigh.
809if (autoheader --version) < /dev/null > /dev/null 2>&1; then
810   AUTOHEADER=autoheader
811   echo "$ac_t""found" 1>&6
812else
813   AUTOHEADER="$missing_dir/missing autoheader"
814   echo "$ac_t""missing" 1>&6
815fi
816
817echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
818echo "configure:819: checking for working makeinfo" >&5
819# Run test in a subshell; some versions of sh will print an error if
820# an executable is not found, even if stderr is redirected.
821# Redirect stdin to placate older versions of autoconf.  Sigh.
822if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
823   MAKEINFO=makeinfo
824   echo "$ac_t""found" 1>&6
825else
826   MAKEINFO="$missing_dir/missing makeinfo"
827   echo "$ac_t""missing" 1>&6
828fi
829
830
831
832
833
834
835echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
836echo "configure:837: checking whether ${MAKE-make} sets \${MAKE}" >&5
837set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
838if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
839  echo $ac_n "(cached) $ac_c" 1>&6
840else
841  cat > conftestmake <<\EOF
842all:
843	@echo 'ac_maketemp="${MAKE}"'
844EOF
845# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
846eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
847if test -n "$ac_maketemp"; then
848  eval ac_cv_prog_make_${ac_make}_set=yes
849else
850  eval ac_cv_prog_make_${ac_make}_set=no
851fi
852rm -f conftestmake
853fi
854if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
855  echo "$ac_t""yes" 1>&6
856  SET_MAKE=
857else
858  echo "$ac_t""no" 1>&6
859  SET_MAKE="MAKE=${MAKE-make}"
860fi
861
862# Extract the first word of "gcc", so it can be a program name with args.
863set dummy gcc; ac_word=$2
864echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
865echo "configure:866: checking for $ac_word" >&5
866if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
867  echo $ac_n "(cached) $ac_c" 1>&6
868else
869  if test -n "$CC"; then
870  ac_cv_prog_CC="$CC" # Let the user override the test.
871else
872  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
873  ac_dummy="$PATH"
874  for ac_dir in $ac_dummy; do
875    test -z "$ac_dir" && ac_dir=.
876    if test -f $ac_dir/$ac_word; then
877      ac_cv_prog_CC="gcc"
878      break
879    fi
880  done
881  IFS="$ac_save_ifs"
882fi
883fi
884CC="$ac_cv_prog_CC"
885if test -n "$CC"; then
886  echo "$ac_t""$CC" 1>&6
887else
888  echo "$ac_t""no" 1>&6
889fi
890
891if test -z "$CC"; then
892  # Extract the first word of "cc", so it can be a program name with args.
893set dummy cc; ac_word=$2
894echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
895echo "configure:896: checking for $ac_word" >&5
896if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
897  echo $ac_n "(cached) $ac_c" 1>&6
898else
899  if test -n "$CC"; then
900  ac_cv_prog_CC="$CC" # Let the user override the test.
901else
902  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
903  ac_prog_rejected=no
904  ac_dummy="$PATH"
905  for ac_dir in $ac_dummy; do
906    test -z "$ac_dir" && ac_dir=.
907    if test -f $ac_dir/$ac_word; then
908      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
909        ac_prog_rejected=yes
910	continue
911      fi
912      ac_cv_prog_CC="cc"
913      break
914    fi
915  done
916  IFS="$ac_save_ifs"
917if test $ac_prog_rejected = yes; then
918  # We found a bogon in the path, so make sure we never use it.
919  set dummy $ac_cv_prog_CC
920  shift
921  if test $# -gt 0; then
922    # We chose a different compiler from the bogus one.
923    # However, it has the same basename, so the bogon will be chosen
924    # first if we set CC to just the basename; use the full file name.
925    shift
926    set dummy "$ac_dir/$ac_word" "$@"
927    shift
928    ac_cv_prog_CC="$@"
929  fi
930fi
931fi
932fi
933CC="$ac_cv_prog_CC"
934if test -n "$CC"; then
935  echo "$ac_t""$CC" 1>&6
936else
937  echo "$ac_t""no" 1>&6
938fi
939
940  if test -z "$CC"; then
941    case "`uname -s`" in
942    *win32* | *WIN32*)
943      # Extract the first word of "cl", so it can be a program name with args.
944set dummy cl; ac_word=$2
945echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
946echo "configure:947: checking for $ac_word" >&5
947if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
948  echo $ac_n "(cached) $ac_c" 1>&6
949else
950  if test -n "$CC"; then
951  ac_cv_prog_CC="$CC" # Let the user override the test.
952else
953  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
954  ac_dummy="$PATH"
955  for ac_dir in $ac_dummy; do
956    test -z "$ac_dir" && ac_dir=.
957    if test -f $ac_dir/$ac_word; then
958      ac_cv_prog_CC="cl"
959      break
960    fi
961  done
962  IFS="$ac_save_ifs"
963fi
964fi
965CC="$ac_cv_prog_CC"
966if test -n "$CC"; then
967  echo "$ac_t""$CC" 1>&6
968else
969  echo "$ac_t""no" 1>&6
970fi
971 ;;
972    esac
973  fi
974  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
975fi
976
977echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
978echo "configure:979: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
979
980ac_ext=c
981# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
982ac_cpp='$CPP $CPPFLAGS'
983ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
984ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
985cross_compiling=$ac_cv_prog_cc_cross
986
987cat > conftest.$ac_ext << EOF
988
989#line 990 "configure"
990#include "confdefs.h"
991
992main(){return(0);}
993EOF
994if { (eval echo configure:995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
995  ac_cv_prog_cc_works=yes
996  # If we can't run a trivial program, we are probably using a cross compiler.
997  if (./conftest; exit) 2>/dev/null; then
998    ac_cv_prog_cc_cross=no
999  else
1000    ac_cv_prog_cc_cross=yes
1001  fi
1002else
1003  echo "configure: failed program was:" >&5
1004  cat conftest.$ac_ext >&5
1005  ac_cv_prog_cc_works=no
1006fi
1007rm -fr conftest*
1008ac_ext=c
1009# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1010ac_cpp='$CPP $CPPFLAGS'
1011ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1012ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1013cross_compiling=$ac_cv_prog_cc_cross
1014
1015echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1016if test $ac_cv_prog_cc_works = no; then
1017  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1018fi
1019echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1020echo "configure:1021: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1021echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1022cross_compiling=$ac_cv_prog_cc_cross
1023
1024echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1025echo "configure:1026: checking whether we are using GNU C" >&5
1026if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1027  echo $ac_n "(cached) $ac_c" 1>&6
1028else
1029  cat > conftest.c <<EOF
1030#ifdef __GNUC__
1031  yes;
1032#endif
1033EOF
1034if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1035  ac_cv_prog_gcc=yes
1036else
1037  ac_cv_prog_gcc=no
1038fi
1039fi
1040
1041echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1042
1043if test $ac_cv_prog_gcc = yes; then
1044  GCC=yes
1045else
1046  GCC=
1047fi
1048
1049ac_test_CFLAGS="${CFLAGS+set}"
1050ac_save_CFLAGS="$CFLAGS"
1051CFLAGS=
1052echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1053echo "configure:1054: checking whether ${CC-cc} accepts -g" >&5
1054if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1055  echo $ac_n "(cached) $ac_c" 1>&6
1056else
1057  echo 'void f(){}' > conftest.c
1058if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1059  ac_cv_prog_cc_g=yes
1060else
1061  ac_cv_prog_cc_g=no
1062fi
1063rm -f conftest*
1064
1065fi
1066
1067echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1068if test "$ac_test_CFLAGS" = set; then
1069  CFLAGS="$ac_save_CFLAGS"
1070elif test $ac_cv_prog_cc_g = yes; then
1071  if test "$GCC" = yes; then
1072    CFLAGS="-g -O2"
1073  else
1074    CFLAGS="-g"
1075  fi
1076else
1077  if test "$GCC" = yes; then
1078    CFLAGS="-O2"
1079  else
1080    CFLAGS=
1081  fi
1082fi
1083
1084# Find a good install program.  We prefer a C program (faster),
1085# so one script is as good as another.  But avoid the broken or
1086# incompatible versions:
1087# SysV /etc/install, /usr/sbin/install
1088# SunOS /usr/etc/install
1089# IRIX /sbin/install
1090# AIX /bin/install
1091# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1092# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1093# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1094# ./install, which can be erroneously created by make from ./install.sh.
1095echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1096echo "configure:1097: checking for a BSD compatible install" >&5
1097if test -z "$INSTALL"; then
1098if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1099  echo $ac_n "(cached) $ac_c" 1>&6
1100else
1101    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
1102  for ac_dir in $PATH; do
1103    # Account for people who put trailing slashes in PATH elements.
1104    case "$ac_dir/" in
1105    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1106    *)
1107      # OSF1 and SCO ODT 3.0 have their own names for install.
1108      # Don't use installbsd from OSF since it installs stuff as root
1109      # by default.
1110      for ac_prog in ginstall scoinst install; do
1111        if test -f $ac_dir/$ac_prog; then
1112	  if test $ac_prog = install &&
1113            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1114	    # AIX install.  It has an incompatible calling convention.
1115	    :
1116	  else
1117	    ac_cv_path_install="$ac_dir/$ac_prog -c"
1118	    break 2
1119	  fi
1120	fi
1121      done
1122      ;;
1123    esac
1124  done
1125  IFS="$ac_save_IFS"
1126
1127fi
1128  if test "${ac_cv_path_install+set}" = set; then
1129    INSTALL="$ac_cv_path_install"
1130  else
1131    # As a last resort, use the slow shell script.  We don't cache a
1132    # path for INSTALL within a source directory, because that will
1133    # break other packages using the cache if that directory is
1134    # removed, or if the path is relative.
1135    INSTALL="$ac_install_sh"
1136  fi
1137fi
1138echo "$ac_t""$INSTALL" 1>&6
1139
1140# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1141# It thinks the first close brace ends the variable substitution.
1142test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1143
1144test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1145
1146test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1147
1148
1149echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
1150echo "configure:1151: checking for main in -lncurses" >&5
1151ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
1152if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1153  echo $ac_n "(cached) $ac_c" 1>&6
1154else
1155  ac_save_LIBS="$LIBS"
1156LIBS="-lncurses  $LIBS"
1157cat > conftest.$ac_ext <<EOF
1158#line 1159 "configure"
1159#include "confdefs.h"
1160
1161int main() {
1162main()
1163; return 0; }
1164EOF
1165if { (eval echo configure:1166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1166  rm -rf conftest*
1167  eval "ac_cv_lib_$ac_lib_var=yes"
1168else
1169  echo "configure: failed program was:" >&5
1170  cat conftest.$ac_ext >&5
1171  rm -rf conftest*
1172  eval "ac_cv_lib_$ac_lib_var=no"
1173fi
1174rm -f conftest*
1175LIBS="$ac_save_LIBS"
1176
1177fi
1178if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1179  echo "$ac_t""yes" 1>&6
1180    ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1181    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1182  cat >> confdefs.h <<EOF
1183#define $ac_tr_lib 1
1184EOF
1185
1186  LIBS="-lncurses $LIBS"
1187
1188else
1189  echo "$ac_t""no" 1>&6
1190exit
1191fi
1192
1193
1194ac_header_dirent=no
1195for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1196do
1197ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1198echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1199echo "configure:1200: checking for $ac_hdr that defines DIR" >&5
1200if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1201  echo $ac_n "(cached) $ac_c" 1>&6
1202else
1203  cat > conftest.$ac_ext <<EOF
1204#line 1205 "configure"
1205#include "confdefs.h"
1206#include <sys/types.h>
1207#include <$ac_hdr>
1208int main() {
1209DIR *dirp = 0;
1210; return 0; }
1211EOF
1212if { (eval echo configure:1213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1213  rm -rf conftest*
1214  eval "ac_cv_header_dirent_$ac_safe=yes"
1215else
1216  echo "configure: failed program was:" >&5
1217  cat conftest.$ac_ext >&5
1218  rm -rf conftest*
1219  eval "ac_cv_header_dirent_$ac_safe=no"
1220fi
1221rm -f conftest*
1222fi
1223if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1224  echo "$ac_t""yes" 1>&6
1225    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1226  cat >> confdefs.h <<EOF
1227#define $ac_tr_hdr 1
1228EOF
1229 ac_header_dirent=$ac_hdr; break
1230else
1231  echo "$ac_t""no" 1>&6
1232fi
1233done
1234# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1235if test $ac_header_dirent = dirent.h; then
1236echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1237echo "configure:1238: checking for opendir in -ldir" >&5
1238ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1239if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1240  echo $ac_n "(cached) $ac_c" 1>&6
1241else
1242  ac_save_LIBS="$LIBS"
1243LIBS="-ldir  $LIBS"
1244cat > conftest.$ac_ext <<EOF
1245#line 1246 "configure"
1246#include "confdefs.h"
1247/* Override any gcc2 internal prototype to avoid an error.  */
1248/* We use char because int might match the return type of a gcc2
1249    builtin and then its argument prototype would still apply.  */
1250char opendir();
1251
1252int main() {
1253opendir()
1254; return 0; }
1255EOF
1256if { (eval echo configure:1257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1257  rm -rf conftest*
1258  eval "ac_cv_lib_$ac_lib_var=yes"
1259else
1260  echo "configure: failed program was:" >&5
1261  cat conftest.$ac_ext >&5
1262  rm -rf conftest*
1263  eval "ac_cv_lib_$ac_lib_var=no"
1264fi
1265rm -f conftest*
1266LIBS="$ac_save_LIBS"
1267
1268fi
1269if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1270  echo "$ac_t""yes" 1>&6
1271  LIBS="$LIBS -ldir"
1272else
1273  echo "$ac_t""no" 1>&6
1274fi
1275
1276else
1277echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1278echo "configure:1279: checking for opendir in -lx" >&5
1279ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1280if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1281  echo $ac_n "(cached) $ac_c" 1>&6
1282else
1283  ac_save_LIBS="$LIBS"
1284LIBS="-lx  $LIBS"
1285cat > conftest.$ac_ext <<EOF
1286#line 1287 "configure"
1287#include "confdefs.h"
1288/* Override any gcc2 internal prototype to avoid an error.  */
1289/* We use char because int might match the return type of a gcc2
1290    builtin and then its argument prototype would still apply.  */
1291char opendir();
1292
1293int main() {
1294opendir()
1295; return 0; }
1296EOF
1297if { (eval echo configure:1298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1298  rm -rf conftest*
1299  eval "ac_cv_lib_$ac_lib_var=yes"
1300else
1301  echo "configure: failed program was:" >&5
1302  cat conftest.$ac_ext >&5
1303  rm -rf conftest*
1304  eval "ac_cv_lib_$ac_lib_var=no"
1305fi
1306rm -f conftest*
1307LIBS="$ac_save_LIBS"
1308
1309fi
1310if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1311  echo "$ac_t""yes" 1>&6
1312  LIBS="$LIBS -lx"
1313else
1314  echo "$ac_t""no" 1>&6
1315fi
1316
1317fi
1318
1319echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1320echo "configure:1321: checking how to run the C preprocessor" >&5
1321# On Suns, sometimes $CPP names a directory.
1322if test -n "$CPP" && test -d "$CPP"; then
1323  CPP=
1324fi
1325if test -z "$CPP"; then
1326if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1327  echo $ac_n "(cached) $ac_c" 1>&6
1328else
1329    # This must be in double quotes, not single quotes, because CPP may get
1330  # substituted into the Makefile and "${CC-cc}" will confuse make.
1331  CPP="${CC-cc} -E"
1332  # On the NeXT, cc -E runs the code through the compiler's parser,
1333  # not just through cpp.
1334  cat > conftest.$ac_ext <<EOF
1335#line 1336 "configure"
1336#include "confdefs.h"
1337#include <assert.h>
1338Syntax Error
1339EOF
1340ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1341{ (eval echo configure:1342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1342ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1343if test -z "$ac_err"; then
1344  :
1345else
1346  echo "$ac_err" >&5
1347  echo "configure: failed program was:" >&5
1348  cat conftest.$ac_ext >&5
1349  rm -rf conftest*
1350  CPP="${CC-cc} -E -traditional-cpp"
1351  cat > conftest.$ac_ext <<EOF
1352#line 1353 "configure"
1353#include "confdefs.h"
1354#include <assert.h>
1355Syntax Error
1356EOF
1357ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1358{ (eval echo configure:1359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1359ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1360if test -z "$ac_err"; then
1361  :
1362else
1363  echo "$ac_err" >&5
1364  echo "configure: failed program was:" >&5
1365  cat conftest.$ac_ext >&5
1366  rm -rf conftest*
1367  CPP="${CC-cc} -nologo -E"
1368  cat > conftest.$ac_ext <<EOF
1369#line 1370 "configure"
1370#include "confdefs.h"
1371#include <assert.h>
1372Syntax Error
1373EOF
1374ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1375{ (eval echo configure:1376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1376ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1377if test -z "$ac_err"; then
1378  :
1379else
1380  echo "$ac_err" >&5
1381  echo "configure: failed program was:" >&5
1382  cat conftest.$ac_ext >&5
1383  rm -rf conftest*
1384  CPP=/lib/cpp
1385fi
1386rm -f conftest*
1387fi
1388rm -f conftest*
1389fi
1390rm -f conftest*
1391  ac_cv_prog_CPP="$CPP"
1392fi
1393  CPP="$ac_cv_prog_CPP"
1394else
1395  ac_cv_prog_CPP="$CPP"
1396fi
1397echo "$ac_t""$CPP" 1>&6
1398
1399echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1400echo "configure:1401: checking for ANSI C header files" >&5
1401if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1402  echo $ac_n "(cached) $ac_c" 1>&6
1403else
1404  cat > conftest.$ac_ext <<EOF
1405#line 1406 "configure"
1406#include "confdefs.h"
1407#include <stdlib.h>
1408#include <stdarg.h>
1409#include <string.h>
1410#include <float.h>
1411EOF
1412ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1413{ (eval echo configure:1414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1414ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1415if test -z "$ac_err"; then
1416  rm -rf conftest*
1417  ac_cv_header_stdc=yes
1418else
1419  echo "$ac_err" >&5
1420  echo "configure: failed program was:" >&5
1421  cat conftest.$ac_ext >&5
1422  rm -rf conftest*
1423  ac_cv_header_stdc=no
1424fi
1425rm -f conftest*
1426
1427if test $ac_cv_header_stdc = yes; then
1428  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1429cat > conftest.$ac_ext <<EOF
1430#line 1431 "configure"
1431#include "confdefs.h"
1432#include <string.h>
1433EOF
1434if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1435  egrep "memchr" >/dev/null 2>&1; then
1436  :
1437else
1438  rm -rf conftest*
1439  ac_cv_header_stdc=no
1440fi
1441rm -f conftest*
1442
1443fi
1444
1445if test $ac_cv_header_stdc = yes; then
1446  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1447cat > conftest.$ac_ext <<EOF
1448#line 1449 "configure"
1449#include "confdefs.h"
1450#include <stdlib.h>
1451EOF
1452if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1453  egrep "free" >/dev/null 2>&1; then
1454  :
1455else
1456  rm -rf conftest*
1457  ac_cv_header_stdc=no
1458fi
1459rm -f conftest*
1460
1461fi
1462
1463if test $ac_cv_header_stdc = yes; then
1464  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1465if test "$cross_compiling" = yes; then
1466  :
1467else
1468  cat > conftest.$ac_ext <<EOF
1469#line 1470 "configure"
1470#include "confdefs.h"
1471#include <ctype.h>
1472#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1473#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1474#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1475int main () { int i; for (i = 0; i < 256; i++)
1476if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1477exit (0); }
1478
1479EOF
1480if { (eval echo configure:1481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1481then
1482  :
1483else
1484  echo "configure: failed program was:" >&5
1485  cat conftest.$ac_ext >&5
1486  rm -fr conftest*
1487  ac_cv_header_stdc=no
1488fi
1489rm -fr conftest*
1490fi
1491
1492fi
1493fi
1494
1495echo "$ac_t""$ac_cv_header_stdc" 1>&6
1496if test $ac_cv_header_stdc = yes; then
1497  cat >> confdefs.h <<\EOF
1498#define STDC_HEADERS 1
1499EOF
1500
1501fi
1502
1503echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1504echo "configure:1505: checking for sys/wait.h that is POSIX.1 compatible" >&5
1505if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1506  echo $ac_n "(cached) $ac_c" 1>&6
1507else
1508  cat > conftest.$ac_ext <<EOF
1509#line 1510 "configure"
1510#include "confdefs.h"
1511#include <sys/types.h>
1512#include <sys/wait.h>
1513#ifndef WEXITSTATUS
1514#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1515#endif
1516#ifndef WIFEXITED
1517#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1518#endif
1519int main() {
1520int s;
1521wait (&s);
1522s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1523; return 0; }
1524EOF
1525if { (eval echo configure:1526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1526  rm -rf conftest*
1527  ac_cv_header_sys_wait_h=yes
1528else
1529  echo "configure: failed program was:" >&5
1530  cat conftest.$ac_ext >&5
1531  rm -rf conftest*
1532  ac_cv_header_sys_wait_h=no
1533fi
1534rm -f conftest*
1535fi
1536
1537echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1538if test $ac_cv_header_sys_wait_h = yes; then
1539  cat >> confdefs.h <<\EOF
1540#define HAVE_SYS_WAIT_H 1
1541EOF
1542
1543fi
1544
1545for ac_hdr in fcntl.h unistd.h
1546do
1547ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1548echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1549echo "configure:1550: checking for $ac_hdr" >&5
1550if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1551  echo $ac_n "(cached) $ac_c" 1>&6
1552else
1553  cat > conftest.$ac_ext <<EOF
1554#line 1555 "configure"
1555#include "confdefs.h"
1556#include <$ac_hdr>
1557EOF
1558ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1559{ (eval echo configure:1560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1560ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1561if test -z "$ac_err"; then
1562  rm -rf conftest*
1563  eval "ac_cv_header_$ac_safe=yes"
1564else
1565  echo "$ac_err" >&5
1566  echo "configure: failed program was:" >&5
1567  cat conftest.$ac_ext >&5
1568  rm -rf conftest*
1569  eval "ac_cv_header_$ac_safe=no"
1570fi
1571rm -f conftest*
1572fi
1573if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1574  echo "$ac_t""yes" 1>&6
1575    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1576  cat >> confdefs.h <<EOF
1577#define $ac_tr_hdr 1
1578EOF
1579
1580else
1581  echo "$ac_t""no" 1>&6
1582fi
1583done
1584
1585
1586echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1587echo "configure:1588: checking for pid_t" >&5
1588if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1589  echo $ac_n "(cached) $ac_c" 1>&6
1590else
1591  cat > conftest.$ac_ext <<EOF
1592#line 1593 "configure"
1593#include "confdefs.h"
1594#include <sys/types.h>
1595#if STDC_HEADERS
1596#include <stdlib.h>
1597#include <stddef.h>
1598#endif
1599EOF
1600if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1601  egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1602  rm -rf conftest*
1603  ac_cv_type_pid_t=yes
1604else
1605  rm -rf conftest*
1606  ac_cv_type_pid_t=no
1607fi
1608rm -f conftest*
1609
1610fi
1611echo "$ac_t""$ac_cv_type_pid_t" 1>&6
1612if test $ac_cv_type_pid_t = no; then
1613  cat >> confdefs.h <<\EOF
1614#define pid_t int
1615EOF
1616
1617fi
1618
1619
1620echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
1621echo "configure:1622: checking whether setpgrp takes no argument" >&5
1622if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
1623  echo $ac_n "(cached) $ac_c" 1>&6
1624else
1625  if test "$cross_compiling" = yes; then
1626  { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
1627else
1628  cat > conftest.$ac_ext <<EOF
1629#line 1630 "configure"
1630#include "confdefs.h"
1631
1632#ifdef HAVE_UNISTD_H
1633#include <unistd.h>
1634#endif
1635
1636/*
1637 * If this system has a BSD-style setpgrp, which takes arguments, exit
1638 * successfully.
1639 */
1640main()
1641{
1642    if (setpgrp(1,1) == -1)
1643	exit(0);
1644    else
1645	exit(1);
1646}
1647
1648EOF
1649if { (eval echo configure:1650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1650then
1651  ac_cv_func_setpgrp_void=no
1652else
1653  echo "configure: failed program was:" >&5
1654  cat conftest.$ac_ext >&5
1655  rm -fr conftest*
1656  ac_cv_func_setpgrp_void=yes
1657fi
1658rm -fr conftest*
1659fi
1660
1661
1662fi
1663
1664echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
1665if test $ac_cv_func_setpgrp_void = yes; then
1666  cat >> confdefs.h <<\EOF
1667#define SETPGRP_VOID 1
1668EOF
1669
1670fi
1671
1672for ac_func in getcwd
1673do
1674echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1675echo "configure:1676: checking for $ac_func" >&5
1676if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1677  echo $ac_n "(cached) $ac_c" 1>&6
1678else
1679  cat > conftest.$ac_ext <<EOF
1680#line 1681 "configure"
1681#include "confdefs.h"
1682/* System header to define __stub macros and hopefully few prototypes,
1683    which can conflict with char $ac_func(); below.  */
1684#include <assert.h>
1685/* Override any gcc2 internal prototype to avoid an error.  */
1686/* We use char because int might match the return type of a gcc2
1687    builtin and then its argument prototype would still apply.  */
1688char $ac_func();
1689
1690int main() {
1691
1692/* The GNU C library defines this for functions which it implements
1693    to always fail with ENOSYS.  Some functions are actually named
1694    something starting with __ and the normal name is an alias.  */
1695#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1696choke me
1697#else
1698$ac_func();
1699#endif
1700
1701; return 0; }
1702EOF
1703if { (eval echo configure:1704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1704  rm -rf conftest*
1705  eval "ac_cv_func_$ac_func=yes"
1706else
1707  echo "configure: failed program was:" >&5
1708  cat conftest.$ac_ext >&5
1709  rm -rf conftest*
1710  eval "ac_cv_func_$ac_func=no"
1711fi
1712rm -f conftest*
1713fi
1714
1715if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1716  echo "$ac_t""yes" 1>&6
1717    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1718  cat >> confdefs.h <<EOF
1719#define $ac_tr_func 1
1720EOF
1721
1722else
1723  echo "$ac_t""no" 1>&6
1724fi
1725done
1726
1727
1728trap '' 1 2 15
1729cat > confcache <<\EOF
1730# This file is a shell script that caches the results of configure
1731# tests run on this system so they can be shared between configure
1732# scripts and configure runs.  It is not useful on other systems.
1733# If it contains results you don't want to keep, you may remove or edit it.
1734#
1735# By default, configure uses ./config.cache as the cache file,
1736# creating it if it does not exist already.  You can give configure
1737# the --cache-file=FILE option to use a different cache file; that is
1738# what configure does when it calls configure scripts in
1739# subdirectories, so they share the cache.
1740# Giving --cache-file=/dev/null disables caching, for debugging configure.
1741# config.status only pays attention to the cache file if you give it the
1742# --recheck option to rerun configure.
1743#
1744EOF
1745# The following way of writing the cache mishandles newlines in values,
1746# but we know of no workaround that is simple, portable, and efficient.
1747# So, don't put newlines in cache variables' values.
1748# Ultrix sh set writes to stderr and can't be redirected directly,
1749# and sets the high bit in the cache file unless we assign to the vars.
1750(set) 2>&1 |
1751  case `(ac_space=' '; set | grep ac_space) 2>&1` in
1752  *ac_space=\ *)
1753    # `set' does not quote correctly, so add quotes (double-quote substitution
1754    # turns \\\\ into \\, and sed turns \\ into \).
1755    sed -n \
1756      -e "s/'/'\\\\''/g" \
1757      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1758    ;;
1759  *)
1760    # `set' quotes correctly as required by POSIX, so do not add quotes.
1761    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1762    ;;
1763  esac >> confcache
1764if cmp -s $cache_file confcache; then
1765  :
1766else
1767  if test -w $cache_file; then
1768    echo "updating cache $cache_file"
1769    cat confcache > $cache_file
1770  else
1771    echo "not updating unwritable cache $cache_file"
1772  fi
1773fi
1774rm -f confcache
1775
1776trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1777
1778test "x$prefix" = xNONE && prefix=$ac_default_prefix
1779# Let make expand exec_prefix.
1780test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1781
1782# Any assignment to VPATH causes Sun make to only execute
1783# the first set of double-colon rules, so remove it if not needed.
1784# If there is a colon in the path, we need to keep it.
1785if test "x$srcdir" = x.; then
1786  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
1787fi
1788
1789trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1790
1791DEFS=-DHAVE_CONFIG_H
1792
1793# Without the "./", some shells look in PATH for config.status.
1794: ${CONFIG_STATUS=./config.status}
1795
1796echo creating $CONFIG_STATUS
1797rm -f $CONFIG_STATUS
1798cat > $CONFIG_STATUS <<EOF
1799#! /bin/sh
1800# Generated automatically by configure.
1801# Run this file to recreate the current configuration.
1802# This directory was configured as follows,
1803# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1804#
1805# $0 $ac_configure_args
1806#
1807# Compiler output produced by configure, useful for debugging
1808# configure, is in ./config.log if it exists.
1809
1810ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1811for ac_option
1812do
1813  case "\$ac_option" in
1814  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1815    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1816    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1817  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1818    echo "$CONFIG_STATUS generated by autoconf version 2.13"
1819    exit 0 ;;
1820  -help | --help | --hel | --he | --h)
1821    echo "\$ac_cs_usage"; exit 0 ;;
1822  *) echo "\$ac_cs_usage"; exit 1 ;;
1823  esac
1824done
1825
1826ac_given_srcdir=$srcdir
1827ac_given_INSTALL="$INSTALL"
1828
1829trap 'rm -fr `echo "Makefile src/Makefile doc/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1830EOF
1831cat >> $CONFIG_STATUS <<EOF
1832
1833# Protect against being on the right side of a sed subst in config.status.
1834sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1835 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1836$ac_vpsub
1837$extrasub
1838s%@SHELL@%$SHELL%g
1839s%@CFLAGS@%$CFLAGS%g
1840s%@CPPFLAGS@%$CPPFLAGS%g
1841s%@CXXFLAGS@%$CXXFLAGS%g
1842s%@FFLAGS@%$FFLAGS%g
1843s%@DEFS@%$DEFS%g
1844s%@LDFLAGS@%$LDFLAGS%g
1845s%@LIBS@%$LIBS%g
1846s%@exec_prefix@%$exec_prefix%g
1847s%@prefix@%$prefix%g
1848s%@program_transform_name@%$program_transform_name%g
1849s%@bindir@%$bindir%g
1850s%@sbindir@%$sbindir%g
1851s%@libexecdir@%$libexecdir%g
1852s%@datadir@%$datadir%g
1853s%@sysconfdir@%$sysconfdir%g
1854s%@sharedstatedir@%$sharedstatedir%g
1855s%@localstatedir@%$localstatedir%g
1856s%@libdir@%$libdir%g
1857s%@includedir@%$includedir%g
1858s%@oldincludedir@%$oldincludedir%g
1859s%@infodir@%$infodir%g
1860s%@mandir@%$mandir%g
1861s%@host@%$host%g
1862s%@host_alias@%$host_alias%g
1863s%@host_cpu@%$host_cpu%g
1864s%@host_vendor@%$host_vendor%g
1865s%@host_os@%$host_os%g
1866s%@target@%$target%g
1867s%@target_alias@%$target_alias%g
1868s%@target_cpu@%$target_cpu%g
1869s%@target_vendor@%$target_vendor%g
1870s%@target_os@%$target_os%g
1871s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1872s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1873s%@INSTALL_DATA@%$INSTALL_DATA%g
1874s%@PACKAGE@%$PACKAGE%g
1875s%@VERSION@%$VERSION%g
1876s%@ACLOCAL@%$ACLOCAL%g
1877s%@AUTOCONF@%$AUTOCONF%g
1878s%@AUTOMAKE@%$AUTOMAKE%g
1879s%@AUTOHEADER@%$AUTOHEADER%g
1880s%@MAKEINFO@%$MAKEINFO%g
1881s%@SET_MAKE@%$SET_MAKE%g
1882s%@CC@%$CC%g
1883s%@CPP@%$CPP%g
1884
1885CEOF
1886EOF
1887
1888cat >> $CONFIG_STATUS <<\EOF
1889
1890# Split the substitutions into bite-sized pieces for seds with
1891# small command number limits, like on Digital OSF/1 and HP-UX.
1892ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1893ac_file=1 # Number of current file.
1894ac_beg=1 # First line for current file.
1895ac_end=$ac_max_sed_cmds # Line after last line for current file.
1896ac_more_lines=:
1897ac_sed_cmds=""
1898while $ac_more_lines; do
1899  if test $ac_beg -gt 1; then
1900    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1901  else
1902    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1903  fi
1904  if test ! -s conftest.s$ac_file; then
1905    ac_more_lines=false
1906    rm -f conftest.s$ac_file
1907  else
1908    if test -z "$ac_sed_cmds"; then
1909      ac_sed_cmds="sed -f conftest.s$ac_file"
1910    else
1911      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1912    fi
1913    ac_file=`expr $ac_file + 1`
1914    ac_beg=$ac_end
1915    ac_end=`expr $ac_end + $ac_max_sed_cmds`
1916  fi
1917done
1918if test -z "$ac_sed_cmds"; then
1919  ac_sed_cmds=cat
1920fi
1921EOF
1922
1923cat >> $CONFIG_STATUS <<EOF
1924
1925CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile doc/Makefile"}
1926EOF
1927cat >> $CONFIG_STATUS <<\EOF
1928for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1929  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1930  case "$ac_file" in
1931  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1932       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1933  *) ac_file_in="${ac_file}.in" ;;
1934  esac
1935
1936  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1937
1938  # Remove last slash and all that follows it.  Not all systems have dirname.
1939  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1940  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1941    # The file is in a subdirectory.
1942    test ! -d "$ac_dir" && mkdir "$ac_dir"
1943    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1944    # A "../" for each directory in $ac_dir_suffix.
1945    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1946  else
1947    ac_dir_suffix= ac_dots=
1948  fi
1949
1950  case "$ac_given_srcdir" in
1951  .)  srcdir=.
1952      if test -z "$ac_dots"; then top_srcdir=.
1953      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1954  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1955  *) # Relative path.
1956    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1957    top_srcdir="$ac_dots$ac_given_srcdir" ;;
1958  esac
1959
1960  case "$ac_given_INSTALL" in
1961  [/$]*) INSTALL="$ac_given_INSTALL" ;;
1962  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1963  esac
1964
1965  echo creating "$ac_file"
1966  rm -f "$ac_file"
1967  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1968  case "$ac_file" in
1969  *Makefile*) ac_comsub="1i\\
1970# $configure_input" ;;
1971  *) ac_comsub= ;;
1972  esac
1973
1974  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1975  sed -e "$ac_comsub
1976s%@configure_input@%$configure_input%g
1977s%@srcdir@%$srcdir%g
1978s%@top_srcdir@%$top_srcdir%g
1979s%@INSTALL@%$INSTALL%g
1980" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1981fi; done
1982rm -f conftest.s*
1983
1984# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1985# NAME is the cpp macro being defined and VALUE is the value it is being given.
1986#
1987# ac_d sets the value in "#define NAME VALUE" lines.
1988ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
1989ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
1990ac_dC='\3'
1991ac_dD='%g'
1992# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1993ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
1994ac_uB='\([ 	]\)%\1#\2define\3'
1995ac_uC=' '
1996ac_uD='\4%g'
1997# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1998ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
1999ac_eB='$%\1#\2define\3'
2000ac_eC=' '
2001ac_eD='%g'
2002
2003if test "${CONFIG_HEADERS+set}" != set; then
2004EOF
2005cat >> $CONFIG_STATUS <<EOF
2006  CONFIG_HEADERS="config.h"
2007EOF
2008cat >> $CONFIG_STATUS <<\EOF
2009fi
2010for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2011  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2012  case "$ac_file" in
2013  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2014       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2015  *) ac_file_in="${ac_file}.in" ;;
2016  esac
2017
2018  echo creating $ac_file
2019
2020  rm -f conftest.frag conftest.in conftest.out
2021  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2022  cat $ac_file_inputs > conftest.in
2023
2024EOF
2025
2026# Transform confdefs.h into a sed script conftest.vals that substitutes
2027# the proper values into config.h.in to produce config.h.  And first:
2028# Protect against being on the right side of a sed subst in config.status.
2029# Protect against being in an unquoted here document in config.status.
2030rm -f conftest.vals
2031cat > conftest.hdr <<\EOF
2032s/[\\&%]/\\&/g
2033s%[\\$`]%\\&%g
2034s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2035s%ac_d%ac_u%gp
2036s%ac_u%ac_e%gp
2037EOF
2038sed -n -f conftest.hdr confdefs.h > conftest.vals
2039rm -f conftest.hdr
2040
2041# This sed command replaces #undef with comments.  This is necessary, for
2042# example, in the case of _POSIX_SOURCE, which is predefined and required
2043# on some systems where configure will not decide to define it.
2044cat >> conftest.vals <<\EOF
2045s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2046EOF
2047
2048# Break up conftest.vals because some shells have a limit on
2049# the size of here documents, and old seds have small limits too.
2050
2051rm -f conftest.tail
2052while :
2053do
2054  ac_lines=`grep -c . conftest.vals`
2055  # grep -c gives empty output for an empty file on some AIX systems.
2056  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2057  # Write a limited-size here document to conftest.frag.
2058  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2059  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2060  echo 'CEOF
2061  sed -f conftest.frag conftest.in > conftest.out
2062  rm -f conftest.in
2063  mv conftest.out conftest.in
2064' >> $CONFIG_STATUS
2065  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2066  rm -f conftest.vals
2067  mv conftest.tail conftest.vals
2068done
2069rm -f conftest.vals
2070
2071cat >> $CONFIG_STATUS <<\EOF
2072  rm -f conftest.frag conftest.h
2073  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2074  cat conftest.in >> conftest.h
2075  rm -f conftest.in
2076  if cmp -s $ac_file conftest.h 2>/dev/null; then
2077    echo "$ac_file is unchanged"
2078    rm -f conftest.h
2079  else
2080    # Remove last slash and all that follows it.  Not all systems have dirname.
2081      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2082      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2083      # The file is in a subdirectory.
2084      test ! -d "$ac_dir" && mkdir "$ac_dir"
2085    fi
2086    rm -f $ac_file
2087    mv conftest.h $ac_file
2088  fi
2089fi; done
2090
2091EOF
2092cat >> $CONFIG_STATUS <<EOF
2093
2094
2095EOF
2096cat >> $CONFIG_STATUS <<\EOF
2097test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2098
2099exit 0
2100EOF
2101chmod +x $CONFIG_STATUS
2102rm -fr confdefs* $ac_clean_files
2103test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2104
2105