configure revision 79543
118099Spst#! /bin/sh
218099Spst# Guess values for system-dependent variables and create Makefiles.
379543Sru# Generated by Autoconf 2.50.
418099Spst#
579543Sru# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
679543Sru# Free Software Foundation, Inc.
718099Spst# This configure script is free software; the Free Software Foundation
818099Spst# gives unlimited permission to copy, distribute and modify it.
918099Spst
1079543Sru# Be Bourne compatible
1179543Sruif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1279543Sru  emulate sh
1379543Sru  NULLCMD=:
1479543Sruelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
1579543Sru  set -o posix
1679543Srufi
1779543Sru
1879543Sru# Name of the executable.
1979543Sruas_me=`echo "$0" |sed 's,.*[\\/],,'`
2079543Sru
2179543Sruif expr a : '\(a\)' >/dev/null 2>&1; then
2279543Sru  as_expr=expr
2379543Sruelse
2479543Sru  as_expr=false
2579543Srufi
2679543Sru
2779543Srurm -f conf$$ conf$$.exe conf$$.file
2879543Sruecho >conf$$.file
2979543Sruif ln -s conf$$.file conf$$ 2>/dev/null; then
3079543Sru  # We could just check for DJGPP; but this test a) works b) is more generic
3179543Sru  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3279543Sru  if test -f conf$$.exe; then
3379543Sru    # Don't use ln at all; we don't have any links
3479543Sru    as_ln_s='cp -p'
3579543Sru  else
3679543Sru    as_ln_s='ln -s'
3779543Sru  fi
3879543Sruelif ln conf$$.file conf$$ 2>/dev/null; then
3979543Sru  as_ln_s=ln
4079543Sruelse
4179543Sru  as_ln_s='cp -p'
4279543Srufi
4379543Srurm -f conf$$ conf$$.exe conf$$.file
4479543Sru
4579543Sruas_executable_p="test -f"
4679543Sru
4779543Sru# Support unset when possible.
4879543Sruif (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4979543Sru  as_unset=unset
5079543Sruelse
5179543Sru  as_unset=false
5279543Srufi
5379543Sru
5479543Sru# NLS nuisances.
5579543Sru$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
5679543Sru$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
5779543Sru$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
5879543Sru$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
5979543Sru$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
6079543Sru$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
6179543Sru$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
6279543Sru$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
6379543Sru
6479543Sru# IFS
6579543Sru# We need space, tab and new line, in precisely that order.
6679543Sruas_nl='
6779543Sru'
6879543SruIFS=" 	$as_nl"
6979543Sru
7079543Sru# CDPATH.
7179543Sru$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
7279543Sru
7379543Sru# Name of the host.
7479543Sru# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
7579543Sru# so uname gets run too.
7679543Sruac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
7779543Sru
7879543Sruexec 6>&1
7979543Sru
8079543Sru#
8179543Sru# Initializations.
8279543Sru#
8318099Spstac_default_prefix=/usr/local
8479543Srucross_compiling=no
8579543Srusubdirs=
8679543SruMFLAGS= MAKEFLAGS=
8779543SruSHELL=${CONFIG_SHELL-/bin/sh}
8818099Spst
8979543Sru# Maximum number of lines to put in a shell here document.
9079543Sru# This variable seems obsolete.  It should probably be removed, and
9179543Sru# only ac_max_sed_lines should be used.
9279543Sru: ${ac_max_here_lines=38}
9379543Sru
9479543Sru# Avoid depending upon Character Ranges.
9579543Sruac_cr_az='abcdefghijklmnopqrstuvwxyz'
9679543Sruac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9779543Sruac_cr_09='0123456789'
9879543Sruac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
9979543Sru
10079543Sru# Sed expression to map a string onto a valid sh and CPP variable names.
10179543Sruac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
10279543Sruac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
10379543Sru
10479543Sruac_unique_file="src/roff/groff/groff.cc"
10579543Sru
10618099Spst# Initialize some variables set by options.
10779543Sruac_init_help=
10879543Sruac_init_version=false
10918099Spst# The variables have the same names as the options, with
11018099Spst# dashes changed to underlines.
11179543Srucache_file=/dev/null
11218099Spstexec_prefix=NONE
11318099Spstno_create=
11418099Spstno_recursion=
11518099Spstprefix=NONE
11618099Spstprogram_prefix=NONE
11718099Spstprogram_suffix=NONE
11818099Spstprogram_transform_name=s,x,x,
11918099Spstsilent=
12018099Spstsite=
12118099Spstsrcdir=
12218099Spstverbose=
12318099Spstx_includes=NONE
12418099Spstx_libraries=NONE
12579543Sru
12679543Sru# Installation directory options.
12779543Sru# These are left unexpanded so users can "make install exec_prefix=/foo"
12879543Sru# and all the variables that are supposed to be based on exec_prefix
12979543Sru# by default will actually change.
13079543Sru# Use braces instead of parens because sh, perl, etc. also accept them.
13155839Sasmodaibindir='${exec_prefix}/bin'
13255839Sasmodaisbindir='${exec_prefix}/sbin'
13355839Sasmodailibexecdir='${exec_prefix}/libexec'
13455839Sasmodaidatadir='${prefix}/share'
13555839Sasmodaisysconfdir='${prefix}/etc'
13655839Sasmodaisharedstatedir='${prefix}/com'
13755839Sasmodailocalstatedir='${prefix}/var'
13855839Sasmodailibdir='${exec_prefix}/lib'
13955839Sasmodaiincludedir='${prefix}/include'
14055839Sasmodaioldincludedir='/usr/include'
14155839Sasmodaiinfodir='${prefix}/info'
14255839Sasmodaimandir='${prefix}/man'
14318099Spst
14479543Sru# Identity of this package.
14579543SruPACKAGE_NAME=
14679543SruPACKAGE_TARNAME=
14779543SruPACKAGE_VERSION=
14879543SruPACKAGE_STRING=
14979543SruPACKAGE_BUGREPORT=
15018099Spst
15118099Spstac_prev=
15218099Spstfor ac_option
15318099Spstdo
15418099Spst  # If the previous option needs an argument, assign it.
15518099Spst  if test -n "$ac_prev"; then
15618099Spst    eval "$ac_prev=\$ac_option"
15718099Spst    ac_prev=
15818099Spst    continue
15918099Spst  fi
16018099Spst
16179543Sru  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
16218099Spst
16318099Spst  # Accept the important Cygnus configure options, so we can diagnose typos.
16418099Spst
16579543Sru  case $ac_option in
16618099Spst
16755839Sasmodai  -bindir | --bindir | --bindi | --bind | --bin | --bi)
16855839Sasmodai    ac_prev=bindir ;;
16955839Sasmodai  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
17079543Sru    bindir=$ac_optarg ;;
17155839Sasmodai
17255839Sasmodai  -build | --build | --buil | --bui | --bu)
17379543Sru    ac_prev=build_alias ;;
17455839Sasmodai  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
17579543Sru    build_alias=$ac_optarg ;;
17618099Spst
17718099Spst  -cache-file | --cache-file | --cache-fil | --cache-fi \
17818099Spst  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17918099Spst    ac_prev=cache_file ;;
18018099Spst  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18118099Spst  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
18279543Sru    cache_file=$ac_optarg ;;
18318099Spst
18479543Sru  --config-cache | -C)
18579543Sru    cache_file=config.cache ;;
18679543Sru
18755839Sasmodai  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
18855839Sasmodai    ac_prev=datadir ;;
18955839Sasmodai  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
19055839Sasmodai  | --da=*)
19179543Sru    datadir=$ac_optarg ;;
19255839Sasmodai
19318099Spst  -disable-* | --disable-*)
19479543Sru    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
19518099Spst    # Reject names that are not valid shell variable names.
19679543Sru    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
19779543Sru      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
19879543Sru   { (exit 1); exit 1; }; }
19979543Sru    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
20079543Sru    eval "enable_$ac_feature=no" ;;
20118099Spst
20218099Spst  -enable-* | --enable-*)
20379543Sru    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
20418099Spst    # Reject names that are not valid shell variable names.
20579543Sru    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
20679543Sru      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
20779543Sru   { (exit 1); exit 1; }; }
20879543Sru    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
20979543Sru    case $ac_option in
21079543Sru      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
21118099Spst      *) ac_optarg=yes ;;
21218099Spst    esac
21379543Sru    eval "enable_$ac_feature='$ac_optarg'" ;;
21418099Spst
21518099Spst  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
21618099Spst  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
21718099Spst  | --exec | --exe | --ex)
21818099Spst    ac_prev=exec_prefix ;;
21918099Spst  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
22018099Spst  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
22118099Spst  | --exec=* | --exe=* | --ex=*)
22279543Sru    exec_prefix=$ac_optarg ;;
22318099Spst
22418099Spst  -gas | --gas | --ga | --g)
22518099Spst    # Obsolete; use --with-gas.
22618099Spst    with_gas=yes ;;
22718099Spst
22879543Sru  -help | --help | --hel | --he | -h)
22979543Sru    ac_init_help=long ;;
23079543Sru  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
23179543Sru    ac_init_help=recursive ;;
23279543Sru  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
23379543Sru    ac_init_help=short ;;
23418099Spst
23518099Spst  -host | --host | --hos | --ho)
23679543Sru    ac_prev=host_alias ;;
23718099Spst  -host=* | --host=* | --hos=* | --ho=*)
23879543Sru    host_alias=$ac_optarg ;;
23918099Spst
24055839Sasmodai  -includedir | --includedir | --includedi | --included | --include \
24155839Sasmodai  | --includ | --inclu | --incl | --inc)
24255839Sasmodai    ac_prev=includedir ;;
24355839Sasmodai  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
24455839Sasmodai  | --includ=* | --inclu=* | --incl=* | --inc=*)
24579543Sru    includedir=$ac_optarg ;;
24655839Sasmodai
24755839Sasmodai  -infodir | --infodir | --infodi | --infod | --info | --inf)
24855839Sasmodai    ac_prev=infodir ;;
24955839Sasmodai  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
25079543Sru    infodir=$ac_optarg ;;
25155839Sasmodai
25255839Sasmodai  -libdir | --libdir | --libdi | --libd)
25355839Sasmodai    ac_prev=libdir ;;
25455839Sasmodai  -libdir=* | --libdir=* | --libdi=* | --libd=*)
25579543Sru    libdir=$ac_optarg ;;
25655839Sasmodai
25755839Sasmodai  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
25855839Sasmodai  | --libexe | --libex | --libe)
25955839Sasmodai    ac_prev=libexecdir ;;
26055839Sasmodai  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
26155839Sasmodai  | --libexe=* | --libex=* | --libe=*)
26279543Sru    libexecdir=$ac_optarg ;;
26355839Sasmodai
26455839Sasmodai  -localstatedir | --localstatedir | --localstatedi | --localstated \
26555839Sasmodai  | --localstate | --localstat | --localsta | --localst \
26655839Sasmodai  | --locals | --local | --loca | --loc | --lo)
26755839Sasmodai    ac_prev=localstatedir ;;
26855839Sasmodai  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
26955839Sasmodai  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
27055839Sasmodai  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
27179543Sru    localstatedir=$ac_optarg ;;
27255839Sasmodai
27355839Sasmodai  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
27455839Sasmodai    ac_prev=mandir ;;
27555839Sasmodai  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
27679543Sru    mandir=$ac_optarg ;;
27755839Sasmodai
27818099Spst  -nfp | --nfp | --nf)
27918099Spst    # Obsolete; use --without-fp.
28018099Spst    with_fp=no ;;
28118099Spst
28218099Spst  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
28318099Spst  | --no-cr | --no-c)
28418099Spst    no_create=yes ;;
28518099Spst
28618099Spst  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
28718099Spst  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
28818099Spst    no_recursion=yes ;;
28918099Spst
29055839Sasmodai  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
29155839Sasmodai  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
29255839Sasmodai  | --oldin | --oldi | --old | --ol | --o)
29355839Sasmodai    ac_prev=oldincludedir ;;
29455839Sasmodai  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
29555839Sasmodai  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
29655839Sasmodai  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
29779543Sru    oldincludedir=$ac_optarg ;;
29855839Sasmodai
29918099Spst  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
30018099Spst    ac_prev=prefix ;;
30118099Spst  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
30279543Sru    prefix=$ac_optarg ;;
30318099Spst
30418099Spst  -program-prefix | --program-prefix | --program-prefi | --program-pref \
30518099Spst  | --program-pre | --program-pr | --program-p)
30618099Spst    ac_prev=program_prefix ;;
30718099Spst  -program-prefix=* | --program-prefix=* | --program-prefi=* \
30818099Spst  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
30979543Sru    program_prefix=$ac_optarg ;;
31018099Spst
31118099Spst  -program-suffix | --program-suffix | --program-suffi | --program-suff \
31218099Spst  | --program-suf | --program-su | --program-s)
31318099Spst    ac_prev=program_suffix ;;
31418099Spst  -program-suffix=* | --program-suffix=* | --program-suffi=* \
31518099Spst  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
31679543Sru    program_suffix=$ac_optarg ;;
31718099Spst
31818099Spst  -program-transform-name | --program-transform-name \
31918099Spst  | --program-transform-nam | --program-transform-na \
32018099Spst  | --program-transform-n | --program-transform- \
32118099Spst  | --program-transform | --program-transfor \
32218099Spst  | --program-transfo | --program-transf \
32318099Spst  | --program-trans | --program-tran \
32418099Spst  | --progr-tra | --program-tr | --program-t)
32518099Spst    ac_prev=program_transform_name ;;
32618099Spst  -program-transform-name=* | --program-transform-name=* \
32718099Spst  | --program-transform-nam=* | --program-transform-na=* \
32818099Spst  | --program-transform-n=* | --program-transform-=* \
32918099Spst  | --program-transform=* | --program-transfor=* \
33018099Spst  | --program-transfo=* | --program-transf=* \
33118099Spst  | --program-trans=* | --program-tran=* \
33218099Spst  | --progr-tra=* | --program-tr=* | --program-t=*)
33379543Sru    program_transform_name=$ac_optarg ;;
33418099Spst
33518099Spst  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33618099Spst  | -silent | --silent | --silen | --sile | --sil)
33718099Spst    silent=yes ;;
33818099Spst
33955839Sasmodai  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
34055839Sasmodai    ac_prev=sbindir ;;
34155839Sasmodai  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
34255839Sasmodai  | --sbi=* | --sb=*)
34379543Sru    sbindir=$ac_optarg ;;
34455839Sasmodai
34555839Sasmodai  -sharedstatedir | --sharedstatedir | --sharedstatedi \
34655839Sasmodai  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
34755839Sasmodai  | --sharedst | --shareds | --shared | --share | --shar \
34855839Sasmodai  | --sha | --sh)
34955839Sasmodai    ac_prev=sharedstatedir ;;
35055839Sasmodai  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
35155839Sasmodai  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
35255839Sasmodai  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
35355839Sasmodai  | --sha=* | --sh=*)
35479543Sru    sharedstatedir=$ac_optarg ;;
35555839Sasmodai
35618099Spst  -site | --site | --sit)
35718099Spst    ac_prev=site ;;
35818099Spst  -site=* | --site=* | --sit=*)
35979543Sru    site=$ac_optarg ;;
36018099Spst
36118099Spst  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36218099Spst    ac_prev=srcdir ;;
36318099Spst  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36479543Sru    srcdir=$ac_optarg ;;
36518099Spst
36655839Sasmodai  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
36755839Sasmodai  | --syscon | --sysco | --sysc | --sys | --sy)
36855839Sasmodai    ac_prev=sysconfdir ;;
36955839Sasmodai  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
37055839Sasmodai  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
37179543Sru    sysconfdir=$ac_optarg ;;
37255839Sasmodai
37318099Spst  -target | --target | --targe | --targ | --tar | --ta | --t)
37479543Sru    ac_prev=target_alias ;;
37518099Spst  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
37679543Sru    target_alias=$ac_optarg ;;
37718099Spst
37818099Spst  -v | -verbose | --verbose | --verbos | --verbo | --verb)
37918099Spst    verbose=yes ;;
38018099Spst
38179543Sru  -version | --version | --versio | --versi | --vers | -V)
38279543Sru    ac_init_version=: ;;
38318099Spst
38418099Spst  -with-* | --with-*)
38579543Sru    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
38618099Spst    # Reject names that are not valid shell variable names.
38779543Sru    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
38879543Sru      { echo "$as_me: error: invalid package name: $ac_package" >&2
38979543Sru   { (exit 1); exit 1; }; }
39018099Spst    ac_package=`echo $ac_package| sed 's/-/_/g'`
39179543Sru    case $ac_option in
39279543Sru      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
39318099Spst      *) ac_optarg=yes ;;
39418099Spst    esac
39579543Sru    eval "with_$ac_package='$ac_optarg'" ;;
39618099Spst
39718099Spst  -without-* | --without-*)
39879543Sru    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
39918099Spst    # Reject names that are not valid shell variable names.
40079543Sru    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
40179543Sru      { echo "$as_me: error: invalid package name: $ac_package" >&2
40279543Sru   { (exit 1); exit 1; }; }
40379543Sru    ac_package=`echo $ac_package | sed 's/-/_/g'`
40479543Sru    eval "with_$ac_package=no" ;;
40518099Spst
40618099Spst  --x)
40718099Spst    # Obsolete; use --with-x.
40818099Spst    with_x=yes ;;
40918099Spst
41018099Spst  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
41118099Spst  | --x-incl | --x-inc | --x-in | --x-i)
41218099Spst    ac_prev=x_includes ;;
41318099Spst  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
41418099Spst  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
41579543Sru    x_includes=$ac_optarg ;;
41618099Spst
41718099Spst  -x-libraries | --x-libraries | --x-librarie | --x-librari \
41818099Spst  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
41918099Spst    ac_prev=x_libraries ;;
42018099Spst  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
42118099Spst  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42279543Sru    x_libraries=$ac_optarg ;;
42318099Spst
42479543Sru  -*) { echo "$as_me: error: unrecognized option: $ac_option
42579543SruTry \`$0 --help' for more information." >&2
42679543Sru   { (exit 1); exit 1; }; }
42718099Spst    ;;
42818099Spst
42979543Sru  *=*)
43079543Sru    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
43179543Sru    # Reject names that are not valid shell variable names.
43279543Sru    expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
43379543Sru      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
43479543Sru   { (exit 1); exit 1; }; }
43579543Sru    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
43679543Sru    eval "$ac_envvar='$ac_optarg'"
43779543Sru    export $ac_envvar ;;
43879543Sru
43955839Sasmodai  *)
44079543Sru    # FIXME: should be removed in autoconf 3.0.
44179543Sru    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
44279543Sru    expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
44379543Sru      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
44479543Sru    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
44518099Spst    ;;
44618099Spst
44718099Spst  esac
44818099Spstdone
44918099Spst
45018099Spstif test -n "$ac_prev"; then
45179543Sru  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
45279543Sru  { echo "$as_me: error: missing argument to $ac_option" >&2
45379543Sru   { (exit 1); exit 1; }; }
45418099Spstfi
45518099Spst
45679543Sru# Be sure to have absolute paths.
45779543Srufor ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
45879543Sru              localstatedir libdir includedir oldincludedir infodir mandir \
45979543Sru              exec_prefix prefix
46018099Spstdo
46179543Sru  eval ac_val=$`echo $ac_var`
46279543Sru  case $ac_val in
46379543Sru    [\\/$]* | ?:[\\/]* ) ;;
46479543Sru    NONE ) ;;
46579543Sru    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
46679543Sru   { (exit 1); exit 1; }; };;
46718099Spst  esac
46818099Spstdone
46918099Spst
47079543Sru# There might be people who depend on the old broken behavior: `$host'
47179543Sru# used to hold the argument of --host etc.
47279543Srubuild=$build_alias
47379543Sruhost=$host_alias
47479543Srutarget=$target_alias
47518099Spst
47679543Sru# FIXME: should be removed in autoconf 3.0.
47779543Sruif test "x$host_alias" != x; then
47879543Sru  if test "x$build_alias" = x; then
47979543Sru    cross_compiling=maybe
48079543Sru    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
48179543Sru    If a cross compiler is detected then cross compile mode will be used." >&2
48279543Sru  elif test "x$build_alias" != "x$host_alias"; then
48379543Sru    cross_compiling=yes
48479543Sru  fi
48579543Srufi
48618099Spst
48779543Sruac_tool_prefix=
48879543Srutest -n "$host_alias" && ac_tool_prefix=$host_alias-
48918099Spst
49079543Srutest "$silent" = yes && exec 6>/dev/null
49179543Sru
49218099Spst# Find the source files, if location was not specified.
49318099Spstif test -z "$srcdir"; then
49418099Spst  ac_srcdir_defaulted=yes
49518099Spst  # Try the directory containing this script, then its parent.
49618099Spst  ac_prog=$0
49779543Sru  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
49818099Spst  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
49918099Spst  srcdir=$ac_confdir
50018099Spst  if test ! -r $srcdir/$ac_unique_file; then
50118099Spst    srcdir=..
50218099Spst  fi
50318099Spstelse
50418099Spst  ac_srcdir_defaulted=no
50518099Spstfi
50618099Spstif test ! -r $srcdir/$ac_unique_file; then
50718099Spst  if test "$ac_srcdir_defaulted" = yes; then
50879543Sru    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
50979543Sru   { (exit 1); exit 1; }; }
51018099Spst  else
51179543Sru    { echo "$as_me: error: cannot find sources in $srcdir" >&2
51279543Sru   { (exit 1); exit 1; }; }
51318099Spst  fi
51418099Spstfi
51579543Srusrcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
51679543Sruac_env_build_alias_set=${build_alias+set}
51779543Sruac_env_build_alias_value=$build_alias
51879543Sruac_cv_env_build_alias_set=${build_alias+set}
51979543Sruac_cv_env_build_alias_value=$build_alias
52079543Sruac_env_host_alias_set=${host_alias+set}
52179543Sruac_env_host_alias_value=$host_alias
52279543Sruac_cv_env_host_alias_set=${host_alias+set}
52379543Sruac_cv_env_host_alias_value=$host_alias
52479543Sruac_env_target_alias_set=${target_alias+set}
52579543Sruac_env_target_alias_value=$target_alias
52679543Sruac_cv_env_target_alias_set=${target_alias+set}
52779543Sruac_cv_env_target_alias_value=$target_alias
52879543Sruac_env_CC_set=${CC+set}
52979543Sruac_env_CC_value=$CC
53079543Sruac_cv_env_CC_set=${CC+set}
53179543Sruac_cv_env_CC_value=$CC
53279543Sruac_env_CFLAGS_set=${CFLAGS+set}
53379543Sruac_env_CFLAGS_value=$CFLAGS
53479543Sruac_cv_env_CFLAGS_set=${CFLAGS+set}
53579543Sruac_cv_env_CFLAGS_value=$CFLAGS
53679543Sruac_env_LDFLAGS_set=${LDFLAGS+set}
53779543Sruac_env_LDFLAGS_value=$LDFLAGS
53879543Sruac_cv_env_LDFLAGS_set=${LDFLAGS+set}
53979543Sruac_cv_env_LDFLAGS_value=$LDFLAGS
54079543Sruac_env_CPPFLAGS_set=${CPPFLAGS+set}
54179543Sruac_env_CPPFLAGS_value=$CPPFLAGS
54279543Sruac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
54379543Sruac_cv_env_CPPFLAGS_value=$CPPFLAGS
54479543Sruac_env_CXX_set=${CXX+set}
54579543Sruac_env_CXX_value=$CXX
54679543Sruac_cv_env_CXX_set=${CXX+set}
54779543Sruac_cv_env_CXX_value=$CXX
54879543Sruac_env_CXXFLAGS_set=${CXXFLAGS+set}
54979543Sruac_env_CXXFLAGS_value=$CXXFLAGS
55079543Sruac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
55179543Sruac_cv_env_CXXFLAGS_value=$CXXFLAGS
55279543Sruac_env_CPP_set=${CPP+set}
55379543Sruac_env_CPP_value=$CPP
55479543Sruac_cv_env_CPP_set=${CPP+set}
55579543Sruac_cv_env_CPP_value=$CPP
55618099Spst
55779543Sru#
55879543Sru# Report the --help message.
55979543Sru#
56079543Sruif test "$ac_init_help" = "long"; then
56179543Sru  # Omit some internal or obsolete options to make the list less imposing.
56279543Sru  # This message is too long to be a string in the A/UX 3.1 sh.
56379543Sru  cat <<EOF
56479543Sru\`configure' configures this package to adapt to many kinds of systems.
56579543Sru
56679543SruUsage: $0 [OPTION]... [VAR=VALUE]...
56779543Sru
56879543SruTo assign environment variables (e.g., CC, CFLAGS...), specify them as
56979543SruVAR=VALUE.  See below for descriptions of some of the useful variables.
57079543Sru
57179543SruDefaults for the options are specified in brackets.
57279543Sru
57379543SruConfiguration:
57479543Sru  -h, --help              display this help and exit
57579543Sru      --help=short        display options specific to this package
57679543Sru      --help=recursive    display the short help of all the included packages
57779543Sru  -V, --version           display version information and exit
57879543Sru  -q, --quiet, --silent   do not print \`checking...' messages
57979543Sru      --cache-file=FILE   cache test results in FILE [disabled]
58079543Sru  -C, --config-cache      alias for \`--cache-file=config.cache'
58179543Sru  -n, --no-create         do not create output files
58279543Sru      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
58379543Sru
58479543SruEOF
58579543Sru
58679543Sru  cat <<EOF
58779543SruInstallation directories:
58879543Sru  --prefix=PREFIX         install architecture-independent files in PREFIX
58979543Sru                          [$ac_default_prefix]
59079543Sru  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
59179543Sru                          [PREFIX]
59279543Sru
59379543SruBy default, \`make install' will install all the files in
59479543Sru\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
59579543Sruan installation prefix other than \`$ac_default_prefix' using \`--prefix',
59679543Srufor instance \`--prefix=\$HOME'.
59779543Sru
59879543SruFor better control, use the options below.
59979543Sru
60079543SruFine tuning of the installation directories:
60179543Sru  --bindir=DIR           user executables [EPREFIX/bin]
60279543Sru  --sbindir=DIR          system admin executables [EPREFIX/sbin]
60379543Sru  --libexecdir=DIR       program executables [EPREFIX/libexec]
60479543Sru  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
60579543Sru  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
60679543Sru  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
60779543Sru  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
60879543Sru  --libdir=DIR           object code libraries [EPREFIX/lib]
60979543Sru  --includedir=DIR       C header files [PREFIX/include]
61079543Sru  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
61179543Sru  --infodir=DIR          info documentation [PREFIX/info]
61279543Sru  --mandir=DIR           man documentation [PREFIX/man]
61379543SruEOF
61479543Sru
61579543Sru  cat <<\EOF
61679543SruEOF
61779543Srufi
61879543Sru
61979543Sruif test -n "$ac_init_help"; then
62079543Sru
62179543Sru  cat <<\EOF
62279543Sru
62379543SruSome influential environment variables:
62479543Sru  CC          C compiler command
62579543Sru  CFLAGS      C compiler flags
62679543Sru  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
62779543Sru              nonstandard directory <lib dir>
62879543Sru  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
62979543Sru              headers in a nonstandard directory <include dir>
63079543Sru  CXX         C++ compiler command
63179543Sru  CXXFLAGS    C++ compiler flags
63279543Sru  CPP         C preprocessor
63379543Sru
63479543SruUse these variables to override the choices made by `configure' or to help
63579543Sruit to find libraries and programs with nonstandard names/locations.
63679543Sru
63779543SruEOF
63879543Srufi
63979543Sru
64079543Sruif test "$ac_init_help" = "recursive"; then
64179543Sru  # If there are subdirs, report their specific --help.
64279543Sru  ac_popdir=`pwd`
64379543Sru  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
64479543Sru    cd $ac_subdir
64579543Sru    # A "../" for each directory in /$ac_subdir.
64679543Sru    ac_dots=`echo $ac_subdir |
64779543Sru             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
64879543Sru
64979543Sru    case $srcdir in
65079543Sru    .) # No --srcdir option.  We are building in place.
65179543Sru      ac_sub_srcdir=$srcdir ;;
65279543Sru    [\\/]* | ?:[\\/]* ) # Absolute path.
65379543Sru      ac_sub_srcdir=$srcdir/$ac_subdir ;;
65479543Sru    *) # Relative path.
65579543Sru      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
65679543Sru    esac
65779543Sru
65879543Sru    # Check for guested configure; otherwise get Cygnus style configure.
65979543Sru    if test -f $ac_sub_srcdir/configure.gnu; then
66079543Sru      echo
66179543Sru      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
66279543Sru    elif test -f $ac_sub_srcdir/configure; then
66379543Sru      echo
66479543Sru      $SHELL $ac_sub_srcdir/configure  --help=recursive
66579543Sru    elif test -f $ac_sub_srcdir/configure.ac ||
66679543Sru           test -f $ac_sub_srcdir/configure.in; then
66779543Sru      echo
66879543Sru      $ac_configure --help
66979543Sru    else
67079543Sru      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
67179543Sru    fi
67279543Sru    cd $ac_popdir
67379543Sru  done
67479543Srufi
67579543Sru
67679543Srutest -n "$ac_init_help" && exit 0
67779543Sruif $ac_init_version; then
67879543Sru  cat <<\EOF
67979543Sru
68079543SruCopyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
68179543SruFree Software Foundation, Inc.
68279543SruThis configure script is free software; the Free Software Foundation
68379543Srugives unlimited permission to copy, distribute and modify it.
68479543SruEOF
68579543Sru  exit 0
68679543Srufi
68779543Sruexec 5>config.log
68879543Srucat >&5 <<EOF
68979543SruThis file contains any messages produced by compilers while
69079543Srurunning configure, to aid debugging if configure makes a mistake.
69179543Sru
69279543SruIt was created by $as_me, which was
69379543Srugenerated by GNU Autoconf 2.50.  Invocation command line was
69479543Sru
69579543Sru  $ $0 $@
69679543Sru
69779543SruEOF
69879543Sru{
69979543Srucat <<_ASUNAME
70079543Sru## ---------- ##
70179543Sru## Platform.  ##
70279543Sru## ---------- ##
70379543Sru
70479543Sruhostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
70579543Sruuname -m = `(uname -m) 2>/dev/null || echo unknown`
70679543Sruuname -r = `(uname -r) 2>/dev/null || echo unknown`
70779543Sruuname -s = `(uname -s) 2>/dev/null || echo unknown`
70879543Sruuname -v = `(uname -v) 2>/dev/null || echo unknown`
70979543Sru
71079543Sru/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
71179543Sru/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
71279543Sru
71379543Sru/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
71479543Sru/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
71579543Sru/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
71679543Sruhostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
71779543Sru/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
71879543Sru/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
71979543Sru/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
72079543Sru
72179543SruPATH = $PATH
72279543Sru
72379543Sru_ASUNAME
72479543Sru} >&5
72579543Sru
72679543Srucat >&5 <<EOF
72779543Sru## ------------ ##
72879543Sru## Core tests.  ##
72979543Sru## ------------ ##
73079543Sru
73179543SruEOF
73279543Sru
73379543Sru# Keep a trace of the command line.
73479543Sru# Strip out --no-create and --no-recursion so they do not pile up.
73579543Sru# Also quote any args containing shell meta-characters.
73679543Sruac_configure_args=
73779543Sruac_sep=
73879543Srufor ac_arg
73979543Srudo
74079543Sru  case $ac_arg in
74179543Sru  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
74279543Sru  | --no-cr | --no-c) ;;
74379543Sru  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
74479543Sru  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
74579543Sru  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
74679543Sru    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
74779543Sru    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
74879543Sru    ac_sep=" " ;;
74979543Sru  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
75079543Sru     ac_sep=" " ;;
75179543Sru  esac
75279543Sru  # Get rid of the leading space.
75379543Srudone
75479543Sru
75579543Sru# When interrupted or exit'd, cleanup temporary files, and complete
75679543Sru# config.log.  We remove comments because anyway the quotes in there
75779543Sru# would cause problems or look ugly.
75879543Srutrap 'exit_status=$?
75979543Sru  # Save into config.log some information that might help in debugging.
76079543Sru  echo >&5
76179543Sru  echo "## ----------------- ##" >&5
76279543Sru  echo "## Cache variables.  ##" >&5
76379543Sru  echo "## ----------------- ##" >&5
76479543Sru  echo >&5
76579543Sru  # The following way of writing the cache mishandles newlines in values,
76679543Sru{
76779543Sru  (set) 2>&1 |
76879543Sru    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
76979543Sru    *ac_space=\ *)
77079543Sru      sed -n \
77179543Sru        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
77279543Sru    	  s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
77379543Sru      ;;
77479543Sru    *)
77579543Sru      sed -n \
77679543Sru        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
77779543Sru      ;;
77879543Sru    esac;
77979543Sru} >&5
78079543Sru  sed "/^$/d" confdefs.h >conftest.log
78179543Sru  if test -s conftest.log; then
78279543Sru    echo >&5
78379543Sru    echo "## ------------ ##" >&5
78479543Sru    echo "## confdefs.h.  ##" >&5
78579543Sru    echo "## ------------ ##" >&5
78679543Sru    echo >&5
78779543Sru    cat conftest.log >&5
78879543Sru  fi
78979543Sru  (echo; echo) >&5
79079543Sru  test "$ac_signal" != 0 &&
79179543Sru    echo "$as_me: caught signal $ac_signal" >&5
79279543Sru  echo "$as_me: exit $exit_status" >&5
79379543Sru  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
79479543Sru    exit $exit_status
79579543Sru     ' 0
79679543Srufor ac_signal in 1 2 13 15; do
79779543Sru  trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
79879543Srudone
79979543Sruac_signal=0
80079543Sru
80179543Sru# confdefs.h avoids OS command line length limits that DEFS can exceed.
80279543Srurm -rf conftest* confdefs.h
80379543Sru# AIX cpp loses on an empty file, so make sure it contains at least a newline.
80479543Sruecho >confdefs.h
80579543Sru
80679543Sru# Let the site file select an alternate cache file if it wants to.
80718099Spst# Prefer explicitly selected file to automatically selected ones.
80818099Spstif test -z "$CONFIG_SITE"; then
80918099Spst  if test "x$prefix" != xNONE; then
81018099Spst    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
81118099Spst  else
81218099Spst    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
81318099Spst  fi
81418099Spstfi
81518099Spstfor ac_site_file in $CONFIG_SITE; do
81618099Spst  if test -r "$ac_site_file"; then
81779543Sru    { echo "$as_me:817: loading site script $ac_site_file" >&5
81879543Sruecho "$as_me: loading site script $ac_site_file" >&6;}
81979543Sru    cat "$ac_site_file" >&5
82018099Spst    . "$ac_site_file"
82118099Spst  fi
82218099Spstdone
82318099Spst
82418099Spstif test -r "$cache_file"; then
82579543Sru  # Some versions of bash will fail to source /dev/null (special
82679543Sru  # files actually), so we avoid doing that.
82779543Sru  if test -f "$cache_file"; then
82879543Sru    { echo "$as_me:828: loading cache $cache_file" >&5
82979543Sruecho "$as_me: loading cache $cache_file" >&6;}
83079543Sru    case $cache_file in
83179543Sru      [\\/]* | ?:[\\/]* ) . $cache_file;;
83279543Sru      *)                      . ./$cache_file;;
83379543Sru    esac
83479543Sru  fi
83518099Spstelse
83679543Sru  { echo "$as_me:836: creating cache $cache_file" >&5
83779543Sruecho "$as_me: creating cache $cache_file" >&6;}
83879543Sru  >$cache_file
83918099Spstfi
84018099Spst
84179543Sru# Check that the precious variables saved in the cache have kept the same
84279543Sru# value.
84379543Sruac_suggest_removing_cache=false
84479543Srufor ac_var in `(set) 2>&1 |
84579543Sru               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
84679543Sru  eval ac_old_set=\$ac_cv_env_${ac_var}_set
84779543Sru  eval ac_new_set=\$ac_env_${ac_var}_set
84879543Sru  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
84979543Sru  eval ac_new_val="\$ac_env_${ac_var}_value"
85079543Sru  case $ac_old_set,$ac_new_set in
85179543Sru    set,)
85279543Sru      { echo "$as_me:852: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
85379543Sruecho "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
85479543Sru      ac_suggest_removing_cache=: ;;
85579543Sru    ,set)
85679543Sru      { echo "$as_me:856: WARNING: \`$ac_var' was not set in the previous run" >&5
85779543Sruecho "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
85879543Sru      ac_suggest_removing_cache=: ;;
85979543Sru    ,);;
86079543Sru    *)
86179543Sru      if test "x$ac_old_val" != "x$ac_new_val"; then
86279543Sru        { echo "$as_me:862: WARNING: \`$ac_var' has changed since the previous run:" >&5
86379543Sruecho "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
86479543Sru        { echo "$as_me:864: WARNING:   former value:  $ac_old_val" >&5
86579543Sruecho "$as_me: WARNING:   former value:  $ac_old_val" >&2;}
86679543Sru        { echo "$as_me:866: WARNING:   current value: $ac_new_val" >&5
86779543Sruecho "$as_me: WARNING:   current value: $ac_new_val" >&2;}
86879543Sru        ac_suggest_removing_cache=:
86979543Sru      fi;;
87079543Sru  esac
87179543Srudone
87279543Sruif $ac_suggest_removing_cache; then
87379543Sru  { echo "$as_me:873: WARNING: changes in the environment can compromise the build" >&5
87479543Sruecho "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
87579543Sru  { echo "$as_me:875: WARNING: consider removing $cache_file and starting over" >&5
87679543Sruecho "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
87779543Srufi
87879543Sru
87918099Spstac_ext=c
88018099Spstac_cpp='$CPP $CPPFLAGS'
88179543Sruac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
88279543Sruac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
88379543Sruac_compiler_gnu=$ac_cv_c_compiler_gnu
88418099Spst
88579543Srucase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
88679543Sru  *c*,-n*) ECHO_N= ECHO_C='
88779543Sru' ECHO_T='	' ;;
88879543Sru  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
88979543Sru  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
89079543Sruesac
89179543Sruecho "#! $SHELL" >conftest.sh
89279543Sruecho  "exit 0"   >>conftest.sh
89379543Sruchmod +x conftest.sh
89479543Sruif { (echo "$as_me:894: PATH=\".;.\"; conftest.sh") >&5
89579543Sru  (PATH=".;."; conftest.sh) 2>&5
89679543Sru  ac_status=$?
89779543Sru  echo "$as_me:897: \$? = $ac_status" >&5
89879543Sru  (exit $ac_status); }; then
89979543Sru  ac_path_separator=';'
90018099Spstelse
90179543Sru  ac_path_separator=:
90218099Spstfi
90379543SruPATH_SEPARATOR="$ac_path_separator"
90479543Srurm -f conftest.sh
90518099Spst
90669626Sruac_srcdir_defaulted=no
90769626Srusrcdir=`cd $srcdir; pwd`
90869626Srutop_builddir=`pwd`
90969626Sru
91079543Sruac_ext=c
91179543Sruac_cpp='$CPP $CPPFLAGS'
91279543Sruac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
91379543Sruac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
91479543Sruac_compiler_gnu=$ac_cv_c_compiler_gnu
91579543Sruif test -n "$ac_tool_prefix"; then
91679543Sru  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
91779543Sruset dummy ${ac_tool_prefix}gcc; ac_word=$2
91879543Sruecho "$as_me:918: checking for $ac_word" >&5
91979543Sruecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
92079543Sruif test "${ac_cv_prog_CC+set}" = set; then
92179543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
92279543Sruelse
92379543Sru  if test -n "$CC"; then
92479543Sru  ac_cv_prog_CC="$CC" # Let the user override the test.
92579543Sruelse
92679543Sru  ac_save_IFS=$IFS; IFS=$ac_path_separator
92779543Sruac_dummy="$PATH"
92879543Srufor ac_dir in $ac_dummy; do
92979543Sru  IFS=$ac_save_IFS
93079543Sru  test -z "$ac_dir" && ac_dir=.
93179543Sru  $as_executable_p "$ac_dir/$ac_word" || continue
93279543Sruac_cv_prog_CC="${ac_tool_prefix}gcc"
93379543Sruecho "$as_me:933: found $ac_dir/$ac_word" >&5
93479543Srubreak
93579543Srudone
93679543Sru
93779543Srufi
93879543Srufi
93979543SruCC=$ac_cv_prog_CC
94079543Sruif test -n "$CC"; then
94179543Sru  echo "$as_me:941: result: $CC" >&5
94279543Sruecho "${ECHO_T}$CC" >&6
94379543Sruelse
94479543Sru  echo "$as_me:944: result: no" >&5
94579543Sruecho "${ECHO_T}no" >&6
94679543Srufi
94779543Sru
94879543Srufi
94979543Sruif test -z "$ac_cv_prog_CC"; then
95079543Sru  ac_ct_CC=$CC
95179543Sru  # Extract the first word of "gcc", so it can be a program name with args.
95255839Sasmodaiset dummy gcc; ac_word=$2
95379543Sruecho "$as_me:953: checking for $ac_word" >&5
95479543Sruecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
95579543Sruif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
95679543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
95718099Spstelse
95879543Sru  if test -n "$ac_ct_CC"; then
95979543Sru  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
96079543Sruelse
96179543Sru  ac_save_IFS=$IFS; IFS=$ac_path_separator
96279543Sruac_dummy="$PATH"
96379543Srufor ac_dir in $ac_dummy; do
96479543Sru  IFS=$ac_save_IFS
96579543Sru  test -z "$ac_dir" && ac_dir=.
96679543Sru  $as_executable_p "$ac_dir/$ac_word" || continue
96779543Sruac_cv_prog_ac_ct_CC="gcc"
96879543Sruecho "$as_me:968: found $ac_dir/$ac_word" >&5
96979543Srubreak
97079543Srudone
97179543Sru
97279543Srufi
97379543Srufi
97479543Sruac_ct_CC=$ac_cv_prog_ac_ct_CC
97579543Sruif test -n "$ac_ct_CC"; then
97679543Sru  echo "$as_me:976: result: $ac_ct_CC" >&5
97779543Sruecho "${ECHO_T}$ac_ct_CC" >&6
97879543Sruelse
97979543Sru  echo "$as_me:979: result: no" >&5
98079543Sruecho "${ECHO_T}no" >&6
98179543Srufi
98279543Sru
98379543Sru  CC=$ac_ct_CC
98479543Sruelse
98579543Sru  CC="$ac_cv_prog_CC"
98679543Srufi
98779543Sru
98879543Sruif test -z "$CC"; then
98979543Sru  if test -n "$ac_tool_prefix"; then
99079543Sru  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
99179543Sruset dummy ${ac_tool_prefix}cc; ac_word=$2
99279543Sruecho "$as_me:992: checking for $ac_word" >&5
99379543Sruecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
99479543Sruif test "${ac_cv_prog_CC+set}" = set; then
99579543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
99679543Sruelse
99755839Sasmodai  if test -n "$CC"; then
99855839Sasmodai  ac_cv_prog_CC="$CC" # Let the user override the test.
99955839Sasmodaielse
100079543Sru  ac_save_IFS=$IFS; IFS=$ac_path_separator
100179543Sruac_dummy="$PATH"
100279543Srufor ac_dir in $ac_dummy; do
100379543Sru  IFS=$ac_save_IFS
100479543Sru  test -z "$ac_dir" && ac_dir=.
100579543Sru  $as_executable_p "$ac_dir/$ac_word" || continue
100679543Sruac_cv_prog_CC="${ac_tool_prefix}cc"
100779543Sruecho "$as_me:1007: found $ac_dir/$ac_word" >&5
100879543Srubreak
100979543Srudone
101079543Sru
101118099Spstfi
101255839Sasmodaifi
101379543SruCC=$ac_cv_prog_CC
101455839Sasmodaiif test -n "$CC"; then
101579543Sru  echo "$as_me:1015: result: $CC" >&5
101679543Sruecho "${ECHO_T}$CC" >&6
101718099Spstelse
101879543Sru  echo "$as_me:1018: result: no" >&5
101979543Sruecho "${ECHO_T}no" >&6
102018099Spstfi
102118099Spst
102279543Srufi
102379543Sruif test -z "$ac_cv_prog_CC"; then
102479543Sru  ac_ct_CC=$CC
102579543Sru  # Extract the first word of "cc", so it can be a program name with args.
102679543Sruset dummy cc; ac_word=$2
102779543Sruecho "$as_me:1027: checking for $ac_word" >&5
102879543Sruecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
102979543Sruif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
103079543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
103179543Sruelse
103279543Sru  if test -n "$ac_ct_CC"; then
103379543Sru  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
103479543Sruelse
103579543Sru  ac_save_IFS=$IFS; IFS=$ac_path_separator
103679543Sruac_dummy="$PATH"
103779543Srufor ac_dir in $ac_dummy; do
103879543Sru  IFS=$ac_save_IFS
103979543Sru  test -z "$ac_dir" && ac_dir=.
104079543Sru  $as_executable_p "$ac_dir/$ac_word" || continue
104179543Sruac_cv_prog_ac_ct_CC="cc"
104279543Sruecho "$as_me:1042: found $ac_dir/$ac_word" >&5
104379543Srubreak
104479543Srudone
104579543Sru
104679543Srufi
104779543Srufi
104879543Sruac_ct_CC=$ac_cv_prog_ac_ct_CC
104979543Sruif test -n "$ac_ct_CC"; then
105079543Sru  echo "$as_me:1050: result: $ac_ct_CC" >&5
105179543Sruecho "${ECHO_T}$ac_ct_CC" >&6
105279543Sruelse
105379543Sru  echo "$as_me:1053: result: no" >&5
105479543Sruecho "${ECHO_T}no" >&6
105579543Srufi
105679543Sru
105779543Sru  CC=$ac_ct_CC
105879543Sruelse
105979543Sru  CC="$ac_cv_prog_CC"
106079543Srufi
106179543Sru
106279543Srufi
106355839Sasmodaiif test -z "$CC"; then
106455839Sasmodai  # Extract the first word of "cc", so it can be a program name with args.
106555839Sasmodaiset dummy cc; ac_word=$2
106679543Sruecho "$as_me:1066: checking for $ac_word" >&5
106779543Sruecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
106879543Sruif test "${ac_cv_prog_CC+set}" = set; then
106979543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
107055839Sasmodaielse
107155839Sasmodai  if test -n "$CC"; then
107255839Sasmodai  ac_cv_prog_CC="$CC" # Let the user override the test.
107355839Sasmodaielse
107455839Sasmodai  ac_prog_rejected=no
107579543Sru  ac_save_IFS=$IFS; IFS=$ac_path_separator
107679543Sruac_dummy="$PATH"
107779543Srufor ac_dir in $ac_dummy; do
107879543Sru  IFS=$ac_save_IFS
107979543Sru  test -z "$ac_dir" && ac_dir=.
108079543Sru  $as_executable_p "$ac_dir/$ac_word" || continue
108179543Sruif test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
108279543Sru  ac_prog_rejected=yes
108379543Sru  continue
108479543Srufi
108579543Sruac_cv_prog_CC="cc"
108679543Sruecho "$as_me:1086: found $ac_dir/$ac_word" >&5
108779543Srubreak
108879543Srudone
108979543Sru
109055839Sasmodaiif test $ac_prog_rejected = yes; then
109155839Sasmodai  # We found a bogon in the path, so make sure we never use it.
109255839Sasmodai  set dummy $ac_cv_prog_CC
109355839Sasmodai  shift
109479543Sru  if test $# != 0; then
109555839Sasmodai    # We chose a different compiler from the bogus one.
109655839Sasmodai    # However, it has the same basename, so the bogon will be chosen
109755839Sasmodai    # first if we set CC to just the basename; use the full file name.
109855839Sasmodai    shift
109979543Sru    set dummy "$ac_dir/$ac_word" ${1+"$@"}
110055839Sasmodai    shift
110155839Sasmodai    ac_cv_prog_CC="$@"
110218099Spst  fi
110318099Spstfi
110455839Sasmodaifi
110555839Sasmodaifi
110679543SruCC=$ac_cv_prog_CC
110755839Sasmodaiif test -n "$CC"; then
110879543Sru  echo "$as_me:1108: result: $CC" >&5
110979543Sruecho "${ECHO_T}$CC" >&6
111055839Sasmodaielse
111179543Sru  echo "$as_me:1111: result: no" >&5
111279543Sruecho "${ECHO_T}no" >&6
111355839Sasmodaifi
111418099Spst
111579543Srufi
111679543Sruif test -z "$CC"; then
111779543Sru  if test -n "$ac_tool_prefix"; then
111879543Sru  for ac_prog in cl
111979543Sru  do
112079543Sru    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
112179543Sruset dummy $ac_tool_prefix$ac_prog; ac_word=$2
112279543Sruecho "$as_me:1122: checking for $ac_word" >&5
112379543Sruecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
112479543Sruif test "${ac_cv_prog_CC+set}" = set; then
112579543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
112618099Spstelse
112718099Spst  if test -n "$CC"; then
112818099Spst  ac_cv_prog_CC="$CC" # Let the user override the test.
112918099Spstelse
113079543Sru  ac_save_IFS=$IFS; IFS=$ac_path_separator
113179543Sruac_dummy="$PATH"
113279543Srufor ac_dir in $ac_dummy; do
113379543Sru  IFS=$ac_save_IFS
113479543Sru  test -z "$ac_dir" && ac_dir=.
113579543Sru  $as_executable_p "$ac_dir/$ac_word" || continue
113679543Sruac_cv_prog_CC="$ac_tool_prefix$ac_prog"
113779543Sruecho "$as_me:1137: found $ac_dir/$ac_word" >&5
113879543Srubreak
113979543Srudone
114079543Sru
114118099Spstfi
114218099Spstfi
114379543SruCC=$ac_cv_prog_CC
114418099Spstif test -n "$CC"; then
114579543Sru  echo "$as_me:1145: result: $CC" >&5
114679543Sruecho "${ECHO_T}$CC" >&6
114718099Spstelse
114879543Sru  echo "$as_me:1148: result: no" >&5
114979543Sruecho "${ECHO_T}no" >&6
115018099Spstfi
115179543Sru
115279543Sru    test -n "$CC" && break
115379543Sru  done
115455839Sasmodaifi
115579543Sruif test -z "$CC"; then
115679543Sru  ac_ct_CC=$CC
115779543Sru  for ac_prog in cl
115879543Srudo
115979543Sru  # Extract the first word of "$ac_prog", so it can be a program name with args.
116079543Sruset dummy $ac_prog; ac_word=$2
116179543Sruecho "$as_me:1161: checking for $ac_word" >&5
116279543Sruecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
116379543Sruif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
116479543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
116579543Sruelse
116679543Sru  if test -n "$ac_ct_CC"; then
116779543Sru  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
116879543Sruelse
116979543Sru  ac_save_IFS=$IFS; IFS=$ac_path_separator
117079543Sruac_dummy="$PATH"
117179543Srufor ac_dir in $ac_dummy; do
117279543Sru  IFS=$ac_save_IFS
117379543Sru  test -z "$ac_dir" && ac_dir=.
117479543Sru  $as_executable_p "$ac_dir/$ac_word" || continue
117579543Sruac_cv_prog_ac_ct_CC="$ac_prog"
117679543Sruecho "$as_me:1176: found $ac_dir/$ac_word" >&5
117779543Srubreak
117879543Srudone
117918099Spst
118079543Srufi
118179543Srufi
118279543Sruac_ct_CC=$ac_cv_prog_ac_ct_CC
118379543Sruif test -n "$ac_ct_CC"; then
118479543Sru  echo "$as_me:1184: result: $ac_ct_CC" >&5
118579543Sruecho "${ECHO_T}$ac_ct_CC" >&6
118679543Sruelse
118779543Sru  echo "$as_me:1187: result: no" >&5
118879543Sruecho "${ECHO_T}no" >&6
118979543Srufi
119018099Spst
119179543Sru  test -n "$ac_ct_CC" && break
119279543Srudone
119355839Sasmodai
119479543Sru  CC=$ac_ct_CC
119579543Srufi
119655839Sasmodai
119779543Srufi
119879543Sru
119979543Srutest -z "$CC" && { { echo "$as_me:1199: error: no acceptable cc found in \$PATH" >&5
120079543Sruecho "$as_me: error: no acceptable cc found in \$PATH" >&2;}
120179543Sru   { (exit 1); exit 1; }; }
120279543Sru
120379543Srucat >conftest.$ac_ext <<_ACEOF
120479543Sru#line 1204 "configure"
120555839Sasmodai#include "confdefs.h"
120655839Sasmodai
120779543Sruint
120879543Srumain ()
120979543Sru{
121079543Sru
121179543Sru  ;
121279543Sru  return 0;
121379543Sru}
121479543Sru_ACEOF
121579543Sruac_clean_files_save=$ac_clean_files
121679543Sruac_clean_files="$ac_clean_files a.out a.exe"
121779543Sru# Try to create an executable without -o first, disregard a.out.
121879543Sru# It will help us diagnose broken compiler, and finding out an intuition
121979543Sru# of exeext.
122079543Sruecho "$as_me:1220: checking for C compiler default output" >&5
122179543Sruecho $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
122279543Sruac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
122379543Sruif { (eval echo "$as_me:1223: \"$ac_link_default\"") >&5
122479543Sru  (eval $ac_link_default) 2>&5
122579543Sru  ac_status=$?
122679543Sru  echo "$as_me:1226: \$? = $ac_status" >&5
122779543Sru  (exit $ac_status); }; then
122879543Sru  for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
122979543Sru  case $ac_file in
123079543Sru    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
123179543Sru    a.out ) # We found the default executable, but exeext='' is most
123279543Sru            # certainly right.
123379543Sru            break;;
123479543Sru    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
123579543Sru          export ac_cv_exeext
123679543Sru          break;;
123779543Sru    * ) break;;
123879543Sru  esac
123979543Srudone
124079543Sruelse
124179543Sru  echo "$as_me: failed program was:" >&5
124279543Srucat conftest.$ac_ext >&5
124379543Sru{ { echo "$as_me:1243: error: C compiler cannot create executables" >&5
124479543Sruecho "$as_me: error: C compiler cannot create executables" >&2;}
124579543Sru   { (exit 77); exit 77; }; }
124679543Srufi
124779543Sru
124879543Sruac_exeext=$ac_cv_exeext
124979543Sruecho "$as_me:1249: result: $ac_file" >&5
125079543Sruecho "${ECHO_T}$ac_file" >&6
125179543Sru
125279543Sru# Check the compiler produces executables we can run.  If not, either
125379543Sru# the compiler is broken, or we cross compile.
125479543Sruecho "$as_me:1254: checking whether the C compiler works" >&5
125579543Sruecho $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
125679543Sru# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
125779543Sru# If not cross compiling, check that we can run a simple program.
125879543Sruif test "$cross_compiling" != yes; then
125979543Sru  if { ac_try='./$ac_file'
126079543Sru  { (eval echo "$as_me:1260: \"$ac_try\"") >&5
126179543Sru  (eval $ac_try) 2>&5
126279543Sru  ac_status=$?
126379543Sru  echo "$as_me:1263: \$? = $ac_status" >&5
126479543Sru  (exit $ac_status); }; }; then
126579543Sru    cross_compiling=no
126655839Sasmodai  else
126779543Sru    if test "$cross_compiling" = maybe; then
126879543Sru	cross_compiling=yes
126979543Sru    else
127079543Sru	{ { echo "$as_me:1270: error: cannot run C compiled programs.
127179543SruIf you meant to cross compile, use \`--host'." >&5
127279543Sruecho "$as_me: error: cannot run C compiled programs.
127379543SruIf you meant to cross compile, use \`--host'." >&2;}
127479543Sru   { (exit 1); exit 1; }; }
127579543Sru    fi
127655839Sasmodai  fi
127755839Sasmodaifi
127879543Sruecho "$as_me:1278: result: yes" >&5
127979543Sruecho "${ECHO_T}yes" >&6
128055839Sasmodai
128179543Srurm -f a.out a.exe conftest$ac_cv_exeext
128279543Sruac_clean_files=$ac_clean_files_save
128379543Sru# Check the compiler produces executables we can run.  If not, either
128479543Sru# the compiler is broken, or we cross compile.
128579543Sruecho "$as_me:1285: checking whether we are cross compiling" >&5
128679543Sruecho $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
128779543Sruecho "$as_me:1287: result: $cross_compiling" >&5
128879543Sruecho "${ECHO_T}$cross_compiling" >&6
128979543Sru
129079543Sruecho "$as_me:1290: checking for executable suffix" >&5
129179543Sruecho $ECHO_N "checking for executable suffix... $ECHO_C" >&6
129279543Sruif { (eval echo "$as_me:1292: \"$ac_link\"") >&5
129379543Sru  (eval $ac_link) 2>&5
129479543Sru  ac_status=$?
129579543Sru  echo "$as_me:1295: \$? = $ac_status" >&5
129679543Sru  (exit $ac_status); }; then
129779543Sru  # If both `conftest.exe' and `conftest' are `present' (well, observable)
129879543Sru# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
129979543Sru# work properly (i.e., refer to `conftest.exe'), while it won't with
130079543Sru# `rm'.
130179543Srufor ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
130279543Sru  case $ac_file in
130379543Sru    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
130479543Sru    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
130579543Sru          export ac_cv_exeext
130679543Sru          break;;
130779543Sru    * ) break;;
130879543Sru  esac
130979543Srudone
131079543Sruelse
131179543Sru  { { echo "$as_me:1311: error: cannot compute EXEEXT: cannot compile and link" >&5
131279543Sruecho "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
131379543Sru   { (exit 1); exit 1; }; }
131455839Sasmodaifi
131555839Sasmodai
131679543Srurm -f conftest$ac_cv_exeext
131779543Sruecho "$as_me:1317: result: $ac_cv_exeext" >&5
131879543Sruecho "${ECHO_T}$ac_cv_exeext" >&6
131979543Sru
132079543Srurm -f conftest.$ac_ext
132179543SruEXEEXT=$ac_cv_exeext
132279543Sruac_exeext=$EXEEXT
132379543Sruecho "$as_me:1323: checking for object suffix" >&5
132479543Sruecho $ECHO_N "checking for object suffix... $ECHO_C" >&6
132579543Sruif test "${ac_cv_objext+set}" = set; then
132679543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
132718099Spstelse
132879543Sru  cat >conftest.$ac_ext <<_ACEOF
132979543Sru#line 1329 "configure"
133079543Sru#include "confdefs.h"
133179543Sru
133279543Sruint
133379543Srumain ()
133479543Sru{
133579543Sru
133679543Sru  ;
133779543Sru  return 0;
133879543Sru}
133979543Sru_ACEOF
134079543Srurm -f conftest.o conftest.obj
134179543Sruif { (eval echo "$as_me:1341: \"$ac_compile\"") >&5
134279543Sru  (eval $ac_compile) 2>&5
134379543Sru  ac_status=$?
134479543Sru  echo "$as_me:1344: \$? = $ac_status" >&5
134579543Sru  (exit $ac_status); }; then
134679543Sru  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
134779543Sru  case $ac_file in
134879543Sru    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
134979543Sru    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
135079543Sru       break;;
135179543Sru  esac
135279543Srudone
135318099Spstelse
135479543Sru  echo "$as_me: failed program was:" >&5
135579543Srucat conftest.$ac_ext >&5
135679543Sru{ { echo "$as_me:1356: error: cannot compute OBJEXT: cannot compile" >&5
135779543Sruecho "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
135879543Sru   { (exit 1); exit 1; }; }
135918099Spstfi
136079543Sru
136179543Srurm -f conftest.$ac_cv_objext conftest.$ac_ext
136218099Spstfi
136379543Sruecho "$as_me:1363: result: $ac_cv_objext" >&5
136479543Sruecho "${ECHO_T}$ac_cv_objext" >&6
136579543SruOBJEXT=$ac_cv_objext
136679543Sruac_objext=$OBJEXT
136779543Sruecho "$as_me:1367: checking whether we are using the GNU C compiler" >&5
136879543Sruecho $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
136979543Sruif test "${ac_cv_c_compiler_gnu+set}" = set; then
137079543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
137179543Sruelse
137279543Sru  cat >conftest.$ac_ext <<_ACEOF
137379543Sru#line 1373 "configure"
137479543Sru#include "confdefs.h"
137555839Sasmodai
137679543Sruint
137779543Srumain ()
137879543Sru{
137979543Sru#ifndef __GNUC__
138079543Sru       choke me
138179543Sru#endif
138255839Sasmodai
138379543Sru  ;
138479543Sru  return 0;
138579543Sru}
138679543Sru_ACEOF
138779543Srurm -f conftest.$ac_objext
138879543Sruif { (eval echo "$as_me:1388: \"$ac_compile\"") >&5
138979543Sru  (eval $ac_compile) 2>&5
139079543Sru  ac_status=$?
139179543Sru  echo "$as_me:1391: \$? = $ac_status" >&5
139279543Sru  (exit $ac_status); } &&
139379543Sru         { ac_try='test -s conftest.$ac_objext'
139479543Sru  { (eval echo "$as_me:1394: \"$ac_try\"") >&5
139579543Sru  (eval $ac_try) 2>&5
139679543Sru  ac_status=$?
139779543Sru  echo "$as_me:1397: \$? = $ac_status" >&5
139879543Sru  (exit $ac_status); }; }; then
139979543Sru  ac_compiler_gnu=yes
140055839Sasmodaielse
140179543Sru  echo "$as_me: failed program was:" >&5
140279543Srucat conftest.$ac_ext >&5
140379543Sruac_compiler_gnu=no
140455839Sasmodaifi
140579543Srurm -f conftest.$ac_objext conftest.$ac_ext
140679543Sruac_cv_c_compiler_gnu=$ac_compiler_gnu
140755839Sasmodai
140879543Srufi
140979543Sruecho "$as_me:1409: result: $ac_cv_c_compiler_gnu" >&5
141079543Sruecho "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
141179543SruGCC=`test $ac_compiler_gnu = yes && echo yes`
141279543Sruac_test_CFLAGS=${CFLAGS+set}
141379543Sruac_save_CFLAGS=$CFLAGS
141479543SruCFLAGS="-g"
141579543Sruecho "$as_me:1415: checking whether $CC accepts -g" >&5
141679543Sruecho $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
141779543Sruif test "${ac_cv_prog_cc_g+set}" = set; then
141879543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
141918099Spstelse
142079543Sru  cat >conftest.$ac_ext <<_ACEOF
142179543Sru#line 1421 "configure"
142279543Sru#include "confdefs.h"
142379543Sru
142479543Sruint
142579543Srumain ()
142679543Sru{
142779543Sru
142879543Sru  ;
142979543Sru  return 0;
143079543Sru}
143179543Sru_ACEOF
143279543Srurm -f conftest.$ac_objext
143379543Sruif { (eval echo "$as_me:1433: \"$ac_compile\"") >&5
143479543Sru  (eval $ac_compile) 2>&5
143579543Sru  ac_status=$?
143679543Sru  echo "$as_me:1436: \$? = $ac_status" >&5
143779543Sru  (exit $ac_status); } &&
143879543Sru         { ac_try='test -s conftest.$ac_objext'
143979543Sru  { (eval echo "$as_me:1439: \"$ac_try\"") >&5
144079543Sru  (eval $ac_try) 2>&5
144179543Sru  ac_status=$?
144279543Sru  echo "$as_me:1442: \$? = $ac_status" >&5
144379543Sru  (exit $ac_status); }; }; then
144455839Sasmodai  ac_cv_prog_cc_g=yes
144518099Spstelse
144679543Sru  echo "$as_me: failed program was:" >&5
144779543Srucat conftest.$ac_ext >&5
144879543Sruac_cv_prog_cc_g=no
144918099Spstfi
145079543Srurm -f conftest.$ac_objext conftest.$ac_ext
145118099Spstfi
145279543Sruecho "$as_me:1452: result: $ac_cv_prog_cc_g" >&5
145379543Sruecho "${ECHO_T}$ac_cv_prog_cc_g" >&6
145455839Sasmodaiif test "$ac_test_CFLAGS" = set; then
145579543Sru  CFLAGS=$ac_save_CFLAGS
145655839Sasmodaielif test $ac_cv_prog_cc_g = yes; then
145755839Sasmodai  if test "$GCC" = yes; then
145855839Sasmodai    CFLAGS="-g -O2"
145955839Sasmodai  else
146055839Sasmodai    CFLAGS="-g"
146118099Spst  fi
146218099Spstelse
146355839Sasmodai  if test "$GCC" = yes; then
146455839Sasmodai    CFLAGS="-O2"
146555839Sasmodai  else
146655839Sasmodai    CFLAGS=
146755839Sasmodai  fi
146818099Spstfi
146979543Sru# Some people use a C++ compiler to compile C.  Since we use `exit',
147079543Sru# in C++ we need to declare it.  In case someone uses the same compiler
147179543Sru# for both compiling C and C++ we need to have the C++ compiler decide
147279543Sru# the declaration of exit, since it's the most demanding environment.
147379543Srucat >conftest.$ac_ext <<_ACEOF
147479543Sru#ifndef __cplusplus
147579543Sru  choke me
147679543Sru#endif
147779543Sru_ACEOF
147879543Srurm -f conftest.$ac_objext
147979543Sruif { (eval echo "$as_me:1479: \"$ac_compile\"") >&5
148079543Sru  (eval $ac_compile) 2>&5
148179543Sru  ac_status=$?
148279543Sru  echo "$as_me:1482: \$? = $ac_status" >&5
148379543Sru  (exit $ac_status); } &&
148479543Sru         { ac_try='test -s conftest.$ac_objext'
148579543Sru  { (eval echo "$as_me:1485: \"$ac_try\"") >&5
148679543Sru  (eval $ac_try) 2>&5
148779543Sru  ac_status=$?
148879543Sru  echo "$as_me:1488: \$? = $ac_status" >&5
148979543Sru  (exit $ac_status); }; }; then
149079543Sru  for ac_declaration in \
149179543Sru   ''\
149279543Sru   '#include <stdlib.h>' \
149379543Sru   'extern "C" void std::exit (int) throw (); using std::exit;' \
149479543Sru   'extern "C" void std::exit (int); using std::exit;' \
149579543Sru   'extern "C" void exit (int) throw ();' \
149679543Sru   'extern "C" void exit (int);' \
149779543Sru   'void exit (int);'
149818099Spstdo
149979543Sru  cat >conftest.$ac_ext <<_ACEOF
150079543Sru#line 1500 "configure"
150179543Sru#include "confdefs.h"
150279543Sru#include <stdlib.h>
150379543Sru$ac_declaration
150479543Sruint
150579543Srumain ()
150679543Sru{
150779543Sruexit (42);
150879543Sru  ;
150979543Sru  return 0;
151079543Sru}
151179543Sru_ACEOF
151279543Srurm -f conftest.$ac_objext
151379543Sruif { (eval echo "$as_me:1513: \"$ac_compile\"") >&5
151479543Sru  (eval $ac_compile) 2>&5
151579543Sru  ac_status=$?
151679543Sru  echo "$as_me:1516: \$? = $ac_status" >&5
151779543Sru  (exit $ac_status); } &&
151879543Sru         { ac_try='test -s conftest.$ac_objext'
151979543Sru  { (eval echo "$as_me:1519: \"$ac_try\"") >&5
152079543Sru  (eval $ac_try) 2>&5
152179543Sru  ac_status=$?
152279543Sru  echo "$as_me:1522: \$? = $ac_status" >&5
152379543Sru  (exit $ac_status); }; }; then
152479543Sru  :
152518099Spstelse
152679543Sru  echo "$as_me: failed program was:" >&5
152779543Srucat conftest.$ac_ext >&5
152879543Srucontinue
152979543Srufi
153079543Srurm -f conftest.$ac_objext conftest.$ac_ext
153179543Sru  cat >conftest.$ac_ext <<_ACEOF
153279543Sru#line 1532 "configure"
153379543Sru#include "confdefs.h"
153479543Sru$ac_declaration
153579543Sruint
153679543Srumain ()
153779543Sru{
153879543Sruexit (42);
153979543Sru  ;
154079543Sru  return 0;
154179543Sru}
154279543Sru_ACEOF
154379543Srurm -f conftest.$ac_objext
154479543Sruif { (eval echo "$as_me:1544: \"$ac_compile\"") >&5
154579543Sru  (eval $ac_compile) 2>&5
154679543Sru  ac_status=$?
154779543Sru  echo "$as_me:1547: \$? = $ac_status" >&5
154879543Sru  (exit $ac_status); } &&
154979543Sru         { ac_try='test -s conftest.$ac_objext'
155079543Sru  { (eval echo "$as_me:1550: \"$ac_try\"") >&5
155179543Sru  (eval $ac_try) 2>&5
155279543Sru  ac_status=$?
155379543Sru  echo "$as_me:1553: \$? = $ac_status" >&5
155479543Sru  (exit $ac_status); }; }; then
155579543Sru  break
155679543Sruelse
155779543Sru  echo "$as_me: failed program was:" >&5
155879543Srucat conftest.$ac_ext >&5
155979543Srufi
156079543Srurm -f conftest.$ac_objext conftest.$ac_ext
156179543Srudone
156279543Sruecho '#ifdef __cplusplus' >>confdefs.h
156379543Sruecho $ac_declaration      >>confdefs.h
156479543Sruecho '#endif'             >>confdefs.h
156579543Sru
156679543Sruelse
156779543Sru  echo "$as_me: failed program was:" >&5
156879543Srucat conftest.$ac_ext >&5
156979543Srufi
157079543Srurm -f conftest.$ac_objext conftest.$ac_ext
157179543Sruac_ext=c
157279543Sruac_cpp='$CPP $CPPFLAGS'
157379543Sruac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
157479543Sruac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
157579543Sruac_compiler_gnu=$ac_cv_c_compiler_gnu
157679543Sru
157779543Sruac_ext=cc
157879543Sruac_cpp='$CXXCPP $CPPFLAGS'
157979543Sruac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
158079543Sruac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
158179543Sruac_compiler_gnu=$ac_cv_cxx_compiler_gnu
158279543Sruif test -n "$ac_tool_prefix"; then
158379543Sru  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
158479543Sru  do
158579543Sru    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
158679543Sruset dummy $ac_tool_prefix$ac_prog; ac_word=$2
158779543Sruecho "$as_me:1587: checking for $ac_word" >&5
158879543Sruecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
158979543Sruif test "${ac_cv_prog_CXX+set}" = set; then
159079543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
159179543Sruelse
159218099Spst  if test -n "$CXX"; then
159318099Spst  ac_cv_prog_CXX="$CXX" # Let the user override the test.
159418099Spstelse
159579543Sru  ac_save_IFS=$IFS; IFS=$ac_path_separator
159679543Sruac_dummy="$PATH"
159779543Srufor ac_dir in $ac_dummy; do
159879543Sru  IFS=$ac_save_IFS
159979543Sru  test -z "$ac_dir" && ac_dir=.
160079543Sru  $as_executable_p "$ac_dir/$ac_word" || continue
160179543Sruac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
160279543Sruecho "$as_me:1602: found $ac_dir/$ac_word" >&5
160379543Srubreak
160479543Srudone
160579543Sru
160618099Spstfi
160718099Spstfi
160879543SruCXX=$ac_cv_prog_CXX
160918099Spstif test -n "$CXX"; then
161079543Sru  echo "$as_me:1610: result: $CXX" >&5
161179543Sruecho "${ECHO_T}$CXX" >&6
161218099Spstelse
161379543Sru  echo "$as_me:1613: result: no" >&5
161479543Sruecho "${ECHO_T}no" >&6
161518099Spstfi
161618099Spst
161779543Sru    test -n "$CXX" && break
161879543Sru  done
161979543Srufi
162079543Sruif test -z "$CXX"; then
162179543Sru  ac_ct_CXX=$CXX
162279543Sru  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
162379543Srudo
162479543Sru  # Extract the first word of "$ac_prog", so it can be a program name with args.
162579543Sruset dummy $ac_prog; ac_word=$2
162679543Sruecho "$as_me:1626: checking for $ac_word" >&5
162779543Sruecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
162879543Sruif test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
162979543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
163079543Sruelse
163179543Sru  if test -n "$ac_ct_CXX"; then
163279543Sru  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
163379543Sruelse
163479543Sru  ac_save_IFS=$IFS; IFS=$ac_path_separator
163579543Sruac_dummy="$PATH"
163679543Srufor ac_dir in $ac_dummy; do
163779543Sru  IFS=$ac_save_IFS
163879543Sru  test -z "$ac_dir" && ac_dir=.
163979543Sru  $as_executable_p "$ac_dir/$ac_word" || continue
164079543Sruac_cv_prog_ac_ct_CXX="$ac_prog"
164179543Sruecho "$as_me:1641: found $ac_dir/$ac_word" >&5
164279543Srubreak
164318099Spstdone
164418099Spst
164579543Srufi
164679543Srufi
164779543Sruac_ct_CXX=$ac_cv_prog_ac_ct_CXX
164879543Sruif test -n "$ac_ct_CXX"; then
164979543Sru  echo "$as_me:1649: result: $ac_ct_CXX" >&5
165079543Sruecho "${ECHO_T}$ac_ct_CXX" >&6
165179543Sruelse
165279543Sru  echo "$as_me:1652: result: no" >&5
165379543Sruecho "${ECHO_T}no" >&6
165479543Srufi
165518099Spst
165679543Sru  test -n "$ac_ct_CXX" && break
165779543Srudone
165879543Srutest -n "$ac_ct_CXX" || ac_ct_CXX="g++"
165955839Sasmodai
166079543Sru  CXX=$ac_ct_CXX
166179543Srufi
166255839Sasmodai
166379543Sruecho "$as_me:1663: checking whether we are using the GNU C++ compiler" >&5
166479543Sruecho $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
166579543Sruif test "${ac_cv_cxx_compiler_gnu+set}" = set; then
166679543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
166779543Sruelse
166879543Sru  cat >conftest.$ac_ext <<_ACEOF
166979543Sru#line 1669 "configure"
167055839Sasmodai#include "confdefs.h"
167155839Sasmodai
167279543Sruint
167379543Srumain ()
167479543Sru{
167579543Sru#ifndef __GNUC__
167679543Sru       choke me
167779543Sru#endif
167879543Sru
167979543Sru  ;
168079543Sru  return 0;
168179543Sru}
168279543Sru_ACEOF
168379543Srurm -f conftest.$ac_objext
168479543Sruif { (eval echo "$as_me:1684: \"$ac_compile\"") >&5
168579543Sru  (eval $ac_compile) 2>&5
168679543Sru  ac_status=$?
168779543Sru  echo "$as_me:1687: \$? = $ac_status" >&5
168879543Sru  (exit $ac_status); } &&
168979543Sru         { ac_try='test -s conftest.$ac_objext'
169079543Sru  { (eval echo "$as_me:1690: \"$ac_try\"") >&5
169179543Sru  (eval $ac_try) 2>&5
169279543Sru  ac_status=$?
169379543Sru  echo "$as_me:1693: \$? = $ac_status" >&5
169479543Sru  (exit $ac_status); }; }; then
169579543Sru  ac_compiler_gnu=yes
169655839Sasmodaielse
169779543Sru  echo "$as_me: failed program was:" >&5
169879543Srucat conftest.$ac_ext >&5
169979543Sruac_compiler_gnu=no
170055839Sasmodaifi
170179543Srurm -f conftest.$ac_objext conftest.$ac_ext
170279543Sruac_cv_cxx_compiler_gnu=$ac_compiler_gnu
170355839Sasmodai
170455839Sasmodaifi
170579543Sruecho "$as_me:1705: result: $ac_cv_cxx_compiler_gnu" >&5
170679543Sruecho "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
170779543SruGXX=`test $ac_compiler_gnu = yes && echo yes`
170879543Sruac_test_CXXFLAGS=${CXXFLAGS+set}
170979543Sruac_save_CXXFLAGS=$CXXFLAGS
171079543SruCXXFLAGS="-g"
171179543Sruecho "$as_me:1711: checking whether $CXX accepts -g" >&5
171279543Sruecho $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
171379543Sruif test "${ac_cv_prog_cxx_g+set}" = set; then
171479543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
171518099Spstelse
171679543Sru  cat >conftest.$ac_ext <<_ACEOF
171779543Sru#line 1717 "configure"
171879543Sru#include "confdefs.h"
171955839Sasmodai
172079543Sruint
172179543Srumain ()
172279543Sru{
172355839Sasmodai
172479543Sru  ;
172579543Sru  return 0;
172679543Sru}
172779543Sru_ACEOF
172879543Srurm -f conftest.$ac_objext
172979543Sruif { (eval echo "$as_me:1729: \"$ac_compile\"") >&5
173079543Sru  (eval $ac_compile) 2>&5
173179543Sru  ac_status=$?
173279543Sru  echo "$as_me:1732: \$? = $ac_status" >&5
173379543Sru  (exit $ac_status); } &&
173479543Sru         { ac_try='test -s conftest.$ac_objext'
173579543Sru  { (eval echo "$as_me:1735: \"$ac_try\"") >&5
173679543Sru  (eval $ac_try) 2>&5
173779543Sru  ac_status=$?
173879543Sru  echo "$as_me:1738: \$? = $ac_status" >&5
173979543Sru  (exit $ac_status); }; }; then
174055839Sasmodai  ac_cv_prog_cxx_g=yes
174118099Spstelse
174279543Sru  echo "$as_me: failed program was:" >&5
174379543Srucat conftest.$ac_ext >&5
174479543Sruac_cv_prog_cxx_g=no
174518099Spstfi
174679543Srurm -f conftest.$ac_objext conftest.$ac_ext
174718099Spstfi
174879543Sruecho "$as_me:1748: result: $ac_cv_prog_cxx_g" >&5
174979543Sruecho "${ECHO_T}$ac_cv_prog_cxx_g" >&6
175055839Sasmodaiif test "$ac_test_CXXFLAGS" = set; then
175179543Sru  CXXFLAGS=$ac_save_CXXFLAGS
175255839Sasmodaielif test $ac_cv_prog_cxx_g = yes; then
175355839Sasmodai  if test "$GXX" = yes; then
175455839Sasmodai    CXXFLAGS="-g -O2"
175555839Sasmodai  else
175655839Sasmodai    CXXFLAGS="-g"
175718099Spst  fi
175818099Spstelse
175955839Sasmodai  if test "$GXX" = yes; then
176055839Sasmodai    CXXFLAGS="-O2"
176155839Sasmodai  else
176255839Sasmodai    CXXFLAGS=
176355839Sasmodai  fi
176418099Spstfi
176579543Srufor ac_declaration in \
176679543Sru   ''\
176779543Sru   '#include <stdlib.h>' \
176879543Sru   'extern "C" void std::exit (int) throw (); using std::exit;' \
176979543Sru   'extern "C" void std::exit (int); using std::exit;' \
177079543Sru   'extern "C" void exit (int) throw ();' \
177179543Sru   'extern "C" void exit (int);' \
177279543Sru   'void exit (int);'
177379543Srudo
177479543Sru  cat >conftest.$ac_ext <<_ACEOF
177579543Sru#line 1775 "configure"
177679543Sru#include "confdefs.h"
177779543Sru#include <stdlib.h>
177879543Sru$ac_declaration
177979543Sruint
178079543Srumain ()
178179543Sru{
178279543Sruexit (42);
178379543Sru  ;
178479543Sru  return 0;
178579543Sru}
178679543Sru_ACEOF
178779543Srurm -f conftest.$ac_objext
178879543Sruif { (eval echo "$as_me:1788: \"$ac_compile\"") >&5
178979543Sru  (eval $ac_compile) 2>&5
179079543Sru  ac_status=$?
179179543Sru  echo "$as_me:1791: \$? = $ac_status" >&5
179279543Sru  (exit $ac_status); } &&
179379543Sru         { ac_try='test -s conftest.$ac_objext'
179479543Sru  { (eval echo "$as_me:1794: \"$ac_try\"") >&5
179579543Sru  (eval $ac_try) 2>&5
179679543Sru  ac_status=$?
179779543Sru  echo "$as_me:1797: \$? = $ac_status" >&5
179879543Sru  (exit $ac_status); }; }; then
179979543Sru  :
180079543Sruelse
180179543Sru  echo "$as_me: failed program was:" >&5
180279543Srucat conftest.$ac_ext >&5
180379543Srucontinue
180479543Srufi
180579543Srurm -f conftest.$ac_objext conftest.$ac_ext
180679543Sru  cat >conftest.$ac_ext <<_ACEOF
180779543Sru#line 1807 "configure"
180879543Sru#include "confdefs.h"
180979543Sru$ac_declaration
181079543Sruint
181179543Srumain ()
181279543Sru{
181379543Sruexit (42);
181479543Sru  ;
181579543Sru  return 0;
181679543Sru}
181779543Sru_ACEOF
181879543Srurm -f conftest.$ac_objext
181979543Sruif { (eval echo "$as_me:1819: \"$ac_compile\"") >&5
182079543Sru  (eval $ac_compile) 2>&5
182179543Sru  ac_status=$?
182279543Sru  echo "$as_me:1822: \$? = $ac_status" >&5
182379543Sru  (exit $ac_status); } &&
182479543Sru         { ac_try='test -s conftest.$ac_objext'
182579543Sru  { (eval echo "$as_me:1825: \"$ac_try\"") >&5
182679543Sru  (eval $ac_try) 2>&5
182779543Sru  ac_status=$?
182879543Sru  echo "$as_me:1828: \$? = $ac_status" >&5
182979543Sru  (exit $ac_status); }; }; then
183079543Sru  break
183179543Sruelse
183279543Sru  echo "$as_me: failed program was:" >&5
183379543Srucat conftest.$ac_ext >&5
183479543Srufi
183579543Srurm -f conftest.$ac_objext conftest.$ac_ext
183679543Srudone
183779543Sruecho '#ifdef __cplusplus' >>confdefs.h
183879543Sruecho $ac_declaration      >>confdefs.h
183979543Sruecho '#endif'             >>confdefs.h
184018099Spst
184179543Sruac_ext=c
184279543Sruac_cpp='$CPP $CPPFLAGS'
184379543Sruac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
184479543Sruac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
184579543Sruac_compiler_gnu=$ac_cv_c_compiler_gnu
184618099Spst
184779543Sruac_ext=cc
184818099Spstac_cpp='$CXXCPP $CPPFLAGS'
184979543Sruac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
185079543Sruac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
185179543Sruac_compiler_gnu=$ac_cv_cxx_compiler_gnu
185218099Spst
185318099Spstif test "$cross_compiling" = no; then
185479543Sru	echo "$as_me:1854: checking that C++ compiler can compile simple program" >&5
185579543Sruecho $ECHO_N "checking that C++ compiler can compile simple program... $ECHO_C" >&6
185618099Spstfi
185718099Spstif test "$cross_compiling" = yes; then
185818099Spst  :
185918099Spstelse
186079543Sru  cat >conftest.$ac_ext <<_ACEOF
186179543Sru#line 1861 "configure"
186218099Spst#include "confdefs.h"
186318099Spstint main() { return 0; }
186479543Sru_ACEOF
186579543Srurm -f conftest$ac_exeext
186679543Sruif { (eval echo "$as_me:1866: \"$ac_link\"") >&5
186779543Sru  (eval $ac_link) 2>&5
186879543Sru  ac_status=$?
186979543Sru  echo "$as_me:1869: \$? = $ac_status" >&5
187079543Sru  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
187179543Sru  { (eval echo "$as_me:1871: \"$ac_try\"") >&5
187279543Sru  (eval $ac_try) 2>&5
187379543Sru  ac_status=$?
187479543Sru  echo "$as_me:1874: \$? = $ac_status" >&5
187579543Sru  (exit $ac_status); }; }; then
187679543Sru  echo "$as_me:1876: result: yes" >&5
187779543Sruecho "${ECHO_T}yes" >&6
187818099Spstelse
187979543Sru  echo "$as_me: program exited with status $ac_status" >&5
188079543Sruecho "$as_me: failed program was:" >&5
188179543Srucat conftest.$ac_ext >&5
188279543Sruecho "$as_me:1882: result: no" >&5
188379543Sruecho "${ECHO_T}no" >&6;{ { echo "$as_me:1883: error: a working C++ compiler is required" >&5
188479543Sruecho "$as_me: error: a working C++ compiler is required" >&2;}
188579543Sru   { (exit 1); exit 1; }; }
188618099Spstfi
188779543Srurm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
188818099Spstfi
188918099Spstif test "$cross_compiling" = no; then
189079543Sru	echo "$as_me:1890: checking that C++ static constructors and destructors are called" >&5
189179543Sruecho $ECHO_N "checking that C++ static constructors and destructors are called... $ECHO_C" >&6
189218099Spstfi
189318099Spstif test "$cross_compiling" = yes; then
189418099Spst  :
189518099Spstelse
189679543Sru  cat >conftest.$ac_ext <<_ACEOF
189779543Sru#line 1897 "configure"
189818099Spst#include "confdefs.h"
189918099Spst
190018099Spstextern "C" {
190118099Spst  void _exit(int);
190218099Spst}
190318099Spstint i;
190418099Spststruct A {
190518099Spst  char dummy;
190618099Spst  A() { i = 1; }
190718099Spst  ~A() { if (i == 1) _exit(0); }
190818099Spst};
190918099SpstA a;
191018099Spstint main() { return 1; }
191118099Spst
191279543Sru_ACEOF
191379543Srurm -f conftest$ac_exeext
191479543Sruif { (eval echo "$as_me:1914: \"$ac_link\"") >&5
191579543Sru  (eval $ac_link) 2>&5
191679543Sru  ac_status=$?
191779543Sru  echo "$as_me:1917: \$? = $ac_status" >&5
191879543Sru  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
191979543Sru  { (eval echo "$as_me:1919: \"$ac_try\"") >&5
192079543Sru  (eval $ac_try) 2>&5
192179543Sru  ac_status=$?
192279543Sru  echo "$as_me:1922: \$? = $ac_status" >&5
192379543Sru  (exit $ac_status); }; }; then
192479543Sru  echo "$as_me:1924: result: yes" >&5
192579543Sruecho "${ECHO_T}yes" >&6
192618099Spstelse
192779543Sru  echo "$as_me: program exited with status $ac_status" >&5
192879543Sruecho "$as_me: failed program was:" >&5
192979543Srucat conftest.$ac_ext >&5
193079543Sruecho "$as_me:1930: result: no" >&5
193179543Sruecho "${ECHO_T}no" >&6;{ { echo "$as_me:1931: error: a working C++ compiler is required" >&5
193279543Sruecho "$as_me: error: a working C++ compiler is required" >&2;}
193379543Sru   { (exit 1); exit 1; }; }
193418099Spstfi
193579543Srurm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
193618099Spstfi
193779543Sruecho "$as_me:1937: checking that header files support C++" >&5
193879543Sruecho $ECHO_N "checking that header files support C++... $ECHO_C" >&6
193979543Srucat >conftest.$ac_ext <<_ACEOF
194079543Sru#line 1940 "configure"
194118099Spst#include "confdefs.h"
194218099Spst#include <stdio.h>
194379543Sruint
194479543Srumain ()
194579543Sru{
194618099Spstfopen(0, 0);
194779543Sru  ;
194879543Sru  return 0;
194979543Sru}
195079543Sru_ACEOF
195179543Srurm -f conftest.$ac_objext conftest$ac_exeext
195279543Sruif { (eval echo "$as_me:1952: \"$ac_link\"") >&5
195379543Sru  (eval $ac_link) 2>&5
195479543Sru  ac_status=$?
195579543Sru  echo "$as_me:1955: \$? = $ac_status" >&5
195679543Sru  (exit $ac_status); } &&
195779543Sru         { ac_try='test -s conftest$ac_exeext'
195879543Sru  { (eval echo "$as_me:1958: \"$ac_try\"") >&5
195979543Sru  (eval $ac_try) 2>&5
196079543Sru  ac_status=$?
196179543Sru  echo "$as_me:1961: \$? = $ac_status" >&5
196279543Sru  (exit $ac_status); }; }; then
196379543Sru  echo "$as_me:1963: result: yes" >&5
196479543Sruecho "${ECHO_T}yes" >&6
196518099Spstelse
196679543Sru  echo "$as_me: failed program was:" >&5
196779543Srucat conftest.$ac_ext >&5
196879543Sruecho "$as_me:1968: result: no" >&5
196979543Sruecho "${ECHO_T}no" >&6;{ { echo "$as_me:1969: error: header files do not support C++ (if you are using a version of gcc/g++ earlier than 2.5, you should install libg++)" >&5
197079543Sruecho "$as_me: error: header files do not support C++ (if you are using a version of gcc/g++ earlier than 2.5, you should install libg++)" >&2;}
197179543Sru   { (exit 1); exit 1; }; }
197218099Spstfi
197379543Srurm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
197418099Spstac_ext=c
197518099Spstac_cpp='$CPP $CPPFLAGS'
197679543Sruac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
197779543Sruac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
197879543Sruac_compiler_gnu=$ac_cv_c_compiler_gnu
197918099Spst
198079543Sruecho "$as_me:1980: checking whether character set is EBCDIC" >&5
198179543Sruecho $ECHO_N "checking whether character set is EBCDIC... $ECHO_C" >&6
198279543Srucat >conftest.$ac_ext <<_ACEOF
198379543Sru#line 1983 "configure"
198469626Sru#include "confdefs.h"
198518099Spst
198679543Sruint
198779543Srumain ()
198879543Sru{
198969626Sru/* Treat any failure as ASCII for compatibility with existing art.
199069626Sru    Use compile-time rather than run-time tests for cross-compiler
199169626Sru    tolerance. */
199269626Sru#if '0' != 240
199369626Srumake an error "Character set is not EBCDIC"
199469626Sru#endif
199579543Sru  ;
199679543Sru  return 0;
199779543Sru}
199879543Sru_ACEOF
199979543Srurm -f conftest.$ac_objext
200079543Sruif { (eval echo "$as_me:2000: \"$ac_compile\"") >&5
200179543Sru  (eval $ac_compile) 2>&5
200279543Sru  ac_status=$?
200379543Sru  echo "$as_me:2003: \$? = $ac_status" >&5
200479543Sru  (exit $ac_status); } &&
200579543Sru         { ac_try='test -s conftest.$ac_objext'
200679543Sru  { (eval echo "$as_me:2006: \"$ac_try\"") >&5
200779543Sru  (eval $ac_try) 2>&5
200879543Sru  ac_status=$?
200979543Sru  echo "$as_me:2009: \$? = $ac_status" >&5
201079543Sru  (exit $ac_status); }; }; then
201169626Sru  groff_cv_ebcdic="yes"
201269626Sru TTYDEVDIRS="font/devcp1047"
201379543Sru echo "$as_me:2013: result: yes" >&5
201479543Sruecho "${ECHO_T}yes" >&6
201579543Sru cat >>confdefs.h <<\EOF
201669626Sru#define IS_EBCDIC_HOST 1
201769626SruEOF
201869626Sru
201969626Sruelse
202079543Sru  echo "$as_me: failed program was:" >&5
202179543Srucat conftest.$ac_ext >&5
202279543Srugroff_cv_ebcdic="no"
202369626Sru TTYDEVDIRS="font/devascii font/devlatin1 font/devutf8"
202479543Sru echo "$as_me:2024: result: no" >&5
202579543Sruecho "${ECHO_T}no" >&6
202669626Srufi
202779543Srurm -f conftest.$ac_objext conftest.$ac_ext
202869626Sru
202969626Sruif test "$groff_cv_ebcdic" = "yes"; then
203079543Sru	echo "$as_me:2030: checking for OS/390 Unix" >&5
203179543Sruecho $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
203269626Sru	case `uname` in
203369626Sru	OS/390)
203469626Sru		CFLAGS="$CFLAGS -D_ALL_SOURCE"
203579543Sru		echo "$as_me:2035: result: yes" >&5
203679543Sruecho "${ECHO_T}yes" >&6 ;;
203769626Sru	*)
203879543Sru		echo "$as_me:2038: result: no" >&5
203979543Sruecho "${ECHO_T}no" >&6 ;;
204069626Sru	esac
204169626Srufi
204255839Sasmodaiif test -z "$PSPRINT"; then
204318099Spst	for ac_prog in lpr
204418099Spstdo
204579543Sru  # Extract the first word of "$ac_prog", so it can be a program name with args.
204618099Spstset dummy $ac_prog; ac_word=$2
204779543Sruecho "$as_me:2047: checking for $ac_word" >&5
204879543Sruecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
204979543Sruif test "${ac_cv_prog_LPR+set}" = set; then
205079543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
205118099Spstelse
205218099Spst  if test -n "$LPR"; then
205318099Spst  ac_cv_prog_LPR="$LPR" # Let the user override the test.
205418099Spstelse
205579543Sru  ac_save_IFS=$IFS; IFS=$ac_path_separator
205679543Sruac_dummy="$PATH"
205779543Srufor ac_dir in $ac_dummy; do
205879543Sru  IFS=$ac_save_IFS
205979543Sru  test -z "$ac_dir" && ac_dir=.
206079543Sru  $as_executable_p "$ac_dir/$ac_word" || continue
206179543Sruac_cv_prog_LPR="$ac_prog"
206279543Sruecho "$as_me:2062: found $ac_dir/$ac_word" >&5
206379543Srubreak
206479543Srudone
206579543Sru
206618099Spstfi
206718099Spstfi
206879543SruLPR=$ac_cv_prog_LPR
206918099Spstif test -n "$LPR"; then
207079543Sru  echo "$as_me:2070: result: $LPR" >&5
207179543Sruecho "${ECHO_T}$LPR" >&6
207218099Spstelse
207379543Sru  echo "$as_me:2073: result: no" >&5
207479543Sruecho "${ECHO_T}no" >&6
207518099Spstfi
207618099Spst
207779543Sru  test -n "$LPR" && break
207818099Spstdone
207918099Spst
208018099Spst	for ac_prog in lp
208118099Spstdo
208279543Sru  # Extract the first word of "$ac_prog", so it can be a program name with args.
208318099Spstset dummy $ac_prog; ac_word=$2
208479543Sruecho "$as_me:2084: checking for $ac_word" >&5
208579543Sruecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
208679543Sruif test "${ac_cv_prog_LP+set}" = set; then
208779543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
208818099Spstelse
208918099Spst  if test -n "$LP"; then
209018099Spst  ac_cv_prog_LP="$LP" # Let the user override the test.
209118099Spstelse
209279543Sru  ac_save_IFS=$IFS; IFS=$ac_path_separator
209379543Sruac_dummy="$PATH"
209479543Srufor ac_dir in $ac_dummy; do
209579543Sru  IFS=$ac_save_IFS
209679543Sru  test -z "$ac_dir" && ac_dir=.
209779543Sru  $as_executable_p "$ac_dir/$ac_word" || continue
209879543Sruac_cv_prog_LP="$ac_prog"
209979543Sruecho "$as_me:2099: found $ac_dir/$ac_word" >&5
210079543Srubreak
210179543Srudone
210279543Sru
210318099Spstfi
210418099Spstfi
210579543SruLP=$ac_cv_prog_LP
210618099Spstif test -n "$LP"; then
210779543Sru  echo "$as_me:2107: result: $LP" >&5
210879543Sruecho "${ECHO_T}$LP" >&6
210918099Spstelse
211079543Sru  echo "$as_me:2110: result: no" >&5
211179543Sruecho "${ECHO_T}no" >&6
211218099Spstfi
211318099Spst
211479543Sru  test -n "$LP" && break
211518099Spstdone
211618099Spst
211755839Sasmodai	if test -n "$LPR" && test -n "$LP"; then
211818099Spst		# HP-UX provides an lpr command that emulates lpr using lp,
211918099Spst		# but it doesn't have lpq; in this case we want to use lp
212018099Spst		# rather than lpr.
212118099Spst		for ac_prog in lpq
212218099Spstdo
212379543Sru  # Extract the first word of "$ac_prog", so it can be a program name with args.
212418099Spstset dummy $ac_prog; ac_word=$2
212579543Sruecho "$as_me:2125: checking for $ac_word" >&5
212679543Sruecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
212779543Sruif test "${ac_cv_prog_LPQ+set}" = set; then
212879543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
212918099Spstelse
213018099Spst  if test -n "$LPQ"; then
213118099Spst  ac_cv_prog_LPQ="$LPQ" # Let the user override the test.
213218099Spstelse
213379543Sru  ac_save_IFS=$IFS; IFS=$ac_path_separator
213479543Sruac_dummy="$PATH"
213579543Srufor ac_dir in $ac_dummy; do
213679543Sru  IFS=$ac_save_IFS
213779543Sru  test -z "$ac_dir" && ac_dir=.
213879543Sru  $as_executable_p "$ac_dir/$ac_word" || continue
213979543Sruac_cv_prog_LPQ="$ac_prog"
214079543Sruecho "$as_me:2140: found $ac_dir/$ac_word" >&5
214179543Srubreak
214279543Srudone
214379543Sru
214418099Spstfi
214518099Spstfi
214679543SruLPQ=$ac_cv_prog_LPQ
214718099Spstif test -n "$LPQ"; then
214879543Sru  echo "$as_me:2148: result: $LPQ" >&5
214979543Sruecho "${ECHO_T}$LPQ" >&6
215018099Spstelse
215179543Sru  echo "$as_me:2151: result: no" >&5
215279543Sruecho "${ECHO_T}no" >&6
215318099Spstfi
215418099Spst
215579543Sru  test -n "$LPQ" && break
215618099Spstdone
215718099Spst
215818099Spst		test -n "$LPQ" || LPR=
215918099Spst	fi
216055839Sasmodai	if test -n "$LPR"; then
216118099Spst		PSPRINT="$LPR"
216255839Sasmodai	elif test -n "$LP"; then
216318099Spst		PSPRINT="$LP"
216418099Spst	fi
216518099Spstfi
216618099Spst
216779543Sruecho "$as_me:2167: checking for command to use for printing PostScript files" >&5
216879543Sruecho $ECHO_N "checking for command to use for printing PostScript files... $ECHO_C" >&6
216979543Sruecho "$as_me:2169: result: $PSPRINT" >&5
217079543Sruecho "${ECHO_T}$PSPRINT" >&6
217118099Spst# Figure out DVIPRINT from PSPRINT.
217279543Sruecho "$as_me:2172: checking for command to use for printing dvi files" >&5
217379543Sruecho $ECHO_N "checking for command to use for printing dvi files... $ECHO_C" >&6
217455839Sasmodaiif test -n "$PSPRINT" && test -z "$DVIPRINT"; then
217555839Sasmodai	if test "X$PSPRINT" = "Xlpr"; then
217618099Spst		DVIPRINT="lpr -d"
217718099Spst	else
217818099Spst		DVIPRINT="$PSPRINT"
217918099Spst	fi
218018099Spstfi
218118099Spst
218279543Sruecho "$as_me:2182: result: $DVIPRINT" >&5
218379543Sruecho "${ECHO_T}$DVIPRINT" >&6
218418099Spst# Extract the first word of "perl", so it can be a program name with args.
218518099Spstset dummy perl; ac_word=$2
218679543Sruecho "$as_me:2186: checking for $ac_word" >&5
218779543Sruecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
218879543Sruif test "${ac_cv_path_PERLPATH+set}" = set; then
218979543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
219018099Spstelse
219179543Sru  case $PERLPATH in
219279543Sru  [\\/]* | ?:[\\/]*)
219318099Spst  ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
219418099Spst  ;;
219518099Spst  *)
219679543Sru  ac_save_IFS=$IFS; IFS=$ac_path_separator
219779543Sruac_dummy="$PATH"
219879543Srufor ac_dir in $ac_dummy; do
219979543Sru  IFS=$ac_save_IFS
220079543Sru  test -z "$ac_dir" && ac_dir=.
220179543Sru  if $as_executable_p "$ac_dir/$ac_word"; then
220279543Sru   ac_cv_path_PERLPATH="$ac_dir/$ac_word"
220379543Sru   echo "$as_me:2203: found $ac_dir/$ac_word" >&5
220479543Sru   break
220579543Srufi
220679543Srudone
220779543Sru
220818099Spst  test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH="/usr/bin/perl"
220918099Spst  ;;
221018099Spstesac
221118099Spstfi
221279543SruPERLPATH=$ac_cv_path_PERLPATH
221379543Sru
221418099Spstif test -n "$PERLPATH"; then
221579543Sru  echo "$as_me:2215: result: $PERLPATH" >&5
221679543Sruecho "${ECHO_T}$PERLPATH" >&6
221718099Spstelse
221879543Sru  echo "$as_me:2218: result: no" >&5
221979543Sruecho "${ECHO_T}no" >&6
222018099Spstfi
222118099Spst
222218099Spstfor ac_prog in byacc 'bison -y'
222318099Spstdo
222479543Sru  # Extract the first word of "$ac_prog", so it can be a program name with args.
222518099Spstset dummy $ac_prog; ac_word=$2
222679543Sruecho "$as_me:2226: checking for $ac_word" >&5
222779543Sruecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
222879543Sruif test "${ac_cv_prog_YACC+set}" = set; then
222979543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
223018099Spstelse
223118099Spst  if test -n "$YACC"; then
223218099Spst  ac_cv_prog_YACC="$YACC" # Let the user override the test.
223318099Spstelse
223479543Sru  ac_save_IFS=$IFS; IFS=$ac_path_separator
223579543Sruac_dummy="$PATH"
223679543Srufor ac_dir in $ac_dummy; do
223779543Sru  IFS=$ac_save_IFS
223879543Sru  test -z "$ac_dir" && ac_dir=.
223979543Sru  $as_executable_p "$ac_dir/$ac_word" || continue
224079543Sruac_cv_prog_YACC="$ac_prog"
224179543Sruecho "$as_me:2241: found $ac_dir/$ac_word" >&5
224279543Srubreak
224379543Srudone
224479543Sru
224518099Spstfi
224618099Spstfi
224779543SruYACC=$ac_cv_prog_YACC
224818099Spstif test -n "$YACC"; then
224979543Sru  echo "$as_me:2249: result: $YACC" >&5
225079543Sruecho "${ECHO_T}$YACC" >&6
225118099Spstelse
225279543Sru  echo "$as_me:2252: result: no" >&5
225379543Sruecho "${ECHO_T}no" >&6
225418099Spstfi
225518099Spst
225679543Sru  test -n "$YACC" && break
225718099Spstdone
225818099Spsttest -n "$YACC" || YACC="yacc"
225918099Spst
226079543Sruif test -n "$ac_tool_prefix"; then
226179543Sru  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
226279543Sruset dummy ${ac_tool_prefix}ranlib; ac_word=$2
226379543Sruecho "$as_me:2263: checking for $ac_word" >&5
226479543Sruecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
226579543Sruif test "${ac_cv_prog_RANLIB+set}" = set; then
226679543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
226718099Spstelse
226818099Spst  if test -n "$RANLIB"; then
226918099Spst  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
227018099Spstelse
227179543Sru  ac_save_IFS=$IFS; IFS=$ac_path_separator
227279543Sruac_dummy="$PATH"
227379543Srufor ac_dir in $ac_dummy; do
227479543Sru  IFS=$ac_save_IFS
227579543Sru  test -z "$ac_dir" && ac_dir=.
227679543Sru  $as_executable_p "$ac_dir/$ac_word" || continue
227779543Sruac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
227879543Sruecho "$as_me:2278: found $ac_dir/$ac_word" >&5
227979543Srubreak
228079543Srudone
228179543Sru
228218099Spstfi
228318099Spstfi
228479543SruRANLIB=$ac_cv_prog_RANLIB
228518099Spstif test -n "$RANLIB"; then
228679543Sru  echo "$as_me:2286: result: $RANLIB" >&5
228779543Sruecho "${ECHO_T}$RANLIB" >&6
228818099Spstelse
228979543Sru  echo "$as_me:2289: result: no" >&5
229079543Sruecho "${ECHO_T}no" >&6
229118099Spstfi
229218099Spst
229379543Srufi
229479543Sruif test -z "$ac_cv_prog_RANLIB"; then
229579543Sru  ac_ct_RANLIB=$RANLIB
229679543Sru  # Extract the first word of "ranlib", so it can be a program name with args.
229779543Sruset dummy ranlib; ac_word=$2
229879543Sruecho "$as_me:2298: checking for $ac_word" >&5
229979543Sruecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
230079543Sruif test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
230179543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
230279543Sruelse
230379543Sru  if test -n "$ac_ct_RANLIB"; then
230479543Sru  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
230579543Sruelse
230679543Sru  ac_save_IFS=$IFS; IFS=$ac_path_separator
230779543Sruac_dummy="$PATH"
230879543Srufor ac_dir in $ac_dummy; do
230979543Sru  IFS=$ac_save_IFS
231079543Sru  test -z "$ac_dir" && ac_dir=.
231179543Sru  $as_executable_p "$ac_dir/$ac_word" || continue
231279543Sruac_cv_prog_ac_ct_RANLIB="ranlib"
231379543Sruecho "$as_me:2313: found $ac_dir/$ac_word" >&5
231479543Srubreak
231579543Srudone
231679543Sru
231779543Sru  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
231879543Srufi
231979543Srufi
232079543Sruac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
232179543Sruif test -n "$ac_ct_RANLIB"; then
232279543Sru  echo "$as_me:2322: result: $ac_ct_RANLIB" >&5
232379543Sruecho "${ECHO_T}$ac_ct_RANLIB" >&6
232479543Sruelse
232579543Sru  echo "$as_me:2325: result: no" >&5
232679543Sruecho "${ECHO_T}no" >&6
232779543Srufi
232879543Sru
232979543Sru  RANLIB=$ac_ct_RANLIB
233079543Sruelse
233179543Sru  RANLIB="$ac_cv_prog_RANLIB"
233279543Srufi
233379543Sru
233418099Spstac_aux_dir=
233518099Spstfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
233618099Spst  if test -f $ac_dir/install-sh; then
233718099Spst    ac_aux_dir=$ac_dir
233818099Spst    ac_install_sh="$ac_aux_dir/install-sh -c"
233918099Spst    break
234018099Spst  elif test -f $ac_dir/install.sh; then
234118099Spst    ac_aux_dir=$ac_dir
234218099Spst    ac_install_sh="$ac_aux_dir/install.sh -c"
234318099Spst    break
234479543Sru  elif test -f $ac_dir/shtool; then
234579543Sru    ac_aux_dir=$ac_dir
234679543Sru    ac_install_sh="$ac_aux_dir/shtool install -c"
234779543Sru    break
234818099Spst  fi
234918099Spstdone
235018099Spstif test -z "$ac_aux_dir"; then
235179543Sru  { { echo "$as_me:2351: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
235279543Sruecho "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
235379543Sru   { (exit 1); exit 1; }; }
235418099Spstfi
235579543Sruac_config_guess="$SHELL $ac_aux_dir/config.guess"
235679543Sruac_config_sub="$SHELL $ac_aux_dir/config.sub"
235779543Sruac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
235818099Spst
235918099Spstac_dir=`cd $ac_aux_dir; pwd`
236018099Spstac_install_sh="$ac_dir/install-sh -c"
236118099Spst# Find a good install program.  We prefer a C program (faster),
236218099Spst# so one script is as good as another.  But avoid the broken or
236318099Spst# incompatible versions:
236418099Spst# SysV /etc/install, /usr/sbin/install
236518099Spst# SunOS /usr/etc/install
236618099Spst# IRIX /sbin/install
236718099Spst# AIX /bin/install
236879543Sru# AmigaOS /C/install, which installs bootblocks on floppy discs
236955839Sasmodai# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
237018099Spst# AFS /usr/afsws/bin/install, which mishandles nonexistent args
237118099Spst# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
237218099Spst# ./install, which can be erroneously created by make from ./install.sh.
237379543Sruecho "$as_me:2373: checking for a BSD compatible install" >&5
237479543Sruecho $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
237518099Spstif test -z "$INSTALL"; then
237679543Sruif test "${ac_cv_path_install+set}" = set; then
237779543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
237818099Spstelse
237979543Sru    ac_save_IFS=$IFS; IFS=$ac_path_separator
238018099Spst  for ac_dir in $PATH; do
238179543Sru    IFS=$ac_save_IFS
238218099Spst    # Account for people who put trailing slashes in PATH elements.
238379543Sru    case $ac_dir/ in
238479543Sru    / | ./ | .// | /cC/* \
238579543Sru    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
238679543Sru    | /usr/ucb/* ) ;;
238718099Spst    *)
238818099Spst      # OSF1 and SCO ODT 3.0 have their own names for install.
238955839Sasmodai      # Don't use installbsd from OSF since it installs stuff as root
239055839Sasmodai      # by default.
239155839Sasmodai      for ac_prog in ginstall scoinst install; do
239279543Sru        if $as_executable_p "$ac_dir/$ac_prog"; then
239318099Spst	  if test $ac_prog = install &&
239479543Sru            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
239518099Spst	    # AIX install.  It has an incompatible calling convention.
239618099Spst	    :
239779543Sru	  elif test $ac_prog = install &&
239879543Sru	    grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
239979543Sru	    # program-specific install script used by HP pwplus--don't use.
240079543Sru	    :
240118099Spst	  else
240218099Spst	    ac_cv_path_install="$ac_dir/$ac_prog -c"
240318099Spst	    break 2
240418099Spst	  fi
240518099Spst	fi
240618099Spst      done
240718099Spst      ;;
240818099Spst    esac
240918099Spst  done
241055839Sasmodai
241118099Spstfi
241255839Sasmodai  if test "${ac_cv_path_install+set}" = set; then
241379543Sru    INSTALL=$ac_cv_path_install
241455839Sasmodai  else
241555839Sasmodai    # As a last resort, use the slow shell script.  We don't cache a
241655839Sasmodai    # path for INSTALL within a source directory, because that will
241755839Sasmodai    # break other packages using the cache if that directory is
241855839Sasmodai    # removed, or if the path is relative.
241979543Sru    INSTALL=$ac_install_sh
242055839Sasmodai  fi
242118099Spstfi
242279543Sruecho "$as_me:2422: result: $INSTALL" >&5
242379543Sruecho "${ECHO_T}$INSTALL" >&6
242418099Spst
242518099Spst# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
242618099Spst# It thinks the first close brace ends the variable substitution.
242718099Spsttest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
242818099Spst
242979543Srutest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
243055839Sasmodai
243118099Spsttest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
243218099Spst
243379543Sruecho "$as_me:2433: checking whether ln -s works" >&5
243479543Sruecho $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
243579543SruLN_S=$as_ln_s
243679543Sruif test "$LN_S" = "ln -s"; then
243779543Sru  echo "$as_me:2437: result: yes" >&5
243879543Sruecho "${ECHO_T}yes" >&6
243918099Spstelse
244079543Sru  echo "$as_me:2440: result: no, using $LN_S" >&5
244179543Sruecho "${ECHO_T}no, using $LN_S" >&6
244218099Spstfi
244318099Spst
244479543Sruecho "$as_me:2444: checking for csh hash hack" >&5
244579543Sruecho $ECHO_N "checking for csh hash hack... $ECHO_C" >&6
244618099Spstcat <<EOF >conftest.sh
244718099Spst#!/bin/sh
244818099Spsttrue || exit 0
244918099Spstexport PATH || exit 0
245018099Spstexit 1
245118099SpstEOF
245218099Spstchmod +x conftest.sh
245355839Sasmodaiif echo ./conftest.sh | (csh >/dev/null 2>&1) >/dev/null 2>&1; then
245479543Sru	echo "$as_me:2454: result: yes" >&5
245579543Sruecho "${ECHO_T}yes" >&6; SH_SCRIPT_SED_CMD='1s/.*/:/'
245618099Spstelse
245779543Sru	echo "$as_me:2457: result: no" >&5
245879543Sruecho "${ECHO_T}no" >&6; SH_SCRIPT_SED_CMD='1s/a/a/'
245918099Spstfi
246018099Spstrm -f conftest.sh
246118099Spst
246279543Sruac_ext=c
246379543Sruac_cpp='$CPP $CPPFLAGS'
246479543Sruac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
246579543Sruac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
246679543Sruac_compiler_gnu=$ac_cv_c_compiler_gnu
246779543Sruecho "$as_me:2467: checking how to run the C preprocessor" >&5
246879543Sruecho $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
246918099Spst# On Suns, sometimes $CPP names a directory.
247018099Spstif test -n "$CPP" && test -d "$CPP"; then
247118099Spst  CPP=
247218099Spstfi
247318099Spstif test -z "$CPP"; then
247479543Sru  if test "${ac_cv_prog_CPP+set}" = set; then
247579543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
247618099Spstelse
247779543Sru      # Double quotes because CPP needs to be expanded
247879543Sru    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
247979543Sru    do
248079543Sru      # break 2 since there is a loop in there.
248179543Sru      ac_preproc_ok=false
248279543Srufor ac_c_preproc_warn_flag in '' yes
248379543Srudo
248479543Sru  # Use a header file that comes with gcc, so configuring glibc
248579543Sru  # with a fresh cross-compiler works.
248618099Spst  # On the NeXT, cc -E runs the code through the compiler's parser,
248779543Sru  # not just through cpp. "Syntax error" is here to catch this case.
248879543Sru  cat >conftest.$ac_ext <<_ACEOF
248979543Sru#line 2489 "configure"
249018099Spst#include "confdefs.h"
249118099Spst#include <assert.h>
249279543Sru                     Syntax error
249379543Sru_ACEOF
249479543Sruif { (eval echo "$as_me:2494: \"$ac_cpp conftest.$ac_ext\"") >&5
249579543Sru  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
249679543Sru  ac_status=$?
249779543Sru  egrep -v '^ *\+' conftest.er1 >conftest.err
249879543Sru  rm -f conftest.er1
249979543Sru  cat conftest.err >&5
250079543Sru  echo "$as_me:2500: \$? = $ac_status" >&5
250179543Sru  (exit $ac_status); } >/dev/null; then
250279543Sru  if test -s conftest.err; then
250379543Sru    ac_cpp_err=$ac_c_preproc_warn_flag
250479543Sru  else
250579543Sru    ac_cpp_err=
250679543Sru  fi
250779543Sruelse
250879543Sru  ac_cpp_err=yes
250979543Srufi
251079543Sruif test -z "$ac_cpp_err"; then
251118099Spst  :
251218099Spstelse
251379543Sru  echo "$as_me: failed program was:" >&5
251455839Sasmodai  cat conftest.$ac_ext >&5
251579543Sru  # Broken: fails on valid input.
251679543Srucontinue
251779543Srufi
251879543Srurm -f conftest.err conftest.$ac_ext
251979543Sru
252079543Sru  # OK, works on sane cases.  Now check whether non-existent headers
252179543Sru  # can be detected and how.
252279543Sru  cat >conftest.$ac_ext <<_ACEOF
252379543Sru#line 2523 "configure"
252418099Spst#include "confdefs.h"
252579543Sru#include <ac_nonexistent.h>
252679543Sru_ACEOF
252779543Sruif { (eval echo "$as_me:2527: \"$ac_cpp conftest.$ac_ext\"") >&5
252879543Sru  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
252979543Sru  ac_status=$?
253079543Sru  egrep -v '^ *\+' conftest.er1 >conftest.err
253179543Sru  rm -f conftest.er1
253279543Sru  cat conftest.err >&5
253379543Sru  echo "$as_me:2533: \$? = $ac_status" >&5
253479543Sru  (exit $ac_status); } >/dev/null; then
253579543Sru  if test -s conftest.err; then
253679543Sru    ac_cpp_err=$ac_c_preproc_warn_flag
253779543Sru  else
253879543Sru    ac_cpp_err=
253979543Sru  fi
254018099Spstelse
254179543Sru  ac_cpp_err=yes
254279543Srufi
254379543Sruif test -z "$ac_cpp_err"; then
254479543Sru  # Broken: success on invalid input.
254579543Srucontinue
254679543Sruelse
254779543Sru  echo "$as_me: failed program was:" >&5
254855839Sasmodai  cat conftest.$ac_ext >&5
254979543Sru  # Passes both tests.
255079543Sruac_preproc_ok=:
255179543Srubreak
255279543Srufi
255379543Srurm -f conftest.err conftest.$ac_ext
255479543Sru
255579543Srudone
255679543Sru# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
255779543Srurm -f conftest.err conftest.$ac_ext
255879543Sruif $ac_preproc_ok; then
255979543Sru  break 2
256079543Srufi
256179543Sru
256279543Sru    done
256379543Sru    ac_cv_prog_CPP=$CPP
256479543Sru
256579543Srufi
256679543Sru  CPP=$ac_cv_prog_CPP
256779543Sruelse
256879543Sru  ac_cv_prog_CPP=$CPP
256979543Srufi
257079543Sruecho "$as_me:2570: result: $CPP" >&5
257179543Sruecho "${ECHO_T}$CPP" >&6
257279543Sruac_preproc_ok=false
257379543Srufor ac_c_preproc_warn_flag in '' yes
257479543Srudo
257579543Sru  # Use a header file that comes with gcc, so configuring glibc
257679543Sru  # with a fresh cross-compiler works.
257779543Sru  # On the NeXT, cc -E runs the code through the compiler's parser,
257879543Sru  # not just through cpp. "Syntax error" is here to catch this case.
257979543Sru  cat >conftest.$ac_ext <<_ACEOF
258079543Sru#line 2580 "configure"
258155839Sasmodai#include "confdefs.h"
258255839Sasmodai#include <assert.h>
258379543Sru                     Syntax error
258479543Sru_ACEOF
258579543Sruif { (eval echo "$as_me:2585: \"$ac_cpp conftest.$ac_ext\"") >&5
258679543Sru  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
258779543Sru  ac_status=$?
258879543Sru  egrep -v '^ *\+' conftest.er1 >conftest.err
258979543Sru  rm -f conftest.er1
259079543Sru  cat conftest.err >&5
259179543Sru  echo "$as_me:2591: \$? = $ac_status" >&5
259279543Sru  (exit $ac_status); } >/dev/null; then
259379543Sru  if test -s conftest.err; then
259479543Sru    ac_cpp_err=$ac_c_preproc_warn_flag
259579543Sru  else
259679543Sru    ac_cpp_err=
259779543Sru  fi
259879543Sruelse
259979543Sru  ac_cpp_err=yes
260079543Srufi
260179543Sruif test -z "$ac_cpp_err"; then
260255839Sasmodai  :
260355839Sasmodaielse
260479543Sru  echo "$as_me: failed program was:" >&5
260555839Sasmodai  cat conftest.$ac_ext >&5
260679543Sru  # Broken: fails on valid input.
260779543Srucontinue
260818099Spstfi
260979543Srurm -f conftest.err conftest.$ac_ext
261079543Sru
261179543Sru  # OK, works on sane cases.  Now check whether non-existent headers
261279543Sru  # can be detected and how.
261379543Sru  cat >conftest.$ac_ext <<_ACEOF
261479543Sru#line 2614 "configure"
261579543Sru#include "confdefs.h"
261679543Sru#include <ac_nonexistent.h>
261779543Sru_ACEOF
261879543Sruif { (eval echo "$as_me:2618: \"$ac_cpp conftest.$ac_ext\"") >&5
261979543Sru  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
262079543Sru  ac_status=$?
262179543Sru  egrep -v '^ *\+' conftest.er1 >conftest.err
262279543Sru  rm -f conftest.er1
262379543Sru  cat conftest.err >&5
262479543Sru  echo "$as_me:2624: \$? = $ac_status" >&5
262579543Sru  (exit $ac_status); } >/dev/null; then
262679543Sru  if test -s conftest.err; then
262779543Sru    ac_cpp_err=$ac_c_preproc_warn_flag
262879543Sru  else
262979543Sru    ac_cpp_err=
263079543Sru  fi
263179543Sruelse
263279543Sru  ac_cpp_err=yes
263318099Spstfi
263479543Sruif test -z "$ac_cpp_err"; then
263579543Sru  # Broken: success on invalid input.
263679543Srucontinue
263779543Sruelse
263879543Sru  echo "$as_me: failed program was:" >&5
263979543Sru  cat conftest.$ac_ext >&5
264079543Sru  # Passes both tests.
264179543Sruac_preproc_ok=:
264279543Srubreak
264355839Sasmodaifi
264479543Srurm -f conftest.err conftest.$ac_ext
264579543Sru
264679543Srudone
264779543Sru# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
264879543Srurm -f conftest.err conftest.$ac_ext
264979543Sruif $ac_preproc_ok; then
265079543Sru  :
265118099Spstelse
265279543Sru  { { echo "$as_me:2652: error: C preprocessor \"$CPP\" fails sanity check" >&5
265379543Sruecho "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
265479543Sru   { (exit 1); exit 1; }; }
265518099Spstfi
265618099Spst
265779543Sruac_ext=c
265879543Sruac_cpp='$CPP $CPPFLAGS'
265979543Sruac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
266079543Sruac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
266179543Sruac_compiler_gnu=$ac_cv_c_compiler_gnu
266279543Sru
266379543Srufor ac_header in stdlib.h unistd.h dirent.h limits.h sys/dir.h \
266469626Sru                 string.h strings.h math.h
266518099Spstdo
266679543Sruac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
266779543Sruecho "$as_me:2667: checking for $ac_header" >&5
266879543Sruecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
266979543Sruif eval "test \"\${$ac_ac_Header+set}\" = set"; then
267079543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
267118099Spstelse
267279543Sru  cat >conftest.$ac_ext <<_ACEOF
267379543Sru#line 2673 "configure"
267418099Spst#include "confdefs.h"
267579543Sru#include <$ac_header>
267679543Sru_ACEOF
267779543Sruif { (eval echo "$as_me:2677: \"$ac_cpp conftest.$ac_ext\"") >&5
267879543Sru  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
267979543Sru  ac_status=$?
268079543Sru  egrep -v '^ *\+' conftest.er1 >conftest.err
268179543Sru  rm -f conftest.er1
268279543Sru  cat conftest.err >&5
268379543Sru  echo "$as_me:2683: \$? = $ac_status" >&5
268479543Sru  (exit $ac_status); } >/dev/null; then
268579543Sru  if test -s conftest.err; then
268679543Sru    ac_cpp_err=$ac_c_preproc_warn_flag
268779543Sru  else
268879543Sru    ac_cpp_err=
268979543Sru  fi
269018099Spstelse
269179543Sru  ac_cpp_err=yes
269279543Srufi
269379543Sruif test -z "$ac_cpp_err"; then
269479543Sru  eval "$ac_ac_Header=yes"
269579543Sruelse
269679543Sru  echo "$as_me: failed program was:" >&5
269755839Sasmodai  cat conftest.$ac_ext >&5
269879543Sru  eval "$ac_ac_Header=no"
269918099Spstfi
270079543Srurm -f conftest.err conftest.$ac_ext
270118099Spstfi
270279543Sruecho "$as_me:2702: result: `eval echo '${'$ac_ac_Header'}'`" >&5
270379543Sruecho "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
270479543Sruif test `eval echo '${'$ac_ac_Header'}'` = yes; then
270579543Sru  cat >>confdefs.h <<EOF
270679543Sru#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
270718099SpstEOF
270879543Sru
270918099Spstfi
271018099Spstdone
271118099Spst
271279543Sruecho "$as_me:2712: checking for ISC 3.x or 4.x" >&5
271379543Sruecho $ECHO_N "checking for ISC 3.x or 4.x... $ECHO_C" >&6
271418099Spstif grep '[34]\.' /usr/options/cb.name >/dev/null 2>&1
271518099Spstthen
271679543Sru	echo "$as_me:2716: result: yes" >&5
271779543Sruecho "${ECHO_T}yes" >&6
271879543Sru	cat >>confdefs.h <<\EOF
271918099Spst#define _SYSV3 1
272018099SpstEOF
272118099Spst
272218099Spstelse
272379543Sru	echo "$as_me:2723: result: no" >&5
272479543Sruecho "${ECHO_T}no" >&6
272518099Spstfi
272679543Sruecho "$as_me:2726: checking whether -D_POSIX_SOURCE is necessary" >&5
272779543Sruecho $ECHO_N "checking whether -D_POSIX_SOURCE is necessary... $ECHO_C" >&6
272879543Sruac_ext=cc
272918099Spstac_cpp='$CXXCPP $CPPFLAGS'
273079543Sruac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
273179543Sruac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
273279543Sruac_compiler_gnu=$ac_cv_cxx_compiler_gnu
273318099Spst
273479543Srucat >conftest.$ac_ext <<_ACEOF
273579543Sru#line 2735 "configure"
273618099Spst#include "confdefs.h"
273718099Spst#include <stdio.h>
273818099Spstextern "C" { void fileno(int); }
273979543Sruint
274079543Srumain ()
274179543Sru{
274218099Spst
274379543Sru  ;
274479543Sru  return 0;
274579543Sru}
274679543Sru_ACEOF
274779543Srurm -f conftest.$ac_objext
274879543Sruif { (eval echo "$as_me:2748: \"$ac_compile\"") >&5
274979543Sru  (eval $ac_compile) 2>&5
275079543Sru  ac_status=$?
275179543Sru  echo "$as_me:2751: \$? = $ac_status" >&5
275279543Sru  (exit $ac_status); } &&
275379543Sru         { ac_try='test -s conftest.$ac_objext'
275479543Sru  { (eval echo "$as_me:2754: \"$ac_try\"") >&5
275579543Sru  (eval $ac_try) 2>&5
275679543Sru  ac_status=$?
275779543Sru  echo "$as_me:2757: \$? = $ac_status" >&5
275879543Sru  (exit $ac_status); }; }; then
275979543Sru  echo "$as_me:2759: result: yes" >&5
276079543Sruecho "${ECHO_T}yes" >&6;cat >>confdefs.h <<\EOF
276118099Spst#define _POSIX_SOURCE 1
276218099SpstEOF
276318099Spst
276418099Spstelse
276579543Sru  echo "$as_me: failed program was:" >&5
276679543Srucat conftest.$ac_ext >&5
276779543Sruecho "$as_me:2767: result: no" >&5
276879543Sruecho "${ECHO_T}no" >&6
276918099Spstfi
277079543Srurm -f conftest.$ac_objext conftest.$ac_ext
277118099Spstac_ext=c
277218099Spstac_cpp='$CPP $CPPFLAGS'
277379543Sruac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
277479543Sruac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
277579543Sruac_compiler_gnu=$ac_cv_c_compiler_gnu
277618099Spst
277779543Sruac_ext=cc
277818099Spstac_cpp='$CXXCPP $CPPFLAGS'
277979543Sruac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
278079543Sruac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
278179543Sruac_compiler_gnu=$ac_cv_cxx_compiler_gnu
278218099Spst
278379543Sruecho "$as_me:2783: checking for return type of srand" >&5
278479543Sruecho $ECHO_N "checking for return type of srand... $ECHO_C" >&6
278579543Srucat >conftest.$ac_ext <<_ACEOF
278679543Sru#line 2786 "configure"
278718099Spst#include "confdefs.h"
278818099Spst#include <stdlib.h>
278969626Sruextern "C" { void srand(unsigned int); }
279079543Sruint
279179543Srumain ()
279279543Sru{
279318099Spst
279479543Sru  ;
279579543Sru  return 0;
279679543Sru}
279779543Sru_ACEOF
279879543Srurm -f conftest.$ac_objext
279979543Sruif { (eval echo "$as_me:2799: \"$ac_compile\"") >&5
280079543Sru  (eval $ac_compile) 2>&5
280179543Sru  ac_status=$?
280279543Sru  echo "$as_me:2802: \$? = $ac_status" >&5
280379543Sru  (exit $ac_status); } &&
280479543Sru         { ac_try='test -s conftest.$ac_objext'
280579543Sru  { (eval echo "$as_me:2805: \"$ac_try\"") >&5
280679543Sru  (eval $ac_try) 2>&5
280779543Sru  ac_status=$?
280879543Sru  echo "$as_me:2808: \$? = $ac_status" >&5
280979543Sru  (exit $ac_status); }; }; then
281079543Sru  echo "$as_me:2810: result: void" >&5
281179543Sruecho "${ECHO_T}void" >&6;cat >>confdefs.h <<\EOF
281269626Sru#define RET_TYPE_SRAND_IS_VOID 1
281369626SruEOF
281469626Sru
281518099Spstelse
281679543Sru  echo "$as_me: failed program was:" >&5
281779543Srucat conftest.$ac_ext >&5
281879543Sruecho "$as_me:2818: result: int" >&5
281979543Sruecho "${ECHO_T}int" >&6
282018099Spstfi
282179543Srurm -f conftest.$ac_objext conftest.$ac_ext
282269626Sruac_ext=c
282369626Sruac_cpp='$CPP $CPPFLAGS'
282479543Sruac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
282579543Sruac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
282679543Sruac_compiler_gnu=$ac_cv_c_compiler_gnu
282769626Sru
282879543Sruecho "$as_me:2828: checking whether hypot must be declared" >&5
282979543Sruecho $ECHO_N "checking whether hypot must be declared... $ECHO_C" >&6
283079543Sruac_ext=cc
283169626Sruac_cpp='$CXXCPP $CPPFLAGS'
283279543Sruac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
283379543Sruac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
283479543Sruac_compiler_gnu=$ac_cv_cxx_compiler_gnu
283569626Sru
283679543Sruif test "${groff_cv_decl_needed_hypot+set}" = set; then
283779543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
283869626Sruelse
283979543Sru  cat >conftest.$ac_ext <<_ACEOF
284079543Sru#line 2840 "configure"
284118099Spst#include "confdefs.h"
284269626Sru
284369626Sru#include <stdio.h>
284469626Sru#ifdef HAVE_STRING_H
284569626Sru#include <string.h>
284679543Sru#endif
284769626Sru#ifdef HAVE_STRINGS_H
284869626Sru#include <strings.h>
284969626Sru#endif
285069626Sru#ifdef HAVE_STDLIB_H
285169626Sru#include <stdlib.h>
285269626Sru#endif
285369626Sru#ifdef HAVE_UNISTD_H
285418099Spst#include <unistd.h>
285569626Sru#endif
285669626Sru#ifdef HAVE_MATH_H
285769626Sru#include <math.h>
285869626Sru#endif
285979543Sruint
286079543Srumain ()
286179543Sru{
286269626Sruchar *(*pfn) = (char *(*)) hypot
286379543Sru  ;
286479543Sru  return 0;
286579543Sru}
286679543Sru_ACEOF
286779543Srurm -f conftest.$ac_objext
286879543Sruif { (eval echo "$as_me:2868: \"$ac_compile\"") >&5
286979543Sru  (eval $ac_compile) 2>&5
287079543Sru  ac_status=$?
287179543Sru  echo "$as_me:2871: \$? = $ac_status" >&5
287279543Sru  (exit $ac_status); } &&
287379543Sru         { ac_try='test -s conftest.$ac_objext'
287479543Sru  { (eval echo "$as_me:2874: \"$ac_try\"") >&5
287579543Sru  (eval $ac_try) 2>&5
287679543Sru  ac_status=$?
287779543Sru  echo "$as_me:2877: \$? = $ac_status" >&5
287879543Sru  (exit $ac_status); }; }; then
287969626Sru  groff_cv_decl_needed_hypot=no
288018099Spstelse
288179543Sru  echo "$as_me: failed program was:" >&5
288279543Srucat conftest.$ac_ext >&5
288379543Srugroff_cv_decl_needed_hypot=yes
288469626Srufi
288579543Srurm -f conftest.$ac_objext conftest.$ac_ext
288669626Srufi
288769626Sru
288879543Sruecho "$as_me:2888: result: $groff_cv_decl_needed_hypot" >&5
288979543Sruecho "${ECHO_T}$groff_cv_decl_needed_hypot" >&6
289069626Sruif test $groff_cv_decl_needed_hypot = yes; then
289179543Sru	cat >>confdefs.h <<\EOF
289269626Sru#define NEED_DECLARATION_HYPOT 1
289318099SpstEOF
289418099Spst
289518099Spstfi
289618099Spstac_ext=c
289718099Spstac_cpp='$CPP $CPPFLAGS'
289879543Sruac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
289979543Sruac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
290079543Sruac_compiler_gnu=$ac_cv_c_compiler_gnu
290118099Spst
290279543Sruecho "$as_me:2902: checking whether popen must be declared" >&5
290379543Sruecho $ECHO_N "checking whether popen must be declared... $ECHO_C" >&6
290479543Sruac_ext=cc
290518099Spstac_cpp='$CXXCPP $CPPFLAGS'
290679543Sruac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
290779543Sruac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
290879543Sruac_compiler_gnu=$ac_cv_cxx_compiler_gnu
290918099Spst
291079543Sruif test "${groff_cv_decl_needed_popen+set}" = set; then
291179543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
291269626Sruelse
291379543Sru  cat >conftest.$ac_ext <<_ACEOF
291479543Sru#line 2914 "configure"
291518099Spst#include "confdefs.h"
291669626Sru
291769626Sru#include <stdio.h>
291869626Sru#ifdef HAVE_STRING_H
291969626Sru#include <string.h>
292079543Sru#endif
292169626Sru#ifdef HAVE_STRINGS_H
292269626Sru#include <strings.h>
292369626Sru#endif
292469626Sru#ifdef HAVE_STDLIB_H
292518099Spst#include <stdlib.h>
292669626Sru#endif
292769626Sru#ifdef HAVE_UNISTD_H
292869626Sru#include <unistd.h>
292969626Sru#endif
293069626Sru#ifdef HAVE_MATH_H
293169626Sru#include <math.h>
293269626Sru#endif
293379543Sruint
293479543Srumain ()
293579543Sru{
293669626Sruchar *(*pfn) = (char *(*)) popen
293779543Sru  ;
293879543Sru  return 0;
293979543Sru}
294079543Sru_ACEOF
294179543Srurm -f conftest.$ac_objext
294279543Sruif { (eval echo "$as_me:2942: \"$ac_compile\"") >&5
294379543Sru  (eval $ac_compile) 2>&5
294479543Sru  ac_status=$?
294579543Sru  echo "$as_me:2945: \$? = $ac_status" >&5
294679543Sru  (exit $ac_status); } &&
294779543Sru         { ac_try='test -s conftest.$ac_objext'
294879543Sru  { (eval echo "$as_me:2948: \"$ac_try\"") >&5
294979543Sru  (eval $ac_try) 2>&5
295079543Sru  ac_status=$?
295179543Sru  echo "$as_me:2951: \$? = $ac_status" >&5
295279543Sru  (exit $ac_status); }; }; then
295369626Sru  groff_cv_decl_needed_popen=no
295418099Spstelse
295579543Sru  echo "$as_me: failed program was:" >&5
295679543Srucat conftest.$ac_ext >&5
295779543Srugroff_cv_decl_needed_popen=yes
295869626Srufi
295979543Srurm -f conftest.$ac_objext conftest.$ac_ext
296069626Srufi
296169626Sru
296279543Sruecho "$as_me:2962: result: $groff_cv_decl_needed_popen" >&5
296379543Sruecho "${ECHO_T}$groff_cv_decl_needed_popen" >&6
296469626Sruif test $groff_cv_decl_needed_popen = yes; then
296579543Sru	cat >>confdefs.h <<\EOF
296669626Sru#define NEED_DECLARATION_POPEN 1
296718099SpstEOF
296818099Spst
296918099Spstfi
297018099Spstac_ext=c
297118099Spstac_cpp='$CPP $CPPFLAGS'
297279543Sruac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
297379543Sruac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
297479543Sruac_compiler_gnu=$ac_cv_c_compiler_gnu
297518099Spst
297679543Sruecho "$as_me:2976: checking whether pclose must be declared" >&5
297779543Sruecho $ECHO_N "checking whether pclose must be declared... $ECHO_C" >&6
297879543Sruac_ext=cc
297918099Spstac_cpp='$CXXCPP $CPPFLAGS'
298079543Sruac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
298179543Sruac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
298279543Sruac_compiler_gnu=$ac_cv_cxx_compiler_gnu
298318099Spst
298479543Sruif test "${groff_cv_decl_needed_pclose+set}" = set; then
298579543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
298669626Sruelse
298779543Sru  cat >conftest.$ac_ext <<_ACEOF
298879543Sru#line 2988 "configure"
298918099Spst#include "confdefs.h"
299069626Sru
299118099Spst#include <stdio.h>
299269626Sru#ifdef HAVE_STRING_H
299369626Sru#include <string.h>
299479543Sru#endif
299569626Sru#ifdef HAVE_STRINGS_H
299669626Sru#include <strings.h>
299769626Sru#endif
299869626Sru#ifdef HAVE_STDLIB_H
299969626Sru#include <stdlib.h>
300069626Sru#endif
300169626Sru#ifdef HAVE_UNISTD_H
300269626Sru#include <unistd.h>
300369626Sru#endif
300469626Sru#ifdef HAVE_MATH_H
300569626Sru#include <math.h>
300669626Sru#endif
300779543Sruint
300879543Srumain ()
300979543Sru{
301069626Sruchar *(*pfn) = (char *(*)) pclose
301179543Sru  ;
301279543Sru  return 0;
301379543Sru}
301479543Sru_ACEOF
301579543Srurm -f conftest.$ac_objext
301679543Sruif { (eval echo "$as_me:3016: \"$ac_compile\"") >&5
301779543Sru  (eval $ac_compile) 2>&5
301879543Sru  ac_status=$?
301979543Sru  echo "$as_me:3019: \$? = $ac_status" >&5
302079543Sru  (exit $ac_status); } &&
302179543Sru         { ac_try='test -s conftest.$ac_objext'
302279543Sru  { (eval echo "$as_me:3022: \"$ac_try\"") >&5
302379543Sru  (eval $ac_try) 2>&5
302479543Sru  ac_status=$?
302579543Sru  echo "$as_me:3025: \$? = $ac_status" >&5
302679543Sru  (exit $ac_status); }; }; then
302769626Sru  groff_cv_decl_needed_pclose=no
302818099Spstelse
302979543Sru  echo "$as_me: failed program was:" >&5
303079543Srucat conftest.$ac_ext >&5
303179543Srugroff_cv_decl_needed_pclose=yes
303269626Srufi
303379543Srurm -f conftest.$ac_objext conftest.$ac_ext
303469626Srufi
303569626Sru
303679543Sruecho "$as_me:3036: result: $groff_cv_decl_needed_pclose" >&5
303779543Sruecho "${ECHO_T}$groff_cv_decl_needed_pclose" >&6
303869626Sruif test $groff_cv_decl_needed_pclose = yes; then
303979543Sru	cat >>confdefs.h <<\EOF
304069626Sru#define NEED_DECLARATION_PCLOSE 1
304118099SpstEOF
304218099Spst
304318099Spstfi
304418099Spstac_ext=c
304518099Spstac_cpp='$CPP $CPPFLAGS'
304679543Sruac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
304779543Sruac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
304879543Sruac_compiler_gnu=$ac_cv_c_compiler_gnu
304918099Spst
305079543Sruecho "$as_me:3050: checking whether putenv must be declared" >&5
305179543Sruecho $ECHO_N "checking whether putenv must be declared... $ECHO_C" >&6
305279543Sruac_ext=cc
305318099Spstac_cpp='$CXXCPP $CPPFLAGS'
305479543Sruac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
305579543Sruac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
305679543Sruac_compiler_gnu=$ac_cv_cxx_compiler_gnu
305718099Spst
305879543Sruif test "${groff_cv_decl_needed_putenv+set}" = set; then
305979543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
306069626Sruelse
306179543Sru  cat >conftest.$ac_ext <<_ACEOF
306279543Sru#line 3062 "configure"
306318099Spst#include "confdefs.h"
306469626Sru
306518099Spst#include <stdio.h>
306669626Sru#ifdef HAVE_STRING_H
306769626Sru#include <string.h>
306879543Sru#endif
306969626Sru#ifdef HAVE_STRINGS_H
307069626Sru#include <strings.h>
307169626Sru#endif
307269626Sru#ifdef HAVE_STDLIB_H
307369626Sru#include <stdlib.h>
307469626Sru#endif
307569626Sru#ifdef HAVE_UNISTD_H
307669626Sru#include <unistd.h>
307769626Sru#endif
307869626Sru#ifdef HAVE_MATH_H
307969626Sru#include <math.h>
308069626Sru#endif
308179543Sruint
308279543Srumain ()
308379543Sru{
308469626Sruchar *(*pfn) = (char *(*)) putenv
308579543Sru  ;
308679543Sru  return 0;
308779543Sru}
308879543Sru_ACEOF
308979543Srurm -f conftest.$ac_objext
309079543Sruif { (eval echo "$as_me:3090: \"$ac_compile\"") >&5
309179543Sru  (eval $ac_compile) 2>&5
309279543Sru  ac_status=$?
309379543Sru  echo "$as_me:3093: \$? = $ac_status" >&5
309479543Sru  (exit $ac_status); } &&
309579543Sru         { ac_try='test -s conftest.$ac_objext'
309679543Sru  { (eval echo "$as_me:3096: \"$ac_try\"") >&5
309779543Sru  (eval $ac_try) 2>&5
309879543Sru  ac_status=$?
309979543Sru  echo "$as_me:3099: \$? = $ac_status" >&5
310079543Sru  (exit $ac_status); }; }; then
310169626Sru  groff_cv_decl_needed_putenv=no
310218099Spstelse
310379543Sru  echo "$as_me: failed program was:" >&5
310479543Srucat conftest.$ac_ext >&5
310579543Srugroff_cv_decl_needed_putenv=yes
310669626Srufi
310779543Srurm -f conftest.$ac_objext conftest.$ac_ext
310869626Srufi
310969626Sru
311079543Sruecho "$as_me:3110: result: $groff_cv_decl_needed_putenv" >&5
311179543Sruecho "${ECHO_T}$groff_cv_decl_needed_putenv" >&6
311269626Sruif test $groff_cv_decl_needed_putenv = yes; then
311379543Sru	cat >>confdefs.h <<\EOF
311469626Sru#define NEED_DECLARATION_PUTENV 1
311518099SpstEOF
311618099Spst
311718099Spstfi
311855839Sasmodaiac_ext=c
311955839Sasmodaiac_cpp='$CPP $CPPFLAGS'
312079543Sruac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
312179543Sruac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
312279543Sruac_compiler_gnu=$ac_cv_c_compiler_gnu
312318099Spst
312479543Sruecho "$as_me:3124: checking whether strncasecmp must be declared" >&5
312579543Sruecho $ECHO_N "checking whether strncasecmp must be declared... $ECHO_C" >&6
312679543Sruac_ext=cc
312755839Sasmodaiac_cpp='$CXXCPP $CPPFLAGS'
312879543Sruac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
312979543Sruac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
313079543Sruac_compiler_gnu=$ac_cv_cxx_compiler_gnu
313155839Sasmodai
313279543Sruif test "${groff_cv_decl_needed_strncasecmp+set}" = set; then
313379543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
313469626Sruelse
313579543Sru  cat >conftest.$ac_ext <<_ACEOF
313679543Sru#line 3136 "configure"
313755839Sasmodai#include "confdefs.h"
313869626Sru
313955839Sasmodai#include <stdio.h>
314069626Sru#ifdef HAVE_STRING_H
314169626Sru#include <string.h>
314279543Sru#endif
314369626Sru#ifdef HAVE_STRINGS_H
314469626Sru#include <strings.h>
314569626Sru#endif
314669626Sru#ifdef HAVE_STDLIB_H
314769626Sru#include <stdlib.h>
314869626Sru#endif
314969626Sru#ifdef HAVE_UNISTD_H
315069626Sru#include <unistd.h>
315169626Sru#endif
315269626Sru#ifdef HAVE_MATH_H
315369626Sru#include <math.h>
315469626Sru#endif
315579543Sruint
315679543Srumain ()
315779543Sru{
315869626Sruchar *(*pfn) = (char *(*)) strncasecmp
315979543Sru  ;
316079543Sru  return 0;
316179543Sru}
316279543Sru_ACEOF
316379543Srurm -f conftest.$ac_objext
316479543Sruif { (eval echo "$as_me:3164: \"$ac_compile\"") >&5
316579543Sru  (eval $ac_compile) 2>&5
316679543Sru  ac_status=$?
316779543Sru  echo "$as_me:3167: \$? = $ac_status" >&5
316879543Sru  (exit $ac_status); } &&
316979543Sru         { ac_try='test -s conftest.$ac_objext'
317079543Sru  { (eval echo "$as_me:3170: \"$ac_try\"") >&5
317179543Sru  (eval $ac_try) 2>&5
317279543Sru  ac_status=$?
317379543Sru  echo "$as_me:3173: \$? = $ac_status" >&5
317479543Sru  (exit $ac_status); }; }; then
317569626Sru  groff_cv_decl_needed_strncasecmp=no
317655839Sasmodaielse
317779543Sru  echo "$as_me: failed program was:" >&5
317879543Srucat conftest.$ac_ext >&5
317979543Srugroff_cv_decl_needed_strncasecmp=yes
318055839Sasmodaifi
318179543Srurm -f conftest.$ac_objext conftest.$ac_ext
318269626Srufi
318369626Sru
318479543Sruecho "$as_me:3184: result: $groff_cv_decl_needed_strncasecmp" >&5
318579543Sruecho "${ECHO_T}$groff_cv_decl_needed_strncasecmp" >&6
318669626Sruif test $groff_cv_decl_needed_strncasecmp = yes; then
318779543Sru	cat >>confdefs.h <<\EOF
318869626Sru#define NEED_DECLARATION_STRNCASECMP 1
318969626SruEOF
319069626Sru
319169626Srufi
319218099Spstac_ext=c
319318099Spstac_cpp='$CPP $CPPFLAGS'
319479543Sruac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
319579543Sruac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
319679543Sruac_compiler_gnu=$ac_cv_c_compiler_gnu
319718099Spst
319879543Sruac_ext=cc
319918099Spstac_cpp='$CXXCPP $CPPFLAGS'
320079543Sruac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
320179543Sruac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
320279543Sruac_compiler_gnu=$ac_cv_cxx_compiler_gnu
320318099Spst
320479543Sruecho "$as_me:3204: checking for sys_nerr in <errno.h> or <stdio.h>" >&5
320579543Sruecho $ECHO_N "checking for sys_nerr in <errno.h> or <stdio.h>... $ECHO_C" >&6
320679543Srucat >conftest.$ac_ext <<_ACEOF
320779543Sru#line 3207 "configure"
320855839Sasmodai#include "confdefs.h"
320955839Sasmodai#include <errno.h>
321055839Sasmodai#include <stdio.h>
321179543Sruint
321279543Srumain ()
321379543Sru{
321469626Sruint k; k = sys_nerr;
321579543Sru  ;
321679543Sru  return 0;
321779543Sru}
321879543Sru_ACEOF
321979543Srurm -f conftest.$ac_objext
322079543Sruif { (eval echo "$as_me:3220: \"$ac_compile\"") >&5
322179543Sru  (eval $ac_compile) 2>&5
322279543Sru  ac_status=$?
322379543Sru  echo "$as_me:3223: \$? = $ac_status" >&5
322479543Sru  (exit $ac_status); } &&
322579543Sru         { ac_try='test -s conftest.$ac_objext'
322679543Sru  { (eval echo "$as_me:3226: \"$ac_try\"") >&5
322779543Sru  (eval $ac_try) 2>&5
322879543Sru  ac_status=$?
322979543Sru  echo "$as_me:3229: \$? = $ac_status" >&5
323079543Sru  (exit $ac_status); }; }; then
323179543Sru  echo "$as_me:3231: result: yes" >&5
323279543Sruecho "${ECHO_T}yes" >&6;cat >>confdefs.h <<\EOF
323369626Sru#define HAVE_SYS_NERR 1
323455839SasmodaiEOF
323555839Sasmodai
323655839Sasmodaielse
323779543Sru  echo "$as_me: failed program was:" >&5
323879543Srucat conftest.$ac_ext >&5
323979543Sruecho "$as_me:3239: result: no" >&5
324079543Sruecho "${ECHO_T}no" >&6
324155839Sasmodaifi
324279543Srurm -f conftest.$ac_objext conftest.$ac_ext
324355839Sasmodaiac_ext=c
324455839Sasmodaiac_cpp='$CPP $CPPFLAGS'
324579543Sruac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
324679543Sruac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
324779543Sruac_compiler_gnu=$ac_cv_c_compiler_gnu
324855839Sasmodai
324979543Sruecho "$as_me:3249: checking for sys_errlist in <errno.h> or <stdio.h>" >&5
325079543Sruecho $ECHO_N "checking for sys_errlist in <errno.h> or <stdio.h>... $ECHO_C" >&6
325179543Srucat >conftest.$ac_ext <<_ACEOF
325279543Sru#line 3252 "configure"
325355839Sasmodai#include "confdefs.h"
325469626Sru#include <errno.h>
325569626Sru#include <stdio.h>
325679543Sruint
325779543Srumain ()
325879543Sru{
325969626Sruint k; k = (int)sys_errlist[0];
326079543Sru  ;
326179543Sru  return 0;
326279543Sru}
326379543Sru_ACEOF
326479543Srurm -f conftest.$ac_objext
326579543Sruif { (eval echo "$as_me:3265: \"$ac_compile\"") >&5
326679543Sru  (eval $ac_compile) 2>&5
326779543Sru  ac_status=$?
326879543Sru  echo "$as_me:3268: \$? = $ac_status" >&5
326979543Sru  (exit $ac_status); } &&
327079543Sru         { ac_try='test -s conftest.$ac_objext'
327179543Sru  { (eval echo "$as_me:3271: \"$ac_try\"") >&5
327279543Sru  (eval $ac_try) 2>&5
327379543Sru  ac_status=$?
327479543Sru  echo "$as_me:3274: \$? = $ac_status" >&5
327579543Sru  (exit $ac_status); }; }; then
327679543Sru  echo "$as_me:3276: result: yes" >&5
327779543Sruecho "${ECHO_T}yes" >&6;cat >>confdefs.h <<\EOF
327869626Sru#define HAVE_SYS_ERRLIST 1
327969626SruEOF
328069626Sru
328155839Sasmodaielse
328279543Sru  echo "$as_me: failed program was:" >&5
328379543Srucat conftest.$ac_ext >&5
328479543Sruecho "$as_me:3284: result: no" >&5
328579543Sruecho "${ECHO_T}no" >&6
328655839Sasmodaifi
328779543Srurm -f conftest.$ac_objext conftest.$ac_ext
328879543Sruac_ext=cc
328955839Sasmodaiac_cpp='$CXXCPP $CPPFLAGS'
329079543Sruac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
329179543Sruac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
329279543Sruac_compiler_gnu=$ac_cv_cxx_compiler_gnu
329355839Sasmodai
329479543Sruecho "$as_me:3294: checking C++ <osfcn.h>" >&5
329579543Sruecho $ECHO_N "checking C++ <osfcn.h>... $ECHO_C" >&6
329679543Srucat >conftest.$ac_ext <<_ACEOF
329779543Sru#line 3297 "configure"
329818099Spst#include "confdefs.h"
329918099Spst#include <osfcn.h>
330079543Sruint
330179543Srumain ()
330279543Sru{
330318099Spstread(0, 0, 0); open(0, 0);
330479543Sru  ;
330579543Sru  return 0;
330679543Sru}
330779543Sru_ACEOF
330879543Srurm -f conftest.$ac_objext
330979543Sruif { (eval echo "$as_me:3309: \"$ac_compile\"") >&5
331079543Sru  (eval $ac_compile) 2>&5
331179543Sru  ac_status=$?
331279543Sru  echo "$as_me:3312: \$? = $ac_status" >&5
331379543Sru  (exit $ac_status); } &&
331479543Sru         { ac_try='test -s conftest.$ac_objext'
331579543Sru  { (eval echo "$as_me:3315: \"$ac_try\"") >&5
331679543Sru  (eval $ac_try) 2>&5
331779543Sru  ac_status=$?
331879543Sru  echo "$as_me:3318: \$? = $ac_status" >&5
331979543Sru  (exit $ac_status); }; }; then
332079543Sru  echo "$as_me:3320: result: yes" >&5
332179543Sruecho "${ECHO_T}yes" >&6;cat >>confdefs.h <<\EOF
332218099Spst#define HAVE_CC_OSFCN_H 1
332318099SpstEOF
332418099Spst
332518099Spstelse
332679543Sru  echo "$as_me: failed program was:" >&5
332779543Srucat conftest.$ac_ext >&5
332879543Sruecho "$as_me:3328: result: no" >&5
332979543Sruecho "${ECHO_T}no" >&6
333018099Spstfi
333179543Srurm -f conftest.$ac_objext conftest.$ac_ext
333218099Spstac_ext=c
333318099Spstac_cpp='$CPP $CPPFLAGS'
333479543Sruac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
333579543Sruac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
333679543Sruac_compiler_gnu=$ac_cv_c_compiler_gnu
333718099Spst
333879543Sruac_ext=cc
333918099Spstac_cpp='$CXXCPP $CPPFLAGS'
334079543Sruac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
334179543Sruac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
334279543Sruac_compiler_gnu=$ac_cv_cxx_compiler_gnu
334318099Spst
334479543Sruecho "$as_me:3344: checking C++ <limits.h>" >&5
334579543Sruecho $ECHO_N "checking C++ <limits.h>... $ECHO_C" >&6
334679543Srucat >conftest.$ac_ext <<_ACEOF
334779543Sru#line 3347 "configure"
334818099Spst#include "confdefs.h"
334918099Spst#include <limits.h>
335079543Sruint
335179543Srumain ()
335279543Sru{
335318099Spstint x = INT_MIN; int y = INT_MAX; int z = UCHAR_MAX;
335479543Sru  ;
335579543Sru  return 0;
335679543Sru}
335779543Sru_ACEOF
335879543Srurm -f conftest.$ac_objext
335979543Sruif { (eval echo "$as_me:3359: \"$ac_compile\"") >&5
336079543Sru  (eval $ac_compile) 2>&5
336179543Sru  ac_status=$?
336279543Sru  echo "$as_me:3362: \$? = $ac_status" >&5
336379543Sru  (exit $ac_status); } &&
336479543Sru         { ac_try='test -s conftest.$ac_objext'
336579543Sru  { (eval echo "$as_me:3365: \"$ac_try\"") >&5
336679543Sru  (eval $ac_try) 2>&5
336779543Sru  ac_status=$?
336879543Sru  echo "$as_me:3368: \$? = $ac_status" >&5
336979543Sru  (exit $ac_status); }; }; then
337079543Sru  echo "$as_me:3370: result: yes" >&5
337179543Sruecho "${ECHO_T}yes" >&6;cat >>confdefs.h <<\EOF
337218099Spst#define HAVE_CC_LIMITS_H 1
337318099SpstEOF
337418099Spst
337518099Spstelse
337679543Sru  echo "$as_me: failed program was:" >&5
337779543Srucat conftest.$ac_ext >&5
337879543Sruecho "$as_me:3378: result: no" >&5
337979543Sruecho "${ECHO_T}no" >&6
338018099Spstfi
338179543Srurm -f conftest.$ac_objext conftest.$ac_ext
338218099Spstac_ext=c
338318099Spstac_cpp='$CPP $CPPFLAGS'
338479543Sruac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
338579543Sruac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
338679543Sruac_compiler_gnu=$ac_cv_c_compiler_gnu
338718099Spst
338879543Sruac_ext=cc
338918099Spstac_cpp='$CXXCPP $CPPFLAGS'
339079543Sruac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
339179543Sruac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
339279543Sruac_compiler_gnu=$ac_cv_cxx_compiler_gnu
339318099Spst
339479543Sruecho "$as_me:3394: checking for declaration of time_t" >&5
339579543Sruecho $ECHO_N "checking for declaration of time_t... $ECHO_C" >&6
339679543Srucat >conftest.$ac_ext <<_ACEOF
339779543Sru#line 3397 "configure"
339818099Spst#include "confdefs.h"
339918099Spst#include <time.h>
340079543Sruint
340179543Srumain ()
340279543Sru{
340318099Spsttime_t t = time(0); struct tm *p = localtime(&t);
340479543Sru  ;
340579543Sru  return 0;
340679543Sru}
340779543Sru_ACEOF
340879543Srurm -f conftest.$ac_objext
340979543Sruif { (eval echo "$as_me:3409: \"$ac_compile\"") >&5
341079543Sru  (eval $ac_compile) 2>&5
341179543Sru  ac_status=$?
341279543Sru  echo "$as_me:3412: \$? = $ac_status" >&5
341379543Sru  (exit $ac_status); } &&
341479543Sru         { ac_try='test -s conftest.$ac_objext'
341579543Sru  { (eval echo "$as_me:3415: \"$ac_try\"") >&5
341679543Sru  (eval $ac_try) 2>&5
341779543Sru  ac_status=$?
341879543Sru  echo "$as_me:3418: \$? = $ac_status" >&5
341979543Sru  (exit $ac_status); }; }; then
342079543Sru  echo "$as_me:3420: result: yes" >&5
342179543Sruecho "${ECHO_T}yes" >&6
342218099Spstelse
342379543Sru  echo "$as_me: failed program was:" >&5
342479543Srucat conftest.$ac_ext >&5
342579543Sruecho "$as_me:3425: result: no" >&5
342679543Sruecho "${ECHO_T}no" >&6;cat >>confdefs.h <<\EOF
342718099Spst#define LONG_FOR_TIME_T 1
342818099SpstEOF
342918099Spst
343018099Spstfi
343179543Srurm -f conftest.$ac_objext conftest.$ac_ext
343218099Spstac_ext=c
343318099Spstac_cpp='$CPP $CPPFLAGS'
343479543Sruac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
343579543Sruac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
343679543Sruac_compiler_gnu=$ac_cv_c_compiler_gnu
343718099Spst
343879543Sruecho "$as_me:3438: checking return type of signal handlers" >&5
343979543Sruecho $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
344079543Sruif test "${ac_cv_type_signal+set}" = set; then
344179543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
344218099Spstelse
344379543Sru  cat >conftest.$ac_ext <<_ACEOF
344479543Sru#line 3444 "configure"
344518099Spst#include "confdefs.h"
344618099Spst#include <sys/types.h>
344718099Spst#include <signal.h>
344818099Spst#ifdef signal
344979543Sru# undef signal
345018099Spst#endif
345118099Spst#ifdef __cplusplus
345255839Sasmodaiextern "C" void (*signal (int, void (*)(int)))(int);
345355839Sasmodai#else
345455839Sasmodaivoid (*signal ()) ();
345518099Spst#endif
345655839Sasmodai
345779543Sruint
345879543Srumain ()
345979543Sru{
346018099Spstint i;
346179543Sru  ;
346279543Sru  return 0;
346379543Sru}
346479543Sru_ACEOF
346579543Srurm -f conftest.$ac_objext
346679543Sruif { (eval echo "$as_me:3466: \"$ac_compile\"") >&5
346779543Sru  (eval $ac_compile) 2>&5
346879543Sru  ac_status=$?
346979543Sru  echo "$as_me:3469: \$? = $ac_status" >&5
347079543Sru  (exit $ac_status); } &&
347179543Sru         { ac_try='test -s conftest.$ac_objext'
347279543Sru  { (eval echo "$as_me:3472: \"$ac_try\"") >&5
347379543Sru  (eval $ac_try) 2>&5
347479543Sru  ac_status=$?
347579543Sru  echo "$as_me:3475: \$? = $ac_status" >&5
347679543Sru  (exit $ac_status); }; }; then
347718099Spst  ac_cv_type_signal=void
347818099Spstelse
347979543Sru  echo "$as_me: failed program was:" >&5
348079543Srucat conftest.$ac_ext >&5
348179543Sruac_cv_type_signal=int
348218099Spstfi
348379543Srurm -f conftest.$ac_objext conftest.$ac_ext
348455839Sasmodaifi
348579543Sruecho "$as_me:3485: result: $ac_cv_type_signal" >&5
348679543Sruecho "${ECHO_T}$ac_cv_type_signal" >&6
348718099Spst
348879543Srucat >>confdefs.h <<EOF
348918099Spst#define RETSIGTYPE $ac_cv_type_signal
349018099SpstEOF
349118099Spst
349279543Sruecho "$as_me:3492: checking struct exception" >&5
349379543Sruecho $ECHO_N "checking struct exception... $ECHO_C" >&6
349479543Srucat >conftest.$ac_ext <<_ACEOF
349579543Sru#line 3495 "configure"
349618099Spst#include "confdefs.h"
349718099Spst#include <math.h>
349879543Sruint
349979543Srumain ()
350079543Sru{
350118099Spststruct exception e;
350279543Sru  ;
350379543Sru  return 0;
350479543Sru}
350579543Sru_ACEOF
350679543Srurm -f conftest.$ac_objext
350779543Sruif { (eval echo "$as_me:3507: \"$ac_compile\"") >&5
350879543Sru  (eval $ac_compile) 2>&5
350979543Sru  ac_status=$?
351079543Sru  echo "$as_me:3510: \$? = $ac_status" >&5
351179543Sru  (exit $ac_status); } &&
351279543Sru         { ac_try='test -s conftest.$ac_objext'
351379543Sru  { (eval echo "$as_me:3513: \"$ac_try\"") >&5
351479543Sru  (eval $ac_try) 2>&5
351579543Sru  ac_status=$?
351679543Sru  echo "$as_me:3516: \$? = $ac_status" >&5
351779543Sru  (exit $ac_status); }; }; then
351879543Sru  echo "$as_me:3518: result: yes" >&5
351979543Sruecho "${ECHO_T}yes" >&6;cat >>confdefs.h <<\EOF
352018099Spst#define HAVE_STRUCT_EXCEPTION 1
352118099SpstEOF
352218099Spst
352318099Spstelse
352479543Sru  echo "$as_me: failed program was:" >&5
352579543Srucat conftest.$ac_ext >&5
352679543Sruecho "$as_me:3526: result: no" >&5
352779543Sruecho "${ECHO_T}no" >&6
352818099Spstfi
352979543Srurm -f conftest.$ac_objext conftest.$ac_ext
353079543Sruecho "$as_me:3530: checking for sin in -lm" >&5
353179543Sruecho $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
353279543Sruif test "${ac_cv_lib_m_sin+set}" = set; then
353379543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
353455839Sasmodaielse
353579543Sru  ac_check_lib_save_LIBS=$LIBS
353655839SasmodaiLIBS="-lm  $LIBS"
353779543Srucat >conftest.$ac_ext <<_ACEOF
353879543Sru#line 3538 "configure"
353955839Sasmodai#include "confdefs.h"
354079543Sru
354155839Sasmodai/* Override any gcc2 internal prototype to avoid an error.  */
354279543Sru#ifdef __cplusplus
354379543Sruextern "C"
354479543Sru#endif
354555839Sasmodai/* We use char because int might match the return type of a gcc2
354679543Sru   builtin and then its argument prototype would still apply.  */
354779543Sruchar sin ();
354879543Sruint
354979543Srumain ()
355079543Sru{
355179543Srusin ();
355279543Sru  ;
355379543Sru  return 0;
355479543Sru}
355579543Sru_ACEOF
355679543Srurm -f conftest.$ac_objext conftest$ac_exeext
355779543Sruif { (eval echo "$as_me:3557: \"$ac_link\"") >&5
355879543Sru  (eval $ac_link) 2>&5
355979543Sru  ac_status=$?
356079543Sru  echo "$as_me:3560: \$? = $ac_status" >&5
356179543Sru  (exit $ac_status); } &&
356279543Sru         { ac_try='test -s conftest$ac_exeext'
356379543Sru  { (eval echo "$as_me:3563: \"$ac_try\"") >&5
356479543Sru  (eval $ac_try) 2>&5
356579543Sru  ac_status=$?
356679543Sru  echo "$as_me:3566: \$? = $ac_status" >&5
356779543Sru  (exit $ac_status); }; }; then
356879543Sru  ac_cv_lib_m_sin=yes
356955839Sasmodaielse
357079543Sru  echo "$as_me: failed program was:" >&5
357179543Srucat conftest.$ac_ext >&5
357279543Sruac_cv_lib_m_sin=no
357355839Sasmodaifi
357479543Srurm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
357579543SruLIBS=$ac_check_lib_save_LIBS
357655839Sasmodaifi
357779543Sruecho "$as_me:3577: result: $ac_cv_lib_m_sin" >&5
357879543Sruecho "${ECHO_T}$ac_cv_lib_m_sin" >&6
357979543Sruif test $ac_cv_lib_m_sin = yes; then
358055839Sasmodai  LIBM=-lm
358155839Sasmodaifi
358255839Sasmodai
358379543Srufor ac_header in stdlib.h unistd.h
358455839Sasmodaido
358579543Sruac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
358679543Sruecho "$as_me:3586: checking for $ac_header" >&5
358779543Sruecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
358879543Sruif eval "test \"\${$ac_ac_Header+set}\" = set"; then
358979543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
359055839Sasmodaielse
359179543Sru  cat >conftest.$ac_ext <<_ACEOF
359279543Sru#line 3592 "configure"
359355839Sasmodai#include "confdefs.h"
359479543Sru#include <$ac_header>
359579543Sru_ACEOF
359679543Sruif { (eval echo "$as_me:3596: \"$ac_cpp conftest.$ac_ext\"") >&5
359779543Sru  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
359879543Sru  ac_status=$?
359979543Sru  egrep -v '^ *\+' conftest.er1 >conftest.err
360079543Sru  rm -f conftest.er1
360179543Sru  cat conftest.err >&5
360279543Sru  echo "$as_me:3602: \$? = $ac_status" >&5
360379543Sru  (exit $ac_status); } >/dev/null; then
360479543Sru  if test -s conftest.err; then
360579543Sru    ac_cpp_err=$ac_c_preproc_warn_flag
360679543Sru  else
360779543Sru    ac_cpp_err=
360879543Sru  fi
360955839Sasmodaielse
361079543Sru  ac_cpp_err=yes
361179543Srufi
361279543Sruif test -z "$ac_cpp_err"; then
361379543Sru  eval "$ac_ac_Header=yes"
361479543Sruelse
361579543Sru  echo "$as_me: failed program was:" >&5
361655839Sasmodai  cat conftest.$ac_ext >&5
361779543Sru  eval "$ac_ac_Header=no"
361855839Sasmodaifi
361979543Srurm -f conftest.err conftest.$ac_ext
362055839Sasmodaifi
362179543Sruecho "$as_me:3621: result: `eval echo '${'$ac_ac_Header'}'`" >&5
362279543Sruecho "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
362379543Sruif test `eval echo '${'$ac_ac_Header'}'` = yes; then
362479543Sru  cat >>confdefs.h <<EOF
362579543Sru#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
362655839SasmodaiEOF
362779543Sru
362855839Sasmodaifi
362955839Sasmodaidone
363055839Sasmodai
363155839Sasmodaifor ac_func in getpagesize
363255839Sasmodaido
363379543Sruac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
363479543Sruecho "$as_me:3634: checking for $ac_func" >&5
363579543Sruecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6
363679543Sruif eval "test \"\${$ac_ac_var+set}\" = set"; then
363779543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
363855839Sasmodaielse
363979543Sru  cat >conftest.$ac_ext <<_ACEOF
364079543Sru#line 3640 "configure"
364155839Sasmodai#include "confdefs.h"
364255839Sasmodai/* System header to define __stub macros and hopefully few prototypes,
364379543Sru    which can conflict with char $ac_func (); below.  */
364455839Sasmodai#include <assert.h>
364555839Sasmodai/* Override any gcc2 internal prototype to avoid an error.  */
364679543Sru#ifdef __cplusplus
364779543Sruextern "C"
364879543Sru#endif
364955839Sasmodai/* We use char because int might match the return type of a gcc2
365079543Sru   builtin and then its argument prototype would still apply.  */
365179543Sruchar $ac_func ();
365279543Sruchar (*f) ();
365355839Sasmodai
365479543Sruint
365579543Srumain ()
365679543Sru{
365755839Sasmodai/* The GNU C library defines this for functions which it implements
365855839Sasmodai    to always fail with ENOSYS.  Some functions are actually named
365955839Sasmodai    something starting with __ and the normal name is an alias.  */
366055839Sasmodai#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
366155839Sasmodaichoke me
366255839Sasmodai#else
366379543Sruf = $ac_func;
366455839Sasmodai#endif
366555839Sasmodai
366679543Sru  ;
366779543Sru  return 0;
366879543Sru}
366979543Sru_ACEOF
367079543Srurm -f conftest.$ac_objext conftest$ac_exeext
367179543Sruif { (eval echo "$as_me:3671: \"$ac_link\"") >&5
367279543Sru  (eval $ac_link) 2>&5
367379543Sru  ac_status=$?
367479543Sru  echo "$as_me:3674: \$? = $ac_status" >&5
367579543Sru  (exit $ac_status); } &&
367679543Sru         { ac_try='test -s conftest$ac_exeext'
367779543Sru  { (eval echo "$as_me:3677: \"$ac_try\"") >&5
367879543Sru  (eval $ac_try) 2>&5
367979543Sru  ac_status=$?
368079543Sru  echo "$as_me:3680: \$? = $ac_status" >&5
368179543Sru  (exit $ac_status); }; }; then
368279543Sru  eval "$ac_ac_var=yes"
368355839Sasmodaielse
368479543Sru  echo "$as_me: failed program was:" >&5
368579543Srucat conftest.$ac_ext >&5
368679543Srueval "$ac_ac_var=no"
368755839Sasmodaifi
368879543Srurm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
368955839Sasmodaifi
369079543Sruecho "$as_me:3690: result: `eval echo '${'$ac_ac_var'}'`" >&5
369179543Sruecho "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
369279543Sruif test `eval echo '${'$ac_ac_var'}'` = yes; then
369379543Sru  cat >>confdefs.h <<EOF
369479543Sru#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
369579543SruEOF
369655839Sasmodai
369755839Sasmodaifi
369855839Sasmodaidone
369955839Sasmodai
370079543Sruecho "$as_me:3700: checking for working mmap" >&5
370179543Sruecho $ECHO_N "checking for working mmap... $ECHO_C" >&6
370279543Sruif test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
370379543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
370418099Spstelse
370518099Spst  if test "$cross_compiling" = yes; then
370655839Sasmodai  ac_cv_func_mmap_fixed_mapped=no
370718099Spstelse
370879543Sru  cat >conftest.$ac_ext <<_ACEOF
370979543Sru#line 3709 "configure"
371018099Spst#include "confdefs.h"
371155839Sasmodai/* Thanks to Mike Haertel and Jim Avera for this test.
371255839Sasmodai   Here is a matrix of mmap possibilities:
371355839Sasmodai	mmap private not fixed
371455839Sasmodai	mmap private fixed at somewhere currently unmapped
371555839Sasmodai	mmap private fixed at somewhere already mapped
371655839Sasmodai	mmap shared not fixed
371755839Sasmodai	mmap shared fixed at somewhere currently unmapped
371855839Sasmodai	mmap shared fixed at somewhere already mapped
371955839Sasmodai   For private mappings, we should verify that changes cannot be read()
372055839Sasmodai   back from the file, nor mmap's back from the file at a different
372155839Sasmodai   address.  (There have been systems where private was not correctly
372255839Sasmodai   implemented like the infamous i386 svr4.0, and systems where the
372379543Sru   VM page cache was not coherent with the file system buffer cache
372455839Sasmodai   like early versions of FreeBSD and possibly contemporary NetBSD.)
372555839Sasmodai   For shared mappings, we should conversely verify that changes get
372655839Sasmodai   propogated back to all the places they're supposed to be.
372755839Sasmodai
372855839Sasmodai   Grep wants private fixed already mapped.
372955839Sasmodai   The main things grep needs to know about mmap are:
373055839Sasmodai   * does it exist and is it safe to write into the mmap'd area
373155839Sasmodai   * how to use it (BSD variants)  */
373218099Spst#include <sys/types.h>
373318099Spst#include <fcntl.h>
373418099Spst#include <sys/mman.h>
373518099Spst
373679543Sru#if STDC_HEADERS || HAVE_STDLIB_H
373779543Sru# include <stdlib.h>
373879543Sru#else
373979543Sruchar *malloc ();
374079543Sru#endif
374179543Sru#if HAVE_UNISTD_H
374279543Sru# include <unistd.h>
374379543Sru#endif
374479543Sru#include <sys/stat.h>
374579543Sru
374655839Sasmodai/* This mess was copied from the GNU getpagesize.h.  */
374779543Sru#if !HAVE_GETPAGESIZE
374855839Sasmodai/* Assume that all systems that can run configure have sys/param.h.  */
374979543Sru# if !HAVE_SYS_PARAM_H
375055839Sasmodai#  define HAVE_SYS_PARAM_H 1
375118099Spst# endif
375218099Spst
375355839Sasmodai# ifdef _SC_PAGESIZE
375455839Sasmodai#  define getpagesize() sysconf(_SC_PAGESIZE)
375555839Sasmodai# else /* no _SC_PAGESIZE */
375679543Sru#  if HAVE_SYS_PARAM_H
375755839Sasmodai#   include <sys/param.h>
375855839Sasmodai#   ifdef EXEC_PAGESIZE
375955839Sasmodai#    define getpagesize() EXEC_PAGESIZE
376055839Sasmodai#   else /* no EXEC_PAGESIZE */
376155839Sasmodai#    ifdef NBPG
376255839Sasmodai#     define getpagesize() NBPG * CLSIZE
376355839Sasmodai#     ifndef CLSIZE
376455839Sasmodai#      define CLSIZE 1
376555839Sasmodai#     endif /* no CLSIZE */
376655839Sasmodai#    else /* no NBPG */
376755839Sasmodai#     ifdef NBPC
376855839Sasmodai#      define getpagesize() NBPC
376955839Sasmodai#     else /* no NBPC */
377055839Sasmodai#      ifdef PAGESIZE
377155839Sasmodai#       define getpagesize() PAGESIZE
377255839Sasmodai#      endif /* PAGESIZE */
377355839Sasmodai#     endif /* no NBPC */
377455839Sasmodai#    endif /* no NBPG */
377555839Sasmodai#   endif /* no EXEC_PAGESIZE */
377655839Sasmodai#  else /* no HAVE_SYS_PARAM_H */
377755839Sasmodai#   define getpagesize() 8192	/* punt totally */
377855839Sasmodai#  endif /* no HAVE_SYS_PARAM_H */
377955839Sasmodai# endif /* no _SC_PAGESIZE */
378018099Spst
378155839Sasmodai#endif /* no HAVE_GETPAGESIZE */
378255839Sasmodai
378318099Spstint
378479543Srumain ()
378518099Spst{
378679543Sru  char *data, *data2, *data3;
378779543Sru  int i, pagesize;
378879543Sru  int fd;
378918099Spst
379079543Sru  pagesize = getpagesize ();
379155839Sasmodai
379279543Sru  /* First, make a file with some known garbage in it. */
379379543Sru  data = (char *) malloc (pagesize);
379479543Sru  if (!data)
379579543Sru    exit (1);
379679543Sru  for (i = 0; i < pagesize; ++i)
379779543Sru    *(data + i) = rand ();
379879543Sru  umask (0);
379979543Sru  fd = creat ("conftest.mmap", 0600);
380079543Sru  if (fd < 0)
380179543Sru    exit (1);
380279543Sru  if (write (fd, data, pagesize) != pagesize)
380379543Sru    exit (1);
380479543Sru  close (fd);
380555839Sasmodai
380679543Sru  /* Next, try to mmap the file at a fixed address which already has
380779543Sru     something else allocated at it.  If we can, also make sure that
380879543Sru     we see the same garbage.  */
380979543Sru  fd = open ("conftest.mmap", O_RDWR);
381079543Sru  if (fd < 0)
381179543Sru    exit (1);
381279543Sru  data2 = (char *) malloc (2 * pagesize);
381379543Sru  if (!data2)
381479543Sru    exit (1);
381579543Sru  data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
381679543Sru  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
381779543Sru                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
381879543Sru    exit (1);
381979543Sru  for (i = 0; i < pagesize; ++i)
382079543Sru    if (*(data + i) != *(data2 + i))
382179543Sru      exit (1);
382255839Sasmodai
382379543Sru  /* Finally, make sure that changes to the mapped area do not
382479543Sru     percolate back to the file as seen by read().  (This is a bug on
382579543Sru     some variants of i386 svr4.0.)  */
382679543Sru  for (i = 0; i < pagesize; ++i)
382779543Sru    *(data2 + i) = *(data2 + i) + 1;
382879543Sru  data3 = (char *) malloc (pagesize);
382979543Sru  if (!data3)
383079543Sru    exit (1);
383179543Sru  if (read (fd, data3, pagesize) != pagesize)
383279543Sru    exit (1);
383379543Sru  for (i = 0; i < pagesize; ++i)
383479543Sru    if (*(data + i) != *(data3 + i))
383579543Sru      exit (1);
383679543Sru  close (fd);
383779543Sru  exit (0);
383818099Spst}
383979543Sru_ACEOF
384079543Srurm -f conftest$ac_exeext
384179543Sruif { (eval echo "$as_me:3841: \"$ac_link\"") >&5
384279543Sru  (eval $ac_link) 2>&5
384379543Sru  ac_status=$?
384479543Sru  echo "$as_me:3844: \$? = $ac_status" >&5
384579543Sru  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
384679543Sru  { (eval echo "$as_me:3846: \"$ac_try\"") >&5
384779543Sru  (eval $ac_try) 2>&5
384879543Sru  ac_status=$?
384979543Sru  echo "$as_me:3849: \$? = $ac_status" >&5
385079543Sru  (exit $ac_status); }; }; then
385155839Sasmodai  ac_cv_func_mmap_fixed_mapped=yes
385218099Spstelse
385379543Sru  echo "$as_me: program exited with status $ac_status" >&5
385479543Sruecho "$as_me: failed program was:" >&5
385579543Srucat conftest.$ac_ext >&5
385679543Sruac_cv_func_mmap_fixed_mapped=no
385718099Spstfi
385879543Srurm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
385918099Spstfi
386055839Sasmodaifi
386179543Sruecho "$as_me:3861: result: $ac_cv_func_mmap_fixed_mapped" >&5
386279543Sruecho "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
386379543Sruif test $ac_cv_func_mmap_fixed_mapped = yes; then
386455839Sasmodai
386579543Srucat >>confdefs.h <<\EOF
386618099Spst#define HAVE_MMAP 1
386718099SpstEOF
386818099Spst
386918099Spstfi
387079543Srurm -f conftest.mmap
387118099Spst
387218099Spstsaved_libs="$LIBS"
387355839SasmodaiLIBS="$LIBS -lc $LIBM"
387479543Sru
387518099Spstfor ac_func in fmod strtol getcwd strerror putenv
387618099Spstdo
387779543Sruac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
387879543Sruecho "$as_me:3878: checking for $ac_func" >&5
387979543Sruecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6
388079543Sruif eval "test \"\${$ac_ac_var+set}\" = set"; then
388179543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
388218099Spstelse
388379543Sru  cat >conftest.$ac_ext <<_ACEOF
388479543Sru#line 3884 "configure"
388518099Spst#include "confdefs.h"
388618099Spst/* System header to define __stub macros and hopefully few prototypes,
388779543Sru    which can conflict with char $ac_func (); below.  */
388818099Spst#include <assert.h>
388918099Spst/* Override any gcc2 internal prototype to avoid an error.  */
389079543Sru#ifdef __cplusplus
389179543Sruextern "C"
389279543Sru#endif
389355839Sasmodai/* We use char because int might match the return type of a gcc2
389479543Sru   builtin and then its argument prototype would still apply.  */
389579543Sruchar $ac_func ();
389679543Sruchar (*f) ();
389718099Spst
389879543Sruint
389979543Srumain ()
390079543Sru{
390118099Spst/* The GNU C library defines this for functions which it implements
390218099Spst    to always fail with ENOSYS.  Some functions are actually named
390318099Spst    something starting with __ and the normal name is an alias.  */
390418099Spst#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
390518099Spstchoke me
390618099Spst#else
390779543Sruf = $ac_func;
390818099Spst#endif
390918099Spst
391079543Sru  ;
391179543Sru  return 0;
391279543Sru}
391379543Sru_ACEOF
391479543Srurm -f conftest.$ac_objext conftest$ac_exeext
391579543Sruif { (eval echo "$as_me:3915: \"$ac_link\"") >&5
391679543Sru  (eval $ac_link) 2>&5
391779543Sru  ac_status=$?
391879543Sru  echo "$as_me:3918: \$? = $ac_status" >&5
391979543Sru  (exit $ac_status); } &&
392079543Sru         { ac_try='test -s conftest$ac_exeext'
392179543Sru  { (eval echo "$as_me:3921: \"$ac_try\"") >&5
392279543Sru  (eval $ac_try) 2>&5
392379543Sru  ac_status=$?
392479543Sru  echo "$as_me:3924: \$? = $ac_status" >&5
392579543Sru  (exit $ac_status); }; }; then
392679543Sru  eval "$ac_ac_var=yes"
392718099Spstelse
392879543Sru  echo "$as_me: failed program was:" >&5
392979543Srucat conftest.$ac_ext >&5
393079543Srueval "$ac_ac_var=no"
393118099Spstfi
393279543Srurm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
393355839Sasmodaifi
393479543Sruecho "$as_me:3934: result: `eval echo '${'$ac_ac_var'}'`" >&5
393579543Sruecho "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
393679543Sruif test `eval echo '${'$ac_ac_var'}'` = yes; then
393779543Sru  cat >>confdefs.h <<EOF
393879543Sru#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
393979543SruEOF
394018099Spst
394118099Spstelse
394279543Sru  LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
394318099Spstfi
394418099Spstdone
394518099Spst
394679543SruLIBS="$saved_libs"
394755839Sasmodai
394879543Srufor ac_func in rename strcasecmp strncasecmp strsep strdup
394918099Spstdo
395079543Sruac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
395179543Sruecho "$as_me:3951: checking for $ac_func" >&5
395279543Sruecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6
395379543Sruif eval "test \"\${$ac_ac_var+set}\" = set"; then
395479543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
395518099Spstelse
395679543Sru  cat >conftest.$ac_ext <<_ACEOF
395779543Sru#line 3957 "configure"
395818099Spst#include "confdefs.h"
395918099Spst/* System header to define __stub macros and hopefully few prototypes,
396079543Sru    which can conflict with char $ac_func (); below.  */
396118099Spst#include <assert.h>
396218099Spst/* Override any gcc2 internal prototype to avoid an error.  */
396379543Sru#ifdef __cplusplus
396479543Sruextern "C"
396579543Sru#endif
396655839Sasmodai/* We use char because int might match the return type of a gcc2
396779543Sru   builtin and then its argument prototype would still apply.  */
396879543Sruchar $ac_func ();
396979543Sruchar (*f) ();
397018099Spst
397179543Sruint
397279543Srumain ()
397379543Sru{
397418099Spst/* The GNU C library defines this for functions which it implements
397518099Spst    to always fail with ENOSYS.  Some functions are actually named
397618099Spst    something starting with __ and the normal name is an alias.  */
397718099Spst#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
397818099Spstchoke me
397918099Spst#else
398079543Sruf = $ac_func;
398118099Spst#endif
398218099Spst
398379543Sru  ;
398479543Sru  return 0;
398579543Sru}
398679543Sru_ACEOF
398779543Srurm -f conftest.$ac_objext conftest$ac_exeext
398879543Sruif { (eval echo "$as_me:3988: \"$ac_link\"") >&5
398979543Sru  (eval $ac_link) 2>&5
399079543Sru  ac_status=$?
399179543Sru  echo "$as_me:3991: \$? = $ac_status" >&5
399279543Sru  (exit $ac_status); } &&
399379543Sru         { ac_try='test -s conftest$ac_exeext'
399479543Sru  { (eval echo "$as_me:3994: \"$ac_try\"") >&5
399579543Sru  (eval $ac_try) 2>&5
399679543Sru  ac_status=$?
399779543Sru  echo "$as_me:3997: \$? = $ac_status" >&5
399879543Sru  (exit $ac_status); }; }; then
399979543Sru  eval "$ac_ac_var=yes"
400079543Sruelse
400179543Sru  echo "$as_me: failed program was:" >&5
400279543Srucat conftest.$ac_ext >&5
400379543Srueval "$ac_ac_var=no"
400479543Srufi
400579543Srurm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
400679543Srufi
400779543Sruecho "$as_me:4007: result: `eval echo '${'$ac_ac_var'}'`" >&5
400879543Sruecho "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
400979543Sruif test `eval echo '${'$ac_ac_var'}'` = yes; then
401079543Sru  cat >>confdefs.h <<EOF
401179543Sru#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
401218099SpstEOF
401379543Sru
401479543Srufi
401579543Srudone
401679543Sru
401779543Sruecho "$as_me:4017: checking for mkstemp" >&5
401879543Sruecho $ECHO_N "checking for mkstemp... $ECHO_C" >&6
401979543Sruif test "${ac_cv_func_mkstemp+set}" = set; then
402079543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
402118099Spstelse
402279543Sru  cat >conftest.$ac_ext <<_ACEOF
402379543Sru#line 4023 "configure"
402479543Sru#include "confdefs.h"
402579543Sru/* System header to define __stub macros and hopefully few prototypes,
402679543Sru    which can conflict with char mkstemp (); below.  */
402779543Sru#include <assert.h>
402879543Sru/* Override any gcc2 internal prototype to avoid an error.  */
402979543Sru#ifdef __cplusplus
403079543Sruextern "C"
403179543Sru#endif
403279543Sru/* We use char because int might match the return type of a gcc2
403379543Sru   builtin and then its argument prototype would still apply.  */
403479543Sruchar mkstemp ();
403579543Sruchar (*f) ();
403679543Sru
403779543Sruint
403879543Srumain ()
403979543Sru{
404079543Sru/* The GNU C library defines this for functions which it implements
404179543Sru    to always fail with ENOSYS.  Some functions are actually named
404279543Sru    something starting with __ and the normal name is an alias.  */
404379543Sru#if defined (__stub_mkstemp) || defined (__stub___mkstemp)
404479543Sruchoke me
404579543Sru#else
404679543Sruf = mkstemp;
404779543Sru#endif
404879543Sru
404979543Sru  ;
405079543Sru  return 0;
405179543Sru}
405279543Sru_ACEOF
405379543Srurm -f conftest.$ac_objext conftest$ac_exeext
405479543Sruif { (eval echo "$as_me:4054: \"$ac_link\"") >&5
405579543Sru  (eval $ac_link) 2>&5
405679543Sru  ac_status=$?
405779543Sru  echo "$as_me:4057: \$? = $ac_status" >&5
405879543Sru  (exit $ac_status); } &&
405979543Sru         { ac_try='test -s conftest$ac_exeext'
406079543Sru  { (eval echo "$as_me:4060: \"$ac_try\"") >&5
406179543Sru  (eval $ac_try) 2>&5
406279543Sru  ac_status=$?
406379543Sru  echo "$as_me:4063: \$? = $ac_status" >&5
406479543Sru  (exit $ac_status); }; }; then
406579543Sru  ac_cv_func_mkstemp=yes
406679543Sruelse
406779543Sru  echo "$as_me: failed program was:" >&5
406879543Srucat conftest.$ac_ext >&5
406979543Sruac_cv_func_mkstemp=no
407018099Spstfi
407179543Srurm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
407255839Sasmodaifi
407379543Sruecho "$as_me:4073: result: $ac_cv_func_mkstemp" >&5
407479543Sruecho "${ECHO_T}$ac_cv_func_mkstemp" >&6
407579543Sruif test $ac_cv_func_mkstemp = yes; then
407679543Sru  cat >>confdefs.h <<\EOF
407779543Sru#define HAVE_MKSTEMP 1
407879543SruEOF
407918099Spst
408079543Sruecho "$as_me:4080: checking for mkstemp prototype in <stdlib.h>" >&5
408179543Sruecho $ECHO_N "checking for mkstemp prototype in <stdlib.h>... $ECHO_C" >&6
408279543Srucat >conftest.$ac_ext <<_ACEOF
408379543Sru#line 4083 "configure"
408479543Sru#include "confdefs.h"
408579543Sru#include <stdlib.h>
408679543Sru_ACEOF
408779543Sruif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
408879543Sru  egrep "mkstemp" >/dev/null 2>&1; then
408979543Sru  echo "$as_me:4089: result: yes" >&5
409079543Sruecho "${ECHO_T}yes" >&6;cat >>confdefs.h <<\EOF
409179543Sru#define HAVE_MKSTEMP_PROTO 1
409218099SpstEOF
409379543Sru
409418099Spstelse
409579543Sru  echo "$as_me:4095: result: no" >&5
409679543Sruecho "${ECHO_T}no" >&6
409718099Spstfi
409879543Srurm -f conftest*
409918099Spst
410079543Srufi
410179543Sru
410279543Sruecho "$as_me:4102: checking for sys_siglist declaration in signal.h or unistd.h" >&5
410379543Sruecho $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
410479543Sruif test "${ac_cv_decl_sys_siglist+set}" = set; then
410579543Sru  echo $ECHO_N "(cached) $ECHO_C" >&6
410618099Spstelse
410779543Sru  cat >conftest.$ac_ext <<_ACEOF
410879543Sru#line 4108 "configure"
410918099Spst#include "confdefs.h"
411018099Spst#include <sys/types.h>
411118099Spst#include <signal.h>
411218099Spst/* NetBSD declares sys_siglist in unistd.h.  */
411379543Sru#if HAVE_UNISTD_H
411479543Sru# include <unistd.h>
411518099Spst#endif
411679543Sru
411779543Sruint
411879543Srumain ()
411979543Sru{
412018099Spstchar *msg = *(sys_siglist + 1);
412179543Sru  ;
412279543Sru  return 0;
412379543Sru}
412479543Sru_ACEOF
412579543Srurm -f conftest.$ac_objext
412679543Sruif { (eval echo "$as_me:4126: \"$ac_compile\"") >&5
412779543Sru  (eval $ac_compile) 2>&5
412879543Sru  ac_status=$?
412979543Sru  echo "$as_me:4129: \$? = $ac_status" >&5
413079543Sru  (exit $ac_status); } &&
413179543Sru         { ac_try='test -s conftest.$ac_objext'
413279543Sru  { (eval echo "$as_me:4132: \"$ac_try\"") >&5
413379543Sru  (eval $ac_try) 2>&5
413479543Sru  ac_status=$?
413579543Sru  echo "$as_me:4135: \$? = $ac_status" >&5
413679543Sru  (exit $ac_status); }; }; then
413718099Spst  ac_cv_decl_sys_siglist=yes
413818099Spstelse
413979543Sru  echo "$as_me: failed program was:" >&5
414079543Srucat conftest.$ac_ext >&5
414179543Sruac_cv_decl_sys_siglist=no
414218099Spstfi
414379543Srurm -f conftest.$ac_objext conftest.$ac_ext
414455839Sasmodaifi
414579543Sruecho "$as_me:4145: result: $ac_cv_decl_sys_siglist" >&5
414679543Sruecho "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
414779543Sruif test $ac_cv_decl_sys_siglist = yes; then
414818099Spst
414979543Srucat >>confdefs.h <<\EOF
415018099Spst#define SYS_SIGLIST_DECLARED 1
415118099SpstEOF
415218099Spst
415318099Spstfi
415418099Spst
415579543Sruac_ext=cc
415618099Spstac_cpp='$CXXCPP $CPPFLAGS'
415779543Sruac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
415879543Sruac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
415979543Sruac_compiler_gnu=$ac_cv_cxx_compiler_gnu
416018099Spst
416179543Sruecho "$as_me:4161: checking whether ANSI array delete syntax supported" >&5
416279543Sruecho $ECHO_N "checking whether ANSI array delete syntax supported... $ECHO_C" >&6
416379543Srucat >conftest.$ac_ext <<_ACEOF
416479543Sru#line 4164 "configure"
416518099Spst#include "confdefs.h"
416618099Spst
416779543Sruint
416879543Srumain ()
416979543Sru{
417018099Spstchar *p = new char[5]; delete [] p;
417179543Sru  ;
417279543Sru  return 0;
417379543Sru}
417479543Sru_ACEOF
417579543Srurm -f conftest.$ac_objext
417679543Sruif { (eval echo "$as_me:4176: \"$ac_compile\"") >&5
417779543Sru  (eval $ac_compile) 2>&5
417879543Sru  ac_status=$?
417979543Sru  echo "$as_me:4179: \$? = $ac_status" >&5
418079543Sru  (exit $ac_status); } &&
418179543Sru         { ac_try='test -s conftest.$ac_objext'
418279543Sru  { (eval echo "$as_me:4182: \"$ac_try\"") >&5
418379543Sru  (eval $ac_try) 2>&5
418479543Sru  ac_status=$?
418579543Sru  echo "$as_me:4185: \$? = $ac_status" >&5
418679543Sru  (exit $ac_status); }; }; then
418779543Sru  echo "$as_me:4187: result: yes" >&5
418879543Sruecho "${ECHO_T}yes" >&6
418918099Spstelse
419079543Sru  echo "$as_me: failed program was:" >&5
419179543Srucat conftest.$ac_ext >&5
419279543Sruecho "$as_me:4192: result: no" >&5
419379543Sruecho "${ECHO_T}no" >&6;cat >>confdefs.h <<\EOF
419418099Spst#define ARRAY_DELETE_NEEDS_SIZE 1
419518099SpstEOF
419618099Spst
419718099Spstfi
419879543Srurm -f conftest.$ac_objext conftest.$ac_ext
419918099Spstac_ext=c
420018099Spstac_cpp='$CPP $CPPFLAGS'
420179543Sruac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
420279543Sruac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
420379543Sruac_compiler_gnu=$ac_cv_c_compiler_gnu
420418099Spst
420579543Sruac_ext=cc
420618099Spstac_cpp='$CXXCPP $CPPFLAGS'
420779543Sruac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
420879543Sruac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
420979543Sruac_compiler_gnu=$ac_cv_cxx_compiler_gnu
421018099Spst
421179543Sruecho "$as_me:4211: checking traditional preprocessor" >&5
421279543Sruecho $ECHO_N "checking traditional preprocessor... $ECHO_C" >&6
421379543Srucat >conftest.$ac_ext <<_ACEOF
421479543Sru#line 4214 "configure"
421518099Spst#include "confdefs.h"
421618099Spst#define name2(a,b) a/**/b
421779543Sruint
421879543Srumain ()
421979543Sru{
422018099Spstint name2(foo,bar);
422179543Sru  ;
422279543Sru  return 0;
422379543Sru}
422479543Sru_ACEOF
422579543Srurm -f conftest.$ac_objext
422679543Sruif { (eval echo "$as_me:4226: \"$ac_compile\"") >&5
422779543Sru  (eval $ac_compile) 2>&5
422879543Sru  ac_status=$?
422979543Sru  echo "$as_me:4229: \$? = $ac_status" >&5
423079543Sru  (exit $ac_status); } &&
423179543Sru         { ac_try='test -s conftest.$ac_objext'
423279543Sru  { (eval echo "$as_me:4232: \"$ac_try\"") >&5
423379543Sru  (eval $ac_try) 2>&5
423479543Sru  ac_status=$?
423579543Sru  echo "$as_me:4235: \$? = $ac_status" >&5
423679543Sru  (exit $ac_status); }; }; then
423779543Sru  echo "$as_me:4237: result: yes" >&5
423879543Sruecho "${ECHO_T}yes" >&6;cat >>confdefs.h <<\EOF
423918099Spst#define TRADITIONAL_CPP 1
424018099SpstEOF
424118099Spst
424218099Spstelse
424379543Sru  echo "$as_me: failed program was:" >&5
424479543Srucat conftest.$ac_ext >&5
424579543Sruecho "$as_me:4245: result: no" >&5
424679543Sruecho "${ECHO_T}no" >&6
424718099Spstfi
424879543Srurm -f conftest.$ac_objext conftest.$ac_ext
424918099Spstac_ext=c
425018099Spstac_cpp='$CPP $CPPFLAGS'
425179543Sruac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
425279543Sruac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
425379543Sruac_compiler_gnu=$ac_cv_c_compiler_gnu
425418099Spst
425579543Sruecho "$as_me:4255: checking w_coredump" >&5
425679543Sruecho $ECHO_N "checking w_coredump... $ECHO_C" >&6
425718099Spstif test "$cross_compiling" = yes; then
425879543Sru  echo "$as_me:4258: result: no" >&5
425979543Sruecho "${ECHO_T}no" >&6
426018099Spstelse
426179543Sru  cat >conftest.$ac_ext <<_ACEOF
426279543Sru#line 4262 "configure"
426318099Spst#include "confdefs.h"
426418099Spst#include <sys/types.h>
426518099Spst#include <sys/wait.h>
426618099Spstmain()
426718099Spst{
426818099Spst#ifdef WCOREFLAG
426918099Spst  exit(1);
427018099Spst#else
427118099Spst  int i = 0;
427218099Spst  ((union wait *)&i)->w_coredump = 1;
427318099Spst  exit(i != 0200);
427418099Spst#endif
427518099Spst}
427679543Sru_ACEOF
427779543Srurm -f conftest$ac_exeext
427879543Sruif { (eval echo "$as_me:4278: \"$ac_link\"") >&5
427979543Sru  (eval $ac_link) 2>&5
428079543Sru  ac_status=$?
428179543Sru  echo "$as_me:4281: \$? = $ac_status" >&5
428279543Sru  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
428379543Sru  { (eval echo "$as_me:4283: \"$ac_try\"") >&5
428479543Sru  (eval $ac_try) 2>&5
428579543Sru  ac_status=$?
428679543Sru  echo "$as_me:4286: \$? = $ac_status" >&5
428779543Sru  (exit $ac_status); }; }; then
428879543Sru  echo "$as_me:4288: result: yes" >&5
428979543Sruecho "${ECHO_T}yes" >&6;cat >>confdefs.h <<\EOF
429018099Spst#define WCOREFLAG 0200
429118099SpstEOF
429218099Spst
429318099Spstelse
429479543Sru  echo "$as_me: program exited with status $ac_status" >&5
429579543Sruecho "$as_me: failed program was:" >&5
429679543Srucat conftest.$ac_ext >&5
429779543Sruecho "$as_me:4297: result: no" >&5
429879543Sruecho "${ECHO_T}no" >&6
429918099Spstfi
430079543Srurm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
430118099Spstfi
430279543Sruecho "$as_me:4302: checking default value for grops -b option" >&5
430379543Sruecho $ECHO_N "checking default value for grops -b option... $ECHO_C" >&6
430418099Spsttest -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=7
430579543Sruecho "$as_me:4305: result: $BROKEN_SPOOLER_FLAGS" >&5
430679543Sruecho "${ECHO_T}$BROKEN_SPOOLER_FLAGS" >&6
430718099Spst
430879543Sruecho "$as_me:4308: checking default paper size" >&5
430979543Sruecho $ECHO_N "checking default paper size... $ECHO_C" >&6
431055839Sasmodaiif test -z "$PAGE"; then
431118099Spst	descfile=
431255839Sasmodai	if test -r $prefix/share/groff/font/devps/DESC; then
431318099Spst		descfile=$prefix/share/groff/font/devps/DESC
431455839Sasmodai	elif test -r $prefix/lib/groff/font/devps/DESC; then
431518099Spst		descfile=$prefix/lib/groff/font/devps/DESC
431675584Sru	else
431775584Sru		for f in $prefix/share/groff/*/font/devps/DESC; do
431875584Sru			if test -r $f; then
431975584Sru				descfile=$f
432075584Sru				break
432175584Sru			fi
432275584Sru		done
432318099Spst	fi
432418099Spst	if test -n "$descfile" \
432555839Sasmodai	  && grep "^paperlength 841890" $descfile >/dev/null 2>&1; then
432618099Spst		PAGE=A4
432718099Spst	fi
432818099Spstfi
432955839Sasmodaiif test -z "$PAGE"; then
433018099Spst	dom=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
433118099Spst	    /etc/resolv.conf 2>/dev/null`
433255839Sasmodai	if test -z "$dom"; then
433318099Spst		dom=`(domainname) 2>/dev/null | tr -d '+'`
433479543Sru		if test -z "$dom" \
433579543Sru		  || test "$dom" = '(none)'; then
433618099Spst			dom=`(hostname) 2>/dev/null | grep '\.'`
433718099Spst		fi
433818099Spst	fi
433918099Spst	# If the top-level domain is two letters and it's not `us' or `ca'
434018099Spst	# then they probably use A4 paper.
434118099Spst	case "$dom" in
434218099Spst	*.[Uu][Ss]|*.[Cc][Aa]) ;;
434318099Spst	*.[A-Za-z][A-Za-z]) PAGE=A4 ;;
434418099Spst	esac
434518099Spstfi
434618099Spsttest -n "$PAGE" || PAGE=letter
434779543Sruecho "$as_me:4347: result: $PAGE" >&5
434879543Sruecho "${ECHO_T}$PAGE" >&6
434918099Spst
435079543Sruecho "$as_me:4350: checking for existing troff installation" >&5
435179543Sruecho $ECHO_N "checking for existing troff installation... $ECHO_C" >&6
435255839Sasmodaiif test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then
435379543Sru	echo "$as_me:4353: result: yes" >&5
435479543Sruecho "${ECHO_T}yes" >&6
435518099Spst	g=g
435618099Spstelse
435779543Sru	echo "$as_me:4357: result: no" >&5
435879543Sruecho "${ECHO_T}no" >&6
435918099Spst	g=
436018099Spstfi
436118099Spst
436279543Sruecho "$as_me:4362: checking for prefix of system macro packages" >&5
436379543Sruecho $ECHO_N "checking for prefix of system macro packages... $ECHO_C" >&6
436418099Spstsys_tmac_prefix=
436518099Spstsys_tmac_file_prefix=
436655839Sasmodaifor d in /usr/share/lib/tmac /usr/lib/tmac; do
436755839Sasmodai	for t in "" tmac.; do
436855839Sasmodai		for m in an s m; do
436918099Spst			f=$d/$t$m
437018099Spst			if test -z "$sys_tmac_prefix" \
437118099Spst			  && test -f $f \
437255839Sasmodai			  && grep '^\.if' $f >/dev/null 2>&1; then
437318099Spst				sys_tmac_prefix=$d/$t
437418099Spst				sys_tmac_file_prefix=$t
437518099Spst			fi
437618099Spst		done
437718099Spst	done
437818099Spstdone
437979543Sruecho "$as_me:4379: result: $sys_tmac_prefix" >&5
438079543Sruecho "${ECHO_T}$sys_tmac_prefix" >&6
438118099Spst
438218099Spsttmac_wrap=
438379543Sruecho "$as_me:4383: checking which system macro packages should be made available" >&5
438479543Sruecho $ECHO_N "checking which system macro packages should be made available... $ECHO_C" >&6
438555839Sasmodaiif test "x$sys_tmac_file_prefix" = "xtmac."; then
438655839Sasmodai	for f in $sys_tmac_prefix*; do
438718099Spst		suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
438818099Spst		case "$suff" in
438955839Sasmodai		e) ;;
439018099Spst		*)
439155839Sasmodai			grep "Copyright.*Free Software Foundation" $f >/dev/null \
439255839Sasmodai			  || tmac_wrap="$tmac_wrap $suff" ;;
439379543Sru		esac
439418099Spst	done
439555839Sasmodaielif test -n "$sys_tmac_prefix"; then
439618099Spst	files=`echo $sys_tmac_prefix*`
439718099Spst	grep "\\.so" $files >conftest.sol
439855839Sasmodai	for f in $files; do
439918099Spst		case "$f" in
440055839Sasmodai 		${sys_tmac_prefix}e) ;;
440118099Spst		*.me) ;;
440218099Spst		*/ms.*) ;;
440318099Spst		*)
440455839Sasmodai			b=`basename $f`
440555839Sasmodai			if grep "\\.so.*/$b\$" conftest.sol >/dev/null \
440655839Sasmodai			  || grep -l "Copyright.*Free Software Foundation" $f >/dev/null; then
440755839Sasmodai				:
440855839Sasmodai			else
440955839Sasmodai				suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
441055839Sasmodai				case "$suff" in
441155839Sasmodai				tmac.*) ;;
441255839Sasmodai				*) tmac_wrap="$tmac_wrap $suff" ;;
441355839Sasmodai				esac
441455839Sasmodai			fi
441518099Spst		esac
441618099Spst	done
441718099Spst	rm -f conftest.sol
441818099Spstfi
441979543Sruecho "$as_me:4419: result: $tmac_wrap" >&5
442079543Sruecho "${ECHO_T}$tmac_wrap" >&6
442118099Spst
442269626Sru$srcdir/mkinstalldirs src/xditview
442379543Sruac_config_files="$ac_config_files Makefile src/xditview/Imakefile"
442479543Sru
442579543Srucat >confcache <<\_ACEOF
442618099Spst# This file is a shell script that caches the results of configure
442718099Spst# tests run on this system so they can be shared between configure
442879543Sru# scripts and configure runs, see configure's option --config-cache.
442979543Sru# It is not useful on other systems.  If it contains results you don't
443079543Sru# want to keep, you may remove or edit it.
443118099Spst#
443279543Sru# config.status only pays attention to the cache file if you give it
443379543Sru# the --recheck option to rerun configure.
443418099Spst#
443579543Sru# `ac_cv_env_foo' variables (set or unset) will be overriden when
443679543Sru# loading this file, other *unset* `ac_cv_foo' will be assigned the
443779543Sru# following values.
443879543Sru
443979543Sru_ACEOF
444079543Sru
444155839Sasmodai# The following way of writing the cache mishandles newlines in values,
444255839Sasmodai# but we know of no workaround that is simple, portable, and efficient.
444355839Sasmodai# So, don't put newlines in cache variables' values.
444418099Spst# Ultrix sh set writes to stderr and can't be redirected directly,
444518099Spst# and sets the high bit in the cache file unless we assign to the vars.
444679543Sru{
444779543Sru  (set) 2>&1 |
444879543Sru    case `(ac_space=' '; set | grep ac_space) 2>&1` in
444979543Sru    *ac_space=\ *)
445079543Sru      # `set' does not quote correctly, so add quotes (double-quote
445179543Sru      # substitution turns \\\\ into \\, and sed turns \\ into \).
445279543Sru      sed -n \
445379543Sru        "s/'/'\\\\''/g;
445479543Sru    	  s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
445579543Sru      ;;
445679543Sru    *)
445779543Sru      # `set' quotes correctly as required by POSIX, so do not add quotes.
445879543Sru      sed -n \
445979543Sru        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
446079543Sru      ;;
446179543Sru    esac;
446279543Sru} |
446379543Sru  sed '
446479543Sru     t clear
446579543Sru     : clear
446679543Sru     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
446779543Sru     t end
446879543Sru     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
446979543Sru     : end' >>confcache
447079543Sruif cmp -s $cache_file confcache; then :; else
447118099Spst  if test -w $cache_file; then
447279543Sru    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
447379543Sru    cat confcache >$cache_file
447418099Spst  else
447518099Spst    echo "not updating unwritable cache $cache_file"
447618099Spst  fi
447718099Spstfi
447818099Spstrm -f confcache
447918099Spst
448018099Spsttest "x$prefix" = xNONE && prefix=$ac_default_prefix
448118099Spst# Let make expand exec_prefix.
448218099Spsttest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
448318099Spst
448479543Sru# VPATH may cause trouble with some makes, so we remove $(srcdir),
448579543Sru# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
448679543Sru# trailing colons and then remove the whole line if VPATH becomes empty
448779543Sru# (actually we leave an empty line to preserve line numbers).
448818099Spstif test "x$srcdir" = x.; then
448979543Sru  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
449079543Srus/:*\$(srcdir):*/:/;
449179543Srus/:*\${srcdir}:*/:/;
449279543Srus/:*@srcdir@:*/:/;
449379543Srus/^\([^=]*=[ 	]*\):*/\1/;
449479543Srus/:*$//;
449579543Srus/^[^=]*=[ 	]*$//;
449679543Sru}'
449718099Spstfi
449818099Spst
449918099Spst# Transform confdefs.h into DEFS.
450018099Spst# Protect against shell expansion while executing Makefile rules.
450118099Spst# Protect against Makefile macro expansion.
450279543Sru#
450379543Sru# If the first sed substitution is executed (which looks for macros that
450479543Sru# take arguments), then we branch to the quote section.  Otherwise,
450579543Sru# look for a macro that doesn't take arguments.
450679543Srucat >confdef2opt.sed <<\EOF
450779543Srut clear
450879543Sru: clear
450979543Srus,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*([^)]*)\)[ 	]*\(.*\),-D\1=\2,g
451079543Srut quote
451179543Srus,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\),-D\1=\2,g
451279543Srut quote
451379543Srud
451479543Sru: quote
451579543Srus,[ 	`~#$^&*(){}\\|;'"<>?],\\&,g
451679543Srus,\[,\\&,g
451779543Srus,\],\\&,g
451879543Srus,\$,$$,g
451979543Srup
452018099SpstEOF
452179543Sru# We use echo to avoid assuming a particular line-breaking character.
452279543Sru# The extra dot is to prevent the shell from consuming trailing
452379543Sru# line-breaks from the sub-command output.  A line-break within
452479543Sru# single-quotes doesn't work because, if this script is created in a
452579543Sru# platform that uses two characters for line-breaks (e.g., DOS), tr
452679543Sru# would break.
452779543Sruac_LF_and_DOT=`echo; echo .`
452879543SruDEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
452979543Srurm -f confdef2opt.sed
453018099Spst
453118099Spst: ${CONFIG_STATUS=./config.status}
453279543Sruac_clean_files_save=$ac_clean_files
453379543Sruac_clean_files="$ac_clean_files $CONFIG_STATUS"
453479543Sru{ echo "$as_me:4534: creating $CONFIG_STATUS" >&5
453579543Sruecho "$as_me: creating $CONFIG_STATUS" >&6;}
453679543Srucat >$CONFIG_STATUS <<_ACEOF
453779543Sru#! $SHELL
453818099Spst# Generated automatically by configure.
453918099Spst# Run this file to recreate the current configuration.
454018099Spst# Compiler output produced by configure, useful for debugging
454179543Sru# configure, is in config.log if it exists.
454218099Spst
454379543Srudebug=false
454479543SruSHELL=\${CONFIG_SHELL-$SHELL}
454579543Sruac_cs_invocation="\$0 \$@"
454679543Sru
454779543Sru_ACEOF
454879543Sru
454979543Srucat >>$CONFIG_STATUS <<\_ACEOF
455079543Sru# Be Bourne compatible
455179543Sruif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
455279543Sru  emulate sh
455379543Sru  NULLCMD=:
455479543Sruelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
455579543Sru  set -o posix
455679543Srufi
455779543Sru
455879543Sru# Name of the executable.
455979543Sruas_me=`echo "$0" |sed 's,.*[\\/],,'`
456079543Sru
456179543Sruif expr a : '\(a\)' >/dev/null 2>&1; then
456279543Sru  as_expr=expr
456379543Sruelse
456479543Sru  as_expr=false
456579543Srufi
456679543Sru
456779543Srurm -f conf$$ conf$$.exe conf$$.file
456879543Sruecho >conf$$.file
456979543Sruif ln -s conf$$.file conf$$ 2>/dev/null; then
457079543Sru  # We could just check for DJGPP; but this test a) works b) is more generic
457179543Sru  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
457279543Sru  if test -f conf$$.exe; then
457379543Sru    # Don't use ln at all; we don't have any links
457479543Sru    as_ln_s='cp -p'
457579543Sru  else
457679543Sru    as_ln_s='ln -s'
457779543Sru  fi
457879543Sruelif ln conf$$.file conf$$ 2>/dev/null; then
457979543Sru  as_ln_s=ln
458079543Sruelse
458179543Sru  as_ln_s='cp -p'
458279543Srufi
458379543Srurm -f conf$$ conf$$.exe conf$$.file
458479543Sru
458579543Sruas_executable_p="test -f"
458679543Sru
458779543Sru# Support unset when possible.
458879543Sruif (FOO=FOO; unset FOO) >/dev/null 2>&1; then
458979543Sru  as_unset=unset
459079543Sruelse
459179543Sru  as_unset=false
459279543Srufi
459379543Sru
459479543Sru# NLS nuisances.
459579543Sru$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
459679543Sru$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
459779543Sru$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
459879543Sru$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
459979543Sru$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
460079543Sru$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
460179543Sru$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
460279543Sru$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
460379543Sru
460479543Sru# IFS
460579543Sru# We need space, tab and new line, in precisely that order.
460679543Sruas_nl='
460779543Sru'
460879543SruIFS=" 	$as_nl"
460979543Sru
461079543Sru# CDPATH.
461179543Sru$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
461279543Sru
461379543Sruexec 6>&1
461479543Sru
461579543Sru_ACEOF
461679543Sru
461779543Sru# Files that config.status was made for.
461879543Sruif test -n "$ac_config_files"; then
461979543Sru  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
462079543Srufi
462179543Sru
462279543Sruif test -n "$ac_config_headers"; then
462379543Sru  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
462479543Srufi
462579543Sru
462679543Sruif test -n "$ac_config_links"; then
462779543Sru  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
462879543Srufi
462979543Sru
463079543Sruif test -n "$ac_config_commands"; then
463179543Sru  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
463279543Srufi
463379543Sru
463479543Srucat >>$CONFIG_STATUS <<\EOF
463579543Sru
463679543Sruac_cs_usage="\
463779543Sru\`$as_me' instantiates files from templates according to the
463879543Srucurrent configuration.
463979543Sru
464079543SruUsage: $0 [OPTIONS] [FILE]...
464179543Sru
464279543Sru  -h, --help       print this help, then exit
464379543Sru  -V, --version    print version number, then exit
464479543Sru  -d, --debug      don't remove temporary files
464579543Sru      --recheck    update $as_me by reconfiguring in the same conditions
464679543Sru  --file=FILE[:TEMPLATE]
464779543Sru                   instantiate the configuration file FILE
464879543Sru
464979543SruConfiguration files:
465079543Sru$config_files
465179543Sru
465279543SruReport bugs to <bug-autoconf@gnu.org>."
465379543SruEOF
465479543Sru
465579543Srucat >>$CONFIG_STATUS <<EOF
465679543Sruac_cs_version="\\
465779543Sruconfig.status
465879543Sruconfigured by $0, generated by GNU Autoconf 2.50,
465979543Sru  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
466079543Sru
466179543SruCopyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
466279543SruFree Software Foundation, Inc.
466379543SruThis config.status script is free software; the Free Software Foundation
466479543Srugives unlimited permission to copy, distribute and modify it."
466579543Srusrcdir=$srcdir
466679543SruINSTALL="$INSTALL"
466779543SruEOF
466879543Sru
466979543Srucat >>$CONFIG_STATUS <<\EOF
467079543Sru# If no file are specified by the user, then we need to provide default
467179543Sru# value.  By we need to know if files were specified by the user.
467279543Sruac_need_defaults=:
467379543Sruwhile test $# != 0
467418099Spstdo
467579543Sru  case $1 in
467679543Sru  --*=*)
467779543Sru    ac_option=`expr "x$1" : 'x\([^=]*\)='`
467879543Sru    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
467979543Sru    shift
468079543Sru    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
468179543Sru    shift
468279543Sru    ;;
468379543Sru  -*);;
468479543Sru  *) # This is not an option, so the user has probably given explicit
468579543Sru     # arguments.
468679543Sru     ac_need_defaults=false;;
468779543Sru  esac
468879543Sru
468979543Sru  case $1 in
469079543Sru  # Handling of the options.
469179543SruEOF
469279543Srucat >>$CONFIG_STATUS <<EOF
469318099Spst  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
469479543Sru    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
469579543Sru    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
469679543SruEOF
469779543Srucat >>$CONFIG_STATUS <<\EOF
469879543Sru  --version | --vers* | -V )
469979543Sru    echo "$ac_cs_version"; exit 0 ;;
470079543Sru  --he | --h)
470179543Sru    # Conflict between --help and --header
470279543Sru    { { echo "$as_me:4702: error: ambiguous option: $1
470379543SruTry \`$0 --help' for more information." >&5
470479543Sruecho "$as_me: error: ambiguous option: $1
470579543SruTry \`$0 --help' for more information." >&2;}
470679543Sru   { (exit 1); exit 1; }; };;
470779543Sru  --help | --hel | -h )
470879543Sru    echo "$ac_cs_usage"; exit 0 ;;
470979543Sru  --debug | --d* | -d )
471079543Sru    debug=: ;;
471179543Sru  --file | --fil | --fi | --f )
471279543Sru    shift
471379543Sru    CONFIG_FILES="$CONFIG_FILES $1"
471479543Sru    ac_need_defaults=false;;
471579543Sru  --header | --heade | --head | --hea )
471679543Sru    shift
471779543Sru    CONFIG_HEADERS="$CONFIG_HEADERS $1"
471879543Sru    ac_need_defaults=false;;
471979543Sru
472079543Sru  # Handling of arguments.
472179543Sru  'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
472279543Sru  'src/xditview/Imakefile' ) CONFIG_FILES="$CONFIG_FILES src/xditview/Imakefile" ;;
472379543Sru
472479543Sru  # This is an error.
472579543Sru  -*) { { echo "$as_me:4725: error: unrecognized option: $1
472679543SruTry \`$0 --help' for more information." >&5
472779543Sruecho "$as_me: error: unrecognized option: $1
472879543SruTry \`$0 --help' for more information." >&2;}
472979543Sru   { (exit 1); exit 1; }; } ;;
473079543Sru  *) { { echo "$as_me:4730: error: invalid argument: $1" >&5
473179543Sruecho "$as_me: error: invalid argument: $1" >&2;}
473279543Sru   { (exit 1); exit 1; }; };;
473318099Spst  esac
473479543Sru  shift
473518099Spstdone
473618099Spst
473779543Sruexec 5>>config.log
473879543Srucat >&5 << _ACEOF
473918099Spst
474079543Sru## ----------------------- ##
474179543Sru## Running config.status.  ##
474279543Sru## ----------------------- ##
474379543Sru
474479543SruThis file was extended by $as_me 2.50, executed with
474579543Sru  > $ac_cs_invocation
474679543Sruon `(hostname || uname -n) 2>/dev/null | sed 1q`
474779543Sru
474879543Sru_ACEOF
474955839SasmodaiEOF
475018099Spst
475179543Srucat >>$CONFIG_STATUS <<\EOF
475279543Sru# If the user did not use the arguments to specify the items to instantiate,
475379543Sru# then the envvar interface is used.  Set only those that are not.
475479543Sru# We use the long form for the default assignment because of an extremely
475579543Sru# bizarre bug on SunOS 4.1.3.
475679543Sruif $ac_need_defaults; then
475779543Sru  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
475879543Srufi
475918099Spst
476079543Sru# Create a temporary directory, and hook for its removal unless debugging.
476179543Sru$debug ||
476279543Sru{
476379543Sru  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
476479543Sru  trap '{ (exit $?); exit $?; }' 1 2 13 15
476579543Sru}
476679543Sru
476779543Sru# Create a (secure) tmp directory for tmp files.
476879543Sru: ${TMPDIR=/tmp}
476979543Sru{
477079543Sru  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
477179543Sru  test -n "$tmp" && test -d "$tmp"
477279543Sru}  ||
477379543Sru{
477479543Sru  tmp=$TMPDIR/cs$$-$RANDOM
477579543Sru  (umask 077 && mkdir $tmp)
477679543Sru} ||
477779543Sru{
477879543Sru   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
477979543Sru   { (exit 1); exit 1; }
478079543Sru}
478179543Sru
478279543SruEOF
478379543Sru
478479543Srucat >>$CONFIG_STATUS <<EOF
478579543Sru
478679543Sru#
478779543Sru# CONFIG_FILES section.
478879543Sru#
478979543Sru
479079543Sru# No need to generate the scripts if there are no CONFIG_FILES.
479179543Sru# This happens for instance when ./config.status config.h
479279543Sruif test -n "\$CONFIG_FILES"; then
479379543Sru  # Protect against being on the right side of a sed subst in config.status.
479479543Sru  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
479579543Sru   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
479679543Srus,@SHELL@,$SHELL,;t t
479779543Srus,@exec_prefix@,$exec_prefix,;t t
479879543Srus,@prefix@,$prefix,;t t
479979543Srus,@program_transform_name@,$program_transform_name,;t t
480079543Srus,@bindir@,$bindir,;t t
480179543Srus,@sbindir@,$sbindir,;t t
480279543Srus,@libexecdir@,$libexecdir,;t t
480379543Srus,@datadir@,$datadir,;t t
480479543Srus,@sysconfdir@,$sysconfdir,;t t
480579543Srus,@sharedstatedir@,$sharedstatedir,;t t
480679543Srus,@localstatedir@,$localstatedir,;t t
480779543Srus,@libdir@,$libdir,;t t
480879543Srus,@includedir@,$includedir,;t t
480979543Srus,@oldincludedir@,$oldincludedir,;t t
481079543Srus,@infodir@,$infodir,;t t
481179543Srus,@mandir@,$mandir,;t t
481279543Srus,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
481379543Srus,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
481479543Srus,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
481579543Srus,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
481679543Srus,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
481779543Srus,@ECHO_C@,$ECHO_C,;t t
481879543Srus,@ECHO_N@,$ECHO_N,;t t
481979543Srus,@ECHO_T@,$ECHO_T,;t t
482079543Srus,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
482179543Srus,@DEFS@,$DEFS,;t t
482279543Srus,@LIBS@,$LIBS,;t t
482379543Srus,@top_builddir@,$top_builddir,;t t
482479543Srus,@CC@,$CC,;t t
482579543Srus,@CFLAGS@,$CFLAGS,;t t
482679543Srus,@LDFLAGS@,$LDFLAGS,;t t
482779543Srus,@CPPFLAGS@,$CPPFLAGS,;t t
482879543Srus,@ac_ct_CC@,$ac_ct_CC,;t t
482979543Srus,@EXEEXT@,$EXEEXT,;t t
483079543Srus,@OBJEXT@,$OBJEXT,;t t
483179543Srus,@CXX@,$CXX,;t t
483279543Srus,@CXXFLAGS@,$CXXFLAGS,;t t
483379543Srus,@ac_ct_CXX@,$ac_ct_CXX,;t t
483479543Srus,@TTYDEVDIRS@,$TTYDEVDIRS,;t t
483579543Srus,@LPR@,$LPR,;t t
483679543Srus,@LP@,$LP,;t t
483779543Srus,@LPQ@,$LPQ,;t t
483879543Srus,@PSPRINT@,$PSPRINT,;t t
483979543Srus,@DVIPRINT@,$DVIPRINT,;t t
484079543Srus,@PERLPATH@,$PERLPATH,;t t
484179543Srus,@YACC@,$YACC,;t t
484279543Srus,@RANLIB@,$RANLIB,;t t
484379543Srus,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
484479543Srus,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
484579543Srus,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
484679543Srus,@INSTALL_DATA@,$INSTALL_DATA,;t t
484779543Srus,@LN_S@,$LN_S,;t t
484879543Srus,@SH_SCRIPT_SED_CMD@,$SH_SCRIPT_SED_CMD,;t t
484979543Srus,@CPP@,$CPP,;t t
485079543Srus,@LIBM@,$LIBM,;t t
485179543Srus,@LIBOBJS@,$LIBOBJS,;t t
485279543Srus,@BROKEN_SPOOLER_FLAGS@,$BROKEN_SPOOLER_FLAGS,;t t
485379543Srus,@PAGE@,$PAGE,;t t
485479543Srus,@g@,$g,;t t
485579543Srus,@sys_tmac_prefix@,$sys_tmac_prefix,;t t
485679543Srus,@tmac_wrap@,$tmac_wrap,;t t
485718099SpstCEOF
485879543Sru
485918099SpstEOF
486055839Sasmodai
486179543Sru  cat >>$CONFIG_STATUS <<\EOF
486279543Sru  # Split the substitutions into bite-sized pieces for seds with
486379543Sru  # small command number limits, like on Digital OSF/1 and HP-UX.
486479543Sru  ac_max_sed_lines=48
486579543Sru  ac_sed_frag=1 # Number of current file.
486679543Sru  ac_beg=1 # First line for current file.
486779543Sru  ac_end=$ac_max_sed_lines # Line after last line for current file.
486879543Sru  ac_more_lines=:
486979543Sru  ac_sed_cmds=
487079543Sru  while $ac_more_lines; do
487179543Sru    if test $ac_beg -gt 1; then
487279543Sru      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
487355839Sasmodai    else
487479543Sru      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
487555839Sasmodai    fi
487679543Sru    if test ! -s $tmp/subs.frag; then
487779543Sru      ac_more_lines=false
487879543Sru    else
487979543Sru      # The purpose of the label and of the branching condition is to
488079543Sru      # speed up the sed processing (if there are no `@' at all, there
488179543Sru      # is no need to browse any of the substitutions).
488279543Sru      # These are the two extra sed commands mentioned above.
488379543Sru      (echo ':t
488479543Sru  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
488579543Sru      if test -z "$ac_sed_cmds"; then
488679543Sru  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
488779543Sru      else
488879543Sru  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
488979543Sru      fi
489079543Sru      ac_sed_frag=`expr $ac_sed_frag + 1`
489179543Sru      ac_beg=$ac_end
489279543Sru      ac_end=`expr $ac_end + $ac_max_sed_lines`
489379543Sru    fi
489479543Sru  done
489579543Sru  if test -z "$ac_sed_cmds"; then
489679543Sru    ac_sed_cmds=cat
489755839Sasmodai  fi
489879543Srufi # test -n "$CONFIG_FILES"
489955839Sasmodai
490018099SpstEOF
490179543Srucat >>$CONFIG_STATUS <<\EOF
490279543Srufor ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
490355839Sasmodai  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
490479543Sru  case $ac_file in
490579543Sru  - | *:- | *:-:* ) # input from stdin
490679543Sru        cat >$tmp/stdin
490779543Sru        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
490879543Sru        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
490979543Sru  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
491079543Sru        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
491179543Sru  * )   ac_file_in=$ac_file.in ;;
491218099Spst  esac
491318099Spst
491479543Sru  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
491579543Sru  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
491679543Sru         X"$ac_file" : 'X\(//\)[^/]' \| \
491779543Sru         X"$ac_file" : 'X\(//\)$' \| \
491879543Sru         X"$ac_file" : 'X\(/\)' \| \
491979543Sru         .     : '\(.\)' 2>/dev/null ||
492079543Sruecho X"$ac_file" |
492179543Sru    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
492279543Sru  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
492379543Sru  	  /^X\(\/\/\)$/{ s//\1/; q; }
492479543Sru  	  /^X\(\/\).*/{ s//\1/; q; }
492579543Sru  	  s/.*/./; q'`
492679543Sru  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
492779543Sru    { case "$ac_dir" in
492879543Sru  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
492979543Sru  *)                      as_incr_dir=.;;
493079543Sruesac
493179543Sruas_dummy="$ac_dir"
493279543Srufor as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
493379543Sru  case $as_mkdir_dir in
493479543Sru    # Skip DOS drivespec
493579543Sru    ?:) as_incr_dir=$as_mkdir_dir ;;
493679543Sru    *)
493779543Sru      as_incr_dir=$as_incr_dir/$as_mkdir_dir
493879543Sru      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
493979543Sru    ;;
494079543Sru  esac
494179543Srudone; }
494218099Spst
494379543Sru    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
494418099Spst    # A "../" for each directory in $ac_dir_suffix.
494579543Sru    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
494618099Spst  else
494718099Spst    ac_dir_suffix= ac_dots=
494818099Spst  fi
494918099Spst
495079543Sru  case $srcdir in
495179543Sru  .)  ac_srcdir=.
495279543Sru      if test -z "$ac_dots"; then
495379543Sru         ac_top_srcdir=.
495479543Sru      else
495579543Sru         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
495679543Sru      fi ;;
495779543Sru  [\\/]* | ?:[\\/]* )
495879543Sru      ac_srcdir=$srcdir$ac_dir_suffix;
495979543Sru      ac_top_srcdir=$srcdir ;;
496018099Spst  *) # Relative path.
496179543Sru    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
496279543Sru    ac_top_srcdir=$ac_dots$srcdir ;;
496318099Spst  esac
496418099Spst
496579543Sru  case $INSTALL in
496679543Sru  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
496779543Sru  *) ac_INSTALL=$ac_dots$INSTALL ;;
496818099Spst  esac
496955839Sasmodai
497079543Sru  if test x"$ac_file" != x-; then
497179543Sru    { echo "$as_me:4971: creating $ac_file" >&5
497279543Sruecho "$as_me: creating $ac_file" >&6;}
497379543Sru    rm -f "$ac_file"
497479543Sru  fi
497579543Sru  # Let's still pretend it is `configure' which instantiates (i.e., don't
497679543Sru  # use $as_me), people would be surprised to read:
497779543Sru  #    /* config.h.  Generated automatically by config.status.  */
497879543Sru  configure_input="Generated automatically from `echo $ac_file_in |
497979543Sru                                                 sed 's,.*/,,'` by configure."
498055839Sasmodai
498179543Sru  # First look for the input files in the build tree, otherwise in the
498279543Sru  # src tree.
498379543Sru  ac_file_inputs=`IFS=:
498479543Sru    for f in $ac_file_in; do
498579543Sru      case $f in
498679543Sru      -) echo $tmp/stdin ;;
498779543Sru      [\\/$]*)
498879543Sru         # Absolute (can't be DOS-style, as IFS=:)
498979543Sru         test -f "$f" || { { echo "$as_me:4989: error: cannot find input file: $f" >&5
499079543Sruecho "$as_me: error: cannot find input file: $f" >&2;}
499179543Sru   { (exit 1); exit 1; }; }
499279543Sru         echo $f;;
499379543Sru      *) # Relative
499479543Sru         if test -f "$f"; then
499579543Sru           # Build tree
499679543Sru           echo $f
499779543Sru         elif test -f "$srcdir/$f"; then
499879543Sru           # Source tree
499979543Sru           echo $srcdir/$f
500079543Sru         else
500179543Sru           # /dev/null tree
500279543Sru           { { echo "$as_me:5002: error: cannot find input file: $f" >&5
500379543Sruecho "$as_me: error: cannot find input file: $f" >&2;}
500479543Sru   { (exit 1); exit 1; }; }
500579543Sru         fi;;
500679543Sru      esac
500779543Sru    done` || { (exit 1); exit 1; }
500855839SasmodaiEOF
500979543Srucat >>$CONFIG_STATUS <<EOF
501079543Sru  sed "$ac_vpsub
501179543Sru$extrasub
501279543SruEOF
501379543Srucat >>$CONFIG_STATUS <<\EOF
501479543Sru:t
501579543Sru/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
501679543Srus,@configure_input@,$configure_input,;t t
501779543Srus,@srcdir@,$ac_srcdir,;t t
501879543Srus,@top_srcdir@,$ac_top_srcdir,;t t
501979543Srus,@INSTALL@,$ac_INSTALL,;t t
502079543Sru" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
502179543Sru  rm -f $tmp/stdin
502279543Sru  if test x"$ac_file" != x-; then
502379543Sru    mv $tmp/out $ac_file
502479543Sru  else
502579543Sru    cat $tmp/out
502679543Sru    rm -f $tmp/out
502779543Sru  fi
502818099Spst
502979543Srudone
503055839SasmodaiEOF
503118099Spst
503279543Srucat >>$CONFIG_STATUS <<\EOF
503379543Sru
503479543Sru{ (exit 0); exit 0; }
503518099SpstEOF
503618099Spstchmod +x $CONFIG_STATUS
503779543Sruac_clean_files=$ac_clean_files_save
503818099Spst
503979543Sru# configure is writing to config.log, and then calls config.status.
504079543Sru# config.status does its own redirection, appending to config.log.
504179543Sru# Unfortunately, on DOS this fails, as config.log is still kept open
504279543Sru# by configure, so config.status won't be able to write to it; its
504379543Sru# output is simply discarded.  So we exec the FD to /dev/null,
504479543Sru# effectively closing config.log, so it can be properly (re)opened and
504579543Sru# appended to by config.status.  When coming back to configure, we
504679543Sru# need to make the FD available again.
504779543Sruif test "$no_create" != yes; then
504879543Sru  ac_cs_success=:
504979543Sru  exec 5>/dev/null
505079543Sru  $SHELL $CONFIG_STATUS || ac_cs_success=false
505179543Sru  exec 5>>config.log
505279543Sru  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
505379543Sru  # would make configure fail if this is the last instruction.
505479543Sru  $ac_cs_success || { (exit 1); exit 1; }
505579543Srufi
505679543Sru
5057