1234949Sbapt#! /bin/sh 2268899Sbapt# From configure.in Revision: 1.19 . 3234949Sbapt# Guess values for system-dependent variables and create Makefiles. 4251143Sbapt# Generated by Autoconf 2.52.20121002. 5234949Sbapt# 6234949Sbapt# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 7234949Sbapt# Free Software Foundation, Inc. 8234949Sbapt# This configure script is free software; the Free Software Foundation 9234949Sbapt# gives unlimited permission to copy, distribute and modify it. 10234949Sbapt 11234949Sbapt# Avoid depending upon Character Ranges. 12234949Sbaptas_cr_letters='abcdefghijklmnopqrstuvwxyz' 13234949Sbaptas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14234949Sbaptas_cr_Letters=$as_cr_letters$as_cr_LETTERS 15234949Sbaptas_cr_digits='0123456789' 16234949Sbaptas_cr_alnum=$as_cr_Letters$as_cr_digits 17234949Sbapt 18234949Sbapt# Sed expression to map a string onto a valid variable name. 19234949Sbaptas_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 20234949Sbapt 21234949Sbapt# Sed expression to map a string onto a valid CPP name. 22234949Sbaptas_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 23234949Sbapt 24234949Sbapt# Be Bourne compatible 25234949Sbaptif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 26234949Sbapt emulate sh 27234949Sbapt NULLCMD=: 28234949Sbaptelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 29234949Sbapt set -o posix 30234949Sbaptfi 31234949Sbapt 32234949Sbapt# Name of the executable. 33234949Sbaptas_me=`echo "$0" |sed 's,.*[\\/],,'` 34234949Sbapt 35234949Sbaptif expr a : '\(a\)' >/dev/null 2>&1; then 36234949Sbapt as_expr=expr 37234949Sbaptelse 38234949Sbapt as_expr=false 39234949Sbaptfi 40234949Sbapt 41234949Sbaptrm -f conf$$ conf$$.exe conf$$.file 42234949Sbaptecho >conf$$.file 43234949Sbaptif ln -s conf$$.file conf$$ 2>/dev/null; then 44234949Sbapt # We could just check for DJGPP; but this test a) works b) is more generic 45234949Sbapt # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 46234949Sbapt if test -f conf$$.exe; then 47234949Sbapt # Don't use ln at all; we don't have any links 48234949Sbapt as_ln_s='cp -p' 49234949Sbapt else 50234949Sbapt as_ln_s='ln -s' 51234949Sbapt fi 52234949Sbaptelif ln conf$$.file conf$$ 2>/dev/null; then 53234949Sbapt as_ln_s=ln 54234949Sbaptelse 55234949Sbapt as_ln_s='cp -p' 56234949Sbaptfi 57234949Sbaptrm -f conf$$ conf$$.exe conf$$.file 58234949Sbapt 59234949Sbaptas_executable_p="test -f" 60234949Sbapt 61234949Sbapt# Support unset when possible. 62234949Sbaptif (FOO=FOO; unset FOO) >/dev/null 2>&1; then 63234949Sbapt as_unset=unset 64234949Sbaptelse 65234949Sbapt as_unset=false 66234949Sbaptfi 67234949Sbapt 68234949Sbapt# NLS nuisances. 69234949Sbapt$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 70234949Sbapt$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 71234949Sbapt$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 72234949Sbapt$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 73234949Sbapt$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 74234949Sbapt$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 75234949Sbapt$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 76234949Sbapt$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 77234949Sbapt 78234949Sbapt# IFS 79234949Sbapt# We need space, tab and new line, in precisely that order. 80234949Sbaptas_nl=' 81234949Sbapt' 82234949SbaptIFS=" $as_nl" 83234949Sbapt 84234949Sbapt# CDPATH. 85234949Sbapt$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 86234949Sbapt 87234949Sbapt# Name of the host. 88234949Sbapt# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 89234949Sbapt# so uname gets run too. 90234949Sbaptac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 91234949Sbapt 92234949Sbaptexec 6>&1 93234949Sbapt 94234949Sbapt# 95234949Sbapt# Initializations. 96234949Sbapt# 97234949Sbaptac_default_prefix=/usr/local 98234949Sbaptcross_compiling=no 99234949Sbaptsubdirs= 100234949SbaptMFLAGS= MAKEFLAGS= 101234949SbaptSHELL=${CONFIG_SHELL-/bin/sh} 102234949Sbapt 103234949Sbapt# Maximum number of lines to put in a shell here document. 104234949Sbapt# This variable seems obsolete. It should probably be removed, and 105234949Sbapt# only ac_max_sed_lines should be used. 106234949Sbapt: ${ac_max_here_lines=38} 107234949Sbapt 108234949Sbaptac_unique_file="main.c" 109234949Sbapt 110234949Sbapt# Initialize some variables set by options. 111234949Sbaptac_init_help= 112234949Sbaptac_init_version=false 113234949Sbapt# The variables have the same names as the options, with 114234949Sbapt# dashes changed to underlines. 115234949Sbaptcache_file=/dev/null 116234949Sbaptexec_prefix=NONE 117234949Sbaptno_create= 118234949Sbaptno_recursion= 119234949Sbaptprefix=NONE 120234949Sbaptprogram_prefix=NONE 121234949Sbaptprogram_suffix=NONE 122234949Sbaptprogram_transform_name=s,x,x, 123234949Sbaptsilent= 124234949Sbaptsite= 125234949Sbaptsrcdir= 126234949Sbaptverbose= 127234949Sbaptx_includes=NONE 128234949Sbaptx_libraries=NONE 129234949Sbapt 130234949Sbapt# Installation directory options. 131234949Sbapt# These are left unexpanded so users can "make install exec_prefix=/foo" 132234949Sbapt# and all the variables that are supposed to be based on exec_prefix 133234949Sbapt# by default will actually change. 134234949Sbapt# Use braces instead of parens because sh, perl, etc. also accept them. 135234949Sbaptbindir='${exec_prefix}/bin' 136234949Sbaptsbindir='${exec_prefix}/sbin' 137234949Sbaptlibexecdir='${exec_prefix}/libexec' 138251143Sbaptdatarootdir='${prefix}/share' 139251143Sbaptdatadir='${datarootdir}' 140234949Sbaptsysconfdir='${prefix}/etc' 141234949Sbaptsharedstatedir='${prefix}/com' 142234949Sbaptlocalstatedir='${prefix}/var' 143234949Sbaptlibdir='${exec_prefix}/lib' 144234949Sbaptincludedir='${prefix}/include' 145234949Sbaptoldincludedir='/usr/include' 146251143Sbaptinfodir='${datarootdir}/info' 147251143Sbaptmandir='${datarootdir}/man' 148234949Sbapt 149234949Sbapt# Identity of this package. 150234949SbaptPACKAGE_NAME= 151234949SbaptPACKAGE_TARNAME= 152234949SbaptPACKAGE_VERSION= 153234949SbaptPACKAGE_STRING= 154234949SbaptPACKAGE_BUGREPORT= 155234949Sbapt 156234949Sbaptac_prev= 157234949Sbaptfor ac_option 158234949Sbaptdo 159234949Sbapt # If the previous option needs an argument, assign it. 160234949Sbapt if test -n "$ac_prev"; then 161234949Sbapt eval "$ac_prev=\$ac_option" 162234949Sbapt ac_prev= 163234949Sbapt continue 164234949Sbapt fi 165234949Sbapt 166234949Sbapt ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 167234949Sbapt 168234949Sbapt # Accept the important Cygnus configure options, so we can diagnose typos. 169234949Sbapt 170234949Sbapt case $ac_option in 171234949Sbapt 172234949Sbapt -bindir | --bindir | --bindi | --bind | --bin | --bi) 173234949Sbapt ac_prev=bindir ;; 174234949Sbapt -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 175234949Sbapt bindir=$ac_optarg ;; 176234949Sbapt 177234949Sbapt -build | --build | --buil | --bui | --bu) 178234949Sbapt ac_prev=build_alias ;; 179234949Sbapt -build=* | --build=* | --buil=* | --bui=* | --bu=*) 180234949Sbapt build_alias=$ac_optarg ;; 181234949Sbapt 182234949Sbapt -cache-file | --cache-file | --cache-fil | --cache-fi \ 183234949Sbapt | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 184234949Sbapt ac_prev=cache_file ;; 185234949Sbapt -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 186234949Sbapt | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 187234949Sbapt cache_file=$ac_optarg ;; 188234949Sbapt 189234949Sbapt --config-cache | -C) 190234949Sbapt cache_file=config.cache ;; 191234949Sbapt 192234949Sbapt -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 193234949Sbapt ac_prev=datadir ;; 194234949Sbapt -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 195234949Sbapt | --da=*) 196234949Sbapt datadir=$ac_optarg ;; 197234949Sbapt 198251143Sbapt -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 199251143Sbapt | --dataroo | --dataro | --datar) 200251143Sbapt ac_prev=datarootdir ;; 201251143Sbapt -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 202251143Sbapt | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 203251143Sbapt datarootdir=$ac_optarg ;; 204251143Sbapt 205234949Sbapt -disable-* | --disable-*) 206234949Sbapt ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 207234949Sbapt # Reject names that are not valid shell variable names. 208234949Sbapt expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 209234949Sbapt { echo "$as_me: error: invalid feature name: $ac_feature" >&2 210234949Sbapt { (exit 1); exit 1; }; } 211234949Sbapt ac_feature=`echo $ac_feature | sed 's/-/_/g'` 212234949Sbapt eval "enable_$ac_feature=no" ;; 213234949Sbapt 214234949Sbapt -enable-* | --enable-*) 215234949Sbapt ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 216234949Sbapt # Reject names that are not valid shell variable names. 217234949Sbapt expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 218234949Sbapt { echo "$as_me: error: invalid feature name: $ac_feature" >&2 219234949Sbapt { (exit 1); exit 1; }; } 220234949Sbapt ac_feature=`echo $ac_feature | sed 's/-/_/g'` 221234949Sbapt case $ac_option in 222234949Sbapt *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 223234949Sbapt *) ac_optarg=yes ;; 224234949Sbapt esac 225234949Sbapt eval "enable_$ac_feature='$ac_optarg'" ;; 226234949Sbapt 227234949Sbapt -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 228234949Sbapt | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 229234949Sbapt | --exec | --exe | --ex) 230234949Sbapt ac_prev=exec_prefix ;; 231234949Sbapt -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 232234949Sbapt | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 233234949Sbapt | --exec=* | --exe=* | --ex=*) 234234949Sbapt exec_prefix=$ac_optarg ;; 235234949Sbapt 236234949Sbapt -gas | --gas | --ga | --g) 237234949Sbapt # Obsolete; use --with-gas. 238234949Sbapt with_gas=yes ;; 239234949Sbapt 240234949Sbapt -help | --help | --hel | --he | -h) 241234949Sbapt ac_init_help=long ;; 242234949Sbapt -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 243234949Sbapt ac_init_help=recursive ;; 244234949Sbapt -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 245234949Sbapt ac_init_help=short ;; 246234949Sbapt 247234949Sbapt -host | --host | --hos | --ho) 248234949Sbapt ac_prev=host_alias ;; 249234949Sbapt -host=* | --host=* | --hos=* | --ho=*) 250234949Sbapt host_alias=$ac_optarg ;; 251234949Sbapt 252234949Sbapt -includedir | --includedir | --includedi | --included | --include \ 253234949Sbapt | --includ | --inclu | --incl | --inc) 254234949Sbapt ac_prev=includedir ;; 255234949Sbapt -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 256234949Sbapt | --includ=* | --inclu=* | --incl=* | --inc=*) 257234949Sbapt includedir=$ac_optarg ;; 258234949Sbapt 259234949Sbapt -infodir | --infodir | --infodi | --infod | --info | --inf) 260234949Sbapt ac_prev=infodir ;; 261234949Sbapt -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 262234949Sbapt infodir=$ac_optarg ;; 263234949Sbapt 264234949Sbapt -libdir | --libdir | --libdi | --libd) 265234949Sbapt ac_prev=libdir ;; 266234949Sbapt -libdir=* | --libdir=* | --libdi=* | --libd=*) 267234949Sbapt libdir=$ac_optarg ;; 268234949Sbapt 269234949Sbapt -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 270234949Sbapt | --libexe | --libex | --libe) 271234949Sbapt ac_prev=libexecdir ;; 272234949Sbapt -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 273234949Sbapt | --libexe=* | --libex=* | --libe=*) 274234949Sbapt libexecdir=$ac_optarg ;; 275234949Sbapt 276234949Sbapt -localstatedir | --localstatedir | --localstatedi | --localstated \ 277234949Sbapt | --localstate | --localstat | --localsta | --localst \ 278234949Sbapt | --locals | --local | --loca | --loc | --lo) 279234949Sbapt ac_prev=localstatedir ;; 280234949Sbapt -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 281234949Sbapt | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 282234949Sbapt | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 283234949Sbapt localstatedir=$ac_optarg ;; 284234949Sbapt 285234949Sbapt -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 286234949Sbapt ac_prev=mandir ;; 287234949Sbapt -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 288234949Sbapt mandir=$ac_optarg ;; 289234949Sbapt 290234949Sbapt -nfp | --nfp | --nf) 291234949Sbapt # Obsolete; use --without-fp. 292234949Sbapt with_fp=no ;; 293234949Sbapt 294234949Sbapt -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 295234949Sbapt | --no-cr | --no-c) 296234949Sbapt no_create=yes ;; 297234949Sbapt 298234949Sbapt -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 299234949Sbapt | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 300234949Sbapt no_recursion=yes ;; 301234949Sbapt 302234949Sbapt -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 303234949Sbapt | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 304234949Sbapt | --oldin | --oldi | --old | --ol | --o) 305234949Sbapt ac_prev=oldincludedir ;; 306234949Sbapt -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 307234949Sbapt | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 308234949Sbapt | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 309234949Sbapt oldincludedir=$ac_optarg ;; 310234949Sbapt 311234949Sbapt -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 312234949Sbapt ac_prev=prefix ;; 313234949Sbapt -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 314234949Sbapt prefix=$ac_optarg ;; 315234949Sbapt 316234949Sbapt -program-prefix | --program-prefix | --program-prefi | --program-pref \ 317234949Sbapt | --program-pre | --program-pr | --program-p) 318234949Sbapt ac_prev=program_prefix ;; 319234949Sbapt -program-prefix=* | --program-prefix=* | --program-prefi=* \ 320234949Sbapt | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 321234949Sbapt program_prefix=$ac_optarg ;; 322234949Sbapt 323234949Sbapt -program-suffix | --program-suffix | --program-suffi | --program-suff \ 324234949Sbapt | --program-suf | --program-su | --program-s) 325234949Sbapt ac_prev=program_suffix ;; 326234949Sbapt -program-suffix=* | --program-suffix=* | --program-suffi=* \ 327234949Sbapt | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 328234949Sbapt program_suffix=$ac_optarg ;; 329234949Sbapt 330234949Sbapt -program-transform-name | --program-transform-name \ 331234949Sbapt | --program-transform-nam | --program-transform-na \ 332234949Sbapt | --program-transform-n | --program-transform- \ 333234949Sbapt | --program-transform | --program-transfor \ 334234949Sbapt | --program-transfo | --program-transf \ 335234949Sbapt | --program-trans | --program-tran \ 336234949Sbapt | --progr-tra | --program-tr | --program-t) 337234949Sbapt ac_prev=program_transform_name ;; 338234949Sbapt -program-transform-name=* | --program-transform-name=* \ 339234949Sbapt | --program-transform-nam=* | --program-transform-na=* \ 340234949Sbapt | --program-transform-n=* | --program-transform-=* \ 341234949Sbapt | --program-transform=* | --program-transfor=* \ 342234949Sbapt | --program-transfo=* | --program-transf=* \ 343234949Sbapt | --program-trans=* | --program-tran=* \ 344234949Sbapt | --progr-tra=* | --program-tr=* | --program-t=*) 345234949Sbapt program_transform_name=$ac_optarg ;; 346234949Sbapt 347234949Sbapt -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 348234949Sbapt | -silent | --silent | --silen | --sile | --sil) 349234949Sbapt silent=yes ;; 350234949Sbapt 351234949Sbapt -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 352234949Sbapt ac_prev=sbindir ;; 353234949Sbapt -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 354234949Sbapt | --sbi=* | --sb=*) 355234949Sbapt sbindir=$ac_optarg ;; 356234949Sbapt 357234949Sbapt -sharedstatedir | --sharedstatedir | --sharedstatedi \ 358234949Sbapt | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 359234949Sbapt | --sharedst | --shareds | --shared | --share | --shar \ 360234949Sbapt | --sha | --sh) 361234949Sbapt ac_prev=sharedstatedir ;; 362234949Sbapt -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 363234949Sbapt | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 364234949Sbapt | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 365234949Sbapt | --sha=* | --sh=*) 366234949Sbapt sharedstatedir=$ac_optarg ;; 367234949Sbapt 368234949Sbapt -site | --site | --sit) 369234949Sbapt ac_prev=site ;; 370234949Sbapt -site=* | --site=* | --sit=*) 371234949Sbapt site=$ac_optarg ;; 372234949Sbapt 373234949Sbapt -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 374234949Sbapt ac_prev=srcdir ;; 375234949Sbapt -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 376234949Sbapt srcdir=$ac_optarg ;; 377234949Sbapt 378234949Sbapt -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 379234949Sbapt | --syscon | --sysco | --sysc | --sys | --sy) 380234949Sbapt ac_prev=sysconfdir ;; 381234949Sbapt -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 382234949Sbapt | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 383234949Sbapt sysconfdir=$ac_optarg ;; 384234949Sbapt 385234949Sbapt -target | --target | --targe | --targ | --tar | --ta | --t) 386234949Sbapt ac_prev=target_alias ;; 387234949Sbapt -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 388234949Sbapt target_alias=$ac_optarg ;; 389234949Sbapt 390234949Sbapt -v | -verbose | --verbose | --verbos | --verbo | --verb) 391234949Sbapt verbose=yes ;; 392234949Sbapt 393234949Sbapt -version | --version | --versio | --versi | --vers | -V) 394234949Sbapt ac_init_version=: ;; 395234949Sbapt 396234949Sbapt -with-* | --with-*) 397234949Sbapt ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 398234949Sbapt # Reject names that are not valid shell variable names. 399234949Sbapt expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 400234949Sbapt { echo "$as_me: error: invalid package name: $ac_package" >&2 401234949Sbapt { (exit 1); exit 1; }; } 402234949Sbapt ac_package=`echo $ac_package| sed 's/-/_/g'` 403234949Sbapt case $ac_option in 404234949Sbapt *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 405234949Sbapt *) ac_optarg=yes ;; 406234949Sbapt esac 407234949Sbapt eval "with_$ac_package='$ac_optarg'" ;; 408234949Sbapt 409234949Sbapt -without-* | --without-*) 410234949Sbapt ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 411234949Sbapt # Reject names that are not valid shell variable names. 412234949Sbapt expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 413234949Sbapt { echo "$as_me: error: invalid package name: $ac_package" >&2 414234949Sbapt { (exit 1); exit 1; }; } 415234949Sbapt ac_package=`echo $ac_package | sed 's/-/_/g'` 416234949Sbapt eval "with_$ac_package=no" ;; 417234949Sbapt 418234949Sbapt --x) 419234949Sbapt # Obsolete; use --with-x. 420234949Sbapt with_x=yes ;; 421234949Sbapt 422234949Sbapt -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 423234949Sbapt | --x-incl | --x-inc | --x-in | --x-i) 424234949Sbapt ac_prev=x_includes ;; 425234949Sbapt -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 426234949Sbapt | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 427234949Sbapt x_includes=$ac_optarg ;; 428234949Sbapt 429234949Sbapt -x-libraries | --x-libraries | --x-librarie | --x-librari \ 430234949Sbapt | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 431234949Sbapt ac_prev=x_libraries ;; 432234949Sbapt -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 433234949Sbapt | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 434234949Sbapt x_libraries=$ac_optarg ;; 435234949Sbapt 436234949Sbapt -*) { echo "$as_me: error: unrecognized option: $ac_option 437234949SbaptTry \`$0 --help' for more information." >&2 438234949Sbapt { (exit 1); exit 1; }; } 439234949Sbapt ;; 440234949Sbapt 441234949Sbapt *=*) 442234949Sbapt ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 443234949Sbapt # Reject names that are not valid shell variable names. 444234949Sbapt expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 445234949Sbapt { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 446234949Sbapt { (exit 1); exit 1; }; } 447234949Sbapt ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 448234949Sbapt eval "$ac_envvar='$ac_optarg'" 449234949Sbapt export $ac_envvar ;; 450234949Sbapt 451234949Sbapt *) 452234949Sbapt # FIXME: should be removed in autoconf 3.0. 453234949Sbapt echo "$as_me: WARNING: you should use --build, --host, --target" >&2 454234949Sbapt expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 455234949Sbapt echo "$as_me: WARNING: invalid host type: $ac_option" >&2 456234949Sbapt : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 457234949Sbapt ;; 458234949Sbapt 459234949Sbapt esac 460234949Sbaptdone 461234949Sbapt 462234949Sbaptif test -n "$ac_prev"; then 463234949Sbapt ac_option=--`echo $ac_prev | sed 's/_/-/g'` 464234949Sbapt { echo "$as_me: error: missing argument to $ac_option" >&2 465234949Sbapt { (exit 1); exit 1; }; } 466234949Sbaptfi 467234949Sbapt 468234949Sbapt# Be sure to have absolute paths. 469234949Sbaptfor ac_var in exec_prefix prefix 470234949Sbaptdo 471234949Sbapt eval ac_val=$`echo $ac_var` 472234949Sbapt case $ac_val in 473234949Sbapt [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 474234949Sbapt *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 475234949Sbapt { (exit 1); exit 1; }; };; 476234949Sbapt esac 477234949Sbaptdone 478234949Sbapt 479234949Sbapt# Be sure to have absolute paths. 480251143Sbaptfor ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \ 481234949Sbapt localstatedir libdir includedir oldincludedir infodir mandir 482234949Sbaptdo 483234949Sbapt eval ac_val=$`echo $ac_var` 484234949Sbapt case $ac_val in 485234949Sbapt [\\/$]* | ?:[\\/]* ) ;; 486234949Sbapt *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 487234949Sbapt { (exit 1); exit 1; }; };; 488234949Sbapt esac 489234949Sbaptdone 490234949Sbapt 491234949Sbapt# There might be people who depend on the old broken behavior: `$host' 492234949Sbapt# used to hold the argument of --host etc. 493234949Sbaptbuild=$build_alias 494234949Sbapthost=$host_alias 495234949Sbapttarget=$target_alias 496234949Sbapt 497234949Sbapt# FIXME: should be removed in autoconf 3.0. 498234949Sbaptif test "x$host_alias" != x; then 499234949Sbapt if test "x$build_alias" = x; then 500234949Sbapt cross_compiling=maybe 501234949Sbapt echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 502234949Sbapt If a cross compiler is detected then cross compile mode will be used." >&2 503234949Sbapt elif test "x$build_alias" != "x$host_alias"; then 504234949Sbapt cross_compiling=yes 505234949Sbapt fi 506234949Sbaptfi 507234949Sbapt 508234949Sbaptac_tool_prefix= 509234949Sbapttest -n "$host_alias" && ac_tool_prefix=$host_alias- 510234949Sbapt 511234949Sbapttest "$silent" = yes && exec 6>/dev/null 512234949Sbapt 513234949Sbapt# Find the source files, if location was not specified. 514234949Sbaptif test -z "$srcdir"; then 515234949Sbapt ac_srcdir_defaulted=yes 516234949Sbapt # Try the directory containing this script, then its parent. 517234949Sbapt ac_prog=$0 518234949Sbapt ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` 519234949Sbapt test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 520234949Sbapt srcdir=$ac_confdir 521234949Sbapt if test ! -r $srcdir/$ac_unique_file; then 522234949Sbapt srcdir=.. 523234949Sbapt fi 524234949Sbaptelse 525234949Sbapt ac_srcdir_defaulted=no 526234949Sbaptfi 527234949Sbaptif test ! -r $srcdir/$ac_unique_file; then 528234949Sbapt if test "$ac_srcdir_defaulted" = yes; then 529234949Sbapt { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 530234949Sbapt { (exit 1); exit 1; }; } 531234949Sbapt else 532234949Sbapt { echo "$as_me: error: cannot find sources in $srcdir" >&2 533234949Sbapt { (exit 1); exit 1; }; } 534234949Sbapt fi 535234949Sbaptfi 536234949Sbaptsrcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 537234949Sbaptac_env_build_alias_set=${build_alias+set} 538234949Sbaptac_env_build_alias_value=$build_alias 539234949Sbaptac_cv_env_build_alias_set=${build_alias+set} 540234949Sbaptac_cv_env_build_alias_value=$build_alias 541234949Sbaptac_env_host_alias_set=${host_alias+set} 542234949Sbaptac_env_host_alias_value=$host_alias 543234949Sbaptac_cv_env_host_alias_set=${host_alias+set} 544234949Sbaptac_cv_env_host_alias_value=$host_alias 545234949Sbaptac_env_target_alias_set=${target_alias+set} 546234949Sbaptac_env_target_alias_value=$target_alias 547234949Sbaptac_cv_env_target_alias_set=${target_alias+set} 548234949Sbaptac_cv_env_target_alias_value=$target_alias 549234949Sbaptac_env_CC_set=${CC+set} 550234949Sbaptac_env_CC_value=$CC 551234949Sbaptac_cv_env_CC_set=${CC+set} 552234949Sbaptac_cv_env_CC_value=$CC 553234949Sbaptac_env_CFLAGS_set=${CFLAGS+set} 554234949Sbaptac_env_CFLAGS_value=$CFLAGS 555234949Sbaptac_cv_env_CFLAGS_set=${CFLAGS+set} 556234949Sbaptac_cv_env_CFLAGS_value=$CFLAGS 557234949Sbaptac_env_LDFLAGS_set=${LDFLAGS+set} 558234949Sbaptac_env_LDFLAGS_value=$LDFLAGS 559234949Sbaptac_cv_env_LDFLAGS_set=${LDFLAGS+set} 560234949Sbaptac_cv_env_LDFLAGS_value=$LDFLAGS 561234949Sbaptac_env_CPPFLAGS_set=${CPPFLAGS+set} 562234949Sbaptac_env_CPPFLAGS_value=$CPPFLAGS 563234949Sbaptac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 564234949Sbaptac_cv_env_CPPFLAGS_value=$CPPFLAGS 565234949Sbaptac_env_CPP_set=${CPP+set} 566234949Sbaptac_env_CPP_value=$CPP 567234949Sbaptac_cv_env_CPP_set=${CPP+set} 568234949Sbaptac_cv_env_CPP_value=$CPP 569234949Sbapt 570234949Sbapt# 571234949Sbapt# Report the --help message. 572234949Sbapt# 573234949Sbaptif test "$ac_init_help" = "long"; then 574234949Sbapt # Omit some internal or obsolete options to make the list less imposing. 575234949Sbapt # This message is too long to be a string in the A/UX 3.1 sh. 576234949Sbapt cat <<EOF 577234949Sbapt\`configure' configures this package to adapt to many kinds of systems. 578234949Sbapt 579234949SbaptUsage: $0 [OPTION]... [VAR=VALUE]... 580234949Sbapt 581234949SbaptTo assign environment variables (e.g., CC, CFLAGS...), specify them as 582234949SbaptVAR=VALUE. See below for descriptions of some of the useful variables. 583234949Sbapt 584234949SbaptDefaults for the options are specified in brackets. 585234949Sbapt 586234949SbaptConfiguration: 587234949Sbapt -h, --help display this help and exit 588234949Sbapt --help=short display options specific to this package 589234949Sbapt --help=recursive display the short help of all the included packages 590234949Sbapt -V, --version display version information and exit 591234949Sbapt -q, --quiet, --silent do not print \`checking...' messages 592234949Sbapt --cache-file=FILE cache test results in FILE [disabled] 593234949Sbapt -C, --config-cache alias for \`--cache-file=config.cache' 594234949Sbapt -n, --no-create do not create output files 595234949Sbapt --srcdir=DIR find the sources in DIR [configure dir or \`..'] 596234949Sbapt 597234949SbaptEOF 598234949Sbapt 599234949Sbapt cat <<EOF 600234949SbaptInstallation directories: 601234949Sbapt --prefix=PREFIX install architecture-independent files in PREFIX 602234949Sbapt [$ac_default_prefix] 603234949Sbapt --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 604234949Sbapt [PREFIX] 605234949Sbapt 606234949SbaptBy default, \`make install' will install all the files in 607234949Sbapt\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 608234949Sbaptan installation prefix other than \`$ac_default_prefix' using \`--prefix', 609234949Sbaptfor instance \`--prefix=\$HOME'. 610234949Sbapt 611234949SbaptFor better control, use the options below. 612234949Sbapt 613234949SbaptFine tuning of the installation directories: 614234949Sbapt --bindir=DIR user executables [EPREFIX/bin] 615234949Sbapt --sbindir=DIR system admin executables [EPREFIX/sbin] 616234949Sbapt --libexecdir=DIR program executables [EPREFIX/libexec] 617251143Sbapt --datarootdir=DIR read-only architecture-independent data [PREFIX/share] 618251143Sbapt --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 619234949Sbapt --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 620234949Sbapt --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 621234949Sbapt --localstatedir=DIR modifiable single-machine data [PREFIX/var] 622234949Sbapt --libdir=DIR object code libraries [EPREFIX/lib] 623234949Sbapt --includedir=DIR C header files [PREFIX/include] 624234949Sbapt --oldincludedir=DIR C header files for non-gcc [/usr/include] 625251143Sbapt --infodir=DIR info documentation [DATAROOTDIR/info] 626251143Sbapt --mandir=DIR man documentation [DATAROOTDIR/man] 627234949SbaptEOF 628234949Sbapt 629234949Sbapt cat <<\EOF 630234949Sbapt 631234949SbaptProgram names: 632234949Sbapt --program-prefix=PREFIX prepend PREFIX to installed program names 633234949Sbapt --program-suffix=SUFFIX append SUFFIX to installed program names 634234949Sbapt --program-transform-name=PROGRAM run sed PROGRAM on installed program names 635234949Sbapt 636234949SbaptSystem types: 637234949Sbapt --build=BUILD configure for building on BUILD [guessed] 638234949Sbapt --host=HOST build programs to run on HOST [BUILD] 639234949Sbapt --target=TARGET configure for building compilers for TARGET [HOST] 640234949SbaptEOF 641234949Sbaptfi 642234949Sbapt 643234949Sbaptif test -n "$ac_init_help"; then 644234949Sbapt 645234949Sbapt cat <<\EOF 646234949Sbapt 647234949SbaptOptional Packages: 648234949Sbapt --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 649234949Sbapt --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 650234949Sbapt 651234949SbaptOptional Features: 652234949Sbapt --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 653234949Sbapt --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 654234949Sbapt 655268899Sbapt --with-max-table-size=N set the maximum table size = N (no default) 656268899Sbapt --enable-btyacc turn on support for the btyacc backtracking 657268899Sbapt extension (default: no) 658234949Sbapt --with-warnings test: turn on gcc warnings 659251143Sbapt --disable-echo do not display "compiling" commands 660234949Sbapt --with-dmalloc test: use Gray Watson's dmalloc library 661234949Sbapt --with-dbmalloc test: use Conor Cahill's dbmalloc library 662234949Sbapt --with-valgrind test: use valgrind 663234949Sbapt --disable-leaks test: free permanent memory, analyze leaks 664234949Sbapt 665234949SbaptSome influential environment variables: 666234949Sbapt CC C compiler command 667234949Sbapt CFLAGS C compiler flags 668234949Sbapt LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 669234949Sbapt nonstandard directory <lib dir> 670234949Sbapt CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 671234949Sbapt headers in a nonstandard directory <include dir> 672234949Sbapt CPP C preprocessor 673234949Sbapt 674234949SbaptUse these variables to override the choices made by `configure' or to help 675234949Sbaptit to find libraries and programs with nonstandard names/locations. 676234949Sbapt 677234949SbaptEOF 678234949Sbaptfi 679234949Sbapt 680234949Sbaptif test "$ac_init_help" = "recursive"; then 681234949Sbapt # If there are subdirs, report their specific --help. 682234949Sbapt ac_popdir=`pwd` 683234949Sbapt for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue 684234949Sbapt cd $ac_subdir 685234949Sbapt # A "../" for each directory in /$ac_subdir. 686234949Sbapt ac_dots=`echo $ac_subdir | 687234949Sbapt sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 688234949Sbapt 689234949Sbapt case $srcdir in 690234949Sbapt .) # No --srcdir option. We are building in place. 691234949Sbapt ac_sub_srcdir=$srcdir ;; 692234949Sbapt [\\/]* | ?:[\\/]* ) # Absolute path. 693234949Sbapt ac_sub_srcdir=$srcdir/$ac_subdir ;; 694234949Sbapt *) # Relative path. 695234949Sbapt ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; 696234949Sbapt esac 697234949Sbapt 698234949Sbapt # Check for guested configure; otherwise get Cygnus style configure. 699234949Sbapt if test -f $ac_sub_srcdir/configure.gnu; then 700234949Sbapt echo 701234949Sbapt $SHELL $ac_sub_srcdir/configure.gnu --help=recursive 702234949Sbapt elif test -f $ac_sub_srcdir/configure; then 703234949Sbapt echo 704234949Sbapt $SHELL $ac_sub_srcdir/configure --help=recursive 705234949Sbapt elif test -f $ac_sub_srcdir/configure.ac || 706234949Sbapt test -f $ac_sub_srcdir/configure.in; then 707234949Sbapt echo 708234949Sbapt $ac_configure --help 709234949Sbapt else 710234949Sbapt echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 711234949Sbapt fi 712234949Sbapt cd $ac_popdir 713234949Sbapt done 714234949Sbaptfi 715234949Sbapt 716234949Sbapttest -n "$ac_init_help" && exit 0 717234949Sbaptif $ac_init_version; then 718234949Sbapt cat <<\EOF 719234949Sbapt 720234949SbaptCopyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 721234949SbaptFree Software Foundation, Inc. 722234949SbaptThis configure script is free software; the Free Software Foundation 723234949Sbaptgives unlimited permission to copy, distribute and modify it. 724234949SbaptEOF 725234949Sbapt exit 0 726234949Sbaptfi 727234949Sbaptexec 5>config.log 728234949Sbaptcat >&5 <<EOF 729234949SbaptThis file contains any messages produced by compilers while 730234949Sbaptrunning configure, to aid debugging if configure makes a mistake. 731234949Sbapt 732234949SbaptIt was created by $as_me, which was 733251143Sbaptgenerated by GNU Autoconf 2.52.20121002. Invocation command line was 734234949Sbapt 735234949Sbapt $ $0 $@ 736234949Sbapt 737234949SbaptEOF 738234949Sbapt{ 739234949Sbaptcat <<_ASUNAME 740234949Sbapt## ---------- ## 741234949Sbapt## Platform. ## 742234949Sbapt## ---------- ## 743234949Sbapt 744234949Sbapthostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 745234949Sbaptuname -m = `(uname -m) 2>/dev/null || echo unknown` 746234949Sbaptuname -r = `(uname -r) 2>/dev/null || echo unknown` 747234949Sbaptuname -s = `(uname -s) 2>/dev/null || echo unknown` 748234949Sbaptuname -v = `(uname -v) 2>/dev/null || echo unknown` 749234949Sbapt 750234949Sbapt/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 751234949Sbapt/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 752234949Sbapt 753234949Sbapt/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 754234949Sbapt/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 755234949Sbapt/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 756234949Sbapthostinfo = `(hostinfo) 2>/dev/null || echo unknown` 757234949Sbapt/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 758234949Sbapt/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 759234949Sbapt/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 760234949Sbapt 761234949SbaptPATH = $PATH 762234949Sbapt 763234949Sbapt_ASUNAME 764234949Sbapt} >&5 765234949Sbapt 766234949Sbaptcat >&5 <<EOF 767234949Sbapt## ------------ ## 768234949Sbapt## Core tests. ## 769234949Sbapt## ------------ ## 770234949Sbapt 771234949SbaptEOF 772234949Sbapt 773234949Sbapt# Keep a trace of the command line. 774234949Sbapt# Strip out --no-create and --no-recursion so they do not pile up. 775234949Sbapt# Also quote any args containing shell meta-characters. 776234949Sbaptac_configure_args= 777234949Sbaptac_sep= 778234949Sbaptfor ac_arg 779234949Sbaptdo 780234949Sbapt case $ac_arg in 781234949Sbapt -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 782234949Sbapt | --no-cr | --no-c) ;; 783234949Sbapt -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 784234949Sbapt | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 785234949Sbapt *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 786234949Sbapt ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 787234949Sbapt ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 788234949Sbapt ac_sep=" " ;; 789234949Sbapt *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" 790234949Sbapt ac_sep=" " ;; 791234949Sbapt esac 792234949Sbapt # Get rid of the leading space. 793234949Sbaptdone 794234949Sbapt 795234949Sbapt# When interrupted or exit'd, cleanup temporary files, and complete 796234949Sbapt# config.log. We remove comments because anyway the quotes in there 797234949Sbapt# would cause problems or look ugly. 798234949Sbapttrap 'exit_status=$? 799234949Sbapt # Save into config.log some information that might help in debugging. 800234949Sbapt echo >&5 801234949Sbapt echo "## ----------------- ##" >&5 802234949Sbapt echo "## Cache variables. ##" >&5 803234949Sbapt echo "## ----------------- ##" >&5 804234949Sbapt echo >&5 805234949Sbapt # The following way of writing the cache mishandles newlines in values, 806234949Sbapt{ 807234949Sbapt (set) 2>&1 | 808234949Sbapt case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 809234949Sbapt *ac_space=\ *) 810234949Sbapt sed -n \ 811234949Sbapt "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 812234949Sbapt s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 813234949Sbapt ;; 814234949Sbapt *) 815234949Sbapt sed -n \ 816234949Sbapt "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 817234949Sbapt ;; 818234949Sbapt esac; 819234949Sbapt} >&5 820234949Sbapt sed "/^$/d" confdefs.h >conftest.log 821234949Sbapt if test -s conftest.log; then 822234949Sbapt echo >&5 823234949Sbapt echo "## ------------ ##" >&5 824234949Sbapt echo "## confdefs.h. ##" >&5 825234949Sbapt echo "## ------------ ##" >&5 826234949Sbapt echo >&5 827234949Sbapt cat conftest.log >&5 828234949Sbapt fi 829234949Sbapt (echo; echo) >&5 830234949Sbapt test "$ac_signal" != 0 && 831234949Sbapt echo "$as_me: caught signal $ac_signal" >&5 832234949Sbapt echo "$as_me: exit $exit_status" >&5 833234949Sbapt rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && 834234949Sbapt exit $exit_status 835234949Sbapt ' 0 836234949Sbaptfor ac_signal in 1 2 13 15; do 837234949Sbapt trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 838234949Sbaptdone 839234949Sbaptac_signal=0 840234949Sbapt 841234949Sbapt# confdefs.h avoids OS command line length limits that DEFS can exceed. 842234949Sbaptrm -rf conftest* confdefs.h 843234949Sbapt# AIX cpp loses on an empty file, so make sure it contains at least a newline. 844234949Sbaptecho >confdefs.h 845234949Sbapt 846234949Sbapt# Let the site file select an alternate cache file if it wants to. 847234949Sbapt# Prefer explicitly selected file to automatically selected ones. 848234949Sbaptif test -z "$CONFIG_SITE"; then 849234949Sbapt if test "x$prefix" != xNONE; then 850234949Sbapt CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 851234949Sbapt else 852234949Sbapt CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 853234949Sbapt fi 854234949Sbaptfi 855234949Sbaptfor ac_site_file in $CONFIG_SITE; do 856234949Sbapt if test -r "$ac_site_file"; then 857268899Sbapt { echo "$as_me:857: loading site script $ac_site_file" >&5 858234949Sbaptecho "$as_me: loading site script $ac_site_file" >&6;} 859234949Sbapt cat "$ac_site_file" >&5 860234949Sbapt . "$ac_site_file" 861234949Sbapt fi 862234949Sbaptdone 863234949Sbapt 864234949Sbaptif test -r "$cache_file"; then 865234949Sbapt # Some versions of bash will fail to source /dev/null (special 866234949Sbapt # files actually), so we avoid doing that. 867234949Sbapt if test -f "$cache_file"; then 868268899Sbapt { echo "$as_me:868: loading cache $cache_file" >&5 869234949Sbaptecho "$as_me: loading cache $cache_file" >&6;} 870234949Sbapt case $cache_file in 871234949Sbapt [\\/]* | ?:[\\/]* ) . $cache_file;; 872234949Sbapt *) . ./$cache_file;; 873234949Sbapt esac 874234949Sbapt fi 875234949Sbaptelse 876268899Sbapt { echo "$as_me:876: creating cache $cache_file" >&5 877234949Sbaptecho "$as_me: creating cache $cache_file" >&6;} 878234949Sbapt >$cache_file 879234949Sbaptfi 880234949Sbapt 881234949Sbapt# Check that the precious variables saved in the cache have kept the same 882234949Sbapt# value. 883234949Sbaptac_cache_corrupted=false 884234949Sbaptfor ac_var in `(set) 2>&1 | 885234949Sbapt sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 886234949Sbapt eval ac_old_set=\$ac_cv_env_${ac_var}_set 887234949Sbapt eval ac_new_set=\$ac_env_${ac_var}_set 888234949Sbapt eval ac_old_val="\$ac_cv_env_${ac_var}_value" 889234949Sbapt eval ac_new_val="\$ac_env_${ac_var}_value" 890234949Sbapt case $ac_old_set,$ac_new_set in 891234949Sbapt set,) 892268899Sbapt { echo "$as_me:892: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 893234949Sbaptecho "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 894234949Sbapt ac_cache_corrupted=: ;; 895234949Sbapt ,set) 896268899Sbapt { echo "$as_me:896: error: \`$ac_var' was not set in the previous run" >&5 897234949Sbaptecho "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 898234949Sbapt ac_cache_corrupted=: ;; 899234949Sbapt ,);; 900234949Sbapt *) 901234949Sbapt if test "x$ac_old_val" != "x$ac_new_val"; then 902268899Sbapt { echo "$as_me:902: error: \`$ac_var' has changed since the previous run:" >&5 903234949Sbaptecho "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 904268899Sbapt { echo "$as_me:904: former value: $ac_old_val" >&5 905234949Sbaptecho "$as_me: former value: $ac_old_val" >&2;} 906268899Sbapt { echo "$as_me:906: current value: $ac_new_val" >&5 907234949Sbaptecho "$as_me: current value: $ac_new_val" >&2;} 908234949Sbapt ac_cache_corrupted=: 909234949Sbapt fi;; 910234949Sbapt esac 911234949Sbapt # Pass precious variables to config.status. It doesn't matter if 912234949Sbapt # we pass some twice (in addition to the command line arguments). 913234949Sbapt if test "$ac_new_set" = set; then 914234949Sbapt case $ac_new_val in 915234949Sbapt *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 916234949Sbapt ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` 917234949Sbapt ac_configure_args="$ac_configure_args '$ac_arg'" 918234949Sbapt ;; 919234949Sbapt *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" 920234949Sbapt ;; 921234949Sbapt esac 922234949Sbapt fi 923234949Sbaptdone 924234949Sbaptif $ac_cache_corrupted; then 925268899Sbapt { echo "$as_me:925: error: changes in the environment can compromise the build" >&5 926234949Sbaptecho "$as_me: error: changes in the environment can compromise the build" >&2;} 927268899Sbapt { { echo "$as_me:927: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 928234949Sbaptecho "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 929234949Sbapt { (exit 1); exit 1; }; } 930234949Sbaptfi 931234949Sbapt 932234949Sbaptac_ext=c 933234949Sbaptac_cpp='$CPP $CPPFLAGS' 934234949Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 935234949Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 936234949Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu 937234949Sbaptac_main_return=return 938234949Sbapt 939234949Sbaptcase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 940234949Sbapt *c*,-n*) ECHO_N= ECHO_C=' 941234949Sbapt' ECHO_T=' ' ;; 942234949Sbapt *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 943234949Sbapt *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 944234949Sbaptesac 945234949Sbaptecho "#! $SHELL" >conftest.sh 946234949Sbaptecho "exit 0" >>conftest.sh 947234949Sbaptchmod +x conftest.sh 948268899Sbaptif { (echo "$as_me:948: PATH=\".;.\"; conftest.sh") >&5 949234949Sbapt (PATH=".;."; conftest.sh) 2>&5 950234949Sbapt ac_status=$? 951268899Sbapt echo "$as_me:951: \$? = $ac_status" >&5 952234949Sbapt (exit $ac_status); }; then 953234949Sbapt ac_path_separator=';' 954234949Sbaptelse 955234949Sbapt ac_path_separator=: 956234949Sbaptfi 957234949SbaptPATH_SEPARATOR="$ac_path_separator" 958234949Sbaptrm -f conftest.sh 959234949Sbapt 960234949Sbaptac_config_headers="$ac_config_headers config.h:config_h.in" 961234949Sbapt 962234949Sbaptac_aux_dir= 963234949Sbaptfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 964234949Sbapt if test -f $ac_dir/install-sh; then 965234949Sbapt ac_aux_dir=$ac_dir 966234949Sbapt ac_install_sh="$ac_aux_dir/install-sh -c" 967234949Sbapt break 968234949Sbapt elif test -f $ac_dir/install.sh; then 969234949Sbapt ac_aux_dir=$ac_dir 970234949Sbapt ac_install_sh="$ac_aux_dir/install.sh -c" 971234949Sbapt break 972234949Sbapt elif test -f $ac_dir/shtool; then 973234949Sbapt ac_aux_dir=$ac_dir 974234949Sbapt ac_install_sh="$ac_aux_dir/shtool install -c" 975234949Sbapt break 976234949Sbapt fi 977234949Sbaptdone 978234949Sbaptif test -z "$ac_aux_dir"; then 979268899Sbapt { { echo "$as_me:979: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 980234949Sbaptecho "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 981234949Sbapt { (exit 1); exit 1; }; } 982234949Sbaptfi 983234949Sbaptac_config_guess="$SHELL $ac_aux_dir/config.guess" 984234949Sbaptac_config_sub="$SHELL $ac_aux_dir/config.sub" 985234949Sbaptac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 986234949Sbapt 987234949Sbapt# Make sure we can run config.sub. 988234949Sbapt$ac_config_sub sun4 >/dev/null 2>&1 || 989268899Sbapt { { echo "$as_me:989: error: cannot run $ac_config_sub" >&5 990234949Sbaptecho "$as_me: error: cannot run $ac_config_sub" >&2;} 991234949Sbapt { (exit 1); exit 1; }; } 992234949Sbapt 993268899Sbaptecho "$as_me:993: checking build system type" >&5 994234949Sbaptecho $ECHO_N "checking build system type... $ECHO_C" >&6 995234949Sbaptif test "${ac_cv_build+set}" = set; then 996234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 997234949Sbaptelse 998234949Sbapt ac_cv_build_alias=$build_alias 999234949Sbapttest -z "$ac_cv_build_alias" && 1000234949Sbapt ac_cv_build_alias=`$ac_config_guess` 1001234949Sbapttest -z "$ac_cv_build_alias" && 1002268899Sbapt { { echo "$as_me:1002: error: cannot guess build type; you must specify one" >&5 1003234949Sbaptecho "$as_me: error: cannot guess build type; you must specify one" >&2;} 1004234949Sbapt { (exit 1); exit 1; }; } 1005234949Sbaptac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1006268899Sbapt { { echo "$as_me:1006: error: $ac_config_sub $ac_cv_build_alias failed." >&5 1007234949Sbaptecho "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} 1008234949Sbapt { (exit 1); exit 1; }; } 1009234949Sbapt 1010234949Sbaptfi 1011268899Sbaptecho "$as_me:1011: result: $ac_cv_build" >&5 1012234949Sbaptecho "${ECHO_T}$ac_cv_build" >&6 1013234949Sbaptbuild=$ac_cv_build 1014234949Sbaptbuild_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1015234949Sbaptbuild_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1016234949Sbaptbuild_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1017234949Sbapt 1018268899Sbaptecho "$as_me:1018: checking host system type" >&5 1019234949Sbaptecho $ECHO_N "checking host system type... $ECHO_C" >&6 1020234949Sbaptif test "${ac_cv_host+set}" = set; then 1021234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1022234949Sbaptelse 1023234949Sbapt ac_cv_host_alias=$host_alias 1024234949Sbapttest -z "$ac_cv_host_alias" && 1025234949Sbapt ac_cv_host_alias=$ac_cv_build_alias 1026234949Sbaptac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1027268899Sbapt { { echo "$as_me:1027: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1028234949Sbaptecho "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1029234949Sbapt { (exit 1); exit 1; }; } 1030234949Sbapt 1031234949Sbaptfi 1032268899Sbaptecho "$as_me:1032: result: $ac_cv_host" >&5 1033234949Sbaptecho "${ECHO_T}$ac_cv_host" >&6 1034234949Sbapthost=$ac_cv_host 1035234949Sbapthost_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1036234949Sbapthost_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1037234949Sbapthost_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1038234949Sbapt 1039234949Sbaptif test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then 1040268899Sbapt echo "$as_me:1040: checking target system type" >&5 1041234949Sbaptecho $ECHO_N "checking target system type... $ECHO_C" >&6 1042234949Sbaptif test "${ac_cv_target+set}" = set; then 1043234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1044234949Sbaptelse 1045234949Sbapt ac_cv_target_alias=$target_alias 1046234949Sbapttest "x$ac_cv_target_alias" = "x" && 1047234949Sbapt ac_cv_target_alias=$ac_cv_host_alias 1048234949Sbaptac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1049268899Sbapt { { echo "$as_me:1049: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1050234949Sbaptecho "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1051234949Sbapt { (exit 1); exit 1; }; } 1052234949Sbapt 1053234949Sbaptfi 1054268899Sbaptecho "$as_me:1054: result: $ac_cv_target" >&5 1055234949Sbaptecho "${ECHO_T}$ac_cv_target" >&6 1056234949Sbapttarget=$ac_cv_target 1057234949Sbapttarget_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1058234949Sbapttarget_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1059234949Sbapttarget_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1060234949Sbapt 1061234949Sbapt# The aliases save the names the user supplied, while $host etc. 1062234949Sbapt# will get canonicalized. 1063234949Sbapttest -n "$target_alias" && 1064234949Sbapt test "$program_prefix$program_suffix$program_transform_name" = \ 1065234949Sbapt NONENONEs,x,x, && 1066234949Sbapt program_prefix=${target_alias}- 1067234949Sbapt system_name="$host_os" 1068234949Sbaptelse 1069234949Sbapt system_name="`(uname -s -r) 2>/dev/null`" 1070234949Sbapt if test -z "$system_name" ; then 1071234949Sbapt system_name="`(hostname) 2>/dev/null`" 1072234949Sbapt fi 1073234949Sbaptfi 1074251143Sbapttest -n "$system_name" && 1075251143Sbaptcat >>confdefs.h <<EOF 1076234949Sbapt#define SYSTEM_NAME "$system_name" 1077234949SbaptEOF 1078234949Sbapt 1079234949Sbaptif test "${cf_cv_system_name+set}" = set; then 1080234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1081234949Sbaptelse 1082234949Sbapt cf_cv_system_name="$system_name" 1083234949Sbaptfi 1084234949Sbapt 1085234949Sbapttest -z "$system_name" && system_name="$cf_cv_system_name" 1086268899Sbapttest -n "$cf_cv_system_name" && echo "$as_me:1086: result: Configuring for $cf_cv_system_name" >&5 1087234949Sbaptecho "${ECHO_T}Configuring for $cf_cv_system_name" >&6 1088234949Sbapt 1089234949Sbaptif test ".$system_name" != ".$cf_cv_system_name" ; then 1090268899Sbapt echo "$as_me:1090: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5 1091234949Sbaptecho "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6 1092268899Sbapt { { echo "$as_me:1092: error: \"Please remove config.cache and try again.\"" >&5 1093234949Sbaptecho "$as_me: error: \"Please remove config.cache and try again.\"" >&2;} 1094234949Sbapt { (exit 1); exit 1; }; } 1095234949Sbaptfi 1096234949Sbapt 1097234949Sbapttest "$program_prefix" != NONE && 1098234949Sbapt program_transform_name="s,^,$program_prefix,;$program_transform_name" 1099234949Sbapt# Use a double $ so make ignores it. 1100234949Sbapttest "$program_suffix" != NONE && 1101234949Sbapt program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1102234949Sbapt# Double any \ or $. echo might interpret backslashes. 1103234949Sbapt# By default was `s,x,x', remove it if useless. 1104234949Sbaptcat <<\_ACEOF >conftest.sed 1105234949Sbapts/[\\$]/&&/g;s/;s,x,x,$// 1106234949Sbapt_ACEOF 1107234949Sbaptprogram_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1108234949Sbaptrm conftest.sed 1109234949Sbapt 1110234949Sbaptac_ext=c 1111234949Sbaptac_cpp='$CPP $CPPFLAGS' 1112234949Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1113234949Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1114234949Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu 1115234949Sbaptac_main_return=return 1116234949Sbaptif test -n "$ac_tool_prefix"; then 1117234949Sbapt # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1118234949Sbaptset dummy ${ac_tool_prefix}gcc; ac_word=$2 1119268899Sbaptecho "$as_me:1119: checking for $ac_word" >&5 1120234949Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1121234949Sbaptif test "${ac_cv_prog_CC+set}" = set; then 1122234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1123234949Sbaptelse 1124234949Sbapt if test -n "$CC"; then 1125234949Sbapt ac_cv_prog_CC="$CC" # Let the user override the test. 1126234949Sbaptelse 1127234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 1128234949Sbaptac_dummy="$PATH" 1129234949Sbaptfor ac_dir in $ac_dummy; do 1130234949Sbapt IFS=$ac_save_IFS 1131234949Sbapt test -z "$ac_dir" && ac_dir=. 1132234949Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 1133234949Sbaptac_cv_prog_CC="${ac_tool_prefix}gcc" 1134268899Sbaptecho "$as_me:1134: found $ac_dir/$ac_word" >&5 1135234949Sbaptbreak 1136234949Sbaptdone 1137234949Sbapt 1138234949Sbaptfi 1139234949Sbaptfi 1140234949SbaptCC=$ac_cv_prog_CC 1141234949Sbaptif test -n "$CC"; then 1142268899Sbapt echo "$as_me:1142: result: $CC" >&5 1143234949Sbaptecho "${ECHO_T}$CC" >&6 1144234949Sbaptelse 1145268899Sbapt echo "$as_me:1145: result: no" >&5 1146234949Sbaptecho "${ECHO_T}no" >&6 1147234949Sbaptfi 1148234949Sbapt 1149234949Sbaptfi 1150234949Sbaptif test -z "$ac_cv_prog_CC"; then 1151234949Sbapt ac_ct_CC=$CC 1152234949Sbapt # Extract the first word of "gcc", so it can be a program name with args. 1153234949Sbaptset dummy gcc; ac_word=$2 1154268899Sbaptecho "$as_me:1154: checking for $ac_word" >&5 1155234949Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1156234949Sbaptif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1157234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1158234949Sbaptelse 1159234949Sbapt if test -n "$ac_ct_CC"; then 1160234949Sbapt ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1161234949Sbaptelse 1162234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 1163234949Sbaptac_dummy="$PATH" 1164234949Sbaptfor ac_dir in $ac_dummy; do 1165234949Sbapt IFS=$ac_save_IFS 1166234949Sbapt test -z "$ac_dir" && ac_dir=. 1167234949Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 1168234949Sbaptac_cv_prog_ac_ct_CC="gcc" 1169268899Sbaptecho "$as_me:1169: found $ac_dir/$ac_word" >&5 1170234949Sbaptbreak 1171234949Sbaptdone 1172234949Sbapt 1173234949Sbaptfi 1174234949Sbaptfi 1175234949Sbaptac_ct_CC=$ac_cv_prog_ac_ct_CC 1176234949Sbaptif test -n "$ac_ct_CC"; then 1177268899Sbapt echo "$as_me:1177: result: $ac_ct_CC" >&5 1178234949Sbaptecho "${ECHO_T}$ac_ct_CC" >&6 1179234949Sbaptelse 1180268899Sbapt echo "$as_me:1180: result: no" >&5 1181234949Sbaptecho "${ECHO_T}no" >&6 1182234949Sbaptfi 1183234949Sbapt 1184234949Sbapt CC=$ac_ct_CC 1185234949Sbaptelse 1186234949Sbapt CC="$ac_cv_prog_CC" 1187234949Sbaptfi 1188234949Sbapt 1189234949Sbaptif test -z "$CC"; then 1190234949Sbapt if test -n "$ac_tool_prefix"; then 1191234949Sbapt # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1192234949Sbaptset dummy ${ac_tool_prefix}cc; ac_word=$2 1193268899Sbaptecho "$as_me:1193: checking for $ac_word" >&5 1194234949Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1195234949Sbaptif test "${ac_cv_prog_CC+set}" = set; then 1196234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1197234949Sbaptelse 1198234949Sbapt if test -n "$CC"; then 1199234949Sbapt ac_cv_prog_CC="$CC" # Let the user override the test. 1200234949Sbaptelse 1201234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 1202234949Sbaptac_dummy="$PATH" 1203234949Sbaptfor ac_dir in $ac_dummy; do 1204234949Sbapt IFS=$ac_save_IFS 1205234949Sbapt test -z "$ac_dir" && ac_dir=. 1206234949Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 1207234949Sbaptac_cv_prog_CC="${ac_tool_prefix}cc" 1208268899Sbaptecho "$as_me:1208: found $ac_dir/$ac_word" >&5 1209234949Sbaptbreak 1210234949Sbaptdone 1211234949Sbapt 1212234949Sbaptfi 1213234949Sbaptfi 1214234949SbaptCC=$ac_cv_prog_CC 1215234949Sbaptif test -n "$CC"; then 1216268899Sbapt echo "$as_me:1216: result: $CC" >&5 1217234949Sbaptecho "${ECHO_T}$CC" >&6 1218234949Sbaptelse 1219268899Sbapt echo "$as_me:1219: result: no" >&5 1220234949Sbaptecho "${ECHO_T}no" >&6 1221234949Sbaptfi 1222234949Sbapt 1223234949Sbaptfi 1224234949Sbaptif test -z "$ac_cv_prog_CC"; then 1225234949Sbapt ac_ct_CC=$CC 1226234949Sbapt # Extract the first word of "cc", so it can be a program name with args. 1227234949Sbaptset dummy cc; ac_word=$2 1228268899Sbaptecho "$as_me:1228: checking for $ac_word" >&5 1229234949Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1230234949Sbaptif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1231234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1232234949Sbaptelse 1233234949Sbapt if test -n "$ac_ct_CC"; then 1234234949Sbapt ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1235234949Sbaptelse 1236234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 1237234949Sbaptac_dummy="$PATH" 1238234949Sbaptfor ac_dir in $ac_dummy; do 1239234949Sbapt IFS=$ac_save_IFS 1240234949Sbapt test -z "$ac_dir" && ac_dir=. 1241234949Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 1242234949Sbaptac_cv_prog_ac_ct_CC="cc" 1243268899Sbaptecho "$as_me:1243: found $ac_dir/$ac_word" >&5 1244234949Sbaptbreak 1245234949Sbaptdone 1246234949Sbapt 1247234949Sbaptfi 1248234949Sbaptfi 1249234949Sbaptac_ct_CC=$ac_cv_prog_ac_ct_CC 1250234949Sbaptif test -n "$ac_ct_CC"; then 1251268899Sbapt echo "$as_me:1251: result: $ac_ct_CC" >&5 1252234949Sbaptecho "${ECHO_T}$ac_ct_CC" >&6 1253234949Sbaptelse 1254268899Sbapt echo "$as_me:1254: result: no" >&5 1255234949Sbaptecho "${ECHO_T}no" >&6 1256234949Sbaptfi 1257234949Sbapt 1258234949Sbapt CC=$ac_ct_CC 1259234949Sbaptelse 1260234949Sbapt CC="$ac_cv_prog_CC" 1261234949Sbaptfi 1262234949Sbapt 1263234949Sbaptfi 1264234949Sbaptif test -z "$CC"; then 1265234949Sbapt # Extract the first word of "cc", so it can be a program name with args. 1266234949Sbaptset dummy cc; ac_word=$2 1267268899Sbaptecho "$as_me:1267: checking for $ac_word" >&5 1268234949Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1269234949Sbaptif test "${ac_cv_prog_CC+set}" = set; then 1270234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1271234949Sbaptelse 1272234949Sbapt if test -n "$CC"; then 1273234949Sbapt ac_cv_prog_CC="$CC" # Let the user override the test. 1274234949Sbaptelse 1275234949Sbapt ac_prog_rejected=no 1276234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 1277234949Sbaptac_dummy="$PATH" 1278234949Sbaptfor ac_dir in $ac_dummy; do 1279234949Sbapt IFS=$ac_save_IFS 1280234949Sbapt test -z "$ac_dir" && ac_dir=. 1281234949Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 1282234949Sbaptif test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1283234949Sbapt ac_prog_rejected=yes 1284234949Sbapt continue 1285234949Sbaptfi 1286234949Sbaptac_cv_prog_CC="cc" 1287268899Sbaptecho "$as_me:1287: found $ac_dir/$ac_word" >&5 1288234949Sbaptbreak 1289234949Sbaptdone 1290234949Sbapt 1291234949Sbaptif test $ac_prog_rejected = yes; then 1292234949Sbapt # We found a bogon in the path, so make sure we never use it. 1293234949Sbapt set dummy $ac_cv_prog_CC 1294234949Sbapt shift 1295234949Sbapt if test $# != 0; then 1296234949Sbapt # We chose a different compiler from the bogus one. 1297234949Sbapt # However, it has the same basename, so the bogon will be chosen 1298234949Sbapt # first if we set CC to just the basename; use the full file name. 1299234949Sbapt shift 1300234949Sbapt set dummy "$ac_dir/$ac_word" ${1+"$@"} 1301234949Sbapt shift 1302234949Sbapt ac_cv_prog_CC="$@" 1303234949Sbapt fi 1304234949Sbaptfi 1305234949Sbaptfi 1306234949Sbaptfi 1307234949SbaptCC=$ac_cv_prog_CC 1308234949Sbaptif test -n "$CC"; then 1309268899Sbapt echo "$as_me:1309: result: $CC" >&5 1310234949Sbaptecho "${ECHO_T}$CC" >&6 1311234949Sbaptelse 1312268899Sbapt echo "$as_me:1312: result: no" >&5 1313234949Sbaptecho "${ECHO_T}no" >&6 1314234949Sbaptfi 1315234949Sbapt 1316234949Sbaptfi 1317234949Sbaptif test -z "$CC"; then 1318234949Sbapt if test -n "$ac_tool_prefix"; then 1319234949Sbapt for ac_prog in cl 1320234949Sbapt do 1321234949Sbapt # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1322234949Sbaptset dummy $ac_tool_prefix$ac_prog; ac_word=$2 1323268899Sbaptecho "$as_me:1323: checking for $ac_word" >&5 1324234949Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1325234949Sbaptif test "${ac_cv_prog_CC+set}" = set; then 1326234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1327234949Sbaptelse 1328234949Sbapt if test -n "$CC"; then 1329234949Sbapt ac_cv_prog_CC="$CC" # Let the user override the test. 1330234949Sbaptelse 1331234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 1332234949Sbaptac_dummy="$PATH" 1333234949Sbaptfor ac_dir in $ac_dummy; do 1334234949Sbapt IFS=$ac_save_IFS 1335234949Sbapt test -z "$ac_dir" && ac_dir=. 1336234949Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 1337234949Sbaptac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1338268899Sbaptecho "$as_me:1338: found $ac_dir/$ac_word" >&5 1339234949Sbaptbreak 1340234949Sbaptdone 1341234949Sbapt 1342234949Sbaptfi 1343234949Sbaptfi 1344234949SbaptCC=$ac_cv_prog_CC 1345234949Sbaptif test -n "$CC"; then 1346268899Sbapt echo "$as_me:1346: result: $CC" >&5 1347234949Sbaptecho "${ECHO_T}$CC" >&6 1348234949Sbaptelse 1349268899Sbapt echo "$as_me:1349: result: no" >&5 1350234949Sbaptecho "${ECHO_T}no" >&6 1351234949Sbaptfi 1352234949Sbapt 1353234949Sbapt test -n "$CC" && break 1354234949Sbapt done 1355234949Sbaptfi 1356234949Sbaptif test -z "$CC"; then 1357234949Sbapt ac_ct_CC=$CC 1358234949Sbapt for ac_prog in cl 1359234949Sbaptdo 1360234949Sbapt # Extract the first word of "$ac_prog", so it can be a program name with args. 1361234949Sbaptset dummy $ac_prog; ac_word=$2 1362268899Sbaptecho "$as_me:1362: checking for $ac_word" >&5 1363234949Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1364234949Sbaptif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1365234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1366234949Sbaptelse 1367234949Sbapt if test -n "$ac_ct_CC"; then 1368234949Sbapt ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1369234949Sbaptelse 1370234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 1371234949Sbaptac_dummy="$PATH" 1372234949Sbaptfor ac_dir in $ac_dummy; do 1373234949Sbapt IFS=$ac_save_IFS 1374234949Sbapt test -z "$ac_dir" && ac_dir=. 1375234949Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 1376234949Sbaptac_cv_prog_ac_ct_CC="$ac_prog" 1377268899Sbaptecho "$as_me:1377: found $ac_dir/$ac_word" >&5 1378234949Sbaptbreak 1379234949Sbaptdone 1380234949Sbapt 1381234949Sbaptfi 1382234949Sbaptfi 1383234949Sbaptac_ct_CC=$ac_cv_prog_ac_ct_CC 1384234949Sbaptif test -n "$ac_ct_CC"; then 1385268899Sbapt echo "$as_me:1385: result: $ac_ct_CC" >&5 1386234949Sbaptecho "${ECHO_T}$ac_ct_CC" >&6 1387234949Sbaptelse 1388268899Sbapt echo "$as_me:1388: result: no" >&5 1389234949Sbaptecho "${ECHO_T}no" >&6 1390234949Sbaptfi 1391234949Sbapt 1392234949Sbapt test -n "$ac_ct_CC" && break 1393234949Sbaptdone 1394234949Sbapt 1395234949Sbapt CC=$ac_ct_CC 1396234949Sbaptfi 1397234949Sbapt 1398234949Sbaptfi 1399234949Sbapt 1400268899Sbapttest -z "$CC" && { { echo "$as_me:1400: error: no acceptable cc found in \$PATH" >&5 1401234949Sbaptecho "$as_me: error: no acceptable cc found in \$PATH" >&2;} 1402234949Sbapt { (exit 1); exit 1; }; } 1403234949Sbapt 1404234949Sbapt# Provide some information about the compiler. 1405268899Sbaptecho "$as_me:1405:" \ 1406234949Sbapt "checking for C compiler version" >&5 1407234949Sbaptac_compiler=`set X $ac_compile; echo $2` 1408268899Sbapt{ (eval echo "$as_me:1408: \"$ac_compiler --version </dev/null >&5\"") >&5 1409234949Sbapt (eval $ac_compiler --version </dev/null >&5) 2>&5 1410234949Sbapt ac_status=$? 1411268899Sbapt echo "$as_me:1411: \$? = $ac_status" >&5 1412234949Sbapt (exit $ac_status); } 1413268899Sbapt{ (eval echo "$as_me:1413: \"$ac_compiler -v </dev/null >&5\"") >&5 1414234949Sbapt (eval $ac_compiler -v </dev/null >&5) 2>&5 1415234949Sbapt ac_status=$? 1416268899Sbapt echo "$as_me:1416: \$? = $ac_status" >&5 1417234949Sbapt (exit $ac_status); } 1418268899Sbapt{ (eval echo "$as_me:1418: \"$ac_compiler -V </dev/null >&5\"") >&5 1419234949Sbapt (eval $ac_compiler -V </dev/null >&5) 2>&5 1420234949Sbapt ac_status=$? 1421268899Sbapt echo "$as_me:1421: \$? = $ac_status" >&5 1422234949Sbapt (exit $ac_status); } 1423234949Sbapt 1424234949Sbaptcat >conftest.$ac_ext <<_ACEOF 1425268899Sbapt#line 1425 "configure" 1426234949Sbapt#include "confdefs.h" 1427234949Sbapt 1428234949Sbaptint 1429234949Sbaptmain () 1430234949Sbapt{ 1431234949Sbapt 1432234949Sbapt ; 1433234949Sbapt return 0; 1434234949Sbapt} 1435234949Sbapt_ACEOF 1436234949Sbaptac_clean_files_save=$ac_clean_files 1437234949Sbaptac_clean_files="$ac_clean_files a.out a.exe" 1438234949Sbapt# Try to create an executable without -o first, disregard a.out. 1439234949Sbapt# It will help us diagnose broken compilers, and finding out an intuition 1440234949Sbapt# of exeext. 1441268899Sbaptecho "$as_me:1441: checking for C compiler default output" >&5 1442234949Sbaptecho $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1443234949Sbaptac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1444268899Sbaptif { (eval echo "$as_me:1444: \"$ac_link_default\"") >&5 1445234949Sbapt (eval $ac_link_default) 2>&5 1446234949Sbapt ac_status=$? 1447268899Sbapt echo "$as_me:1447: \$? = $ac_status" >&5 1448234949Sbapt (exit $ac_status); }; then 1449234949Sbapt # Find the output, starting from the most likely. This scheme is 1450234949Sbapt# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1451234949Sbapt# resort. 1452234949Sbaptfor ac_file in `ls a.exe conftest.exe 2>/dev/null; 1453234949Sbapt ls a.out conftest 2>/dev/null; 1454234949Sbapt ls a.* conftest.* 2>/dev/null`; do 1455234949Sbapt case $ac_file in 1456234949Sbapt *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1457234949Sbapt a.out ) # We found the default executable, but exeext='' is most 1458234949Sbapt # certainly right. 1459234949Sbapt break;; 1460234949Sbapt *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1461234949Sbapt # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 1462234949Sbapt export ac_cv_exeext 1463234949Sbapt break;; 1464234949Sbapt * ) break;; 1465234949Sbapt esac 1466234949Sbaptdone 1467234949Sbaptelse 1468234949Sbapt echo "$as_me: failed program was:" >&5 1469234949Sbaptcat conftest.$ac_ext >&5 1470268899Sbapt{ { echo "$as_me:1470: error: C compiler cannot create executables" >&5 1471234949Sbaptecho "$as_me: error: C compiler cannot create executables" >&2;} 1472234949Sbapt { (exit 77); exit 77; }; } 1473234949Sbaptfi 1474234949Sbapt 1475234949Sbaptac_exeext=$ac_cv_exeext 1476268899Sbaptecho "$as_me:1476: result: $ac_file" >&5 1477234949Sbaptecho "${ECHO_T}$ac_file" >&6 1478234949Sbapt 1479234949Sbapt# Check the compiler produces executables we can run. If not, either 1480234949Sbapt# the compiler is broken, or we cross compile. 1481268899Sbaptecho "$as_me:1481: checking whether the C compiler works" >&5 1482234949Sbaptecho $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1483234949Sbapt# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1484234949Sbapt# If not cross compiling, check that we can run a simple program. 1485234949Sbaptif test "$cross_compiling" != yes; then 1486234949Sbapt if { ac_try='./$ac_file' 1487268899Sbapt { (eval echo "$as_me:1487: \"$ac_try\"") >&5 1488234949Sbapt (eval $ac_try) 2>&5 1489234949Sbapt ac_status=$? 1490268899Sbapt echo "$as_me:1490: \$? = $ac_status" >&5 1491234949Sbapt (exit $ac_status); }; }; then 1492234949Sbapt cross_compiling=no 1493234949Sbapt else 1494234949Sbapt if test "$cross_compiling" = maybe; then 1495234949Sbapt cross_compiling=yes 1496234949Sbapt else 1497268899Sbapt { { echo "$as_me:1497: error: cannot run C compiled programs. 1498234949SbaptIf you meant to cross compile, use \`--host'." >&5 1499234949Sbaptecho "$as_me: error: cannot run C compiled programs. 1500234949SbaptIf you meant to cross compile, use \`--host'." >&2;} 1501234949Sbapt { (exit 1); exit 1; }; } 1502234949Sbapt fi 1503234949Sbapt fi 1504234949Sbaptfi 1505268899Sbaptecho "$as_me:1505: result: yes" >&5 1506234949Sbaptecho "${ECHO_T}yes" >&6 1507234949Sbapt 1508234949Sbaptrm -f a.out a.exe conftest$ac_cv_exeext 1509234949Sbaptac_clean_files=$ac_clean_files_save 1510234949Sbapt# Check the compiler produces executables we can run. If not, either 1511234949Sbapt# the compiler is broken, or we cross compile. 1512268899Sbaptecho "$as_me:1512: checking whether we are cross compiling" >&5 1513234949Sbaptecho $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1514268899Sbaptecho "$as_me:1514: result: $cross_compiling" >&5 1515234949Sbaptecho "${ECHO_T}$cross_compiling" >&6 1516234949Sbapt 1517268899Sbaptecho "$as_me:1517: checking for executable suffix" >&5 1518234949Sbaptecho $ECHO_N "checking for executable suffix... $ECHO_C" >&6 1519268899Sbaptif { (eval echo "$as_me:1519: \"$ac_link\"") >&5 1520234949Sbapt (eval $ac_link) 2>&5 1521234949Sbapt ac_status=$? 1522268899Sbapt echo "$as_me:1522: \$? = $ac_status" >&5 1523234949Sbapt (exit $ac_status); }; then 1524234949Sbapt # If both `conftest.exe' and `conftest' are `present' (well, observable) 1525234949Sbapt# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1526234949Sbapt# work properly (i.e., refer to `conftest.exe'), while it won't with 1527234949Sbapt# `rm'. 1528234949Sbaptfor ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1529234949Sbapt case $ac_file in 1530234949Sbapt *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1531234949Sbapt *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1532234949Sbapt export ac_cv_exeext 1533234949Sbapt break;; 1534234949Sbapt * ) break;; 1535234949Sbapt esac 1536234949Sbaptdone 1537234949Sbaptelse 1538268899Sbapt { { echo "$as_me:1538: error: cannot compute EXEEXT: cannot compile and link" >&5 1539234949Sbaptecho "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} 1540234949Sbapt { (exit 1); exit 1; }; } 1541234949Sbaptfi 1542234949Sbapt 1543234949Sbaptrm -f conftest$ac_cv_exeext 1544268899Sbaptecho "$as_me:1544: result: $ac_cv_exeext" >&5 1545234949Sbaptecho "${ECHO_T}$ac_cv_exeext" >&6 1546234949Sbapt 1547234949Sbaptrm -f conftest.$ac_ext 1548234949SbaptEXEEXT=$ac_cv_exeext 1549234949Sbaptac_exeext=$EXEEXT 1550268899Sbaptecho "$as_me:1550: checking for object suffix" >&5 1551234949Sbaptecho $ECHO_N "checking for object suffix... $ECHO_C" >&6 1552234949Sbaptif test "${ac_cv_objext+set}" = set; then 1553234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1554234949Sbaptelse 1555234949Sbapt cat >conftest.$ac_ext <<_ACEOF 1556268899Sbapt#line 1556 "configure" 1557234949Sbapt#include "confdefs.h" 1558234949Sbapt 1559234949Sbaptint 1560234949Sbaptmain () 1561234949Sbapt{ 1562234949Sbapt 1563234949Sbapt ; 1564234949Sbapt return 0; 1565234949Sbapt} 1566234949Sbapt_ACEOF 1567234949Sbaptrm -f conftest.o conftest.obj 1568268899Sbaptif { (eval echo "$as_me:1568: \"$ac_compile\"") >&5 1569234949Sbapt (eval $ac_compile) 2>&5 1570234949Sbapt ac_status=$? 1571268899Sbapt echo "$as_me:1571: \$? = $ac_status" >&5 1572234949Sbapt (exit $ac_status); }; then 1573234949Sbapt for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1574234949Sbapt case $ac_file in 1575234949Sbapt *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;; 1576234949Sbapt *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1577234949Sbapt break;; 1578234949Sbapt esac 1579234949Sbaptdone 1580234949Sbaptelse 1581234949Sbapt echo "$as_me: failed program was:" >&5 1582234949Sbaptcat conftest.$ac_ext >&5 1583268899Sbapt{ { echo "$as_me:1583: error: cannot compute OBJEXT: cannot compile" >&5 1584234949Sbaptecho "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} 1585234949Sbapt { (exit 1); exit 1; }; } 1586234949Sbaptfi 1587234949Sbapt 1588234949Sbaptrm -f conftest.$ac_cv_objext conftest.$ac_ext 1589234949Sbaptfi 1590268899Sbaptecho "$as_me:1590: result: $ac_cv_objext" >&5 1591234949Sbaptecho "${ECHO_T}$ac_cv_objext" >&6 1592234949SbaptOBJEXT=$ac_cv_objext 1593234949Sbaptac_objext=$OBJEXT 1594268899Sbaptecho "$as_me:1594: checking whether we are using the GNU C compiler" >&5 1595234949Sbaptecho $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1596234949Sbaptif test "${ac_cv_c_compiler_gnu+set}" = set; then 1597234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1598234949Sbaptelse 1599234949Sbapt cat >conftest.$ac_ext <<_ACEOF 1600268899Sbapt#line 1600 "configure" 1601234949Sbapt#include "confdefs.h" 1602234949Sbapt 1603234949Sbaptint 1604234949Sbaptmain () 1605234949Sbapt{ 1606234949Sbapt#ifndef __GNUC__ 1607234949Sbapt choke me 1608234949Sbapt#endif 1609234949Sbapt 1610234949Sbapt ; 1611234949Sbapt return 0; 1612234949Sbapt} 1613234949Sbapt_ACEOF 1614234949Sbaptrm -f conftest.$ac_objext 1615268899Sbaptif { (eval echo "$as_me:1615: \"$ac_compile\"") >&5 1616234949Sbapt (eval $ac_compile) 2>&5 1617234949Sbapt ac_status=$? 1618268899Sbapt echo "$as_me:1618: \$? = $ac_status" >&5 1619234949Sbapt (exit $ac_status); } && 1620234949Sbapt { ac_try='test -s conftest.$ac_objext' 1621268899Sbapt { (eval echo "$as_me:1621: \"$ac_try\"") >&5 1622234949Sbapt (eval $ac_try) 2>&5 1623234949Sbapt ac_status=$? 1624268899Sbapt echo "$as_me:1624: \$? = $ac_status" >&5 1625234949Sbapt (exit $ac_status); }; }; then 1626234949Sbapt ac_compiler_gnu=yes 1627234949Sbaptelse 1628234949Sbapt echo "$as_me: failed program was:" >&5 1629234949Sbaptcat conftest.$ac_ext >&5 1630234949Sbaptac_compiler_gnu=no 1631234949Sbaptfi 1632234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 1633234949Sbaptac_cv_c_compiler_gnu=$ac_compiler_gnu 1634234949Sbapt 1635234949Sbaptfi 1636268899Sbaptecho "$as_me:1636: result: $ac_cv_c_compiler_gnu" >&5 1637234949Sbaptecho "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1638234949SbaptGCC=`test $ac_compiler_gnu = yes && echo yes` 1639234949Sbaptac_test_CFLAGS=${CFLAGS+set} 1640234949Sbaptac_save_CFLAGS=$CFLAGS 1641234949SbaptCFLAGS="-g" 1642268899Sbaptecho "$as_me:1642: checking whether $CC accepts -g" >&5 1643234949Sbaptecho $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1644234949Sbaptif test "${ac_cv_prog_cc_g+set}" = set; then 1645234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1646234949Sbaptelse 1647234949Sbapt cat >conftest.$ac_ext <<_ACEOF 1648268899Sbapt#line 1648 "configure" 1649234949Sbapt#include "confdefs.h" 1650234949Sbapt 1651234949Sbaptint 1652234949Sbaptmain () 1653234949Sbapt{ 1654234949Sbapt 1655234949Sbapt ; 1656234949Sbapt return 0; 1657234949Sbapt} 1658234949Sbapt_ACEOF 1659234949Sbaptrm -f conftest.$ac_objext 1660268899Sbaptif { (eval echo "$as_me:1660: \"$ac_compile\"") >&5 1661234949Sbapt (eval $ac_compile) 2>&5 1662234949Sbapt ac_status=$? 1663268899Sbapt echo "$as_me:1663: \$? = $ac_status" >&5 1664234949Sbapt (exit $ac_status); } && 1665234949Sbapt { ac_try='test -s conftest.$ac_objext' 1666268899Sbapt { (eval echo "$as_me:1666: \"$ac_try\"") >&5 1667234949Sbapt (eval $ac_try) 2>&5 1668234949Sbapt ac_status=$? 1669268899Sbapt echo "$as_me:1669: \$? = $ac_status" >&5 1670234949Sbapt (exit $ac_status); }; }; then 1671234949Sbapt ac_cv_prog_cc_g=yes 1672234949Sbaptelse 1673234949Sbapt echo "$as_me: failed program was:" >&5 1674234949Sbaptcat conftest.$ac_ext >&5 1675234949Sbaptac_cv_prog_cc_g=no 1676234949Sbaptfi 1677234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 1678234949Sbaptfi 1679268899Sbaptecho "$as_me:1679: result: $ac_cv_prog_cc_g" >&5 1680234949Sbaptecho "${ECHO_T}$ac_cv_prog_cc_g" >&6 1681234949Sbaptif test "$ac_test_CFLAGS" = set; then 1682234949Sbapt CFLAGS=$ac_save_CFLAGS 1683234949Sbaptelif test $ac_cv_prog_cc_g = yes; then 1684234949Sbapt if test "$GCC" = yes; then 1685234949Sbapt CFLAGS="-g -O2" 1686234949Sbapt else 1687234949Sbapt CFLAGS="-g" 1688234949Sbapt fi 1689234949Sbaptelse 1690234949Sbapt if test "$GCC" = yes; then 1691234949Sbapt CFLAGS="-O2" 1692234949Sbapt else 1693234949Sbapt CFLAGS= 1694234949Sbapt fi 1695234949Sbaptfi 1696234949Sbapt# Some people use a C++ compiler to compile C. Since we use `exit', 1697234949Sbapt# in C++ we need to declare it. In case someone uses the same compiler 1698234949Sbapt# for both compiling C and C++ we need to have the C++ compiler decide 1699234949Sbapt# the declaration of exit, since it's the most demanding environment. 1700234949Sbaptcat >conftest.$ac_ext <<_ACEOF 1701234949Sbapt#ifndef __cplusplus 1702234949Sbapt choke me 1703234949Sbapt#endif 1704234949Sbapt_ACEOF 1705234949Sbaptrm -f conftest.$ac_objext 1706268899Sbaptif { (eval echo "$as_me:1706: \"$ac_compile\"") >&5 1707234949Sbapt (eval $ac_compile) 2>&5 1708234949Sbapt ac_status=$? 1709268899Sbapt echo "$as_me:1709: \$? = $ac_status" >&5 1710234949Sbapt (exit $ac_status); } && 1711234949Sbapt { ac_try='test -s conftest.$ac_objext' 1712268899Sbapt { (eval echo "$as_me:1712: \"$ac_try\"") >&5 1713234949Sbapt (eval $ac_try) 2>&5 1714234949Sbapt ac_status=$? 1715268899Sbapt echo "$as_me:1715: \$? = $ac_status" >&5 1716234949Sbapt (exit $ac_status); }; }; then 1717234949Sbapt for ac_declaration in \ 1718234949Sbapt ''\ 1719234949Sbapt '#include <stdlib.h>' \ 1720234949Sbapt 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1721234949Sbapt 'extern "C" void std::exit (int); using std::exit;' \ 1722234949Sbapt 'extern "C" void exit (int) throw ();' \ 1723234949Sbapt 'extern "C" void exit (int);' \ 1724234949Sbapt 'void exit (int);' 1725234949Sbaptdo 1726234949Sbapt cat >conftest.$ac_ext <<_ACEOF 1727268899Sbapt#line 1727 "configure" 1728234949Sbapt#include "confdefs.h" 1729234949Sbapt#include <stdlib.h> 1730234949Sbapt$ac_declaration 1731234949Sbaptint 1732234949Sbaptmain () 1733234949Sbapt{ 1734234949Sbaptexit (42); 1735234949Sbapt ; 1736234949Sbapt return 0; 1737234949Sbapt} 1738234949Sbapt_ACEOF 1739234949Sbaptrm -f conftest.$ac_objext 1740268899Sbaptif { (eval echo "$as_me:1740: \"$ac_compile\"") >&5 1741234949Sbapt (eval $ac_compile) 2>&5 1742234949Sbapt ac_status=$? 1743268899Sbapt echo "$as_me:1743: \$? = $ac_status" >&5 1744234949Sbapt (exit $ac_status); } && 1745234949Sbapt { ac_try='test -s conftest.$ac_objext' 1746268899Sbapt { (eval echo "$as_me:1746: \"$ac_try\"") >&5 1747234949Sbapt (eval $ac_try) 2>&5 1748234949Sbapt ac_status=$? 1749268899Sbapt echo "$as_me:1749: \$? = $ac_status" >&5 1750234949Sbapt (exit $ac_status); }; }; then 1751234949Sbapt : 1752234949Sbaptelse 1753234949Sbapt echo "$as_me: failed program was:" >&5 1754234949Sbaptcat conftest.$ac_ext >&5 1755234949Sbaptcontinue 1756234949Sbaptfi 1757234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 1758234949Sbapt cat >conftest.$ac_ext <<_ACEOF 1759268899Sbapt#line 1759 "configure" 1760234949Sbapt#include "confdefs.h" 1761234949Sbapt$ac_declaration 1762234949Sbaptint 1763234949Sbaptmain () 1764234949Sbapt{ 1765234949Sbaptexit (42); 1766234949Sbapt ; 1767234949Sbapt return 0; 1768234949Sbapt} 1769234949Sbapt_ACEOF 1770234949Sbaptrm -f conftest.$ac_objext 1771268899Sbaptif { (eval echo "$as_me:1771: \"$ac_compile\"") >&5 1772234949Sbapt (eval $ac_compile) 2>&5 1773234949Sbapt ac_status=$? 1774268899Sbapt echo "$as_me:1774: \$? = $ac_status" >&5 1775234949Sbapt (exit $ac_status); } && 1776234949Sbapt { ac_try='test -s conftest.$ac_objext' 1777268899Sbapt { (eval echo "$as_me:1777: \"$ac_try\"") >&5 1778234949Sbapt (eval $ac_try) 2>&5 1779234949Sbapt ac_status=$? 1780268899Sbapt echo "$as_me:1780: \$? = $ac_status" >&5 1781234949Sbapt (exit $ac_status); }; }; then 1782234949Sbapt break 1783234949Sbaptelse 1784234949Sbapt echo "$as_me: failed program was:" >&5 1785234949Sbaptcat conftest.$ac_ext >&5 1786234949Sbaptfi 1787234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 1788234949Sbaptdone 1789234949Sbaptrm -rf conftest* 1790234949Sbaptif test -n "$ac_declaration"; then 1791234949Sbapt echo '#ifdef __cplusplus' >>confdefs.h 1792234949Sbapt echo $ac_declaration >>confdefs.h 1793234949Sbapt echo '#endif' >>confdefs.h 1794234949Sbaptfi 1795234949Sbapt 1796234949Sbaptelse 1797234949Sbapt echo "$as_me: failed program was:" >&5 1798234949Sbaptcat conftest.$ac_ext >&5 1799234949Sbaptfi 1800234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 1801234949Sbaptac_ext=c 1802234949Sbaptac_cpp='$CPP $CPPFLAGS' 1803234949Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1804234949Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1805234949Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu 1806234949Sbaptac_main_return=return 1807234949Sbapt 1808251143SbaptGCC_VERSION=none 1809251143Sbaptif test "$GCC" = yes ; then 1810268899Sbapt echo "$as_me:1810: checking version of $CC" >&5 1811251143Sbaptecho $ECHO_N "checking version of $CC... $ECHO_C" >&6 1812251143Sbapt GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`" 1813251143Sbapt test -z "$GCC_VERSION" && GCC_VERSION=unknown 1814268899Sbapt echo "$as_me:1814: result: $GCC_VERSION" >&5 1815251143Sbaptecho "${ECHO_T}$GCC_VERSION" >&6 1816251143Sbaptfi 1817251143Sbapt 1818268899Sbaptecho "$as_me:1818: checking for $CC option to accept ANSI C" >&5 1819234949Sbaptecho $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 1820234949Sbaptif test "${ac_cv_prog_cc_stdc+set}" = set; then 1821234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1822234949Sbaptelse 1823234949Sbapt ac_cv_prog_cc_stdc=no 1824234949Sbaptac_save_CC=$CC 1825234949Sbaptcat >conftest.$ac_ext <<_ACEOF 1826268899Sbapt#line 1826 "configure" 1827234949Sbapt#include "confdefs.h" 1828234949Sbapt#include <stdarg.h> 1829234949Sbapt#include <stdio.h> 1830234949Sbapt#include <sys/types.h> 1831234949Sbapt#include <sys/stat.h> 1832234949Sbapt/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 1833234949Sbaptstruct buf { int x; }; 1834234949SbaptFILE * (*rcsopen) (struct buf *, struct stat *, int); 1835234949Sbaptstatic char *e (p, i) 1836234949Sbapt char **p; 1837234949Sbapt int i; 1838234949Sbapt{ 1839234949Sbapt return p[i]; 1840234949Sbapt} 1841234949Sbaptstatic char *f (char * (*g) (char **, int), char **p, ...) 1842234949Sbapt{ 1843234949Sbapt char *s; 1844234949Sbapt va_list v; 1845234949Sbapt va_start (v,p); 1846234949Sbapt s = g (p, va_arg (v,int)); 1847234949Sbapt va_end (v); 1848234949Sbapt return s; 1849234949Sbapt} 1850234949Sbaptint test (int i, double x); 1851234949Sbaptstruct s1 {int (*f) (int a);}; 1852234949Sbaptstruct s2 {int (*f) (double a);}; 1853234949Sbaptint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 1854234949Sbaptint argc; 1855234949Sbaptchar **argv; 1856234949Sbaptint 1857234949Sbaptmain () 1858234949Sbapt{ 1859234949Sbaptreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 1860234949Sbapt ; 1861234949Sbapt return 0; 1862234949Sbapt} 1863234949Sbapt_ACEOF 1864234949Sbapt# Don't try gcc -ansi; that turns off useful extensions and 1865234949Sbapt# breaks some systems' header files. 1866234949Sbapt# AIX -qlanglvl=ansi 1867234949Sbapt# Ultrix and OSF/1 -std1 1868234949Sbapt# HP-UX 10.20 and later -Ae 1869234949Sbapt# HP-UX older versions -Aa -D_HPUX_SOURCE 1870234949Sbapt# SVR4 -Xc -D__EXTENSIONS__ 1871234949Sbaptfor ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 1872234949Sbaptdo 1873234949Sbapt CC="$ac_save_CC $ac_arg" 1874234949Sbapt rm -f conftest.$ac_objext 1875268899Sbaptif { (eval echo "$as_me:1875: \"$ac_compile\"") >&5 1876234949Sbapt (eval $ac_compile) 2>&5 1877234949Sbapt ac_status=$? 1878268899Sbapt echo "$as_me:1878: \$? = $ac_status" >&5 1879234949Sbapt (exit $ac_status); } && 1880234949Sbapt { ac_try='test -s conftest.$ac_objext' 1881268899Sbapt { (eval echo "$as_me:1881: \"$ac_try\"") >&5 1882234949Sbapt (eval $ac_try) 2>&5 1883234949Sbapt ac_status=$? 1884268899Sbapt echo "$as_me:1884: \$? = $ac_status" >&5 1885234949Sbapt (exit $ac_status); }; }; then 1886234949Sbapt ac_cv_prog_cc_stdc=$ac_arg 1887234949Sbaptbreak 1888234949Sbaptelse 1889234949Sbapt echo "$as_me: failed program was:" >&5 1890234949Sbaptcat conftest.$ac_ext >&5 1891234949Sbaptfi 1892234949Sbaptrm -f conftest.$ac_objext 1893234949Sbaptdone 1894234949Sbaptrm -f conftest.$ac_ext conftest.$ac_objext 1895234949SbaptCC=$ac_save_CC 1896234949Sbapt 1897234949Sbaptfi 1898234949Sbapt 1899234949Sbaptcase "x$ac_cv_prog_cc_stdc" in 1900234949Sbapt x|xno) 1901268899Sbapt echo "$as_me:1901: result: none needed" >&5 1902234949Sbaptecho "${ECHO_T}none needed" >&6 ;; 1903234949Sbapt *) 1904268899Sbapt echo "$as_me:1904: result: $ac_cv_prog_cc_stdc" >&5 1905234949Sbaptecho "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 1906234949Sbapt CC="$CC $ac_cv_prog_cc_stdc" ;; 1907234949Sbaptesac 1908234949Sbapt 1909251143Sbapt# This should have been defined by AC_PROG_CC 1910251143Sbapt: ${CC:=cc} 1911234949Sbapt 1912268899Sbaptecho "$as_me:1912: checking \$CC variable" >&5 1913251143Sbaptecho $ECHO_N "checking \$CC variable... $ECHO_C" >&6 1914251143Sbaptcase "$CC" in #(vi 1915251143Sbapt*[\ \ ]-[IUD]*) 1916268899Sbapt echo "$as_me:1916: result: broken" >&5 1917251143Sbaptecho "${ECHO_T}broken" >&6 1918268899Sbapt { echo "$as_me:1918: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5 1919251143Sbaptecho "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;} 1920251143Sbapt # humor him... 1921251143Sbapt cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'` 1922251143Sbapt CC=`echo "$CC" | sed -e 's/[ ].*//'` 1923234949Sbapt 1924251143Sbaptcf_fix_cppflags=no 1925251143Sbaptcf_new_cflags= 1926251143Sbaptcf_new_cppflags= 1927251143Sbaptcf_new_extra_cppflags= 1928234949Sbapt 1929251143Sbaptfor cf_add_cflags in $cf_flags 1930251143Sbaptdo 1931251143Sbaptcase $cf_fix_cppflags in 1932251143Sbaptno) 1933251143Sbapt case $cf_add_cflags in #(vi 1934251143Sbapt -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 1935251143Sbapt case $cf_add_cflags in 1936251143Sbapt -D*) 1937251143Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 1938251143Sbapt 1939251143Sbapt test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 1940251143Sbapt && test -z "${cf_tst_cflags}" \ 1941251143Sbapt && cf_fix_cppflags=yes 1942251143Sbapt 1943251143Sbapt if test $cf_fix_cppflags = yes ; then 1944251143Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 1945251143Sbapt continue 1946251143Sbapt elif test "${cf_tst_cflags}" = "\"'" ; then 1947251143Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 1948251143Sbapt continue 1949251143Sbapt fi 1950251143Sbapt ;; 1951251143Sbapt esac 1952251143Sbapt case "$CPPFLAGS" in 1953251143Sbapt *$cf_add_cflags) #(vi 1954251143Sbapt ;; 1955251143Sbapt *) #(vi 1956251143Sbapt case $cf_add_cflags in #(vi 1957251143Sbapt -D*) 1958251143Sbapt cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 1959251143Sbapt 1960251143SbaptCPPFLAGS=`echo "$CPPFLAGS" | \ 1961251143Sbapt sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 1962251143Sbapt -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 1963251143Sbapt 1964251143Sbapt ;; 1965251143Sbapt esac 1966251143Sbapt cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 1967251143Sbapt ;; 1968251143Sbapt esac 1969251143Sbapt ;; 1970251143Sbapt *) 1971251143Sbapt cf_new_cflags="$cf_new_cflags $cf_add_cflags" 1972251143Sbapt ;; 1973251143Sbapt esac 1974251143Sbapt ;; 1975251143Sbaptyes) 1976251143Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 1977251143Sbapt 1978251143Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 1979251143Sbapt 1980251143Sbapt test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 1981251143Sbapt && test -z "${cf_tst_cflags}" \ 1982251143Sbapt && cf_fix_cppflags=no 1983251143Sbapt ;; 1984251143Sbaptesac 1985251143Sbaptdone 1986251143Sbapt 1987251143Sbaptif test -n "$cf_new_cflags" ; then 1988251143Sbapt 1989251143Sbapt CFLAGS="$CFLAGS $cf_new_cflags" 1990234949Sbaptfi 1991251143Sbapt 1992251143Sbaptif test -n "$cf_new_cppflags" ; then 1993251143Sbapt 1994251143Sbapt CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 1995234949Sbaptfi 1996234949Sbapt 1997251143Sbaptif test -n "$cf_new_extra_cppflags" ; then 1998234949Sbapt 1999251143Sbapt EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 2000234949Sbaptfi 2001234949Sbapt 2002251143Sbapt ;; 2003251143Sbapt*) 2004268899Sbapt echo "$as_me:2004: result: ok" >&5 2005251143Sbaptecho "${ECHO_T}ok" >&6 2006251143Sbapt ;; 2007251143Sbaptesac 2008251143Sbapt 2009268899Sbaptecho "$as_me:2009: checking whether ${MAKE-make} sets \${MAKE}" >&5 2010234949Sbaptecho $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 2011234949Sbaptset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 2012234949Sbaptif eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2013234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2014234949Sbaptelse 2015234949Sbapt cat >conftest.make <<\EOF 2016234949Sbaptall: 2017234949Sbapt @echo 'ac_maketemp="${MAKE}"' 2018234949SbaptEOF 2019234949Sbapt# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2020234949Sbapteval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2021234949Sbaptif test -n "$ac_maketemp"; then 2022234949Sbapt eval ac_cv_prog_make_${ac_make}_set=yes 2023234949Sbaptelse 2024234949Sbapt eval ac_cv_prog_make_${ac_make}_set=no 2025234949Sbaptfi 2026234949Sbaptrm -f conftest.make 2027234949Sbaptfi 2028234949Sbaptif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2029268899Sbapt echo "$as_me:2029: result: yes" >&5 2030234949Sbaptecho "${ECHO_T}yes" >&6 2031234949Sbapt SET_MAKE= 2032234949Sbaptelse 2033268899Sbapt echo "$as_me:2033: result: no" >&5 2034234949Sbaptecho "${ECHO_T}no" >&6 2035234949Sbapt SET_MAKE="MAKE=${MAKE-make}" 2036234949Sbaptfi 2037234949Sbapt 2038234949Sbapt# Find a good install program. We prefer a C program (faster), 2039234949Sbapt# so one script is as good as another. But avoid the broken or 2040234949Sbapt# incompatible versions: 2041234949Sbapt# SysV /etc/install, /usr/sbin/install 2042234949Sbapt# SunOS /usr/etc/install 2043234949Sbapt# IRIX /sbin/install 2044234949Sbapt# AIX /bin/install 2045234949Sbapt# AmigaOS /C/install, which installs bootblocks on floppy discs 2046234949Sbapt# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2047234949Sbapt# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2048234949Sbapt# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2049234949Sbapt# ./install, which can be erroneously created by make from ./install.sh. 2050268899Sbaptecho "$as_me:2050: checking for a BSD compatible install" >&5 2051234949Sbaptecho $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 2052234949Sbaptif test -z "$INSTALL"; then 2053234949Sbaptif test "${ac_cv_path_install+set}" = set; then 2054234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2055234949Sbaptelse 2056234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 2057234949Sbapt for ac_dir in $PATH; do 2058234949Sbapt IFS=$ac_save_IFS 2059234949Sbapt # Account for people who put trailing slashes in PATH elements. 2060234949Sbapt case $ac_dir/ in 2061234949Sbapt / | ./ | .// | /cC/* \ 2062234949Sbapt | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 2063234949Sbapt | /usr/ucb/* ) ;; 2064234949Sbapt *) 2065234949Sbapt # OSF1 and SCO ODT 3.0 have their own names for install. 2066234949Sbapt # Don't use installbsd from OSF since it installs stuff as root 2067234949Sbapt # by default. 2068234949Sbapt for ac_prog in ginstall scoinst install; do 2069234949Sbapt if $as_executable_p "$ac_dir/$ac_prog"; then 2070234949Sbapt if test $ac_prog = install && 2071234949Sbapt grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2072234949Sbapt # AIX install. It has an incompatible calling convention. 2073234949Sbapt : 2074234949Sbapt elif test $ac_prog = install && 2075234949Sbapt grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2076234949Sbapt # program-specific install script used by HP pwplus--don't use. 2077234949Sbapt : 2078234949Sbapt else 2079234949Sbapt ac_cv_path_install="$ac_dir/$ac_prog -c" 2080234949Sbapt break 2 2081234949Sbapt fi 2082234949Sbapt fi 2083234949Sbapt done 2084234949Sbapt ;; 2085234949Sbapt esac 2086234949Sbapt done 2087234949Sbapt 2088234949Sbaptfi 2089234949Sbapt if test "${ac_cv_path_install+set}" = set; then 2090234949Sbapt INSTALL=$ac_cv_path_install 2091234949Sbapt else 2092234949Sbapt # As a last resort, use the slow shell script. We don't cache a 2093234949Sbapt # path for INSTALL within a source directory, because that will 2094234949Sbapt # break other packages using the cache if that directory is 2095234949Sbapt # removed, or if the path is relative. 2096234949Sbapt INSTALL=$ac_install_sh 2097234949Sbapt fi 2098234949Sbaptfi 2099268899Sbaptecho "$as_me:2099: result: $INSTALL" >&5 2100234949Sbaptecho "${ECHO_T}$INSTALL" >&6 2101234949Sbapt 2102234949Sbapt# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2103234949Sbapt# It thinks the first close brace ends the variable substitution. 2104234949Sbapttest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2105234949Sbapt 2106234949Sbapttest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2107234949Sbapt 2108234949Sbapttest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2109234949Sbapt 2110268899Sbaptecho "$as_me:2110: checking if filesystem supports mixed-case filenames" >&5 2111234949Sbaptecho $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6 2112234949Sbaptif test "${cf_cv_mixedcase+set}" = set; then 2113234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2114234949Sbaptelse 2115234949Sbapt 2116234949Sbaptif test "$cross_compiling" = yes ; then 2117234949Sbapt case $target_alias in #(vi 2118268899Sbapt *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*) #(vi 2119234949Sbapt cf_cv_mixedcase=no 2120234949Sbapt ;; 2121234949Sbapt *) 2122234949Sbapt cf_cv_mixedcase=yes 2123234949Sbapt ;; 2124234949Sbapt esac 2125234949Sbaptelse 2126234949Sbapt rm -f conftest CONFTEST 2127234949Sbapt echo test >conftest 2128234949Sbapt if test -f CONFTEST ; then 2129234949Sbapt cf_cv_mixedcase=no 2130234949Sbapt else 2131234949Sbapt cf_cv_mixedcase=yes 2132234949Sbapt fi 2133234949Sbapt rm -f conftest CONFTEST 2134234949Sbaptfi 2135234949Sbapt 2136234949Sbaptfi 2137268899Sbaptecho "$as_me:2137: result: $cf_cv_mixedcase" >&5 2138234949Sbaptecho "${ECHO_T}$cf_cv_mixedcase" >&6 2139251143Sbapttest "$cf_cv_mixedcase" = yes && 2140251143Sbaptcat >>confdefs.h <<\EOF 2141234949Sbapt#define MIXEDCASE_FILENAMES 1 2142234949SbaptEOF 2143234949Sbapt 2144234949Sbaptfor ac_prog in exctags ctags 2145234949Sbaptdo 2146234949Sbapt # Extract the first word of "$ac_prog", so it can be a program name with args. 2147234949Sbaptset dummy $ac_prog; ac_word=$2 2148268899Sbaptecho "$as_me:2148: checking for $ac_word" >&5 2149234949Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2150234949Sbaptif test "${ac_cv_prog_CTAGS+set}" = set; then 2151234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2152234949Sbaptelse 2153234949Sbapt if test -n "$CTAGS"; then 2154234949Sbapt ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test. 2155234949Sbaptelse 2156234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 2157234949Sbaptac_dummy="$PATH" 2158234949Sbaptfor ac_dir in $ac_dummy; do 2159234949Sbapt IFS=$ac_save_IFS 2160234949Sbapt test -z "$ac_dir" && ac_dir=. 2161234949Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 2162234949Sbaptac_cv_prog_CTAGS="$ac_prog" 2163268899Sbaptecho "$as_me:2163: found $ac_dir/$ac_word" >&5 2164234949Sbaptbreak 2165234949Sbaptdone 2166234949Sbapt 2167234949Sbaptfi 2168234949Sbaptfi 2169234949SbaptCTAGS=$ac_cv_prog_CTAGS 2170234949Sbaptif test -n "$CTAGS"; then 2171268899Sbapt echo "$as_me:2171: result: $CTAGS" >&5 2172234949Sbaptecho "${ECHO_T}$CTAGS" >&6 2173234949Sbaptelse 2174268899Sbapt echo "$as_me:2174: result: no" >&5 2175234949Sbaptecho "${ECHO_T}no" >&6 2176234949Sbaptfi 2177234949Sbapt 2178234949Sbapt test -n "$CTAGS" && break 2179234949Sbaptdone 2180234949Sbapt 2181234949Sbaptfor ac_prog in exetags etags 2182234949Sbaptdo 2183234949Sbapt # Extract the first word of "$ac_prog", so it can be a program name with args. 2184234949Sbaptset dummy $ac_prog; ac_word=$2 2185268899Sbaptecho "$as_me:2185: checking for $ac_word" >&5 2186234949Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2187234949Sbaptif test "${ac_cv_prog_ETAGS+set}" = set; then 2188234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2189234949Sbaptelse 2190234949Sbapt if test -n "$ETAGS"; then 2191234949Sbapt ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test. 2192234949Sbaptelse 2193234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 2194234949Sbaptac_dummy="$PATH" 2195234949Sbaptfor ac_dir in $ac_dummy; do 2196234949Sbapt IFS=$ac_save_IFS 2197234949Sbapt test -z "$ac_dir" && ac_dir=. 2198234949Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 2199234949Sbaptac_cv_prog_ETAGS="$ac_prog" 2200268899Sbaptecho "$as_me:2200: found $ac_dir/$ac_word" >&5 2201234949Sbaptbreak 2202234949Sbaptdone 2203234949Sbapt 2204234949Sbaptfi 2205234949Sbaptfi 2206234949SbaptETAGS=$ac_cv_prog_ETAGS 2207234949Sbaptif test -n "$ETAGS"; then 2208268899Sbapt echo "$as_me:2208: result: $ETAGS" >&5 2209234949Sbaptecho "${ECHO_T}$ETAGS" >&6 2210234949Sbaptelse 2211268899Sbapt echo "$as_me:2211: result: no" >&5 2212234949Sbaptecho "${ECHO_T}no" >&6 2213234949Sbaptfi 2214234949Sbapt 2215234949Sbapt test -n "$ETAGS" && break 2216234949Sbaptdone 2217234949Sbapt 2218234949Sbapt# Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args. 2219234949Sbaptset dummy ${CTAGS:-ctags}; ac_word=$2 2220268899Sbaptecho "$as_me:2220: checking for $ac_word" >&5 2221234949Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2222234949Sbaptif test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then 2223234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2224234949Sbaptelse 2225234949Sbapt if test -n "$MAKE_LOWER_TAGS"; then 2226234949Sbapt ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test. 2227234949Sbaptelse 2228234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 2229234949Sbaptac_dummy="$PATH" 2230234949Sbaptfor ac_dir in $ac_dummy; do 2231234949Sbapt IFS=$ac_save_IFS 2232234949Sbapt test -z "$ac_dir" && ac_dir=. 2233234949Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 2234234949Sbaptac_cv_prog_MAKE_LOWER_TAGS="yes" 2235268899Sbaptecho "$as_me:2235: found $ac_dir/$ac_word" >&5 2236234949Sbaptbreak 2237234949Sbaptdone 2238234949Sbapt 2239234949Sbapt test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no" 2240234949Sbaptfi 2241234949Sbaptfi 2242234949SbaptMAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS 2243234949Sbaptif test -n "$MAKE_LOWER_TAGS"; then 2244268899Sbapt echo "$as_me:2244: result: $MAKE_LOWER_TAGS" >&5 2245234949Sbaptecho "${ECHO_T}$MAKE_LOWER_TAGS" >&6 2246234949Sbaptelse 2247268899Sbapt echo "$as_me:2247: result: no" >&5 2248234949Sbaptecho "${ECHO_T}no" >&6 2249234949Sbaptfi 2250234949Sbapt 2251234949Sbaptif test "$cf_cv_mixedcase" = yes ; then 2252234949Sbapt # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args. 2253234949Sbaptset dummy ${ETAGS:-etags}; ac_word=$2 2254268899Sbaptecho "$as_me:2254: checking for $ac_word" >&5 2255234949Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2256234949Sbaptif test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then 2257234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2258234949Sbaptelse 2259234949Sbapt if test -n "$MAKE_UPPER_TAGS"; then 2260234949Sbapt ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test. 2261234949Sbaptelse 2262234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 2263234949Sbaptac_dummy="$PATH" 2264234949Sbaptfor ac_dir in $ac_dummy; do 2265234949Sbapt IFS=$ac_save_IFS 2266234949Sbapt test -z "$ac_dir" && ac_dir=. 2267234949Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 2268234949Sbaptac_cv_prog_MAKE_UPPER_TAGS="yes" 2269268899Sbaptecho "$as_me:2269: found $ac_dir/$ac_word" >&5 2270234949Sbaptbreak 2271234949Sbaptdone 2272234949Sbapt 2273234949Sbapt test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no" 2274234949Sbaptfi 2275234949Sbaptfi 2276234949SbaptMAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS 2277234949Sbaptif test -n "$MAKE_UPPER_TAGS"; then 2278268899Sbapt echo "$as_me:2278: result: $MAKE_UPPER_TAGS" >&5 2279234949Sbaptecho "${ECHO_T}$MAKE_UPPER_TAGS" >&6 2280234949Sbaptelse 2281268899Sbapt echo "$as_me:2281: result: no" >&5 2282234949Sbaptecho "${ECHO_T}no" >&6 2283234949Sbaptfi 2284234949Sbapt 2285234949Sbaptelse 2286234949Sbapt MAKE_UPPER_TAGS=no 2287234949Sbaptfi 2288234949Sbapt 2289234949Sbaptif test "$MAKE_UPPER_TAGS" = yes ; then 2290234949Sbapt MAKE_UPPER_TAGS= 2291234949Sbaptelse 2292234949Sbapt MAKE_UPPER_TAGS="#" 2293234949Sbaptfi 2294234949Sbapt 2295234949Sbaptif test "$MAKE_LOWER_TAGS" = yes ; then 2296234949Sbapt MAKE_LOWER_TAGS= 2297234949Sbaptelse 2298234949Sbapt MAKE_LOWER_TAGS="#" 2299234949Sbaptfi 2300234949Sbapt 2301268899Sbaptfor ac_prog in mawk gawk nawk awk 2302268899Sbaptdo 2303268899Sbapt # Extract the first word of "$ac_prog", so it can be a program name with args. 2304268899Sbaptset dummy $ac_prog; ac_word=$2 2305268899Sbaptecho "$as_me:2305: checking for $ac_word" >&5 2306268899Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2307268899Sbaptif test "${ac_cv_prog_AWK+set}" = set; then 2308268899Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2309268899Sbaptelse 2310268899Sbapt if test -n "$AWK"; then 2311268899Sbapt ac_cv_prog_AWK="$AWK" # Let the user override the test. 2312268899Sbaptelse 2313268899Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 2314268899Sbaptac_dummy="$PATH" 2315268899Sbaptfor ac_dir in $ac_dummy; do 2316268899Sbapt IFS=$ac_save_IFS 2317268899Sbapt test -z "$ac_dir" && ac_dir=. 2318268899Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 2319268899Sbaptac_cv_prog_AWK="$ac_prog" 2320268899Sbaptecho "$as_me:2320: found $ac_dir/$ac_word" >&5 2321268899Sbaptbreak 2322268899Sbaptdone 2323268899Sbapt 2324268899Sbaptfi 2325268899Sbaptfi 2326268899SbaptAWK=$ac_cv_prog_AWK 2327268899Sbaptif test -n "$AWK"; then 2328268899Sbapt echo "$as_me:2328: result: $AWK" >&5 2329268899Sbaptecho "${ECHO_T}$AWK" >&6 2330268899Sbaptelse 2331268899Sbapt echo "$as_me:2331: result: no" >&5 2332268899Sbaptecho "${ECHO_T}no" >&6 2333268899Sbaptfi 2334268899Sbapt 2335268899Sbapt test -n "$AWK" && break 2336268899Sbaptdone 2337268899Sbapt 2338268899Sbapttest -z "$AWK" && { { echo "$as_me:2338: error: No awk program found" >&5 2339268899Sbaptecho "$as_me: error: No awk program found" >&2;} 2340268899Sbapt { (exit 1); exit 1; }; } 2341268899Sbapt 2342234949Sbaptfor ac_prog in tdlint lint alint splint lclint 2343234949Sbaptdo 2344234949Sbapt # Extract the first word of "$ac_prog", so it can be a program name with args. 2345234949Sbaptset dummy $ac_prog; ac_word=$2 2346268899Sbaptecho "$as_me:2346: checking for $ac_word" >&5 2347234949Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2348234949Sbaptif test "${ac_cv_prog_LINT+set}" = set; then 2349234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2350234949Sbaptelse 2351234949Sbapt if test -n "$LINT"; then 2352234949Sbapt ac_cv_prog_LINT="$LINT" # Let the user override the test. 2353234949Sbaptelse 2354234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 2355234949Sbaptac_dummy="$PATH" 2356234949Sbaptfor ac_dir in $ac_dummy; do 2357234949Sbapt IFS=$ac_save_IFS 2358234949Sbapt test -z "$ac_dir" && ac_dir=. 2359234949Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 2360234949Sbaptac_cv_prog_LINT="$ac_prog" 2361268899Sbaptecho "$as_me:2361: found $ac_dir/$ac_word" >&5 2362234949Sbaptbreak 2363234949Sbaptdone 2364234949Sbapt 2365234949Sbaptfi 2366234949Sbaptfi 2367234949SbaptLINT=$ac_cv_prog_LINT 2368234949Sbaptif test -n "$LINT"; then 2369268899Sbapt echo "$as_me:2369: result: $LINT" >&5 2370234949Sbaptecho "${ECHO_T}$LINT" >&6 2371234949Sbaptelse 2372268899Sbapt echo "$as_me:2372: result: no" >&5 2373234949Sbaptecho "${ECHO_T}no" >&6 2374234949Sbaptfi 2375234949Sbapt 2376234949Sbapt test -n "$LINT" && break 2377234949Sbaptdone 2378234949Sbapt 2379234949Sbaptcf_XOPEN_SOURCE=500 2380234949Sbaptcf_POSIX_C_SOURCE=199506L 2381234949Sbaptcf_xopen_source= 2382234949Sbapt 2383234949Sbaptcase $host_os in #(vi 2384234949Sbaptaix[4-7]*) #(vi 2385234949Sbapt cf_xopen_source="-D_ALL_SOURCE" 2386234949Sbapt ;; 2387268899Sbaptcygwin|msys) #(vi 2388234949Sbapt cf_XOPEN_SOURCE=600 2389234949Sbapt ;; 2390234949Sbaptdarwin[0-8].*) #(vi 2391234949Sbapt cf_xopen_source="-D_APPLE_C_SOURCE" 2392234949Sbapt ;; 2393234949Sbaptdarwin*) #(vi 2394234949Sbapt cf_xopen_source="-D_DARWIN_C_SOURCE" 2395234949Sbapt cf_XOPEN_SOURCE= 2396234949Sbapt ;; 2397234949Sbaptfreebsd*|dragonfly*) #(vi 2398234949Sbapt # 5.x headers associate 2399234949Sbapt # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L 2400234949Sbapt # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L 2401234949Sbapt cf_POSIX_C_SOURCE=200112L 2402234949Sbapt cf_XOPEN_SOURCE=600 2403234949Sbapt cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 2404234949Sbapt ;; 2405234949Sbapthpux11*) #(vi 2406234949Sbapt cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500" 2407234949Sbapt ;; 2408234949Sbapthpux*) #(vi 2409234949Sbapt cf_xopen_source="-D_HPUX_SOURCE" 2410234949Sbapt ;; 2411234949Sbaptirix[56].*) #(vi 2412234949Sbapt cf_xopen_source="-D_SGI_SOURCE" 2413234949Sbapt cf_XOPEN_SOURCE= 2414234949Sbapt ;; 2415234949Sbaptlinux*|gnu*|mint*|k*bsd*-gnu) #(vi 2416234949Sbapt 2417268899Sbaptecho "$as_me:2417: checking if we must define _GNU_SOURCE" >&5 2418234949Sbaptecho $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6 2419234949Sbaptif test "${cf_cv_gnu_source+set}" = set; then 2420234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2421234949Sbaptelse 2422234949Sbapt 2423234949Sbaptcat >conftest.$ac_ext <<_ACEOF 2424268899Sbapt#line 2424 "configure" 2425234949Sbapt#include "confdefs.h" 2426234949Sbapt#include <sys/types.h> 2427234949Sbaptint 2428234949Sbaptmain () 2429234949Sbapt{ 2430234949Sbapt 2431234949Sbapt#ifndef _XOPEN_SOURCE 2432234949Sbaptmake an error 2433234949Sbapt#endif 2434234949Sbapt ; 2435234949Sbapt return 0; 2436234949Sbapt} 2437234949Sbapt_ACEOF 2438234949Sbaptrm -f conftest.$ac_objext 2439268899Sbaptif { (eval echo "$as_me:2439: \"$ac_compile\"") >&5 2440234949Sbapt (eval $ac_compile) 2>&5 2441234949Sbapt ac_status=$? 2442268899Sbapt echo "$as_me:2442: \$? = $ac_status" >&5 2443234949Sbapt (exit $ac_status); } && 2444234949Sbapt { ac_try='test -s conftest.$ac_objext' 2445268899Sbapt { (eval echo "$as_me:2445: \"$ac_try\"") >&5 2446234949Sbapt (eval $ac_try) 2>&5 2447234949Sbapt ac_status=$? 2448268899Sbapt echo "$as_me:2448: \$? = $ac_status" >&5 2449234949Sbapt (exit $ac_status); }; }; then 2450234949Sbapt cf_cv_gnu_source=no 2451234949Sbaptelse 2452234949Sbapt echo "$as_me: failed program was:" >&5 2453234949Sbaptcat conftest.$ac_ext >&5 2454234949Sbaptcf_save="$CPPFLAGS" 2455234949Sbapt CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" 2456234949Sbapt cat >conftest.$ac_ext <<_ACEOF 2457268899Sbapt#line 2457 "configure" 2458234949Sbapt#include "confdefs.h" 2459234949Sbapt#include <sys/types.h> 2460234949Sbaptint 2461234949Sbaptmain () 2462234949Sbapt{ 2463234949Sbapt 2464234949Sbapt#ifdef _XOPEN_SOURCE 2465234949Sbaptmake an error 2466234949Sbapt#endif 2467234949Sbapt ; 2468234949Sbapt return 0; 2469234949Sbapt} 2470234949Sbapt_ACEOF 2471234949Sbaptrm -f conftest.$ac_objext 2472268899Sbaptif { (eval echo "$as_me:2472: \"$ac_compile\"") >&5 2473234949Sbapt (eval $ac_compile) 2>&5 2474234949Sbapt ac_status=$? 2475268899Sbapt echo "$as_me:2475: \$? = $ac_status" >&5 2476234949Sbapt (exit $ac_status); } && 2477234949Sbapt { ac_try='test -s conftest.$ac_objext' 2478268899Sbapt { (eval echo "$as_me:2478: \"$ac_try\"") >&5 2479234949Sbapt (eval $ac_try) 2>&5 2480234949Sbapt ac_status=$? 2481268899Sbapt echo "$as_me:2481: \$? = $ac_status" >&5 2482234949Sbapt (exit $ac_status); }; }; then 2483234949Sbapt cf_cv_gnu_source=no 2484234949Sbaptelse 2485234949Sbapt echo "$as_me: failed program was:" >&5 2486234949Sbaptcat conftest.$ac_ext >&5 2487234949Sbaptcf_cv_gnu_source=yes 2488234949Sbaptfi 2489234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 2490234949Sbapt CPPFLAGS="$cf_save" 2491234949Sbapt 2492234949Sbaptfi 2493234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 2494234949Sbapt 2495234949Sbaptfi 2496268899Sbaptecho "$as_me:2496: result: $cf_cv_gnu_source" >&5 2497234949Sbaptecho "${ECHO_T}$cf_cv_gnu_source" >&6 2498234949Sbapttest "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" 2499234949Sbapt 2500234949Sbapt ;; 2501234949Sbaptmirbsd*) #(vi 2502234949Sbapt # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types 2503234949Sbapt cf_XOPEN_SOURCE= 2504234949Sbapt 2505234949Sbaptcf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 2506234949Sbapt 2507234949Sbaptcf_save_CFLAGS="$CFLAGS" 2508234949Sbaptcf_save_CPPFLAGS="$CPPFLAGS" 2509234949Sbapt 2510234949Sbaptcf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 2511234949Sbapt sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 2512234949Sbapt -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 2513234949Sbapt 2514234949Sbaptcf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 2515234949Sbapt sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 2516234949Sbapt -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 2517234949Sbapt 2518268899Sbaptecho "$as_me:2518: checking if we should define _POSIX_C_SOURCE" >&5 2519234949Sbaptecho $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 2520234949Sbaptif test "${cf_cv_posix_c_source+set}" = set; then 2521234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2522234949Sbaptelse 2523234949Sbapt 2524268899Sbaptecho "${as_me:-configure}:2524: testing if the symbol is already defined go no further ..." 1>&5 2525234949Sbapt 2526234949Sbapt cat >conftest.$ac_ext <<_ACEOF 2527268899Sbapt#line 2527 "configure" 2528234949Sbapt#include "confdefs.h" 2529234949Sbapt#include <sys/types.h> 2530234949Sbaptint 2531234949Sbaptmain () 2532234949Sbapt{ 2533234949Sbapt 2534234949Sbapt#ifndef _POSIX_C_SOURCE 2535234949Sbaptmake an error 2536234949Sbapt#endif 2537234949Sbapt ; 2538234949Sbapt return 0; 2539234949Sbapt} 2540234949Sbapt_ACEOF 2541234949Sbaptrm -f conftest.$ac_objext 2542268899Sbaptif { (eval echo "$as_me:2542: \"$ac_compile\"") >&5 2543234949Sbapt (eval $ac_compile) 2>&5 2544234949Sbapt ac_status=$? 2545268899Sbapt echo "$as_me:2545: \$? = $ac_status" >&5 2546234949Sbapt (exit $ac_status); } && 2547234949Sbapt { ac_try='test -s conftest.$ac_objext' 2548268899Sbapt { (eval echo "$as_me:2548: \"$ac_try\"") >&5 2549234949Sbapt (eval $ac_try) 2>&5 2550234949Sbapt ac_status=$? 2551268899Sbapt echo "$as_me:2551: \$? = $ac_status" >&5 2552234949Sbapt (exit $ac_status); }; }; then 2553234949Sbapt cf_cv_posix_c_source=no 2554234949Sbaptelse 2555234949Sbapt echo "$as_me: failed program was:" >&5 2556234949Sbaptcat conftest.$ac_ext >&5 2557234949Sbaptcf_want_posix_source=no 2558234949Sbapt case .$cf_POSIX_C_SOURCE in #(vi 2559234949Sbapt .[12]??*) #(vi 2560234949Sbapt cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 2561234949Sbapt ;; 2562234949Sbapt .2) #(vi 2563234949Sbapt cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 2564234949Sbapt cf_want_posix_source=yes 2565234949Sbapt ;; 2566234949Sbapt .*) 2567234949Sbapt cf_want_posix_source=yes 2568234949Sbapt ;; 2569234949Sbapt esac 2570234949Sbapt if test "$cf_want_posix_source" = yes ; then 2571234949Sbapt cat >conftest.$ac_ext <<_ACEOF 2572268899Sbapt#line 2572 "configure" 2573234949Sbapt#include "confdefs.h" 2574234949Sbapt#include <sys/types.h> 2575234949Sbaptint 2576234949Sbaptmain () 2577234949Sbapt{ 2578234949Sbapt 2579234949Sbapt#ifdef _POSIX_SOURCE 2580234949Sbaptmake an error 2581234949Sbapt#endif 2582234949Sbapt ; 2583234949Sbapt return 0; 2584234949Sbapt} 2585234949Sbapt_ACEOF 2586234949Sbaptrm -f conftest.$ac_objext 2587268899Sbaptif { (eval echo "$as_me:2587: \"$ac_compile\"") >&5 2588234949Sbapt (eval $ac_compile) 2>&5 2589234949Sbapt ac_status=$? 2590268899Sbapt echo "$as_me:2590: \$? = $ac_status" >&5 2591234949Sbapt (exit $ac_status); } && 2592234949Sbapt { ac_try='test -s conftest.$ac_objext' 2593268899Sbapt { (eval echo "$as_me:2593: \"$ac_try\"") >&5 2594234949Sbapt (eval $ac_try) 2>&5 2595234949Sbapt ac_status=$? 2596268899Sbapt echo "$as_me:2596: \$? = $ac_status" >&5 2597234949Sbapt (exit $ac_status); }; }; then 2598234949Sbapt : 2599234949Sbaptelse 2600234949Sbapt echo "$as_me: failed program was:" >&5 2601234949Sbaptcat conftest.$ac_ext >&5 2602234949Sbaptcf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 2603234949Sbaptfi 2604234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 2605234949Sbapt fi 2606234949Sbapt 2607268899Sbaptecho "${as_me:-configure}:2607: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 2608234949Sbapt 2609234949Sbapt CFLAGS="$cf_trim_CFLAGS" 2610234949Sbapt CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source" 2611234949Sbapt 2612268899Sbaptecho "${as_me:-configure}:2612: testing if the second compile does not leave our definition intact error ..." 1>&5 2613234949Sbapt 2614234949Sbapt cat >conftest.$ac_ext <<_ACEOF 2615268899Sbapt#line 2615 "configure" 2616234949Sbapt#include "confdefs.h" 2617234949Sbapt#include <sys/types.h> 2618234949Sbaptint 2619234949Sbaptmain () 2620234949Sbapt{ 2621234949Sbapt 2622234949Sbapt#ifndef _POSIX_C_SOURCE 2623234949Sbaptmake an error 2624234949Sbapt#endif 2625234949Sbapt ; 2626234949Sbapt return 0; 2627234949Sbapt} 2628234949Sbapt_ACEOF 2629234949Sbaptrm -f conftest.$ac_objext 2630268899Sbaptif { (eval echo "$as_me:2630: \"$ac_compile\"") >&5 2631234949Sbapt (eval $ac_compile) 2>&5 2632234949Sbapt ac_status=$? 2633268899Sbapt echo "$as_me:2633: \$? = $ac_status" >&5 2634234949Sbapt (exit $ac_status); } && 2635234949Sbapt { ac_try='test -s conftest.$ac_objext' 2636268899Sbapt { (eval echo "$as_me:2636: \"$ac_try\"") >&5 2637234949Sbapt (eval $ac_try) 2>&5 2638234949Sbapt ac_status=$? 2639268899Sbapt echo "$as_me:2639: \$? = $ac_status" >&5 2640234949Sbapt (exit $ac_status); }; }; then 2641234949Sbapt : 2642234949Sbaptelse 2643234949Sbapt echo "$as_me: failed program was:" >&5 2644234949Sbaptcat conftest.$ac_ext >&5 2645234949Sbaptcf_cv_posix_c_source=no 2646234949Sbaptfi 2647234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 2648234949Sbapt CFLAGS="$cf_save_CFLAGS" 2649234949Sbapt CPPFLAGS="$cf_save_CPPFLAGS" 2650234949Sbapt 2651234949Sbaptfi 2652234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 2653234949Sbapt 2654234949Sbaptfi 2655268899Sbaptecho "$as_me:2655: result: $cf_cv_posix_c_source" >&5 2656234949Sbaptecho "${ECHO_T}$cf_cv_posix_c_source" >&6 2657234949Sbapt 2658234949Sbaptif test "$cf_cv_posix_c_source" != no ; then 2659234949Sbapt CFLAGS="$cf_trim_CFLAGS" 2660234949Sbapt CPPFLAGS="$cf_trim_CPPFLAGS" 2661234949Sbapt 2662234949Sbaptcf_fix_cppflags=no 2663234949Sbaptcf_new_cflags= 2664234949Sbaptcf_new_cppflags= 2665234949Sbaptcf_new_extra_cppflags= 2666234949Sbapt 2667234949Sbaptfor cf_add_cflags in $cf_cv_posix_c_source 2668234949Sbaptdo 2669234949Sbaptcase $cf_fix_cppflags in 2670234949Sbaptno) 2671234949Sbapt case $cf_add_cflags in #(vi 2672234949Sbapt -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 2673234949Sbapt case $cf_add_cflags in 2674234949Sbapt -D*) 2675234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 2676234949Sbapt 2677234949Sbapt test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 2678234949Sbapt && test -z "${cf_tst_cflags}" \ 2679234949Sbapt && cf_fix_cppflags=yes 2680234949Sbapt 2681234949Sbapt if test $cf_fix_cppflags = yes ; then 2682234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2683234949Sbapt continue 2684234949Sbapt elif test "${cf_tst_cflags}" = "\"'" ; then 2685234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2686234949Sbapt continue 2687234949Sbapt fi 2688234949Sbapt ;; 2689234949Sbapt esac 2690234949Sbapt case "$CPPFLAGS" in 2691234949Sbapt *$cf_add_cflags) #(vi 2692234949Sbapt ;; 2693234949Sbapt *) #(vi 2694234949Sbapt case $cf_add_cflags in #(vi 2695234949Sbapt -D*) 2696234949Sbapt cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 2697234949Sbapt 2698234949SbaptCPPFLAGS=`echo "$CPPFLAGS" | \ 2699234949Sbapt sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 2700234949Sbapt -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 2701234949Sbapt 2702234949Sbapt ;; 2703234949Sbapt esac 2704234949Sbapt cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 2705234949Sbapt ;; 2706234949Sbapt esac 2707234949Sbapt ;; 2708234949Sbapt *) 2709234949Sbapt cf_new_cflags="$cf_new_cflags $cf_add_cflags" 2710234949Sbapt ;; 2711234949Sbapt esac 2712234949Sbapt ;; 2713234949Sbaptyes) 2714234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2715234949Sbapt 2716234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 2717234949Sbapt 2718234949Sbapt test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 2719234949Sbapt && test -z "${cf_tst_cflags}" \ 2720234949Sbapt && cf_fix_cppflags=no 2721234949Sbapt ;; 2722234949Sbaptesac 2723234949Sbaptdone 2724234949Sbapt 2725234949Sbaptif test -n "$cf_new_cflags" ; then 2726234949Sbapt 2727234949Sbapt CFLAGS="$CFLAGS $cf_new_cflags" 2728234949Sbaptfi 2729234949Sbapt 2730234949Sbaptif test -n "$cf_new_cppflags" ; then 2731234949Sbapt 2732234949Sbapt CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 2733234949Sbaptfi 2734234949Sbapt 2735234949Sbaptif test -n "$cf_new_extra_cppflags" ; then 2736234949Sbapt 2737234949Sbapt EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 2738234949Sbaptfi 2739234949Sbapt 2740234949Sbaptfi 2741234949Sbapt 2742234949Sbapt ;; 2743234949Sbaptnetbsd*) #(vi 2744234949Sbapt cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw 2745234949Sbapt ;; 2746234949Sbaptopenbsd[4-9]*) #(vi 2747234949Sbapt # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw 2748234949Sbapt cf_xopen_source="-D_BSD_SOURCE" 2749234949Sbapt cf_XOPEN_SOURCE=600 2750234949Sbapt ;; 2751234949Sbaptopenbsd*) #(vi 2752234949Sbapt # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw 2753234949Sbapt ;; 2754234949Sbaptosf[45]*) #(vi 2755234949Sbapt cf_xopen_source="-D_OSF_SOURCE" 2756234949Sbapt ;; 2757234949Sbaptnto-qnx*) #(vi 2758234949Sbapt cf_xopen_source="-D_QNX_SOURCE" 2759234949Sbapt ;; 2760234949Sbaptsco*) #(vi 2761234949Sbapt # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer 2762234949Sbapt ;; 2763234949Sbaptsolaris2.*) #(vi 2764234949Sbapt cf_xopen_source="-D__EXTENSIONS__" 2765268899Sbapt cf_cv_xopen_source=broken 2766234949Sbapt ;; 2767234949Sbapt*) 2768234949Sbapt 2769268899Sbaptecho "$as_me:2769: checking if we should define _XOPEN_SOURCE" >&5 2770234949Sbaptecho $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 2771234949Sbaptif test "${cf_cv_xopen_source+set}" = set; then 2772234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2773234949Sbaptelse 2774234949Sbapt 2775234949Sbapt cat >conftest.$ac_ext <<_ACEOF 2776268899Sbapt#line 2776 "configure" 2777234949Sbapt#include "confdefs.h" 2778234949Sbapt 2779234949Sbapt#include <stdlib.h> 2780234949Sbapt#include <string.h> 2781234949Sbapt#include <sys/types.h> 2782234949Sbapt 2783234949Sbaptint 2784234949Sbaptmain () 2785234949Sbapt{ 2786234949Sbapt 2787234949Sbapt#ifndef _XOPEN_SOURCE 2788234949Sbaptmake an error 2789234949Sbapt#endif 2790234949Sbapt ; 2791234949Sbapt return 0; 2792234949Sbapt} 2793234949Sbapt_ACEOF 2794234949Sbaptrm -f conftest.$ac_objext 2795268899Sbaptif { (eval echo "$as_me:2795: \"$ac_compile\"") >&5 2796234949Sbapt (eval $ac_compile) 2>&5 2797234949Sbapt ac_status=$? 2798268899Sbapt echo "$as_me:2798: \$? = $ac_status" >&5 2799234949Sbapt (exit $ac_status); } && 2800234949Sbapt { ac_try='test -s conftest.$ac_objext' 2801268899Sbapt { (eval echo "$as_me:2801: \"$ac_try\"") >&5 2802234949Sbapt (eval $ac_try) 2>&5 2803234949Sbapt ac_status=$? 2804268899Sbapt echo "$as_me:2804: \$? = $ac_status" >&5 2805234949Sbapt (exit $ac_status); }; }; then 2806234949Sbapt cf_cv_xopen_source=no 2807234949Sbaptelse 2808234949Sbapt echo "$as_me: failed program was:" >&5 2809234949Sbaptcat conftest.$ac_ext >&5 2810234949Sbaptcf_save="$CPPFLAGS" 2811234949Sbapt CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 2812234949Sbapt cat >conftest.$ac_ext <<_ACEOF 2813268899Sbapt#line 2813 "configure" 2814234949Sbapt#include "confdefs.h" 2815234949Sbapt 2816234949Sbapt#include <stdlib.h> 2817234949Sbapt#include <string.h> 2818234949Sbapt#include <sys/types.h> 2819234949Sbapt 2820234949Sbaptint 2821234949Sbaptmain () 2822234949Sbapt{ 2823234949Sbapt 2824234949Sbapt#ifdef _XOPEN_SOURCE 2825234949Sbaptmake an error 2826234949Sbapt#endif 2827234949Sbapt ; 2828234949Sbapt return 0; 2829234949Sbapt} 2830234949Sbapt_ACEOF 2831234949Sbaptrm -f conftest.$ac_objext 2832268899Sbaptif { (eval echo "$as_me:2832: \"$ac_compile\"") >&5 2833234949Sbapt (eval $ac_compile) 2>&5 2834234949Sbapt ac_status=$? 2835268899Sbapt echo "$as_me:2835: \$? = $ac_status" >&5 2836234949Sbapt (exit $ac_status); } && 2837234949Sbapt { ac_try='test -s conftest.$ac_objext' 2838268899Sbapt { (eval echo "$as_me:2838: \"$ac_try\"") >&5 2839234949Sbapt (eval $ac_try) 2>&5 2840234949Sbapt ac_status=$? 2841268899Sbapt echo "$as_me:2841: \$? = $ac_status" >&5 2842234949Sbapt (exit $ac_status); }; }; then 2843234949Sbapt cf_cv_xopen_source=no 2844234949Sbaptelse 2845234949Sbapt echo "$as_me: failed program was:" >&5 2846234949Sbaptcat conftest.$ac_ext >&5 2847234949Sbaptcf_cv_xopen_source=$cf_XOPEN_SOURCE 2848234949Sbaptfi 2849234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 2850234949Sbapt CPPFLAGS="$cf_save" 2851234949Sbapt 2852234949Sbaptfi 2853234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 2854234949Sbapt 2855234949Sbaptfi 2856268899Sbaptecho "$as_me:2856: result: $cf_cv_xopen_source" >&5 2857234949Sbaptecho "${ECHO_T}$cf_cv_xopen_source" >&6 2858234949Sbapt 2859234949Sbaptif test "$cf_cv_xopen_source" != no ; then 2860234949Sbapt 2861234949SbaptCFLAGS=`echo "$CFLAGS" | \ 2862234949Sbapt sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 2863234949Sbapt -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 2864234949Sbapt 2865234949SbaptCPPFLAGS=`echo "$CPPFLAGS" | \ 2866234949Sbapt sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 2867234949Sbapt -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 2868234949Sbapt 2869234949Sbapt cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 2870234949Sbapt 2871234949Sbaptcf_fix_cppflags=no 2872234949Sbaptcf_new_cflags= 2873234949Sbaptcf_new_cppflags= 2874234949Sbaptcf_new_extra_cppflags= 2875234949Sbapt 2876234949Sbaptfor cf_add_cflags in $cf_temp_xopen_source 2877234949Sbaptdo 2878234949Sbaptcase $cf_fix_cppflags in 2879234949Sbaptno) 2880234949Sbapt case $cf_add_cflags in #(vi 2881234949Sbapt -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 2882234949Sbapt case $cf_add_cflags in 2883234949Sbapt -D*) 2884234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 2885234949Sbapt 2886234949Sbapt test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 2887234949Sbapt && test -z "${cf_tst_cflags}" \ 2888234949Sbapt && cf_fix_cppflags=yes 2889234949Sbapt 2890234949Sbapt if test $cf_fix_cppflags = yes ; then 2891234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2892234949Sbapt continue 2893234949Sbapt elif test "${cf_tst_cflags}" = "\"'" ; then 2894234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2895234949Sbapt continue 2896234949Sbapt fi 2897234949Sbapt ;; 2898234949Sbapt esac 2899234949Sbapt case "$CPPFLAGS" in 2900234949Sbapt *$cf_add_cflags) #(vi 2901234949Sbapt ;; 2902234949Sbapt *) #(vi 2903234949Sbapt case $cf_add_cflags in #(vi 2904234949Sbapt -D*) 2905234949Sbapt cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 2906234949Sbapt 2907234949SbaptCPPFLAGS=`echo "$CPPFLAGS" | \ 2908234949Sbapt sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 2909234949Sbapt -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 2910234949Sbapt 2911234949Sbapt ;; 2912234949Sbapt esac 2913234949Sbapt cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 2914234949Sbapt ;; 2915234949Sbapt esac 2916234949Sbapt ;; 2917234949Sbapt *) 2918234949Sbapt cf_new_cflags="$cf_new_cflags $cf_add_cflags" 2919234949Sbapt ;; 2920234949Sbapt esac 2921234949Sbapt ;; 2922234949Sbaptyes) 2923234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2924234949Sbapt 2925234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 2926234949Sbapt 2927234949Sbapt test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 2928234949Sbapt && test -z "${cf_tst_cflags}" \ 2929234949Sbapt && cf_fix_cppflags=no 2930234949Sbapt ;; 2931234949Sbaptesac 2932234949Sbaptdone 2933234949Sbapt 2934234949Sbaptif test -n "$cf_new_cflags" ; then 2935234949Sbapt 2936234949Sbapt CFLAGS="$CFLAGS $cf_new_cflags" 2937234949Sbaptfi 2938234949Sbapt 2939234949Sbaptif test -n "$cf_new_cppflags" ; then 2940234949Sbapt 2941234949Sbapt CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 2942234949Sbaptfi 2943234949Sbapt 2944234949Sbaptif test -n "$cf_new_extra_cppflags" ; then 2945234949Sbapt 2946234949Sbapt EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 2947234949Sbaptfi 2948234949Sbapt 2949234949Sbaptfi 2950234949Sbapt 2951234949Sbaptcf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 2952234949Sbapt 2953234949Sbaptcf_save_CFLAGS="$CFLAGS" 2954234949Sbaptcf_save_CPPFLAGS="$CPPFLAGS" 2955234949Sbapt 2956234949Sbaptcf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 2957234949Sbapt sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 2958234949Sbapt -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 2959234949Sbapt 2960234949Sbaptcf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 2961234949Sbapt sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 2962234949Sbapt -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 2963234949Sbapt 2964268899Sbaptecho "$as_me:2964: checking if we should define _POSIX_C_SOURCE" >&5 2965234949Sbaptecho $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 2966234949Sbaptif test "${cf_cv_posix_c_source+set}" = set; then 2967234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2968234949Sbaptelse 2969234949Sbapt 2970268899Sbaptecho "${as_me:-configure}:2970: testing if the symbol is already defined go no further ..." 1>&5 2971234949Sbapt 2972234949Sbapt cat >conftest.$ac_ext <<_ACEOF 2973268899Sbapt#line 2973 "configure" 2974234949Sbapt#include "confdefs.h" 2975234949Sbapt#include <sys/types.h> 2976234949Sbaptint 2977234949Sbaptmain () 2978234949Sbapt{ 2979234949Sbapt 2980234949Sbapt#ifndef _POSIX_C_SOURCE 2981234949Sbaptmake an error 2982234949Sbapt#endif 2983234949Sbapt ; 2984234949Sbapt return 0; 2985234949Sbapt} 2986234949Sbapt_ACEOF 2987234949Sbaptrm -f conftest.$ac_objext 2988268899Sbaptif { (eval echo "$as_me:2988: \"$ac_compile\"") >&5 2989234949Sbapt (eval $ac_compile) 2>&5 2990234949Sbapt ac_status=$? 2991268899Sbapt echo "$as_me:2991: \$? = $ac_status" >&5 2992234949Sbapt (exit $ac_status); } && 2993234949Sbapt { ac_try='test -s conftest.$ac_objext' 2994268899Sbapt { (eval echo "$as_me:2994: \"$ac_try\"") >&5 2995234949Sbapt (eval $ac_try) 2>&5 2996234949Sbapt ac_status=$? 2997268899Sbapt echo "$as_me:2997: \$? = $ac_status" >&5 2998234949Sbapt (exit $ac_status); }; }; then 2999234949Sbapt cf_cv_posix_c_source=no 3000234949Sbaptelse 3001234949Sbapt echo "$as_me: failed program was:" >&5 3002234949Sbaptcat conftest.$ac_ext >&5 3003234949Sbaptcf_want_posix_source=no 3004234949Sbapt case .$cf_POSIX_C_SOURCE in #(vi 3005234949Sbapt .[12]??*) #(vi 3006234949Sbapt cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3007234949Sbapt ;; 3008234949Sbapt .2) #(vi 3009234949Sbapt cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3010234949Sbapt cf_want_posix_source=yes 3011234949Sbapt ;; 3012234949Sbapt .*) 3013234949Sbapt cf_want_posix_source=yes 3014234949Sbapt ;; 3015234949Sbapt esac 3016234949Sbapt if test "$cf_want_posix_source" = yes ; then 3017234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3018268899Sbapt#line 3018 "configure" 3019234949Sbapt#include "confdefs.h" 3020234949Sbapt#include <sys/types.h> 3021234949Sbaptint 3022234949Sbaptmain () 3023234949Sbapt{ 3024234949Sbapt 3025234949Sbapt#ifdef _POSIX_SOURCE 3026234949Sbaptmake an error 3027234949Sbapt#endif 3028234949Sbapt ; 3029234949Sbapt return 0; 3030234949Sbapt} 3031234949Sbapt_ACEOF 3032234949Sbaptrm -f conftest.$ac_objext 3033268899Sbaptif { (eval echo "$as_me:3033: \"$ac_compile\"") >&5 3034234949Sbapt (eval $ac_compile) 2>&5 3035234949Sbapt ac_status=$? 3036268899Sbapt echo "$as_me:3036: \$? = $ac_status" >&5 3037234949Sbapt (exit $ac_status); } && 3038234949Sbapt { ac_try='test -s conftest.$ac_objext' 3039268899Sbapt { (eval echo "$as_me:3039: \"$ac_try\"") >&5 3040234949Sbapt (eval $ac_try) 2>&5 3041234949Sbapt ac_status=$? 3042268899Sbapt echo "$as_me:3042: \$? = $ac_status" >&5 3043234949Sbapt (exit $ac_status); }; }; then 3044234949Sbapt : 3045234949Sbaptelse 3046234949Sbapt echo "$as_me: failed program was:" >&5 3047234949Sbaptcat conftest.$ac_ext >&5 3048234949Sbaptcf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 3049234949Sbaptfi 3050234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 3051234949Sbapt fi 3052234949Sbapt 3053268899Sbaptecho "${as_me:-configure}:3053: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 3054234949Sbapt 3055234949Sbapt CFLAGS="$cf_trim_CFLAGS" 3056234949Sbapt CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source" 3057234949Sbapt 3058268899Sbaptecho "${as_me:-configure}:3058: testing if the second compile does not leave our definition intact error ..." 1>&5 3059234949Sbapt 3060234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3061268899Sbapt#line 3061 "configure" 3062234949Sbapt#include "confdefs.h" 3063234949Sbapt#include <sys/types.h> 3064234949Sbaptint 3065234949Sbaptmain () 3066234949Sbapt{ 3067234949Sbapt 3068234949Sbapt#ifndef _POSIX_C_SOURCE 3069234949Sbaptmake an error 3070234949Sbapt#endif 3071234949Sbapt ; 3072234949Sbapt return 0; 3073234949Sbapt} 3074234949Sbapt_ACEOF 3075234949Sbaptrm -f conftest.$ac_objext 3076268899Sbaptif { (eval echo "$as_me:3076: \"$ac_compile\"") >&5 3077234949Sbapt (eval $ac_compile) 2>&5 3078234949Sbapt ac_status=$? 3079268899Sbapt echo "$as_me:3079: \$? = $ac_status" >&5 3080234949Sbapt (exit $ac_status); } && 3081234949Sbapt { ac_try='test -s conftest.$ac_objext' 3082268899Sbapt { (eval echo "$as_me:3082: \"$ac_try\"") >&5 3083234949Sbapt (eval $ac_try) 2>&5 3084234949Sbapt ac_status=$? 3085268899Sbapt echo "$as_me:3085: \$? = $ac_status" >&5 3086234949Sbapt (exit $ac_status); }; }; then 3087234949Sbapt : 3088234949Sbaptelse 3089234949Sbapt echo "$as_me: failed program was:" >&5 3090234949Sbaptcat conftest.$ac_ext >&5 3091234949Sbaptcf_cv_posix_c_source=no 3092234949Sbaptfi 3093234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 3094234949Sbapt CFLAGS="$cf_save_CFLAGS" 3095234949Sbapt CPPFLAGS="$cf_save_CPPFLAGS" 3096234949Sbapt 3097234949Sbaptfi 3098234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 3099234949Sbapt 3100234949Sbaptfi 3101268899Sbaptecho "$as_me:3101: result: $cf_cv_posix_c_source" >&5 3102234949Sbaptecho "${ECHO_T}$cf_cv_posix_c_source" >&6 3103234949Sbapt 3104234949Sbaptif test "$cf_cv_posix_c_source" != no ; then 3105234949Sbapt CFLAGS="$cf_trim_CFLAGS" 3106234949Sbapt CPPFLAGS="$cf_trim_CPPFLAGS" 3107234949Sbapt 3108234949Sbaptcf_fix_cppflags=no 3109234949Sbaptcf_new_cflags= 3110234949Sbaptcf_new_cppflags= 3111234949Sbaptcf_new_extra_cppflags= 3112234949Sbapt 3113234949Sbaptfor cf_add_cflags in $cf_cv_posix_c_source 3114234949Sbaptdo 3115234949Sbaptcase $cf_fix_cppflags in 3116234949Sbaptno) 3117234949Sbapt case $cf_add_cflags in #(vi 3118234949Sbapt -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 3119234949Sbapt case $cf_add_cflags in 3120234949Sbapt -D*) 3121234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3122234949Sbapt 3123234949Sbapt test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3124234949Sbapt && test -z "${cf_tst_cflags}" \ 3125234949Sbapt && cf_fix_cppflags=yes 3126234949Sbapt 3127234949Sbapt if test $cf_fix_cppflags = yes ; then 3128234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3129234949Sbapt continue 3130234949Sbapt elif test "${cf_tst_cflags}" = "\"'" ; then 3131234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3132234949Sbapt continue 3133234949Sbapt fi 3134234949Sbapt ;; 3135234949Sbapt esac 3136234949Sbapt case "$CPPFLAGS" in 3137234949Sbapt *$cf_add_cflags) #(vi 3138234949Sbapt ;; 3139234949Sbapt *) #(vi 3140234949Sbapt case $cf_add_cflags in #(vi 3141234949Sbapt -D*) 3142234949Sbapt cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3143234949Sbapt 3144234949SbaptCPPFLAGS=`echo "$CPPFLAGS" | \ 3145234949Sbapt sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3146234949Sbapt -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3147234949Sbapt 3148234949Sbapt ;; 3149234949Sbapt esac 3150234949Sbapt cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3151234949Sbapt ;; 3152234949Sbapt esac 3153234949Sbapt ;; 3154234949Sbapt *) 3155234949Sbapt cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3156234949Sbapt ;; 3157234949Sbapt esac 3158234949Sbapt ;; 3159234949Sbaptyes) 3160234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3161234949Sbapt 3162234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3163234949Sbapt 3164234949Sbapt test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3165234949Sbapt && test -z "${cf_tst_cflags}" \ 3166234949Sbapt && cf_fix_cppflags=no 3167234949Sbapt ;; 3168234949Sbaptesac 3169234949Sbaptdone 3170234949Sbapt 3171234949Sbaptif test -n "$cf_new_cflags" ; then 3172234949Sbapt 3173234949Sbapt CFLAGS="$CFLAGS $cf_new_cflags" 3174234949Sbaptfi 3175234949Sbapt 3176234949Sbaptif test -n "$cf_new_cppflags" ; then 3177234949Sbapt 3178234949Sbapt CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3179234949Sbaptfi 3180234949Sbapt 3181234949Sbaptif test -n "$cf_new_extra_cppflags" ; then 3182234949Sbapt 3183234949Sbapt EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3184234949Sbaptfi 3185234949Sbapt 3186234949Sbaptfi 3187234949Sbapt 3188234949Sbapt ;; 3189234949Sbaptesac 3190234949Sbapt 3191234949Sbaptif test -n "$cf_xopen_source" ; then 3192234949Sbapt 3193234949Sbaptcf_fix_cppflags=no 3194234949Sbaptcf_new_cflags= 3195234949Sbaptcf_new_cppflags= 3196234949Sbaptcf_new_extra_cppflags= 3197234949Sbapt 3198234949Sbaptfor cf_add_cflags in $cf_xopen_source 3199234949Sbaptdo 3200234949Sbaptcase $cf_fix_cppflags in 3201234949Sbaptno) 3202234949Sbapt case $cf_add_cflags in #(vi 3203234949Sbapt -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 3204234949Sbapt case $cf_add_cflags in 3205234949Sbapt -D*) 3206234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3207234949Sbapt 3208234949Sbapt test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3209234949Sbapt && test -z "${cf_tst_cflags}" \ 3210234949Sbapt && cf_fix_cppflags=yes 3211234949Sbapt 3212234949Sbapt if test $cf_fix_cppflags = yes ; then 3213234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3214234949Sbapt continue 3215234949Sbapt elif test "${cf_tst_cflags}" = "\"'" ; then 3216234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3217234949Sbapt continue 3218234949Sbapt fi 3219234949Sbapt ;; 3220234949Sbapt esac 3221234949Sbapt case "$CPPFLAGS" in 3222234949Sbapt *$cf_add_cflags) #(vi 3223234949Sbapt ;; 3224234949Sbapt *) #(vi 3225234949Sbapt case $cf_add_cflags in #(vi 3226234949Sbapt -D*) 3227234949Sbapt cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3228234949Sbapt 3229234949SbaptCPPFLAGS=`echo "$CPPFLAGS" | \ 3230234949Sbapt sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3231234949Sbapt -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3232234949Sbapt 3233234949Sbapt ;; 3234234949Sbapt esac 3235234949Sbapt cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3236234949Sbapt ;; 3237234949Sbapt esac 3238234949Sbapt ;; 3239234949Sbapt *) 3240234949Sbapt cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3241234949Sbapt ;; 3242234949Sbapt esac 3243234949Sbapt ;; 3244234949Sbaptyes) 3245234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3246234949Sbapt 3247234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3248234949Sbapt 3249234949Sbapt test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3250234949Sbapt && test -z "${cf_tst_cflags}" \ 3251234949Sbapt && cf_fix_cppflags=no 3252234949Sbapt ;; 3253234949Sbaptesac 3254234949Sbaptdone 3255234949Sbapt 3256234949Sbaptif test -n "$cf_new_cflags" ; then 3257234949Sbapt 3258234949Sbapt CFLAGS="$CFLAGS $cf_new_cflags" 3259234949Sbaptfi 3260234949Sbapt 3261234949Sbaptif test -n "$cf_new_cppflags" ; then 3262234949Sbapt 3263234949Sbapt CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3264234949Sbaptfi 3265234949Sbapt 3266234949Sbaptif test -n "$cf_new_extra_cppflags" ; then 3267234949Sbapt 3268234949Sbapt EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3269234949Sbaptfi 3270234949Sbapt 3271234949Sbaptfi 3272234949Sbapt 3273234949Sbaptif test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then 3274268899Sbapt echo "$as_me:3274: checking if _XOPEN_SOURCE really is set" >&5 3275234949Sbaptecho $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6 3276234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3277268899Sbapt#line 3277 "configure" 3278234949Sbapt#include "confdefs.h" 3279234949Sbapt#include <stdlib.h> 3280234949Sbaptint 3281234949Sbaptmain () 3282234949Sbapt{ 3283234949Sbapt 3284234949Sbapt#ifndef _XOPEN_SOURCE 3285234949Sbaptmake an error 3286234949Sbapt#endif 3287234949Sbapt ; 3288234949Sbapt return 0; 3289234949Sbapt} 3290234949Sbapt_ACEOF 3291234949Sbaptrm -f conftest.$ac_objext 3292268899Sbaptif { (eval echo "$as_me:3292: \"$ac_compile\"") >&5 3293234949Sbapt (eval $ac_compile) 2>&5 3294234949Sbapt ac_status=$? 3295268899Sbapt echo "$as_me:3295: \$? = $ac_status" >&5 3296234949Sbapt (exit $ac_status); } && 3297234949Sbapt { ac_try='test -s conftest.$ac_objext' 3298268899Sbapt { (eval echo "$as_me:3298: \"$ac_try\"") >&5 3299234949Sbapt (eval $ac_try) 2>&5 3300234949Sbapt ac_status=$? 3301268899Sbapt echo "$as_me:3301: \$? = $ac_status" >&5 3302234949Sbapt (exit $ac_status); }; }; then 3303234949Sbapt cf_XOPEN_SOURCE_set=yes 3304234949Sbaptelse 3305234949Sbapt echo "$as_me: failed program was:" >&5 3306234949Sbaptcat conftest.$ac_ext >&5 3307234949Sbaptcf_XOPEN_SOURCE_set=no 3308234949Sbaptfi 3309234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 3310268899Sbapt echo "$as_me:3310: result: $cf_XOPEN_SOURCE_set" >&5 3311234949Sbaptecho "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6 3312234949Sbapt if test $cf_XOPEN_SOURCE_set = yes 3313234949Sbapt then 3314234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3315268899Sbapt#line 3315 "configure" 3316234949Sbapt#include "confdefs.h" 3317234949Sbapt#include <stdlib.h> 3318234949Sbaptint 3319234949Sbaptmain () 3320234949Sbapt{ 3321234949Sbapt 3322234949Sbapt#if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE 3323234949Sbaptmake an error 3324234949Sbapt#endif 3325234949Sbapt ; 3326234949Sbapt return 0; 3327234949Sbapt} 3328234949Sbapt_ACEOF 3329234949Sbaptrm -f conftest.$ac_objext 3330268899Sbaptif { (eval echo "$as_me:3330: \"$ac_compile\"") >&5 3331234949Sbapt (eval $ac_compile) 2>&5 3332234949Sbapt ac_status=$? 3333268899Sbapt echo "$as_me:3333: \$? = $ac_status" >&5 3334234949Sbapt (exit $ac_status); } && 3335234949Sbapt { ac_try='test -s conftest.$ac_objext' 3336268899Sbapt { (eval echo "$as_me:3336: \"$ac_try\"") >&5 3337234949Sbapt (eval $ac_try) 2>&5 3338234949Sbapt ac_status=$? 3339268899Sbapt echo "$as_me:3339: \$? = $ac_status" >&5 3340234949Sbapt (exit $ac_status); }; }; then 3341234949Sbapt cf_XOPEN_SOURCE_set_ok=yes 3342234949Sbaptelse 3343234949Sbapt echo "$as_me: failed program was:" >&5 3344234949Sbaptcat conftest.$ac_ext >&5 3345234949Sbaptcf_XOPEN_SOURCE_set_ok=no 3346234949Sbaptfi 3347234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 3348234949Sbapt if test $cf_XOPEN_SOURCE_set_ok = no 3349234949Sbapt then 3350268899Sbapt { echo "$as_me:3350: WARNING: _XOPEN_SOURCE is lower than requested" >&5 3351234949Sbaptecho "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;} 3352234949Sbapt fi 3353234949Sbapt else 3354234949Sbapt 3355268899Sbaptecho "$as_me:3355: checking if we should define _XOPEN_SOURCE" >&5 3356234949Sbaptecho $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 3357234949Sbaptif test "${cf_cv_xopen_source+set}" = set; then 3358234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 3359234949Sbaptelse 3360234949Sbapt 3361234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3362268899Sbapt#line 3362 "configure" 3363234949Sbapt#include "confdefs.h" 3364234949Sbapt 3365234949Sbapt#include <stdlib.h> 3366234949Sbapt#include <string.h> 3367234949Sbapt#include <sys/types.h> 3368234949Sbapt 3369234949Sbaptint 3370234949Sbaptmain () 3371234949Sbapt{ 3372234949Sbapt 3373234949Sbapt#ifndef _XOPEN_SOURCE 3374234949Sbaptmake an error 3375234949Sbapt#endif 3376234949Sbapt ; 3377234949Sbapt return 0; 3378234949Sbapt} 3379234949Sbapt_ACEOF 3380234949Sbaptrm -f conftest.$ac_objext 3381268899Sbaptif { (eval echo "$as_me:3381: \"$ac_compile\"") >&5 3382234949Sbapt (eval $ac_compile) 2>&5 3383234949Sbapt ac_status=$? 3384268899Sbapt echo "$as_me:3384: \$? = $ac_status" >&5 3385234949Sbapt (exit $ac_status); } && 3386234949Sbapt { ac_try='test -s conftest.$ac_objext' 3387268899Sbapt { (eval echo "$as_me:3387: \"$ac_try\"") >&5 3388234949Sbapt (eval $ac_try) 2>&5 3389234949Sbapt ac_status=$? 3390268899Sbapt echo "$as_me:3390: \$? = $ac_status" >&5 3391234949Sbapt (exit $ac_status); }; }; then 3392234949Sbapt cf_cv_xopen_source=no 3393234949Sbaptelse 3394234949Sbapt echo "$as_me: failed program was:" >&5 3395234949Sbaptcat conftest.$ac_ext >&5 3396234949Sbaptcf_save="$CPPFLAGS" 3397234949Sbapt CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 3398234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3399268899Sbapt#line 3399 "configure" 3400234949Sbapt#include "confdefs.h" 3401234949Sbapt 3402234949Sbapt#include <stdlib.h> 3403234949Sbapt#include <string.h> 3404234949Sbapt#include <sys/types.h> 3405234949Sbapt 3406234949Sbaptint 3407234949Sbaptmain () 3408234949Sbapt{ 3409234949Sbapt 3410234949Sbapt#ifdef _XOPEN_SOURCE 3411234949Sbaptmake an error 3412234949Sbapt#endif 3413234949Sbapt ; 3414234949Sbapt return 0; 3415234949Sbapt} 3416234949Sbapt_ACEOF 3417234949Sbaptrm -f conftest.$ac_objext 3418268899Sbaptif { (eval echo "$as_me:3418: \"$ac_compile\"") >&5 3419234949Sbapt (eval $ac_compile) 2>&5 3420234949Sbapt ac_status=$? 3421268899Sbapt echo "$as_me:3421: \$? = $ac_status" >&5 3422234949Sbapt (exit $ac_status); } && 3423234949Sbapt { ac_try='test -s conftest.$ac_objext' 3424268899Sbapt { (eval echo "$as_me:3424: \"$ac_try\"") >&5 3425234949Sbapt (eval $ac_try) 2>&5 3426234949Sbapt ac_status=$? 3427268899Sbapt echo "$as_me:3427: \$? = $ac_status" >&5 3428234949Sbapt (exit $ac_status); }; }; then 3429234949Sbapt cf_cv_xopen_source=no 3430234949Sbaptelse 3431234949Sbapt echo "$as_me: failed program was:" >&5 3432234949Sbaptcat conftest.$ac_ext >&5 3433234949Sbaptcf_cv_xopen_source=$cf_XOPEN_SOURCE 3434234949Sbaptfi 3435234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 3436234949Sbapt CPPFLAGS="$cf_save" 3437234949Sbapt 3438234949Sbaptfi 3439234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 3440234949Sbapt 3441234949Sbaptfi 3442268899Sbaptecho "$as_me:3442: result: $cf_cv_xopen_source" >&5 3443234949Sbaptecho "${ECHO_T}$cf_cv_xopen_source" >&6 3444234949Sbapt 3445234949Sbaptif test "$cf_cv_xopen_source" != no ; then 3446234949Sbapt 3447234949SbaptCFLAGS=`echo "$CFLAGS" | \ 3448234949Sbapt sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3449234949Sbapt -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3450234949Sbapt 3451234949SbaptCPPFLAGS=`echo "$CPPFLAGS" | \ 3452234949Sbapt sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3453234949Sbapt -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3454234949Sbapt 3455234949Sbapt cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 3456234949Sbapt 3457234949Sbaptcf_fix_cppflags=no 3458234949Sbaptcf_new_cflags= 3459234949Sbaptcf_new_cppflags= 3460234949Sbaptcf_new_extra_cppflags= 3461234949Sbapt 3462234949Sbaptfor cf_add_cflags in $cf_temp_xopen_source 3463234949Sbaptdo 3464234949Sbaptcase $cf_fix_cppflags in 3465234949Sbaptno) 3466234949Sbapt case $cf_add_cflags in #(vi 3467234949Sbapt -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 3468234949Sbapt case $cf_add_cflags in 3469234949Sbapt -D*) 3470234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3471234949Sbapt 3472234949Sbapt test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3473234949Sbapt && test -z "${cf_tst_cflags}" \ 3474234949Sbapt && cf_fix_cppflags=yes 3475234949Sbapt 3476234949Sbapt if test $cf_fix_cppflags = yes ; then 3477234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3478234949Sbapt continue 3479234949Sbapt elif test "${cf_tst_cflags}" = "\"'" ; then 3480234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3481234949Sbapt continue 3482234949Sbapt fi 3483234949Sbapt ;; 3484234949Sbapt esac 3485234949Sbapt case "$CPPFLAGS" in 3486234949Sbapt *$cf_add_cflags) #(vi 3487234949Sbapt ;; 3488234949Sbapt *) #(vi 3489234949Sbapt case $cf_add_cflags in #(vi 3490234949Sbapt -D*) 3491234949Sbapt cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3492234949Sbapt 3493234949SbaptCPPFLAGS=`echo "$CPPFLAGS" | \ 3494234949Sbapt sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3495234949Sbapt -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3496234949Sbapt 3497234949Sbapt ;; 3498234949Sbapt esac 3499234949Sbapt cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3500234949Sbapt ;; 3501234949Sbapt esac 3502234949Sbapt ;; 3503234949Sbapt *) 3504234949Sbapt cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3505234949Sbapt ;; 3506234949Sbapt esac 3507234949Sbapt ;; 3508234949Sbaptyes) 3509234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3510234949Sbapt 3511234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3512234949Sbapt 3513234949Sbapt test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 3514234949Sbapt && test -z "${cf_tst_cflags}" \ 3515234949Sbapt && cf_fix_cppflags=no 3516234949Sbapt ;; 3517234949Sbaptesac 3518234949Sbaptdone 3519234949Sbapt 3520234949Sbaptif test -n "$cf_new_cflags" ; then 3521234949Sbapt 3522234949Sbapt CFLAGS="$CFLAGS $cf_new_cflags" 3523234949Sbaptfi 3524234949Sbapt 3525234949Sbaptif test -n "$cf_new_cppflags" ; then 3526234949Sbapt 3527234949Sbapt CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3528234949Sbaptfi 3529234949Sbapt 3530234949Sbaptif test -n "$cf_new_extra_cppflags" ; then 3531234949Sbapt 3532234949Sbapt EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3533234949Sbaptfi 3534234949Sbapt 3535234949Sbaptfi 3536234949Sbapt 3537234949Sbapt fi 3538234949Sbaptfi 3539234949Sbapt 3540234949Sbaptac_ext=c 3541234949Sbaptac_cpp='$CPP $CPPFLAGS' 3542234949Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3543234949Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3544234949Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu 3545234949Sbaptac_main_return=return 3546268899Sbaptecho "$as_me:3546: checking how to run the C preprocessor" >&5 3547234949Sbaptecho $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3548234949Sbapt# On Suns, sometimes $CPP names a directory. 3549234949Sbaptif test -n "$CPP" && test -d "$CPP"; then 3550234949Sbapt CPP= 3551234949Sbaptfi 3552234949Sbaptif test -z "$CPP"; then 3553234949Sbapt if test "${ac_cv_prog_CPP+set}" = set; then 3554234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 3555234949Sbaptelse 3556234949Sbapt # Double quotes because CPP needs to be expanded 3557234949Sbapt for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3558234949Sbapt do 3559234949Sbapt ac_preproc_ok=false 3560234949Sbaptfor ac_c_preproc_warn_flag in '' yes 3561234949Sbaptdo 3562234949Sbapt # Use a header file that comes with gcc, so configuring glibc 3563234949Sbapt # with a fresh cross-compiler works. 3564234949Sbapt # On the NeXT, cc -E runs the code through the compiler's parser, 3565234949Sbapt # not just through cpp. "Syntax error" is here to catch this case. 3566234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3567268899Sbapt#line 3567 "configure" 3568234949Sbapt#include "confdefs.h" 3569234949Sbapt#include <assert.h> 3570234949Sbapt Syntax error 3571234949Sbapt_ACEOF 3572268899Sbaptif { (eval echo "$as_me:3572: \"$ac_cpp conftest.$ac_ext\"") >&5 3573234949Sbapt (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3574234949Sbapt ac_status=$? 3575234949Sbapt egrep -v '^ *\+' conftest.er1 >conftest.err 3576234949Sbapt rm -f conftest.er1 3577234949Sbapt cat conftest.err >&5 3578268899Sbapt echo "$as_me:3578: \$? = $ac_status" >&5 3579234949Sbapt (exit $ac_status); } >/dev/null; then 3580234949Sbapt if test -s conftest.err; then 3581234949Sbapt ac_cpp_err=$ac_c_preproc_warn_flag 3582234949Sbapt else 3583234949Sbapt ac_cpp_err= 3584234949Sbapt fi 3585234949Sbaptelse 3586234949Sbapt ac_cpp_err=yes 3587234949Sbaptfi 3588234949Sbaptif test -z "$ac_cpp_err"; then 3589234949Sbapt : 3590234949Sbaptelse 3591234949Sbapt echo "$as_me: failed program was:" >&5 3592234949Sbapt cat conftest.$ac_ext >&5 3593234949Sbapt # Broken: fails on valid input. 3594234949Sbaptcontinue 3595234949Sbaptfi 3596234949Sbaptrm -f conftest.err conftest.$ac_ext 3597234949Sbapt 3598234949Sbapt # OK, works on sane cases. Now check whether non-existent headers 3599234949Sbapt # can be detected and how. 3600234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3601268899Sbapt#line 3601 "configure" 3602234949Sbapt#include "confdefs.h" 3603234949Sbapt#include <ac_nonexistent.h> 3604234949Sbapt_ACEOF 3605268899Sbaptif { (eval echo "$as_me:3605: \"$ac_cpp conftest.$ac_ext\"") >&5 3606234949Sbapt (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3607234949Sbapt ac_status=$? 3608234949Sbapt egrep -v '^ *\+' conftest.er1 >conftest.err 3609234949Sbapt rm -f conftest.er1 3610234949Sbapt cat conftest.err >&5 3611268899Sbapt echo "$as_me:3611: \$? = $ac_status" >&5 3612234949Sbapt (exit $ac_status); } >/dev/null; then 3613234949Sbapt if test -s conftest.err; then 3614234949Sbapt ac_cpp_err=$ac_c_preproc_warn_flag 3615234949Sbapt else 3616234949Sbapt ac_cpp_err= 3617234949Sbapt fi 3618234949Sbaptelse 3619234949Sbapt ac_cpp_err=yes 3620234949Sbaptfi 3621234949Sbaptif test -z "$ac_cpp_err"; then 3622234949Sbapt # Broken: success on invalid input. 3623234949Sbaptcontinue 3624234949Sbaptelse 3625234949Sbapt echo "$as_me: failed program was:" >&5 3626234949Sbapt cat conftest.$ac_ext >&5 3627234949Sbapt # Passes both tests. 3628234949Sbaptac_preproc_ok=: 3629234949Sbaptbreak 3630234949Sbaptfi 3631234949Sbaptrm -f conftest.err conftest.$ac_ext 3632234949Sbapt 3633234949Sbaptdone 3634234949Sbapt# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3635234949Sbaptrm -f conftest.err conftest.$ac_ext 3636234949Sbaptif $ac_preproc_ok; then 3637234949Sbapt break 3638234949Sbaptfi 3639234949Sbapt 3640234949Sbapt done 3641234949Sbapt ac_cv_prog_CPP=$CPP 3642234949Sbapt 3643234949Sbaptfi 3644234949Sbapt CPP=$ac_cv_prog_CPP 3645234949Sbaptelse 3646234949Sbapt ac_cv_prog_CPP=$CPP 3647234949Sbaptfi 3648268899Sbaptecho "$as_me:3648: result: $CPP" >&5 3649234949Sbaptecho "${ECHO_T}$CPP" >&6 3650234949Sbaptac_preproc_ok=false 3651234949Sbaptfor ac_c_preproc_warn_flag in '' yes 3652234949Sbaptdo 3653234949Sbapt # Use a header file that comes with gcc, so configuring glibc 3654234949Sbapt # with a fresh cross-compiler works. 3655234949Sbapt # On the NeXT, cc -E runs the code through the compiler's parser, 3656234949Sbapt # not just through cpp. "Syntax error" is here to catch this case. 3657234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3658268899Sbapt#line 3658 "configure" 3659234949Sbapt#include "confdefs.h" 3660234949Sbapt#include <assert.h> 3661234949Sbapt Syntax error 3662234949Sbapt_ACEOF 3663268899Sbaptif { (eval echo "$as_me:3663: \"$ac_cpp conftest.$ac_ext\"") >&5 3664234949Sbapt (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3665234949Sbapt ac_status=$? 3666234949Sbapt egrep -v '^ *\+' conftest.er1 >conftest.err 3667234949Sbapt rm -f conftest.er1 3668234949Sbapt cat conftest.err >&5 3669268899Sbapt echo "$as_me:3669: \$? = $ac_status" >&5 3670234949Sbapt (exit $ac_status); } >/dev/null; then 3671234949Sbapt if test -s conftest.err; then 3672234949Sbapt ac_cpp_err=$ac_c_preproc_warn_flag 3673234949Sbapt else 3674234949Sbapt ac_cpp_err= 3675234949Sbapt fi 3676234949Sbaptelse 3677234949Sbapt ac_cpp_err=yes 3678234949Sbaptfi 3679234949Sbaptif test -z "$ac_cpp_err"; then 3680234949Sbapt : 3681234949Sbaptelse 3682234949Sbapt echo "$as_me: failed program was:" >&5 3683234949Sbapt cat conftest.$ac_ext >&5 3684234949Sbapt # Broken: fails on valid input. 3685234949Sbaptcontinue 3686234949Sbaptfi 3687234949Sbaptrm -f conftest.err conftest.$ac_ext 3688234949Sbapt 3689234949Sbapt # OK, works on sane cases. Now check whether non-existent headers 3690234949Sbapt # can be detected and how. 3691234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3692268899Sbapt#line 3692 "configure" 3693234949Sbapt#include "confdefs.h" 3694234949Sbapt#include <ac_nonexistent.h> 3695234949Sbapt_ACEOF 3696268899Sbaptif { (eval echo "$as_me:3696: \"$ac_cpp conftest.$ac_ext\"") >&5 3697234949Sbapt (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3698234949Sbapt ac_status=$? 3699234949Sbapt egrep -v '^ *\+' conftest.er1 >conftest.err 3700234949Sbapt rm -f conftest.er1 3701234949Sbapt cat conftest.err >&5 3702268899Sbapt echo "$as_me:3702: \$? = $ac_status" >&5 3703234949Sbapt (exit $ac_status); } >/dev/null; then 3704234949Sbapt if test -s conftest.err; then 3705234949Sbapt ac_cpp_err=$ac_c_preproc_warn_flag 3706234949Sbapt else 3707234949Sbapt ac_cpp_err= 3708234949Sbapt fi 3709234949Sbaptelse 3710234949Sbapt ac_cpp_err=yes 3711234949Sbaptfi 3712234949Sbaptif test -z "$ac_cpp_err"; then 3713234949Sbapt # Broken: success on invalid input. 3714234949Sbaptcontinue 3715234949Sbaptelse 3716234949Sbapt echo "$as_me: failed program was:" >&5 3717234949Sbapt cat conftest.$ac_ext >&5 3718234949Sbapt # Passes both tests. 3719234949Sbaptac_preproc_ok=: 3720234949Sbaptbreak 3721234949Sbaptfi 3722234949Sbaptrm -f conftest.err conftest.$ac_ext 3723234949Sbapt 3724234949Sbaptdone 3725234949Sbapt# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3726234949Sbaptrm -f conftest.err conftest.$ac_ext 3727234949Sbaptif $ac_preproc_ok; then 3728234949Sbapt : 3729234949Sbaptelse 3730268899Sbapt { { echo "$as_me:3730: error: C preprocessor \"$CPP\" fails sanity check" >&5 3731234949Sbaptecho "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 3732234949Sbapt { (exit 1); exit 1; }; } 3733234949Sbaptfi 3734234949Sbapt 3735234949Sbaptac_ext=c 3736234949Sbaptac_cpp='$CPP $CPPFLAGS' 3737234949Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3738234949Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3739234949Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu 3740234949Sbaptac_main_return=return 3741234949Sbapt 3742234949Sbaptfor ac_header in fcntl.h 3743234949Sbaptdo 3744234949Sbaptas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3745268899Sbaptecho "$as_me:3745: checking for $ac_header" >&5 3746234949Sbaptecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3747234949Sbaptif eval "test \"\${$as_ac_Header+set}\" = set"; then 3748234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 3749234949Sbaptelse 3750234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3751268899Sbapt#line 3751 "configure" 3752234949Sbapt#include "confdefs.h" 3753234949Sbapt#include <$ac_header> 3754234949Sbapt_ACEOF 3755268899Sbaptif { (eval echo "$as_me:3755: \"$ac_cpp conftest.$ac_ext\"") >&5 3756234949Sbapt (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3757234949Sbapt ac_status=$? 3758234949Sbapt egrep -v '^ *\+' conftest.er1 >conftest.err 3759234949Sbapt rm -f conftest.er1 3760234949Sbapt cat conftest.err >&5 3761268899Sbapt echo "$as_me:3761: \$? = $ac_status" >&5 3762234949Sbapt (exit $ac_status); } >/dev/null; then 3763234949Sbapt if test -s conftest.err; then 3764234949Sbapt ac_cpp_err=$ac_c_preproc_warn_flag 3765234949Sbapt else 3766234949Sbapt ac_cpp_err= 3767234949Sbapt fi 3768234949Sbaptelse 3769234949Sbapt ac_cpp_err=yes 3770234949Sbaptfi 3771234949Sbaptif test -z "$ac_cpp_err"; then 3772234949Sbapt eval "$as_ac_Header=yes" 3773234949Sbaptelse 3774234949Sbapt echo "$as_me: failed program was:" >&5 3775234949Sbapt cat conftest.$ac_ext >&5 3776234949Sbapt eval "$as_ac_Header=no" 3777234949Sbaptfi 3778234949Sbaptrm -f conftest.err conftest.$ac_ext 3779234949Sbaptfi 3780268899Sbaptecho "$as_me:3780: result: `eval echo '${'$as_ac_Header'}'`" >&5 3781234949Sbaptecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3782234949Sbaptif test `eval echo '${'$as_ac_Header'}'` = yes; then 3783234949Sbapt cat >>confdefs.h <<EOF 3784234949Sbapt#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3785234949SbaptEOF 3786234949Sbapt 3787234949Sbaptfi 3788234949Sbaptdone 3789234949Sbapt 3790268899Sbaptecho "$as_me:3790: checking for working mkstemp" >&5 3791251143Sbaptecho $ECHO_N "checking for working mkstemp... $ECHO_C" >&6 3792251143Sbaptif test "${cf_cv_func_mkstemp+set}" = set; then 3793234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 3794234949Sbaptelse 3795251143Sbapt 3796251143Sbaptrm -rf conftest* 3797251143Sbaptif test "$cross_compiling" = yes; then 3798251143Sbapt cf_cv_func_mkstemp=maybe 3799251143Sbaptelse 3800234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3801268899Sbapt#line 3801 "configure" 3802234949Sbapt#include "confdefs.h" 3803234949Sbapt 3804251143Sbapt#include <sys/types.h> 3805251143Sbapt#include <stdlib.h> 3806251143Sbapt#include <stdio.h> 3807251143Sbapt#include <string.h> 3808251143Sbapt#include <sys/stat.h> 3809251143Sbaptint main() 3810234949Sbapt{ 3811251143Sbapt char *tmpl = "conftestXXXXXX"; 3812251143Sbapt char name[2][80]; 3813251143Sbapt int n; 3814251143Sbapt int result = 0; 3815251143Sbapt int fd; 3816251143Sbapt struct stat sb; 3817234949Sbapt 3818251143Sbapt umask(077); 3819251143Sbapt for (n = 0; n < 2; ++n) { 3820251143Sbapt strcpy(name[n], tmpl); 3821251143Sbapt if ((fd = mkstemp(name[n])) >= 0) { 3822251143Sbapt if (!strcmp(name[n], tmpl) 3823251143Sbapt || stat(name[n], &sb) != 0 3824251143Sbapt || (sb.st_mode & S_IFMT) != S_IFREG 3825251143Sbapt || (sb.st_mode & 077) != 0) { 3826251143Sbapt result = 1; 3827251143Sbapt } 3828251143Sbapt close(fd); 3829251143Sbapt } 3830251143Sbapt } 3831251143Sbapt if (result == 0 3832251143Sbapt && !strcmp(name[0], name[1])) 3833251143Sbapt result = 1; 3834251143Sbapt ${cf_cv_main_return:-return}(result); 3835234949Sbapt} 3836251143Sbapt 3837234949Sbapt_ACEOF 3838251143Sbaptrm -f conftest$ac_exeext 3839268899Sbaptif { (eval echo "$as_me:3839: \"$ac_link\"") >&5 3840234949Sbapt (eval $ac_link) 2>&5 3841234949Sbapt ac_status=$? 3842268899Sbapt echo "$as_me:3842: \$? = $ac_status" >&5 3843251143Sbapt (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3844268899Sbapt { (eval echo "$as_me:3844: \"$ac_try\"") >&5 3845234949Sbapt (eval $ac_try) 2>&5 3846234949Sbapt ac_status=$? 3847268899Sbapt echo "$as_me:3847: \$? = $ac_status" >&5 3848234949Sbapt (exit $ac_status); }; }; then 3849251143Sbapt cf_cv_func_mkstemp=yes 3850251143Sbapt 3851234949Sbaptelse 3852251143Sbapt echo "$as_me: program exited with status $ac_status" >&5 3853251143Sbaptecho "$as_me: failed program was:" >&5 3854234949Sbaptcat conftest.$ac_ext >&5 3855251143Sbaptcf_cv_func_mkstemp=no 3856251143Sbapt 3857234949Sbaptfi 3858251143Sbaptrm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3859234949Sbaptfi 3860234949Sbapt 3861234949Sbaptfi 3862268899Sbaptecho "$as_me:3862: result: $cf_cv_func_mkstemp" >&5 3863251143Sbaptecho "${ECHO_T}$cf_cv_func_mkstemp" >&6 3864251143Sbaptif test "x$cf_cv_func_mkstemp" = xmaybe ; then 3865268899Sbapt echo "$as_me:3865: checking for mkstemp" >&5 3866234949Sbaptecho $ECHO_N "checking for mkstemp... $ECHO_C" >&6 3867234949Sbaptif test "${ac_cv_func_mkstemp+set}" = set; then 3868234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 3869234949Sbaptelse 3870234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3871268899Sbapt#line 3871 "configure" 3872234949Sbapt#include "confdefs.h" 3873234949Sbapt/* System header to define __stub macros and hopefully few prototypes, 3874234949Sbapt which can conflict with char mkstemp (); below. */ 3875234949Sbapt#include <assert.h> 3876234949Sbapt/* Override any gcc2 internal prototype to avoid an error. */ 3877234949Sbapt#ifdef __cplusplus 3878234949Sbaptextern "C" 3879234949Sbapt#endif 3880234949Sbapt/* We use char because int might match the return type of a gcc2 3881234949Sbapt builtin and then its argument prototype would still apply. */ 3882234949Sbaptchar mkstemp (); 3883234949Sbaptchar (*f) (); 3884234949Sbapt 3885234949Sbaptint 3886234949Sbaptmain () 3887234949Sbapt{ 3888234949Sbapt/* The GNU C library defines this for functions which it implements 3889234949Sbapt to always fail with ENOSYS. Some functions are actually named 3890234949Sbapt something starting with __ and the normal name is an alias. */ 3891234949Sbapt#if defined (__stub_mkstemp) || defined (__stub___mkstemp) 3892234949Sbaptchoke me 3893234949Sbapt#else 3894251143Sbaptf = mkstemp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 3895234949Sbapt#endif 3896234949Sbapt 3897234949Sbapt ; 3898234949Sbapt return 0; 3899234949Sbapt} 3900234949Sbapt_ACEOF 3901234949Sbaptrm -f conftest.$ac_objext conftest$ac_exeext 3902268899Sbaptif { (eval echo "$as_me:3902: \"$ac_link\"") >&5 3903234949Sbapt (eval $ac_link) 2>&5 3904234949Sbapt ac_status=$? 3905268899Sbapt echo "$as_me:3905: \$? = $ac_status" >&5 3906234949Sbapt (exit $ac_status); } && 3907234949Sbapt { ac_try='test -s conftest$ac_exeext' 3908268899Sbapt { (eval echo "$as_me:3908: \"$ac_try\"") >&5 3909234949Sbapt (eval $ac_try) 2>&5 3910234949Sbapt ac_status=$? 3911268899Sbapt echo "$as_me:3911: \$? = $ac_status" >&5 3912234949Sbapt (exit $ac_status); }; }; then 3913234949Sbapt ac_cv_func_mkstemp=yes 3914234949Sbaptelse 3915234949Sbapt echo "$as_me: failed program was:" >&5 3916234949Sbaptcat conftest.$ac_ext >&5 3917234949Sbaptac_cv_func_mkstemp=no 3918234949Sbaptfi 3919234949Sbaptrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3920234949Sbaptfi 3921268899Sbaptecho "$as_me:3921: result: $ac_cv_func_mkstemp" >&5 3922234949Sbaptecho "${ECHO_T}$ac_cv_func_mkstemp" >&6 3923234949Sbapt 3924234949Sbaptfi 3925251143Sbaptif test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then 3926234949Sbapt 3927251143Sbaptcat >>confdefs.h <<\EOF 3928234949Sbapt#define HAVE_MKSTEMP 1 3929234949SbaptEOF 3930234949Sbapt 3931234949Sbaptfi 3932234949Sbapt 3933268899Sbaptfor ac_func in vsnprintf 3934268899Sbaptdo 3935268899Sbaptas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 3936268899Sbaptecho "$as_me:3936: checking for $ac_func" >&5 3937268899Sbaptecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6 3938268899Sbaptif eval "test \"\${$as_ac_var+set}\" = set"; then 3939268899Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 3940268899Sbaptelse 3941268899Sbapt cat >conftest.$ac_ext <<_ACEOF 3942268899Sbapt#line 3942 "configure" 3943268899Sbapt#include "confdefs.h" 3944268899Sbapt/* System header to define __stub macros and hopefully few prototypes, 3945268899Sbapt which can conflict with char $ac_func (); below. */ 3946268899Sbapt#include <assert.h> 3947268899Sbapt/* Override any gcc2 internal prototype to avoid an error. */ 3948268899Sbapt#ifdef __cplusplus 3949268899Sbaptextern "C" 3950268899Sbapt#endif 3951268899Sbapt/* We use char because int might match the return type of a gcc2 3952268899Sbapt builtin and then its argument prototype would still apply. */ 3953268899Sbaptchar $ac_func (); 3954268899Sbaptchar (*f) (); 3955268899Sbapt 3956268899Sbaptint 3957268899Sbaptmain () 3958268899Sbapt{ 3959268899Sbapt/* The GNU C library defines this for functions which it implements 3960268899Sbapt to always fail with ENOSYS. Some functions are actually named 3961268899Sbapt something starting with __ and the normal name is an alias. */ 3962268899Sbapt#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3963268899Sbaptchoke me 3964268899Sbapt#else 3965268899Sbaptf = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 3966268899Sbapt#endif 3967268899Sbapt 3968268899Sbapt ; 3969268899Sbapt return 0; 3970268899Sbapt} 3971268899Sbapt_ACEOF 3972268899Sbaptrm -f conftest.$ac_objext conftest$ac_exeext 3973268899Sbaptif { (eval echo "$as_me:3973: \"$ac_link\"") >&5 3974268899Sbapt (eval $ac_link) 2>&5 3975268899Sbapt ac_status=$? 3976268899Sbapt echo "$as_me:3976: \$? = $ac_status" >&5 3977268899Sbapt (exit $ac_status); } && 3978268899Sbapt { ac_try='test -s conftest$ac_exeext' 3979268899Sbapt { (eval echo "$as_me:3979: \"$ac_try\"") >&5 3980268899Sbapt (eval $ac_try) 2>&5 3981268899Sbapt ac_status=$? 3982268899Sbapt echo "$as_me:3982: \$? = $ac_status" >&5 3983268899Sbapt (exit $ac_status); }; }; then 3984268899Sbapt eval "$as_ac_var=yes" 3985268899Sbaptelse 3986268899Sbapt echo "$as_me: failed program was:" >&5 3987268899Sbaptcat conftest.$ac_ext >&5 3988268899Sbapteval "$as_ac_var=no" 3989268899Sbaptfi 3990268899Sbaptrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3991268899Sbaptfi 3992268899Sbaptecho "$as_me:3992: result: `eval echo '${'$as_ac_var'}'`" >&5 3993268899Sbaptecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 3994268899Sbaptif test `eval echo '${'$as_ac_var'}'` = yes; then 3995268899Sbapt cat >>confdefs.h <<EOF 3996268899Sbapt#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 3997268899SbaptEOF 3998268899Sbapt 3999268899Sbaptfi 4000268899Sbaptdone 4001268899Sbapt 4002268899Sbaptecho "$as_me:4002: checking for maximum table size" >&5 4003268899Sbaptecho $ECHO_N "checking for maximum table size... $ECHO_C" >&6 4004268899Sbapt 4005268899Sbapt# Check whether --with-max-table-size or --without-max-table-size was given. 4006268899Sbaptif test "${with_max_table_size+set}" = set; then 4007268899Sbapt withval="$with_max_table_size" 4008268899Sbapt 4009268899Sbaptfi; 4010268899Sbaptif test -n "$with_max_table_size" 4011268899Sbaptthen 4012268899Sbapt echo "$as_me:4012: result: $with_max_table_size" >&5 4013268899Sbaptecho "${ECHO_T}$with_max_table_size" >&6 4014268899Sbapt check=`expr "$with_max_table_size" + 0` 4015268899Sbapt if test "x$check" != "x$with_max_table_size" 4016268899Sbapt then 4017268899Sbapt { { echo "$as_me:4017: error: invalid value for --with-max-table-size: $with_max_table_size" >&5 4018268899Sbaptecho "$as_me: error: invalid value for --with-max-table-size: $with_max_table_size" >&2;} 4019268899Sbapt { (exit 1); exit 1; }; } 4020268899Sbapt fi 4021268899Sbapt 4022268899Sbaptcat >>confdefs.h <<EOF 4023268899Sbapt#define MAXTABLE $with_max_table_size 4024268899SbaptEOF 4025268899Sbapt 4026268899Sbaptelse 4027268899Sbapt echo "$as_me:4027: result: default" >&5 4028268899Sbaptecho "${ECHO_T}default" >&6 4029268899Sbaptfi 4030268899Sbapt 4031268899Sbaptecho "$as_me:4031: checking if backtracking extension is wanted" >&5 4032268899Sbaptecho $ECHO_N "checking if backtracking extension is wanted... $ECHO_C" >&6 4033268899Sbapt 4034268899Sbapt# Check whether --enable-btyacc or --disable-btyacc was given. 4035268899Sbaptif test "${enable_btyacc+set}" = set; then 4036268899Sbapt enableval="$enable_btyacc" 4037268899Sbapt 4038268899Sbaptfi; 4039268899Sbaptecho "$as_me:4039: result: $enable_btyacc" >&5 4040268899Sbaptecho "${ECHO_T}$enable_btyacc" >&6 4041268899Sbaptif test "$enable_btyacc" = "yes"; then 4042268899Sbapt 4043268899Sbaptcat >>confdefs.h <<\EOF 4044268899Sbapt#define YYBTYACC 1 4045268899SbaptEOF 4046268899Sbapt 4047268899Sbapt SKELETON=btyaccpar 4048268899Sbaptelse 4049268899Sbapt SKELETON=yaccpar 4050268899Sbaptfi 4051268899Sbapt 4052234949Sbaptif ( test "$GCC" = yes || test "$GXX" = yes ) 4053234949Sbaptthen 4054268899Sbaptecho "$as_me:4054: checking if you want to check for gcc warnings" >&5 4055234949Sbaptecho $ECHO_N "checking if you want to check for gcc warnings... $ECHO_C" >&6 4056234949Sbapt 4057234949Sbapt# Check whether --with-warnings or --without-warnings was given. 4058234949Sbaptif test "${with_warnings+set}" = set; then 4059234949Sbapt withval="$with_warnings" 4060234949Sbapt cf_opt_with_warnings=$withval 4061234949Sbaptelse 4062234949Sbapt cf_opt_with_warnings=no 4063234949Sbaptfi; 4064268899Sbaptecho "$as_me:4064: result: $cf_opt_with_warnings" >&5 4065234949Sbaptecho "${ECHO_T}$cf_opt_with_warnings" >&6 4066234949Sbaptif test "$cf_opt_with_warnings" != no ; then 4067234949Sbapt 4068234949Sbaptif test "$GCC" = yes 4069234949Sbaptthen 4070234949Sbaptcat > conftest.i <<EOF 4071234949Sbapt#ifndef GCC_PRINTF 4072234949Sbapt#define GCC_PRINTF 0 4073234949Sbapt#endif 4074234949Sbapt#ifndef GCC_SCANF 4075234949Sbapt#define GCC_SCANF 0 4076234949Sbapt#endif 4077234949Sbapt#ifndef GCC_NORETURN 4078234949Sbapt#define GCC_NORETURN /* nothing */ 4079234949Sbapt#endif 4080234949Sbapt#ifndef GCC_UNUSED 4081234949Sbapt#define GCC_UNUSED /* nothing */ 4082234949Sbapt#endif 4083234949SbaptEOF 4084234949Sbaptif test "$GCC" = yes 4085234949Sbaptthen 4086268899Sbapt { echo "$as_me:4086: checking for $CC __attribute__ directives..." >&5 4087234949Sbaptecho "$as_me: checking for $CC __attribute__ directives..." >&6;} 4088234949Sbaptcat > conftest.$ac_ext <<EOF 4089268899Sbapt#line 4089 "${as_me:-configure}" 4090234949Sbapt#include "confdefs.h" 4091234949Sbapt#include "conftest.h" 4092234949Sbapt#include "conftest.i" 4093234949Sbapt#if GCC_PRINTF 4094234949Sbapt#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) 4095234949Sbapt#else 4096234949Sbapt#define GCC_PRINTFLIKE(fmt,var) /*nothing*/ 4097234949Sbapt#endif 4098234949Sbapt#if GCC_SCANF 4099234949Sbapt#define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var))) 4100234949Sbapt#else 4101234949Sbapt#define GCC_SCANFLIKE(fmt,var) /*nothing*/ 4102234949Sbapt#endif 4103234949Sbaptextern void wow(char *,...) GCC_SCANFLIKE(1,2); 4104234949Sbaptextern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN; 4105234949Sbaptextern void foo(void) GCC_NORETURN; 4106234949Sbaptint main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; } 4107234949SbaptEOF 4108234949Sbapt cf_printf_attribute=no 4109234949Sbapt cf_scanf_attribute=no 4110234949Sbapt for cf_attribute in scanf printf unused noreturn 4111234949Sbapt do 4112234949Sbapt 4113234949Sbaptcf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 4114234949Sbapt 4115234949Sbapt cf_directive="__attribute__(($cf_attribute))" 4116234949Sbapt echo "checking for $CC $cf_directive" 1>&5 4117234949Sbapt 4118234949Sbapt case $cf_attribute in #(vi 4119234949Sbapt printf) #(vi 4120234949Sbapt cf_printf_attribute=yes 4121234949Sbapt cat >conftest.h <<EOF 4122234949Sbapt#define GCC_$cf_ATTRIBUTE 1 4123234949SbaptEOF 4124234949Sbapt ;; 4125234949Sbapt scanf) #(vi 4126234949Sbapt cf_scanf_attribute=yes 4127234949Sbapt cat >conftest.h <<EOF 4128234949Sbapt#define GCC_$cf_ATTRIBUTE 1 4129234949SbaptEOF 4130234949Sbapt ;; 4131234949Sbapt *) #(vi 4132234949Sbapt cat >conftest.h <<EOF 4133234949Sbapt#define GCC_$cf_ATTRIBUTE $cf_directive 4134234949SbaptEOF 4135234949Sbapt ;; 4136234949Sbapt esac 4137234949Sbapt 4138268899Sbapt if { (eval echo "$as_me:4138: \"$ac_compile\"") >&5 4139234949Sbapt (eval $ac_compile) 2>&5 4140234949Sbapt ac_status=$? 4141268899Sbapt echo "$as_me:4141: \$? = $ac_status" >&5 4142234949Sbapt (exit $ac_status); }; then 4143268899Sbapt test -n "$verbose" && echo "$as_me:4143: result: ... $cf_attribute" >&5 4144234949Sbaptecho "${ECHO_T}... $cf_attribute" >&6 4145234949Sbapt cat conftest.h >>confdefs.h 4146234949Sbapt case $cf_attribute in #(vi 4147251143Sbapt noreturn) #(vi 4148251143Sbapt 4149251143Sbaptcat >>confdefs.h <<EOF 4150251143Sbapt#define GCC_NORETURN $cf_directive 4151251143SbaptEOF 4152251143Sbapt 4153251143Sbapt ;; 4154234949Sbapt printf) #(vi 4155251143Sbapt cf_value='/* nothing */' 4156251143Sbapt if test "$cf_printf_attribute" != no ; then 4157251143Sbapt cf_value='__attribute__((format(printf,fmt,var)))' 4158251143Sbapt 4159251143Sbaptcat >>confdefs.h <<\EOF 4160251143Sbapt#define GCC_PRINTF 1 4161234949SbaptEOF 4162251143Sbapt 4163251143Sbapt fi 4164251143Sbapt 4165251143Sbaptcat >>confdefs.h <<EOF 4166251143Sbapt#define GCC_PRINTFLIKE(fmt,var) $cf_value 4167234949SbaptEOF 4168251143Sbapt 4169234949Sbapt ;; 4170234949Sbapt scanf) #(vi 4171251143Sbapt cf_value='/* nothing */' 4172251143Sbapt if test "$cf_scanf_attribute" != no ; then 4173251143Sbapt cf_value='__attribute__((format(scanf,fmt,var)))' 4174251143Sbapt 4175251143Sbaptcat >>confdefs.h <<\EOF 4176251143Sbapt#define GCC_SCANF 1 4177234949SbaptEOF 4178251143Sbapt 4179251143Sbapt fi 4180251143Sbapt 4181251143Sbaptcat >>confdefs.h <<EOF 4182251143Sbapt#define GCC_SCANFLIKE(fmt,var) $cf_value 4183234949SbaptEOF 4184251143Sbapt 4185234949Sbapt ;; 4186251143Sbapt unused) #(vi 4187251143Sbapt 4188251143Sbaptcat >>confdefs.h <<EOF 4189251143Sbapt#define GCC_UNUSED $cf_directive 4190251143SbaptEOF 4191251143Sbapt 4192251143Sbapt ;; 4193234949Sbapt esac 4194234949Sbapt fi 4195234949Sbapt done 4196234949Sbaptelse 4197234949Sbapt fgrep define conftest.i >>confdefs.h 4198234949Sbaptfi 4199234949Sbaptrm -rf conftest* 4200234949Sbaptfi 4201234949Sbapt 4202234949SbaptINTEL_COMPILER=no 4203234949Sbapt 4204234949Sbaptif test "$GCC" = yes ; then 4205234949Sbapt case $host_os in 4206234949Sbapt linux*|gnu*) 4207268899Sbapt echo "$as_me:4207: checking if this is really Intel C compiler" >&5 4208234949Sbaptecho $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6 4209234949Sbapt cf_save_CFLAGS="$CFLAGS" 4210234949Sbapt CFLAGS="$CFLAGS -no-gcc" 4211234949Sbapt cat >conftest.$ac_ext <<_ACEOF 4212268899Sbapt#line 4212 "configure" 4213234949Sbapt#include "confdefs.h" 4214234949Sbapt 4215234949Sbaptint 4216234949Sbaptmain () 4217234949Sbapt{ 4218234949Sbapt 4219234949Sbapt#ifdef __INTEL_COMPILER 4220234949Sbapt#else 4221234949Sbaptmake an error 4222234949Sbapt#endif 4223234949Sbapt 4224234949Sbapt ; 4225234949Sbapt return 0; 4226234949Sbapt} 4227234949Sbapt_ACEOF 4228234949Sbaptrm -f conftest.$ac_objext 4229268899Sbaptif { (eval echo "$as_me:4229: \"$ac_compile\"") >&5 4230234949Sbapt (eval $ac_compile) 2>&5 4231234949Sbapt ac_status=$? 4232268899Sbapt echo "$as_me:4232: \$? = $ac_status" >&5 4233234949Sbapt (exit $ac_status); } && 4234234949Sbapt { ac_try='test -s conftest.$ac_objext' 4235268899Sbapt { (eval echo "$as_me:4235: \"$ac_try\"") >&5 4236234949Sbapt (eval $ac_try) 2>&5 4237234949Sbapt ac_status=$? 4238268899Sbapt echo "$as_me:4238: \$? = $ac_status" >&5 4239234949Sbapt (exit $ac_status); }; }; then 4240234949Sbapt INTEL_COMPILER=yes 4241268899Sbaptcf_save_CFLAGS="$cf_save_CFLAGS -we147" 4242234949Sbapt 4243234949Sbaptelse 4244234949Sbapt echo "$as_me: failed program was:" >&5 4245234949Sbaptcat conftest.$ac_ext >&5 4246234949Sbaptfi 4247234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 4248234949Sbapt CFLAGS="$cf_save_CFLAGS" 4249268899Sbapt echo "$as_me:4249: result: $INTEL_COMPILER" >&5 4250234949Sbaptecho "${ECHO_T}$INTEL_COMPILER" >&6 4251234949Sbapt ;; 4252234949Sbapt esac 4253234949Sbaptfi 4254234949Sbapt 4255251143SbaptCLANG_COMPILER=no 4256251143Sbapt 4257251143Sbaptif test "$GCC" = yes ; then 4258268899Sbapt echo "$as_me:4258: checking if this is really Clang C compiler" >&5 4259251143Sbaptecho $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6 4260251143Sbapt cf_save_CFLAGS="$CFLAGS" 4261251143Sbapt CFLAGS="$CFLAGS -Qunused-arguments" 4262251143Sbapt cat >conftest.$ac_ext <<_ACEOF 4263268899Sbapt#line 4263 "configure" 4264251143Sbapt#include "confdefs.h" 4265251143Sbapt 4266251143Sbaptint 4267251143Sbaptmain () 4268251143Sbapt{ 4269251143Sbapt 4270251143Sbapt#ifdef __clang__ 4271251143Sbapt#else 4272251143Sbaptmake an error 4273251143Sbapt#endif 4274251143Sbapt 4275251143Sbapt ; 4276251143Sbapt return 0; 4277251143Sbapt} 4278251143Sbapt_ACEOF 4279251143Sbaptrm -f conftest.$ac_objext 4280268899Sbaptif { (eval echo "$as_me:4280: \"$ac_compile\"") >&5 4281251143Sbapt (eval $ac_compile) 2>&5 4282251143Sbapt ac_status=$? 4283268899Sbapt echo "$as_me:4283: \$? = $ac_status" >&5 4284251143Sbapt (exit $ac_status); } && 4285251143Sbapt { ac_try='test -s conftest.$ac_objext' 4286268899Sbapt { (eval echo "$as_me:4286: \"$ac_try\"") >&5 4287251143Sbapt (eval $ac_try) 2>&5 4288251143Sbapt ac_status=$? 4289268899Sbapt echo "$as_me:4289: \$? = $ac_status" >&5 4290251143Sbapt (exit $ac_status); }; }; then 4291251143Sbapt CLANG_COMPILER=yes 4292251143Sbaptcf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments" 4293251143Sbapt 4294251143Sbaptelse 4295251143Sbapt echo "$as_me: failed program was:" >&5 4296251143Sbaptcat conftest.$ac_ext >&5 4297251143Sbaptfi 4298251143Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 4299251143Sbapt CFLAGS="$cf_save_CFLAGS" 4300268899Sbapt echo "$as_me:4300: result: $CLANG_COMPILER" >&5 4301251143Sbaptecho "${ECHO_T}$CLANG_COMPILER" >&6 4302251143Sbaptfi 4303251143Sbapt 4304234949Sbaptcat > conftest.$ac_ext <<EOF 4305268899Sbapt#line 4305 "${as_me:-configure}" 4306234949Sbaptint main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; } 4307234949SbaptEOF 4308234949Sbapt 4309234949Sbaptif test "$INTEL_COMPILER" = yes 4310234949Sbaptthen 4311234949Sbapt# The "-wdXXX" options suppress warnings: 4312234949Sbapt# remark #1419: external declaration in primary source file 4313234949Sbapt# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem) 4314234949Sbapt# remark #1684: conversion from pointer to same-sized integral type (potential portability problem) 4315234949Sbapt# remark #193: zero used for undefined preprocessing identifier 4316234949Sbapt# remark #593: variable "curs_sb_left_arrow" was set but never used 4317234949Sbapt# remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits 4318234949Sbapt# remark #869: parameter "tw" was never referenced 4319234949Sbapt# remark #981: operands are evaluated in unspecified order 4320234949Sbapt# warning #279: controlling expression is constant 4321234949Sbapt 4322268899Sbapt { echo "$as_me:4322: checking for $CC warning options..." >&5 4323234949Sbaptecho "$as_me: checking for $CC warning options..." >&6;} 4324234949Sbapt cf_save_CFLAGS="$CFLAGS" 4325234949Sbapt EXTRA_CFLAGS="-Wall" 4326234949Sbapt for cf_opt in \ 4327234949Sbapt wd1419 \ 4328234949Sbapt wd1683 \ 4329234949Sbapt wd1684 \ 4330234949Sbapt wd193 \ 4331234949Sbapt wd593 \ 4332234949Sbapt wd279 \ 4333234949Sbapt wd810 \ 4334234949Sbapt wd869 \ 4335234949Sbapt wd981 4336234949Sbapt do 4337234949Sbapt CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 4338268899Sbapt if { (eval echo "$as_me:4338: \"$ac_compile\"") >&5 4339234949Sbapt (eval $ac_compile) 2>&5 4340234949Sbapt ac_status=$? 4341268899Sbapt echo "$as_me:4341: \$? = $ac_status" >&5 4342234949Sbapt (exit $ac_status); }; then 4343268899Sbapt test -n "$verbose" && echo "$as_me:4343: result: ... -$cf_opt" >&5 4344234949Sbaptecho "${ECHO_T}... -$cf_opt" >&6 4345234949Sbapt EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 4346234949Sbapt fi 4347234949Sbapt done 4348234949Sbapt CFLAGS="$cf_save_CFLAGS" 4349234949Sbapt 4350234949Sbaptelif test "$GCC" = yes 4351234949Sbaptthen 4352268899Sbapt { echo "$as_me:4352: checking for $CC warning options..." >&5 4353234949Sbaptecho "$as_me: checking for $CC warning options..." >&6;} 4354234949Sbapt cf_save_CFLAGS="$CFLAGS" 4355234949Sbapt EXTRA_CFLAGS= 4356234949Sbapt cf_warn_CONST="" 4357234949Sbapt test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings" 4358268899Sbapt cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs" 4359268899Sbapt test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings= 4360234949Sbapt for cf_opt in W Wall \ 4361234949Sbapt Wbad-function-cast \ 4362234949Sbapt Wcast-align \ 4363234949Sbapt Wcast-qual \ 4364268899Sbapt Wdeclaration-after-statement \ 4365268899Sbapt Wextra \ 4366234949Sbapt Winline \ 4367234949Sbapt Wmissing-declarations \ 4368234949Sbapt Wmissing-prototypes \ 4369234949Sbapt Wnested-externs \ 4370234949Sbapt Wpointer-arith \ 4371234949Sbapt Wshadow \ 4372234949Sbapt Wstrict-prototypes \ 4373268899Sbapt Wundef $cf_gcc_warnings $cf_warn_CONST Wwrite-strings 4374234949Sbapt do 4375234949Sbapt CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 4376268899Sbapt if { (eval echo "$as_me:4376: \"$ac_compile\"") >&5 4377234949Sbapt (eval $ac_compile) 2>&5 4378234949Sbapt ac_status=$? 4379268899Sbapt echo "$as_me:4379: \$? = $ac_status" >&5 4380234949Sbapt (exit $ac_status); }; then 4381268899Sbapt test -n "$verbose" && echo "$as_me:4381: result: ... -$cf_opt" >&5 4382234949Sbaptecho "${ECHO_T}... -$cf_opt" >&6 4383234949Sbapt case $cf_opt in #(vi 4384234949Sbapt Wcast-qual) #(vi 4385234949Sbapt CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES" 4386234949Sbapt ;; 4387234949Sbapt Winline) #(vi 4388234949Sbapt case $GCC_VERSION in 4389234949Sbapt [34].*) 4390234949Sbapt test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 4391234949Sbapt 4392268899Sbaptecho "${as_me:-configure}:4392: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 4393234949Sbapt 4394234949Sbapt continue;; 4395234949Sbapt esac 4396234949Sbapt ;; 4397251143Sbapt Wpointer-arith) #(vi 4398251143Sbapt case $GCC_VERSION in 4399251143Sbapt [12].*) 4400251143Sbapt test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 4401251143Sbapt 4402268899Sbaptecho "${as_me:-configure}:4402: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 4403251143Sbapt 4404251143Sbapt continue;; 4405251143Sbapt esac 4406251143Sbapt ;; 4407234949Sbapt esac 4408234949Sbapt EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 4409234949Sbapt fi 4410234949Sbapt done 4411234949Sbapt CFLAGS="$cf_save_CFLAGS" 4412234949Sbaptfi 4413234949Sbaptrm -rf conftest* 4414234949Sbapt 4415234949Sbaptfi 4416234949Sbaptfi 4417234949Sbapt 4418268899Sbaptecho "$as_me:4418: checking if you want to see long compiling messages" >&5 4419234949Sbaptecho $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6 4420234949Sbapt 4421234949Sbapt# Check whether --enable-echo or --disable-echo was given. 4422234949Sbaptif test "${enable_echo+set}" = set; then 4423234949Sbapt enableval="$enable_echo" 4424234949Sbapt test "$enableval" != no && enableval=yes 4425234949Sbapt if test "$enableval" != "yes" ; then 4426234949Sbapt 4427234949Sbapt ECHO_LT='--silent' 4428234949Sbapt ECHO_LD='@echo linking $@;' 4429234949Sbapt RULE_CC='@echo compiling $<' 4430234949Sbapt SHOW_CC='@echo compiling $@' 4431234949Sbapt ECHO_CC='@' 4432234949Sbapt 4433234949Sbapt else 4434234949Sbapt 4435234949Sbapt ECHO_LT='' 4436234949Sbapt ECHO_LD='' 4437234949Sbapt RULE_CC='' 4438234949Sbapt SHOW_CC='' 4439234949Sbapt ECHO_CC='' 4440234949Sbapt 4441234949Sbapt fi 4442234949Sbaptelse 4443234949Sbapt enableval=yes 4444234949Sbapt 4445234949Sbapt ECHO_LT='' 4446234949Sbapt ECHO_LD='' 4447234949Sbapt RULE_CC='' 4448234949Sbapt SHOW_CC='' 4449234949Sbapt ECHO_CC='' 4450234949Sbapt 4451234949Sbaptfi; 4452268899Sbaptecho "$as_me:4452: result: $enableval" >&5 4453234949Sbaptecho "${ECHO_T}$enableval" >&6 4454234949Sbapt 4455268899Sbaptecho "$as_me:4455: checking if you want to use dmalloc for testing" >&5 4456234949Sbaptecho $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6 4457234949Sbapt 4458234949Sbapt# Check whether --with-dmalloc or --without-dmalloc was given. 4459234949Sbaptif test "${with_dmalloc+set}" = set; then 4460234949Sbapt withval="$with_dmalloc" 4461251143Sbapt 4462251143Sbaptcat >>confdefs.h <<EOF 4463234949Sbapt#define USE_DMALLOC 1 4464234949SbaptEOF 4465234949Sbapt 4466234949Sbapt : ${with_cflags:=-g} 4467234949Sbapt : ${with_no_leaks:=yes} 4468234949Sbapt with_dmalloc=yes 4469234949Sbaptelse 4470234949Sbapt with_dmalloc= 4471234949Sbaptfi; 4472268899Sbaptecho "$as_me:4472: result: ${with_dmalloc:-no}" >&5 4473234949Sbaptecho "${ECHO_T}${with_dmalloc:-no}" >&6 4474234949Sbapt 4475234949Sbaptcase .$with_cflags in #(vi 4476234949Sbapt.*-g*) 4477234949Sbapt case .$CFLAGS in #(vi 4478234949Sbapt .*-g*) #(vi 4479234949Sbapt ;; 4480234949Sbapt *) 4481234949Sbapt 4482234949Sbaptcf_fix_cppflags=no 4483234949Sbaptcf_new_cflags= 4484234949Sbaptcf_new_cppflags= 4485234949Sbaptcf_new_extra_cppflags= 4486234949Sbapt 4487234949Sbaptfor cf_add_cflags in -g 4488234949Sbaptdo 4489234949Sbaptcase $cf_fix_cppflags in 4490234949Sbaptno) 4491234949Sbapt case $cf_add_cflags in #(vi 4492234949Sbapt -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 4493234949Sbapt case $cf_add_cflags in 4494234949Sbapt -D*) 4495234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4496234949Sbapt 4497234949Sbapt test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 4498234949Sbapt && test -z "${cf_tst_cflags}" \ 4499234949Sbapt && cf_fix_cppflags=yes 4500234949Sbapt 4501234949Sbapt if test $cf_fix_cppflags = yes ; then 4502234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4503234949Sbapt continue 4504234949Sbapt elif test "${cf_tst_cflags}" = "\"'" ; then 4505234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4506234949Sbapt continue 4507234949Sbapt fi 4508234949Sbapt ;; 4509234949Sbapt esac 4510234949Sbapt case "$CPPFLAGS" in 4511234949Sbapt *$cf_add_cflags) #(vi 4512234949Sbapt ;; 4513234949Sbapt *) #(vi 4514234949Sbapt case $cf_add_cflags in #(vi 4515234949Sbapt -D*) 4516234949Sbapt cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4517234949Sbapt 4518234949SbaptCPPFLAGS=`echo "$CPPFLAGS" | \ 4519234949Sbapt sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4520234949Sbapt -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4521234949Sbapt 4522234949Sbapt ;; 4523234949Sbapt esac 4524234949Sbapt cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 4525234949Sbapt ;; 4526234949Sbapt esac 4527234949Sbapt ;; 4528234949Sbapt *) 4529234949Sbapt cf_new_cflags="$cf_new_cflags $cf_add_cflags" 4530234949Sbapt ;; 4531234949Sbapt esac 4532234949Sbapt ;; 4533234949Sbaptyes) 4534234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4535234949Sbapt 4536234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 4537234949Sbapt 4538234949Sbapt test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 4539234949Sbapt && test -z "${cf_tst_cflags}" \ 4540234949Sbapt && cf_fix_cppflags=no 4541234949Sbapt ;; 4542234949Sbaptesac 4543234949Sbaptdone 4544234949Sbapt 4545234949Sbaptif test -n "$cf_new_cflags" ; then 4546234949Sbapt 4547234949Sbapt CFLAGS="$CFLAGS $cf_new_cflags" 4548234949Sbaptfi 4549234949Sbapt 4550234949Sbaptif test -n "$cf_new_cppflags" ; then 4551234949Sbapt 4552234949Sbapt CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 4553234949Sbaptfi 4554234949Sbapt 4555234949Sbaptif test -n "$cf_new_extra_cppflags" ; then 4556234949Sbapt 4557234949Sbapt EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 4558234949Sbaptfi 4559234949Sbapt 4560234949Sbapt ;; 4561234949Sbapt esac 4562234949Sbapt ;; 4563234949Sbaptesac 4564234949Sbapt 4565234949Sbaptif test "$with_dmalloc" = yes ; then 4566268899Sbapt echo "$as_me:4566: checking for dmalloc.h" >&5 4567234949Sbaptecho $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6 4568234949Sbaptif test "${ac_cv_header_dmalloc_h+set}" = set; then 4569234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 4570234949Sbaptelse 4571234949Sbapt cat >conftest.$ac_ext <<_ACEOF 4572268899Sbapt#line 4572 "configure" 4573234949Sbapt#include "confdefs.h" 4574234949Sbapt#include <dmalloc.h> 4575234949Sbapt_ACEOF 4576268899Sbaptif { (eval echo "$as_me:4576: \"$ac_cpp conftest.$ac_ext\"") >&5 4577234949Sbapt (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4578234949Sbapt ac_status=$? 4579234949Sbapt egrep -v '^ *\+' conftest.er1 >conftest.err 4580234949Sbapt rm -f conftest.er1 4581234949Sbapt cat conftest.err >&5 4582268899Sbapt echo "$as_me:4582: \$? = $ac_status" >&5 4583234949Sbapt (exit $ac_status); } >/dev/null; then 4584234949Sbapt if test -s conftest.err; then 4585234949Sbapt ac_cpp_err=$ac_c_preproc_warn_flag 4586234949Sbapt else 4587234949Sbapt ac_cpp_err= 4588234949Sbapt fi 4589234949Sbaptelse 4590234949Sbapt ac_cpp_err=yes 4591234949Sbaptfi 4592234949Sbaptif test -z "$ac_cpp_err"; then 4593234949Sbapt ac_cv_header_dmalloc_h=yes 4594234949Sbaptelse 4595234949Sbapt echo "$as_me: failed program was:" >&5 4596234949Sbapt cat conftest.$ac_ext >&5 4597234949Sbapt ac_cv_header_dmalloc_h=no 4598234949Sbaptfi 4599234949Sbaptrm -f conftest.err conftest.$ac_ext 4600234949Sbaptfi 4601268899Sbaptecho "$as_me:4601: result: $ac_cv_header_dmalloc_h" >&5 4602234949Sbaptecho "${ECHO_T}$ac_cv_header_dmalloc_h" >&6 4603234949Sbaptif test $ac_cv_header_dmalloc_h = yes; then 4604234949Sbapt 4605268899Sbaptecho "$as_me:4605: checking for dmalloc_debug in -ldmalloc" >&5 4606234949Sbaptecho $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6 4607234949Sbaptif test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then 4608234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 4609234949Sbaptelse 4610234949Sbapt ac_check_lib_save_LIBS=$LIBS 4611234949SbaptLIBS="-ldmalloc $LIBS" 4612234949Sbaptcat >conftest.$ac_ext <<_ACEOF 4613268899Sbapt#line 4613 "configure" 4614234949Sbapt#include "confdefs.h" 4615234949Sbapt 4616234949Sbapt/* Override any gcc2 internal prototype to avoid an error. */ 4617234949Sbapt#ifdef __cplusplus 4618234949Sbaptextern "C" 4619234949Sbapt#endif 4620234949Sbapt/* We use char because int might match the return type of a gcc2 4621234949Sbapt builtin and then its argument prototype would still apply. */ 4622234949Sbaptchar dmalloc_debug (); 4623234949Sbaptint 4624234949Sbaptmain () 4625234949Sbapt{ 4626234949Sbaptdmalloc_debug (); 4627234949Sbapt ; 4628234949Sbapt return 0; 4629234949Sbapt} 4630234949Sbapt_ACEOF 4631234949Sbaptrm -f conftest.$ac_objext conftest$ac_exeext 4632268899Sbaptif { (eval echo "$as_me:4632: \"$ac_link\"") >&5 4633234949Sbapt (eval $ac_link) 2>&5 4634234949Sbapt ac_status=$? 4635268899Sbapt echo "$as_me:4635: \$? = $ac_status" >&5 4636234949Sbapt (exit $ac_status); } && 4637234949Sbapt { ac_try='test -s conftest$ac_exeext' 4638268899Sbapt { (eval echo "$as_me:4638: \"$ac_try\"") >&5 4639234949Sbapt (eval $ac_try) 2>&5 4640234949Sbapt ac_status=$? 4641268899Sbapt echo "$as_me:4641: \$? = $ac_status" >&5 4642234949Sbapt (exit $ac_status); }; }; then 4643234949Sbapt ac_cv_lib_dmalloc_dmalloc_debug=yes 4644234949Sbaptelse 4645234949Sbapt echo "$as_me: failed program was:" >&5 4646234949Sbaptcat conftest.$ac_ext >&5 4647234949Sbaptac_cv_lib_dmalloc_dmalloc_debug=no 4648234949Sbaptfi 4649234949Sbaptrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4650234949SbaptLIBS=$ac_check_lib_save_LIBS 4651234949Sbaptfi 4652268899Sbaptecho "$as_me:4652: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5 4653234949Sbaptecho "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6 4654234949Sbaptif test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then 4655234949Sbapt cat >>confdefs.h <<EOF 4656234949Sbapt#define HAVE_LIBDMALLOC 1 4657234949SbaptEOF 4658234949Sbapt 4659234949Sbapt LIBS="-ldmalloc $LIBS" 4660234949Sbapt 4661234949Sbaptfi 4662234949Sbapt 4663234949Sbaptfi 4664234949Sbapt 4665234949Sbaptfi 4666234949Sbapt 4667268899Sbaptecho "$as_me:4667: checking if you want to use dbmalloc for testing" >&5 4668234949Sbaptecho $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6 4669234949Sbapt 4670234949Sbapt# Check whether --with-dbmalloc or --without-dbmalloc was given. 4671234949Sbaptif test "${with_dbmalloc+set}" = set; then 4672234949Sbapt withval="$with_dbmalloc" 4673251143Sbapt 4674251143Sbaptcat >>confdefs.h <<EOF 4675234949Sbapt#define USE_DBMALLOC 1 4676234949SbaptEOF 4677234949Sbapt 4678234949Sbapt : ${with_cflags:=-g} 4679234949Sbapt : ${with_no_leaks:=yes} 4680234949Sbapt with_dbmalloc=yes 4681234949Sbaptelse 4682234949Sbapt with_dbmalloc= 4683234949Sbaptfi; 4684268899Sbaptecho "$as_me:4684: result: ${with_dbmalloc:-no}" >&5 4685234949Sbaptecho "${ECHO_T}${with_dbmalloc:-no}" >&6 4686234949Sbapt 4687234949Sbaptcase .$with_cflags in #(vi 4688234949Sbapt.*-g*) 4689234949Sbapt case .$CFLAGS in #(vi 4690234949Sbapt .*-g*) #(vi 4691234949Sbapt ;; 4692234949Sbapt *) 4693234949Sbapt 4694234949Sbaptcf_fix_cppflags=no 4695234949Sbaptcf_new_cflags= 4696234949Sbaptcf_new_cppflags= 4697234949Sbaptcf_new_extra_cppflags= 4698234949Sbapt 4699234949Sbaptfor cf_add_cflags in -g 4700234949Sbaptdo 4701234949Sbaptcase $cf_fix_cppflags in 4702234949Sbaptno) 4703234949Sbapt case $cf_add_cflags in #(vi 4704234949Sbapt -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 4705234949Sbapt case $cf_add_cflags in 4706234949Sbapt -D*) 4707234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4708234949Sbapt 4709234949Sbapt test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 4710234949Sbapt && test -z "${cf_tst_cflags}" \ 4711234949Sbapt && cf_fix_cppflags=yes 4712234949Sbapt 4713234949Sbapt if test $cf_fix_cppflags = yes ; then 4714234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4715234949Sbapt continue 4716234949Sbapt elif test "${cf_tst_cflags}" = "\"'" ; then 4717234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4718234949Sbapt continue 4719234949Sbapt fi 4720234949Sbapt ;; 4721234949Sbapt esac 4722234949Sbapt case "$CPPFLAGS" in 4723234949Sbapt *$cf_add_cflags) #(vi 4724234949Sbapt ;; 4725234949Sbapt *) #(vi 4726234949Sbapt case $cf_add_cflags in #(vi 4727234949Sbapt -D*) 4728234949Sbapt cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4729234949Sbapt 4730234949SbaptCPPFLAGS=`echo "$CPPFLAGS" | \ 4731234949Sbapt sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4732234949Sbapt -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4733234949Sbapt 4734234949Sbapt ;; 4735234949Sbapt esac 4736234949Sbapt cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 4737234949Sbapt ;; 4738234949Sbapt esac 4739234949Sbapt ;; 4740234949Sbapt *) 4741234949Sbapt cf_new_cflags="$cf_new_cflags $cf_add_cflags" 4742234949Sbapt ;; 4743234949Sbapt esac 4744234949Sbapt ;; 4745234949Sbaptyes) 4746234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4747234949Sbapt 4748234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 4749234949Sbapt 4750234949Sbapt test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 4751234949Sbapt && test -z "${cf_tst_cflags}" \ 4752234949Sbapt && cf_fix_cppflags=no 4753234949Sbapt ;; 4754234949Sbaptesac 4755234949Sbaptdone 4756234949Sbapt 4757234949Sbaptif test -n "$cf_new_cflags" ; then 4758234949Sbapt 4759234949Sbapt CFLAGS="$CFLAGS $cf_new_cflags" 4760234949Sbaptfi 4761234949Sbapt 4762234949Sbaptif test -n "$cf_new_cppflags" ; then 4763234949Sbapt 4764234949Sbapt CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 4765234949Sbaptfi 4766234949Sbapt 4767234949Sbaptif test -n "$cf_new_extra_cppflags" ; then 4768234949Sbapt 4769234949Sbapt EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 4770234949Sbaptfi 4771234949Sbapt 4772234949Sbapt ;; 4773234949Sbapt esac 4774234949Sbapt ;; 4775234949Sbaptesac 4776234949Sbapt 4777234949Sbaptif test "$with_dbmalloc" = yes ; then 4778268899Sbapt echo "$as_me:4778: checking for dbmalloc.h" >&5 4779234949Sbaptecho $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6 4780234949Sbaptif test "${ac_cv_header_dbmalloc_h+set}" = set; then 4781234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 4782234949Sbaptelse 4783234949Sbapt cat >conftest.$ac_ext <<_ACEOF 4784268899Sbapt#line 4784 "configure" 4785234949Sbapt#include "confdefs.h" 4786234949Sbapt#include <dbmalloc.h> 4787234949Sbapt_ACEOF 4788268899Sbaptif { (eval echo "$as_me:4788: \"$ac_cpp conftest.$ac_ext\"") >&5 4789234949Sbapt (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4790234949Sbapt ac_status=$? 4791234949Sbapt egrep -v '^ *\+' conftest.er1 >conftest.err 4792234949Sbapt rm -f conftest.er1 4793234949Sbapt cat conftest.err >&5 4794268899Sbapt echo "$as_me:4794: \$? = $ac_status" >&5 4795234949Sbapt (exit $ac_status); } >/dev/null; then 4796234949Sbapt if test -s conftest.err; then 4797234949Sbapt ac_cpp_err=$ac_c_preproc_warn_flag 4798234949Sbapt else 4799234949Sbapt ac_cpp_err= 4800234949Sbapt fi 4801234949Sbaptelse 4802234949Sbapt ac_cpp_err=yes 4803234949Sbaptfi 4804234949Sbaptif test -z "$ac_cpp_err"; then 4805234949Sbapt ac_cv_header_dbmalloc_h=yes 4806234949Sbaptelse 4807234949Sbapt echo "$as_me: failed program was:" >&5 4808234949Sbapt cat conftest.$ac_ext >&5 4809234949Sbapt ac_cv_header_dbmalloc_h=no 4810234949Sbaptfi 4811234949Sbaptrm -f conftest.err conftest.$ac_ext 4812234949Sbaptfi 4813268899Sbaptecho "$as_me:4813: result: $ac_cv_header_dbmalloc_h" >&5 4814234949Sbaptecho "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6 4815234949Sbaptif test $ac_cv_header_dbmalloc_h = yes; then 4816234949Sbapt 4817268899Sbaptecho "$as_me:4817: checking for debug_malloc in -ldbmalloc" >&5 4818234949Sbaptecho $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6 4819234949Sbaptif test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then 4820234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 4821234949Sbaptelse 4822234949Sbapt ac_check_lib_save_LIBS=$LIBS 4823234949SbaptLIBS="-ldbmalloc $LIBS" 4824234949Sbaptcat >conftest.$ac_ext <<_ACEOF 4825268899Sbapt#line 4825 "configure" 4826234949Sbapt#include "confdefs.h" 4827234949Sbapt 4828234949Sbapt/* Override any gcc2 internal prototype to avoid an error. */ 4829234949Sbapt#ifdef __cplusplus 4830234949Sbaptextern "C" 4831234949Sbapt#endif 4832234949Sbapt/* We use char because int might match the return type of a gcc2 4833234949Sbapt builtin and then its argument prototype would still apply. */ 4834234949Sbaptchar debug_malloc (); 4835234949Sbaptint 4836234949Sbaptmain () 4837234949Sbapt{ 4838234949Sbaptdebug_malloc (); 4839234949Sbapt ; 4840234949Sbapt return 0; 4841234949Sbapt} 4842234949Sbapt_ACEOF 4843234949Sbaptrm -f conftest.$ac_objext conftest$ac_exeext 4844268899Sbaptif { (eval echo "$as_me:4844: \"$ac_link\"") >&5 4845234949Sbapt (eval $ac_link) 2>&5 4846234949Sbapt ac_status=$? 4847268899Sbapt echo "$as_me:4847: \$? = $ac_status" >&5 4848234949Sbapt (exit $ac_status); } && 4849234949Sbapt { ac_try='test -s conftest$ac_exeext' 4850268899Sbapt { (eval echo "$as_me:4850: \"$ac_try\"") >&5 4851234949Sbapt (eval $ac_try) 2>&5 4852234949Sbapt ac_status=$? 4853268899Sbapt echo "$as_me:4853: \$? = $ac_status" >&5 4854234949Sbapt (exit $ac_status); }; }; then 4855234949Sbapt ac_cv_lib_dbmalloc_debug_malloc=yes 4856234949Sbaptelse 4857234949Sbapt echo "$as_me: failed program was:" >&5 4858234949Sbaptcat conftest.$ac_ext >&5 4859234949Sbaptac_cv_lib_dbmalloc_debug_malloc=no 4860234949Sbaptfi 4861234949Sbaptrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4862234949SbaptLIBS=$ac_check_lib_save_LIBS 4863234949Sbaptfi 4864268899Sbaptecho "$as_me:4864: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5 4865234949Sbaptecho "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6 4866234949Sbaptif test $ac_cv_lib_dbmalloc_debug_malloc = yes; then 4867234949Sbapt cat >>confdefs.h <<EOF 4868234949Sbapt#define HAVE_LIBDBMALLOC 1 4869234949SbaptEOF 4870234949Sbapt 4871234949Sbapt LIBS="-ldbmalloc $LIBS" 4872234949Sbapt 4873234949Sbaptfi 4874234949Sbapt 4875234949Sbaptfi 4876234949Sbapt 4877234949Sbaptfi 4878234949Sbapt 4879268899Sbaptecho "$as_me:4879: checking if you want to use valgrind for testing" >&5 4880234949Sbaptecho $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6 4881234949Sbapt 4882234949Sbapt# Check whether --with-valgrind or --without-valgrind was given. 4883234949Sbaptif test "${with_valgrind+set}" = set; then 4884234949Sbapt withval="$with_valgrind" 4885251143Sbapt 4886251143Sbaptcat >>confdefs.h <<EOF 4887234949Sbapt#define USE_VALGRIND 1 4888234949SbaptEOF 4889234949Sbapt 4890234949Sbapt : ${with_cflags:=-g} 4891234949Sbapt : ${with_no_leaks:=yes} 4892234949Sbapt with_valgrind=yes 4893234949Sbaptelse 4894234949Sbapt with_valgrind= 4895234949Sbaptfi; 4896268899Sbaptecho "$as_me:4896: result: ${with_valgrind:-no}" >&5 4897234949Sbaptecho "${ECHO_T}${with_valgrind:-no}" >&6 4898234949Sbapt 4899234949Sbaptcase .$with_cflags in #(vi 4900234949Sbapt.*-g*) 4901234949Sbapt case .$CFLAGS in #(vi 4902234949Sbapt .*-g*) #(vi 4903234949Sbapt ;; 4904234949Sbapt *) 4905234949Sbapt 4906234949Sbaptcf_fix_cppflags=no 4907234949Sbaptcf_new_cflags= 4908234949Sbaptcf_new_cppflags= 4909234949Sbaptcf_new_extra_cppflags= 4910234949Sbapt 4911234949Sbaptfor cf_add_cflags in -g 4912234949Sbaptdo 4913234949Sbaptcase $cf_fix_cppflags in 4914234949Sbaptno) 4915234949Sbapt case $cf_add_cflags in #(vi 4916234949Sbapt -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 4917234949Sbapt case $cf_add_cflags in 4918234949Sbapt -D*) 4919234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4920234949Sbapt 4921234949Sbapt test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 4922234949Sbapt && test -z "${cf_tst_cflags}" \ 4923234949Sbapt && cf_fix_cppflags=yes 4924234949Sbapt 4925234949Sbapt if test $cf_fix_cppflags = yes ; then 4926234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4927234949Sbapt continue 4928234949Sbapt elif test "${cf_tst_cflags}" = "\"'" ; then 4929234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4930234949Sbapt continue 4931234949Sbapt fi 4932234949Sbapt ;; 4933234949Sbapt esac 4934234949Sbapt case "$CPPFLAGS" in 4935234949Sbapt *$cf_add_cflags) #(vi 4936234949Sbapt ;; 4937234949Sbapt *) #(vi 4938234949Sbapt case $cf_add_cflags in #(vi 4939234949Sbapt -D*) 4940234949Sbapt cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4941234949Sbapt 4942234949SbaptCPPFLAGS=`echo "$CPPFLAGS" | \ 4943234949Sbapt sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4944234949Sbapt -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4945234949Sbapt 4946234949Sbapt ;; 4947234949Sbapt esac 4948234949Sbapt cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 4949234949Sbapt ;; 4950234949Sbapt esac 4951234949Sbapt ;; 4952234949Sbapt *) 4953234949Sbapt cf_new_cflags="$cf_new_cflags $cf_add_cflags" 4954234949Sbapt ;; 4955234949Sbapt esac 4956234949Sbapt ;; 4957234949Sbaptyes) 4958234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4959234949Sbapt 4960234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 4961234949Sbapt 4962234949Sbapt test "${cf_add_cflags}" != "${cf_tst_cflags}" \ 4963234949Sbapt && test -z "${cf_tst_cflags}" \ 4964234949Sbapt && cf_fix_cppflags=no 4965234949Sbapt ;; 4966234949Sbaptesac 4967234949Sbaptdone 4968234949Sbapt 4969234949Sbaptif test -n "$cf_new_cflags" ; then 4970234949Sbapt 4971234949Sbapt CFLAGS="$CFLAGS $cf_new_cflags" 4972234949Sbaptfi 4973234949Sbapt 4974234949Sbaptif test -n "$cf_new_cppflags" ; then 4975234949Sbapt 4976234949Sbapt CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 4977234949Sbaptfi 4978234949Sbapt 4979234949Sbaptif test -n "$cf_new_extra_cppflags" ; then 4980234949Sbapt 4981234949Sbapt EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 4982234949Sbaptfi 4983234949Sbapt 4984234949Sbapt ;; 4985234949Sbapt esac 4986234949Sbapt ;; 4987234949Sbaptesac 4988234949Sbapt 4989268899Sbaptecho "$as_me:4989: checking if you want to perform memory-leak testing" >&5 4990234949Sbaptecho $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6 4991234949Sbapt 4992234949Sbapt# Check whether --enable-leaks or --disable-leaks was given. 4993234949Sbaptif test "${enable_leaks+set}" = set; then 4994234949Sbapt enableval="$enable_leaks" 4995234949Sbapt if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi 4996234949Sbaptelse 4997234949Sbapt : ${with_no_leaks:=no} 4998234949Sbaptfi; 4999268899Sbaptecho "$as_me:4999: result: $with_no_leaks" >&5 5000234949Sbaptecho "${ECHO_T}$with_no_leaks" >&6 5001234949Sbapt 5002234949Sbaptif test "$with_no_leaks" = yes ; then 5003251143Sbapt 5004251143Sbaptcat >>confdefs.h <<\EOF 5005234949Sbapt#define NO_LEAKS 1 5006234949SbaptEOF 5007234949Sbapt 5008251143Sbaptcat >>confdefs.h <<\EOF 5009234949Sbapt#define YY_NO_LEAKS 1 5010234949SbaptEOF 5011234949Sbapt 5012234949Sbaptfi 5013234949Sbapt 5014234949Sbapt### output makefile 5015234949Sbaptac_config_files="$ac_config_files makefile" 5016234949Sbaptcat >confcache <<\_ACEOF 5017234949Sbapt# This file is a shell script that caches the results of configure 5018234949Sbapt# tests run on this system so they can be shared between configure 5019234949Sbapt# scripts and configure runs, see configure's option --config-cache. 5020234949Sbapt# It is not useful on other systems. If it contains results you don't 5021234949Sbapt# want to keep, you may remove or edit it. 5022234949Sbapt# 5023234949Sbapt# config.status only pays attention to the cache file if you give it 5024234949Sbapt# the --recheck option to rerun configure. 5025234949Sbapt# 5026234949Sbapt# `ac_cv_env_foo' variables (set or unset) will be overriden when 5027234949Sbapt# loading this file, other *unset* `ac_cv_foo' will be assigned the 5028234949Sbapt# following values. 5029234949Sbapt 5030234949Sbapt_ACEOF 5031234949Sbapt 5032234949Sbapt# The following way of writing the cache mishandles newlines in values, 5033234949Sbapt# but we know of no workaround that is simple, portable, and efficient. 5034234949Sbapt# So, don't put newlines in cache variables' values. 5035234949Sbapt# Ultrix sh set writes to stderr and can't be redirected directly, 5036234949Sbapt# and sets the high bit in the cache file unless we assign to the vars. 5037234949Sbapt{ 5038234949Sbapt (set) 2>&1 | 5039234949Sbapt case `(ac_space=' '; set | grep ac_space) 2>&1` in 5040234949Sbapt *ac_space=\ *) 5041234949Sbapt # `set' does not quote correctly, so add quotes (double-quote 5042234949Sbapt # substitution turns \\\\ into \\, and sed turns \\ into \). 5043234949Sbapt sed -n \ 5044234949Sbapt "s/'/'\\\\''/g; 5045234949Sbapt s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 5046234949Sbapt ;; 5047234949Sbapt *) 5048234949Sbapt # `set' quotes correctly as required by POSIX, so do not add quotes. 5049234949Sbapt sed -n \ 5050234949Sbapt "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 5051234949Sbapt ;; 5052234949Sbapt esac; 5053234949Sbapt} | 5054234949Sbapt sed ' 5055234949Sbapt t clear 5056234949Sbapt : clear 5057234949Sbapt s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 5058234949Sbapt t end 5059234949Sbapt /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 5060234949Sbapt : end' >>confcache 5061234949Sbaptif cmp -s $cache_file confcache; then :; else 5062234949Sbapt if test -w $cache_file; then 5063234949Sbapt test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 5064234949Sbapt cat confcache >$cache_file 5065234949Sbapt else 5066234949Sbapt echo "not updating unwritable cache $cache_file" 5067234949Sbapt fi 5068234949Sbaptfi 5069234949Sbaptrm -f confcache 5070234949Sbapt 5071234949Sbapttest "x$prefix" = xNONE && prefix=$ac_default_prefix 5072234949Sbapt# Let make expand exec_prefix. 5073234949Sbapttest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 5074234949Sbapt 5075234949Sbapt# VPATH may cause trouble with some makes, so we remove $(srcdir), 5076234949Sbapt# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 5077234949Sbapt# trailing colons and then remove the whole line if VPATH becomes empty 5078234949Sbapt# (actually we leave an empty line to preserve line numbers). 5079234949Sbaptif test "x$srcdir" = x.; then 5080234949Sbapt ac_vpsub='/^[ ]*VPATH[ ]*=/{ 5081234949Sbapts/:*\$(srcdir):*/:/; 5082234949Sbapts/:*\${srcdir}:*/:/; 5083234949Sbapts/:*@srcdir@:*/:/; 5084234949Sbapts/^\([^=]*=[ ]*\):*/\1/; 5085234949Sbapts/:*$//; 5086234949Sbapts/^[^=]*=[ ]*$//; 5087234949Sbapt}' 5088234949Sbaptfi 5089234949Sbapt 5090234949SbaptDEFS=-DHAVE_CONFIG_H 5091234949Sbapt 5092234949Sbapt: ${CONFIG_STATUS=./config.status} 5093234949Sbaptac_clean_files_save=$ac_clean_files 5094234949Sbaptac_clean_files="$ac_clean_files $CONFIG_STATUS" 5095268899Sbapt{ echo "$as_me:5095: creating $CONFIG_STATUS" >&5 5096234949Sbaptecho "$as_me: creating $CONFIG_STATUS" >&6;} 5097234949Sbaptcat >$CONFIG_STATUS <<_ACEOF 5098234949Sbapt#! $SHELL 5099234949Sbapt# Generated automatically by configure. 5100234949Sbapt# Run this file to recreate the current configuration. 5101234949Sbapt# Compiler output produced by configure, useful for debugging 5102234949Sbapt# configure, is in config.log if it exists. 5103234949Sbapt 5104234949Sbaptdebug=false 5105234949SbaptSHELL=\${CONFIG_SHELL-$SHELL} 5106234949Sbaptac_cs_invocation="\$0 \$@" 5107234949Sbapt 5108234949Sbapt_ACEOF 5109234949Sbapt 5110234949Sbaptcat >>$CONFIG_STATUS <<\_ACEOF 5111234949Sbapt# Be Bourne compatible 5112234949Sbaptif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 5113234949Sbapt emulate sh 5114234949Sbapt NULLCMD=: 5115234949Sbaptelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 5116234949Sbapt set -o posix 5117234949Sbaptfi 5118234949Sbapt 5119234949Sbapt# Name of the executable. 5120234949Sbaptas_me=`echo "$0" |sed 's,.*[\\/],,'` 5121234949Sbapt 5122234949Sbaptif expr a : '\(a\)' >/dev/null 2>&1; then 5123234949Sbapt as_expr=expr 5124234949Sbaptelse 5125234949Sbapt as_expr=false 5126234949Sbaptfi 5127234949Sbapt 5128234949Sbaptrm -f conf$$ conf$$.exe conf$$.file 5129234949Sbaptecho >conf$$.file 5130234949Sbaptif ln -s conf$$.file conf$$ 2>/dev/null; then 5131234949Sbapt # We could just check for DJGPP; but this test a) works b) is more generic 5132234949Sbapt # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 5133234949Sbapt if test -f conf$$.exe; then 5134234949Sbapt # Don't use ln at all; we don't have any links 5135234949Sbapt as_ln_s='cp -p' 5136234949Sbapt else 5137234949Sbapt as_ln_s='ln -s' 5138234949Sbapt fi 5139234949Sbaptelif ln conf$$.file conf$$ 2>/dev/null; then 5140234949Sbapt as_ln_s=ln 5141234949Sbaptelse 5142234949Sbapt as_ln_s='cp -p' 5143234949Sbaptfi 5144234949Sbaptrm -f conf$$ conf$$.exe conf$$.file 5145234949Sbapt 5146234949Sbaptas_executable_p="test -f" 5147234949Sbapt 5148234949Sbapt# Support unset when possible. 5149234949Sbaptif (FOO=FOO; unset FOO) >/dev/null 2>&1; then 5150234949Sbapt as_unset=unset 5151234949Sbaptelse 5152234949Sbapt as_unset=false 5153234949Sbaptfi 5154234949Sbapt 5155234949Sbapt# NLS nuisances. 5156234949Sbapt$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 5157234949Sbapt$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 5158234949Sbapt$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 5159234949Sbapt$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 5160234949Sbapt$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 5161234949Sbapt$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 5162234949Sbapt$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 5163234949Sbapt$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 5164234949Sbapt 5165234949Sbapt# IFS 5166234949Sbapt# We need space, tab and new line, in precisely that order. 5167234949Sbaptas_nl=' 5168234949Sbapt' 5169234949SbaptIFS=" $as_nl" 5170234949Sbapt 5171234949Sbapt# CDPATH. 5172234949Sbapt$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 5173234949Sbapt 5174234949Sbaptexec 6>&1 5175234949Sbapt 5176234949Sbapt_ACEOF 5177234949Sbapt 5178234949Sbapt# Files that config.status was made for. 5179234949Sbaptif test -n "$ac_config_files"; then 5180234949Sbapt echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 5181234949Sbaptfi 5182234949Sbapt 5183234949Sbaptif test -n "$ac_config_headers"; then 5184234949Sbapt echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 5185234949Sbaptfi 5186234949Sbapt 5187234949Sbaptif test -n "$ac_config_links"; then 5188234949Sbapt echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 5189234949Sbaptfi 5190234949Sbapt 5191234949Sbaptif test -n "$ac_config_commands"; then 5192234949Sbapt echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 5193234949Sbaptfi 5194234949Sbapt 5195234949Sbaptcat >>$CONFIG_STATUS <<\EOF 5196234949Sbapt 5197234949Sbaptac_cs_usage="\ 5198234949Sbapt\`$as_me' instantiates files from templates according to the 5199234949Sbaptcurrent configuration. 5200234949Sbapt 5201234949SbaptUsage: $0 [OPTIONS] [FILE]... 5202234949Sbapt 5203234949Sbapt -h, --help print this help, then exit 5204234949Sbapt -V, --version print version number, then exit 5205234949Sbapt -d, --debug don't remove temporary files 5206234949Sbapt --recheck update $as_me by reconfiguring in the same conditions 5207234949Sbapt --file=FILE[:TEMPLATE] 5208234949Sbapt instantiate the configuration file FILE 5209234949Sbapt --header=FILE[:TEMPLATE] 5210234949Sbapt instantiate the configuration header FILE 5211234949Sbapt 5212234949SbaptConfiguration files: 5213234949Sbapt$config_files 5214234949Sbapt 5215234949SbaptConfiguration headers: 5216234949Sbapt$config_headers 5217234949Sbapt 5218234949SbaptReport bugs to <dickey@invisible-island.net>." 5219234949SbaptEOF 5220234949Sbapt 5221234949Sbaptcat >>$CONFIG_STATUS <<EOF 5222234949Sbaptac_cs_version="\\ 5223234949Sbaptconfig.status 5224251143Sbaptconfigured by $0, generated by GNU Autoconf 2.52.20121002, 5225234949Sbapt with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 5226234949Sbapt 5227234949SbaptCopyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 5228234949SbaptFree Software Foundation, Inc. 5229234949SbaptThis config.status script is free software; the Free Software Foundation 5230234949Sbaptgives unlimited permission to copy, distribute and modify it." 5231234949Sbaptsrcdir=$srcdir 5232234949SbaptINSTALL="$INSTALL" 5233234949SbaptEOF 5234234949Sbapt 5235234949Sbaptcat >>$CONFIG_STATUS <<\EOF 5236234949Sbapt# If no file are specified by the user, then we need to provide default 5237234949Sbapt# value. By we need to know if files were specified by the user. 5238234949Sbaptac_need_defaults=: 5239234949Sbaptwhile test $# != 0 5240234949Sbaptdo 5241234949Sbapt case $1 in 5242234949Sbapt --*=*) 5243234949Sbapt ac_option=`expr "x$1" : 'x\([^=]*\)='` 5244234949Sbapt ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 5245234949Sbapt shift 5246234949Sbapt set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 5247234949Sbapt shift 5248234949Sbapt ;; 5249234949Sbapt -*);; 5250234949Sbapt *) # This is not an option, so the user has probably given explicit 5251234949Sbapt # arguments. 5252234949Sbapt ac_need_defaults=false;; 5253234949Sbapt esac 5254234949Sbapt 5255234949Sbapt case $1 in 5256234949Sbapt # Handling of the options. 5257234949SbaptEOF 5258234949Sbaptcat >>$CONFIG_STATUS <<EOF 5259234949Sbapt -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 5260234949Sbapt echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 5261234949Sbapt exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 5262234949SbaptEOF 5263234949Sbaptcat >>$CONFIG_STATUS <<\EOF 5264234949Sbapt --version | --vers* | -V ) 5265234949Sbapt echo "$ac_cs_version"; exit 0 ;; 5266234949Sbapt --he | --h) 5267234949Sbapt # Conflict between --help and --header 5268268899Sbapt { { echo "$as_me:5268: error: ambiguous option: $1 5269234949SbaptTry \`$0 --help' for more information." >&5 5270234949Sbaptecho "$as_me: error: ambiguous option: $1 5271234949SbaptTry \`$0 --help' for more information." >&2;} 5272234949Sbapt { (exit 1); exit 1; }; };; 5273234949Sbapt --help | --hel | -h ) 5274234949Sbapt echo "$ac_cs_usage"; exit 0 ;; 5275234949Sbapt --debug | --d* | -d ) 5276234949Sbapt debug=: ;; 5277234949Sbapt --file | --fil | --fi | --f ) 5278234949Sbapt shift 5279234949Sbapt CONFIG_FILES="$CONFIG_FILES $1" 5280234949Sbapt ac_need_defaults=false;; 5281234949Sbapt --header | --heade | --head | --hea ) 5282234949Sbapt shift 5283234949Sbapt CONFIG_HEADERS="$CONFIG_HEADERS $1" 5284234949Sbapt ac_need_defaults=false;; 5285234949Sbapt 5286234949Sbapt # This is an error. 5287268899Sbapt -*) { { echo "$as_me:5287: error: unrecognized option: $1 5288234949SbaptTry \`$0 --help' for more information." >&5 5289234949Sbaptecho "$as_me: error: unrecognized option: $1 5290234949SbaptTry \`$0 --help' for more information." >&2;} 5291234949Sbapt { (exit 1); exit 1; }; } ;; 5292234949Sbapt 5293234949Sbapt *) ac_config_targets="$ac_config_targets $1" ;; 5294234949Sbapt 5295234949Sbapt esac 5296234949Sbapt shift 5297234949Sbaptdone 5298234949Sbapt 5299234949Sbaptexec 5>>config.log 5300234949Sbaptcat >&5 << _ACEOF 5301234949Sbapt 5302234949Sbapt## ----------------------- ## 5303234949Sbapt## Running config.status. ## 5304234949Sbapt## ----------------------- ## 5305234949Sbapt 5306251143SbaptThis file was extended by $as_me 2.52.20121002, executed with 5307234949Sbapt CONFIG_FILES = $CONFIG_FILES 5308234949Sbapt CONFIG_HEADERS = $CONFIG_HEADERS 5309234949Sbapt CONFIG_LINKS = $CONFIG_LINKS 5310234949Sbapt CONFIG_COMMANDS = $CONFIG_COMMANDS 5311234949Sbapt > $ac_cs_invocation 5312234949Sbapton `(hostname || uname -n) 2>/dev/null | sed 1q` 5313234949Sbapt 5314234949Sbapt_ACEOF 5315234949SbaptEOF 5316234949Sbapt 5317234949Sbaptcat >>$CONFIG_STATUS <<\EOF 5318234949Sbaptfor ac_config_target in $ac_config_targets 5319234949Sbaptdo 5320234949Sbapt case "$ac_config_target" in 5321234949Sbapt # Handling of arguments. 5322234949Sbapt "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;; 5323234949Sbapt "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;; 5324268899Sbapt *) { { echo "$as_me:5324: error: invalid argument: $ac_config_target" >&5 5325234949Sbaptecho "$as_me: error: invalid argument: $ac_config_target" >&2;} 5326234949Sbapt { (exit 1); exit 1; }; };; 5327234949Sbapt esac 5328234949Sbaptdone 5329234949Sbapt 5330234949Sbapt# If the user did not use the arguments to specify the items to instantiate, 5331234949Sbapt# then the envvar interface is used. Set only those that are not. 5332234949Sbapt# We use the long form for the default assignment because of an extremely 5333234949Sbapt# bizarre bug on SunOS 4.1.3. 5334234949Sbaptif $ac_need_defaults; then 5335234949Sbapt test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 5336234949Sbapt test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 5337234949Sbaptfi 5338234949Sbapt 5339234949Sbapt# Create a temporary directory, and hook for its removal unless debugging. 5340234949Sbapt$debug || 5341234949Sbapt{ 5342234949Sbapt trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 5343234949Sbapt trap '{ (exit 1); exit 1; }' 1 2 13 15 5344234949Sbapt} 5345234949Sbapt 5346234949Sbapt# Create a (secure) tmp directory for tmp files. 5347234949Sbapt: ${TMPDIR=/tmp} 5348234949Sbapt{ 5349234949Sbapt tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 5350234949Sbapt test -n "$tmp" && test -d "$tmp" 5351234949Sbapt} || 5352234949Sbapt{ 5353234949Sbapt tmp=$TMPDIR/cs$$-$RANDOM 5354234949Sbapt (umask 077 && mkdir $tmp) 5355234949Sbapt} || 5356234949Sbapt{ 5357234949Sbapt echo "$me: cannot create a temporary directory in $TMPDIR" >&2 5358234949Sbapt { (exit 1); exit 1; } 5359234949Sbapt} 5360234949Sbapt 5361234949SbaptEOF 5362234949Sbapt 5363234949Sbaptcat >>$CONFIG_STATUS <<EOF 5364234949Sbapt 5365234949Sbapt# 5366234949Sbapt# CONFIG_FILES section. 5367234949Sbapt# 5368234949Sbapt 5369234949Sbapt# No need to generate the scripts if there are no CONFIG_FILES. 5370234949Sbapt# This happens for instance when ./config.status config.h 5371234949Sbaptif test -n "\$CONFIG_FILES"; then 5372234949Sbapt # Protect against being on the right side of a sed subst in config.status. 5373234949Sbapt sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 5374234949Sbapt s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 5375234949Sbapts,@SHELL@,$SHELL,;t t 5376234949Sbapts,@exec_prefix@,$exec_prefix,;t t 5377234949Sbapts,@prefix@,$prefix,;t t 5378234949Sbapts,@program_transform_name@,$program_transform_name,;t t 5379234949Sbapts,@bindir@,$bindir,;t t 5380234949Sbapts,@sbindir@,$sbindir,;t t 5381234949Sbapts,@libexecdir@,$libexecdir,;t t 5382251143Sbapts,@datarootdir@,$datarootdir,;t t 5383234949Sbapts,@datadir@,$datadir,;t t 5384234949Sbapts,@sysconfdir@,$sysconfdir,;t t 5385234949Sbapts,@sharedstatedir@,$sharedstatedir,;t t 5386234949Sbapts,@localstatedir@,$localstatedir,;t t 5387234949Sbapts,@libdir@,$libdir,;t t 5388234949Sbapts,@includedir@,$includedir,;t t 5389234949Sbapts,@oldincludedir@,$oldincludedir,;t t 5390234949Sbapts,@infodir@,$infodir,;t t 5391234949Sbapts,@mandir@,$mandir,;t t 5392234949Sbapts,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 5393234949Sbapts,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 5394234949Sbapts,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 5395234949Sbapts,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 5396234949Sbapts,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 5397234949Sbapts,@build_alias@,$build_alias,;t t 5398234949Sbapts,@host_alias@,$host_alias,;t t 5399234949Sbapts,@target_alias@,$target_alias,;t t 5400234949Sbapts,@ECHO_C@,$ECHO_C,;t t 5401234949Sbapts,@ECHO_N@,$ECHO_N,;t t 5402234949Sbapts,@ECHO_T@,$ECHO_T,;t t 5403234949Sbapts,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 5404234949Sbapts,@DEFS@,$DEFS,;t t 5405234949Sbapts,@LIBS@,$LIBS,;t t 5406234949Sbapts,@build@,$build,;t t 5407234949Sbapts,@build_cpu@,$build_cpu,;t t 5408234949Sbapts,@build_vendor@,$build_vendor,;t t 5409234949Sbapts,@build_os@,$build_os,;t t 5410234949Sbapts,@host@,$host,;t t 5411234949Sbapts,@host_cpu@,$host_cpu,;t t 5412234949Sbapts,@host_vendor@,$host_vendor,;t t 5413234949Sbapts,@host_os@,$host_os,;t t 5414234949Sbapts,@target@,$target,;t t 5415234949Sbapts,@target_cpu@,$target_cpu,;t t 5416234949Sbapts,@target_vendor@,$target_vendor,;t t 5417234949Sbapts,@target_os@,$target_os,;t t 5418234949Sbapts,@CC@,$CC,;t t 5419234949Sbapts,@CFLAGS@,$CFLAGS,;t t 5420234949Sbapts,@LDFLAGS@,$LDFLAGS,;t t 5421234949Sbapts,@CPPFLAGS@,$CPPFLAGS,;t t 5422234949Sbapts,@ac_ct_CC@,$ac_ct_CC,;t t 5423234949Sbapts,@EXEEXT@,$EXEEXT,;t t 5424234949Sbapts,@OBJEXT@,$OBJEXT,;t t 5425251143Sbapts,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t 5426234949Sbapts,@SET_MAKE@,$SET_MAKE,;t t 5427234949Sbapts,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 5428234949Sbapts,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 5429234949Sbapts,@INSTALL_DATA@,$INSTALL_DATA,;t t 5430234949Sbapts,@CTAGS@,$CTAGS,;t t 5431234949Sbapts,@ETAGS@,$ETAGS,;t t 5432234949Sbapts,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t 5433234949Sbapts,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t 5434268899Sbapts,@AWK@,$AWK,;t t 5435234949Sbapts,@LINT@,$LINT,;t t 5436234949Sbapts,@LINT_OPTS@,$LINT_OPTS,;t t 5437234949Sbapts,@CPP@,$CPP,;t t 5438268899Sbapts,@SKELETON@,$SKELETON,;t t 5439234949Sbapts,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t 5440234949Sbapts,@ECHO_LT@,$ECHO_LT,;t t 5441234949Sbapts,@ECHO_LD@,$ECHO_LD,;t t 5442234949Sbapts,@RULE_CC@,$RULE_CC,;t t 5443234949Sbapts,@SHOW_CC@,$SHOW_CC,;t t 5444234949Sbapts,@ECHO_CC@,$ECHO_CC,;t t 5445234949SbaptCEOF 5446234949Sbapt 5447234949SbaptEOF 5448234949Sbapt 5449234949Sbapt cat >>$CONFIG_STATUS <<\EOF 5450234949Sbapt # Split the substitutions into bite-sized pieces for seds with 5451234949Sbapt # small command number limits, like on Digital OSF/1 and HP-UX. 5452234949Sbapt ac_max_sed_lines=48 5453234949Sbapt ac_sed_frag=1 # Number of current file. 5454234949Sbapt ac_beg=1 # First line for current file. 5455234949Sbapt ac_end=$ac_max_sed_lines # Line after last line for current file. 5456234949Sbapt ac_more_lines=: 5457234949Sbapt ac_sed_cmds= 5458234949Sbapt while $ac_more_lines; do 5459234949Sbapt if test $ac_beg -gt 1; then 5460234949Sbapt sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 5461234949Sbapt else 5462234949Sbapt sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 5463234949Sbapt fi 5464234949Sbapt if test ! -s $tmp/subs.frag; then 5465234949Sbapt ac_more_lines=false 5466234949Sbapt else 5467234949Sbapt # The purpose of the label and of the branching condition is to 5468234949Sbapt # speed up the sed processing (if there are no `@' at all, there 5469234949Sbapt # is no need to browse any of the substitutions). 5470234949Sbapt # These are the two extra sed commands mentioned above. 5471234949Sbapt (echo ':t 5472234949Sbapt /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 5473234949Sbapt if test -z "$ac_sed_cmds"; then 5474234949Sbapt ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 5475234949Sbapt else 5476234949Sbapt ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 5477234949Sbapt fi 5478234949Sbapt ac_sed_frag=`expr $ac_sed_frag + 1` 5479234949Sbapt ac_beg=$ac_end 5480234949Sbapt ac_end=`expr $ac_end + $ac_max_sed_lines` 5481234949Sbapt fi 5482234949Sbapt done 5483234949Sbapt if test -z "$ac_sed_cmds"; then 5484234949Sbapt ac_sed_cmds=cat 5485234949Sbapt fi 5486234949Sbaptfi # test -n "$CONFIG_FILES" 5487234949Sbapt 5488234949SbaptEOF 5489234949Sbaptcat >>$CONFIG_STATUS <<\EOF 5490234949Sbaptfor ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 5491234949Sbapt # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 5492234949Sbapt case $ac_file in 5493234949Sbapt - | *:- | *:-:* ) # input from stdin 5494234949Sbapt cat >$tmp/stdin 5495234949Sbapt ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5496234949Sbapt ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5497234949Sbapt *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5498234949Sbapt ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5499234949Sbapt * ) ac_file_in=$ac_file.in ;; 5500234949Sbapt esac 5501234949Sbapt 5502234949Sbapt # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 5503234949Sbapt ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5504234949Sbapt X"$ac_file" : 'X\(//\)[^/]' \| \ 5505234949Sbapt X"$ac_file" : 'X\(//\)$' \| \ 5506234949Sbapt X"$ac_file" : 'X\(/\)' \| \ 5507234949Sbapt . : '\(.\)' 2>/dev/null || 5508234949Sbaptecho X"$ac_file" | 5509234949Sbapt sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5510234949Sbapt /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5511234949Sbapt /^X\(\/\/\)$/{ s//\1/; q; } 5512234949Sbapt /^X\(\/\).*/{ s//\1/; q; } 5513234949Sbapt s/.*/./; q'` 5514234949Sbapt if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 5515234949Sbapt { case "$ac_dir" in 5516234949Sbapt [\\/]* | ?:[\\/]* ) as_incr_dir=;; 5517234949Sbapt *) as_incr_dir=.;; 5518234949Sbaptesac 5519234949Sbaptas_dummy="$ac_dir" 5520234949Sbaptfor as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 5521234949Sbapt case $as_mkdir_dir in 5522234949Sbapt # Skip DOS drivespec 5523234949Sbapt ?:) as_incr_dir=$as_mkdir_dir ;; 5524234949Sbapt *) 5525234949Sbapt as_incr_dir=$as_incr_dir/$as_mkdir_dir 5526234949Sbapt test -d "$as_incr_dir" || mkdir "$as_incr_dir" 5527234949Sbapt ;; 5528234949Sbapt esac 5529234949Sbaptdone; } 5530234949Sbapt 5531234949Sbapt ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" 5532234949Sbapt # A "../" for each directory in $ac_dir_suffix. 5533234949Sbapt ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 5534234949Sbapt else 5535234949Sbapt ac_dir_suffix= ac_dots= 5536234949Sbapt fi 5537234949Sbapt 5538234949Sbapt case $srcdir in 5539234949Sbapt .) ac_srcdir=. 5540234949Sbapt if test -z "$ac_dots"; then 5541234949Sbapt ac_top_srcdir=. 5542234949Sbapt else 5543234949Sbapt ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` 5544234949Sbapt fi ;; 5545234949Sbapt [\\/]* | ?:[\\/]* ) 5546234949Sbapt ac_srcdir=$srcdir$ac_dir_suffix; 5547234949Sbapt ac_top_srcdir=$srcdir ;; 5548234949Sbapt *) # Relative path. 5549234949Sbapt ac_srcdir=$ac_dots$srcdir$ac_dir_suffix 5550234949Sbapt ac_top_srcdir=$ac_dots$srcdir ;; 5551234949Sbapt esac 5552234949Sbapt 5553234949Sbapt case $INSTALL in 5554234949Sbapt [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 5555234949Sbapt *) ac_INSTALL=$ac_dots$INSTALL ;; 5556234949Sbapt esac 5557234949Sbapt 5558234949Sbapt if test x"$ac_file" != x-; then 5559268899Sbapt { echo "$as_me:5559: creating $ac_file" >&5 5560234949Sbaptecho "$as_me: creating $ac_file" >&6;} 5561234949Sbapt rm -f "$ac_file" 5562234949Sbapt fi 5563234949Sbapt # Let's still pretend it is `configure' which instantiates (i.e., don't 5564234949Sbapt # use $as_me), people would be surprised to read: 5565234949Sbapt # /* config.h. Generated automatically by config.status. */ 5566234949Sbapt configure_input="Generated automatically from `echo $ac_file_in | 5567234949Sbapt sed 's,.*/,,'` by configure." 5568234949Sbapt 5569234949Sbapt # First look for the input files in the build tree, otherwise in the 5570234949Sbapt # src tree. 5571234949Sbapt ac_file_inputs=`IFS=: 5572234949Sbapt for f in $ac_file_in; do 5573234949Sbapt case $f in 5574234949Sbapt -) echo $tmp/stdin ;; 5575234949Sbapt [\\/$]*) 5576234949Sbapt # Absolute (can't be DOS-style, as IFS=:) 5577268899Sbapt test -f "$f" || { { echo "$as_me:5577: error: cannot find input file: $f" >&5 5578234949Sbaptecho "$as_me: error: cannot find input file: $f" >&2;} 5579234949Sbapt { (exit 1); exit 1; }; } 5580234949Sbapt echo $f;; 5581234949Sbapt *) # Relative 5582234949Sbapt if test -f "$f"; then 5583234949Sbapt # Build tree 5584234949Sbapt echo $f 5585234949Sbapt elif test -f "$srcdir/$f"; then 5586234949Sbapt # Source tree 5587234949Sbapt echo $srcdir/$f 5588234949Sbapt else 5589234949Sbapt # /dev/null tree 5590268899Sbapt { { echo "$as_me:5590: error: cannot find input file: $f" >&5 5591234949Sbaptecho "$as_me: error: cannot find input file: $f" >&2;} 5592234949Sbapt { (exit 1); exit 1; }; } 5593234949Sbapt fi;; 5594234949Sbapt esac 5595234949Sbapt done` || { (exit 1); exit 1; } 5596234949SbaptEOF 5597251143Sbaptcat >>$CONFIG_STATUS <<\EOF 5598251143Sbapt ac_warn_datarootdir=no 5599251143Sbapt if test x"$ac_file" != x-; then 5600251143Sbapt for ac_item in $ac_file_inputs 5601251143Sbapt do 5602251143Sbapt ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item` 5603251143Sbapt if test -n "$ac_seen"; then 5604251143Sbapt ac_used=`grep '@datarootdir@' $ac_item` 5605251143Sbapt if test -z "$ac_used"; then 5606268899Sbapt { echo "$as_me:5606: WARNING: datarootdir was used implicitly but not set: 5607251143Sbapt$ac_seen" >&5 5608251143Sbaptecho "$as_me: WARNING: datarootdir was used implicitly but not set: 5609251143Sbapt$ac_seen" >&2;} 5610251143Sbapt ac_warn_datarootdir=yes 5611251143Sbapt fi 5612251143Sbapt fi 5613251143Sbapt ac_seen=`grep '${datarootdir}' $ac_item` 5614251143Sbapt if test -n "$ac_seen"; then 5615268899Sbapt { echo "$as_me:5615: WARNING: datarootdir was used explicitly but not set: 5616251143Sbapt$ac_seen" >&5 5617251143Sbaptecho "$as_me: WARNING: datarootdir was used explicitly but not set: 5618251143Sbapt$ac_seen" >&2;} 5619251143Sbapt ac_warn_datarootdir=yes 5620251143Sbapt fi 5621251143Sbapt done 5622251143Sbapt fi 5623251143Sbapt 5624251143Sbaptif test "x$ac_warn_datarootdir" = xyes; then 5625251143Sbapt ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'" 5626251143Sbaptfi 5627251143Sbapt 5628251143SbaptEOF 5629234949Sbaptcat >>$CONFIG_STATUS <<EOF 5630234949Sbapt sed "$ac_vpsub 5631234949Sbapt$extrasub 5632234949SbaptEOF 5633234949Sbaptcat >>$CONFIG_STATUS <<\EOF 5634234949Sbapt:t 5635234949Sbapt/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 5636234949Sbapts,@configure_input@,$configure_input,;t t 5637234949Sbapts,@srcdir@,$ac_srcdir,;t t 5638234949Sbapts,@top_srcdir@,$ac_top_srcdir,;t t 5639234949Sbapts,@INSTALL@,$ac_INSTALL,;t t 5640234949Sbapt" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 5641234949Sbapt rm -f $tmp/stdin 5642234949Sbapt if test x"$ac_file" != x-; then 5643251143Sbapt cp $tmp/out $ac_file 5644251143Sbapt 5645251143Sbapt for ac_name in prefix exec_prefix datarootdir 5646251143Sbapt do 5647251143Sbapt ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file` 5648251143Sbapt if test -n "$ac_seen"; then 5649251143Sbapt ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file` 5650251143Sbapt if test -z "$ac_init"; then 5651251143Sbapt ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'` 5652268899Sbapt { echo "$as_me:5652: WARNING: Variable $ac_name is used but was not set: 5653251143Sbapt$ac_seen" >&5 5654251143Sbaptecho "$as_me: WARNING: Variable $ac_name is used but was not set: 5655251143Sbapt$ac_seen" >&2;} 5656251143Sbapt fi 5657251143Sbapt fi 5658251143Sbapt done 5659251143Sbapt egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out 5660251143Sbapt egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out 5661251143Sbapt if test -s $tmp/out; then 5662251143Sbapt ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out` 5663268899Sbapt { echo "$as_me:5663: WARNING: Some variables may not be substituted: 5664251143Sbapt$ac_seen" >&5 5665251143Sbaptecho "$as_me: WARNING: Some variables may not be substituted: 5666251143Sbapt$ac_seen" >&2;} 5667251143Sbapt fi 5668234949Sbapt else 5669234949Sbapt cat $tmp/out 5670234949Sbapt fi 5671251143Sbapt rm -f $tmp/out 5672234949Sbapt 5673234949Sbaptdone 5674234949SbaptEOF 5675234949Sbaptcat >>$CONFIG_STATUS <<\EOF 5676234949Sbapt 5677234949Sbapt# 5678234949Sbapt# CONFIG_HEADER section. 5679234949Sbapt# 5680234949Sbapt 5681234949Sbapt# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 5682234949Sbapt# NAME is the cpp macro being defined and VALUE is the value it is being given. 5683234949Sbapt# 5684234949Sbapt# ac_d sets the value in "#define NAME VALUE" lines. 5685234949Sbaptac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 5686234949Sbaptac_dB='[ ].*$,\1#\2' 5687234949Sbaptac_dC=' ' 5688234949Sbaptac_dD=',;t' 5689234949Sbapt# ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 5690234949Sbaptac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 5691234949Sbaptac_iB='\([ ]\),\1#\2define\3' 5692234949Sbaptac_iC=' ' 5693234949Sbaptac_iD='\4,;t' 5694234949Sbapt# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 5695234949Sbaptac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 5696234949Sbaptac_uB='$,\1#\2define\3' 5697234949Sbaptac_uC=' ' 5698234949Sbaptac_uD=',;t' 5699234949Sbapt 5700234949Sbaptfor ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 5701234949Sbapt # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 5702234949Sbapt case $ac_file in 5703234949Sbapt - | *:- | *:-:* ) # input from stdin 5704234949Sbapt cat >$tmp/stdin 5705234949Sbapt ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5706234949Sbapt ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5707234949Sbapt *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5708234949Sbapt ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5709234949Sbapt * ) ac_file_in=$ac_file.in ;; 5710234949Sbapt esac 5711234949Sbapt 5712268899Sbapt test x"$ac_file" != x- && { echo "$as_me:5712: creating $ac_file" >&5 5713234949Sbaptecho "$as_me: creating $ac_file" >&6;} 5714234949Sbapt 5715234949Sbapt # First look for the input files in the build tree, otherwise in the 5716234949Sbapt # src tree. 5717234949Sbapt ac_file_inputs=`IFS=: 5718234949Sbapt for f in $ac_file_in; do 5719234949Sbapt case $f in 5720234949Sbapt -) echo $tmp/stdin ;; 5721234949Sbapt [\\/$]*) 5722234949Sbapt # Absolute (can't be DOS-style, as IFS=:) 5723268899Sbapt test -f "$f" || { { echo "$as_me:5723: error: cannot find input file: $f" >&5 5724234949Sbaptecho "$as_me: error: cannot find input file: $f" >&2;} 5725234949Sbapt { (exit 1); exit 1; }; } 5726234949Sbapt echo $f;; 5727234949Sbapt *) # Relative 5728234949Sbapt if test -f "$f"; then 5729234949Sbapt # Build tree 5730234949Sbapt echo $f 5731234949Sbapt elif test -f "$srcdir/$f"; then 5732234949Sbapt # Source tree 5733234949Sbapt echo $srcdir/$f 5734234949Sbapt else 5735234949Sbapt # /dev/null tree 5736268899Sbapt { { echo "$as_me:5736: error: cannot find input file: $f" >&5 5737234949Sbaptecho "$as_me: error: cannot find input file: $f" >&2;} 5738234949Sbapt { (exit 1); exit 1; }; } 5739234949Sbapt fi;; 5740234949Sbapt esac 5741234949Sbapt done` || { (exit 1); exit 1; } 5742234949Sbapt # Remove the trailing spaces. 5743234949Sbapt sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 5744234949Sbapt 5745234949SbaptEOF 5746234949Sbapt 5747251143Sbapt# Transform confdefs.h into two sed scripts, `conftest.defines' and 5748251143Sbapt# `conftest.undefs', that substitutes the proper values into 5749251143Sbapt# config.h.in to produce config.h. The first handles `#define' 5750251143Sbapt# templates, and the second `#undef' templates. 5751251143Sbapt# And first: Protect against being on the right side of a sed subst in 5752251143Sbapt# config.status. Protect against being in an unquoted here document 5753251143Sbapt# in config.status. 5754251143Sbaptrm -f conftest.defines conftest.undefs 5755251143Sbapt# Using a here document instead of a string reduces the quoting nightmare. 5756251143Sbapt# Putting comments in sed scripts is not portable. 5757251143Sbapt# 5758251143Sbapt# `end' is used to avoid that the second main sed command (meant for 5759251143Sbapt# 0-ary CPP macros) applies to n-ary macro definitions. 5760251143Sbapt# See the Autoconf documentation for `clear'. 5761251143Sbaptcat >confdef2sed.sed <<\EOF 5762251143Sbapts/[\\&,]/\\&/g 5763251143Sbapts,[\\$`],\\&,g 5764251143Sbaptt clear 5765251143Sbapt: clear 5766251143Sbapts,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp 5767251143Sbaptt end 5768251143Sbapts,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 5769251143Sbapt: end 5770251143SbaptEOF 5771251143Sbapt# If some macros were called several times there might be several times 5772251143Sbapt# the same #defines, which is useless. Nevertheless, we may not want to 5773251143Sbapt# sort them, since we want the *last* AC-DEFINE to be honored. 5774251143Sbaptuniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 5775251143Sbaptsed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 5776251143Sbaptsed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs 5777251143Sbaptrm -f confdef2sed.sed 5778234949Sbapt 5779251143Sbapt# This sed command replaces #undef with comments. This is necessary, for 5780251143Sbapt# example, in the case of _POSIX_SOURCE, which is predefined and required 5781251143Sbapt# on some systems where configure will not decide to define it. 5782251143Sbaptcat >>conftest.undefs <<\EOF 5783251143Sbapts,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 5784251143SbaptEOF 5785234949Sbapt 5786251143Sbapt# Break up conftest.defines because some shells have a limit on the size 5787251143Sbapt# of here documents, and old seds have small limits too (100 cmds). 5788251143Sbaptecho ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 5789251143Sbaptecho ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 5790251143Sbaptecho ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 5791251143Sbaptecho ' :' >>$CONFIG_STATUS 5792234949Sbaptrm -f conftest.tail 5793251143Sbaptwhile grep . conftest.defines >/dev/null 5794234949Sbaptdo 5795251143Sbapt # Write a limited-size here document to $tmp/defines.sed. 5796251143Sbapt echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 5797251143Sbapt # Speed up: don't consider the non `#define' lines. 5798251143Sbapt echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 5799251143Sbapt # Work around the forget-to-reset-the-flag bug. 5800251143Sbapt echo 't clr' >>$CONFIG_STATUS 5801251143Sbapt echo ': clr' >>$CONFIG_STATUS 5802251143Sbapt sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 5803251143Sbapt echo 'CEOF 5804251143Sbapt sed -f $tmp/defines.sed $tmp/in >$tmp/out 5805251143Sbapt rm -f $tmp/in 5806251143Sbapt mv $tmp/out $tmp/in 5807251143Sbapt' >>$CONFIG_STATUS 5808251143Sbapt sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 5809251143Sbapt rm -f conftest.defines 5810251143Sbapt mv conftest.tail conftest.defines 5811234949Sbaptdone 5812251143Sbaptrm -f conftest.defines 5813251143Sbaptecho ' fi # egrep' >>$CONFIG_STATUS 5814251143Sbaptecho >>$CONFIG_STATUS 5815234949Sbapt 5816251143Sbapt# Break up conftest.undefs because some shells have a limit on the size 5817251143Sbapt# of here documents, and old seds have small limits too (100 cmds). 5818251143Sbaptecho ' # Handle all the #undef templates' >>$CONFIG_STATUS 5819251143Sbaptrm -f conftest.tail 5820251143Sbaptwhile grep . conftest.undefs >/dev/null 5821251143Sbaptdo 5822251143Sbapt # Write a limited-size here document to $tmp/undefs.sed. 5823251143Sbapt echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 5824251143Sbapt # Speed up: don't consider the non `#undef' 5825251143Sbapt echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 5826251143Sbapt # Work around the forget-to-reset-the-flag bug. 5827251143Sbapt echo 't clr' >>$CONFIG_STATUS 5828251143Sbapt echo ': clr' >>$CONFIG_STATUS 5829251143Sbapt sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 5830251143Sbapt echo 'CEOF 5831251143Sbapt sed -f $tmp/undefs.sed $tmp/in >$tmp/out 5832251143Sbapt rm -f $tmp/in 5833251143Sbapt mv $tmp/out $tmp/in 5834251143Sbapt' >>$CONFIG_STATUS 5835251143Sbapt sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 5836251143Sbapt rm -f conftest.undefs 5837251143Sbapt mv conftest.tail conftest.undefs 5838251143Sbaptdone 5839251143Sbaptrm -f conftest.undefs 5840234949Sbapt 5841234949Sbaptcat >>$CONFIG_STATUS <<\EOF 5842234949Sbapt # Let's still pretend it is `configure' which instantiates (i.e., don't 5843234949Sbapt # use $as_me), people would be surprised to read: 5844234949Sbapt # /* config.h. Generated automatically by config.status. */ 5845234949Sbapt if test x"$ac_file" = x-; then 5846234949Sbapt echo "/* Generated automatically by configure. */" >$tmp/config.h 5847234949Sbapt else 5848234949Sbapt echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h 5849234949Sbapt fi 5850234949Sbapt cat $tmp/in >>$tmp/config.h 5851234949Sbapt rm -f $tmp/in 5852234949Sbapt if test x"$ac_file" != x-; then 5853234949Sbapt if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 5854268899Sbapt { echo "$as_me:5854: $ac_file is unchanged" >&5 5855234949Sbaptecho "$as_me: $ac_file is unchanged" >&6;} 5856234949Sbapt else 5857234949Sbapt ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5858234949Sbapt X"$ac_file" : 'X\(//\)[^/]' \| \ 5859234949Sbapt X"$ac_file" : 'X\(//\)$' \| \ 5860234949Sbapt X"$ac_file" : 'X\(/\)' \| \ 5861234949Sbapt . : '\(.\)' 2>/dev/null || 5862234949Sbaptecho X"$ac_file" | 5863234949Sbapt sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5864234949Sbapt /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5865234949Sbapt /^X\(\/\/\)$/{ s//\1/; q; } 5866234949Sbapt /^X\(\/\).*/{ s//\1/; q; } 5867234949Sbapt s/.*/./; q'` 5868234949Sbapt if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 5869234949Sbapt { case "$ac_dir" in 5870234949Sbapt [\\/]* | ?:[\\/]* ) as_incr_dir=;; 5871234949Sbapt *) as_incr_dir=.;; 5872234949Sbaptesac 5873234949Sbaptas_dummy="$ac_dir" 5874234949Sbaptfor as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 5875234949Sbapt case $as_mkdir_dir in 5876234949Sbapt # Skip DOS drivespec 5877234949Sbapt ?:) as_incr_dir=$as_mkdir_dir ;; 5878234949Sbapt *) 5879234949Sbapt as_incr_dir=$as_incr_dir/$as_mkdir_dir 5880234949Sbapt test -d "$as_incr_dir" || mkdir "$as_incr_dir" 5881234949Sbapt ;; 5882234949Sbapt esac 5883234949Sbaptdone; } 5884234949Sbapt 5885234949Sbapt fi 5886234949Sbapt rm -f $ac_file 5887234949Sbapt mv $tmp/config.h $ac_file 5888234949Sbapt fi 5889234949Sbapt else 5890234949Sbapt cat $tmp/config.h 5891234949Sbapt rm -f $tmp/config.h 5892234949Sbapt fi 5893234949Sbaptdone 5894234949SbaptEOF 5895234949Sbapt 5896234949Sbaptcat >>$CONFIG_STATUS <<\EOF 5897234949Sbapt 5898234949Sbapt{ (exit 0); exit 0; } 5899234949SbaptEOF 5900234949Sbaptchmod +x $CONFIG_STATUS 5901234949Sbaptac_clean_files=$ac_clean_files_save 5902234949Sbapt 5903234949Sbapt# configure is writing to config.log, and then calls config.status. 5904234949Sbapt# config.status does its own redirection, appending to config.log. 5905234949Sbapt# Unfortunately, on DOS this fails, as config.log is still kept open 5906234949Sbapt# by configure, so config.status won't be able to write to it; its 5907234949Sbapt# output is simply discarded. So we exec the FD to /dev/null, 5908234949Sbapt# effectively closing config.log, so it can be properly (re)opened and 5909234949Sbapt# appended to by config.status. When coming back to configure, we 5910234949Sbapt# need to make the FD available again. 5911234949Sbaptif test "$no_create" != yes; then 5912234949Sbapt ac_cs_success=: 5913234949Sbapt exec 5>/dev/null 5914234949Sbapt $SHELL $CONFIG_STATUS || ac_cs_success=false 5915234949Sbapt exec 5>>config.log 5916234949Sbapt # Use ||, not &&, to avoid exiting from the if with $? = 1, which 5917234949Sbapt # would make configure fail if this is the last instruction. 5918234949Sbapt $ac_cs_success || { (exit 1); exit 1; } 5919234949Sbaptfi 5920234949Sbapt 5921268899Sbapttest -z "$cf_make_docs" && cf_make_docs=0 5922268899Sbapt 5923268899Sbaptcf_output=makefile 5924268899Sbapttest -f "$cf_output" || cf_output=Makefile 5925268899Sbapt 5926268899Sbaptif test "$cf_make_docs" = 0 5927268899Sbaptthen 5928268899Sbaptcat >>$cf_output <<"CF_EOF" 5929268899Sbapt################################################################################ 5930268899Sbapt.SUFFIXES : .html .1 .man .ps .pdf .txt 5931268899Sbapt 5932268899Sbapt.1.html : 5933268899Sbapt GROFF_NO_SGR=stupid $(SHELL) -c "tbl $*.1 | groff -P -o0 -Iyacc,1_ -Thtml -man" >$@ 5934268899Sbapt 5935268899Sbapt.1.ps : 5936268899Sbapt $(SHELL) -c "tbl $*.1 | groff -man" >$@ 5937268899Sbapt 5938268899Sbapt.1.txt : 5939268899Sbapt GROFF_NO_SGR=stupid $(SHELL) -c "tbl $*.1 | nroff -Tascii -man | col -bx" >$@ 5940268899Sbapt 5941268899Sbapt.ps.pdf : 5942268899Sbapt ps2pdf $*.ps 5943268899Sbapt 5944268899SbaptCF_EOF 5945268899Sbapt cf_make_docs=1 5946268899Sbaptfi 5947268899Sbapt 5948268899Sbaptfor cf_name in yacc 5949268899Sbaptdo 5950268899Sbaptcat >>$cf_output <<CF_EOF 5951268899Sbapt################################################################################ 5952268899Sbaptdocs-$cf_name \\ 5953268899Sbaptdocs :: $cf_name.html \\ 5954268899Sbapt $cf_name.pdf \\ 5955268899Sbapt $cf_name.ps \\ 5956268899Sbapt $cf_name.txt 5957268899Sbapt 5958268899Sbaptclean \\ 5959268899Sbaptdocs-clean :: 5960268899Sbapt rm -f $cf_name.html $cf_name.pdf $cf_name.ps $cf_name.txt 5961268899Sbapt 5962268899Sbapt$cf_name.html : $cf_name.\1 5963268899Sbapt$cf_name.pdf : $cf_name.ps 5964268899Sbapt$cf_name.ps : $cf_name.\1 5965268899Sbapt$cf_name.txt : $cf_name.\1 5966268899SbaptCF_EOF 5967268899Sbaptdone 5968268899Sbapt 5969