1234949Sbapt#! /bin/sh 2296240Sjkim# From configure.in Revision: 1.21 . 3234949Sbapt# Guess values for system-dependent variables and create Makefiles. 4319297Sdelphij# Generated by Autoconf 2.52.20150926. 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" 109272769Sbapt# Factoring default headers for most tests. 110272769Sbaptac_includes_default="\ 111272769Sbapt#include <stdio.h> 112272769Sbapt#if HAVE_SYS_TYPES_H 113272769Sbapt# include <sys/types.h> 114272769Sbapt#endif 115272769Sbapt#if HAVE_SYS_STAT_H 116272769Sbapt# include <sys/stat.h> 117272769Sbapt#endif 118272769Sbapt#if STDC_HEADERS 119272769Sbapt# include <stdlib.h> 120272769Sbapt# include <stddef.h> 121272769Sbapt#else 122272769Sbapt# if HAVE_STDLIB_H 123272769Sbapt# include <stdlib.h> 124272769Sbapt# endif 125272769Sbapt#endif 126272769Sbapt#if HAVE_STRING_H 127272769Sbapt# if !STDC_HEADERS && HAVE_MEMORY_H 128272769Sbapt# include <memory.h> 129272769Sbapt# endif 130272769Sbapt# include <string.h> 131272769Sbapt#endif 132272769Sbapt#if HAVE_STRINGS_H 133272769Sbapt# include <strings.h> 134272769Sbapt#endif 135272769Sbapt#if HAVE_INTTYPES_H 136272769Sbapt# include <inttypes.h> 137272769Sbapt#else 138272769Sbapt# if HAVE_STDINT_H 139272769Sbapt# include <stdint.h> 140272769Sbapt# endif 141272769Sbapt#endif 142272769Sbapt#if HAVE_UNISTD_H 143272769Sbapt# include <unistd.h> 144272769Sbapt#endif" 145234949Sbapt 146234949Sbapt# Initialize some variables set by options. 147234949Sbaptac_init_help= 148234949Sbaptac_init_version=false 149234949Sbapt# The variables have the same names as the options, with 150234949Sbapt# dashes changed to underlines. 151234949Sbaptcache_file=/dev/null 152234949Sbaptexec_prefix=NONE 153234949Sbaptno_create= 154234949Sbaptno_recursion= 155234949Sbaptprefix=NONE 156234949Sbaptprogram_prefix=NONE 157234949Sbaptprogram_suffix=NONE 158234949Sbaptprogram_transform_name=s,x,x, 159234949Sbaptsilent= 160234949Sbaptsite= 161234949Sbaptsrcdir= 162234949Sbaptverbose= 163234949Sbaptx_includes=NONE 164234949Sbaptx_libraries=NONE 165234949Sbapt 166234949Sbapt# Installation directory options. 167234949Sbapt# These are left unexpanded so users can "make install exec_prefix=/foo" 168234949Sbapt# and all the variables that are supposed to be based on exec_prefix 169234949Sbapt# by default will actually change. 170234949Sbapt# Use braces instead of parens because sh, perl, etc. also accept them. 171234949Sbaptbindir='${exec_prefix}/bin' 172234949Sbaptsbindir='${exec_prefix}/sbin' 173234949Sbaptlibexecdir='${exec_prefix}/libexec' 174251143Sbaptdatarootdir='${prefix}/share' 175251143Sbaptdatadir='${datarootdir}' 176234949Sbaptsysconfdir='${prefix}/etc' 177234949Sbaptsharedstatedir='${prefix}/com' 178234949Sbaptlocalstatedir='${prefix}/var' 179234949Sbaptlibdir='${exec_prefix}/lib' 180234949Sbaptincludedir='${prefix}/include' 181234949Sbaptoldincludedir='/usr/include' 182251143Sbaptinfodir='${datarootdir}/info' 183251143Sbaptmandir='${datarootdir}/man' 184234949Sbapt 185234949Sbapt# Identity of this package. 186234949SbaptPACKAGE_NAME= 187234949SbaptPACKAGE_TARNAME= 188234949SbaptPACKAGE_VERSION= 189234949SbaptPACKAGE_STRING= 190234949SbaptPACKAGE_BUGREPORT= 191234949Sbapt 192234949Sbaptac_prev= 193234949Sbaptfor ac_option 194234949Sbaptdo 195234949Sbapt # If the previous option needs an argument, assign it. 196234949Sbapt if test -n "$ac_prev"; then 197234949Sbapt eval "$ac_prev=\$ac_option" 198234949Sbapt ac_prev= 199234949Sbapt continue 200234949Sbapt fi 201234949Sbapt 202234949Sbapt ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 203234949Sbapt 204234949Sbapt # Accept the important Cygnus configure options, so we can diagnose typos. 205234949Sbapt 206234949Sbapt case $ac_option in 207234949Sbapt 208234949Sbapt -bindir | --bindir | --bindi | --bind | --bin | --bi) 209234949Sbapt ac_prev=bindir ;; 210234949Sbapt -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 211234949Sbapt bindir=$ac_optarg ;; 212234949Sbapt 213234949Sbapt -build | --build | --buil | --bui | --bu) 214234949Sbapt ac_prev=build_alias ;; 215234949Sbapt -build=* | --build=* | --buil=* | --bui=* | --bu=*) 216234949Sbapt build_alias=$ac_optarg ;; 217234949Sbapt 218234949Sbapt -cache-file | --cache-file | --cache-fil | --cache-fi \ 219234949Sbapt | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 220234949Sbapt ac_prev=cache_file ;; 221234949Sbapt -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 222234949Sbapt | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 223234949Sbapt cache_file=$ac_optarg ;; 224234949Sbapt 225234949Sbapt --config-cache | -C) 226234949Sbapt cache_file=config.cache ;; 227234949Sbapt 228234949Sbapt -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 229234949Sbapt ac_prev=datadir ;; 230234949Sbapt -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 231234949Sbapt | --da=*) 232234949Sbapt datadir=$ac_optarg ;; 233234949Sbapt 234251143Sbapt -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 235251143Sbapt | --dataroo | --dataro | --datar) 236251143Sbapt ac_prev=datarootdir ;; 237251143Sbapt -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 238251143Sbapt | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 239251143Sbapt datarootdir=$ac_optarg ;; 240251143Sbapt 241234949Sbapt -disable-* | --disable-*) 242234949Sbapt ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 243234949Sbapt # Reject names that are not valid shell variable names. 244234949Sbapt expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 245234949Sbapt { echo "$as_me: error: invalid feature name: $ac_feature" >&2 246234949Sbapt { (exit 1); exit 1; }; } 247234949Sbapt ac_feature=`echo $ac_feature | sed 's/-/_/g'` 248234949Sbapt eval "enable_$ac_feature=no" ;; 249234949Sbapt 250234949Sbapt -enable-* | --enable-*) 251234949Sbapt ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 252234949Sbapt # Reject names that are not valid shell variable names. 253234949Sbapt expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 254234949Sbapt { echo "$as_me: error: invalid feature name: $ac_feature" >&2 255234949Sbapt { (exit 1); exit 1; }; } 256234949Sbapt ac_feature=`echo $ac_feature | sed 's/-/_/g'` 257234949Sbapt case $ac_option in 258234949Sbapt *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 259234949Sbapt *) ac_optarg=yes ;; 260234949Sbapt esac 261234949Sbapt eval "enable_$ac_feature='$ac_optarg'" ;; 262234949Sbapt 263234949Sbapt -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 264234949Sbapt | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 265234949Sbapt | --exec | --exe | --ex) 266234949Sbapt ac_prev=exec_prefix ;; 267234949Sbapt -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 268234949Sbapt | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 269234949Sbapt | --exec=* | --exe=* | --ex=*) 270234949Sbapt exec_prefix=$ac_optarg ;; 271234949Sbapt 272234949Sbapt -gas | --gas | --ga | --g) 273234949Sbapt # Obsolete; use --with-gas. 274234949Sbapt with_gas=yes ;; 275234949Sbapt 276234949Sbapt -help | --help | --hel | --he | -h) 277234949Sbapt ac_init_help=long ;; 278234949Sbapt -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 279234949Sbapt ac_init_help=recursive ;; 280234949Sbapt -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 281234949Sbapt ac_init_help=short ;; 282234949Sbapt 283234949Sbapt -host | --host | --hos | --ho) 284234949Sbapt ac_prev=host_alias ;; 285234949Sbapt -host=* | --host=* | --hos=* | --ho=*) 286234949Sbapt host_alias=$ac_optarg ;; 287234949Sbapt 288234949Sbapt -includedir | --includedir | --includedi | --included | --include \ 289234949Sbapt | --includ | --inclu | --incl | --inc) 290234949Sbapt ac_prev=includedir ;; 291234949Sbapt -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 292234949Sbapt | --includ=* | --inclu=* | --incl=* | --inc=*) 293234949Sbapt includedir=$ac_optarg ;; 294234949Sbapt 295234949Sbapt -infodir | --infodir | --infodi | --infod | --info | --inf) 296234949Sbapt ac_prev=infodir ;; 297234949Sbapt -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 298234949Sbapt infodir=$ac_optarg ;; 299234949Sbapt 300234949Sbapt -libdir | --libdir | --libdi | --libd) 301234949Sbapt ac_prev=libdir ;; 302234949Sbapt -libdir=* | --libdir=* | --libdi=* | --libd=*) 303234949Sbapt libdir=$ac_optarg ;; 304234949Sbapt 305234949Sbapt -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 306234949Sbapt | --libexe | --libex | --libe) 307234949Sbapt ac_prev=libexecdir ;; 308234949Sbapt -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 309234949Sbapt | --libexe=* | --libex=* | --libe=*) 310234949Sbapt libexecdir=$ac_optarg ;; 311234949Sbapt 312234949Sbapt -localstatedir | --localstatedir | --localstatedi | --localstated \ 313234949Sbapt | --localstate | --localstat | --localsta | --localst \ 314234949Sbapt | --locals | --local | --loca | --loc | --lo) 315234949Sbapt ac_prev=localstatedir ;; 316234949Sbapt -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 317234949Sbapt | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 318234949Sbapt | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 319234949Sbapt localstatedir=$ac_optarg ;; 320234949Sbapt 321234949Sbapt -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 322234949Sbapt ac_prev=mandir ;; 323234949Sbapt -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 324234949Sbapt mandir=$ac_optarg ;; 325234949Sbapt 326234949Sbapt -nfp | --nfp | --nf) 327234949Sbapt # Obsolete; use --without-fp. 328234949Sbapt with_fp=no ;; 329234949Sbapt 330234949Sbapt -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 331234949Sbapt | --no-cr | --no-c) 332234949Sbapt no_create=yes ;; 333234949Sbapt 334234949Sbapt -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 335234949Sbapt | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 336234949Sbapt no_recursion=yes ;; 337234949Sbapt 338234949Sbapt -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 339234949Sbapt | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 340234949Sbapt | --oldin | --oldi | --old | --ol | --o) 341234949Sbapt ac_prev=oldincludedir ;; 342234949Sbapt -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 343234949Sbapt | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 344234949Sbapt | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 345234949Sbapt oldincludedir=$ac_optarg ;; 346234949Sbapt 347234949Sbapt -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 348234949Sbapt ac_prev=prefix ;; 349234949Sbapt -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 350234949Sbapt prefix=$ac_optarg ;; 351234949Sbapt 352234949Sbapt -program-prefix | --program-prefix | --program-prefi | --program-pref \ 353234949Sbapt | --program-pre | --program-pr | --program-p) 354234949Sbapt ac_prev=program_prefix ;; 355234949Sbapt -program-prefix=* | --program-prefix=* | --program-prefi=* \ 356234949Sbapt | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 357234949Sbapt program_prefix=$ac_optarg ;; 358234949Sbapt 359234949Sbapt -program-suffix | --program-suffix | --program-suffi | --program-suff \ 360234949Sbapt | --program-suf | --program-su | --program-s) 361234949Sbapt ac_prev=program_suffix ;; 362234949Sbapt -program-suffix=* | --program-suffix=* | --program-suffi=* \ 363234949Sbapt | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 364234949Sbapt program_suffix=$ac_optarg ;; 365234949Sbapt 366234949Sbapt -program-transform-name | --program-transform-name \ 367234949Sbapt | --program-transform-nam | --program-transform-na \ 368234949Sbapt | --program-transform-n | --program-transform- \ 369234949Sbapt | --program-transform | --program-transfor \ 370234949Sbapt | --program-transfo | --program-transf \ 371234949Sbapt | --program-trans | --program-tran \ 372234949Sbapt | --progr-tra | --program-tr | --program-t) 373234949Sbapt ac_prev=program_transform_name ;; 374234949Sbapt -program-transform-name=* | --program-transform-name=* \ 375234949Sbapt | --program-transform-nam=* | --program-transform-na=* \ 376234949Sbapt | --program-transform-n=* | --program-transform-=* \ 377234949Sbapt | --program-transform=* | --program-transfor=* \ 378234949Sbapt | --program-transfo=* | --program-transf=* \ 379234949Sbapt | --program-trans=* | --program-tran=* \ 380234949Sbapt | --progr-tra=* | --program-tr=* | --program-t=*) 381234949Sbapt program_transform_name=$ac_optarg ;; 382234949Sbapt 383234949Sbapt -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 384234949Sbapt | -silent | --silent | --silen | --sile | --sil) 385234949Sbapt silent=yes ;; 386234949Sbapt 387234949Sbapt -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 388234949Sbapt ac_prev=sbindir ;; 389234949Sbapt -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 390234949Sbapt | --sbi=* | --sb=*) 391234949Sbapt sbindir=$ac_optarg ;; 392234949Sbapt 393234949Sbapt -sharedstatedir | --sharedstatedir | --sharedstatedi \ 394234949Sbapt | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 395234949Sbapt | --sharedst | --shareds | --shared | --share | --shar \ 396234949Sbapt | --sha | --sh) 397234949Sbapt ac_prev=sharedstatedir ;; 398234949Sbapt -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 399234949Sbapt | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 400234949Sbapt | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 401234949Sbapt | --sha=* | --sh=*) 402234949Sbapt sharedstatedir=$ac_optarg ;; 403234949Sbapt 404234949Sbapt -site | --site | --sit) 405234949Sbapt ac_prev=site ;; 406234949Sbapt -site=* | --site=* | --sit=*) 407234949Sbapt site=$ac_optarg ;; 408234949Sbapt 409234949Sbapt -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 410234949Sbapt ac_prev=srcdir ;; 411234949Sbapt -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 412234949Sbapt srcdir=$ac_optarg ;; 413234949Sbapt 414234949Sbapt -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 415234949Sbapt | --syscon | --sysco | --sysc | --sys | --sy) 416234949Sbapt ac_prev=sysconfdir ;; 417234949Sbapt -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 418234949Sbapt | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 419234949Sbapt sysconfdir=$ac_optarg ;; 420234949Sbapt 421234949Sbapt -target | --target | --targe | --targ | --tar | --ta | --t) 422234949Sbapt ac_prev=target_alias ;; 423234949Sbapt -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 424234949Sbapt target_alias=$ac_optarg ;; 425234949Sbapt 426234949Sbapt -v | -verbose | --verbose | --verbos | --verbo | --verb) 427234949Sbapt verbose=yes ;; 428234949Sbapt 429234949Sbapt -version | --version | --versio | --versi | --vers | -V) 430234949Sbapt ac_init_version=: ;; 431234949Sbapt 432234949Sbapt -with-* | --with-*) 433234949Sbapt ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 434234949Sbapt # Reject names that are not valid shell variable names. 435234949Sbapt expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 436234949Sbapt { echo "$as_me: error: invalid package name: $ac_package" >&2 437234949Sbapt { (exit 1); exit 1; }; } 438234949Sbapt ac_package=`echo $ac_package| sed 's/-/_/g'` 439234949Sbapt case $ac_option in 440234949Sbapt *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 441234949Sbapt *) ac_optarg=yes ;; 442234949Sbapt esac 443234949Sbapt eval "with_$ac_package='$ac_optarg'" ;; 444234949Sbapt 445234949Sbapt -without-* | --without-*) 446234949Sbapt ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 447234949Sbapt # Reject names that are not valid shell variable names. 448234949Sbapt expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 449234949Sbapt { echo "$as_me: error: invalid package name: $ac_package" >&2 450234949Sbapt { (exit 1); exit 1; }; } 451234949Sbapt ac_package=`echo $ac_package | sed 's/-/_/g'` 452234949Sbapt eval "with_$ac_package=no" ;; 453234949Sbapt 454234949Sbapt --x) 455234949Sbapt # Obsolete; use --with-x. 456234949Sbapt with_x=yes ;; 457234949Sbapt 458234949Sbapt -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 459234949Sbapt | --x-incl | --x-inc | --x-in | --x-i) 460234949Sbapt ac_prev=x_includes ;; 461234949Sbapt -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 462234949Sbapt | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 463234949Sbapt x_includes=$ac_optarg ;; 464234949Sbapt 465234949Sbapt -x-libraries | --x-libraries | --x-librarie | --x-librari \ 466234949Sbapt | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 467234949Sbapt ac_prev=x_libraries ;; 468234949Sbapt -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 469234949Sbapt | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 470234949Sbapt x_libraries=$ac_optarg ;; 471234949Sbapt 472234949Sbapt -*) { echo "$as_me: error: unrecognized option: $ac_option 473234949SbaptTry \`$0 --help' for more information." >&2 474234949Sbapt { (exit 1); exit 1; }; } 475234949Sbapt ;; 476234949Sbapt 477234949Sbapt *=*) 478234949Sbapt ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 479234949Sbapt # Reject names that are not valid shell variable names. 480234949Sbapt expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 481234949Sbapt { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 482234949Sbapt { (exit 1); exit 1; }; } 483234949Sbapt ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 484234949Sbapt eval "$ac_envvar='$ac_optarg'" 485234949Sbapt export $ac_envvar ;; 486234949Sbapt 487234949Sbapt *) 488234949Sbapt # FIXME: should be removed in autoconf 3.0. 489234949Sbapt echo "$as_me: WARNING: you should use --build, --host, --target" >&2 490234949Sbapt expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 491234949Sbapt echo "$as_me: WARNING: invalid host type: $ac_option" >&2 492234949Sbapt : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 493234949Sbapt ;; 494234949Sbapt 495234949Sbapt esac 496234949Sbaptdone 497234949Sbapt 498234949Sbaptif test -n "$ac_prev"; then 499234949Sbapt ac_option=--`echo $ac_prev | sed 's/_/-/g'` 500234949Sbapt { echo "$as_me: error: missing argument to $ac_option" >&2 501234949Sbapt { (exit 1); exit 1; }; } 502234949Sbaptfi 503234949Sbapt 504234949Sbapt# Be sure to have absolute paths. 505234949Sbaptfor ac_var in exec_prefix prefix 506234949Sbaptdo 507234949Sbapt eval ac_val=$`echo $ac_var` 508234949Sbapt case $ac_val in 509234949Sbapt [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 510234949Sbapt *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 511234949Sbapt { (exit 1); exit 1; }; };; 512234949Sbapt esac 513234949Sbaptdone 514234949Sbapt 515234949Sbapt# Be sure to have absolute paths. 516251143Sbaptfor ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \ 517234949Sbapt localstatedir libdir includedir oldincludedir infodir mandir 518234949Sbaptdo 519234949Sbapt eval ac_val=$`echo $ac_var` 520234949Sbapt case $ac_val in 521234949Sbapt [\\/$]* | ?:[\\/]* ) ;; 522234949Sbapt *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 523234949Sbapt { (exit 1); exit 1; }; };; 524234949Sbapt esac 525234949Sbaptdone 526234949Sbapt 527234949Sbapt# There might be people who depend on the old broken behavior: `$host' 528234949Sbapt# used to hold the argument of --host etc. 529234949Sbaptbuild=$build_alias 530234949Sbapthost=$host_alias 531234949Sbapttarget=$target_alias 532234949Sbapt 533234949Sbapt# FIXME: should be removed in autoconf 3.0. 534234949Sbaptif test "x$host_alias" != x; then 535234949Sbapt if test "x$build_alias" = x; then 536234949Sbapt cross_compiling=maybe 537234949Sbapt echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 538234949Sbapt If a cross compiler is detected then cross compile mode will be used." >&2 539234949Sbapt elif test "x$build_alias" != "x$host_alias"; then 540234949Sbapt cross_compiling=yes 541234949Sbapt fi 542234949Sbaptfi 543234949Sbapt 544234949Sbaptac_tool_prefix= 545234949Sbapttest -n "$host_alias" && ac_tool_prefix=$host_alias- 546234949Sbapt 547234949Sbapttest "$silent" = yes && exec 6>/dev/null 548234949Sbapt 549234949Sbapt# Find the source files, if location was not specified. 550234949Sbaptif test -z "$srcdir"; then 551234949Sbapt ac_srcdir_defaulted=yes 552234949Sbapt # Try the directory containing this script, then its parent. 553234949Sbapt ac_prog=$0 554234949Sbapt ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` 555234949Sbapt test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 556234949Sbapt srcdir=$ac_confdir 557234949Sbapt if test ! -r $srcdir/$ac_unique_file; then 558234949Sbapt srcdir=.. 559234949Sbapt fi 560234949Sbaptelse 561234949Sbapt ac_srcdir_defaulted=no 562234949Sbaptfi 563234949Sbaptif test ! -r $srcdir/$ac_unique_file; then 564234949Sbapt if test "$ac_srcdir_defaulted" = yes; then 565234949Sbapt { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 566234949Sbapt { (exit 1); exit 1; }; } 567234949Sbapt else 568234949Sbapt { echo "$as_me: error: cannot find sources in $srcdir" >&2 569234949Sbapt { (exit 1); exit 1; }; } 570234949Sbapt fi 571234949Sbaptfi 572234949Sbaptsrcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 573234949Sbaptac_env_build_alias_set=${build_alias+set} 574234949Sbaptac_env_build_alias_value=$build_alias 575234949Sbaptac_cv_env_build_alias_set=${build_alias+set} 576234949Sbaptac_cv_env_build_alias_value=$build_alias 577234949Sbaptac_env_host_alias_set=${host_alias+set} 578234949Sbaptac_env_host_alias_value=$host_alias 579234949Sbaptac_cv_env_host_alias_set=${host_alias+set} 580234949Sbaptac_cv_env_host_alias_value=$host_alias 581234949Sbaptac_env_target_alias_set=${target_alias+set} 582234949Sbaptac_env_target_alias_value=$target_alias 583234949Sbaptac_cv_env_target_alias_set=${target_alias+set} 584234949Sbaptac_cv_env_target_alias_value=$target_alias 585234949Sbaptac_env_CC_set=${CC+set} 586234949Sbaptac_env_CC_value=$CC 587234949Sbaptac_cv_env_CC_set=${CC+set} 588234949Sbaptac_cv_env_CC_value=$CC 589234949Sbaptac_env_CFLAGS_set=${CFLAGS+set} 590234949Sbaptac_env_CFLAGS_value=$CFLAGS 591234949Sbaptac_cv_env_CFLAGS_set=${CFLAGS+set} 592234949Sbaptac_cv_env_CFLAGS_value=$CFLAGS 593234949Sbaptac_env_LDFLAGS_set=${LDFLAGS+set} 594234949Sbaptac_env_LDFLAGS_value=$LDFLAGS 595234949Sbaptac_cv_env_LDFLAGS_set=${LDFLAGS+set} 596234949Sbaptac_cv_env_LDFLAGS_value=$LDFLAGS 597234949Sbaptac_env_CPPFLAGS_set=${CPPFLAGS+set} 598234949Sbaptac_env_CPPFLAGS_value=$CPPFLAGS 599234949Sbaptac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 600234949Sbaptac_cv_env_CPPFLAGS_value=$CPPFLAGS 601234949Sbaptac_env_CPP_set=${CPP+set} 602234949Sbaptac_env_CPP_value=$CPP 603234949Sbaptac_cv_env_CPP_set=${CPP+set} 604234949Sbaptac_cv_env_CPP_value=$CPP 605234949Sbapt 606234949Sbapt# 607234949Sbapt# Report the --help message. 608234949Sbapt# 609234949Sbaptif test "$ac_init_help" = "long"; then 610234949Sbapt # Omit some internal or obsolete options to make the list less imposing. 611234949Sbapt # This message is too long to be a string in the A/UX 3.1 sh. 612234949Sbapt cat <<EOF 613234949Sbapt\`configure' configures this package to adapt to many kinds of systems. 614234949Sbapt 615234949SbaptUsage: $0 [OPTION]... [VAR=VALUE]... 616234949Sbapt 617234949SbaptTo assign environment variables (e.g., CC, CFLAGS...), specify them as 618234949SbaptVAR=VALUE. See below for descriptions of some of the useful variables. 619234949Sbapt 620234949SbaptDefaults for the options are specified in brackets. 621234949Sbapt 622234949SbaptConfiguration: 623234949Sbapt -h, --help display this help and exit 624234949Sbapt --help=short display options specific to this package 625234949Sbapt --help=recursive display the short help of all the included packages 626234949Sbapt -V, --version display version information and exit 627234949Sbapt -q, --quiet, --silent do not print \`checking...' messages 628234949Sbapt --cache-file=FILE cache test results in FILE [disabled] 629234949Sbapt -C, --config-cache alias for \`--cache-file=config.cache' 630234949Sbapt -n, --no-create do not create output files 631234949Sbapt --srcdir=DIR find the sources in DIR [configure dir or \`..'] 632234949Sbapt 633234949SbaptEOF 634234949Sbapt 635234949Sbapt cat <<EOF 636234949SbaptInstallation directories: 637234949Sbapt --prefix=PREFIX install architecture-independent files in PREFIX 638234949Sbapt [$ac_default_prefix] 639234949Sbapt --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 640234949Sbapt [PREFIX] 641234949Sbapt 642234949SbaptBy default, \`make install' will install all the files in 643234949Sbapt\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 644234949Sbaptan installation prefix other than \`$ac_default_prefix' using \`--prefix', 645234949Sbaptfor instance \`--prefix=\$HOME'. 646234949Sbapt 647234949SbaptFor better control, use the options below. 648234949Sbapt 649234949SbaptFine tuning of the installation directories: 650234949Sbapt --bindir=DIR user executables [EPREFIX/bin] 651234949Sbapt --sbindir=DIR system admin executables [EPREFIX/sbin] 652234949Sbapt --libexecdir=DIR program executables [EPREFIX/libexec] 653251143Sbapt --datarootdir=DIR read-only architecture-independent data [PREFIX/share] 654251143Sbapt --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 655234949Sbapt --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 656234949Sbapt --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 657234949Sbapt --localstatedir=DIR modifiable single-machine data [PREFIX/var] 658234949Sbapt --libdir=DIR object code libraries [EPREFIX/lib] 659234949Sbapt --includedir=DIR C header files [PREFIX/include] 660234949Sbapt --oldincludedir=DIR C header files for non-gcc [/usr/include] 661251143Sbapt --infodir=DIR info documentation [DATAROOTDIR/info] 662251143Sbapt --mandir=DIR man documentation [DATAROOTDIR/man] 663234949SbaptEOF 664234949Sbapt 665234949Sbapt cat <<\EOF 666234949Sbapt 667234949SbaptProgram names: 668234949Sbapt --program-prefix=PREFIX prepend PREFIX to installed program names 669234949Sbapt --program-suffix=SUFFIX append SUFFIX to installed program names 670234949Sbapt --program-transform-name=PROGRAM run sed PROGRAM on installed program names 671234949Sbapt 672234949SbaptSystem types: 673234949Sbapt --build=BUILD configure for building on BUILD [guessed] 674234949Sbapt --host=HOST build programs to run on HOST [BUILD] 675234949Sbapt --target=TARGET configure for building compilers for TARGET [HOST] 676234949SbaptEOF 677234949Sbaptfi 678234949Sbapt 679234949Sbaptif test -n "$ac_init_help"; then 680234949Sbapt 681234949Sbapt cat <<\EOF 682234949Sbapt 683234949SbaptOptional Packages: 684234949Sbapt --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 685234949Sbapt --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 686234949Sbapt 687234949SbaptOptional Features: 688234949Sbapt --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 689234949Sbapt --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 690234949Sbapt 691264803Sbapt --with-max-table-size=N set the maximum table size = N (no default) 692264803Sbapt --enable-btyacc turn on support for the btyacc backtracking 693264803Sbapt extension (default: no) 694234949Sbapt --with-warnings test: turn on gcc warnings 695251143Sbapt --disable-echo do not display "compiling" commands 696234949Sbapt --with-dmalloc test: use Gray Watson's dmalloc library 697234949Sbapt --with-dbmalloc test: use Conor Cahill's dbmalloc library 698234949Sbapt --with-valgrind test: use valgrind 699234949Sbapt --disable-leaks test: free permanent memory, analyze leaks 700296240Sjkim --with-man2html=XXX use XXX rather than groff 701234949Sbapt 702234949SbaptSome influential environment variables: 703234949Sbapt CC C compiler command 704234949Sbapt CFLAGS C compiler flags 705234949Sbapt LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 706234949Sbapt nonstandard directory <lib dir> 707234949Sbapt CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 708234949Sbapt headers in a nonstandard directory <include dir> 709234949Sbapt CPP C preprocessor 710234949Sbapt 711234949SbaptUse these variables to override the choices made by `configure' or to help 712234949Sbaptit to find libraries and programs with nonstandard names/locations. 713234949Sbapt 714234949SbaptEOF 715234949Sbaptfi 716234949Sbapt 717234949Sbaptif test "$ac_init_help" = "recursive"; then 718234949Sbapt # If there are subdirs, report their specific --help. 719234949Sbapt ac_popdir=`pwd` 720234949Sbapt for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue 721234949Sbapt cd $ac_subdir 722234949Sbapt # A "../" for each directory in /$ac_subdir. 723234949Sbapt ac_dots=`echo $ac_subdir | 724234949Sbapt sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 725234949Sbapt 726234949Sbapt case $srcdir in 727234949Sbapt .) # No --srcdir option. We are building in place. 728234949Sbapt ac_sub_srcdir=$srcdir ;; 729234949Sbapt [\\/]* | ?:[\\/]* ) # Absolute path. 730234949Sbapt ac_sub_srcdir=$srcdir/$ac_subdir ;; 731234949Sbapt *) # Relative path. 732234949Sbapt ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; 733234949Sbapt esac 734234949Sbapt 735234949Sbapt # Check for guested configure; otherwise get Cygnus style configure. 736234949Sbapt if test -f $ac_sub_srcdir/configure.gnu; then 737234949Sbapt echo 738234949Sbapt $SHELL $ac_sub_srcdir/configure.gnu --help=recursive 739234949Sbapt elif test -f $ac_sub_srcdir/configure; then 740234949Sbapt echo 741234949Sbapt $SHELL $ac_sub_srcdir/configure --help=recursive 742234949Sbapt elif test -f $ac_sub_srcdir/configure.ac || 743234949Sbapt test -f $ac_sub_srcdir/configure.in; then 744234949Sbapt echo 745234949Sbapt $ac_configure --help 746234949Sbapt else 747234949Sbapt echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 748234949Sbapt fi 749234949Sbapt cd $ac_popdir 750234949Sbapt done 751234949Sbaptfi 752234949Sbapt 753234949Sbapttest -n "$ac_init_help" && exit 0 754234949Sbaptif $ac_init_version; then 755234949Sbapt cat <<\EOF 756234949Sbapt 757234949SbaptCopyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 758234949SbaptFree Software Foundation, Inc. 759234949SbaptThis configure script is free software; the Free Software Foundation 760234949Sbaptgives unlimited permission to copy, distribute and modify it. 761234949SbaptEOF 762234949Sbapt exit 0 763234949Sbaptfi 764234949Sbaptexec 5>config.log 765234949Sbaptcat >&5 <<EOF 766234949SbaptThis file contains any messages produced by compilers while 767234949Sbaptrunning configure, to aid debugging if configure makes a mistake. 768234949Sbapt 769234949SbaptIt was created by $as_me, which was 770319297Sdelphijgenerated by GNU Autoconf 2.52.20150926. Invocation command line was 771234949Sbapt 772234949Sbapt $ $0 $@ 773234949Sbapt 774234949SbaptEOF 775234949Sbapt{ 776234949Sbaptcat <<_ASUNAME 777234949Sbapt## ---------- ## 778234949Sbapt## Platform. ## 779234949Sbapt## ---------- ## 780234949Sbapt 781234949Sbapthostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 782234949Sbaptuname -m = `(uname -m) 2>/dev/null || echo unknown` 783234949Sbaptuname -r = `(uname -r) 2>/dev/null || echo unknown` 784234949Sbaptuname -s = `(uname -s) 2>/dev/null || echo unknown` 785234949Sbaptuname -v = `(uname -v) 2>/dev/null || echo unknown` 786234949Sbapt 787234949Sbapt/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 788234949Sbapt/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 789234949Sbapt 790234949Sbapt/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 791234949Sbapt/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 792234949Sbapt/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 793234949Sbapthostinfo = `(hostinfo) 2>/dev/null || echo unknown` 794234949Sbapt/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 795234949Sbapt/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 796234949Sbapt/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 797234949Sbapt 798234949SbaptPATH = $PATH 799234949Sbapt 800234949Sbapt_ASUNAME 801234949Sbapt} >&5 802234949Sbapt 803234949Sbaptcat >&5 <<EOF 804234949Sbapt## ------------ ## 805234949Sbapt## Core tests. ## 806234949Sbapt## ------------ ## 807234949Sbapt 808234949SbaptEOF 809234949Sbapt 810234949Sbapt# Keep a trace of the command line. 811234949Sbapt# Strip out --no-create and --no-recursion so they do not pile up. 812234949Sbapt# Also quote any args containing shell meta-characters. 813234949Sbaptac_configure_args= 814234949Sbaptac_sep= 815234949Sbaptfor ac_arg 816234949Sbaptdo 817234949Sbapt case $ac_arg in 818234949Sbapt -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 819234949Sbapt | --no-cr | --no-c) ;; 820234949Sbapt -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 821234949Sbapt | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 822234949Sbapt *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 823234949Sbapt ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 824234949Sbapt ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 825234949Sbapt ac_sep=" " ;; 826234949Sbapt *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" 827234949Sbapt ac_sep=" " ;; 828234949Sbapt esac 829234949Sbapt # Get rid of the leading space. 830234949Sbaptdone 831234949Sbapt 832234949Sbapt# When interrupted or exit'd, cleanup temporary files, and complete 833234949Sbapt# config.log. We remove comments because anyway the quotes in there 834234949Sbapt# would cause problems or look ugly. 835234949Sbapttrap 'exit_status=$? 836234949Sbapt # Save into config.log some information that might help in debugging. 837234949Sbapt echo >&5 838234949Sbapt echo "## ----------------- ##" >&5 839234949Sbapt echo "## Cache variables. ##" >&5 840234949Sbapt echo "## ----------------- ##" >&5 841234949Sbapt echo >&5 842234949Sbapt # The following way of writing the cache mishandles newlines in values, 843234949Sbapt{ 844234949Sbapt (set) 2>&1 | 845234949Sbapt case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 846234949Sbapt *ac_space=\ *) 847234949Sbapt sed -n \ 848234949Sbapt "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 849234949Sbapt s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 850234949Sbapt ;; 851234949Sbapt *) 852234949Sbapt sed -n \ 853234949Sbapt "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 854234949Sbapt ;; 855234949Sbapt esac; 856234949Sbapt} >&5 857234949Sbapt sed "/^$/d" confdefs.h >conftest.log 858234949Sbapt if test -s conftest.log; then 859234949Sbapt echo >&5 860234949Sbapt echo "## ------------ ##" >&5 861234949Sbapt echo "## confdefs.h. ##" >&5 862234949Sbapt echo "## ------------ ##" >&5 863234949Sbapt echo >&5 864234949Sbapt cat conftest.log >&5 865234949Sbapt fi 866234949Sbapt (echo; echo) >&5 867234949Sbapt test "$ac_signal" != 0 && 868234949Sbapt echo "$as_me: caught signal $ac_signal" >&5 869234949Sbapt echo "$as_me: exit $exit_status" >&5 870234949Sbapt rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && 871234949Sbapt exit $exit_status 872234949Sbapt ' 0 873234949Sbaptfor ac_signal in 1 2 13 15; do 874234949Sbapt trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 875234949Sbaptdone 876234949Sbaptac_signal=0 877234949Sbapt 878234949Sbapt# confdefs.h avoids OS command line length limits that DEFS can exceed. 879234949Sbaptrm -rf conftest* confdefs.h 880234949Sbapt# AIX cpp loses on an empty file, so make sure it contains at least a newline. 881234949Sbaptecho >confdefs.h 882234949Sbapt 883234949Sbapt# Let the site file select an alternate cache file if it wants to. 884234949Sbapt# Prefer explicitly selected file to automatically selected ones. 885234949Sbaptif test -z "$CONFIG_SITE"; then 886234949Sbapt if test "x$prefix" != xNONE; then 887234949Sbapt CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 888234949Sbapt else 889234949Sbapt CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 890234949Sbapt fi 891234949Sbaptfi 892234949Sbaptfor ac_site_file in $CONFIG_SITE; do 893234949Sbapt if test -r "$ac_site_file"; then 894296240Sjkim { echo "$as_me:894: loading site script $ac_site_file" >&5 895234949Sbaptecho "$as_me: loading site script $ac_site_file" >&6;} 896234949Sbapt cat "$ac_site_file" >&5 897234949Sbapt . "$ac_site_file" 898234949Sbapt fi 899234949Sbaptdone 900234949Sbapt 901234949Sbaptif test -r "$cache_file"; then 902234949Sbapt # Some versions of bash will fail to source /dev/null (special 903234949Sbapt # files actually), so we avoid doing that. 904234949Sbapt if test -f "$cache_file"; then 905296240Sjkim { echo "$as_me:905: loading cache $cache_file" >&5 906234949Sbaptecho "$as_me: loading cache $cache_file" >&6;} 907234949Sbapt case $cache_file in 908234949Sbapt [\\/]* | ?:[\\/]* ) . $cache_file;; 909234949Sbapt *) . ./$cache_file;; 910234949Sbapt esac 911234949Sbapt fi 912234949Sbaptelse 913296240Sjkim { echo "$as_me:913: creating cache $cache_file" >&5 914234949Sbaptecho "$as_me: creating cache $cache_file" >&6;} 915234949Sbapt >$cache_file 916234949Sbaptfi 917234949Sbapt 918234949Sbapt# Check that the precious variables saved in the cache have kept the same 919234949Sbapt# value. 920234949Sbaptac_cache_corrupted=false 921234949Sbaptfor ac_var in `(set) 2>&1 | 922234949Sbapt sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 923234949Sbapt eval ac_old_set=\$ac_cv_env_${ac_var}_set 924234949Sbapt eval ac_new_set=\$ac_env_${ac_var}_set 925234949Sbapt eval ac_old_val="\$ac_cv_env_${ac_var}_value" 926234949Sbapt eval ac_new_val="\$ac_env_${ac_var}_value" 927234949Sbapt case $ac_old_set,$ac_new_set in 928234949Sbapt set,) 929296240Sjkim { echo "$as_me:929: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 930234949Sbaptecho "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 931234949Sbapt ac_cache_corrupted=: ;; 932234949Sbapt ,set) 933296240Sjkim { echo "$as_me:933: error: \`$ac_var' was not set in the previous run" >&5 934234949Sbaptecho "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 935234949Sbapt ac_cache_corrupted=: ;; 936234949Sbapt ,);; 937234949Sbapt *) 938234949Sbapt if test "x$ac_old_val" != "x$ac_new_val"; then 939296240Sjkim { echo "$as_me:939: error: \`$ac_var' has changed since the previous run:" >&5 940234949Sbaptecho "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 941296240Sjkim { echo "$as_me:941: former value: $ac_old_val" >&5 942234949Sbaptecho "$as_me: former value: $ac_old_val" >&2;} 943296240Sjkim { echo "$as_me:943: current value: $ac_new_val" >&5 944234949Sbaptecho "$as_me: current value: $ac_new_val" >&2;} 945234949Sbapt ac_cache_corrupted=: 946234949Sbapt fi;; 947234949Sbapt esac 948234949Sbapt # Pass precious variables to config.status. It doesn't matter if 949234949Sbapt # we pass some twice (in addition to the command line arguments). 950234949Sbapt if test "$ac_new_set" = set; then 951234949Sbapt case $ac_new_val in 952234949Sbapt *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 953234949Sbapt ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` 954234949Sbapt ac_configure_args="$ac_configure_args '$ac_arg'" 955234949Sbapt ;; 956234949Sbapt *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" 957234949Sbapt ;; 958234949Sbapt esac 959234949Sbapt fi 960234949Sbaptdone 961234949Sbaptif $ac_cache_corrupted; then 962296240Sjkim { echo "$as_me:962: error: changes in the environment can compromise the build" >&5 963234949Sbaptecho "$as_me: error: changes in the environment can compromise the build" >&2;} 964296240Sjkim { { echo "$as_me:964: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 965234949Sbaptecho "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 966234949Sbapt { (exit 1); exit 1; }; } 967234949Sbaptfi 968234949Sbapt 969234949Sbaptac_ext=c 970234949Sbaptac_cpp='$CPP $CPPFLAGS' 971234949Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 972234949Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 973234949Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu 974234949Sbaptac_main_return=return 975234949Sbapt 976296240Sjkimcase `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in 977296240Sjkim *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway 978296240Sjkim ECHO_T=' ' ;; 979234949Sbapt *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 980234949Sbapt *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 981234949Sbaptesac 982234949Sbaptecho "#! $SHELL" >conftest.sh 983234949Sbaptecho "exit 0" >>conftest.sh 984234949Sbaptchmod +x conftest.sh 985296240Sjkimif { (echo "$as_me:985: PATH=\".;.\"; conftest.sh") >&5 986234949Sbapt (PATH=".;."; conftest.sh) 2>&5 987234949Sbapt ac_status=$? 988296240Sjkim echo "$as_me:988: \$? = $ac_status" >&5 989234949Sbapt (exit $ac_status); }; then 990234949Sbapt ac_path_separator=';' 991234949Sbaptelse 992234949Sbapt ac_path_separator=: 993234949Sbaptfi 994234949SbaptPATH_SEPARATOR="$ac_path_separator" 995234949Sbaptrm -f conftest.sh 996234949Sbapt 997234949Sbaptac_config_headers="$ac_config_headers config.h:config_h.in" 998234949Sbapt 999234949Sbaptac_aux_dir= 1000234949Sbaptfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1001234949Sbapt if test -f $ac_dir/install-sh; then 1002234949Sbapt ac_aux_dir=$ac_dir 1003234949Sbapt ac_install_sh="$ac_aux_dir/install-sh -c" 1004234949Sbapt break 1005234949Sbapt elif test -f $ac_dir/install.sh; then 1006234949Sbapt ac_aux_dir=$ac_dir 1007234949Sbapt ac_install_sh="$ac_aux_dir/install.sh -c" 1008234949Sbapt break 1009234949Sbapt elif test -f $ac_dir/shtool; then 1010234949Sbapt ac_aux_dir=$ac_dir 1011234949Sbapt ac_install_sh="$ac_aux_dir/shtool install -c" 1012234949Sbapt break 1013234949Sbapt fi 1014234949Sbaptdone 1015234949Sbaptif test -z "$ac_aux_dir"; then 1016296240Sjkim { { echo "$as_me:1016: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1017234949Sbaptecho "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1018234949Sbapt { (exit 1); exit 1; }; } 1019234949Sbaptfi 1020234949Sbaptac_config_guess="$SHELL $ac_aux_dir/config.guess" 1021234949Sbaptac_config_sub="$SHELL $ac_aux_dir/config.sub" 1022234949Sbaptac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1023234949Sbapt 1024234949Sbapt# Make sure we can run config.sub. 1025234949Sbapt$ac_config_sub sun4 >/dev/null 2>&1 || 1026296240Sjkim { { echo "$as_me:1026: error: cannot run $ac_config_sub" >&5 1027234949Sbaptecho "$as_me: error: cannot run $ac_config_sub" >&2;} 1028234949Sbapt { (exit 1); exit 1; }; } 1029234949Sbapt 1030296240Sjkimecho "$as_me:1030: checking build system type" >&5 1031234949Sbaptecho $ECHO_N "checking build system type... $ECHO_C" >&6 1032234949Sbaptif test "${ac_cv_build+set}" = set; then 1033234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1034234949Sbaptelse 1035234949Sbapt ac_cv_build_alias=$build_alias 1036234949Sbapttest -z "$ac_cv_build_alias" && 1037234949Sbapt ac_cv_build_alias=`$ac_config_guess` 1038234949Sbapttest -z "$ac_cv_build_alias" && 1039296240Sjkim { { echo "$as_me:1039: error: cannot guess build type; you must specify one" >&5 1040234949Sbaptecho "$as_me: error: cannot guess build type; you must specify one" >&2;} 1041234949Sbapt { (exit 1); exit 1; }; } 1042234949Sbaptac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1043296240Sjkim { { echo "$as_me:1043: error: $ac_config_sub $ac_cv_build_alias failed." >&5 1044234949Sbaptecho "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} 1045234949Sbapt { (exit 1); exit 1; }; } 1046234949Sbapt 1047234949Sbaptfi 1048296240Sjkimecho "$as_me:1048: result: $ac_cv_build" >&5 1049234949Sbaptecho "${ECHO_T}$ac_cv_build" >&6 1050234949Sbaptbuild=$ac_cv_build 1051234949Sbaptbuild_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1052234949Sbaptbuild_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1053234949Sbaptbuild_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1054234949Sbapt 1055296240Sjkimecho "$as_me:1055: checking host system type" >&5 1056234949Sbaptecho $ECHO_N "checking host system type... $ECHO_C" >&6 1057234949Sbaptif test "${ac_cv_host+set}" = set; then 1058234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1059234949Sbaptelse 1060234949Sbapt ac_cv_host_alias=$host_alias 1061234949Sbapttest -z "$ac_cv_host_alias" && 1062234949Sbapt ac_cv_host_alias=$ac_cv_build_alias 1063234949Sbaptac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1064296240Sjkim { { echo "$as_me:1064: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1065234949Sbaptecho "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1066234949Sbapt { (exit 1); exit 1; }; } 1067234949Sbapt 1068234949Sbaptfi 1069296240Sjkimecho "$as_me:1069: result: $ac_cv_host" >&5 1070234949Sbaptecho "${ECHO_T}$ac_cv_host" >&6 1071234949Sbapthost=$ac_cv_host 1072234949Sbapthost_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1073234949Sbapthost_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1074234949Sbapthost_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1075234949Sbapt 1076234949Sbaptif test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then 1077296240Sjkim echo "$as_me:1077: checking target system type" >&5 1078234949Sbaptecho $ECHO_N "checking target system type... $ECHO_C" >&6 1079234949Sbaptif test "${ac_cv_target+set}" = set; then 1080234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1081234949Sbaptelse 1082234949Sbapt ac_cv_target_alias=$target_alias 1083234949Sbapttest "x$ac_cv_target_alias" = "x" && 1084234949Sbapt ac_cv_target_alias=$ac_cv_host_alias 1085234949Sbaptac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1086296240Sjkim { { echo "$as_me:1086: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1087234949Sbaptecho "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1088234949Sbapt { (exit 1); exit 1; }; } 1089234949Sbapt 1090234949Sbaptfi 1091296240Sjkimecho "$as_me:1091: result: $ac_cv_target" >&5 1092234949Sbaptecho "${ECHO_T}$ac_cv_target" >&6 1093234949Sbapttarget=$ac_cv_target 1094234949Sbapttarget_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1095234949Sbapttarget_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1096234949Sbapttarget_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1097234949Sbapt 1098234949Sbapt# The aliases save the names the user supplied, while $host etc. 1099234949Sbapt# will get canonicalized. 1100234949Sbapttest -n "$target_alias" && 1101234949Sbapt test "$program_prefix$program_suffix$program_transform_name" = \ 1102234949Sbapt NONENONEs,x,x, && 1103234949Sbapt program_prefix=${target_alias}- 1104234949Sbapt system_name="$host_os" 1105234949Sbaptelse 1106234949Sbapt system_name="`(uname -s -r) 2>/dev/null`" 1107234949Sbapt if test -z "$system_name" ; then 1108234949Sbapt system_name="`(hostname) 2>/dev/null`" 1109234949Sbapt fi 1110234949Sbaptfi 1111251143Sbapttest -n "$system_name" && 1112251143Sbaptcat >>confdefs.h <<EOF 1113234949Sbapt#define SYSTEM_NAME "$system_name" 1114234949SbaptEOF 1115234949Sbapt 1116234949Sbaptif test "${cf_cv_system_name+set}" = set; then 1117234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1118234949Sbaptelse 1119234949Sbapt cf_cv_system_name="$system_name" 1120234949Sbaptfi 1121234949Sbapt 1122234949Sbapttest -z "$system_name" && system_name="$cf_cv_system_name" 1123296240Sjkimtest -n "$cf_cv_system_name" && echo "$as_me:1123: result: Configuring for $cf_cv_system_name" >&5 1124234949Sbaptecho "${ECHO_T}Configuring for $cf_cv_system_name" >&6 1125234949Sbapt 1126234949Sbaptif test ".$system_name" != ".$cf_cv_system_name" ; then 1127296240Sjkim echo "$as_me:1127: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5 1128234949Sbaptecho "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6 1129296240Sjkim { { echo "$as_me:1129: error: \"Please remove config.cache and try again.\"" >&5 1130234949Sbaptecho "$as_me: error: \"Please remove config.cache and try again.\"" >&2;} 1131234949Sbapt { (exit 1); exit 1; }; } 1132234949Sbaptfi 1133234949Sbapt 1134234949Sbapttest "$program_prefix" != NONE && 1135234949Sbapt program_transform_name="s,^,$program_prefix,;$program_transform_name" 1136234949Sbapt# Use a double $ so make ignores it. 1137234949Sbapttest "$program_suffix" != NONE && 1138234949Sbapt program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1139234949Sbapt# Double any \ or $. echo might interpret backslashes. 1140234949Sbapt# By default was `s,x,x', remove it if useless. 1141234949Sbaptcat <<\_ACEOF >conftest.sed 1142234949Sbapts/[\\$]/&&/g;s/;s,x,x,$// 1143234949Sbapt_ACEOF 1144234949Sbaptprogram_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1145234949Sbaptrm conftest.sed 1146234949Sbapt 1147234949Sbaptac_ext=c 1148234949Sbaptac_cpp='$CPP $CPPFLAGS' 1149234949Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1150234949Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1151234949Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu 1152234949Sbaptac_main_return=return 1153234949Sbaptif test -n "$ac_tool_prefix"; then 1154234949Sbapt # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1155234949Sbaptset dummy ${ac_tool_prefix}gcc; ac_word=$2 1156296240Sjkimecho "$as_me:1156: checking for $ac_word" >&5 1157234949Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1158234949Sbaptif test "${ac_cv_prog_CC+set}" = set; then 1159234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1160234949Sbaptelse 1161234949Sbapt if test -n "$CC"; then 1162234949Sbapt ac_cv_prog_CC="$CC" # Let the user override the test. 1163234949Sbaptelse 1164234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 1165234949Sbaptac_dummy="$PATH" 1166234949Sbaptfor ac_dir in $ac_dummy; do 1167234949Sbapt IFS=$ac_save_IFS 1168234949Sbapt test -z "$ac_dir" && ac_dir=. 1169234949Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 1170234949Sbaptac_cv_prog_CC="${ac_tool_prefix}gcc" 1171296240Sjkimecho "$as_me:1171: found $ac_dir/$ac_word" >&5 1172234949Sbaptbreak 1173234949Sbaptdone 1174234949Sbapt 1175234949Sbaptfi 1176234949Sbaptfi 1177234949SbaptCC=$ac_cv_prog_CC 1178234949Sbaptif test -n "$CC"; then 1179296240Sjkim echo "$as_me:1179: result: $CC" >&5 1180234949Sbaptecho "${ECHO_T}$CC" >&6 1181234949Sbaptelse 1182296240Sjkim echo "$as_me:1182: result: no" >&5 1183234949Sbaptecho "${ECHO_T}no" >&6 1184234949Sbaptfi 1185234949Sbapt 1186234949Sbaptfi 1187234949Sbaptif test -z "$ac_cv_prog_CC"; then 1188234949Sbapt ac_ct_CC=$CC 1189234949Sbapt # Extract the first word of "gcc", so it can be a program name with args. 1190234949Sbaptset dummy gcc; ac_word=$2 1191296240Sjkimecho "$as_me:1191: checking for $ac_word" >&5 1192234949Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1193234949Sbaptif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1194234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1195234949Sbaptelse 1196234949Sbapt if test -n "$ac_ct_CC"; then 1197234949Sbapt ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1198234949Sbaptelse 1199234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 1200234949Sbaptac_dummy="$PATH" 1201234949Sbaptfor ac_dir in $ac_dummy; do 1202234949Sbapt IFS=$ac_save_IFS 1203234949Sbapt test -z "$ac_dir" && ac_dir=. 1204234949Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 1205234949Sbaptac_cv_prog_ac_ct_CC="gcc" 1206296240Sjkimecho "$as_me:1206: found $ac_dir/$ac_word" >&5 1207234949Sbaptbreak 1208234949Sbaptdone 1209234949Sbapt 1210234949Sbaptfi 1211234949Sbaptfi 1212234949Sbaptac_ct_CC=$ac_cv_prog_ac_ct_CC 1213234949Sbaptif test -n "$ac_ct_CC"; then 1214296240Sjkim echo "$as_me:1214: result: $ac_ct_CC" >&5 1215234949Sbaptecho "${ECHO_T}$ac_ct_CC" >&6 1216234949Sbaptelse 1217296240Sjkim echo "$as_me:1217: result: no" >&5 1218234949Sbaptecho "${ECHO_T}no" >&6 1219234949Sbaptfi 1220234949Sbapt 1221234949Sbapt CC=$ac_ct_CC 1222234949Sbaptelse 1223234949Sbapt CC="$ac_cv_prog_CC" 1224234949Sbaptfi 1225234949Sbapt 1226234949Sbaptif test -z "$CC"; then 1227234949Sbapt if test -n "$ac_tool_prefix"; then 1228234949Sbapt # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1229234949Sbaptset dummy ${ac_tool_prefix}cc; ac_word=$2 1230296240Sjkimecho "$as_me:1230: checking for $ac_word" >&5 1231234949Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1232234949Sbaptif test "${ac_cv_prog_CC+set}" = set; then 1233234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1234234949Sbaptelse 1235234949Sbapt if test -n "$CC"; then 1236234949Sbapt ac_cv_prog_CC="$CC" # Let the user override the test. 1237234949Sbaptelse 1238234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 1239234949Sbaptac_dummy="$PATH" 1240234949Sbaptfor ac_dir in $ac_dummy; do 1241234949Sbapt IFS=$ac_save_IFS 1242234949Sbapt test -z "$ac_dir" && ac_dir=. 1243234949Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 1244234949Sbaptac_cv_prog_CC="${ac_tool_prefix}cc" 1245296240Sjkimecho "$as_me:1245: found $ac_dir/$ac_word" >&5 1246234949Sbaptbreak 1247234949Sbaptdone 1248234949Sbapt 1249234949Sbaptfi 1250234949Sbaptfi 1251234949SbaptCC=$ac_cv_prog_CC 1252234949Sbaptif test -n "$CC"; then 1253296240Sjkim echo "$as_me:1253: result: $CC" >&5 1254234949Sbaptecho "${ECHO_T}$CC" >&6 1255234949Sbaptelse 1256296240Sjkim echo "$as_me:1256: result: no" >&5 1257234949Sbaptecho "${ECHO_T}no" >&6 1258234949Sbaptfi 1259234949Sbapt 1260234949Sbaptfi 1261234949Sbaptif test -z "$ac_cv_prog_CC"; then 1262234949Sbapt ac_ct_CC=$CC 1263234949Sbapt # Extract the first word of "cc", so it can be a program name with args. 1264234949Sbaptset dummy cc; ac_word=$2 1265296240Sjkimecho "$as_me:1265: checking for $ac_word" >&5 1266234949Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1267234949Sbaptif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1268234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1269234949Sbaptelse 1270234949Sbapt if test -n "$ac_ct_CC"; then 1271234949Sbapt ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1272234949Sbaptelse 1273234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 1274234949Sbaptac_dummy="$PATH" 1275234949Sbaptfor ac_dir in $ac_dummy; do 1276234949Sbapt IFS=$ac_save_IFS 1277234949Sbapt test -z "$ac_dir" && ac_dir=. 1278234949Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 1279234949Sbaptac_cv_prog_ac_ct_CC="cc" 1280296240Sjkimecho "$as_me:1280: found $ac_dir/$ac_word" >&5 1281234949Sbaptbreak 1282234949Sbaptdone 1283234949Sbapt 1284234949Sbaptfi 1285234949Sbaptfi 1286234949Sbaptac_ct_CC=$ac_cv_prog_ac_ct_CC 1287234949Sbaptif test -n "$ac_ct_CC"; then 1288296240Sjkim echo "$as_me:1288: result: $ac_ct_CC" >&5 1289234949Sbaptecho "${ECHO_T}$ac_ct_CC" >&6 1290234949Sbaptelse 1291296240Sjkim echo "$as_me:1291: result: no" >&5 1292234949Sbaptecho "${ECHO_T}no" >&6 1293234949Sbaptfi 1294234949Sbapt 1295234949Sbapt CC=$ac_ct_CC 1296234949Sbaptelse 1297234949Sbapt CC="$ac_cv_prog_CC" 1298234949Sbaptfi 1299234949Sbapt 1300234949Sbaptfi 1301234949Sbaptif test -z "$CC"; then 1302234949Sbapt # Extract the first word of "cc", so it can be a program name with args. 1303234949Sbaptset dummy cc; ac_word=$2 1304296240Sjkimecho "$as_me:1304: checking for $ac_word" >&5 1305234949Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1306234949Sbaptif test "${ac_cv_prog_CC+set}" = set; then 1307234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1308234949Sbaptelse 1309234949Sbapt if test -n "$CC"; then 1310234949Sbapt ac_cv_prog_CC="$CC" # Let the user override the test. 1311234949Sbaptelse 1312234949Sbapt ac_prog_rejected=no 1313234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 1314234949Sbaptac_dummy="$PATH" 1315234949Sbaptfor ac_dir in $ac_dummy; do 1316234949Sbapt IFS=$ac_save_IFS 1317234949Sbapt test -z "$ac_dir" && ac_dir=. 1318234949Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 1319234949Sbaptif test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1320234949Sbapt ac_prog_rejected=yes 1321234949Sbapt continue 1322234949Sbaptfi 1323234949Sbaptac_cv_prog_CC="cc" 1324296240Sjkimecho "$as_me:1324: found $ac_dir/$ac_word" >&5 1325234949Sbaptbreak 1326234949Sbaptdone 1327234949Sbapt 1328234949Sbaptif test $ac_prog_rejected = yes; then 1329234949Sbapt # We found a bogon in the path, so make sure we never use it. 1330234949Sbapt set dummy $ac_cv_prog_CC 1331234949Sbapt shift 1332234949Sbapt if test $# != 0; then 1333234949Sbapt # We chose a different compiler from the bogus one. 1334234949Sbapt # However, it has the same basename, so the bogon will be chosen 1335234949Sbapt # first if we set CC to just the basename; use the full file name. 1336234949Sbapt shift 1337234949Sbapt set dummy "$ac_dir/$ac_word" ${1+"$@"} 1338234949Sbapt shift 1339234949Sbapt ac_cv_prog_CC="$@" 1340234949Sbapt fi 1341234949Sbaptfi 1342234949Sbaptfi 1343234949Sbaptfi 1344234949SbaptCC=$ac_cv_prog_CC 1345234949Sbaptif test -n "$CC"; then 1346296240Sjkim echo "$as_me:1346: result: $CC" >&5 1347234949Sbaptecho "${ECHO_T}$CC" >&6 1348234949Sbaptelse 1349296240Sjkim echo "$as_me:1349: result: no" >&5 1350234949Sbaptecho "${ECHO_T}no" >&6 1351234949Sbaptfi 1352234949Sbapt 1353234949Sbaptfi 1354234949Sbaptif test -z "$CC"; then 1355234949Sbapt if test -n "$ac_tool_prefix"; then 1356234949Sbapt for ac_prog in cl 1357234949Sbapt do 1358234949Sbapt # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1359234949Sbaptset dummy $ac_tool_prefix$ac_prog; ac_word=$2 1360296240Sjkimecho "$as_me:1360: checking for $ac_word" >&5 1361234949Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1362234949Sbaptif test "${ac_cv_prog_CC+set}" = set; then 1363234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1364234949Sbaptelse 1365234949Sbapt if test -n "$CC"; then 1366234949Sbapt ac_cv_prog_CC="$CC" # Let the user override the test. 1367234949Sbaptelse 1368234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 1369234949Sbaptac_dummy="$PATH" 1370234949Sbaptfor ac_dir in $ac_dummy; do 1371234949Sbapt IFS=$ac_save_IFS 1372234949Sbapt test -z "$ac_dir" && ac_dir=. 1373234949Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 1374234949Sbaptac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1375296240Sjkimecho "$as_me:1375: found $ac_dir/$ac_word" >&5 1376234949Sbaptbreak 1377234949Sbaptdone 1378234949Sbapt 1379234949Sbaptfi 1380234949Sbaptfi 1381234949SbaptCC=$ac_cv_prog_CC 1382234949Sbaptif test -n "$CC"; then 1383296240Sjkim echo "$as_me:1383: result: $CC" >&5 1384234949Sbaptecho "${ECHO_T}$CC" >&6 1385234949Sbaptelse 1386296240Sjkim echo "$as_me:1386: result: no" >&5 1387234949Sbaptecho "${ECHO_T}no" >&6 1388234949Sbaptfi 1389234949Sbapt 1390234949Sbapt test -n "$CC" && break 1391234949Sbapt done 1392234949Sbaptfi 1393234949Sbaptif test -z "$CC"; then 1394234949Sbapt ac_ct_CC=$CC 1395234949Sbapt for ac_prog in cl 1396234949Sbaptdo 1397234949Sbapt # Extract the first word of "$ac_prog", so it can be a program name with args. 1398234949Sbaptset dummy $ac_prog; ac_word=$2 1399296240Sjkimecho "$as_me:1399: checking for $ac_word" >&5 1400234949Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1401234949Sbaptif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1402234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1403234949Sbaptelse 1404234949Sbapt if test -n "$ac_ct_CC"; then 1405234949Sbapt ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1406234949Sbaptelse 1407234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 1408234949Sbaptac_dummy="$PATH" 1409234949Sbaptfor ac_dir in $ac_dummy; do 1410234949Sbapt IFS=$ac_save_IFS 1411234949Sbapt test -z "$ac_dir" && ac_dir=. 1412234949Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 1413234949Sbaptac_cv_prog_ac_ct_CC="$ac_prog" 1414296240Sjkimecho "$as_me:1414: found $ac_dir/$ac_word" >&5 1415234949Sbaptbreak 1416234949Sbaptdone 1417234949Sbapt 1418234949Sbaptfi 1419234949Sbaptfi 1420234949Sbaptac_ct_CC=$ac_cv_prog_ac_ct_CC 1421234949Sbaptif test -n "$ac_ct_CC"; then 1422296240Sjkim echo "$as_me:1422: result: $ac_ct_CC" >&5 1423234949Sbaptecho "${ECHO_T}$ac_ct_CC" >&6 1424234949Sbaptelse 1425296240Sjkim echo "$as_me:1425: result: no" >&5 1426234949Sbaptecho "${ECHO_T}no" >&6 1427234949Sbaptfi 1428234949Sbapt 1429234949Sbapt test -n "$ac_ct_CC" && break 1430234949Sbaptdone 1431234949Sbapt 1432234949Sbapt CC=$ac_ct_CC 1433234949Sbaptfi 1434234949Sbapt 1435234949Sbaptfi 1436234949Sbapt 1437296240Sjkimtest -z "$CC" && { { echo "$as_me:1437: error: no acceptable cc found in \$PATH" >&5 1438234949Sbaptecho "$as_me: error: no acceptable cc found in \$PATH" >&2;} 1439234949Sbapt { (exit 1); exit 1; }; } 1440234949Sbapt 1441234949Sbapt# Provide some information about the compiler. 1442296240Sjkimecho "$as_me:1442:" \ 1443234949Sbapt "checking for C compiler version" >&5 1444234949Sbaptac_compiler=`set X $ac_compile; echo $2` 1445296240Sjkim{ (eval echo "$as_me:1445: \"$ac_compiler --version </dev/null >&5\"") >&5 1446234949Sbapt (eval $ac_compiler --version </dev/null >&5) 2>&5 1447234949Sbapt ac_status=$? 1448296240Sjkim echo "$as_me:1448: \$? = $ac_status" >&5 1449234949Sbapt (exit $ac_status); } 1450296240Sjkim{ (eval echo "$as_me:1450: \"$ac_compiler -v </dev/null >&5\"") >&5 1451234949Sbapt (eval $ac_compiler -v </dev/null >&5) 2>&5 1452234949Sbapt ac_status=$? 1453296240Sjkim echo "$as_me:1453: \$? = $ac_status" >&5 1454234949Sbapt (exit $ac_status); } 1455296240Sjkim{ (eval echo "$as_me:1455: \"$ac_compiler -V </dev/null >&5\"") >&5 1456234949Sbapt (eval $ac_compiler -V </dev/null >&5) 2>&5 1457234949Sbapt ac_status=$? 1458296240Sjkim echo "$as_me:1458: \$? = $ac_status" >&5 1459234949Sbapt (exit $ac_status); } 1460234949Sbapt 1461234949Sbaptcat >conftest.$ac_ext <<_ACEOF 1462296240Sjkim#line 1462 "configure" 1463234949Sbapt#include "confdefs.h" 1464234949Sbapt 1465234949Sbaptint 1466234949Sbaptmain () 1467234949Sbapt{ 1468234949Sbapt 1469234949Sbapt ; 1470234949Sbapt return 0; 1471234949Sbapt} 1472234949Sbapt_ACEOF 1473234949Sbaptac_clean_files_save=$ac_clean_files 1474234949Sbaptac_clean_files="$ac_clean_files a.out a.exe" 1475234949Sbapt# Try to create an executable without -o first, disregard a.out. 1476234949Sbapt# It will help us diagnose broken compilers, and finding out an intuition 1477234949Sbapt# of exeext. 1478296240Sjkimecho "$as_me:1478: checking for C compiler default output" >&5 1479234949Sbaptecho $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1480234949Sbaptac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1481296240Sjkimif { (eval echo "$as_me:1481: \"$ac_link_default\"") >&5 1482234949Sbapt (eval $ac_link_default) 2>&5 1483234949Sbapt ac_status=$? 1484296240Sjkim echo "$as_me:1484: \$? = $ac_status" >&5 1485234949Sbapt (exit $ac_status); }; then 1486234949Sbapt # Find the output, starting from the most likely. This scheme is 1487234949Sbapt# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1488234949Sbapt# resort. 1489234949Sbaptfor ac_file in `ls a.exe conftest.exe 2>/dev/null; 1490234949Sbapt ls a.out conftest 2>/dev/null; 1491234949Sbapt ls a.* conftest.* 2>/dev/null`; do 1492234949Sbapt case $ac_file in 1493234949Sbapt *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1494234949Sbapt a.out ) # We found the default executable, but exeext='' is most 1495234949Sbapt # certainly right. 1496234949Sbapt break;; 1497234949Sbapt *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1498234949Sbapt # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 1499234949Sbapt export ac_cv_exeext 1500234949Sbapt break;; 1501234949Sbapt * ) break;; 1502234949Sbapt esac 1503234949Sbaptdone 1504234949Sbaptelse 1505234949Sbapt echo "$as_me: failed program was:" >&5 1506234949Sbaptcat conftest.$ac_ext >&5 1507296240Sjkim{ { echo "$as_me:1507: error: C compiler cannot create executables" >&5 1508234949Sbaptecho "$as_me: error: C compiler cannot create executables" >&2;} 1509234949Sbapt { (exit 77); exit 77; }; } 1510234949Sbaptfi 1511234949Sbapt 1512234949Sbaptac_exeext=$ac_cv_exeext 1513296240Sjkimecho "$as_me:1513: result: $ac_file" >&5 1514234949Sbaptecho "${ECHO_T}$ac_file" >&6 1515234949Sbapt 1516234949Sbapt# Check the compiler produces executables we can run. If not, either 1517234949Sbapt# the compiler is broken, or we cross compile. 1518296240Sjkimecho "$as_me:1518: checking whether the C compiler works" >&5 1519234949Sbaptecho $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1520234949Sbapt# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1521234949Sbapt# If not cross compiling, check that we can run a simple program. 1522234949Sbaptif test "$cross_compiling" != yes; then 1523234949Sbapt if { ac_try='./$ac_file' 1524296240Sjkim { (eval echo "$as_me:1524: \"$ac_try\"") >&5 1525234949Sbapt (eval $ac_try) 2>&5 1526234949Sbapt ac_status=$? 1527296240Sjkim echo "$as_me:1527: \$? = $ac_status" >&5 1528234949Sbapt (exit $ac_status); }; }; then 1529234949Sbapt cross_compiling=no 1530234949Sbapt else 1531234949Sbapt if test "$cross_compiling" = maybe; then 1532234949Sbapt cross_compiling=yes 1533234949Sbapt else 1534296240Sjkim { { echo "$as_me:1534: error: cannot run C compiled programs. 1535234949SbaptIf you meant to cross compile, use \`--host'." >&5 1536234949Sbaptecho "$as_me: error: cannot run C compiled programs. 1537234949SbaptIf you meant to cross compile, use \`--host'." >&2;} 1538234949Sbapt { (exit 1); exit 1; }; } 1539234949Sbapt fi 1540234949Sbapt fi 1541234949Sbaptfi 1542296240Sjkimecho "$as_me:1542: result: yes" >&5 1543234949Sbaptecho "${ECHO_T}yes" >&6 1544234949Sbapt 1545234949Sbaptrm -f a.out a.exe conftest$ac_cv_exeext 1546234949Sbaptac_clean_files=$ac_clean_files_save 1547234949Sbapt# Check the compiler produces executables we can run. If not, either 1548234949Sbapt# the compiler is broken, or we cross compile. 1549296240Sjkimecho "$as_me:1549: checking whether we are cross compiling" >&5 1550234949Sbaptecho $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1551296240Sjkimecho "$as_me:1551: result: $cross_compiling" >&5 1552234949Sbaptecho "${ECHO_T}$cross_compiling" >&6 1553234949Sbapt 1554296240Sjkimecho "$as_me:1554: checking for executable suffix" >&5 1555234949Sbaptecho $ECHO_N "checking for executable suffix... $ECHO_C" >&6 1556296240Sjkimif { (eval echo "$as_me:1556: \"$ac_link\"") >&5 1557234949Sbapt (eval $ac_link) 2>&5 1558234949Sbapt ac_status=$? 1559296240Sjkim echo "$as_me:1559: \$? = $ac_status" >&5 1560234949Sbapt (exit $ac_status); }; then 1561234949Sbapt # If both `conftest.exe' and `conftest' are `present' (well, observable) 1562234949Sbapt# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1563234949Sbapt# work properly (i.e., refer to `conftest.exe'), while it won't with 1564234949Sbapt# `rm'. 1565234949Sbaptfor ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1566234949Sbapt case $ac_file in 1567234949Sbapt *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1568234949Sbapt *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1569234949Sbapt export ac_cv_exeext 1570234949Sbapt break;; 1571234949Sbapt * ) break;; 1572234949Sbapt esac 1573234949Sbaptdone 1574234949Sbaptelse 1575296240Sjkim { { echo "$as_me:1575: error: cannot compute EXEEXT: cannot compile and link" >&5 1576234949Sbaptecho "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} 1577234949Sbapt { (exit 1); exit 1; }; } 1578234949Sbaptfi 1579234949Sbapt 1580234949Sbaptrm -f conftest$ac_cv_exeext 1581296240Sjkimecho "$as_me:1581: result: $ac_cv_exeext" >&5 1582234949Sbaptecho "${ECHO_T}$ac_cv_exeext" >&6 1583234949Sbapt 1584234949Sbaptrm -f conftest.$ac_ext 1585234949SbaptEXEEXT=$ac_cv_exeext 1586234949Sbaptac_exeext=$EXEEXT 1587296240Sjkimecho "$as_me:1587: checking for object suffix" >&5 1588234949Sbaptecho $ECHO_N "checking for object suffix... $ECHO_C" >&6 1589234949Sbaptif test "${ac_cv_objext+set}" = set; then 1590234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1591234949Sbaptelse 1592234949Sbapt cat >conftest.$ac_ext <<_ACEOF 1593296240Sjkim#line 1593 "configure" 1594234949Sbapt#include "confdefs.h" 1595234949Sbapt 1596234949Sbaptint 1597234949Sbaptmain () 1598234949Sbapt{ 1599234949Sbapt 1600234949Sbapt ; 1601234949Sbapt return 0; 1602234949Sbapt} 1603234949Sbapt_ACEOF 1604234949Sbaptrm -f conftest.o conftest.obj 1605296240Sjkimif { (eval echo "$as_me:1605: \"$ac_compile\"") >&5 1606234949Sbapt (eval $ac_compile) 2>&5 1607234949Sbapt ac_status=$? 1608296240Sjkim echo "$as_me:1608: \$? = $ac_status" >&5 1609234949Sbapt (exit $ac_status); }; then 1610234949Sbapt for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1611234949Sbapt case $ac_file in 1612234949Sbapt *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;; 1613234949Sbapt *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1614234949Sbapt break;; 1615234949Sbapt esac 1616234949Sbaptdone 1617234949Sbaptelse 1618234949Sbapt echo "$as_me: failed program was:" >&5 1619234949Sbaptcat conftest.$ac_ext >&5 1620296240Sjkim{ { echo "$as_me:1620: error: cannot compute OBJEXT: cannot compile" >&5 1621234949Sbaptecho "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} 1622234949Sbapt { (exit 1); exit 1; }; } 1623234949Sbaptfi 1624234949Sbapt 1625234949Sbaptrm -f conftest.$ac_cv_objext conftest.$ac_ext 1626234949Sbaptfi 1627296240Sjkimecho "$as_me:1627: result: $ac_cv_objext" >&5 1628234949Sbaptecho "${ECHO_T}$ac_cv_objext" >&6 1629234949SbaptOBJEXT=$ac_cv_objext 1630234949Sbaptac_objext=$OBJEXT 1631296240Sjkimecho "$as_me:1631: checking whether we are using the GNU C compiler" >&5 1632234949Sbaptecho $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1633234949Sbaptif test "${ac_cv_c_compiler_gnu+set}" = set; then 1634234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1635234949Sbaptelse 1636234949Sbapt cat >conftest.$ac_ext <<_ACEOF 1637296240Sjkim#line 1637 "configure" 1638234949Sbapt#include "confdefs.h" 1639234949Sbapt 1640234949Sbaptint 1641234949Sbaptmain () 1642234949Sbapt{ 1643234949Sbapt#ifndef __GNUC__ 1644234949Sbapt choke me 1645234949Sbapt#endif 1646234949Sbapt 1647234949Sbapt ; 1648234949Sbapt return 0; 1649234949Sbapt} 1650234949Sbapt_ACEOF 1651234949Sbaptrm -f conftest.$ac_objext 1652296240Sjkimif { (eval echo "$as_me:1652: \"$ac_compile\"") >&5 1653234949Sbapt (eval $ac_compile) 2>&5 1654234949Sbapt ac_status=$? 1655296240Sjkim echo "$as_me:1655: \$? = $ac_status" >&5 1656234949Sbapt (exit $ac_status); } && 1657234949Sbapt { ac_try='test -s conftest.$ac_objext' 1658296240Sjkim { (eval echo "$as_me:1658: \"$ac_try\"") >&5 1659234949Sbapt (eval $ac_try) 2>&5 1660234949Sbapt ac_status=$? 1661296240Sjkim echo "$as_me:1661: \$? = $ac_status" >&5 1662234949Sbapt (exit $ac_status); }; }; then 1663234949Sbapt ac_compiler_gnu=yes 1664234949Sbaptelse 1665234949Sbapt echo "$as_me: failed program was:" >&5 1666234949Sbaptcat conftest.$ac_ext >&5 1667234949Sbaptac_compiler_gnu=no 1668234949Sbaptfi 1669234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 1670234949Sbaptac_cv_c_compiler_gnu=$ac_compiler_gnu 1671234949Sbapt 1672234949Sbaptfi 1673296240Sjkimecho "$as_me:1673: result: $ac_cv_c_compiler_gnu" >&5 1674234949Sbaptecho "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1675234949SbaptGCC=`test $ac_compiler_gnu = yes && echo yes` 1676234949Sbaptac_test_CFLAGS=${CFLAGS+set} 1677234949Sbaptac_save_CFLAGS=$CFLAGS 1678234949SbaptCFLAGS="-g" 1679296240Sjkimecho "$as_me:1679: checking whether $CC accepts -g" >&5 1680234949Sbaptecho $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1681234949Sbaptif test "${ac_cv_prog_cc_g+set}" = set; then 1682234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1683234949Sbaptelse 1684234949Sbapt cat >conftest.$ac_ext <<_ACEOF 1685296240Sjkim#line 1685 "configure" 1686234949Sbapt#include "confdefs.h" 1687234949Sbapt 1688234949Sbaptint 1689234949Sbaptmain () 1690234949Sbapt{ 1691234949Sbapt 1692234949Sbapt ; 1693234949Sbapt return 0; 1694234949Sbapt} 1695234949Sbapt_ACEOF 1696234949Sbaptrm -f conftest.$ac_objext 1697296240Sjkimif { (eval echo "$as_me:1697: \"$ac_compile\"") >&5 1698234949Sbapt (eval $ac_compile) 2>&5 1699234949Sbapt ac_status=$? 1700296240Sjkim echo "$as_me:1700: \$? = $ac_status" >&5 1701234949Sbapt (exit $ac_status); } && 1702234949Sbapt { ac_try='test -s conftest.$ac_objext' 1703296240Sjkim { (eval echo "$as_me:1703: \"$ac_try\"") >&5 1704234949Sbapt (eval $ac_try) 2>&5 1705234949Sbapt ac_status=$? 1706296240Sjkim echo "$as_me:1706: \$? = $ac_status" >&5 1707234949Sbapt (exit $ac_status); }; }; then 1708234949Sbapt ac_cv_prog_cc_g=yes 1709234949Sbaptelse 1710234949Sbapt echo "$as_me: failed program was:" >&5 1711234949Sbaptcat conftest.$ac_ext >&5 1712234949Sbaptac_cv_prog_cc_g=no 1713234949Sbaptfi 1714234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 1715234949Sbaptfi 1716296240Sjkimecho "$as_me:1716: result: $ac_cv_prog_cc_g" >&5 1717234949Sbaptecho "${ECHO_T}$ac_cv_prog_cc_g" >&6 1718234949Sbaptif test "$ac_test_CFLAGS" = set; then 1719234949Sbapt CFLAGS=$ac_save_CFLAGS 1720234949Sbaptelif test $ac_cv_prog_cc_g = yes; then 1721234949Sbapt if test "$GCC" = yes; then 1722234949Sbapt CFLAGS="-g -O2" 1723234949Sbapt else 1724234949Sbapt CFLAGS="-g" 1725234949Sbapt fi 1726234949Sbaptelse 1727234949Sbapt if test "$GCC" = yes; then 1728234949Sbapt CFLAGS="-O2" 1729234949Sbapt else 1730234949Sbapt CFLAGS= 1731234949Sbapt fi 1732234949Sbaptfi 1733234949Sbapt# Some people use a C++ compiler to compile C. Since we use `exit', 1734234949Sbapt# in C++ we need to declare it. In case someone uses the same compiler 1735234949Sbapt# for both compiling C and C++ we need to have the C++ compiler decide 1736234949Sbapt# the declaration of exit, since it's the most demanding environment. 1737234949Sbaptcat >conftest.$ac_ext <<_ACEOF 1738234949Sbapt#ifndef __cplusplus 1739234949Sbapt choke me 1740234949Sbapt#endif 1741234949Sbapt_ACEOF 1742234949Sbaptrm -f conftest.$ac_objext 1743296240Sjkimif { (eval echo "$as_me:1743: \"$ac_compile\"") >&5 1744234949Sbapt (eval $ac_compile) 2>&5 1745234949Sbapt ac_status=$? 1746296240Sjkim echo "$as_me:1746: \$? = $ac_status" >&5 1747234949Sbapt (exit $ac_status); } && 1748234949Sbapt { ac_try='test -s conftest.$ac_objext' 1749296240Sjkim { (eval echo "$as_me:1749: \"$ac_try\"") >&5 1750234949Sbapt (eval $ac_try) 2>&5 1751234949Sbapt ac_status=$? 1752296240Sjkim echo "$as_me:1752: \$? = $ac_status" >&5 1753234949Sbapt (exit $ac_status); }; }; then 1754234949Sbapt for ac_declaration in \ 1755234949Sbapt ''\ 1756234949Sbapt '#include <stdlib.h>' \ 1757234949Sbapt 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1758234949Sbapt 'extern "C" void std::exit (int); using std::exit;' \ 1759234949Sbapt 'extern "C" void exit (int) throw ();' \ 1760234949Sbapt 'extern "C" void exit (int);' \ 1761234949Sbapt 'void exit (int);' 1762234949Sbaptdo 1763234949Sbapt cat >conftest.$ac_ext <<_ACEOF 1764296240Sjkim#line 1764 "configure" 1765234949Sbapt#include "confdefs.h" 1766234949Sbapt#include <stdlib.h> 1767234949Sbapt$ac_declaration 1768234949Sbaptint 1769234949Sbaptmain () 1770234949Sbapt{ 1771234949Sbaptexit (42); 1772234949Sbapt ; 1773234949Sbapt return 0; 1774234949Sbapt} 1775234949Sbapt_ACEOF 1776234949Sbaptrm -f conftest.$ac_objext 1777296240Sjkimif { (eval echo "$as_me:1777: \"$ac_compile\"") >&5 1778234949Sbapt (eval $ac_compile) 2>&5 1779234949Sbapt ac_status=$? 1780296240Sjkim echo "$as_me:1780: \$? = $ac_status" >&5 1781234949Sbapt (exit $ac_status); } && 1782234949Sbapt { ac_try='test -s conftest.$ac_objext' 1783296240Sjkim { (eval echo "$as_me:1783: \"$ac_try\"") >&5 1784234949Sbapt (eval $ac_try) 2>&5 1785234949Sbapt ac_status=$? 1786296240Sjkim echo "$as_me:1786: \$? = $ac_status" >&5 1787234949Sbapt (exit $ac_status); }; }; then 1788234949Sbapt : 1789234949Sbaptelse 1790234949Sbapt echo "$as_me: failed program was:" >&5 1791234949Sbaptcat conftest.$ac_ext >&5 1792234949Sbaptcontinue 1793234949Sbaptfi 1794234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 1795234949Sbapt cat >conftest.$ac_ext <<_ACEOF 1796296240Sjkim#line 1796 "configure" 1797234949Sbapt#include "confdefs.h" 1798234949Sbapt$ac_declaration 1799234949Sbaptint 1800234949Sbaptmain () 1801234949Sbapt{ 1802234949Sbaptexit (42); 1803234949Sbapt ; 1804234949Sbapt return 0; 1805234949Sbapt} 1806234949Sbapt_ACEOF 1807234949Sbaptrm -f conftest.$ac_objext 1808296240Sjkimif { (eval echo "$as_me:1808: \"$ac_compile\"") >&5 1809234949Sbapt (eval $ac_compile) 2>&5 1810234949Sbapt ac_status=$? 1811296240Sjkim echo "$as_me:1811: \$? = $ac_status" >&5 1812234949Sbapt (exit $ac_status); } && 1813234949Sbapt { ac_try='test -s conftest.$ac_objext' 1814296240Sjkim { (eval echo "$as_me:1814: \"$ac_try\"") >&5 1815234949Sbapt (eval $ac_try) 2>&5 1816234949Sbapt ac_status=$? 1817296240Sjkim echo "$as_me:1817: \$? = $ac_status" >&5 1818234949Sbapt (exit $ac_status); }; }; then 1819234949Sbapt break 1820234949Sbaptelse 1821234949Sbapt echo "$as_me: failed program was:" >&5 1822234949Sbaptcat conftest.$ac_ext >&5 1823234949Sbaptfi 1824234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 1825234949Sbaptdone 1826234949Sbaptrm -rf conftest* 1827234949Sbaptif test -n "$ac_declaration"; then 1828234949Sbapt echo '#ifdef __cplusplus' >>confdefs.h 1829234949Sbapt echo $ac_declaration >>confdefs.h 1830234949Sbapt echo '#endif' >>confdefs.h 1831234949Sbaptfi 1832234949Sbapt 1833234949Sbaptelse 1834234949Sbapt echo "$as_me: failed program was:" >&5 1835234949Sbaptcat conftest.$ac_ext >&5 1836234949Sbaptfi 1837234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 1838234949Sbaptac_ext=c 1839234949Sbaptac_cpp='$CPP $CPPFLAGS' 1840234949Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1841234949Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1842234949Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu 1843234949Sbaptac_main_return=return 1844234949Sbapt 1845251143SbaptGCC_VERSION=none 1846251143Sbaptif test "$GCC" = yes ; then 1847296240Sjkim echo "$as_me:1847: checking version of $CC" >&5 1848251143Sbaptecho $ECHO_N "checking version of $CC... $ECHO_C" >&6 1849251143Sbapt 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.].*//'`" 1850251143Sbapt test -z "$GCC_VERSION" && GCC_VERSION=unknown 1851296240Sjkim echo "$as_me:1851: result: $GCC_VERSION" >&5 1852251143Sbaptecho "${ECHO_T}$GCC_VERSION" >&6 1853251143Sbaptfi 1854251143Sbapt 1855296240Sjkimecho "$as_me:1855: checking for $CC option to accept ANSI C" >&5 1856234949Sbaptecho $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 1857234949Sbaptif test "${ac_cv_prog_cc_stdc+set}" = set; then 1858234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1859234949Sbaptelse 1860234949Sbapt ac_cv_prog_cc_stdc=no 1861234949Sbaptac_save_CC=$CC 1862234949Sbaptcat >conftest.$ac_ext <<_ACEOF 1863296240Sjkim#line 1863 "configure" 1864234949Sbapt#include "confdefs.h" 1865234949Sbapt#include <stdarg.h> 1866234949Sbapt#include <stdio.h> 1867234949Sbapt#include <sys/types.h> 1868234949Sbapt#include <sys/stat.h> 1869234949Sbapt/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 1870234949Sbaptstruct buf { int x; }; 1871234949SbaptFILE * (*rcsopen) (struct buf *, struct stat *, int); 1872234949Sbaptstatic char *e (p, i) 1873234949Sbapt char **p; 1874234949Sbapt int i; 1875234949Sbapt{ 1876234949Sbapt return p[i]; 1877234949Sbapt} 1878234949Sbaptstatic char *f (char * (*g) (char **, int), char **p, ...) 1879234949Sbapt{ 1880234949Sbapt char *s; 1881234949Sbapt va_list v; 1882234949Sbapt va_start (v,p); 1883234949Sbapt s = g (p, va_arg (v,int)); 1884234949Sbapt va_end (v); 1885234949Sbapt return s; 1886234949Sbapt} 1887234949Sbaptint test (int i, double x); 1888234949Sbaptstruct s1 {int (*f) (int a);}; 1889234949Sbaptstruct s2 {int (*f) (double a);}; 1890234949Sbaptint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 1891234949Sbaptint argc; 1892234949Sbaptchar **argv; 1893234949Sbaptint 1894234949Sbaptmain () 1895234949Sbapt{ 1896234949Sbaptreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 1897234949Sbapt ; 1898234949Sbapt return 0; 1899234949Sbapt} 1900234949Sbapt_ACEOF 1901234949Sbapt# Don't try gcc -ansi; that turns off useful extensions and 1902234949Sbapt# breaks some systems' header files. 1903234949Sbapt# AIX -qlanglvl=ansi 1904234949Sbapt# Ultrix and OSF/1 -std1 1905234949Sbapt# HP-UX 10.20 and later -Ae 1906234949Sbapt# HP-UX older versions -Aa -D_HPUX_SOURCE 1907234949Sbapt# SVR4 -Xc -D__EXTENSIONS__ 1908234949Sbaptfor ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 1909234949Sbaptdo 1910234949Sbapt CC="$ac_save_CC $ac_arg" 1911234949Sbapt rm -f conftest.$ac_objext 1912296240Sjkimif { (eval echo "$as_me:1912: \"$ac_compile\"") >&5 1913234949Sbapt (eval $ac_compile) 2>&5 1914234949Sbapt ac_status=$? 1915296240Sjkim echo "$as_me:1915: \$? = $ac_status" >&5 1916234949Sbapt (exit $ac_status); } && 1917234949Sbapt { ac_try='test -s conftest.$ac_objext' 1918296240Sjkim { (eval echo "$as_me:1918: \"$ac_try\"") >&5 1919234949Sbapt (eval $ac_try) 2>&5 1920234949Sbapt ac_status=$? 1921296240Sjkim echo "$as_me:1921: \$? = $ac_status" >&5 1922234949Sbapt (exit $ac_status); }; }; then 1923234949Sbapt ac_cv_prog_cc_stdc=$ac_arg 1924234949Sbaptbreak 1925234949Sbaptelse 1926234949Sbapt echo "$as_me: failed program was:" >&5 1927234949Sbaptcat conftest.$ac_ext >&5 1928234949Sbaptfi 1929234949Sbaptrm -f conftest.$ac_objext 1930234949Sbaptdone 1931234949Sbaptrm -f conftest.$ac_ext conftest.$ac_objext 1932234949SbaptCC=$ac_save_CC 1933234949Sbapt 1934234949Sbaptfi 1935234949Sbapt 1936234949Sbaptcase "x$ac_cv_prog_cc_stdc" in 1937234949Sbapt x|xno) 1938296240Sjkim echo "$as_me:1938: result: none needed" >&5 1939234949Sbaptecho "${ECHO_T}none needed" >&6 ;; 1940234949Sbapt *) 1941296240Sjkim echo "$as_me:1941: result: $ac_cv_prog_cc_stdc" >&5 1942234949Sbaptecho "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 1943234949Sbapt CC="$CC $ac_cv_prog_cc_stdc" ;; 1944234949Sbaptesac 1945234949Sbapt 1946251143Sbapt# This should have been defined by AC_PROG_CC 1947251143Sbapt: ${CC:=cc} 1948234949Sbapt 1949296240Sjkimecho "$as_me:1949: checking \$CC variable" >&5 1950251143Sbaptecho $ECHO_N "checking \$CC variable... $ECHO_C" >&6 1951296240Sjkimcase "$CC" in 1952319297Sdelphij(*[\ \ ]-*) 1953296240Sjkim echo "$as_me:1953: result: broken" >&5 1954251143Sbaptecho "${ECHO_T}broken" >&6 1955296240Sjkim { echo "$as_me:1955: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5 1956251143Sbaptecho "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;} 1957251143Sbapt # humor him... 1958319297Sdelphij cf_flags=`echo "$CC" | sed -e 's/^.*[ ]\(-[^ ]\)/\1/'` 1959319297Sdelphij CC=`echo "$CC " | sed -e 's/[ ]-[^ ].*$//' -e 's/[ ]*$//'` 1960319297Sdelphij for cf_arg in $cf_flags 1961319297Sdelphij do 1962319297Sdelphij case "x$cf_arg" in 1963319297Sdelphij (x-[IUDfgOW]*) 1964234949Sbapt 1965251143Sbaptcf_fix_cppflags=no 1966251143Sbaptcf_new_cflags= 1967251143Sbaptcf_new_cppflags= 1968251143Sbaptcf_new_extra_cppflags= 1969234949Sbapt 1970251143Sbaptfor cf_add_cflags in $cf_flags 1971251143Sbaptdo 1972251143Sbaptcase $cf_fix_cppflags in 1973296240Sjkim(no) 1974296240Sjkim case $cf_add_cflags in 1975296240Sjkim (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 1976251143Sbapt case $cf_add_cflags in 1977296240Sjkim (-D*) 1978251143Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 1979251143Sbapt 1980272655Sbapt test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 1981251143Sbapt && test -z "${cf_tst_cflags}" \ 1982251143Sbapt && cf_fix_cppflags=yes 1983251143Sbapt 1984251143Sbapt if test $cf_fix_cppflags = yes ; then 1985251143Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 1986251143Sbapt continue 1987251143Sbapt elif test "${cf_tst_cflags}" = "\"'" ; then 1988251143Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 1989251143Sbapt continue 1990251143Sbapt fi 1991251143Sbapt ;; 1992251143Sbapt esac 1993251143Sbapt case "$CPPFLAGS" in 1994296240Sjkim (*$cf_add_cflags) 1995251143Sbapt ;; 1996296240Sjkim (*) 1997296240Sjkim case $cf_add_cflags in 1998296240Sjkim (-D*) 1999251143Sbapt cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 2000251143Sbapt 2001251143SbaptCPPFLAGS=`echo "$CPPFLAGS" | \ 2002251143Sbapt sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 2003251143Sbapt -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 2004251143Sbapt 2005251143Sbapt ;; 2006251143Sbapt esac 2007251143Sbapt cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 2008251143Sbapt ;; 2009251143Sbapt esac 2010251143Sbapt ;; 2011296240Sjkim (*) 2012251143Sbapt cf_new_cflags="$cf_new_cflags $cf_add_cflags" 2013251143Sbapt ;; 2014251143Sbapt esac 2015251143Sbapt ;; 2016296240Sjkim(yes) 2017251143Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2018251143Sbapt 2019251143Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 2020251143Sbapt 2021272655Sbapt test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2022251143Sbapt && test -z "${cf_tst_cflags}" \ 2023251143Sbapt && cf_fix_cppflags=no 2024251143Sbapt ;; 2025251143Sbaptesac 2026251143Sbaptdone 2027251143Sbapt 2028251143Sbaptif test -n "$cf_new_cflags" ; then 2029251143Sbapt 2030251143Sbapt CFLAGS="$CFLAGS $cf_new_cflags" 2031234949Sbaptfi 2032251143Sbapt 2033251143Sbaptif test -n "$cf_new_cppflags" ; then 2034251143Sbapt 2035251143Sbapt CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 2036234949Sbaptfi 2037234949Sbapt 2038251143Sbaptif test -n "$cf_new_extra_cppflags" ; then 2039234949Sbapt 2040251143Sbapt EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 2041234949Sbaptfi 2042234949Sbapt 2043319297Sdelphij ;; 2044319297Sdelphij (*) 2045319297Sdelphij CC="$CC $cf_arg" 2046319297Sdelphij ;; 2047319297Sdelphij esac 2048319297Sdelphij done 2049319297Sdelphij test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6 2050319297Sdelphij 2051319297Sdelphijecho "${as_me:-configure}:2051: testing resulting CC: '$CC' ..." 1>&5 2052319297Sdelphij 2053319297Sdelphij test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6 2054319297Sdelphij 2055319297Sdelphijecho "${as_me:-configure}:2055: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5 2056319297Sdelphij 2057319297Sdelphij test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6 2058319297Sdelphij 2059319297Sdelphijecho "${as_me:-configure}:2059: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5 2060319297Sdelphij 2061251143Sbapt ;; 2062296240Sjkim(*) 2063319297Sdelphij echo "$as_me:2063: result: ok" >&5 2064251143Sbaptecho "${ECHO_T}ok" >&6 2065251143Sbapt ;; 2066251143Sbaptesac 2067251143Sbapt 2068319297Sdelphijecho "$as_me:2068: checking whether ${MAKE-make} sets \${MAKE}" >&5 2069234949Sbaptecho $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 2070234949Sbaptset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 2071234949Sbaptif eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2072234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2073234949Sbaptelse 2074234949Sbapt cat >conftest.make <<\EOF 2075234949Sbaptall: 2076234949Sbapt @echo 'ac_maketemp="${MAKE}"' 2077234949SbaptEOF 2078234949Sbapt# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2079234949Sbapteval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2080234949Sbaptif test -n "$ac_maketemp"; then 2081234949Sbapt eval ac_cv_prog_make_${ac_make}_set=yes 2082234949Sbaptelse 2083234949Sbapt eval ac_cv_prog_make_${ac_make}_set=no 2084234949Sbaptfi 2085234949Sbaptrm -f conftest.make 2086234949Sbaptfi 2087234949Sbaptif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2088319297Sdelphij echo "$as_me:2088: result: yes" >&5 2089234949Sbaptecho "${ECHO_T}yes" >&6 2090234949Sbapt SET_MAKE= 2091234949Sbaptelse 2092319297Sdelphij echo "$as_me:2092: result: no" >&5 2093234949Sbaptecho "${ECHO_T}no" >&6 2094234949Sbapt SET_MAKE="MAKE=${MAKE-make}" 2095234949Sbaptfi 2096234949Sbapt 2097234949Sbapt# Find a good install program. We prefer a C program (faster), 2098234949Sbapt# so one script is as good as another. But avoid the broken or 2099234949Sbapt# incompatible versions: 2100234949Sbapt# SysV /etc/install, /usr/sbin/install 2101234949Sbapt# SunOS /usr/etc/install 2102234949Sbapt# IRIX /sbin/install 2103234949Sbapt# AIX /bin/install 2104234949Sbapt# AmigaOS /C/install, which installs bootblocks on floppy discs 2105234949Sbapt# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2106234949Sbapt# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2107234949Sbapt# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2108234949Sbapt# ./install, which can be erroneously created by make from ./install.sh. 2109319297Sdelphijecho "$as_me:2109: checking for a BSD compatible install" >&5 2110234949Sbaptecho $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 2111234949Sbaptif test -z "$INSTALL"; then 2112234949Sbaptif test "${ac_cv_path_install+set}" = set; then 2113234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2114234949Sbaptelse 2115234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 2116234949Sbapt for ac_dir in $PATH; do 2117234949Sbapt IFS=$ac_save_IFS 2118234949Sbapt # Account for people who put trailing slashes in PATH elements. 2119234949Sbapt case $ac_dir/ in 2120234949Sbapt / | ./ | .// | /cC/* \ 2121234949Sbapt | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 2122234949Sbapt | /usr/ucb/* ) ;; 2123234949Sbapt *) 2124234949Sbapt # OSF1 and SCO ODT 3.0 have their own names for install. 2125234949Sbapt # Don't use installbsd from OSF since it installs stuff as root 2126234949Sbapt # by default. 2127234949Sbapt for ac_prog in ginstall scoinst install; do 2128234949Sbapt if $as_executable_p "$ac_dir/$ac_prog"; then 2129234949Sbapt if test $ac_prog = install && 2130234949Sbapt grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2131234949Sbapt # AIX install. It has an incompatible calling convention. 2132234949Sbapt : 2133234949Sbapt elif test $ac_prog = install && 2134234949Sbapt grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2135234949Sbapt # program-specific install script used by HP pwplus--don't use. 2136234949Sbapt : 2137234949Sbapt else 2138234949Sbapt ac_cv_path_install="$ac_dir/$ac_prog -c" 2139234949Sbapt break 2 2140234949Sbapt fi 2141234949Sbapt fi 2142234949Sbapt done 2143234949Sbapt ;; 2144234949Sbapt esac 2145234949Sbapt done 2146234949Sbapt 2147234949Sbaptfi 2148234949Sbapt if test "${ac_cv_path_install+set}" = set; then 2149234949Sbapt INSTALL=$ac_cv_path_install 2150234949Sbapt else 2151234949Sbapt # As a last resort, use the slow shell script. We don't cache a 2152234949Sbapt # path for INSTALL within a source directory, because that will 2153234949Sbapt # break other packages using the cache if that directory is 2154234949Sbapt # removed, or if the path is relative. 2155234949Sbapt INSTALL=$ac_install_sh 2156234949Sbapt fi 2157234949Sbaptfi 2158319297Sdelphijecho "$as_me:2158: result: $INSTALL" >&5 2159234949Sbaptecho "${ECHO_T}$INSTALL" >&6 2160234949Sbapt 2161234949Sbapt# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2162234949Sbapt# It thinks the first close brace ends the variable substitution. 2163234949Sbapttest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2164234949Sbapt 2165234949Sbapttest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2166234949Sbapt 2167234949Sbapttest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2168234949Sbapt 2169319297Sdelphijecho "$as_me:2169: checking if filesystem supports mixed-case filenames" >&5 2170234949Sbaptecho $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6 2171234949Sbaptif test "${cf_cv_mixedcase+set}" = set; then 2172234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2173234949Sbaptelse 2174234949Sbapt 2175234949Sbaptif test "$cross_compiling" = yes ; then 2176296240Sjkim case $target_alias in 2177296240Sjkim (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*) 2178234949Sbapt cf_cv_mixedcase=no 2179234949Sbapt ;; 2180296240Sjkim (*) 2181234949Sbapt cf_cv_mixedcase=yes 2182234949Sbapt ;; 2183234949Sbapt esac 2184234949Sbaptelse 2185234949Sbapt rm -f conftest CONFTEST 2186234949Sbapt echo test >conftest 2187234949Sbapt if test -f CONFTEST ; then 2188234949Sbapt cf_cv_mixedcase=no 2189234949Sbapt else 2190234949Sbapt cf_cv_mixedcase=yes 2191234949Sbapt fi 2192234949Sbapt rm -f conftest CONFTEST 2193234949Sbaptfi 2194234949Sbapt 2195234949Sbaptfi 2196319297Sdelphijecho "$as_me:2196: result: $cf_cv_mixedcase" >&5 2197234949Sbaptecho "${ECHO_T}$cf_cv_mixedcase" >&6 2198251143Sbapttest "$cf_cv_mixedcase" = yes && 2199251143Sbaptcat >>confdefs.h <<\EOF 2200234949Sbapt#define MIXEDCASE_FILENAMES 1 2201234949SbaptEOF 2202234949Sbapt 2203234949Sbaptfor ac_prog in exctags ctags 2204234949Sbaptdo 2205234949Sbapt # Extract the first word of "$ac_prog", so it can be a program name with args. 2206234949Sbaptset dummy $ac_prog; ac_word=$2 2207319297Sdelphijecho "$as_me:2207: checking for $ac_word" >&5 2208234949Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2209234949Sbaptif test "${ac_cv_prog_CTAGS+set}" = set; then 2210234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2211234949Sbaptelse 2212234949Sbapt if test -n "$CTAGS"; then 2213234949Sbapt ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test. 2214234949Sbaptelse 2215234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 2216234949Sbaptac_dummy="$PATH" 2217234949Sbaptfor ac_dir in $ac_dummy; do 2218234949Sbapt IFS=$ac_save_IFS 2219234949Sbapt test -z "$ac_dir" && ac_dir=. 2220234949Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 2221234949Sbaptac_cv_prog_CTAGS="$ac_prog" 2222319297Sdelphijecho "$as_me:2222: found $ac_dir/$ac_word" >&5 2223234949Sbaptbreak 2224234949Sbaptdone 2225234949Sbapt 2226234949Sbaptfi 2227234949Sbaptfi 2228234949SbaptCTAGS=$ac_cv_prog_CTAGS 2229234949Sbaptif test -n "$CTAGS"; then 2230319297Sdelphij echo "$as_me:2230: result: $CTAGS" >&5 2231234949Sbaptecho "${ECHO_T}$CTAGS" >&6 2232234949Sbaptelse 2233319297Sdelphij echo "$as_me:2233: result: no" >&5 2234234949Sbaptecho "${ECHO_T}no" >&6 2235234949Sbaptfi 2236234949Sbapt 2237234949Sbapt test -n "$CTAGS" && break 2238234949Sbaptdone 2239234949Sbapt 2240234949Sbaptfor ac_prog in exetags etags 2241234949Sbaptdo 2242234949Sbapt # Extract the first word of "$ac_prog", so it can be a program name with args. 2243234949Sbaptset dummy $ac_prog; ac_word=$2 2244319297Sdelphijecho "$as_me:2244: checking for $ac_word" >&5 2245234949Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2246234949Sbaptif test "${ac_cv_prog_ETAGS+set}" = set; then 2247234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2248234949Sbaptelse 2249234949Sbapt if test -n "$ETAGS"; then 2250234949Sbapt ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test. 2251234949Sbaptelse 2252234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 2253234949Sbaptac_dummy="$PATH" 2254234949Sbaptfor ac_dir in $ac_dummy; do 2255234949Sbapt IFS=$ac_save_IFS 2256234949Sbapt test -z "$ac_dir" && ac_dir=. 2257234949Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 2258234949Sbaptac_cv_prog_ETAGS="$ac_prog" 2259319297Sdelphijecho "$as_me:2259: found $ac_dir/$ac_word" >&5 2260234949Sbaptbreak 2261234949Sbaptdone 2262234949Sbapt 2263234949Sbaptfi 2264234949Sbaptfi 2265234949SbaptETAGS=$ac_cv_prog_ETAGS 2266234949Sbaptif test -n "$ETAGS"; then 2267319297Sdelphij echo "$as_me:2267: result: $ETAGS" >&5 2268234949Sbaptecho "${ECHO_T}$ETAGS" >&6 2269234949Sbaptelse 2270319297Sdelphij echo "$as_me:2270: result: no" >&5 2271234949Sbaptecho "${ECHO_T}no" >&6 2272234949Sbaptfi 2273234949Sbapt 2274234949Sbapt test -n "$ETAGS" && break 2275234949Sbaptdone 2276234949Sbapt 2277234949Sbapt# Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args. 2278234949Sbaptset dummy ${CTAGS:-ctags}; ac_word=$2 2279319297Sdelphijecho "$as_me:2279: checking for $ac_word" >&5 2280234949Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2281234949Sbaptif test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then 2282234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2283234949Sbaptelse 2284234949Sbapt if test -n "$MAKE_LOWER_TAGS"; then 2285234949Sbapt ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test. 2286234949Sbaptelse 2287234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 2288234949Sbaptac_dummy="$PATH" 2289234949Sbaptfor ac_dir in $ac_dummy; do 2290234949Sbapt IFS=$ac_save_IFS 2291234949Sbapt test -z "$ac_dir" && ac_dir=. 2292234949Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 2293234949Sbaptac_cv_prog_MAKE_LOWER_TAGS="yes" 2294319297Sdelphijecho "$as_me:2294: found $ac_dir/$ac_word" >&5 2295234949Sbaptbreak 2296234949Sbaptdone 2297234949Sbapt 2298234949Sbapt test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no" 2299234949Sbaptfi 2300234949Sbaptfi 2301234949SbaptMAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS 2302234949Sbaptif test -n "$MAKE_LOWER_TAGS"; then 2303319297Sdelphij echo "$as_me:2303: result: $MAKE_LOWER_TAGS" >&5 2304234949Sbaptecho "${ECHO_T}$MAKE_LOWER_TAGS" >&6 2305234949Sbaptelse 2306319297Sdelphij echo "$as_me:2306: result: no" >&5 2307234949Sbaptecho "${ECHO_T}no" >&6 2308234949Sbaptfi 2309234949Sbapt 2310234949Sbaptif test "$cf_cv_mixedcase" = yes ; then 2311234949Sbapt # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args. 2312234949Sbaptset dummy ${ETAGS:-etags}; ac_word=$2 2313319297Sdelphijecho "$as_me:2313: checking for $ac_word" >&5 2314234949Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2315234949Sbaptif test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then 2316234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2317234949Sbaptelse 2318234949Sbapt if test -n "$MAKE_UPPER_TAGS"; then 2319234949Sbapt ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test. 2320234949Sbaptelse 2321234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 2322234949Sbaptac_dummy="$PATH" 2323234949Sbaptfor ac_dir in $ac_dummy; do 2324234949Sbapt IFS=$ac_save_IFS 2325234949Sbapt test -z "$ac_dir" && ac_dir=. 2326234949Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 2327234949Sbaptac_cv_prog_MAKE_UPPER_TAGS="yes" 2328319297Sdelphijecho "$as_me:2328: found $ac_dir/$ac_word" >&5 2329234949Sbaptbreak 2330234949Sbaptdone 2331234949Sbapt 2332234949Sbapt test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no" 2333234949Sbaptfi 2334234949Sbaptfi 2335234949SbaptMAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS 2336234949Sbaptif test -n "$MAKE_UPPER_TAGS"; then 2337319297Sdelphij echo "$as_me:2337: result: $MAKE_UPPER_TAGS" >&5 2338234949Sbaptecho "${ECHO_T}$MAKE_UPPER_TAGS" >&6 2339234949Sbaptelse 2340319297Sdelphij echo "$as_me:2340: result: no" >&5 2341234949Sbaptecho "${ECHO_T}no" >&6 2342234949Sbaptfi 2343234949Sbapt 2344234949Sbaptelse 2345234949Sbapt MAKE_UPPER_TAGS=no 2346234949Sbaptfi 2347234949Sbapt 2348234949Sbaptif test "$MAKE_UPPER_TAGS" = yes ; then 2349234949Sbapt MAKE_UPPER_TAGS= 2350234949Sbaptelse 2351234949Sbapt MAKE_UPPER_TAGS="#" 2352234949Sbaptfi 2353234949Sbapt 2354234949Sbaptif test "$MAKE_LOWER_TAGS" = yes ; then 2355234949Sbapt MAKE_LOWER_TAGS= 2356234949Sbaptelse 2357234949Sbapt MAKE_LOWER_TAGS="#" 2358234949Sbaptfi 2359234949Sbapt 2360264803Sbaptfor ac_prog in mawk gawk nawk awk 2361264803Sbaptdo 2362264803Sbapt # Extract the first word of "$ac_prog", so it can be a program name with args. 2363264803Sbaptset dummy $ac_prog; ac_word=$2 2364319297Sdelphijecho "$as_me:2364: checking for $ac_word" >&5 2365264803Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2366264803Sbaptif test "${ac_cv_prog_AWK+set}" = set; then 2367264803Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2368264803Sbaptelse 2369264803Sbapt if test -n "$AWK"; then 2370264803Sbapt ac_cv_prog_AWK="$AWK" # Let the user override the test. 2371264803Sbaptelse 2372264803Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 2373264803Sbaptac_dummy="$PATH" 2374264803Sbaptfor ac_dir in $ac_dummy; do 2375264803Sbapt IFS=$ac_save_IFS 2376264803Sbapt test -z "$ac_dir" && ac_dir=. 2377264803Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 2378264803Sbaptac_cv_prog_AWK="$ac_prog" 2379319297Sdelphijecho "$as_me:2379: found $ac_dir/$ac_word" >&5 2380264803Sbaptbreak 2381264803Sbaptdone 2382264803Sbapt 2383264803Sbaptfi 2384264803Sbaptfi 2385264803SbaptAWK=$ac_cv_prog_AWK 2386264803Sbaptif test -n "$AWK"; then 2387319297Sdelphij echo "$as_me:2387: result: $AWK" >&5 2388264803Sbaptecho "${ECHO_T}$AWK" >&6 2389264803Sbaptelse 2390319297Sdelphij echo "$as_me:2390: result: no" >&5 2391264803Sbaptecho "${ECHO_T}no" >&6 2392264803Sbaptfi 2393264803Sbapt 2394264803Sbapt test -n "$AWK" && break 2395264803Sbaptdone 2396264803Sbapt 2397319297Sdelphijtest -z "$AWK" && { { echo "$as_me:2397: error: No awk program found" >&5 2398264803Sbaptecho "$as_me: error: No awk program found" >&2;} 2399264803Sbapt { (exit 1); exit 1; }; } 2400264803Sbapt 2401319297Sdelphijfor ac_prog in lint cppcheck splint 2402234949Sbaptdo 2403234949Sbapt # Extract the first word of "$ac_prog", so it can be a program name with args. 2404234949Sbaptset dummy $ac_prog; ac_word=$2 2405319297Sdelphijecho "$as_me:2405: checking for $ac_word" >&5 2406234949Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2407234949Sbaptif test "${ac_cv_prog_LINT+set}" = set; then 2408234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2409234949Sbaptelse 2410234949Sbapt if test -n "$LINT"; then 2411234949Sbapt ac_cv_prog_LINT="$LINT" # Let the user override the test. 2412234949Sbaptelse 2413234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 2414234949Sbaptac_dummy="$PATH" 2415234949Sbaptfor ac_dir in $ac_dummy; do 2416234949Sbapt IFS=$ac_save_IFS 2417234949Sbapt test -z "$ac_dir" && ac_dir=. 2418234949Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 2419234949Sbaptac_cv_prog_LINT="$ac_prog" 2420319297Sdelphijecho "$as_me:2420: found $ac_dir/$ac_word" >&5 2421234949Sbaptbreak 2422234949Sbaptdone 2423234949Sbapt 2424234949Sbaptfi 2425234949Sbaptfi 2426234949SbaptLINT=$ac_cv_prog_LINT 2427234949Sbaptif test -n "$LINT"; then 2428319297Sdelphij echo "$as_me:2428: result: $LINT" >&5 2429234949Sbaptecho "${ECHO_T}$LINT" >&6 2430234949Sbaptelse 2431319297Sdelphij echo "$as_me:2431: result: no" >&5 2432234949Sbaptecho "${ECHO_T}no" >&6 2433234949Sbaptfi 2434234949Sbapt 2435234949Sbapt test -n "$LINT" && break 2436234949Sbaptdone 2437234949Sbapt 2438234949Sbaptcf_XOPEN_SOURCE=500 2439234949Sbaptcf_POSIX_C_SOURCE=199506L 2440234949Sbaptcf_xopen_source= 2441234949Sbapt 2442296240Sjkimcase $host_os in 2443296240Sjkim(aix[4-7]*) 2444234949Sbapt cf_xopen_source="-D_ALL_SOURCE" 2445234949Sbapt ;; 2446319297Sdelphij(msys) 2447234949Sbapt cf_XOPEN_SOURCE=600 2448234949Sbapt ;; 2449296240Sjkim(darwin[0-8].*) 2450234949Sbapt cf_xopen_source="-D_APPLE_C_SOURCE" 2451234949Sbapt ;; 2452296240Sjkim(darwin*) 2453234949Sbapt cf_xopen_source="-D_DARWIN_C_SOURCE" 2454234949Sbapt cf_XOPEN_SOURCE= 2455234949Sbapt ;; 2456296240Sjkim(freebsd*|dragonfly*) 2457234949Sbapt # 5.x headers associate 2458234949Sbapt # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L 2459234949Sbapt # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L 2460234949Sbapt cf_POSIX_C_SOURCE=200112L 2461234949Sbapt cf_XOPEN_SOURCE=600 2462234949Sbapt cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 2463234949Sbapt ;; 2464296240Sjkim(hpux11*) 2465234949Sbapt cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500" 2466234949Sbapt ;; 2467296240Sjkim(hpux*) 2468234949Sbapt cf_xopen_source="-D_HPUX_SOURCE" 2469234949Sbapt ;; 2470296240Sjkim(irix[56].*) 2471234949Sbapt cf_xopen_source="-D_SGI_SOURCE" 2472234949Sbapt cf_XOPEN_SOURCE= 2473234949Sbapt ;; 2474319297Sdelphij(linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin) 2475234949Sbapt 2476319297Sdelphijecho "$as_me:2476: checking if we must define _GNU_SOURCE" >&5 2477234949Sbaptecho $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6 2478234949Sbaptif test "${cf_cv_gnu_source+set}" = set; then 2479234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2480234949Sbaptelse 2481234949Sbapt 2482234949Sbaptcat >conftest.$ac_ext <<_ACEOF 2483319297Sdelphij#line 2483 "configure" 2484234949Sbapt#include "confdefs.h" 2485234949Sbapt#include <sys/types.h> 2486234949Sbaptint 2487234949Sbaptmain () 2488234949Sbapt{ 2489234949Sbapt 2490234949Sbapt#ifndef _XOPEN_SOURCE 2491234949Sbaptmake an error 2492234949Sbapt#endif 2493234949Sbapt ; 2494234949Sbapt return 0; 2495234949Sbapt} 2496234949Sbapt_ACEOF 2497234949Sbaptrm -f conftest.$ac_objext 2498319297Sdelphijif { (eval echo "$as_me:2498: \"$ac_compile\"") >&5 2499234949Sbapt (eval $ac_compile) 2>&5 2500234949Sbapt ac_status=$? 2501319297Sdelphij echo "$as_me:2501: \$? = $ac_status" >&5 2502234949Sbapt (exit $ac_status); } && 2503234949Sbapt { ac_try='test -s conftest.$ac_objext' 2504319297Sdelphij { (eval echo "$as_me:2504: \"$ac_try\"") >&5 2505234949Sbapt (eval $ac_try) 2>&5 2506234949Sbapt ac_status=$? 2507319297Sdelphij echo "$as_me:2507: \$? = $ac_status" >&5 2508234949Sbapt (exit $ac_status); }; }; then 2509234949Sbapt cf_cv_gnu_source=no 2510234949Sbaptelse 2511234949Sbapt echo "$as_me: failed program was:" >&5 2512234949Sbaptcat conftest.$ac_ext >&5 2513234949Sbaptcf_save="$CPPFLAGS" 2514234949Sbapt CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" 2515234949Sbapt cat >conftest.$ac_ext <<_ACEOF 2516319297Sdelphij#line 2516 "configure" 2517234949Sbapt#include "confdefs.h" 2518234949Sbapt#include <sys/types.h> 2519234949Sbaptint 2520234949Sbaptmain () 2521234949Sbapt{ 2522234949Sbapt 2523234949Sbapt#ifdef _XOPEN_SOURCE 2524234949Sbaptmake an error 2525234949Sbapt#endif 2526234949Sbapt ; 2527234949Sbapt return 0; 2528234949Sbapt} 2529234949Sbapt_ACEOF 2530234949Sbaptrm -f conftest.$ac_objext 2531319297Sdelphijif { (eval echo "$as_me:2531: \"$ac_compile\"") >&5 2532234949Sbapt (eval $ac_compile) 2>&5 2533234949Sbapt ac_status=$? 2534319297Sdelphij echo "$as_me:2534: \$? = $ac_status" >&5 2535234949Sbapt (exit $ac_status); } && 2536234949Sbapt { ac_try='test -s conftest.$ac_objext' 2537319297Sdelphij { (eval echo "$as_me:2537: \"$ac_try\"") >&5 2538234949Sbapt (eval $ac_try) 2>&5 2539234949Sbapt ac_status=$? 2540319297Sdelphij echo "$as_me:2540: \$? = $ac_status" >&5 2541234949Sbapt (exit $ac_status); }; }; then 2542234949Sbapt cf_cv_gnu_source=no 2543234949Sbaptelse 2544234949Sbapt echo "$as_me: failed program was:" >&5 2545234949Sbaptcat conftest.$ac_ext >&5 2546234949Sbaptcf_cv_gnu_source=yes 2547234949Sbaptfi 2548234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 2549234949Sbapt CPPFLAGS="$cf_save" 2550234949Sbapt 2551234949Sbaptfi 2552234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 2553234949Sbapt 2554234949Sbaptfi 2555319297Sdelphijecho "$as_me:2555: result: $cf_cv_gnu_source" >&5 2556234949Sbaptecho "${ECHO_T}$cf_cv_gnu_source" >&6 2557234949Sbapt 2558319297Sdelphijif test "$cf_cv_gnu_source" = yes 2559319297Sdelphijthen 2560319297Sdelphijecho "$as_me:2560: checking if we should also define _DEFAULT_SOURCE" >&5 2561319297Sdelphijecho $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6 2562319297Sdelphijif test "${cf_cv_default_source+set}" = set; then 2563319297Sdelphij echo $ECHO_N "(cached) $ECHO_C" >&6 2564319297Sdelphijelse 2565319297Sdelphij 2566319297SdelphijCPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" 2567319297Sdelphij cat >conftest.$ac_ext <<_ACEOF 2568319297Sdelphij#line 2568 "configure" 2569319297Sdelphij#include "confdefs.h" 2570319297Sdelphij#include <sys/types.h> 2571319297Sdelphijint 2572319297Sdelphijmain () 2573319297Sdelphij{ 2574319297Sdelphij 2575319297Sdelphij#ifdef _DEFAULT_SOURCE 2576319297Sdelphijmake an error 2577319297Sdelphij#endif 2578319297Sdelphij ; 2579319297Sdelphij return 0; 2580319297Sdelphij} 2581319297Sdelphij_ACEOF 2582319297Sdelphijrm -f conftest.$ac_objext 2583319297Sdelphijif { (eval echo "$as_me:2583: \"$ac_compile\"") >&5 2584319297Sdelphij (eval $ac_compile) 2>&5 2585319297Sdelphij ac_status=$? 2586319297Sdelphij echo "$as_me:2586: \$? = $ac_status" >&5 2587319297Sdelphij (exit $ac_status); } && 2588319297Sdelphij { ac_try='test -s conftest.$ac_objext' 2589319297Sdelphij { (eval echo "$as_me:2589: \"$ac_try\"") >&5 2590319297Sdelphij (eval $ac_try) 2>&5 2591319297Sdelphij ac_status=$? 2592319297Sdelphij echo "$as_me:2592: \$? = $ac_status" >&5 2593319297Sdelphij (exit $ac_status); }; }; then 2594319297Sdelphij cf_cv_default_source=no 2595319297Sdelphijelse 2596319297Sdelphij echo "$as_me: failed program was:" >&5 2597319297Sdelphijcat conftest.$ac_ext >&5 2598319297Sdelphijcf_cv_default_source=yes 2599319297Sdelphijfi 2600319297Sdelphijrm -f conftest.$ac_objext conftest.$ac_ext 2601319297Sdelphij 2602319297Sdelphijfi 2603319297Sdelphijecho "$as_me:2603: result: $cf_cv_default_source" >&5 2604319297Sdelphijecho "${ECHO_T}$cf_cv_default_source" >&6 2605319297Sdelphijtest "$cf_cv_default_source" = yes && CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE" 2606319297Sdelphijfi 2607319297Sdelphij 2608234949Sbapt ;; 2609296240Sjkim(minix*) 2610272655Sbapt cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this... 2611272655Sbapt ;; 2612296240Sjkim(mirbsd*) 2613234949Sbapt # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types 2614234949Sbapt cf_XOPEN_SOURCE= 2615234949Sbapt 2616234949Sbaptcf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 2617234949Sbapt 2618234949Sbaptcf_save_CFLAGS="$CFLAGS" 2619234949Sbaptcf_save_CPPFLAGS="$CPPFLAGS" 2620234949Sbapt 2621234949Sbaptcf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 2622234949Sbapt sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 2623234949Sbapt -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 2624234949Sbapt 2625234949Sbaptcf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 2626234949Sbapt sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 2627234949Sbapt -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 2628234949Sbapt 2629319297Sdelphijecho "$as_me:2629: checking if we should define _POSIX_C_SOURCE" >&5 2630234949Sbaptecho $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 2631234949Sbaptif test "${cf_cv_posix_c_source+set}" = set; then 2632234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2633234949Sbaptelse 2634234949Sbapt 2635319297Sdelphijecho "${as_me:-configure}:2635: testing if the symbol is already defined go no further ..." 1>&5 2636234949Sbapt 2637234949Sbapt cat >conftest.$ac_ext <<_ACEOF 2638319297Sdelphij#line 2638 "configure" 2639234949Sbapt#include "confdefs.h" 2640234949Sbapt#include <sys/types.h> 2641234949Sbaptint 2642234949Sbaptmain () 2643234949Sbapt{ 2644234949Sbapt 2645234949Sbapt#ifndef _POSIX_C_SOURCE 2646234949Sbaptmake an error 2647234949Sbapt#endif 2648234949Sbapt ; 2649234949Sbapt return 0; 2650234949Sbapt} 2651234949Sbapt_ACEOF 2652234949Sbaptrm -f conftest.$ac_objext 2653319297Sdelphijif { (eval echo "$as_me:2653: \"$ac_compile\"") >&5 2654234949Sbapt (eval $ac_compile) 2>&5 2655234949Sbapt ac_status=$? 2656319297Sdelphij echo "$as_me:2656: \$? = $ac_status" >&5 2657234949Sbapt (exit $ac_status); } && 2658234949Sbapt { ac_try='test -s conftest.$ac_objext' 2659319297Sdelphij { (eval echo "$as_me:2659: \"$ac_try\"") >&5 2660234949Sbapt (eval $ac_try) 2>&5 2661234949Sbapt ac_status=$? 2662319297Sdelphij echo "$as_me:2662: \$? = $ac_status" >&5 2663234949Sbapt (exit $ac_status); }; }; then 2664234949Sbapt cf_cv_posix_c_source=no 2665234949Sbaptelse 2666234949Sbapt echo "$as_me: failed program was:" >&5 2667234949Sbaptcat conftest.$ac_ext >&5 2668234949Sbaptcf_want_posix_source=no 2669296240Sjkim case .$cf_POSIX_C_SOURCE in 2670296240Sjkim (.[12]??*) 2671234949Sbapt cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 2672234949Sbapt ;; 2673296240Sjkim (.2) 2674234949Sbapt cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 2675234949Sbapt cf_want_posix_source=yes 2676234949Sbapt ;; 2677296240Sjkim (.*) 2678234949Sbapt cf_want_posix_source=yes 2679234949Sbapt ;; 2680234949Sbapt esac 2681234949Sbapt if test "$cf_want_posix_source" = yes ; then 2682234949Sbapt cat >conftest.$ac_ext <<_ACEOF 2683319297Sdelphij#line 2683 "configure" 2684234949Sbapt#include "confdefs.h" 2685234949Sbapt#include <sys/types.h> 2686234949Sbaptint 2687234949Sbaptmain () 2688234949Sbapt{ 2689234949Sbapt 2690234949Sbapt#ifdef _POSIX_SOURCE 2691234949Sbaptmake an error 2692234949Sbapt#endif 2693234949Sbapt ; 2694234949Sbapt return 0; 2695234949Sbapt} 2696234949Sbapt_ACEOF 2697234949Sbaptrm -f conftest.$ac_objext 2698319297Sdelphijif { (eval echo "$as_me:2698: \"$ac_compile\"") >&5 2699234949Sbapt (eval $ac_compile) 2>&5 2700234949Sbapt ac_status=$? 2701319297Sdelphij echo "$as_me:2701: \$? = $ac_status" >&5 2702234949Sbapt (exit $ac_status); } && 2703234949Sbapt { ac_try='test -s conftest.$ac_objext' 2704319297Sdelphij { (eval echo "$as_me:2704: \"$ac_try\"") >&5 2705234949Sbapt (eval $ac_try) 2>&5 2706234949Sbapt ac_status=$? 2707319297Sdelphij echo "$as_me:2707: \$? = $ac_status" >&5 2708234949Sbapt (exit $ac_status); }; }; then 2709234949Sbapt : 2710234949Sbaptelse 2711234949Sbapt echo "$as_me: failed program was:" >&5 2712234949Sbaptcat conftest.$ac_ext >&5 2713234949Sbaptcf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 2714234949Sbaptfi 2715234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 2716234949Sbapt fi 2717234949Sbapt 2718319297Sdelphijecho "${as_me:-configure}:2718: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 2719234949Sbapt 2720234949Sbapt CFLAGS="$cf_trim_CFLAGS" 2721234949Sbapt CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source" 2722234949Sbapt 2723319297Sdelphijecho "${as_me:-configure}:2723: testing if the second compile does not leave our definition intact error ..." 1>&5 2724234949Sbapt 2725234949Sbapt cat >conftest.$ac_ext <<_ACEOF 2726319297Sdelphij#line 2726 "configure" 2727234949Sbapt#include "confdefs.h" 2728234949Sbapt#include <sys/types.h> 2729234949Sbaptint 2730234949Sbaptmain () 2731234949Sbapt{ 2732234949Sbapt 2733234949Sbapt#ifndef _POSIX_C_SOURCE 2734234949Sbaptmake an error 2735234949Sbapt#endif 2736234949Sbapt ; 2737234949Sbapt return 0; 2738234949Sbapt} 2739234949Sbapt_ACEOF 2740234949Sbaptrm -f conftest.$ac_objext 2741319297Sdelphijif { (eval echo "$as_me:2741: \"$ac_compile\"") >&5 2742234949Sbapt (eval $ac_compile) 2>&5 2743234949Sbapt ac_status=$? 2744319297Sdelphij echo "$as_me:2744: \$? = $ac_status" >&5 2745234949Sbapt (exit $ac_status); } && 2746234949Sbapt { ac_try='test -s conftest.$ac_objext' 2747319297Sdelphij { (eval echo "$as_me:2747: \"$ac_try\"") >&5 2748234949Sbapt (eval $ac_try) 2>&5 2749234949Sbapt ac_status=$? 2750319297Sdelphij echo "$as_me:2750: \$? = $ac_status" >&5 2751234949Sbapt (exit $ac_status); }; }; then 2752234949Sbapt : 2753234949Sbaptelse 2754234949Sbapt echo "$as_me: failed program was:" >&5 2755234949Sbaptcat conftest.$ac_ext >&5 2756234949Sbaptcf_cv_posix_c_source=no 2757234949Sbaptfi 2758234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 2759234949Sbapt CFLAGS="$cf_save_CFLAGS" 2760234949Sbapt CPPFLAGS="$cf_save_CPPFLAGS" 2761234949Sbapt 2762234949Sbaptfi 2763234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 2764234949Sbapt 2765234949Sbaptfi 2766319297Sdelphijecho "$as_me:2766: result: $cf_cv_posix_c_source" >&5 2767234949Sbaptecho "${ECHO_T}$cf_cv_posix_c_source" >&6 2768234949Sbapt 2769234949Sbaptif test "$cf_cv_posix_c_source" != no ; then 2770234949Sbapt CFLAGS="$cf_trim_CFLAGS" 2771234949Sbapt CPPFLAGS="$cf_trim_CPPFLAGS" 2772234949Sbapt 2773234949Sbaptcf_fix_cppflags=no 2774234949Sbaptcf_new_cflags= 2775234949Sbaptcf_new_cppflags= 2776234949Sbaptcf_new_extra_cppflags= 2777234949Sbapt 2778234949Sbaptfor cf_add_cflags in $cf_cv_posix_c_source 2779234949Sbaptdo 2780234949Sbaptcase $cf_fix_cppflags in 2781296240Sjkim(no) 2782296240Sjkim case $cf_add_cflags in 2783296240Sjkim (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 2784234949Sbapt case $cf_add_cflags in 2785296240Sjkim (-D*) 2786234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 2787234949Sbapt 2788272655Sbapt test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2789234949Sbapt && test -z "${cf_tst_cflags}" \ 2790234949Sbapt && cf_fix_cppflags=yes 2791234949Sbapt 2792234949Sbapt if test $cf_fix_cppflags = yes ; then 2793234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2794234949Sbapt continue 2795234949Sbapt elif test "${cf_tst_cflags}" = "\"'" ; then 2796234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2797234949Sbapt continue 2798234949Sbapt fi 2799234949Sbapt ;; 2800234949Sbapt esac 2801234949Sbapt case "$CPPFLAGS" in 2802296240Sjkim (*$cf_add_cflags) 2803234949Sbapt ;; 2804296240Sjkim (*) 2805296240Sjkim case $cf_add_cflags in 2806296240Sjkim (-D*) 2807234949Sbapt cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 2808234949Sbapt 2809234949SbaptCPPFLAGS=`echo "$CPPFLAGS" | \ 2810234949Sbapt sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 2811234949Sbapt -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 2812234949Sbapt 2813234949Sbapt ;; 2814234949Sbapt esac 2815234949Sbapt cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 2816234949Sbapt ;; 2817234949Sbapt esac 2818234949Sbapt ;; 2819296240Sjkim (*) 2820234949Sbapt cf_new_cflags="$cf_new_cflags $cf_add_cflags" 2821234949Sbapt ;; 2822234949Sbapt esac 2823234949Sbapt ;; 2824296240Sjkim(yes) 2825234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2826234949Sbapt 2827234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 2828234949Sbapt 2829272655Sbapt test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2830234949Sbapt && test -z "${cf_tst_cflags}" \ 2831234949Sbapt && cf_fix_cppflags=no 2832234949Sbapt ;; 2833234949Sbaptesac 2834234949Sbaptdone 2835234949Sbapt 2836234949Sbaptif test -n "$cf_new_cflags" ; then 2837234949Sbapt 2838234949Sbapt CFLAGS="$CFLAGS $cf_new_cflags" 2839234949Sbaptfi 2840234949Sbapt 2841234949Sbaptif test -n "$cf_new_cppflags" ; then 2842234949Sbapt 2843234949Sbapt CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 2844234949Sbaptfi 2845234949Sbapt 2846234949Sbaptif test -n "$cf_new_extra_cppflags" ; then 2847234949Sbapt 2848234949Sbapt EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 2849234949Sbaptfi 2850234949Sbapt 2851234949Sbaptfi 2852234949Sbapt 2853234949Sbapt ;; 2854296240Sjkim(netbsd*) 2855234949Sbapt cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw 2856234949Sbapt ;; 2857296240Sjkim(openbsd[4-9]*) 2858234949Sbapt # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw 2859234949Sbapt cf_xopen_source="-D_BSD_SOURCE" 2860234949Sbapt cf_XOPEN_SOURCE=600 2861234949Sbapt ;; 2862296240Sjkim(openbsd*) 2863234949Sbapt # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw 2864234949Sbapt ;; 2865296240Sjkim(osf[45]*) 2866234949Sbapt cf_xopen_source="-D_OSF_SOURCE" 2867234949Sbapt ;; 2868296240Sjkim(nto-qnx*) 2869234949Sbapt cf_xopen_source="-D_QNX_SOURCE" 2870234949Sbapt ;; 2871296240Sjkim(sco*) 2872234949Sbapt # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer 2873234949Sbapt ;; 2874296240Sjkim(solaris2.*) 2875234949Sbapt cf_xopen_source="-D__EXTENSIONS__" 2876264803Sbapt cf_cv_xopen_source=broken 2877234949Sbapt ;; 2878296240Sjkim(sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2) 2879272769Sbapt cf_XOPEN_SOURCE= 2880272769Sbapt cf_POSIX_C_SOURCE= 2881272769Sbapt ;; 2882296240Sjkim(*) 2883234949Sbapt 2884319297Sdelphijecho "$as_me:2884: checking if we should define _XOPEN_SOURCE" >&5 2885234949Sbaptecho $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 2886234949Sbaptif test "${cf_cv_xopen_source+set}" = set; then 2887234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2888234949Sbaptelse 2889234949Sbapt 2890234949Sbapt cat >conftest.$ac_ext <<_ACEOF 2891319297Sdelphij#line 2891 "configure" 2892234949Sbapt#include "confdefs.h" 2893234949Sbapt 2894234949Sbapt#include <stdlib.h> 2895234949Sbapt#include <string.h> 2896234949Sbapt#include <sys/types.h> 2897234949Sbapt 2898234949Sbaptint 2899234949Sbaptmain () 2900234949Sbapt{ 2901234949Sbapt 2902234949Sbapt#ifndef _XOPEN_SOURCE 2903234949Sbaptmake an error 2904234949Sbapt#endif 2905234949Sbapt ; 2906234949Sbapt return 0; 2907234949Sbapt} 2908234949Sbapt_ACEOF 2909234949Sbaptrm -f conftest.$ac_objext 2910319297Sdelphijif { (eval echo "$as_me:2910: \"$ac_compile\"") >&5 2911234949Sbapt (eval $ac_compile) 2>&5 2912234949Sbapt ac_status=$? 2913319297Sdelphij echo "$as_me:2913: \$? = $ac_status" >&5 2914234949Sbapt (exit $ac_status); } && 2915234949Sbapt { ac_try='test -s conftest.$ac_objext' 2916319297Sdelphij { (eval echo "$as_me:2916: \"$ac_try\"") >&5 2917234949Sbapt (eval $ac_try) 2>&5 2918234949Sbapt ac_status=$? 2919319297Sdelphij echo "$as_me:2919: \$? = $ac_status" >&5 2920234949Sbapt (exit $ac_status); }; }; then 2921234949Sbapt cf_cv_xopen_source=no 2922234949Sbaptelse 2923234949Sbapt echo "$as_me: failed program was:" >&5 2924234949Sbaptcat conftest.$ac_ext >&5 2925234949Sbaptcf_save="$CPPFLAGS" 2926234949Sbapt CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 2927234949Sbapt cat >conftest.$ac_ext <<_ACEOF 2928319297Sdelphij#line 2928 "configure" 2929234949Sbapt#include "confdefs.h" 2930234949Sbapt 2931234949Sbapt#include <stdlib.h> 2932234949Sbapt#include <string.h> 2933234949Sbapt#include <sys/types.h> 2934234949Sbapt 2935234949Sbaptint 2936234949Sbaptmain () 2937234949Sbapt{ 2938234949Sbapt 2939234949Sbapt#ifdef _XOPEN_SOURCE 2940234949Sbaptmake an error 2941234949Sbapt#endif 2942234949Sbapt ; 2943234949Sbapt return 0; 2944234949Sbapt} 2945234949Sbapt_ACEOF 2946234949Sbaptrm -f conftest.$ac_objext 2947319297Sdelphijif { (eval echo "$as_me:2947: \"$ac_compile\"") >&5 2948234949Sbapt (eval $ac_compile) 2>&5 2949234949Sbapt ac_status=$? 2950319297Sdelphij echo "$as_me:2950: \$? = $ac_status" >&5 2951234949Sbapt (exit $ac_status); } && 2952234949Sbapt { ac_try='test -s conftest.$ac_objext' 2953319297Sdelphij { (eval echo "$as_me:2953: \"$ac_try\"") >&5 2954234949Sbapt (eval $ac_try) 2>&5 2955234949Sbapt ac_status=$? 2956319297Sdelphij echo "$as_me:2956: \$? = $ac_status" >&5 2957234949Sbapt (exit $ac_status); }; }; then 2958234949Sbapt cf_cv_xopen_source=no 2959234949Sbaptelse 2960234949Sbapt echo "$as_me: failed program was:" >&5 2961234949Sbaptcat conftest.$ac_ext >&5 2962234949Sbaptcf_cv_xopen_source=$cf_XOPEN_SOURCE 2963234949Sbaptfi 2964234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 2965234949Sbapt CPPFLAGS="$cf_save" 2966234949Sbapt 2967234949Sbaptfi 2968234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 2969234949Sbapt 2970234949Sbaptfi 2971319297Sdelphijecho "$as_me:2971: result: $cf_cv_xopen_source" >&5 2972234949Sbaptecho "${ECHO_T}$cf_cv_xopen_source" >&6 2973234949Sbapt 2974234949Sbaptif test "$cf_cv_xopen_source" != no ; then 2975234949Sbapt 2976234949SbaptCFLAGS=`echo "$CFLAGS" | \ 2977234949Sbapt sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 2978234949Sbapt -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 2979234949Sbapt 2980234949SbaptCPPFLAGS=`echo "$CPPFLAGS" | \ 2981234949Sbapt sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 2982234949Sbapt -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 2983234949Sbapt 2984234949Sbapt cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 2985234949Sbapt 2986234949Sbaptcf_fix_cppflags=no 2987234949Sbaptcf_new_cflags= 2988234949Sbaptcf_new_cppflags= 2989234949Sbaptcf_new_extra_cppflags= 2990234949Sbapt 2991234949Sbaptfor cf_add_cflags in $cf_temp_xopen_source 2992234949Sbaptdo 2993234949Sbaptcase $cf_fix_cppflags in 2994296240Sjkim(no) 2995296240Sjkim case $cf_add_cflags in 2996296240Sjkim (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 2997234949Sbapt case $cf_add_cflags in 2998296240Sjkim (-D*) 2999234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3000234949Sbapt 3001272655Sbapt test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3002234949Sbapt && test -z "${cf_tst_cflags}" \ 3003234949Sbapt && cf_fix_cppflags=yes 3004234949Sbapt 3005234949Sbapt if test $cf_fix_cppflags = yes ; then 3006234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3007234949Sbapt continue 3008234949Sbapt elif test "${cf_tst_cflags}" = "\"'" ; then 3009234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3010234949Sbapt continue 3011234949Sbapt fi 3012234949Sbapt ;; 3013234949Sbapt esac 3014234949Sbapt case "$CPPFLAGS" in 3015296240Sjkim (*$cf_add_cflags) 3016234949Sbapt ;; 3017296240Sjkim (*) 3018296240Sjkim case $cf_add_cflags in 3019296240Sjkim (-D*) 3020234949Sbapt cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3021234949Sbapt 3022234949SbaptCPPFLAGS=`echo "$CPPFLAGS" | \ 3023234949Sbapt sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3024234949Sbapt -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3025234949Sbapt 3026234949Sbapt ;; 3027234949Sbapt esac 3028234949Sbapt cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3029234949Sbapt ;; 3030234949Sbapt esac 3031234949Sbapt ;; 3032296240Sjkim (*) 3033234949Sbapt cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3034234949Sbapt ;; 3035234949Sbapt esac 3036234949Sbapt ;; 3037296240Sjkim(yes) 3038234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3039234949Sbapt 3040234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3041234949Sbapt 3042272655Sbapt test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3043234949Sbapt && test -z "${cf_tst_cflags}" \ 3044234949Sbapt && cf_fix_cppflags=no 3045234949Sbapt ;; 3046234949Sbaptesac 3047234949Sbaptdone 3048234949Sbapt 3049234949Sbaptif test -n "$cf_new_cflags" ; then 3050234949Sbapt 3051234949Sbapt CFLAGS="$CFLAGS $cf_new_cflags" 3052234949Sbaptfi 3053234949Sbapt 3054234949Sbaptif test -n "$cf_new_cppflags" ; then 3055234949Sbapt 3056234949Sbapt CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3057234949Sbaptfi 3058234949Sbapt 3059234949Sbaptif test -n "$cf_new_extra_cppflags" ; then 3060234949Sbapt 3061234949Sbapt EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3062234949Sbaptfi 3063234949Sbapt 3064234949Sbaptfi 3065234949Sbapt 3066234949Sbaptcf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 3067234949Sbapt 3068234949Sbaptcf_save_CFLAGS="$CFLAGS" 3069234949Sbaptcf_save_CPPFLAGS="$CPPFLAGS" 3070234949Sbapt 3071234949Sbaptcf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 3072234949Sbapt sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3073234949Sbapt -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 3074234949Sbapt 3075234949Sbaptcf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 3076234949Sbapt sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3077234949Sbapt -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 3078234949Sbapt 3079319297Sdelphijecho "$as_me:3079: checking if we should define _POSIX_C_SOURCE" >&5 3080234949Sbaptecho $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 3081234949Sbaptif test "${cf_cv_posix_c_source+set}" = set; then 3082234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 3083234949Sbaptelse 3084234949Sbapt 3085319297Sdelphijecho "${as_me:-configure}:3085: testing if the symbol is already defined go no further ..." 1>&5 3086234949Sbapt 3087234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3088319297Sdelphij#line 3088 "configure" 3089234949Sbapt#include "confdefs.h" 3090234949Sbapt#include <sys/types.h> 3091234949Sbaptint 3092234949Sbaptmain () 3093234949Sbapt{ 3094234949Sbapt 3095234949Sbapt#ifndef _POSIX_C_SOURCE 3096234949Sbaptmake an error 3097234949Sbapt#endif 3098234949Sbapt ; 3099234949Sbapt return 0; 3100234949Sbapt} 3101234949Sbapt_ACEOF 3102234949Sbaptrm -f conftest.$ac_objext 3103319297Sdelphijif { (eval echo "$as_me:3103: \"$ac_compile\"") >&5 3104234949Sbapt (eval $ac_compile) 2>&5 3105234949Sbapt ac_status=$? 3106319297Sdelphij echo "$as_me:3106: \$? = $ac_status" >&5 3107234949Sbapt (exit $ac_status); } && 3108234949Sbapt { ac_try='test -s conftest.$ac_objext' 3109319297Sdelphij { (eval echo "$as_me:3109: \"$ac_try\"") >&5 3110234949Sbapt (eval $ac_try) 2>&5 3111234949Sbapt ac_status=$? 3112319297Sdelphij echo "$as_me:3112: \$? = $ac_status" >&5 3113234949Sbapt (exit $ac_status); }; }; then 3114234949Sbapt cf_cv_posix_c_source=no 3115234949Sbaptelse 3116234949Sbapt echo "$as_me: failed program was:" >&5 3117234949Sbaptcat conftest.$ac_ext >&5 3118234949Sbaptcf_want_posix_source=no 3119296240Sjkim case .$cf_POSIX_C_SOURCE in 3120296240Sjkim (.[12]??*) 3121234949Sbapt cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3122234949Sbapt ;; 3123296240Sjkim (.2) 3124234949Sbapt cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3125234949Sbapt cf_want_posix_source=yes 3126234949Sbapt ;; 3127296240Sjkim (.*) 3128234949Sbapt cf_want_posix_source=yes 3129234949Sbapt ;; 3130234949Sbapt esac 3131234949Sbapt if test "$cf_want_posix_source" = yes ; then 3132234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3133319297Sdelphij#line 3133 "configure" 3134234949Sbapt#include "confdefs.h" 3135234949Sbapt#include <sys/types.h> 3136234949Sbaptint 3137234949Sbaptmain () 3138234949Sbapt{ 3139234949Sbapt 3140234949Sbapt#ifdef _POSIX_SOURCE 3141234949Sbaptmake an error 3142234949Sbapt#endif 3143234949Sbapt ; 3144234949Sbapt return 0; 3145234949Sbapt} 3146234949Sbapt_ACEOF 3147234949Sbaptrm -f conftest.$ac_objext 3148319297Sdelphijif { (eval echo "$as_me:3148: \"$ac_compile\"") >&5 3149234949Sbapt (eval $ac_compile) 2>&5 3150234949Sbapt ac_status=$? 3151319297Sdelphij echo "$as_me:3151: \$? = $ac_status" >&5 3152234949Sbapt (exit $ac_status); } && 3153234949Sbapt { ac_try='test -s conftest.$ac_objext' 3154319297Sdelphij { (eval echo "$as_me:3154: \"$ac_try\"") >&5 3155234949Sbapt (eval $ac_try) 2>&5 3156234949Sbapt ac_status=$? 3157319297Sdelphij echo "$as_me:3157: \$? = $ac_status" >&5 3158234949Sbapt (exit $ac_status); }; }; then 3159234949Sbapt : 3160234949Sbaptelse 3161234949Sbapt echo "$as_me: failed program was:" >&5 3162234949Sbaptcat conftest.$ac_ext >&5 3163234949Sbaptcf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 3164234949Sbaptfi 3165234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 3166234949Sbapt fi 3167234949Sbapt 3168319297Sdelphijecho "${as_me:-configure}:3168: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 3169234949Sbapt 3170234949Sbapt CFLAGS="$cf_trim_CFLAGS" 3171234949Sbapt CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source" 3172234949Sbapt 3173319297Sdelphijecho "${as_me:-configure}:3173: testing if the second compile does not leave our definition intact error ..." 1>&5 3174234949Sbapt 3175234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3176319297Sdelphij#line 3176 "configure" 3177234949Sbapt#include "confdefs.h" 3178234949Sbapt#include <sys/types.h> 3179234949Sbaptint 3180234949Sbaptmain () 3181234949Sbapt{ 3182234949Sbapt 3183234949Sbapt#ifndef _POSIX_C_SOURCE 3184234949Sbaptmake an error 3185234949Sbapt#endif 3186234949Sbapt ; 3187234949Sbapt return 0; 3188234949Sbapt} 3189234949Sbapt_ACEOF 3190234949Sbaptrm -f conftest.$ac_objext 3191319297Sdelphijif { (eval echo "$as_me:3191: \"$ac_compile\"") >&5 3192234949Sbapt (eval $ac_compile) 2>&5 3193234949Sbapt ac_status=$? 3194319297Sdelphij echo "$as_me:3194: \$? = $ac_status" >&5 3195234949Sbapt (exit $ac_status); } && 3196234949Sbapt { ac_try='test -s conftest.$ac_objext' 3197319297Sdelphij { (eval echo "$as_me:3197: \"$ac_try\"") >&5 3198234949Sbapt (eval $ac_try) 2>&5 3199234949Sbapt ac_status=$? 3200319297Sdelphij echo "$as_me:3200: \$? = $ac_status" >&5 3201234949Sbapt (exit $ac_status); }; }; then 3202234949Sbapt : 3203234949Sbaptelse 3204234949Sbapt echo "$as_me: failed program was:" >&5 3205234949Sbaptcat conftest.$ac_ext >&5 3206234949Sbaptcf_cv_posix_c_source=no 3207234949Sbaptfi 3208234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 3209234949Sbapt CFLAGS="$cf_save_CFLAGS" 3210234949Sbapt CPPFLAGS="$cf_save_CPPFLAGS" 3211234949Sbapt 3212234949Sbaptfi 3213234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 3214234949Sbapt 3215234949Sbaptfi 3216319297Sdelphijecho "$as_me:3216: result: $cf_cv_posix_c_source" >&5 3217234949Sbaptecho "${ECHO_T}$cf_cv_posix_c_source" >&6 3218234949Sbapt 3219234949Sbaptif test "$cf_cv_posix_c_source" != no ; then 3220234949Sbapt CFLAGS="$cf_trim_CFLAGS" 3221234949Sbapt CPPFLAGS="$cf_trim_CPPFLAGS" 3222234949Sbapt 3223234949Sbaptcf_fix_cppflags=no 3224234949Sbaptcf_new_cflags= 3225234949Sbaptcf_new_cppflags= 3226234949Sbaptcf_new_extra_cppflags= 3227234949Sbapt 3228234949Sbaptfor cf_add_cflags in $cf_cv_posix_c_source 3229234949Sbaptdo 3230234949Sbaptcase $cf_fix_cppflags in 3231296240Sjkim(no) 3232296240Sjkim case $cf_add_cflags in 3233296240Sjkim (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 3234234949Sbapt case $cf_add_cflags in 3235296240Sjkim (-D*) 3236234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3237234949Sbapt 3238272655Sbapt test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3239234949Sbapt && test -z "${cf_tst_cflags}" \ 3240234949Sbapt && cf_fix_cppflags=yes 3241234949Sbapt 3242234949Sbapt if test $cf_fix_cppflags = yes ; then 3243234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3244234949Sbapt continue 3245234949Sbapt elif test "${cf_tst_cflags}" = "\"'" ; then 3246234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3247234949Sbapt continue 3248234949Sbapt fi 3249234949Sbapt ;; 3250234949Sbapt esac 3251234949Sbapt case "$CPPFLAGS" in 3252296240Sjkim (*$cf_add_cflags) 3253234949Sbapt ;; 3254296240Sjkim (*) 3255296240Sjkim case $cf_add_cflags in 3256296240Sjkim (-D*) 3257234949Sbapt cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3258234949Sbapt 3259234949SbaptCPPFLAGS=`echo "$CPPFLAGS" | \ 3260234949Sbapt sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3261234949Sbapt -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3262234949Sbapt 3263234949Sbapt ;; 3264234949Sbapt esac 3265234949Sbapt cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3266234949Sbapt ;; 3267234949Sbapt esac 3268234949Sbapt ;; 3269296240Sjkim (*) 3270234949Sbapt cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3271234949Sbapt ;; 3272234949Sbapt esac 3273234949Sbapt ;; 3274296240Sjkim(yes) 3275234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3276234949Sbapt 3277234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3278234949Sbapt 3279272655Sbapt test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3280234949Sbapt && test -z "${cf_tst_cflags}" \ 3281234949Sbapt && cf_fix_cppflags=no 3282234949Sbapt ;; 3283234949Sbaptesac 3284234949Sbaptdone 3285234949Sbapt 3286234949Sbaptif test -n "$cf_new_cflags" ; then 3287234949Sbapt 3288234949Sbapt CFLAGS="$CFLAGS $cf_new_cflags" 3289234949Sbaptfi 3290234949Sbapt 3291234949Sbaptif test -n "$cf_new_cppflags" ; then 3292234949Sbapt 3293234949Sbapt CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3294234949Sbaptfi 3295234949Sbapt 3296234949Sbaptif test -n "$cf_new_extra_cppflags" ; then 3297234949Sbapt 3298234949Sbapt EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3299234949Sbaptfi 3300234949Sbapt 3301234949Sbaptfi 3302234949Sbapt 3303234949Sbapt ;; 3304234949Sbaptesac 3305234949Sbapt 3306234949Sbaptif test -n "$cf_xopen_source" ; then 3307234949Sbapt 3308234949Sbaptcf_fix_cppflags=no 3309234949Sbaptcf_new_cflags= 3310234949Sbaptcf_new_cppflags= 3311234949Sbaptcf_new_extra_cppflags= 3312234949Sbapt 3313234949Sbaptfor cf_add_cflags in $cf_xopen_source 3314234949Sbaptdo 3315234949Sbaptcase $cf_fix_cppflags in 3316296240Sjkim(no) 3317296240Sjkim case $cf_add_cflags in 3318296240Sjkim (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 3319234949Sbapt case $cf_add_cflags in 3320296240Sjkim (-D*) 3321234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3322234949Sbapt 3323272655Sbapt test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3324234949Sbapt && test -z "${cf_tst_cflags}" \ 3325234949Sbapt && cf_fix_cppflags=yes 3326234949Sbapt 3327234949Sbapt if test $cf_fix_cppflags = yes ; then 3328234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3329234949Sbapt continue 3330234949Sbapt elif test "${cf_tst_cflags}" = "\"'" ; then 3331234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3332234949Sbapt continue 3333234949Sbapt fi 3334234949Sbapt ;; 3335234949Sbapt esac 3336234949Sbapt case "$CPPFLAGS" in 3337296240Sjkim (*$cf_add_cflags) 3338234949Sbapt ;; 3339296240Sjkim (*) 3340296240Sjkim case $cf_add_cflags in 3341296240Sjkim (-D*) 3342234949Sbapt cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3343234949Sbapt 3344234949SbaptCPPFLAGS=`echo "$CPPFLAGS" | \ 3345234949Sbapt sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3346234949Sbapt -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3347234949Sbapt 3348234949Sbapt ;; 3349234949Sbapt esac 3350234949Sbapt cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3351234949Sbapt ;; 3352234949Sbapt esac 3353234949Sbapt ;; 3354296240Sjkim (*) 3355234949Sbapt cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3356234949Sbapt ;; 3357234949Sbapt esac 3358234949Sbapt ;; 3359296240Sjkim(yes) 3360234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3361234949Sbapt 3362234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3363234949Sbapt 3364272655Sbapt test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3365234949Sbapt && test -z "${cf_tst_cflags}" \ 3366234949Sbapt && cf_fix_cppflags=no 3367234949Sbapt ;; 3368234949Sbaptesac 3369234949Sbaptdone 3370234949Sbapt 3371234949Sbaptif test -n "$cf_new_cflags" ; then 3372272655Sbapt test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6 3373234949Sbapt 3374319297Sdelphijecho "${as_me:-configure}:3374: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5 3375272655Sbapt 3376234949Sbapt CFLAGS="$CFLAGS $cf_new_cflags" 3377234949Sbaptfi 3378234949Sbapt 3379234949Sbaptif test -n "$cf_new_cppflags" ; then 3380272655Sbapt test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6 3381234949Sbapt 3382319297Sdelphijecho "${as_me:-configure}:3382: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5 3383272655Sbapt 3384234949Sbapt CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3385234949Sbaptfi 3386234949Sbapt 3387234949Sbaptif test -n "$cf_new_extra_cppflags" ; then 3388272655Sbapt test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6 3389234949Sbapt 3390319297Sdelphijecho "${as_me:-configure}:3390: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5 3391272655Sbapt 3392234949Sbapt EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3393234949Sbaptfi 3394234949Sbapt 3395234949Sbaptfi 3396234949Sbapt 3397234949Sbaptif test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then 3398319297Sdelphij echo "$as_me:3398: checking if _XOPEN_SOURCE really is set" >&5 3399234949Sbaptecho $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6 3400234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3401319297Sdelphij#line 3401 "configure" 3402234949Sbapt#include "confdefs.h" 3403234949Sbapt#include <stdlib.h> 3404234949Sbaptint 3405234949Sbaptmain () 3406234949Sbapt{ 3407234949Sbapt 3408234949Sbapt#ifndef _XOPEN_SOURCE 3409234949Sbaptmake an error 3410234949Sbapt#endif 3411234949Sbapt ; 3412234949Sbapt return 0; 3413234949Sbapt} 3414234949Sbapt_ACEOF 3415234949Sbaptrm -f conftest.$ac_objext 3416319297Sdelphijif { (eval echo "$as_me:3416: \"$ac_compile\"") >&5 3417234949Sbapt (eval $ac_compile) 2>&5 3418234949Sbapt ac_status=$? 3419319297Sdelphij echo "$as_me:3419: \$? = $ac_status" >&5 3420234949Sbapt (exit $ac_status); } && 3421234949Sbapt { ac_try='test -s conftest.$ac_objext' 3422319297Sdelphij { (eval echo "$as_me:3422: \"$ac_try\"") >&5 3423234949Sbapt (eval $ac_try) 2>&5 3424234949Sbapt ac_status=$? 3425319297Sdelphij echo "$as_me:3425: \$? = $ac_status" >&5 3426234949Sbapt (exit $ac_status); }; }; then 3427234949Sbapt cf_XOPEN_SOURCE_set=yes 3428234949Sbaptelse 3429234949Sbapt echo "$as_me: failed program was:" >&5 3430234949Sbaptcat conftest.$ac_ext >&5 3431234949Sbaptcf_XOPEN_SOURCE_set=no 3432234949Sbaptfi 3433234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 3434319297Sdelphij echo "$as_me:3434: result: $cf_XOPEN_SOURCE_set" >&5 3435234949Sbaptecho "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6 3436234949Sbapt if test $cf_XOPEN_SOURCE_set = yes 3437234949Sbapt then 3438234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3439319297Sdelphij#line 3439 "configure" 3440234949Sbapt#include "confdefs.h" 3441234949Sbapt#include <stdlib.h> 3442234949Sbaptint 3443234949Sbaptmain () 3444234949Sbapt{ 3445234949Sbapt 3446234949Sbapt#if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE 3447234949Sbaptmake an error 3448234949Sbapt#endif 3449234949Sbapt ; 3450234949Sbapt return 0; 3451234949Sbapt} 3452234949Sbapt_ACEOF 3453234949Sbaptrm -f conftest.$ac_objext 3454319297Sdelphijif { (eval echo "$as_me:3454: \"$ac_compile\"") >&5 3455234949Sbapt (eval $ac_compile) 2>&5 3456234949Sbapt ac_status=$? 3457319297Sdelphij echo "$as_me:3457: \$? = $ac_status" >&5 3458234949Sbapt (exit $ac_status); } && 3459234949Sbapt { ac_try='test -s conftest.$ac_objext' 3460319297Sdelphij { (eval echo "$as_me:3460: \"$ac_try\"") >&5 3461234949Sbapt (eval $ac_try) 2>&5 3462234949Sbapt ac_status=$? 3463319297Sdelphij echo "$as_me:3463: \$? = $ac_status" >&5 3464234949Sbapt (exit $ac_status); }; }; then 3465234949Sbapt cf_XOPEN_SOURCE_set_ok=yes 3466234949Sbaptelse 3467234949Sbapt echo "$as_me: failed program was:" >&5 3468234949Sbaptcat conftest.$ac_ext >&5 3469234949Sbaptcf_XOPEN_SOURCE_set_ok=no 3470234949Sbaptfi 3471234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 3472234949Sbapt if test $cf_XOPEN_SOURCE_set_ok = no 3473234949Sbapt then 3474319297Sdelphij { echo "$as_me:3474: WARNING: _XOPEN_SOURCE is lower than requested" >&5 3475234949Sbaptecho "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;} 3476234949Sbapt fi 3477234949Sbapt else 3478234949Sbapt 3479319297Sdelphijecho "$as_me:3479: checking if we should define _XOPEN_SOURCE" >&5 3480234949Sbaptecho $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 3481234949Sbaptif test "${cf_cv_xopen_source+set}" = set; then 3482234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 3483234949Sbaptelse 3484234949Sbapt 3485234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3486319297Sdelphij#line 3486 "configure" 3487234949Sbapt#include "confdefs.h" 3488234949Sbapt 3489234949Sbapt#include <stdlib.h> 3490234949Sbapt#include <string.h> 3491234949Sbapt#include <sys/types.h> 3492234949Sbapt 3493234949Sbaptint 3494234949Sbaptmain () 3495234949Sbapt{ 3496234949Sbapt 3497234949Sbapt#ifndef _XOPEN_SOURCE 3498234949Sbaptmake an error 3499234949Sbapt#endif 3500234949Sbapt ; 3501234949Sbapt return 0; 3502234949Sbapt} 3503234949Sbapt_ACEOF 3504234949Sbaptrm -f conftest.$ac_objext 3505319297Sdelphijif { (eval echo "$as_me:3505: \"$ac_compile\"") >&5 3506234949Sbapt (eval $ac_compile) 2>&5 3507234949Sbapt ac_status=$? 3508319297Sdelphij echo "$as_me:3508: \$? = $ac_status" >&5 3509234949Sbapt (exit $ac_status); } && 3510234949Sbapt { ac_try='test -s conftest.$ac_objext' 3511319297Sdelphij { (eval echo "$as_me:3511: \"$ac_try\"") >&5 3512234949Sbapt (eval $ac_try) 2>&5 3513234949Sbapt ac_status=$? 3514319297Sdelphij echo "$as_me:3514: \$? = $ac_status" >&5 3515234949Sbapt (exit $ac_status); }; }; then 3516234949Sbapt cf_cv_xopen_source=no 3517234949Sbaptelse 3518234949Sbapt echo "$as_me: failed program was:" >&5 3519234949Sbaptcat conftest.$ac_ext >&5 3520234949Sbaptcf_save="$CPPFLAGS" 3521234949Sbapt CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 3522234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3523319297Sdelphij#line 3523 "configure" 3524234949Sbapt#include "confdefs.h" 3525234949Sbapt 3526234949Sbapt#include <stdlib.h> 3527234949Sbapt#include <string.h> 3528234949Sbapt#include <sys/types.h> 3529234949Sbapt 3530234949Sbaptint 3531234949Sbaptmain () 3532234949Sbapt{ 3533234949Sbapt 3534234949Sbapt#ifdef _XOPEN_SOURCE 3535234949Sbaptmake an error 3536234949Sbapt#endif 3537234949Sbapt ; 3538234949Sbapt return 0; 3539234949Sbapt} 3540234949Sbapt_ACEOF 3541234949Sbaptrm -f conftest.$ac_objext 3542319297Sdelphijif { (eval echo "$as_me:3542: \"$ac_compile\"") >&5 3543234949Sbapt (eval $ac_compile) 2>&5 3544234949Sbapt ac_status=$? 3545319297Sdelphij echo "$as_me:3545: \$? = $ac_status" >&5 3546234949Sbapt (exit $ac_status); } && 3547234949Sbapt { ac_try='test -s conftest.$ac_objext' 3548319297Sdelphij { (eval echo "$as_me:3548: \"$ac_try\"") >&5 3549234949Sbapt (eval $ac_try) 2>&5 3550234949Sbapt ac_status=$? 3551319297Sdelphij echo "$as_me:3551: \$? = $ac_status" >&5 3552234949Sbapt (exit $ac_status); }; }; then 3553234949Sbapt cf_cv_xopen_source=no 3554234949Sbaptelse 3555234949Sbapt echo "$as_me: failed program was:" >&5 3556234949Sbaptcat conftest.$ac_ext >&5 3557234949Sbaptcf_cv_xopen_source=$cf_XOPEN_SOURCE 3558234949Sbaptfi 3559234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 3560234949Sbapt CPPFLAGS="$cf_save" 3561234949Sbapt 3562234949Sbaptfi 3563234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 3564234949Sbapt 3565234949Sbaptfi 3566319297Sdelphijecho "$as_me:3566: result: $cf_cv_xopen_source" >&5 3567234949Sbaptecho "${ECHO_T}$cf_cv_xopen_source" >&6 3568234949Sbapt 3569234949Sbaptif test "$cf_cv_xopen_source" != no ; then 3570234949Sbapt 3571234949SbaptCFLAGS=`echo "$CFLAGS" | \ 3572234949Sbapt sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3573234949Sbapt -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3574234949Sbapt 3575234949SbaptCPPFLAGS=`echo "$CPPFLAGS" | \ 3576234949Sbapt sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3577234949Sbapt -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3578234949Sbapt 3579234949Sbapt cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 3580234949Sbapt 3581234949Sbaptcf_fix_cppflags=no 3582234949Sbaptcf_new_cflags= 3583234949Sbaptcf_new_cppflags= 3584234949Sbaptcf_new_extra_cppflags= 3585234949Sbapt 3586234949Sbaptfor cf_add_cflags in $cf_temp_xopen_source 3587234949Sbaptdo 3588234949Sbaptcase $cf_fix_cppflags in 3589296240Sjkim(no) 3590296240Sjkim case $cf_add_cflags in 3591296240Sjkim (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 3592234949Sbapt case $cf_add_cflags in 3593296240Sjkim (-D*) 3594234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3595234949Sbapt 3596272655Sbapt test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3597234949Sbapt && test -z "${cf_tst_cflags}" \ 3598234949Sbapt && cf_fix_cppflags=yes 3599234949Sbapt 3600234949Sbapt if test $cf_fix_cppflags = yes ; then 3601234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3602234949Sbapt continue 3603234949Sbapt elif test "${cf_tst_cflags}" = "\"'" ; then 3604234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3605234949Sbapt continue 3606234949Sbapt fi 3607234949Sbapt ;; 3608234949Sbapt esac 3609234949Sbapt case "$CPPFLAGS" in 3610296240Sjkim (*$cf_add_cflags) 3611234949Sbapt ;; 3612296240Sjkim (*) 3613296240Sjkim case $cf_add_cflags in 3614296240Sjkim (-D*) 3615234949Sbapt cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3616234949Sbapt 3617234949SbaptCPPFLAGS=`echo "$CPPFLAGS" | \ 3618234949Sbapt sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3619234949Sbapt -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3620234949Sbapt 3621234949Sbapt ;; 3622234949Sbapt esac 3623234949Sbapt cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3624234949Sbapt ;; 3625234949Sbapt esac 3626234949Sbapt ;; 3627296240Sjkim (*) 3628234949Sbapt cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3629234949Sbapt ;; 3630234949Sbapt esac 3631234949Sbapt ;; 3632296240Sjkim(yes) 3633234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3634234949Sbapt 3635234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3636234949Sbapt 3637272655Sbapt test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3638234949Sbapt && test -z "${cf_tst_cflags}" \ 3639234949Sbapt && cf_fix_cppflags=no 3640234949Sbapt ;; 3641234949Sbaptesac 3642234949Sbaptdone 3643234949Sbapt 3644234949Sbaptif test -n "$cf_new_cflags" ; then 3645234949Sbapt 3646234949Sbapt CFLAGS="$CFLAGS $cf_new_cflags" 3647234949Sbaptfi 3648234949Sbapt 3649234949Sbaptif test -n "$cf_new_cppflags" ; then 3650234949Sbapt 3651234949Sbapt CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3652234949Sbaptfi 3653234949Sbapt 3654234949Sbaptif test -n "$cf_new_extra_cppflags" ; then 3655234949Sbapt 3656234949Sbapt EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3657234949Sbaptfi 3658234949Sbapt 3659234949Sbaptfi 3660234949Sbapt 3661234949Sbapt fi 3662234949Sbaptfi 3663234949Sbapt 3664234949Sbaptac_ext=c 3665234949Sbaptac_cpp='$CPP $CPPFLAGS' 3666234949Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3667234949Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3668234949Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu 3669234949Sbaptac_main_return=return 3670319297Sdelphijecho "$as_me:3670: checking how to run the C preprocessor" >&5 3671234949Sbaptecho $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3672234949Sbapt# On Suns, sometimes $CPP names a directory. 3673234949Sbaptif test -n "$CPP" && test -d "$CPP"; then 3674234949Sbapt CPP= 3675234949Sbaptfi 3676234949Sbaptif test -z "$CPP"; then 3677234949Sbapt if test "${ac_cv_prog_CPP+set}" = set; then 3678234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 3679234949Sbaptelse 3680234949Sbapt # Double quotes because CPP needs to be expanded 3681234949Sbapt for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3682234949Sbapt do 3683234949Sbapt ac_preproc_ok=false 3684234949Sbaptfor ac_c_preproc_warn_flag in '' yes 3685234949Sbaptdo 3686234949Sbapt # Use a header file that comes with gcc, so configuring glibc 3687234949Sbapt # with a fresh cross-compiler works. 3688234949Sbapt # On the NeXT, cc -E runs the code through the compiler's parser, 3689234949Sbapt # not just through cpp. "Syntax error" is here to catch this case. 3690234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3691319297Sdelphij#line 3691 "configure" 3692234949Sbapt#include "confdefs.h" 3693234949Sbapt#include <assert.h> 3694234949Sbapt Syntax error 3695234949Sbapt_ACEOF 3696319297Sdelphijif { (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 3702319297Sdelphij 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 : 3714234949Sbaptelse 3715234949Sbapt echo "$as_me: failed program was:" >&5 3716234949Sbapt cat conftest.$ac_ext >&5 3717234949Sbapt # Broken: fails on valid input. 3718234949Sbaptcontinue 3719234949Sbaptfi 3720234949Sbaptrm -f conftest.err conftest.$ac_ext 3721234949Sbapt 3722234949Sbapt # OK, works on sane cases. Now check whether non-existent headers 3723234949Sbapt # can be detected and how. 3724234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3725319297Sdelphij#line 3725 "configure" 3726234949Sbapt#include "confdefs.h" 3727234949Sbapt#include <ac_nonexistent.h> 3728234949Sbapt_ACEOF 3729319297Sdelphijif { (eval echo "$as_me:3729: \"$ac_cpp conftest.$ac_ext\"") >&5 3730234949Sbapt (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3731234949Sbapt ac_status=$? 3732234949Sbapt egrep -v '^ *\+' conftest.er1 >conftest.err 3733234949Sbapt rm -f conftest.er1 3734234949Sbapt cat conftest.err >&5 3735319297Sdelphij echo "$as_me:3735: \$? = $ac_status" >&5 3736234949Sbapt (exit $ac_status); } >/dev/null; then 3737234949Sbapt if test -s conftest.err; then 3738234949Sbapt ac_cpp_err=$ac_c_preproc_warn_flag 3739234949Sbapt else 3740234949Sbapt ac_cpp_err= 3741234949Sbapt fi 3742234949Sbaptelse 3743234949Sbapt ac_cpp_err=yes 3744234949Sbaptfi 3745234949Sbaptif test -z "$ac_cpp_err"; then 3746234949Sbapt # Broken: success on invalid input. 3747234949Sbaptcontinue 3748234949Sbaptelse 3749234949Sbapt echo "$as_me: failed program was:" >&5 3750234949Sbapt cat conftest.$ac_ext >&5 3751234949Sbapt # Passes both tests. 3752234949Sbaptac_preproc_ok=: 3753234949Sbaptbreak 3754234949Sbaptfi 3755234949Sbaptrm -f conftest.err conftest.$ac_ext 3756234949Sbapt 3757234949Sbaptdone 3758234949Sbapt# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3759234949Sbaptrm -f conftest.err conftest.$ac_ext 3760234949Sbaptif $ac_preproc_ok; then 3761234949Sbapt break 3762234949Sbaptfi 3763234949Sbapt 3764234949Sbapt done 3765234949Sbapt ac_cv_prog_CPP=$CPP 3766234949Sbapt 3767234949Sbaptfi 3768234949Sbapt CPP=$ac_cv_prog_CPP 3769234949Sbaptelse 3770234949Sbapt ac_cv_prog_CPP=$CPP 3771234949Sbaptfi 3772319297Sdelphijecho "$as_me:3772: result: $CPP" >&5 3773234949Sbaptecho "${ECHO_T}$CPP" >&6 3774234949Sbaptac_preproc_ok=false 3775234949Sbaptfor ac_c_preproc_warn_flag in '' yes 3776234949Sbaptdo 3777234949Sbapt # Use a header file that comes with gcc, so configuring glibc 3778234949Sbapt # with a fresh cross-compiler works. 3779234949Sbapt # On the NeXT, cc -E runs the code through the compiler's parser, 3780234949Sbapt # not just through cpp. "Syntax error" is here to catch this case. 3781234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3782319297Sdelphij#line 3782 "configure" 3783234949Sbapt#include "confdefs.h" 3784234949Sbapt#include <assert.h> 3785234949Sbapt Syntax error 3786234949Sbapt_ACEOF 3787319297Sdelphijif { (eval echo "$as_me:3787: \"$ac_cpp conftest.$ac_ext\"") >&5 3788234949Sbapt (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3789234949Sbapt ac_status=$? 3790234949Sbapt egrep -v '^ *\+' conftest.er1 >conftest.err 3791234949Sbapt rm -f conftest.er1 3792234949Sbapt cat conftest.err >&5 3793319297Sdelphij echo "$as_me:3793: \$? = $ac_status" >&5 3794234949Sbapt (exit $ac_status); } >/dev/null; then 3795234949Sbapt if test -s conftest.err; then 3796234949Sbapt ac_cpp_err=$ac_c_preproc_warn_flag 3797234949Sbapt else 3798234949Sbapt ac_cpp_err= 3799234949Sbapt fi 3800234949Sbaptelse 3801234949Sbapt ac_cpp_err=yes 3802234949Sbaptfi 3803234949Sbaptif test -z "$ac_cpp_err"; then 3804234949Sbapt : 3805234949Sbaptelse 3806234949Sbapt echo "$as_me: failed program was:" >&5 3807234949Sbapt cat conftest.$ac_ext >&5 3808234949Sbapt # Broken: fails on valid input. 3809234949Sbaptcontinue 3810234949Sbaptfi 3811234949Sbaptrm -f conftest.err conftest.$ac_ext 3812234949Sbapt 3813234949Sbapt # OK, works on sane cases. Now check whether non-existent headers 3814234949Sbapt # can be detected and how. 3815234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3816319297Sdelphij#line 3816 "configure" 3817234949Sbapt#include "confdefs.h" 3818234949Sbapt#include <ac_nonexistent.h> 3819234949Sbapt_ACEOF 3820319297Sdelphijif { (eval echo "$as_me:3820: \"$ac_cpp conftest.$ac_ext\"") >&5 3821234949Sbapt (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3822234949Sbapt ac_status=$? 3823234949Sbapt egrep -v '^ *\+' conftest.er1 >conftest.err 3824234949Sbapt rm -f conftest.er1 3825234949Sbapt cat conftest.err >&5 3826319297Sdelphij echo "$as_me:3826: \$? = $ac_status" >&5 3827234949Sbapt (exit $ac_status); } >/dev/null; then 3828234949Sbapt if test -s conftest.err; then 3829234949Sbapt ac_cpp_err=$ac_c_preproc_warn_flag 3830234949Sbapt else 3831234949Sbapt ac_cpp_err= 3832234949Sbapt fi 3833234949Sbaptelse 3834234949Sbapt ac_cpp_err=yes 3835234949Sbaptfi 3836234949Sbaptif test -z "$ac_cpp_err"; then 3837234949Sbapt # Broken: success on invalid input. 3838234949Sbaptcontinue 3839234949Sbaptelse 3840234949Sbapt echo "$as_me: failed program was:" >&5 3841234949Sbapt cat conftest.$ac_ext >&5 3842234949Sbapt # Passes both tests. 3843234949Sbaptac_preproc_ok=: 3844234949Sbaptbreak 3845234949Sbaptfi 3846234949Sbaptrm -f conftest.err conftest.$ac_ext 3847234949Sbapt 3848234949Sbaptdone 3849234949Sbapt# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3850234949Sbaptrm -f conftest.err conftest.$ac_ext 3851234949Sbaptif $ac_preproc_ok; then 3852234949Sbapt : 3853234949Sbaptelse 3854319297Sdelphij { { echo "$as_me:3854: error: C preprocessor \"$CPP\" fails sanity check" >&5 3855234949Sbaptecho "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 3856234949Sbapt { (exit 1); exit 1; }; } 3857234949Sbaptfi 3858234949Sbapt 3859234949Sbaptac_ext=c 3860234949Sbaptac_cpp='$CPP $CPPFLAGS' 3861234949Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3862234949Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3863234949Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu 3864234949Sbaptac_main_return=return 3865234949Sbapt 3866234949Sbaptfor ac_header in fcntl.h 3867234949Sbaptdo 3868234949Sbaptas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3869319297Sdelphijecho "$as_me:3869: checking for $ac_header" >&5 3870234949Sbaptecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3871234949Sbaptif eval "test \"\${$as_ac_Header+set}\" = set"; then 3872234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 3873234949Sbaptelse 3874234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3875319297Sdelphij#line 3875 "configure" 3876234949Sbapt#include "confdefs.h" 3877234949Sbapt#include <$ac_header> 3878234949Sbapt_ACEOF 3879319297Sdelphijif { (eval echo "$as_me:3879: \"$ac_cpp conftest.$ac_ext\"") >&5 3880234949Sbapt (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3881234949Sbapt ac_status=$? 3882234949Sbapt egrep -v '^ *\+' conftest.er1 >conftest.err 3883234949Sbapt rm -f conftest.er1 3884234949Sbapt cat conftest.err >&5 3885319297Sdelphij echo "$as_me:3885: \$? = $ac_status" >&5 3886234949Sbapt (exit $ac_status); } >/dev/null; then 3887234949Sbapt if test -s conftest.err; then 3888234949Sbapt ac_cpp_err=$ac_c_preproc_warn_flag 3889234949Sbapt else 3890234949Sbapt ac_cpp_err= 3891234949Sbapt fi 3892234949Sbaptelse 3893234949Sbapt ac_cpp_err=yes 3894234949Sbaptfi 3895234949Sbaptif test -z "$ac_cpp_err"; then 3896234949Sbapt eval "$as_ac_Header=yes" 3897234949Sbaptelse 3898234949Sbapt echo "$as_me: failed program was:" >&5 3899234949Sbapt cat conftest.$ac_ext >&5 3900234949Sbapt eval "$as_ac_Header=no" 3901234949Sbaptfi 3902234949Sbaptrm -f conftest.err conftest.$ac_ext 3903234949Sbaptfi 3904319297Sdelphijecho "$as_me:3904: result: `eval echo '${'$as_ac_Header'}'`" >&5 3905234949Sbaptecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3906234949Sbaptif test `eval echo '${'$as_ac_Header'}'` = yes; then 3907234949Sbapt cat >>confdefs.h <<EOF 3908234949Sbapt#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3909234949SbaptEOF 3910234949Sbapt 3911234949Sbaptfi 3912234949Sbaptdone 3913234949Sbapt 3914319349Sjkimfor ac_header in \ 3915319349Sjkimunistd.h \ 3916319349Sjkim 3917319349Sjkimdo 3918319349Sjkimas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3919319349Sjkimecho "$as_me:3919: checking for $ac_header" >&5 3920319349Sjkimecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3921319349Sjkimif eval "test \"\${$as_ac_Header+set}\" = set"; then 3922319349Sjkim echo $ECHO_N "(cached) $ECHO_C" >&6 3923319349Sjkimelse 3924319349Sjkim cat >conftest.$ac_ext <<_ACEOF 3925319349Sjkim#line 3925 "configure" 3926319349Sjkim#include "confdefs.h" 3927319349Sjkim#include <$ac_header> 3928319349Sjkim_ACEOF 3929319349Sjkimif { (eval echo "$as_me:3929: \"$ac_cpp conftest.$ac_ext\"") >&5 3930319349Sjkim (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3931319349Sjkim ac_status=$? 3932319349Sjkim egrep -v '^ *\+' conftest.er1 >conftest.err 3933319349Sjkim rm -f conftest.er1 3934319349Sjkim cat conftest.err >&5 3935319349Sjkim echo "$as_me:3935: \$? = $ac_status" >&5 3936319349Sjkim (exit $ac_status); } >/dev/null; then 3937319349Sjkim if test -s conftest.err; then 3938319349Sjkim ac_cpp_err=$ac_c_preproc_warn_flag 3939319349Sjkim else 3940319349Sjkim ac_cpp_err= 3941319349Sjkim fi 3942319349Sjkimelse 3943319349Sjkim ac_cpp_err=yes 3944319349Sjkimfi 3945319349Sjkimif test -z "$ac_cpp_err"; then 3946319349Sjkim eval "$as_ac_Header=yes" 3947319349Sjkimelse 3948319349Sjkim echo "$as_me: failed program was:" >&5 3949319349Sjkim cat conftest.$ac_ext >&5 3950319349Sjkim eval "$as_ac_Header=no" 3951319349Sjkimfi 3952319349Sjkimrm -f conftest.err conftest.$ac_ext 3953319349Sjkimfi 3954319349Sjkimecho "$as_me:3954: result: `eval echo '${'$as_ac_Header'}'`" >&5 3955319349Sjkimecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3956319349Sjkimif test `eval echo '${'$as_ac_Header'}'` = yes; then 3957319349Sjkim cat >>confdefs.h <<EOF 3958319349Sjkim#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3959319349SjkimEOF 3960319349Sjkim 3961319349Sjkimfi 3962319349Sjkimdone 3963319349Sjkim 3964319349Sjkimecho "$as_me:3964: checking for working mkstemp" >&5 3965251143Sbaptecho $ECHO_N "checking for working mkstemp... $ECHO_C" >&6 3966251143Sbaptif test "${cf_cv_func_mkstemp+set}" = set; then 3967234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 3968234949Sbaptelse 3969251143Sbapt 3970251143Sbaptrm -rf conftest* 3971251143Sbaptif test "$cross_compiling" = yes; then 3972251143Sbapt cf_cv_func_mkstemp=maybe 3973251143Sbaptelse 3974234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3975319349Sjkim#line 3975 "configure" 3976234949Sbapt#include "confdefs.h" 3977234949Sbapt 3978251143Sbapt#include <sys/types.h> 3979319349Sjkim#ifdef HAVE_UNISTD_H 3980319349Sjkim#include <unistd.h> 3981319349Sjkim#endif 3982251143Sbapt#include <stdlib.h> 3983251143Sbapt#include <stdio.h> 3984251143Sbapt#include <string.h> 3985251143Sbapt#include <sys/stat.h> 3986319349Sjkimint main(void) 3987234949Sbapt{ 3988251143Sbapt char *tmpl = "conftestXXXXXX"; 3989251143Sbapt char name[2][80]; 3990251143Sbapt int n; 3991251143Sbapt int result = 0; 3992251143Sbapt int fd; 3993251143Sbapt struct stat sb; 3994234949Sbapt 3995251143Sbapt umask(077); 3996251143Sbapt for (n = 0; n < 2; ++n) { 3997251143Sbapt strcpy(name[n], tmpl); 3998251143Sbapt if ((fd = mkstemp(name[n])) >= 0) { 3999251143Sbapt if (!strcmp(name[n], tmpl) 4000251143Sbapt || stat(name[n], &sb) != 0 4001251143Sbapt || (sb.st_mode & S_IFMT) != S_IFREG 4002251143Sbapt || (sb.st_mode & 077) != 0) { 4003251143Sbapt result = 1; 4004251143Sbapt } 4005251143Sbapt close(fd); 4006251143Sbapt } 4007251143Sbapt } 4008251143Sbapt if (result == 0 4009251143Sbapt && !strcmp(name[0], name[1])) 4010251143Sbapt result = 1; 4011251143Sbapt ${cf_cv_main_return:-return}(result); 4012234949Sbapt} 4013251143Sbapt 4014234949Sbapt_ACEOF 4015251143Sbaptrm -f conftest$ac_exeext 4016319349Sjkimif { (eval echo "$as_me:4016: \"$ac_link\"") >&5 4017234949Sbapt (eval $ac_link) 2>&5 4018234949Sbapt ac_status=$? 4019319349Sjkim echo "$as_me:4019: \$? = $ac_status" >&5 4020251143Sbapt (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4021319349Sjkim { (eval echo "$as_me:4021: \"$ac_try\"") >&5 4022234949Sbapt (eval $ac_try) 2>&5 4023234949Sbapt ac_status=$? 4024319349Sjkim echo "$as_me:4024: \$? = $ac_status" >&5 4025234949Sbapt (exit $ac_status); }; }; then 4026251143Sbapt cf_cv_func_mkstemp=yes 4027251143Sbapt 4028234949Sbaptelse 4029251143Sbapt echo "$as_me: program exited with status $ac_status" >&5 4030251143Sbaptecho "$as_me: failed program was:" >&5 4031234949Sbaptcat conftest.$ac_ext >&5 4032251143Sbaptcf_cv_func_mkstemp=no 4033251143Sbapt 4034234949Sbaptfi 4035251143Sbaptrm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4036234949Sbaptfi 4037234949Sbapt 4038234949Sbaptfi 4039319349Sjkimecho "$as_me:4039: result: $cf_cv_func_mkstemp" >&5 4040251143Sbaptecho "${ECHO_T}$cf_cv_func_mkstemp" >&6 4041251143Sbaptif test "x$cf_cv_func_mkstemp" = xmaybe ; then 4042319349Sjkim echo "$as_me:4042: checking for mkstemp" >&5 4043234949Sbaptecho $ECHO_N "checking for mkstemp... $ECHO_C" >&6 4044234949Sbaptif test "${ac_cv_func_mkstemp+set}" = set; then 4045234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 4046234949Sbaptelse 4047234949Sbapt cat >conftest.$ac_ext <<_ACEOF 4048319349Sjkim#line 4048 "configure" 4049234949Sbapt#include "confdefs.h" 4050234949Sbapt/* System header to define __stub macros and hopefully few prototypes, 4051234949Sbapt which can conflict with char mkstemp (); below. */ 4052234949Sbapt#include <assert.h> 4053234949Sbapt/* Override any gcc2 internal prototype to avoid an error. */ 4054234949Sbapt#ifdef __cplusplus 4055234949Sbaptextern "C" 4056234949Sbapt#endif 4057234949Sbapt/* We use char because int might match the return type of a gcc2 4058234949Sbapt builtin and then its argument prototype would still apply. */ 4059234949Sbaptchar mkstemp (); 4060234949Sbaptchar (*f) (); 4061234949Sbapt 4062234949Sbaptint 4063234949Sbaptmain () 4064234949Sbapt{ 4065234949Sbapt/* The GNU C library defines this for functions which it implements 4066234949Sbapt to always fail with ENOSYS. Some functions are actually named 4067234949Sbapt something starting with __ and the normal name is an alias. */ 4068234949Sbapt#if defined (__stub_mkstemp) || defined (__stub___mkstemp) 4069234949Sbaptchoke me 4070234949Sbapt#else 4071251143Sbaptf = mkstemp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 4072234949Sbapt#endif 4073234949Sbapt 4074234949Sbapt ; 4075234949Sbapt return 0; 4076234949Sbapt} 4077234949Sbapt_ACEOF 4078234949Sbaptrm -f conftest.$ac_objext conftest$ac_exeext 4079319349Sjkimif { (eval echo "$as_me:4079: \"$ac_link\"") >&5 4080234949Sbapt (eval $ac_link) 2>&5 4081234949Sbapt ac_status=$? 4082319349Sjkim echo "$as_me:4082: \$? = $ac_status" >&5 4083234949Sbapt (exit $ac_status); } && 4084234949Sbapt { ac_try='test -s conftest$ac_exeext' 4085319349Sjkim { (eval echo "$as_me:4085: \"$ac_try\"") >&5 4086234949Sbapt (eval $ac_try) 2>&5 4087234949Sbapt ac_status=$? 4088319349Sjkim echo "$as_me:4088: \$? = $ac_status" >&5 4089234949Sbapt (exit $ac_status); }; }; then 4090234949Sbapt ac_cv_func_mkstemp=yes 4091234949Sbaptelse 4092234949Sbapt echo "$as_me: failed program was:" >&5 4093234949Sbaptcat conftest.$ac_ext >&5 4094234949Sbaptac_cv_func_mkstemp=no 4095234949Sbaptfi 4096234949Sbaptrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4097234949Sbaptfi 4098319349Sjkimecho "$as_me:4098: result: $ac_cv_func_mkstemp" >&5 4099234949Sbaptecho "${ECHO_T}$ac_cv_func_mkstemp" >&6 4100234949Sbapt 4101234949Sbaptfi 4102251143Sbaptif test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then 4103234949Sbapt 4104251143Sbaptcat >>confdefs.h <<\EOF 4105234949Sbapt#define HAVE_MKSTEMP 1 4106234949SbaptEOF 4107234949Sbapt 4108234949Sbaptfi 4109234949Sbapt 4110266639Sbaptfor ac_func in vsnprintf 4111266639Sbaptdo 4112266639Sbaptas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4113319349Sjkimecho "$as_me:4113: checking for $ac_func" >&5 4114266639Sbaptecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4115266639Sbaptif eval "test \"\${$as_ac_var+set}\" = set"; then 4116266639Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 4117266639Sbaptelse 4118266639Sbapt cat >conftest.$ac_ext <<_ACEOF 4119319349Sjkim#line 4119 "configure" 4120266639Sbapt#include "confdefs.h" 4121266639Sbapt/* System header to define __stub macros and hopefully few prototypes, 4122266639Sbapt which can conflict with char $ac_func (); below. */ 4123266639Sbapt#include <assert.h> 4124266639Sbapt/* Override any gcc2 internal prototype to avoid an error. */ 4125266639Sbapt#ifdef __cplusplus 4126266639Sbaptextern "C" 4127266639Sbapt#endif 4128266639Sbapt/* We use char because int might match the return type of a gcc2 4129266639Sbapt builtin and then its argument prototype would still apply. */ 4130266639Sbaptchar $ac_func (); 4131266639Sbaptchar (*f) (); 4132266639Sbapt 4133266639Sbaptint 4134266639Sbaptmain () 4135266639Sbapt{ 4136266639Sbapt/* The GNU C library defines this for functions which it implements 4137266639Sbapt to always fail with ENOSYS. Some functions are actually named 4138266639Sbapt something starting with __ and the normal name is an alias. */ 4139266639Sbapt#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4140266639Sbaptchoke me 4141266639Sbapt#else 4142266639Sbaptf = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 4143266639Sbapt#endif 4144266639Sbapt 4145266639Sbapt ; 4146266639Sbapt return 0; 4147266639Sbapt} 4148266639Sbapt_ACEOF 4149266639Sbaptrm -f conftest.$ac_objext conftest$ac_exeext 4150319349Sjkimif { (eval echo "$as_me:4150: \"$ac_link\"") >&5 4151266639Sbapt (eval $ac_link) 2>&5 4152266639Sbapt ac_status=$? 4153319349Sjkim echo "$as_me:4153: \$? = $ac_status" >&5 4154266639Sbapt (exit $ac_status); } && 4155266639Sbapt { ac_try='test -s conftest$ac_exeext' 4156319349Sjkim { (eval echo "$as_me:4156: \"$ac_try\"") >&5 4157266639Sbapt (eval $ac_try) 2>&5 4158266639Sbapt ac_status=$? 4159319349Sjkim echo "$as_me:4159: \$? = $ac_status" >&5 4160266639Sbapt (exit $ac_status); }; }; then 4161266639Sbapt eval "$as_ac_var=yes" 4162266639Sbaptelse 4163266639Sbapt echo "$as_me: failed program was:" >&5 4164266639Sbaptcat conftest.$ac_ext >&5 4165266639Sbapteval "$as_ac_var=no" 4166266639Sbaptfi 4167266639Sbaptrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4168266639Sbaptfi 4169319349Sjkimecho "$as_me:4169: result: `eval echo '${'$as_ac_var'}'`" >&5 4170266639Sbaptecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4171266639Sbaptif test `eval echo '${'$as_ac_var'}'` = yes; then 4172266639Sbapt cat >>confdefs.h <<EOF 4173266639Sbapt#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4174266639SbaptEOF 4175266639Sbapt 4176266639Sbaptfi 4177266639Sbaptdone 4178266639Sbapt 4179319349Sjkimecho "$as_me:4179: checking for maximum table size" >&5 4180264803Sbaptecho $ECHO_N "checking for maximum table size... $ECHO_C" >&6 4181264803Sbapt 4182264803Sbapt# Check whether --with-max-table-size or --without-max-table-size was given. 4183264803Sbaptif test "${with_max_table_size+set}" = set; then 4184264803Sbapt withval="$with_max_table_size" 4185264803Sbapt 4186264803Sbaptfi; 4187264803Sbaptif test -n "$with_max_table_size" 4188264803Sbaptthen 4189319349Sjkim echo "$as_me:4189: result: $with_max_table_size" >&5 4190264803Sbaptecho "${ECHO_T}$with_max_table_size" >&6 4191264803Sbapt check=`expr "$with_max_table_size" + 0` 4192264803Sbapt if test "x$check" != "x$with_max_table_size" 4193264803Sbapt then 4194319349Sjkim { { echo "$as_me:4194: error: invalid value for --with-max-table-size: $with_max_table_size" >&5 4195264803Sbaptecho "$as_me: error: invalid value for --with-max-table-size: $with_max_table_size" >&2;} 4196264803Sbapt { (exit 1); exit 1; }; } 4197264803Sbapt fi 4198264803Sbapt 4199264803Sbaptcat >>confdefs.h <<EOF 4200264803Sbapt#define MAXTABLE $with_max_table_size 4201264803SbaptEOF 4202264803Sbapt 4203264803Sbaptelse 4204319349Sjkim echo "$as_me:4204: result: default" >&5 4205264803Sbaptecho "${ECHO_T}default" >&6 4206264803Sbaptfi 4207264803Sbapt 4208319349Sjkimecho "$as_me:4208: checking if backtracking extension is wanted" >&5 4209264803Sbaptecho $ECHO_N "checking if backtracking extension is wanted... $ECHO_C" >&6 4210264803Sbapt 4211264803Sbapt# Check whether --enable-btyacc or --disable-btyacc was given. 4212264803Sbaptif test "${enable_btyacc+set}" = set; then 4213264803Sbapt enableval="$enable_btyacc" 4214264803Sbapt 4215264803Sbaptfi; 4216319349Sjkimecho "$as_me:4216: result: $enable_btyacc" >&5 4217264803Sbaptecho "${ECHO_T}$enable_btyacc" >&6 4218264803Sbaptif test "$enable_btyacc" = "yes"; then 4219264803Sbapt 4220264803Sbaptcat >>confdefs.h <<\EOF 4221264803Sbapt#define YYBTYACC 1 4222264803SbaptEOF 4223264803Sbapt 4224264803Sbapt SKELETON=btyaccpar 4225264803Sbaptelse 4226264803Sbapt SKELETON=yaccpar 4227264803Sbaptfi 4228264803Sbapt 4229234949Sbaptif ( test "$GCC" = yes || test "$GXX" = yes ) 4230234949Sbaptthen 4231319349Sjkimecho "$as_me:4231: checking if you want to check for gcc warnings" >&5 4232234949Sbaptecho $ECHO_N "checking if you want to check for gcc warnings... $ECHO_C" >&6 4233234949Sbapt 4234234949Sbapt# Check whether --with-warnings or --without-warnings was given. 4235234949Sbaptif test "${with_warnings+set}" = set; then 4236234949Sbapt withval="$with_warnings" 4237234949Sbapt cf_opt_with_warnings=$withval 4238234949Sbaptelse 4239234949Sbapt cf_opt_with_warnings=no 4240234949Sbaptfi; 4241319349Sjkimecho "$as_me:4241: result: $cf_opt_with_warnings" >&5 4242234949Sbaptecho "${ECHO_T}$cf_opt_with_warnings" >&6 4243234949Sbaptif test "$cf_opt_with_warnings" != no ; then 4244234949Sbapt 4245234949Sbaptif test "$GCC" = yes 4246234949Sbaptthen 4247234949Sbaptcat > conftest.i <<EOF 4248234949Sbapt#ifndef GCC_PRINTF 4249234949Sbapt#define GCC_PRINTF 0 4250234949Sbapt#endif 4251234949Sbapt#ifndef GCC_SCANF 4252234949Sbapt#define GCC_SCANF 0 4253234949Sbapt#endif 4254234949Sbapt#ifndef GCC_NORETURN 4255234949Sbapt#define GCC_NORETURN /* nothing */ 4256234949Sbapt#endif 4257234949Sbapt#ifndef GCC_UNUSED 4258234949Sbapt#define GCC_UNUSED /* nothing */ 4259234949Sbapt#endif 4260234949SbaptEOF 4261234949Sbaptif test "$GCC" = yes 4262234949Sbaptthen 4263319349Sjkim { echo "$as_me:4263: checking for $CC __attribute__ directives..." >&5 4264234949Sbaptecho "$as_me: checking for $CC __attribute__ directives..." >&6;} 4265234949Sbaptcat > conftest.$ac_ext <<EOF 4266319349Sjkim#line 4266 "${as_me:-configure}" 4267234949Sbapt#include "confdefs.h" 4268234949Sbapt#include "conftest.h" 4269234949Sbapt#include "conftest.i" 4270234949Sbapt#if GCC_PRINTF 4271234949Sbapt#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) 4272234949Sbapt#else 4273234949Sbapt#define GCC_PRINTFLIKE(fmt,var) /*nothing*/ 4274234949Sbapt#endif 4275234949Sbapt#if GCC_SCANF 4276234949Sbapt#define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var))) 4277234949Sbapt#else 4278234949Sbapt#define GCC_SCANFLIKE(fmt,var) /*nothing*/ 4279234949Sbapt#endif 4280234949Sbaptextern void wow(char *,...) GCC_SCANFLIKE(1,2); 4281234949Sbaptextern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN; 4282234949Sbaptextern void foo(void) GCC_NORETURN; 4283234949Sbaptint main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; } 4284234949SbaptEOF 4285234949Sbapt cf_printf_attribute=no 4286234949Sbapt cf_scanf_attribute=no 4287234949Sbapt for cf_attribute in scanf printf unused noreturn 4288234949Sbapt do 4289234949Sbapt 4290234949Sbaptcf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 4291234949Sbapt 4292234949Sbapt cf_directive="__attribute__(($cf_attribute))" 4293234949Sbapt echo "checking for $CC $cf_directive" 1>&5 4294234949Sbapt 4295296240Sjkim case $cf_attribute in 4296296240Sjkim (printf) 4297234949Sbapt cf_printf_attribute=yes 4298234949Sbapt cat >conftest.h <<EOF 4299234949Sbapt#define GCC_$cf_ATTRIBUTE 1 4300234949SbaptEOF 4301234949Sbapt ;; 4302296240Sjkim (scanf) 4303234949Sbapt cf_scanf_attribute=yes 4304234949Sbapt cat >conftest.h <<EOF 4305234949Sbapt#define GCC_$cf_ATTRIBUTE 1 4306234949SbaptEOF 4307234949Sbapt ;; 4308296240Sjkim (*) 4309234949Sbapt cat >conftest.h <<EOF 4310234949Sbapt#define GCC_$cf_ATTRIBUTE $cf_directive 4311234949SbaptEOF 4312234949Sbapt ;; 4313234949Sbapt esac 4314234949Sbapt 4315319349Sjkim if { (eval echo "$as_me:4315: \"$ac_compile\"") >&5 4316234949Sbapt (eval $ac_compile) 2>&5 4317234949Sbapt ac_status=$? 4318319349Sjkim echo "$as_me:4318: \$? = $ac_status" >&5 4319234949Sbapt (exit $ac_status); }; then 4320319349Sjkim test -n "$verbose" && echo "$as_me:4320: result: ... $cf_attribute" >&5 4321234949Sbaptecho "${ECHO_T}... $cf_attribute" >&6 4322234949Sbapt cat conftest.h >>confdefs.h 4323296240Sjkim case $cf_attribute in 4324296240Sjkim (noreturn) 4325251143Sbapt 4326251143Sbaptcat >>confdefs.h <<EOF 4327251143Sbapt#define GCC_NORETURN $cf_directive 4328251143SbaptEOF 4329251143Sbapt 4330251143Sbapt ;; 4331296240Sjkim (printf) 4332251143Sbapt cf_value='/* nothing */' 4333251143Sbapt if test "$cf_printf_attribute" != no ; then 4334251143Sbapt cf_value='__attribute__((format(printf,fmt,var)))' 4335251143Sbapt 4336251143Sbaptcat >>confdefs.h <<\EOF 4337251143Sbapt#define GCC_PRINTF 1 4338234949SbaptEOF 4339251143Sbapt 4340251143Sbapt fi 4341251143Sbapt 4342251143Sbaptcat >>confdefs.h <<EOF 4343251143Sbapt#define GCC_PRINTFLIKE(fmt,var) $cf_value 4344234949SbaptEOF 4345251143Sbapt 4346234949Sbapt ;; 4347296240Sjkim (scanf) 4348251143Sbapt cf_value='/* nothing */' 4349251143Sbapt if test "$cf_scanf_attribute" != no ; then 4350251143Sbapt cf_value='__attribute__((format(scanf,fmt,var)))' 4351251143Sbapt 4352251143Sbaptcat >>confdefs.h <<\EOF 4353251143Sbapt#define GCC_SCANF 1 4354234949SbaptEOF 4355251143Sbapt 4356251143Sbapt fi 4357251143Sbapt 4358251143Sbaptcat >>confdefs.h <<EOF 4359251143Sbapt#define GCC_SCANFLIKE(fmt,var) $cf_value 4360234949SbaptEOF 4361251143Sbapt 4362234949Sbapt ;; 4363296240Sjkim (unused) 4364251143Sbapt 4365251143Sbaptcat >>confdefs.h <<EOF 4366251143Sbapt#define GCC_UNUSED $cf_directive 4367251143SbaptEOF 4368251143Sbapt 4369251143Sbapt ;; 4370234949Sbapt esac 4371234949Sbapt fi 4372234949Sbapt done 4373234949Sbaptelse 4374234949Sbapt fgrep define conftest.i >>confdefs.h 4375234949Sbaptfi 4376234949Sbaptrm -rf conftest* 4377234949Sbaptfi 4378234949Sbapt 4379234949SbaptINTEL_COMPILER=no 4380234949Sbapt 4381234949Sbaptif test "$GCC" = yes ; then 4382234949Sbapt case $host_os in 4383296240Sjkim (linux*|gnu*) 4384319349Sjkim echo "$as_me:4384: checking if this is really Intel C compiler" >&5 4385234949Sbaptecho $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6 4386234949Sbapt cf_save_CFLAGS="$CFLAGS" 4387234949Sbapt CFLAGS="$CFLAGS -no-gcc" 4388234949Sbapt cat >conftest.$ac_ext <<_ACEOF 4389319349Sjkim#line 4389 "configure" 4390234949Sbapt#include "confdefs.h" 4391234949Sbapt 4392234949Sbaptint 4393234949Sbaptmain () 4394234949Sbapt{ 4395234949Sbapt 4396234949Sbapt#ifdef __INTEL_COMPILER 4397234949Sbapt#else 4398234949Sbaptmake an error 4399234949Sbapt#endif 4400234949Sbapt 4401234949Sbapt ; 4402234949Sbapt return 0; 4403234949Sbapt} 4404234949Sbapt_ACEOF 4405234949Sbaptrm -f conftest.$ac_objext 4406319349Sjkimif { (eval echo "$as_me:4406: \"$ac_compile\"") >&5 4407234949Sbapt (eval $ac_compile) 2>&5 4408234949Sbapt ac_status=$? 4409319349Sjkim echo "$as_me:4409: \$? = $ac_status" >&5 4410234949Sbapt (exit $ac_status); } && 4411234949Sbapt { ac_try='test -s conftest.$ac_objext' 4412319349Sjkim { (eval echo "$as_me:4412: \"$ac_try\"") >&5 4413234949Sbapt (eval $ac_try) 2>&5 4414234949Sbapt ac_status=$? 4415319349Sjkim echo "$as_me:4415: \$? = $ac_status" >&5 4416234949Sbapt (exit $ac_status); }; }; then 4417234949Sbapt INTEL_COMPILER=yes 4418264803Sbaptcf_save_CFLAGS="$cf_save_CFLAGS -we147" 4419234949Sbapt 4420234949Sbaptelse 4421234949Sbapt echo "$as_me: failed program was:" >&5 4422234949Sbaptcat conftest.$ac_ext >&5 4423234949Sbaptfi 4424234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 4425234949Sbapt CFLAGS="$cf_save_CFLAGS" 4426319349Sjkim echo "$as_me:4426: result: $INTEL_COMPILER" >&5 4427234949Sbaptecho "${ECHO_T}$INTEL_COMPILER" >&6 4428234949Sbapt ;; 4429234949Sbapt esac 4430234949Sbaptfi 4431234949Sbapt 4432251143SbaptCLANG_COMPILER=no 4433251143Sbapt 4434251143Sbaptif test "$GCC" = yes ; then 4435319349Sjkim echo "$as_me:4435: checking if this is really Clang C compiler" >&5 4436251143Sbaptecho $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6 4437251143Sbapt cf_save_CFLAGS="$CFLAGS" 4438251143Sbapt CFLAGS="$CFLAGS -Qunused-arguments" 4439251143Sbapt cat >conftest.$ac_ext <<_ACEOF 4440319349Sjkim#line 4440 "configure" 4441251143Sbapt#include "confdefs.h" 4442251143Sbapt 4443251143Sbaptint 4444251143Sbaptmain () 4445251143Sbapt{ 4446251143Sbapt 4447251143Sbapt#ifdef __clang__ 4448251143Sbapt#else 4449251143Sbaptmake an error 4450251143Sbapt#endif 4451251143Sbapt 4452251143Sbapt ; 4453251143Sbapt return 0; 4454251143Sbapt} 4455251143Sbapt_ACEOF 4456251143Sbaptrm -f conftest.$ac_objext 4457319349Sjkimif { (eval echo "$as_me:4457: \"$ac_compile\"") >&5 4458251143Sbapt (eval $ac_compile) 2>&5 4459251143Sbapt ac_status=$? 4460319349Sjkim echo "$as_me:4460: \$? = $ac_status" >&5 4461251143Sbapt (exit $ac_status); } && 4462251143Sbapt { ac_try='test -s conftest.$ac_objext' 4463319349Sjkim { (eval echo "$as_me:4463: \"$ac_try\"") >&5 4464251143Sbapt (eval $ac_try) 2>&5 4465251143Sbapt ac_status=$? 4466319349Sjkim echo "$as_me:4466: \$? = $ac_status" >&5 4467251143Sbapt (exit $ac_status); }; }; then 4468251143Sbapt CLANG_COMPILER=yes 4469251143Sbaptcf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments" 4470251143Sbapt 4471251143Sbaptelse 4472251143Sbapt echo "$as_me: failed program was:" >&5 4473251143Sbaptcat conftest.$ac_ext >&5 4474251143Sbaptfi 4475251143Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 4476251143Sbapt CFLAGS="$cf_save_CFLAGS" 4477319349Sjkim echo "$as_me:4477: result: $CLANG_COMPILER" >&5 4478251143Sbaptecho "${ECHO_T}$CLANG_COMPILER" >&6 4479251143Sbaptfi 4480251143Sbapt 4481234949Sbaptcat > conftest.$ac_ext <<EOF 4482319349Sjkim#line 4482 "${as_me:-configure}" 4483234949Sbaptint main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; } 4484234949SbaptEOF 4485234949Sbapt 4486234949Sbaptif test "$INTEL_COMPILER" = yes 4487234949Sbaptthen 4488234949Sbapt# The "-wdXXX" options suppress warnings: 4489234949Sbapt# remark #1419: external declaration in primary source file 4490234949Sbapt# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem) 4491234949Sbapt# remark #1684: conversion from pointer to same-sized integral type (potential portability problem) 4492234949Sbapt# remark #193: zero used for undefined preprocessing identifier 4493234949Sbapt# remark #593: variable "curs_sb_left_arrow" was set but never used 4494234949Sbapt# remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits 4495234949Sbapt# remark #869: parameter "tw" was never referenced 4496234949Sbapt# remark #981: operands are evaluated in unspecified order 4497234949Sbapt# warning #279: controlling expression is constant 4498234949Sbapt 4499319349Sjkim { echo "$as_me:4499: checking for $CC warning options..." >&5 4500234949Sbaptecho "$as_me: checking for $CC warning options..." >&6;} 4501234949Sbapt cf_save_CFLAGS="$CFLAGS" 4502234949Sbapt EXTRA_CFLAGS="-Wall" 4503234949Sbapt for cf_opt in \ 4504234949Sbapt wd1419 \ 4505234949Sbapt wd1683 \ 4506234949Sbapt wd1684 \ 4507234949Sbapt wd193 \ 4508234949Sbapt wd593 \ 4509234949Sbapt wd279 \ 4510234949Sbapt wd810 \ 4511234949Sbapt wd869 \ 4512234949Sbapt wd981 4513234949Sbapt do 4514234949Sbapt CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 4515319349Sjkim if { (eval echo "$as_me:4515: \"$ac_compile\"") >&5 4516234949Sbapt (eval $ac_compile) 2>&5 4517234949Sbapt ac_status=$? 4518319349Sjkim echo "$as_me:4518: \$? = $ac_status" >&5 4519234949Sbapt (exit $ac_status); }; then 4520319349Sjkim test -n "$verbose" && echo "$as_me:4520: result: ... -$cf_opt" >&5 4521234949Sbaptecho "${ECHO_T}... -$cf_opt" >&6 4522234949Sbapt EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 4523234949Sbapt fi 4524234949Sbapt done 4525234949Sbapt CFLAGS="$cf_save_CFLAGS" 4526234949Sbapt 4527234949Sbaptelif test "$GCC" = yes 4528234949Sbaptthen 4529319349Sjkim { echo "$as_me:4529: checking for $CC warning options..." >&5 4530234949Sbaptecho "$as_me: checking for $CC warning options..." >&6;} 4531234949Sbapt cf_save_CFLAGS="$CFLAGS" 4532234949Sbapt EXTRA_CFLAGS= 4533234949Sbapt cf_warn_CONST="" 4534234949Sbapt test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings" 4535260445Sbapt cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs" 4536260445Sbapt test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings= 4537234949Sbapt for cf_opt in W Wall \ 4538234949Sbapt Wbad-function-cast \ 4539234949Sbapt Wcast-align \ 4540234949Sbapt Wcast-qual \ 4541260445Sbapt Wdeclaration-after-statement \ 4542260445Sbapt Wextra \ 4543234949Sbapt Winline \ 4544234949Sbapt Wmissing-declarations \ 4545234949Sbapt Wmissing-prototypes \ 4546234949Sbapt Wnested-externs \ 4547234949Sbapt Wpointer-arith \ 4548234949Sbapt Wshadow \ 4549234949Sbapt Wstrict-prototypes \ 4550260445Sbapt Wundef $cf_gcc_warnings $cf_warn_CONST Wwrite-strings 4551234949Sbapt do 4552234949Sbapt CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 4553319349Sjkim if { (eval echo "$as_me:4553: \"$ac_compile\"") >&5 4554234949Sbapt (eval $ac_compile) 2>&5 4555234949Sbapt ac_status=$? 4556319349Sjkim echo "$as_me:4556: \$? = $ac_status" >&5 4557234949Sbapt (exit $ac_status); }; then 4558319349Sjkim test -n "$verbose" && echo "$as_me:4558: result: ... -$cf_opt" >&5 4559234949Sbaptecho "${ECHO_T}... -$cf_opt" >&6 4560296240Sjkim case $cf_opt in 4561296240Sjkim (Wcast-qual) 4562234949Sbapt CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES" 4563234949Sbapt ;; 4564296240Sjkim (Winline) 4565234949Sbapt case $GCC_VERSION in 4566296240Sjkim ([34].*) 4567234949Sbapt test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 4568234949Sbapt 4569319349Sjkimecho "${as_me:-configure}:4569: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 4570234949Sbapt 4571234949Sbapt continue;; 4572234949Sbapt esac 4573234949Sbapt ;; 4574296240Sjkim (Wpointer-arith) 4575251143Sbapt case $GCC_VERSION in 4576296240Sjkim ([12].*) 4577251143Sbapt test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 4578251143Sbapt 4579319349Sjkimecho "${as_me:-configure}:4579: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 4580251143Sbapt 4581251143Sbapt continue;; 4582251143Sbapt esac 4583251143Sbapt ;; 4584234949Sbapt esac 4585234949Sbapt EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 4586234949Sbapt fi 4587234949Sbapt done 4588234949Sbapt CFLAGS="$cf_save_CFLAGS" 4589234949Sbaptfi 4590234949Sbaptrm -rf conftest* 4591234949Sbapt 4592234949Sbaptfi 4593234949Sbaptfi 4594234949Sbapt 4595319349Sjkimecho "$as_me:4595: checking if you want to see long compiling messages" >&5 4596234949Sbaptecho $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6 4597234949Sbapt 4598234949Sbapt# Check whether --enable-echo or --disable-echo was given. 4599234949Sbaptif test "${enable_echo+set}" = set; then 4600234949Sbapt enableval="$enable_echo" 4601234949Sbapt test "$enableval" != no && enableval=yes 4602296240Sjkim if test "$enableval" != "yes" ; then 4603234949Sbapt 4604296240Sjkim ECHO_LT='--silent' 4605296240Sjkim ECHO_LD='@echo linking $@;' 4606296240Sjkim RULE_CC='@echo compiling $<' 4607296240Sjkim SHOW_CC='@echo compiling $@' 4608296240Sjkim ECHO_CC='@' 4609234949Sbapt 4610296240Sjkim else 4611234949Sbapt 4612296240Sjkim ECHO_LT='' 4613296240Sjkim ECHO_LD='' 4614296240Sjkim RULE_CC='' 4615296240Sjkim SHOW_CC='' 4616296240Sjkim ECHO_CC='' 4617234949Sbapt 4618296240Sjkim fi 4619234949Sbaptelse 4620234949Sbapt enableval=yes 4621234949Sbapt 4622296240Sjkim ECHO_LT='' 4623296240Sjkim ECHO_LD='' 4624296240Sjkim RULE_CC='' 4625296240Sjkim SHOW_CC='' 4626296240Sjkim ECHO_CC='' 4627234949Sbapt 4628234949Sbaptfi; 4629319349Sjkimecho "$as_me:4629: result: $enableval" >&5 4630234949Sbaptecho "${ECHO_T}$enableval" >&6 4631234949Sbapt 4632319349Sjkimecho "$as_me:4632: checking if you want to use dmalloc for testing" >&5 4633234949Sbaptecho $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6 4634234949Sbapt 4635234949Sbapt# Check whether --with-dmalloc or --without-dmalloc was given. 4636234949Sbaptif test "${with_dmalloc+set}" = set; then 4637234949Sbapt withval="$with_dmalloc" 4638251143Sbapt 4639251143Sbaptcat >>confdefs.h <<EOF 4640234949Sbapt#define USE_DMALLOC 1 4641234949SbaptEOF 4642234949Sbapt 4643234949Sbapt : ${with_cflags:=-g} 4644234949Sbapt : ${with_no_leaks:=yes} 4645234949Sbapt with_dmalloc=yes 4646234949Sbaptelse 4647234949Sbapt with_dmalloc= 4648234949Sbaptfi; 4649319349Sjkimecho "$as_me:4649: result: ${with_dmalloc:-no}" >&5 4650234949Sbaptecho "${ECHO_T}${with_dmalloc:-no}" >&6 4651234949Sbapt 4652296240Sjkimcase .$with_cflags in 4653296240Sjkim(.*-g*) 4654296240Sjkim case .$CFLAGS in 4655296240Sjkim (.*-g*) 4656234949Sbapt ;; 4657296240Sjkim (*) 4658234949Sbapt 4659234949Sbaptcf_fix_cppflags=no 4660234949Sbaptcf_new_cflags= 4661234949Sbaptcf_new_cppflags= 4662234949Sbaptcf_new_extra_cppflags= 4663234949Sbapt 4664234949Sbaptfor cf_add_cflags in -g 4665234949Sbaptdo 4666234949Sbaptcase $cf_fix_cppflags in 4667296240Sjkim(no) 4668296240Sjkim case $cf_add_cflags in 4669296240Sjkim (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 4670234949Sbapt case $cf_add_cflags in 4671296240Sjkim (-D*) 4672234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4673234949Sbapt 4674272655Sbapt test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4675234949Sbapt && test -z "${cf_tst_cflags}" \ 4676234949Sbapt && cf_fix_cppflags=yes 4677234949Sbapt 4678234949Sbapt if test $cf_fix_cppflags = yes ; then 4679234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4680234949Sbapt continue 4681234949Sbapt elif test "${cf_tst_cflags}" = "\"'" ; then 4682234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4683234949Sbapt continue 4684234949Sbapt fi 4685234949Sbapt ;; 4686234949Sbapt esac 4687234949Sbapt case "$CPPFLAGS" in 4688296240Sjkim (*$cf_add_cflags) 4689234949Sbapt ;; 4690296240Sjkim (*) 4691296240Sjkim case $cf_add_cflags in 4692296240Sjkim (-D*) 4693234949Sbapt cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4694234949Sbapt 4695234949SbaptCPPFLAGS=`echo "$CPPFLAGS" | \ 4696234949Sbapt sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4697234949Sbapt -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4698234949Sbapt 4699234949Sbapt ;; 4700234949Sbapt esac 4701234949Sbapt cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 4702234949Sbapt ;; 4703234949Sbapt esac 4704234949Sbapt ;; 4705296240Sjkim (*) 4706234949Sbapt cf_new_cflags="$cf_new_cflags $cf_add_cflags" 4707234949Sbapt ;; 4708234949Sbapt esac 4709234949Sbapt ;; 4710296240Sjkim(yes) 4711234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4712234949Sbapt 4713234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 4714234949Sbapt 4715272655Sbapt test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4716234949Sbapt && test -z "${cf_tst_cflags}" \ 4717234949Sbapt && cf_fix_cppflags=no 4718234949Sbapt ;; 4719234949Sbaptesac 4720234949Sbaptdone 4721234949Sbapt 4722234949Sbaptif test -n "$cf_new_cflags" ; then 4723234949Sbapt 4724234949Sbapt CFLAGS="$CFLAGS $cf_new_cflags" 4725234949Sbaptfi 4726234949Sbapt 4727234949Sbaptif test -n "$cf_new_cppflags" ; then 4728234949Sbapt 4729234949Sbapt CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 4730234949Sbaptfi 4731234949Sbapt 4732234949Sbaptif test -n "$cf_new_extra_cppflags" ; then 4733234949Sbapt 4734234949Sbapt EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 4735234949Sbaptfi 4736234949Sbapt 4737234949Sbapt ;; 4738234949Sbapt esac 4739234949Sbapt ;; 4740234949Sbaptesac 4741234949Sbapt 4742234949Sbaptif test "$with_dmalloc" = yes ; then 4743319349Sjkim echo "$as_me:4743: checking for dmalloc.h" >&5 4744234949Sbaptecho $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6 4745234949Sbaptif test "${ac_cv_header_dmalloc_h+set}" = set; then 4746234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 4747234949Sbaptelse 4748234949Sbapt cat >conftest.$ac_ext <<_ACEOF 4749319349Sjkim#line 4749 "configure" 4750234949Sbapt#include "confdefs.h" 4751234949Sbapt#include <dmalloc.h> 4752234949Sbapt_ACEOF 4753319349Sjkimif { (eval echo "$as_me:4753: \"$ac_cpp conftest.$ac_ext\"") >&5 4754234949Sbapt (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4755234949Sbapt ac_status=$? 4756234949Sbapt egrep -v '^ *\+' conftest.er1 >conftest.err 4757234949Sbapt rm -f conftest.er1 4758234949Sbapt cat conftest.err >&5 4759319349Sjkim echo "$as_me:4759: \$? = $ac_status" >&5 4760234949Sbapt (exit $ac_status); } >/dev/null; then 4761234949Sbapt if test -s conftest.err; then 4762234949Sbapt ac_cpp_err=$ac_c_preproc_warn_flag 4763234949Sbapt else 4764234949Sbapt ac_cpp_err= 4765234949Sbapt fi 4766234949Sbaptelse 4767234949Sbapt ac_cpp_err=yes 4768234949Sbaptfi 4769234949Sbaptif test -z "$ac_cpp_err"; then 4770234949Sbapt ac_cv_header_dmalloc_h=yes 4771234949Sbaptelse 4772234949Sbapt echo "$as_me: failed program was:" >&5 4773234949Sbapt cat conftest.$ac_ext >&5 4774234949Sbapt ac_cv_header_dmalloc_h=no 4775234949Sbaptfi 4776234949Sbaptrm -f conftest.err conftest.$ac_ext 4777234949Sbaptfi 4778319349Sjkimecho "$as_me:4778: result: $ac_cv_header_dmalloc_h" >&5 4779234949Sbaptecho "${ECHO_T}$ac_cv_header_dmalloc_h" >&6 4780234949Sbaptif test $ac_cv_header_dmalloc_h = yes; then 4781234949Sbapt 4782319349Sjkimecho "$as_me:4782: checking for dmalloc_debug in -ldmalloc" >&5 4783234949Sbaptecho $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6 4784234949Sbaptif test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then 4785234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 4786234949Sbaptelse 4787234949Sbapt ac_check_lib_save_LIBS=$LIBS 4788234949SbaptLIBS="-ldmalloc $LIBS" 4789234949Sbaptcat >conftest.$ac_ext <<_ACEOF 4790319349Sjkim#line 4790 "configure" 4791234949Sbapt#include "confdefs.h" 4792234949Sbapt 4793234949Sbapt/* Override any gcc2 internal prototype to avoid an error. */ 4794234949Sbapt#ifdef __cplusplus 4795234949Sbaptextern "C" 4796234949Sbapt#endif 4797234949Sbapt/* We use char because int might match the return type of a gcc2 4798234949Sbapt builtin and then its argument prototype would still apply. */ 4799234949Sbaptchar dmalloc_debug (); 4800234949Sbaptint 4801234949Sbaptmain () 4802234949Sbapt{ 4803234949Sbaptdmalloc_debug (); 4804234949Sbapt ; 4805234949Sbapt return 0; 4806234949Sbapt} 4807234949Sbapt_ACEOF 4808234949Sbaptrm -f conftest.$ac_objext conftest$ac_exeext 4809319349Sjkimif { (eval echo "$as_me:4809: \"$ac_link\"") >&5 4810234949Sbapt (eval $ac_link) 2>&5 4811234949Sbapt ac_status=$? 4812319349Sjkim echo "$as_me:4812: \$? = $ac_status" >&5 4813234949Sbapt (exit $ac_status); } && 4814234949Sbapt { ac_try='test -s conftest$ac_exeext' 4815319349Sjkim { (eval echo "$as_me:4815: \"$ac_try\"") >&5 4816234949Sbapt (eval $ac_try) 2>&5 4817234949Sbapt ac_status=$? 4818319349Sjkim echo "$as_me:4818: \$? = $ac_status" >&5 4819234949Sbapt (exit $ac_status); }; }; then 4820234949Sbapt ac_cv_lib_dmalloc_dmalloc_debug=yes 4821234949Sbaptelse 4822234949Sbapt echo "$as_me: failed program was:" >&5 4823234949Sbaptcat conftest.$ac_ext >&5 4824234949Sbaptac_cv_lib_dmalloc_dmalloc_debug=no 4825234949Sbaptfi 4826234949Sbaptrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4827234949SbaptLIBS=$ac_check_lib_save_LIBS 4828234949Sbaptfi 4829319349Sjkimecho "$as_me:4829: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5 4830234949Sbaptecho "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6 4831234949Sbaptif test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then 4832234949Sbapt cat >>confdefs.h <<EOF 4833234949Sbapt#define HAVE_LIBDMALLOC 1 4834234949SbaptEOF 4835234949Sbapt 4836234949Sbapt LIBS="-ldmalloc $LIBS" 4837234949Sbapt 4838234949Sbaptfi 4839234949Sbapt 4840234949Sbaptfi 4841234949Sbapt 4842234949Sbaptfi 4843234949Sbapt 4844319349Sjkimecho "$as_me:4844: checking if you want to use dbmalloc for testing" >&5 4845234949Sbaptecho $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6 4846234949Sbapt 4847234949Sbapt# Check whether --with-dbmalloc or --without-dbmalloc was given. 4848234949Sbaptif test "${with_dbmalloc+set}" = set; then 4849234949Sbapt withval="$with_dbmalloc" 4850251143Sbapt 4851251143Sbaptcat >>confdefs.h <<EOF 4852234949Sbapt#define USE_DBMALLOC 1 4853234949SbaptEOF 4854234949Sbapt 4855234949Sbapt : ${with_cflags:=-g} 4856234949Sbapt : ${with_no_leaks:=yes} 4857234949Sbapt with_dbmalloc=yes 4858234949Sbaptelse 4859234949Sbapt with_dbmalloc= 4860234949Sbaptfi; 4861319349Sjkimecho "$as_me:4861: result: ${with_dbmalloc:-no}" >&5 4862234949Sbaptecho "${ECHO_T}${with_dbmalloc:-no}" >&6 4863234949Sbapt 4864296240Sjkimcase .$with_cflags in 4865296240Sjkim(.*-g*) 4866296240Sjkim case .$CFLAGS in 4867296240Sjkim (.*-g*) 4868234949Sbapt ;; 4869296240Sjkim (*) 4870234949Sbapt 4871234949Sbaptcf_fix_cppflags=no 4872234949Sbaptcf_new_cflags= 4873234949Sbaptcf_new_cppflags= 4874234949Sbaptcf_new_extra_cppflags= 4875234949Sbapt 4876234949Sbaptfor cf_add_cflags in -g 4877234949Sbaptdo 4878234949Sbaptcase $cf_fix_cppflags in 4879296240Sjkim(no) 4880296240Sjkim case $cf_add_cflags in 4881296240Sjkim (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 4882234949Sbapt case $cf_add_cflags in 4883296240Sjkim (-D*) 4884234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4885234949Sbapt 4886272655Sbapt test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4887234949Sbapt && test -z "${cf_tst_cflags}" \ 4888234949Sbapt && cf_fix_cppflags=yes 4889234949Sbapt 4890234949Sbapt if test $cf_fix_cppflags = yes ; then 4891234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4892234949Sbapt continue 4893234949Sbapt elif test "${cf_tst_cflags}" = "\"'" ; then 4894234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4895234949Sbapt continue 4896234949Sbapt fi 4897234949Sbapt ;; 4898234949Sbapt esac 4899234949Sbapt case "$CPPFLAGS" in 4900296240Sjkim (*$cf_add_cflags) 4901234949Sbapt ;; 4902296240Sjkim (*) 4903296240Sjkim case $cf_add_cflags in 4904296240Sjkim (-D*) 4905234949Sbapt cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4906234949Sbapt 4907234949SbaptCPPFLAGS=`echo "$CPPFLAGS" | \ 4908234949Sbapt sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4909234949Sbapt -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4910234949Sbapt 4911234949Sbapt ;; 4912234949Sbapt esac 4913234949Sbapt cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 4914234949Sbapt ;; 4915234949Sbapt esac 4916234949Sbapt ;; 4917296240Sjkim (*) 4918234949Sbapt cf_new_cflags="$cf_new_cflags $cf_add_cflags" 4919234949Sbapt ;; 4920234949Sbapt esac 4921234949Sbapt ;; 4922296240Sjkim(yes) 4923234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4924234949Sbapt 4925234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 4926234949Sbapt 4927272655Sbapt test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4928234949Sbapt && test -z "${cf_tst_cflags}" \ 4929234949Sbapt && cf_fix_cppflags=no 4930234949Sbapt ;; 4931234949Sbaptesac 4932234949Sbaptdone 4933234949Sbapt 4934234949Sbaptif test -n "$cf_new_cflags" ; then 4935234949Sbapt 4936234949Sbapt CFLAGS="$CFLAGS $cf_new_cflags" 4937234949Sbaptfi 4938234949Sbapt 4939234949Sbaptif test -n "$cf_new_cppflags" ; then 4940234949Sbapt 4941234949Sbapt CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 4942234949Sbaptfi 4943234949Sbapt 4944234949Sbaptif test -n "$cf_new_extra_cppflags" ; then 4945234949Sbapt 4946234949Sbapt EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 4947234949Sbaptfi 4948234949Sbapt 4949234949Sbapt ;; 4950234949Sbapt esac 4951234949Sbapt ;; 4952234949Sbaptesac 4953234949Sbapt 4954234949Sbaptif test "$with_dbmalloc" = yes ; then 4955319349Sjkim echo "$as_me:4955: checking for dbmalloc.h" >&5 4956234949Sbaptecho $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6 4957234949Sbaptif test "${ac_cv_header_dbmalloc_h+set}" = set; then 4958234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 4959234949Sbaptelse 4960234949Sbapt cat >conftest.$ac_ext <<_ACEOF 4961319349Sjkim#line 4961 "configure" 4962234949Sbapt#include "confdefs.h" 4963234949Sbapt#include <dbmalloc.h> 4964234949Sbapt_ACEOF 4965319349Sjkimif { (eval echo "$as_me:4965: \"$ac_cpp conftest.$ac_ext\"") >&5 4966234949Sbapt (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4967234949Sbapt ac_status=$? 4968234949Sbapt egrep -v '^ *\+' conftest.er1 >conftest.err 4969234949Sbapt rm -f conftest.er1 4970234949Sbapt cat conftest.err >&5 4971319349Sjkim echo "$as_me:4971: \$? = $ac_status" >&5 4972234949Sbapt (exit $ac_status); } >/dev/null; then 4973234949Sbapt if test -s conftest.err; then 4974234949Sbapt ac_cpp_err=$ac_c_preproc_warn_flag 4975234949Sbapt else 4976234949Sbapt ac_cpp_err= 4977234949Sbapt fi 4978234949Sbaptelse 4979234949Sbapt ac_cpp_err=yes 4980234949Sbaptfi 4981234949Sbaptif test -z "$ac_cpp_err"; then 4982234949Sbapt ac_cv_header_dbmalloc_h=yes 4983234949Sbaptelse 4984234949Sbapt echo "$as_me: failed program was:" >&5 4985234949Sbapt cat conftest.$ac_ext >&5 4986234949Sbapt ac_cv_header_dbmalloc_h=no 4987234949Sbaptfi 4988234949Sbaptrm -f conftest.err conftest.$ac_ext 4989234949Sbaptfi 4990319349Sjkimecho "$as_me:4990: result: $ac_cv_header_dbmalloc_h" >&5 4991234949Sbaptecho "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6 4992234949Sbaptif test $ac_cv_header_dbmalloc_h = yes; then 4993234949Sbapt 4994319349Sjkimecho "$as_me:4994: checking for debug_malloc in -ldbmalloc" >&5 4995234949Sbaptecho $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6 4996234949Sbaptif test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then 4997234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 4998234949Sbaptelse 4999234949Sbapt ac_check_lib_save_LIBS=$LIBS 5000234949SbaptLIBS="-ldbmalloc $LIBS" 5001234949Sbaptcat >conftest.$ac_ext <<_ACEOF 5002319349Sjkim#line 5002 "configure" 5003234949Sbapt#include "confdefs.h" 5004234949Sbapt 5005234949Sbapt/* Override any gcc2 internal prototype to avoid an error. */ 5006234949Sbapt#ifdef __cplusplus 5007234949Sbaptextern "C" 5008234949Sbapt#endif 5009234949Sbapt/* We use char because int might match the return type of a gcc2 5010234949Sbapt builtin and then its argument prototype would still apply. */ 5011234949Sbaptchar debug_malloc (); 5012234949Sbaptint 5013234949Sbaptmain () 5014234949Sbapt{ 5015234949Sbaptdebug_malloc (); 5016234949Sbapt ; 5017234949Sbapt return 0; 5018234949Sbapt} 5019234949Sbapt_ACEOF 5020234949Sbaptrm -f conftest.$ac_objext conftest$ac_exeext 5021319349Sjkimif { (eval echo "$as_me:5021: \"$ac_link\"") >&5 5022234949Sbapt (eval $ac_link) 2>&5 5023234949Sbapt ac_status=$? 5024319349Sjkim echo "$as_me:5024: \$? = $ac_status" >&5 5025234949Sbapt (exit $ac_status); } && 5026234949Sbapt { ac_try='test -s conftest$ac_exeext' 5027319349Sjkim { (eval echo "$as_me:5027: \"$ac_try\"") >&5 5028234949Sbapt (eval $ac_try) 2>&5 5029234949Sbapt ac_status=$? 5030319349Sjkim echo "$as_me:5030: \$? = $ac_status" >&5 5031234949Sbapt (exit $ac_status); }; }; then 5032234949Sbapt ac_cv_lib_dbmalloc_debug_malloc=yes 5033234949Sbaptelse 5034234949Sbapt echo "$as_me: failed program was:" >&5 5035234949Sbaptcat conftest.$ac_ext >&5 5036234949Sbaptac_cv_lib_dbmalloc_debug_malloc=no 5037234949Sbaptfi 5038234949Sbaptrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5039234949SbaptLIBS=$ac_check_lib_save_LIBS 5040234949Sbaptfi 5041319349Sjkimecho "$as_me:5041: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5 5042234949Sbaptecho "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6 5043234949Sbaptif test $ac_cv_lib_dbmalloc_debug_malloc = yes; then 5044234949Sbapt cat >>confdefs.h <<EOF 5045234949Sbapt#define HAVE_LIBDBMALLOC 1 5046234949SbaptEOF 5047234949Sbapt 5048234949Sbapt LIBS="-ldbmalloc $LIBS" 5049234949Sbapt 5050234949Sbaptfi 5051234949Sbapt 5052234949Sbaptfi 5053234949Sbapt 5054234949Sbaptfi 5055234949Sbapt 5056319349Sjkimecho "$as_me:5056: checking if you want to use valgrind for testing" >&5 5057234949Sbaptecho $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6 5058234949Sbapt 5059234949Sbapt# Check whether --with-valgrind or --without-valgrind was given. 5060234949Sbaptif test "${with_valgrind+set}" = set; then 5061234949Sbapt withval="$with_valgrind" 5062251143Sbapt 5063251143Sbaptcat >>confdefs.h <<EOF 5064234949Sbapt#define USE_VALGRIND 1 5065234949SbaptEOF 5066234949Sbapt 5067234949Sbapt : ${with_cflags:=-g} 5068234949Sbapt : ${with_no_leaks:=yes} 5069234949Sbapt with_valgrind=yes 5070234949Sbaptelse 5071234949Sbapt with_valgrind= 5072234949Sbaptfi; 5073319349Sjkimecho "$as_me:5073: result: ${with_valgrind:-no}" >&5 5074234949Sbaptecho "${ECHO_T}${with_valgrind:-no}" >&6 5075234949Sbapt 5076296240Sjkimcase .$with_cflags in 5077296240Sjkim(.*-g*) 5078296240Sjkim case .$CFLAGS in 5079296240Sjkim (.*-g*) 5080234949Sbapt ;; 5081296240Sjkim (*) 5082234949Sbapt 5083234949Sbaptcf_fix_cppflags=no 5084234949Sbaptcf_new_cflags= 5085234949Sbaptcf_new_cppflags= 5086234949Sbaptcf_new_extra_cppflags= 5087234949Sbapt 5088234949Sbaptfor cf_add_cflags in -g 5089234949Sbaptdo 5090234949Sbaptcase $cf_fix_cppflags in 5091296240Sjkim(no) 5092296240Sjkim case $cf_add_cflags in 5093296240Sjkim (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) 5094234949Sbapt case $cf_add_cflags in 5095296240Sjkim (-D*) 5096234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 5097234949Sbapt 5098272655Sbapt test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 5099234949Sbapt && test -z "${cf_tst_cflags}" \ 5100234949Sbapt && cf_fix_cppflags=yes 5101234949Sbapt 5102234949Sbapt if test $cf_fix_cppflags = yes ; then 5103234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 5104234949Sbapt continue 5105234949Sbapt elif test "${cf_tst_cflags}" = "\"'" ; then 5106234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 5107234949Sbapt continue 5108234949Sbapt fi 5109234949Sbapt ;; 5110234949Sbapt esac 5111234949Sbapt case "$CPPFLAGS" in 5112296240Sjkim (*$cf_add_cflags) 5113234949Sbapt ;; 5114296240Sjkim (*) 5115296240Sjkim case $cf_add_cflags in 5116296240Sjkim (-D*) 5117234949Sbapt cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 5118234949Sbapt 5119234949SbaptCPPFLAGS=`echo "$CPPFLAGS" | \ 5120234949Sbapt sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 5121234949Sbapt -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 5122234949Sbapt 5123234949Sbapt ;; 5124234949Sbapt esac 5125234949Sbapt cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 5126234949Sbapt ;; 5127234949Sbapt esac 5128234949Sbapt ;; 5129296240Sjkim (*) 5130234949Sbapt cf_new_cflags="$cf_new_cflags $cf_add_cflags" 5131234949Sbapt ;; 5132234949Sbapt esac 5133234949Sbapt ;; 5134296240Sjkim(yes) 5135234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 5136234949Sbapt 5137234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 5138234949Sbapt 5139272655Sbapt test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 5140234949Sbapt && test -z "${cf_tst_cflags}" \ 5141234949Sbapt && cf_fix_cppflags=no 5142234949Sbapt ;; 5143234949Sbaptesac 5144234949Sbaptdone 5145234949Sbapt 5146234949Sbaptif test -n "$cf_new_cflags" ; then 5147234949Sbapt 5148234949Sbapt CFLAGS="$CFLAGS $cf_new_cflags" 5149234949Sbaptfi 5150234949Sbapt 5151234949Sbaptif test -n "$cf_new_cppflags" ; then 5152234949Sbapt 5153234949Sbapt CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 5154234949Sbaptfi 5155234949Sbapt 5156234949Sbaptif test -n "$cf_new_extra_cppflags" ; then 5157234949Sbapt 5158234949Sbapt EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 5159234949Sbaptfi 5160234949Sbapt 5161234949Sbapt ;; 5162234949Sbapt esac 5163234949Sbapt ;; 5164234949Sbaptesac 5165234949Sbapt 5166319349Sjkimecho "$as_me:5166: checking if you want to perform memory-leak testing" >&5 5167234949Sbaptecho $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6 5168234949Sbapt 5169234949Sbapt# Check whether --enable-leaks or --disable-leaks was given. 5170234949Sbaptif test "${enable_leaks+set}" = set; then 5171234949Sbapt enableval="$enable_leaks" 5172234949Sbapt if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi 5173234949Sbaptelse 5174234949Sbapt : ${with_no_leaks:=no} 5175234949Sbaptfi; 5176319349Sjkimecho "$as_me:5176: result: $with_no_leaks" >&5 5177234949Sbaptecho "${ECHO_T}$with_no_leaks" >&6 5178234949Sbapt 5179234949Sbaptif test "$with_no_leaks" = yes ; then 5180251143Sbapt 5181251143Sbaptcat >>confdefs.h <<\EOF 5182234949Sbapt#define NO_LEAKS 1 5183234949SbaptEOF 5184234949Sbapt 5185251143Sbaptcat >>confdefs.h <<\EOF 5186234949Sbapt#define YY_NO_LEAKS 1 5187234949SbaptEOF 5188234949Sbapt 5189234949Sbaptfi 5190234949Sbapt 5191296240Sjkim# Extract the first word of "groff", so it can be a program name with args. 5192296240Sjkimset dummy groff; ac_word=$2 5193319349Sjkimecho "$as_me:5193: checking for $ac_word" >&5 5194296240Sjkimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5195296240Sjkimif test "${ac_cv_path_GROFF_PATH+set}" = set; then 5196296240Sjkim echo $ECHO_N "(cached) $ECHO_C" >&6 5197296240Sjkimelse 5198296240Sjkim case $GROFF_PATH in 5199296240Sjkim [\\/]* | ?:[\\/]*) 5200296240Sjkim ac_cv_path_GROFF_PATH="$GROFF_PATH" # Let the user override the test with a path. 5201296240Sjkim ;; 5202296240Sjkim *) 5203296240Sjkim ac_save_IFS=$IFS; IFS=$ac_path_separator 5204296240Sjkimac_dummy="$PATH" 5205296240Sjkimfor ac_dir in $ac_dummy; do 5206296240Sjkim IFS=$ac_save_IFS 5207296240Sjkim test -z "$ac_dir" && ac_dir=. 5208296240Sjkim if $as_executable_p "$ac_dir/$ac_word"; then 5209296240Sjkim ac_cv_path_GROFF_PATH="$ac_dir/$ac_word" 5210319349Sjkim echo "$as_me:5210: found $ac_dir/$ac_word" >&5 5211296240Sjkim break 5212296240Sjkimfi 5213296240Sjkimdone 5214296240Sjkim 5215296240Sjkim test -z "$ac_cv_path_GROFF_PATH" && ac_cv_path_GROFF_PATH="no" 5216296240Sjkim ;; 5217296240Sjkimesac 5218296240Sjkimfi 5219296240SjkimGROFF_PATH=$ac_cv_path_GROFF_PATH 5220296240Sjkim 5221296240Sjkimif test -n "$GROFF_PATH"; then 5222319349Sjkim echo "$as_me:5222: result: $GROFF_PATH" >&5 5223296240Sjkimecho "${ECHO_T}$GROFF_PATH" >&6 5224296240Sjkimelse 5225319349Sjkim echo "$as_me:5225: result: no" >&5 5226296240Sjkimecho "${ECHO_T}no" >&6 5227296240Sjkimfi 5228296240Sjkim 5229296240Sjkim# Extract the first word of "nroff", so it can be a program name with args. 5230296240Sjkimset dummy nroff; ac_word=$2 5231319349Sjkimecho "$as_me:5231: checking for $ac_word" >&5 5232296240Sjkimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5233296240Sjkimif test "${ac_cv_path_NROFF_PATH+set}" = set; then 5234296240Sjkim echo $ECHO_N "(cached) $ECHO_C" >&6 5235296240Sjkimelse 5236296240Sjkim case $NROFF_PATH in 5237296240Sjkim [\\/]* | ?:[\\/]*) 5238296240Sjkim ac_cv_path_NROFF_PATH="$NROFF_PATH" # Let the user override the test with a path. 5239296240Sjkim ;; 5240296240Sjkim *) 5241296240Sjkim ac_save_IFS=$IFS; IFS=$ac_path_separator 5242296240Sjkimac_dummy="$PATH" 5243296240Sjkimfor ac_dir in $ac_dummy; do 5244296240Sjkim IFS=$ac_save_IFS 5245296240Sjkim test -z "$ac_dir" && ac_dir=. 5246296240Sjkim if $as_executable_p "$ac_dir/$ac_word"; then 5247296240Sjkim ac_cv_path_NROFF_PATH="$ac_dir/$ac_word" 5248319349Sjkim echo "$as_me:5248: found $ac_dir/$ac_word" >&5 5249296240Sjkim break 5250296240Sjkimfi 5251296240Sjkimdone 5252296240Sjkim 5253296240Sjkim test -z "$ac_cv_path_NROFF_PATH" && ac_cv_path_NROFF_PATH="no" 5254296240Sjkim ;; 5255296240Sjkimesac 5256296240Sjkimfi 5257296240SjkimNROFF_PATH=$ac_cv_path_NROFF_PATH 5258296240Sjkim 5259296240Sjkimif test -n "$NROFF_PATH"; then 5260319349Sjkim echo "$as_me:5260: result: $NROFF_PATH" >&5 5261296240Sjkimecho "${ECHO_T}$NROFF_PATH" >&6 5262296240Sjkimelse 5263319349Sjkim echo "$as_me:5263: result: no" >&5 5264296240Sjkimecho "${ECHO_T}no" >&6 5265296240Sjkimfi 5266296240Sjkim 5267296240Sjkimif test "x$GROFF_PATH" = xno 5268296240Sjkimthen 5269296240Sjkim NROFF_NOTE= 5270296240Sjkim GROFF_NOTE="#" 5271296240Sjkimelse 5272296240Sjkim NROFF_NOTE="#" 5273296240Sjkim GROFF_NOTE= 5274296240Sjkimfi 5275296240Sjkim 5276319349Sjkimecho "$as_me:5276: checking for program to convert manpage to html" >&5 5277296240Sjkimecho $ECHO_N "checking for program to convert manpage to html... $ECHO_C" >&6 5278296240Sjkim 5279296240Sjkim# Check whether --with-man2html or --without-man2html was given. 5280296240Sjkimif test "${with_man2html+set}" = set; then 5281296240Sjkim withval="$with_man2html" 5282296240Sjkim cf_man2html=$withval 5283296240Sjkimelse 5284296240Sjkim cf_man2html=$GROFF_PATH 5285296240Sjkimfi; 5286296240Sjkim 5287296240Sjkimcf_with_groff=no 5288296240Sjkim 5289296240Sjkimcase $cf_man2html in 5290296240Sjkim(yes) 5291319349Sjkim echo "$as_me:5291: result: man2html" >&5 5292296240Sjkimecho "${ECHO_T}man2html" >&6 5293296240Sjkim # Extract the first word of "man2html", so it can be a program name with args. 5294296240Sjkimset dummy man2html; ac_word=$2 5295319349Sjkimecho "$as_me:5295: checking for $ac_word" >&5 5296296240Sjkimecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5297296240Sjkimif test "${ac_cv_path_cf_man2html+set}" = set; then 5298296240Sjkim echo $ECHO_N "(cached) $ECHO_C" >&6 5299296240Sjkimelse 5300296240Sjkim case $cf_man2html in 5301296240Sjkim [\\/]* | ?:[\\/]*) 5302296240Sjkim ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path. 5303296240Sjkim ;; 5304296240Sjkim *) 5305296240Sjkim ac_save_IFS=$IFS; IFS=$ac_path_separator 5306296240Sjkimac_dummy="$PATH" 5307296240Sjkimfor ac_dir in $ac_dummy; do 5308296240Sjkim IFS=$ac_save_IFS 5309296240Sjkim test -z "$ac_dir" && ac_dir=. 5310296240Sjkim if $as_executable_p "$ac_dir/$ac_word"; then 5311296240Sjkim ac_cv_path_cf_man2html="$ac_dir/$ac_word" 5312319349Sjkim echo "$as_me:5312: found $ac_dir/$ac_word" >&5 5313296240Sjkim break 5314296240Sjkimfi 5315296240Sjkimdone 5316296240Sjkim 5317296240Sjkim test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no" 5318296240Sjkim ;; 5319296240Sjkimesac 5320296240Sjkimfi 5321296240Sjkimcf_man2html=$ac_cv_path_cf_man2html 5322296240Sjkim 5323296240Sjkimif test -n "$cf_man2html"; then 5324319349Sjkim echo "$as_me:5324: result: $cf_man2html" >&5 5325296240Sjkimecho "${ECHO_T}$cf_man2html" >&6 5326296240Sjkimelse 5327319349Sjkim echo "$as_me:5327: result: no" >&5 5328296240Sjkimecho "${ECHO_T}no" >&6 5329296240Sjkimfi 5330296240Sjkim 5331296240Sjkim ;; 5332296240Sjkim(no|groff|*/groff*) 5333296240Sjkim cf_with_groff=yes 5334296240Sjkim cf_man2html=$GROFF_PATH 5335319349Sjkim echo "$as_me:5335: result: $cf_man2html" >&5 5336296240Sjkimecho "${ECHO_T}$cf_man2html" >&6 5337296240Sjkim ;; 5338296240Sjkim(*) 5339319349Sjkim echo "$as_me:5339: result: $cf_man2html" >&5 5340296240Sjkimecho "${ECHO_T}$cf_man2html" >&6 5341296240Sjkim ;; 5342296240Sjkimesac 5343296240Sjkim 5344296240SjkimMAN2HTML_TEMP="man2html.tmp" 5345296240Sjkim cat >$MAN2HTML_TEMP <<CF_EOF 5346319297Sdelphij#!$SHELL 5347296240Sjkim# Temporary script generated by CF_WITH_MAN2HTML 5348296240Sjkim# Convert inputs to html, sending result to standard output. 5349296240Sjkim# 5350296240Sjkim# Parameters: 5351296240Sjkim# \${1} = rootname of file to convert 5352296240Sjkim# \${2} = suffix of file to convert, e.g., "1" 5353296240Sjkim# \${3} = macros to use, e.g., "man" 5354296240Sjkim# 5355296240SjkimROOT=\$1 5356296240SjkimTYPE=\$2 5357296240SjkimMACS=\$3 5358296240Sjkim 5359296240Sjkimunset LANG 5360296240Sjkimunset LC_ALL 5361296240Sjkimunset LC_CTYPE 5362296240Sjkimunset LANGUAGE 5363296240SjkimGROFF_NO_SGR=stupid 5364296240Sjkimexport GROFF_NO_SGR 5365296240Sjkim 5366296240SjkimCF_EOF 5367296240Sjkim 5368296240Sjkimif test "x$cf_with_groff" = xyes 5369296240Sjkimthen 5370296240Sjkim MAN2HTML_NOTE="$GROFF_NOTE" 5371296240Sjkim MAN2HTML_PATH="$GROFF_PATH" 5372296240Sjkim cat >>$MAN2HTML_TEMP <<CF_EOF 5373319297Sdelphij$SHELL -c "tbl \${ROOT}.\${TYPE} | $GROFF_PATH -P -o0 -I\${ROOT}_ -Thtml -\${MACS}" 5374296240SjkimCF_EOF 5375296240Sjkimelse 5376296240Sjkim MAN2HTML_NOTE="" 5377296240Sjkim 5378296240Sjkimif test "x$prefix" != xNONE; then 5379296240Sjkim cf_path_syntax="$prefix" 5380296240Sjkimelse 5381296240Sjkim cf_path_syntax="$ac_default_prefix" 5382296240Sjkimfi 5383296240Sjkim 5384296240Sjkimcase ".$cf_man2html" in 5385296240Sjkim(.\$\(*\)*|.\'*\'*) 5386296240Sjkim ;; 5387296240Sjkim(..|./*|.\\*) 5388296240Sjkim ;; 5389296240Sjkim(.[a-zA-Z]:[\\/]*) # OS/2 EMX 5390296240Sjkim ;; 5391296240Sjkim(.\${*prefix}*|.\${*dir}*) 5392296240Sjkim eval cf_man2html="$cf_man2html" 5393296240Sjkim case ".$cf_man2html" in 5394296240Sjkim (.NONE/*) 5395296240Sjkim cf_man2html=`echo $cf_man2html | sed -e s%NONE%$cf_path_syntax%` 5396296240Sjkim ;; 5397296240Sjkim esac 5398296240Sjkim ;; 5399296240Sjkim(.no|.NONE/*) 5400296240Sjkim cf_man2html=`echo $cf_man2html | sed -e s%NONE%$cf_path_syntax%` 5401296240Sjkim ;; 5402296240Sjkim(*) 5403319349Sjkim { { echo "$as_me:5403: error: expected a pathname, not \"$cf_man2html\"" >&5 5404296240Sjkimecho "$as_me: error: expected a pathname, not \"$cf_man2html\"" >&2;} 5405296240Sjkim { (exit 1); exit 1; }; } 5406296240Sjkim ;; 5407296240Sjkimesac 5408296240Sjkim 5409296240Sjkim MAN2HTML_PATH="$cf_man2html" 5410319349Sjkim echo "$as_me:5410: checking for $cf_man2html top/bottom margins" >&5 5411296240Sjkimecho $ECHO_N "checking for $cf_man2html top/bottom margins... $ECHO_C" >&6 5412296240Sjkim 5413296240Sjkim # for this example, expect 3 lines of content, the remainder is head/foot 5414296240Sjkim cat >conftest.in <<CF_EOF 5415296240Sjkim.TH HEAD1 HEAD2 HEAD3 HEAD4 HEAD5 5416296240Sjkim.SH SECTION 5417296240SjkimMARKER 5418296240SjkimCF_EOF 5419296240Sjkim 5420296240Sjkim LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C nroff -man conftest.in >conftest.out 5421296240Sjkim 5422296240Sjkim cf_man2html_1st=`fgrep -n MARKER conftest.out |sed -e 's/^[^0-9]*://' -e 's/:.*//'` 5423296240Sjkim cf_man2html_top=`expr $cf_man2html_1st - 2` 5424296240Sjkim cf_man2html_bot=`wc -l conftest.out |sed -e 's/[^0-9]//g'` 5425296240Sjkim cf_man2html_bot=`expr $cf_man2html_bot - 2 - $cf_man2html_top` 5426296240Sjkim cf_man2html_top_bot="-topm=$cf_man2html_top -botm=$cf_man2html_bot" 5427296240Sjkim 5428319349Sjkim echo "$as_me:5428: result: $cf_man2html_top_bot" >&5 5429296240Sjkimecho "${ECHO_T}$cf_man2html_top_bot" >&6 5430296240Sjkim 5431319349Sjkim echo "$as_me:5431: checking for pagesize to use" >&5 5432296240Sjkimecho $ECHO_N "checking for pagesize to use... $ECHO_C" >&6 5433296240Sjkim for cf_block in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 5434296240Sjkim do 5435296240Sjkim cat >>conftest.in <<CF_EOF 5436296240Sjkim.nf 5437296240Sjkim0 5438296240Sjkim1 5439296240Sjkim2 5440296240Sjkim3 5441296240Sjkim4 5442296240Sjkim5 5443296240Sjkim6 5444296240Sjkim7 5445296240Sjkim8 5446296240Sjkim9 5447296240SjkimCF_EOF 5448296240Sjkim done 5449296240Sjkim 5450296240Sjkim LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C nroff -man conftest.in >conftest.out 5451296240Sjkim cf_man2html_page=`fgrep -n HEAD1 conftest.out |tail -n 1 |sed -e 's/^[^0-9]*://' -e 's/:.*//'` 5452296240Sjkim test -z "$cf_man2html_page" && cf_man2html_page=99999 5453296240Sjkim test "$cf_man2html_page" -gt 100 && cf_man2html_page=99999 5454296240Sjkim 5455296240Sjkim rm -rf conftest* 5456319349Sjkim echo "$as_me:5456: result: $cf_man2html_page" >&5 5457296240Sjkimecho "${ECHO_T}$cf_man2html_page" >&6 5458296240Sjkim 5459296240Sjkim cat >>$MAN2HTML_TEMP <<CF_EOF 5460296240Sjkim: \${MAN2HTML_PATH=$MAN2HTML_PATH} 5461296240SjkimMAN2HTML_OPTS="\$MAN2HTML_OPTS -index -title="\$ROOT\(\$TYPE\)" -compress -pgsize $cf_man2html_page" 5462296240Sjkimcase \${TYPE} in 5463296240Sjkim(ms) 5464296240Sjkim tbl \${ROOT}.\${TYPE} | nroff -\${MACS} | \$MAN2HTML_PATH -topm=0 -botm=0 \$MAN2HTML_OPTS 5465296240Sjkim ;; 5466296240Sjkim(*) 5467296240Sjkim tbl \${ROOT}.\${TYPE} | nroff -\${MACS} | \$MAN2HTML_PATH $cf_man2html_top_bot \$MAN2HTML_OPTS 5468296240Sjkim ;; 5469296240Sjkimesac 5470296240SjkimCF_EOF 5471296240Sjkimfi 5472296240Sjkim 5473296240Sjkimchmod 700 $MAN2HTML_TEMP 5474296240Sjkim 5475319349Sjkimecho "$as_me:5475: checking for ANSI C header files" >&5 5476272769Sbaptecho $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 5477272769Sbaptif test "${ac_cv_header_stdc+set}" = set; then 5478272769Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 5479272769Sbaptelse 5480272769Sbapt cat >conftest.$ac_ext <<_ACEOF 5481319349Sjkim#line 5481 "configure" 5482272769Sbapt#include "confdefs.h" 5483272769Sbapt#include <stdlib.h> 5484272769Sbapt#include <stdarg.h> 5485272769Sbapt#include <string.h> 5486272769Sbapt#include <float.h> 5487272769Sbapt 5488272769Sbapt_ACEOF 5489319349Sjkimif { (eval echo "$as_me:5489: \"$ac_cpp conftest.$ac_ext\"") >&5 5490272769Sbapt (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5491272769Sbapt ac_status=$? 5492272769Sbapt egrep -v '^ *\+' conftest.er1 >conftest.err 5493272769Sbapt rm -f conftest.er1 5494272769Sbapt cat conftest.err >&5 5495319349Sjkim echo "$as_me:5495: \$? = $ac_status" >&5 5496272769Sbapt (exit $ac_status); } >/dev/null; then 5497272769Sbapt if test -s conftest.err; then 5498272769Sbapt ac_cpp_err=$ac_c_preproc_warn_flag 5499272769Sbapt else 5500272769Sbapt ac_cpp_err= 5501272769Sbapt fi 5502272769Sbaptelse 5503272769Sbapt ac_cpp_err=yes 5504272769Sbaptfi 5505272769Sbaptif test -z "$ac_cpp_err"; then 5506272769Sbapt ac_cv_header_stdc=yes 5507272769Sbaptelse 5508272769Sbapt echo "$as_me: failed program was:" >&5 5509272769Sbapt cat conftest.$ac_ext >&5 5510272769Sbapt ac_cv_header_stdc=no 5511272769Sbaptfi 5512272769Sbaptrm -f conftest.err conftest.$ac_ext 5513272769Sbapt 5514272769Sbaptif test $ac_cv_header_stdc = yes; then 5515272769Sbapt # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5516272769Sbapt cat >conftest.$ac_ext <<_ACEOF 5517319349Sjkim#line 5517 "configure" 5518272769Sbapt#include "confdefs.h" 5519272769Sbapt#include <string.h> 5520272769Sbapt 5521272769Sbapt_ACEOF 5522272769Sbaptif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5523272769Sbapt egrep "memchr" >/dev/null 2>&1; then 5524272769Sbapt : 5525272769Sbaptelse 5526272769Sbapt ac_cv_header_stdc=no 5527272769Sbaptfi 5528272769Sbaptrm -rf conftest* 5529272769Sbapt 5530272769Sbaptfi 5531272769Sbapt 5532272769Sbaptif test $ac_cv_header_stdc = yes; then 5533272769Sbapt # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5534272769Sbapt cat >conftest.$ac_ext <<_ACEOF 5535319349Sjkim#line 5535 "configure" 5536272769Sbapt#include "confdefs.h" 5537272769Sbapt#include <stdlib.h> 5538272769Sbapt 5539272769Sbapt_ACEOF 5540272769Sbaptif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5541272769Sbapt egrep "free" >/dev/null 2>&1; then 5542272769Sbapt : 5543272769Sbaptelse 5544272769Sbapt ac_cv_header_stdc=no 5545272769Sbaptfi 5546272769Sbaptrm -rf conftest* 5547272769Sbapt 5548272769Sbaptfi 5549272769Sbapt 5550272769Sbaptif test $ac_cv_header_stdc = yes; then 5551272769Sbapt # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5552272769Sbapt if test "$cross_compiling" = yes; then 5553272769Sbapt : 5554272769Sbaptelse 5555272769Sbapt cat >conftest.$ac_ext <<_ACEOF 5556319349Sjkim#line 5556 "configure" 5557272769Sbapt#include "confdefs.h" 5558272769Sbapt#include <ctype.h> 5559272769Sbapt#if ((' ' & 0x0FF) == 0x020) 5560272769Sbapt# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5561272769Sbapt# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5562272769Sbapt#else 5563272769Sbapt# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 5564272769Sbapt || ('j' <= (c) && (c) <= 'r') \ 5565272769Sbapt || ('s' <= (c) && (c) <= 'z')) 5566272769Sbapt# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5567272769Sbapt#endif 5568272769Sbapt 5569272769Sbapt#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5570272769Sbaptint 5571272769Sbaptmain () 5572272769Sbapt{ 5573272769Sbapt int i; 5574272769Sbapt for (i = 0; i < 256; i++) 5575272769Sbapt if (XOR (islower (i), ISLOWER (i)) 5576272769Sbapt || toupper (i) != TOUPPER (i)) 5577272769Sbapt $ac_main_return(2); 5578272769Sbapt $ac_main_return (0); 5579272769Sbapt} 5580272769Sbapt_ACEOF 5581272769Sbaptrm -f conftest$ac_exeext 5582319349Sjkimif { (eval echo "$as_me:5582: \"$ac_link\"") >&5 5583272769Sbapt (eval $ac_link) 2>&5 5584272769Sbapt ac_status=$? 5585319349Sjkim echo "$as_me:5585: \$? = $ac_status" >&5 5586272769Sbapt (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5587319349Sjkim { (eval echo "$as_me:5587: \"$ac_try\"") >&5 5588272769Sbapt (eval $ac_try) 2>&5 5589272769Sbapt ac_status=$? 5590319349Sjkim echo "$as_me:5590: \$? = $ac_status" >&5 5591272769Sbapt (exit $ac_status); }; }; then 5592272769Sbapt : 5593272769Sbaptelse 5594272769Sbapt echo "$as_me: program exited with status $ac_status" >&5 5595272769Sbaptecho "$as_me: failed program was:" >&5 5596272769Sbaptcat conftest.$ac_ext >&5 5597272769Sbaptac_cv_header_stdc=no 5598272769Sbaptfi 5599272769Sbaptrm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5600272769Sbaptfi 5601272769Sbaptfi 5602272769Sbaptfi 5603319349Sjkimecho "$as_me:5603: result: $ac_cv_header_stdc" >&5 5604272769Sbaptecho "${ECHO_T}$ac_cv_header_stdc" >&6 5605272769Sbaptif test $ac_cv_header_stdc = yes; then 5606272769Sbapt 5607272769Sbaptcat >>confdefs.h <<\EOF 5608272769Sbapt#define STDC_HEADERS 1 5609272769SbaptEOF 5610272769Sbapt 5611272769Sbaptfi 5612272769Sbapt 5613272769Sbapt# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5614272769Sbapt 5615272769Sbaptfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5616272769Sbapt inttypes.h stdint.h unistd.h 5617272769Sbaptdo 5618272769Sbaptas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5619319349Sjkimecho "$as_me:5619: checking for $ac_header" >&5 5620272769Sbaptecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5621272769Sbaptif eval "test \"\${$as_ac_Header+set}\" = set"; then 5622272769Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 5623272769Sbaptelse 5624272769Sbapt cat >conftest.$ac_ext <<_ACEOF 5625319349Sjkim#line 5625 "configure" 5626272769Sbapt#include "confdefs.h" 5627272769Sbapt$ac_includes_default 5628272769Sbapt#include <$ac_header> 5629272769Sbapt_ACEOF 5630272769Sbaptrm -f conftest.$ac_objext 5631319349Sjkimif { (eval echo "$as_me:5631: \"$ac_compile\"") >&5 5632272769Sbapt (eval $ac_compile) 2>&5 5633272769Sbapt ac_status=$? 5634319349Sjkim echo "$as_me:5634: \$? = $ac_status" >&5 5635272769Sbapt (exit $ac_status); } && 5636272769Sbapt { ac_try='test -s conftest.$ac_objext' 5637319349Sjkim { (eval echo "$as_me:5637: \"$ac_try\"") >&5 5638272769Sbapt (eval $ac_try) 2>&5 5639272769Sbapt ac_status=$? 5640319349Sjkim echo "$as_me:5640: \$? = $ac_status" >&5 5641272769Sbapt (exit $ac_status); }; }; then 5642272769Sbapt eval "$as_ac_Header=yes" 5643272769Sbaptelse 5644272769Sbapt echo "$as_me: failed program was:" >&5 5645272769Sbaptcat conftest.$ac_ext >&5 5646272769Sbapteval "$as_ac_Header=no" 5647272769Sbaptfi 5648272769Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 5649272769Sbaptfi 5650319349Sjkimecho "$as_me:5650: result: `eval echo '${'$as_ac_Header'}'`" >&5 5651272769Sbaptecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5652272769Sbaptif test `eval echo '${'$as_ac_Header'}'` = yes; then 5653272769Sbapt cat >>confdefs.h <<EOF 5654272769Sbapt#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5655272769SbaptEOF 5656272769Sbapt 5657272769Sbaptfi 5658272769Sbaptdone 5659272769Sbapt 5660319349Sjkimecho "$as_me:5660: checking for mode_t" >&5 5661272769Sbaptecho $ECHO_N "checking for mode_t... $ECHO_C" >&6 5662272769Sbaptif test "${ac_cv_type_mode_t+set}" = set; then 5663272769Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 5664272769Sbaptelse 5665272769Sbapt cat >conftest.$ac_ext <<_ACEOF 5666319349Sjkim#line 5666 "configure" 5667272769Sbapt#include "confdefs.h" 5668272769Sbapt$ac_includes_default 5669272769Sbaptint 5670272769Sbaptmain () 5671272769Sbapt{ 5672272769Sbaptif ((mode_t *) 0) 5673272769Sbapt return 0; 5674272769Sbaptif (sizeof (mode_t)) 5675272769Sbapt return 0; 5676272769Sbapt ; 5677272769Sbapt return 0; 5678272769Sbapt} 5679272769Sbapt_ACEOF 5680272769Sbaptrm -f conftest.$ac_objext 5681319349Sjkimif { (eval echo "$as_me:5681: \"$ac_compile\"") >&5 5682272769Sbapt (eval $ac_compile) 2>&5 5683272769Sbapt ac_status=$? 5684319349Sjkim echo "$as_me:5684: \$? = $ac_status" >&5 5685272769Sbapt (exit $ac_status); } && 5686272769Sbapt { ac_try='test -s conftest.$ac_objext' 5687319349Sjkim { (eval echo "$as_me:5687: \"$ac_try\"") >&5 5688272769Sbapt (eval $ac_try) 2>&5 5689272769Sbapt ac_status=$? 5690319349Sjkim echo "$as_me:5690: \$? = $ac_status" >&5 5691272769Sbapt (exit $ac_status); }; }; then 5692272769Sbapt ac_cv_type_mode_t=yes 5693272769Sbaptelse 5694272769Sbapt echo "$as_me: failed program was:" >&5 5695272769Sbaptcat conftest.$ac_ext >&5 5696272769Sbaptac_cv_type_mode_t=no 5697272769Sbaptfi 5698272769Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 5699272769Sbaptfi 5700319349Sjkimecho "$as_me:5700: result: $ac_cv_type_mode_t" >&5 5701272769Sbaptecho "${ECHO_T}$ac_cv_type_mode_t" >&6 5702272769Sbaptif test $ac_cv_type_mode_t = yes; then 5703272769Sbapt : 5704272769Sbaptelse 5705272769Sbapt 5706272769Sbaptcat >>confdefs.h <<EOF 5707272769Sbapt#define mode_t int 5708272769SbaptEOF 5709272769Sbapt 5710272769Sbaptfi 5711272769Sbapt 5712234949Sbapt### output makefile 5713234949Sbaptac_config_files="$ac_config_files makefile" 5714234949Sbaptcat >confcache <<\_ACEOF 5715234949Sbapt# This file is a shell script that caches the results of configure 5716234949Sbapt# tests run on this system so they can be shared between configure 5717234949Sbapt# scripts and configure runs, see configure's option --config-cache. 5718234949Sbapt# It is not useful on other systems. If it contains results you don't 5719234949Sbapt# want to keep, you may remove or edit it. 5720234949Sbapt# 5721234949Sbapt# config.status only pays attention to the cache file if you give it 5722234949Sbapt# the --recheck option to rerun configure. 5723234949Sbapt# 5724234949Sbapt# `ac_cv_env_foo' variables (set or unset) will be overriden when 5725234949Sbapt# loading this file, other *unset* `ac_cv_foo' will be assigned the 5726234949Sbapt# following values. 5727234949Sbapt 5728234949Sbapt_ACEOF 5729234949Sbapt 5730234949Sbapt# The following way of writing the cache mishandles newlines in values, 5731234949Sbapt# but we know of no workaround that is simple, portable, and efficient. 5732234949Sbapt# So, don't put newlines in cache variables' values. 5733234949Sbapt# Ultrix sh set writes to stderr and can't be redirected directly, 5734234949Sbapt# and sets the high bit in the cache file unless we assign to the vars. 5735234949Sbapt{ 5736234949Sbapt (set) 2>&1 | 5737234949Sbapt case `(ac_space=' '; set | grep ac_space) 2>&1` in 5738234949Sbapt *ac_space=\ *) 5739234949Sbapt # `set' does not quote correctly, so add quotes (double-quote 5740234949Sbapt # substitution turns \\\\ into \\, and sed turns \\ into \). 5741234949Sbapt sed -n \ 5742234949Sbapt "s/'/'\\\\''/g; 5743234949Sbapt s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 5744234949Sbapt ;; 5745234949Sbapt *) 5746234949Sbapt # `set' quotes correctly as required by POSIX, so do not add quotes. 5747234949Sbapt sed -n \ 5748234949Sbapt "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 5749234949Sbapt ;; 5750234949Sbapt esac; 5751234949Sbapt} | 5752234949Sbapt sed ' 5753234949Sbapt t clear 5754234949Sbapt : clear 5755234949Sbapt s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 5756234949Sbapt t end 5757234949Sbapt /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 5758234949Sbapt : end' >>confcache 5759234949Sbaptif cmp -s $cache_file confcache; then :; else 5760234949Sbapt if test -w $cache_file; then 5761234949Sbapt test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 5762234949Sbapt cat confcache >$cache_file 5763234949Sbapt else 5764234949Sbapt echo "not updating unwritable cache $cache_file" 5765234949Sbapt fi 5766234949Sbaptfi 5767234949Sbaptrm -f confcache 5768234949Sbapt 5769234949Sbapttest "x$prefix" = xNONE && prefix=$ac_default_prefix 5770234949Sbapt# Let make expand exec_prefix. 5771234949Sbapttest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 5772234949Sbapt 5773234949Sbapt# VPATH may cause trouble with some makes, so we remove $(srcdir), 5774234949Sbapt# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 5775234949Sbapt# trailing colons and then remove the whole line if VPATH becomes empty 5776234949Sbapt# (actually we leave an empty line to preserve line numbers). 5777234949Sbaptif test "x$srcdir" = x.; then 5778234949Sbapt ac_vpsub='/^[ ]*VPATH[ ]*=/{ 5779234949Sbapts/:*\$(srcdir):*/:/; 5780234949Sbapts/:*\${srcdir}:*/:/; 5781234949Sbapts/:*@srcdir@:*/:/; 5782234949Sbapts/^\([^=]*=[ ]*\):*/\1/; 5783234949Sbapts/:*$//; 5784234949Sbapts/^[^=]*=[ ]*$//; 5785234949Sbapt}' 5786234949Sbaptfi 5787234949Sbapt 5788234949SbaptDEFS=-DHAVE_CONFIG_H 5789234949Sbapt 5790234949Sbapt: ${CONFIG_STATUS=./config.status} 5791234949Sbaptac_clean_files_save=$ac_clean_files 5792234949Sbaptac_clean_files="$ac_clean_files $CONFIG_STATUS" 5793319349Sjkim{ echo "$as_me:5793: creating $CONFIG_STATUS" >&5 5794234949Sbaptecho "$as_me: creating $CONFIG_STATUS" >&6;} 5795234949Sbaptcat >$CONFIG_STATUS <<_ACEOF 5796234949Sbapt#! $SHELL 5797234949Sbapt# Generated automatically by configure. 5798234949Sbapt# Run this file to recreate the current configuration. 5799234949Sbapt# Compiler output produced by configure, useful for debugging 5800234949Sbapt# configure, is in config.log if it exists. 5801234949Sbapt 5802234949Sbaptdebug=false 5803234949SbaptSHELL=\${CONFIG_SHELL-$SHELL} 5804234949Sbaptac_cs_invocation="\$0 \$@" 5805234949Sbapt 5806234949Sbapt_ACEOF 5807234949Sbapt 5808234949Sbaptcat >>$CONFIG_STATUS <<\_ACEOF 5809234949Sbapt# Be Bourne compatible 5810234949Sbaptif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 5811234949Sbapt emulate sh 5812234949Sbapt NULLCMD=: 5813234949Sbaptelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 5814234949Sbapt set -o posix 5815234949Sbaptfi 5816234949Sbapt 5817234949Sbapt# Name of the executable. 5818234949Sbaptas_me=`echo "$0" |sed 's,.*[\\/],,'` 5819234949Sbapt 5820234949Sbaptif expr a : '\(a\)' >/dev/null 2>&1; then 5821234949Sbapt as_expr=expr 5822234949Sbaptelse 5823234949Sbapt as_expr=false 5824234949Sbaptfi 5825234949Sbapt 5826234949Sbaptrm -f conf$$ conf$$.exe conf$$.file 5827234949Sbaptecho >conf$$.file 5828234949Sbaptif ln -s conf$$.file conf$$ 2>/dev/null; then 5829234949Sbapt # We could just check for DJGPP; but this test a) works b) is more generic 5830234949Sbapt # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 5831234949Sbapt if test -f conf$$.exe; then 5832234949Sbapt # Don't use ln at all; we don't have any links 5833234949Sbapt as_ln_s='cp -p' 5834234949Sbapt else 5835234949Sbapt as_ln_s='ln -s' 5836234949Sbapt fi 5837234949Sbaptelif ln conf$$.file conf$$ 2>/dev/null; then 5838234949Sbapt as_ln_s=ln 5839234949Sbaptelse 5840234949Sbapt as_ln_s='cp -p' 5841234949Sbaptfi 5842234949Sbaptrm -f conf$$ conf$$.exe conf$$.file 5843234949Sbapt 5844234949Sbaptas_executable_p="test -f" 5845234949Sbapt 5846234949Sbapt# Support unset when possible. 5847234949Sbaptif (FOO=FOO; unset FOO) >/dev/null 2>&1; then 5848234949Sbapt as_unset=unset 5849234949Sbaptelse 5850234949Sbapt as_unset=false 5851234949Sbaptfi 5852234949Sbapt 5853234949Sbapt# NLS nuisances. 5854234949Sbapt$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 5855234949Sbapt$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 5856234949Sbapt$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 5857234949Sbapt$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 5858234949Sbapt$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 5859234949Sbapt$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 5860234949Sbapt$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 5861234949Sbapt$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 5862234949Sbapt 5863234949Sbapt# IFS 5864234949Sbapt# We need space, tab and new line, in precisely that order. 5865234949Sbaptas_nl=' 5866234949Sbapt' 5867234949SbaptIFS=" $as_nl" 5868234949Sbapt 5869234949Sbapt# CDPATH. 5870234949Sbapt$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 5871234949Sbapt 5872234949Sbaptexec 6>&1 5873234949Sbapt 5874234949Sbapt_ACEOF 5875234949Sbapt 5876234949Sbapt# Files that config.status was made for. 5877234949Sbaptif test -n "$ac_config_files"; then 5878234949Sbapt echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 5879234949Sbaptfi 5880234949Sbapt 5881234949Sbaptif test -n "$ac_config_headers"; then 5882234949Sbapt echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 5883234949Sbaptfi 5884234949Sbapt 5885234949Sbaptif test -n "$ac_config_links"; then 5886234949Sbapt echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 5887234949Sbaptfi 5888234949Sbapt 5889234949Sbaptif test -n "$ac_config_commands"; then 5890234949Sbapt echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 5891234949Sbaptfi 5892234949Sbapt 5893234949Sbaptcat >>$CONFIG_STATUS <<\EOF 5894234949Sbapt 5895234949Sbaptac_cs_usage="\ 5896234949Sbapt\`$as_me' instantiates files from templates according to the 5897234949Sbaptcurrent configuration. 5898234949Sbapt 5899234949SbaptUsage: $0 [OPTIONS] [FILE]... 5900234949Sbapt 5901234949Sbapt -h, --help print this help, then exit 5902234949Sbapt -V, --version print version number, then exit 5903234949Sbapt -d, --debug don't remove temporary files 5904234949Sbapt --recheck update $as_me by reconfiguring in the same conditions 5905234949Sbapt --file=FILE[:TEMPLATE] 5906234949Sbapt instantiate the configuration file FILE 5907234949Sbapt --header=FILE[:TEMPLATE] 5908234949Sbapt instantiate the configuration header FILE 5909234949Sbapt 5910234949SbaptConfiguration files: 5911234949Sbapt$config_files 5912234949Sbapt 5913234949SbaptConfiguration headers: 5914234949Sbapt$config_headers 5915234949Sbapt 5916234949SbaptReport bugs to <dickey@invisible-island.net>." 5917234949SbaptEOF 5918234949Sbapt 5919234949Sbaptcat >>$CONFIG_STATUS <<EOF 5920234949Sbaptac_cs_version="\\ 5921234949Sbaptconfig.status 5922319297Sdelphijconfigured by $0, generated by GNU Autoconf 2.52.20150926, 5923234949Sbapt with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 5924234949Sbapt 5925234949SbaptCopyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 5926234949SbaptFree Software Foundation, Inc. 5927234949SbaptThis config.status script is free software; the Free Software Foundation 5928234949Sbaptgives unlimited permission to copy, distribute and modify it." 5929234949Sbaptsrcdir=$srcdir 5930234949SbaptINSTALL="$INSTALL" 5931234949SbaptEOF 5932234949Sbapt 5933234949Sbaptcat >>$CONFIG_STATUS <<\EOF 5934234949Sbapt# If no file are specified by the user, then we need to provide default 5935234949Sbapt# value. By we need to know if files were specified by the user. 5936234949Sbaptac_need_defaults=: 5937234949Sbaptwhile test $# != 0 5938234949Sbaptdo 5939234949Sbapt case $1 in 5940234949Sbapt --*=*) 5941234949Sbapt ac_option=`expr "x$1" : 'x\([^=]*\)='` 5942234949Sbapt ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 5943234949Sbapt shift 5944234949Sbapt set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 5945234949Sbapt shift 5946234949Sbapt ;; 5947234949Sbapt -*);; 5948234949Sbapt *) # This is not an option, so the user has probably given explicit 5949234949Sbapt # arguments. 5950234949Sbapt ac_need_defaults=false;; 5951234949Sbapt esac 5952234949Sbapt 5953234949Sbapt case $1 in 5954234949Sbapt # Handling of the options. 5955234949SbaptEOF 5956234949Sbaptcat >>$CONFIG_STATUS <<EOF 5957234949Sbapt -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 5958234949Sbapt echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 5959234949Sbapt exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 5960234949SbaptEOF 5961234949Sbaptcat >>$CONFIG_STATUS <<\EOF 5962234949Sbapt --version | --vers* | -V ) 5963234949Sbapt echo "$ac_cs_version"; exit 0 ;; 5964234949Sbapt --he | --h) 5965234949Sbapt # Conflict between --help and --header 5966319349Sjkim { { echo "$as_me:5966: error: ambiguous option: $1 5967234949SbaptTry \`$0 --help' for more information." >&5 5968234949Sbaptecho "$as_me: error: ambiguous option: $1 5969234949SbaptTry \`$0 --help' for more information." >&2;} 5970234949Sbapt { (exit 1); exit 1; }; };; 5971234949Sbapt --help | --hel | -h ) 5972234949Sbapt echo "$ac_cs_usage"; exit 0 ;; 5973234949Sbapt --debug | --d* | -d ) 5974234949Sbapt debug=: ;; 5975234949Sbapt --file | --fil | --fi | --f ) 5976234949Sbapt shift 5977234949Sbapt CONFIG_FILES="$CONFIG_FILES $1" 5978234949Sbapt ac_need_defaults=false;; 5979234949Sbapt --header | --heade | --head | --hea ) 5980234949Sbapt shift 5981234949Sbapt CONFIG_HEADERS="$CONFIG_HEADERS $1" 5982234949Sbapt ac_need_defaults=false;; 5983234949Sbapt 5984234949Sbapt # This is an error. 5985319349Sjkim -*) { { echo "$as_me:5985: error: unrecognized option: $1 5986234949SbaptTry \`$0 --help' for more information." >&5 5987234949Sbaptecho "$as_me: error: unrecognized option: $1 5988234949SbaptTry \`$0 --help' for more information." >&2;} 5989234949Sbapt { (exit 1); exit 1; }; } ;; 5990234949Sbapt 5991234949Sbapt *) ac_config_targets="$ac_config_targets $1" ;; 5992234949Sbapt 5993234949Sbapt esac 5994234949Sbapt shift 5995234949Sbaptdone 5996234949Sbapt 5997234949Sbaptexec 5>>config.log 5998234949Sbaptcat >&5 << _ACEOF 5999234949Sbapt 6000234949Sbapt## ----------------------- ## 6001234949Sbapt## Running config.status. ## 6002234949Sbapt## ----------------------- ## 6003234949Sbapt 6004319297SdelphijThis file was extended by $as_me 2.52.20150926, executed with 6005234949Sbapt CONFIG_FILES = $CONFIG_FILES 6006234949Sbapt CONFIG_HEADERS = $CONFIG_HEADERS 6007234949Sbapt CONFIG_LINKS = $CONFIG_LINKS 6008234949Sbapt CONFIG_COMMANDS = $CONFIG_COMMANDS 6009234949Sbapt > $ac_cs_invocation 6010234949Sbapton `(hostname || uname -n) 2>/dev/null | sed 1q` 6011234949Sbapt 6012234949Sbapt_ACEOF 6013234949SbaptEOF 6014234949Sbapt 6015234949Sbaptcat >>$CONFIG_STATUS <<\EOF 6016234949Sbaptfor ac_config_target in $ac_config_targets 6017234949Sbaptdo 6018234949Sbapt case "$ac_config_target" in 6019234949Sbapt # Handling of arguments. 6020234949Sbapt "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;; 6021234949Sbapt "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;; 6022319349Sjkim *) { { echo "$as_me:6022: error: invalid argument: $ac_config_target" >&5 6023234949Sbaptecho "$as_me: error: invalid argument: $ac_config_target" >&2;} 6024234949Sbapt { (exit 1); exit 1; }; };; 6025234949Sbapt esac 6026234949Sbaptdone 6027234949Sbapt 6028234949Sbapt# If the user did not use the arguments to specify the items to instantiate, 6029234949Sbapt# then the envvar interface is used. Set only those that are not. 6030234949Sbapt# We use the long form for the default assignment because of an extremely 6031234949Sbapt# bizarre bug on SunOS 4.1.3. 6032234949Sbaptif $ac_need_defaults; then 6033234949Sbapt test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 6034234949Sbapt test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 6035234949Sbaptfi 6036234949Sbapt 6037234949Sbapt# Create a temporary directory, and hook for its removal unless debugging. 6038234949Sbapt$debug || 6039234949Sbapt{ 6040234949Sbapt trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 6041234949Sbapt trap '{ (exit 1); exit 1; }' 1 2 13 15 6042234949Sbapt} 6043234949Sbapt 6044234949Sbapt# Create a (secure) tmp directory for tmp files. 6045234949Sbapt: ${TMPDIR=/tmp} 6046234949Sbapt{ 6047234949Sbapt tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 6048234949Sbapt test -n "$tmp" && test -d "$tmp" 6049234949Sbapt} || 6050234949Sbapt{ 6051234949Sbapt tmp=$TMPDIR/cs$$-$RANDOM 6052234949Sbapt (umask 077 && mkdir $tmp) 6053234949Sbapt} || 6054234949Sbapt{ 6055234949Sbapt echo "$me: cannot create a temporary directory in $TMPDIR" >&2 6056234949Sbapt { (exit 1); exit 1; } 6057234949Sbapt} 6058234949Sbapt 6059234949SbaptEOF 6060234949Sbapt 6061234949Sbaptcat >>$CONFIG_STATUS <<EOF 6062234949Sbapt 6063234949Sbapt# 6064234949Sbapt# CONFIG_FILES section. 6065234949Sbapt# 6066234949Sbapt 6067234949Sbapt# No need to generate the scripts if there are no CONFIG_FILES. 6068234949Sbapt# This happens for instance when ./config.status config.h 6069234949Sbaptif test -n "\$CONFIG_FILES"; then 6070234949Sbapt # Protect against being on the right side of a sed subst in config.status. 6071234949Sbapt sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 6072234949Sbapt s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 6073234949Sbapts,@SHELL@,$SHELL,;t t 6074234949Sbapts,@exec_prefix@,$exec_prefix,;t t 6075234949Sbapts,@prefix@,$prefix,;t t 6076234949Sbapts,@program_transform_name@,$program_transform_name,;t t 6077234949Sbapts,@bindir@,$bindir,;t t 6078234949Sbapts,@sbindir@,$sbindir,;t t 6079234949Sbapts,@libexecdir@,$libexecdir,;t t 6080251143Sbapts,@datarootdir@,$datarootdir,;t t 6081234949Sbapts,@datadir@,$datadir,;t t 6082234949Sbapts,@sysconfdir@,$sysconfdir,;t t 6083234949Sbapts,@sharedstatedir@,$sharedstatedir,;t t 6084234949Sbapts,@localstatedir@,$localstatedir,;t t 6085234949Sbapts,@libdir@,$libdir,;t t 6086234949Sbapts,@includedir@,$includedir,;t t 6087234949Sbapts,@oldincludedir@,$oldincludedir,;t t 6088234949Sbapts,@infodir@,$infodir,;t t 6089234949Sbapts,@mandir@,$mandir,;t t 6090234949Sbapts,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 6091234949Sbapts,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 6092234949Sbapts,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 6093234949Sbapts,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 6094234949Sbapts,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 6095234949Sbapts,@build_alias@,$build_alias,;t t 6096234949Sbapts,@host_alias@,$host_alias,;t t 6097234949Sbapts,@target_alias@,$target_alias,;t t 6098234949Sbapts,@ECHO_C@,$ECHO_C,;t t 6099234949Sbapts,@ECHO_N@,$ECHO_N,;t t 6100234949Sbapts,@ECHO_T@,$ECHO_T,;t t 6101234949Sbapts,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 6102234949Sbapts,@DEFS@,$DEFS,;t t 6103234949Sbapts,@LIBS@,$LIBS,;t t 6104234949Sbapts,@build@,$build,;t t 6105234949Sbapts,@build_cpu@,$build_cpu,;t t 6106234949Sbapts,@build_vendor@,$build_vendor,;t t 6107234949Sbapts,@build_os@,$build_os,;t t 6108234949Sbapts,@host@,$host,;t t 6109234949Sbapts,@host_cpu@,$host_cpu,;t t 6110234949Sbapts,@host_vendor@,$host_vendor,;t t 6111234949Sbapts,@host_os@,$host_os,;t t 6112234949Sbapts,@target@,$target,;t t 6113234949Sbapts,@target_cpu@,$target_cpu,;t t 6114234949Sbapts,@target_vendor@,$target_vendor,;t t 6115234949Sbapts,@target_os@,$target_os,;t t 6116234949Sbapts,@CC@,$CC,;t t 6117234949Sbapts,@CFLAGS@,$CFLAGS,;t t 6118234949Sbapts,@LDFLAGS@,$LDFLAGS,;t t 6119234949Sbapts,@CPPFLAGS@,$CPPFLAGS,;t t 6120234949Sbapts,@ac_ct_CC@,$ac_ct_CC,;t t 6121234949Sbapts,@EXEEXT@,$EXEEXT,;t t 6122234949Sbapts,@OBJEXT@,$OBJEXT,;t t 6123251143Sbapts,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t 6124234949Sbapts,@SET_MAKE@,$SET_MAKE,;t t 6125234949Sbapts,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 6126234949Sbapts,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 6127234949Sbapts,@INSTALL_DATA@,$INSTALL_DATA,;t t 6128234949Sbapts,@CTAGS@,$CTAGS,;t t 6129234949Sbapts,@ETAGS@,$ETAGS,;t t 6130234949Sbapts,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t 6131234949Sbapts,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t 6132264803Sbapts,@AWK@,$AWK,;t t 6133234949Sbapts,@LINT@,$LINT,;t t 6134234949Sbapts,@LINT_OPTS@,$LINT_OPTS,;t t 6135234949Sbapts,@CPP@,$CPP,;t t 6136264803Sbapts,@SKELETON@,$SKELETON,;t t 6137234949Sbapts,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t 6138234949Sbapts,@ECHO_LT@,$ECHO_LT,;t t 6139234949Sbapts,@ECHO_LD@,$ECHO_LD,;t t 6140234949Sbapts,@RULE_CC@,$RULE_CC,;t t 6141234949Sbapts,@SHOW_CC@,$SHOW_CC,;t t 6142234949Sbapts,@ECHO_CC@,$ECHO_CC,;t t 6143296240Sjkims,@GROFF_PATH@,$GROFF_PATH,;t t 6144296240Sjkims,@NROFF_PATH@,$NROFF_PATH,;t t 6145296240Sjkims,@GROFF_NOTE@,$GROFF_NOTE,;t t 6146296240Sjkims,@NROFF_NOTE@,$NROFF_NOTE,;t t 6147296240Sjkims,@cf_man2html@,$cf_man2html,;t t 6148296240Sjkims,@MAN2HTML_NOTE@,$MAN2HTML_NOTE,;t t 6149296240Sjkims,@MAN2HTML_PATH@,$MAN2HTML_PATH,;t t 6150296240Sjkims,@MAN2HTML_TEMP@,$MAN2HTML_TEMP,;t t 6151234949SbaptCEOF 6152234949Sbapt 6153234949SbaptEOF 6154234949Sbapt 6155234949Sbapt cat >>$CONFIG_STATUS <<\EOF 6156234949Sbapt # Split the substitutions into bite-sized pieces for seds with 6157234949Sbapt # small command number limits, like on Digital OSF/1 and HP-UX. 6158234949Sbapt ac_max_sed_lines=48 6159234949Sbapt ac_sed_frag=1 # Number of current file. 6160234949Sbapt ac_beg=1 # First line for current file. 6161234949Sbapt ac_end=$ac_max_sed_lines # Line after last line for current file. 6162234949Sbapt ac_more_lines=: 6163234949Sbapt ac_sed_cmds= 6164234949Sbapt while $ac_more_lines; do 6165234949Sbapt if test $ac_beg -gt 1; then 6166234949Sbapt sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 6167234949Sbapt else 6168234949Sbapt sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 6169234949Sbapt fi 6170234949Sbapt if test ! -s $tmp/subs.frag; then 6171234949Sbapt ac_more_lines=false 6172234949Sbapt else 6173234949Sbapt # The purpose of the label and of the branching condition is to 6174234949Sbapt # speed up the sed processing (if there are no `@' at all, there 6175234949Sbapt # is no need to browse any of the substitutions). 6176234949Sbapt # These are the two extra sed commands mentioned above. 6177234949Sbapt (echo ':t 6178234949Sbapt /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 6179319297Sdelphij # It is possible to make a multiline substitution using escaped newlines. 6180319297Sdelphij # Ensure that we do not split the substitution between script fragments. 6181319297Sdelphij ac_BEG=$ac_end 6182319297Sdelphij ac_END=`expr $ac_end + $ac_max_sed_lines` 6183319297Sdelphij sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next 6184319297Sdelphij if test -s $tmp/subs.next; then 6185319297Sdelphij grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit 6186319297Sdelphij if test ! -s $tmp/subs.edit; then 6187319297Sdelphij grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit 6188319297Sdelphij if test ! -s $tmp/subs.edit; then 6189319297Sdelphij if test $ac_beg -gt 1; then 6190319297Sdelphij ac_end=`expr $ac_end - 1` 6191319297Sdelphij continue 6192319297Sdelphij fi 6193319297Sdelphij fi 6194319297Sdelphij fi 6195319297Sdelphij fi 6196319297Sdelphij 6197234949Sbapt if test -z "$ac_sed_cmds"; then 6198319297Sdelphij ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 6199234949Sbapt else 6200319297Sdelphij ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 6201234949Sbapt fi 6202234949Sbapt ac_sed_frag=`expr $ac_sed_frag + 1` 6203234949Sbapt ac_beg=$ac_end 6204234949Sbapt ac_end=`expr $ac_end + $ac_max_sed_lines` 6205234949Sbapt fi 6206234949Sbapt done 6207234949Sbapt if test -z "$ac_sed_cmds"; then 6208234949Sbapt ac_sed_cmds=cat 6209234949Sbapt fi 6210234949Sbaptfi # test -n "$CONFIG_FILES" 6211234949Sbapt 6212234949SbaptEOF 6213234949Sbaptcat >>$CONFIG_STATUS <<\EOF 6214234949Sbaptfor ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 6215234949Sbapt # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 6216234949Sbapt case $ac_file in 6217234949Sbapt - | *:- | *:-:* ) # input from stdin 6218234949Sbapt cat >$tmp/stdin 6219234949Sbapt ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 6220234949Sbapt ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 6221234949Sbapt *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 6222234949Sbapt ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 6223234949Sbapt * ) ac_file_in=$ac_file.in ;; 6224234949Sbapt esac 6225234949Sbapt 6226234949Sbapt # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 6227234949Sbapt ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6228234949Sbapt X"$ac_file" : 'X\(//\)[^/]' \| \ 6229234949Sbapt X"$ac_file" : 'X\(//\)$' \| \ 6230234949Sbapt X"$ac_file" : 'X\(/\)' \| \ 6231234949Sbapt . : '\(.\)' 2>/dev/null || 6232234949Sbaptecho X"$ac_file" | 6233234949Sbapt sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6234234949Sbapt /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6235234949Sbapt /^X\(\/\/\)$/{ s//\1/; q; } 6236234949Sbapt /^X\(\/\).*/{ s//\1/; q; } 6237234949Sbapt s/.*/./; q'` 6238234949Sbapt if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 6239234949Sbapt { case "$ac_dir" in 6240234949Sbapt [\\/]* | ?:[\\/]* ) as_incr_dir=;; 6241234949Sbapt *) as_incr_dir=.;; 6242234949Sbaptesac 6243234949Sbaptas_dummy="$ac_dir" 6244234949Sbaptfor as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 6245234949Sbapt case $as_mkdir_dir in 6246234949Sbapt # Skip DOS drivespec 6247234949Sbapt ?:) as_incr_dir=$as_mkdir_dir ;; 6248234949Sbapt *) 6249234949Sbapt as_incr_dir=$as_incr_dir/$as_mkdir_dir 6250234949Sbapt test -d "$as_incr_dir" || mkdir "$as_incr_dir" 6251234949Sbapt ;; 6252234949Sbapt esac 6253234949Sbaptdone; } 6254234949Sbapt 6255234949Sbapt ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" 6256234949Sbapt # A "../" for each directory in $ac_dir_suffix. 6257234949Sbapt ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 6258234949Sbapt else 6259234949Sbapt ac_dir_suffix= ac_dots= 6260234949Sbapt fi 6261234949Sbapt 6262234949Sbapt case $srcdir in 6263234949Sbapt .) ac_srcdir=. 6264234949Sbapt if test -z "$ac_dots"; then 6265234949Sbapt ac_top_srcdir=. 6266234949Sbapt else 6267234949Sbapt ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` 6268234949Sbapt fi ;; 6269234949Sbapt [\\/]* | ?:[\\/]* ) 6270234949Sbapt ac_srcdir=$srcdir$ac_dir_suffix; 6271234949Sbapt ac_top_srcdir=$srcdir ;; 6272234949Sbapt *) # Relative path. 6273234949Sbapt ac_srcdir=$ac_dots$srcdir$ac_dir_suffix 6274234949Sbapt ac_top_srcdir=$ac_dots$srcdir ;; 6275234949Sbapt esac 6276234949Sbapt 6277234949Sbapt case $INSTALL in 6278234949Sbapt [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 6279234949Sbapt *) ac_INSTALL=$ac_dots$INSTALL ;; 6280234949Sbapt esac 6281234949Sbapt 6282234949Sbapt if test x"$ac_file" != x-; then 6283319349Sjkim { echo "$as_me:6283: creating $ac_file" >&5 6284234949Sbaptecho "$as_me: creating $ac_file" >&6;} 6285234949Sbapt rm -f "$ac_file" 6286234949Sbapt fi 6287234949Sbapt # Let's still pretend it is `configure' which instantiates (i.e., don't 6288234949Sbapt # use $as_me), people would be surprised to read: 6289234949Sbapt # /* config.h. Generated automatically by config.status. */ 6290234949Sbapt configure_input="Generated automatically from `echo $ac_file_in | 6291234949Sbapt sed 's,.*/,,'` by configure." 6292234949Sbapt 6293234949Sbapt # First look for the input files in the build tree, otherwise in the 6294234949Sbapt # src tree. 6295234949Sbapt ac_file_inputs=`IFS=: 6296234949Sbapt for f in $ac_file_in; do 6297234949Sbapt case $f in 6298234949Sbapt -) echo $tmp/stdin ;; 6299234949Sbapt [\\/$]*) 6300234949Sbapt # Absolute (can't be DOS-style, as IFS=:) 6301319349Sjkim test -f "$f" || { { echo "$as_me:6301: error: cannot find input file: $f" >&5 6302234949Sbaptecho "$as_me: error: cannot find input file: $f" >&2;} 6303234949Sbapt { (exit 1); exit 1; }; } 6304234949Sbapt echo $f;; 6305234949Sbapt *) # Relative 6306234949Sbapt if test -f "$f"; then 6307234949Sbapt # Build tree 6308234949Sbapt echo $f 6309234949Sbapt elif test -f "$srcdir/$f"; then 6310234949Sbapt # Source tree 6311234949Sbapt echo $srcdir/$f 6312234949Sbapt else 6313234949Sbapt # /dev/null tree 6314319349Sjkim { { echo "$as_me:6314: error: cannot find input file: $f" >&5 6315234949Sbaptecho "$as_me: error: cannot find input file: $f" >&2;} 6316234949Sbapt { (exit 1); exit 1; }; } 6317234949Sbapt fi;; 6318234949Sbapt esac 6319234949Sbapt done` || { (exit 1); exit 1; } 6320234949SbaptEOF 6321251143Sbaptcat >>$CONFIG_STATUS <<\EOF 6322251143Sbapt ac_warn_datarootdir=no 6323251143Sbapt if test x"$ac_file" != x-; then 6324251143Sbapt for ac_item in $ac_file_inputs 6325251143Sbapt do 6326251143Sbapt ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item` 6327251143Sbapt if test -n "$ac_seen"; then 6328251143Sbapt ac_used=`grep '@datarootdir@' $ac_item` 6329251143Sbapt if test -z "$ac_used"; then 6330319349Sjkim { echo "$as_me:6330: WARNING: datarootdir was used implicitly but not set: 6331251143Sbapt$ac_seen" >&5 6332251143Sbaptecho "$as_me: WARNING: datarootdir was used implicitly but not set: 6333251143Sbapt$ac_seen" >&2;} 6334251143Sbapt ac_warn_datarootdir=yes 6335251143Sbapt fi 6336251143Sbapt fi 6337251143Sbapt ac_seen=`grep '${datarootdir}' $ac_item` 6338251143Sbapt if test -n "$ac_seen"; then 6339319349Sjkim { echo "$as_me:6339: WARNING: datarootdir was used explicitly but not set: 6340251143Sbapt$ac_seen" >&5 6341251143Sbaptecho "$as_me: WARNING: datarootdir was used explicitly but not set: 6342251143Sbapt$ac_seen" >&2;} 6343251143Sbapt ac_warn_datarootdir=yes 6344251143Sbapt fi 6345251143Sbapt done 6346251143Sbapt fi 6347251143Sbapt 6348251143Sbaptif test "x$ac_warn_datarootdir" = xyes; then 6349251143Sbapt ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'" 6350251143Sbaptfi 6351251143Sbapt 6352251143SbaptEOF 6353234949Sbaptcat >>$CONFIG_STATUS <<EOF 6354234949Sbapt sed "$ac_vpsub 6355234949Sbapt$extrasub 6356234949SbaptEOF 6357234949Sbaptcat >>$CONFIG_STATUS <<\EOF 6358234949Sbapt:t 6359234949Sbapt/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 6360234949Sbapts,@configure_input@,$configure_input,;t t 6361234949Sbapts,@srcdir@,$ac_srcdir,;t t 6362234949Sbapts,@top_srcdir@,$ac_top_srcdir,;t t 6363234949Sbapts,@INSTALL@,$ac_INSTALL,;t t 6364234949Sbapt" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 6365234949Sbapt rm -f $tmp/stdin 6366234949Sbapt if test x"$ac_file" != x-; then 6367251143Sbapt cp $tmp/out $ac_file 6368251143Sbapt 6369251143Sbapt for ac_name in prefix exec_prefix datarootdir 6370251143Sbapt do 6371251143Sbapt ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file` 6372251143Sbapt if test -n "$ac_seen"; then 6373251143Sbapt ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file` 6374251143Sbapt if test -z "$ac_init"; then 6375251143Sbapt ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'` 6376319349Sjkim { echo "$as_me:6376: WARNING: Variable $ac_name is used but was not set: 6377251143Sbapt$ac_seen" >&5 6378251143Sbaptecho "$as_me: WARNING: Variable $ac_name is used but was not set: 6379251143Sbapt$ac_seen" >&2;} 6380251143Sbapt fi 6381251143Sbapt fi 6382251143Sbapt done 6383251143Sbapt egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out 6384251143Sbapt egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out 6385251143Sbapt if test -s $tmp/out; then 6386251143Sbapt ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out` 6387319349Sjkim { echo "$as_me:6387: WARNING: Some variables may not be substituted: 6388251143Sbapt$ac_seen" >&5 6389251143Sbaptecho "$as_me: WARNING: Some variables may not be substituted: 6390251143Sbapt$ac_seen" >&2;} 6391251143Sbapt fi 6392234949Sbapt else 6393234949Sbapt cat $tmp/out 6394234949Sbapt fi 6395251143Sbapt rm -f $tmp/out 6396234949Sbapt 6397234949Sbaptdone 6398234949SbaptEOF 6399234949Sbaptcat >>$CONFIG_STATUS <<\EOF 6400234949Sbapt 6401234949Sbapt# 6402234949Sbapt# CONFIG_HEADER section. 6403234949Sbapt# 6404234949Sbapt 6405234949Sbapt# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 6406234949Sbapt# NAME is the cpp macro being defined and VALUE is the value it is being given. 6407234949Sbapt# 6408234949Sbapt# ac_d sets the value in "#define NAME VALUE" lines. 6409234949Sbaptac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 6410234949Sbaptac_dB='[ ].*$,\1#\2' 6411234949Sbaptac_dC=' ' 6412234949Sbaptac_dD=',;t' 6413234949Sbapt# ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 6414234949Sbaptac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 6415234949Sbaptac_iB='\([ ]\),\1#\2define\3' 6416234949Sbaptac_iC=' ' 6417234949Sbaptac_iD='\4,;t' 6418234949Sbapt# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 6419234949Sbaptac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 6420234949Sbaptac_uB='$,\1#\2define\3' 6421234949Sbaptac_uC=' ' 6422234949Sbaptac_uD=',;t' 6423234949Sbapt 6424234949Sbaptfor ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 6425234949Sbapt # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 6426234949Sbapt case $ac_file in 6427234949Sbapt - | *:- | *:-:* ) # input from stdin 6428234949Sbapt cat >$tmp/stdin 6429234949Sbapt ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 6430234949Sbapt ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 6431234949Sbapt *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 6432234949Sbapt ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 6433234949Sbapt * ) ac_file_in=$ac_file.in ;; 6434234949Sbapt esac 6435234949Sbapt 6436319349Sjkim test x"$ac_file" != x- && { echo "$as_me:6436: creating $ac_file" >&5 6437234949Sbaptecho "$as_me: creating $ac_file" >&6;} 6438234949Sbapt 6439234949Sbapt # First look for the input files in the build tree, otherwise in the 6440234949Sbapt # src tree. 6441234949Sbapt ac_file_inputs=`IFS=: 6442234949Sbapt for f in $ac_file_in; do 6443234949Sbapt case $f in 6444234949Sbapt -) echo $tmp/stdin ;; 6445234949Sbapt [\\/$]*) 6446234949Sbapt # Absolute (can't be DOS-style, as IFS=:) 6447319349Sjkim test -f "$f" || { { echo "$as_me:6447: error: cannot find input file: $f" >&5 6448234949Sbaptecho "$as_me: error: cannot find input file: $f" >&2;} 6449234949Sbapt { (exit 1); exit 1; }; } 6450234949Sbapt echo $f;; 6451234949Sbapt *) # Relative 6452234949Sbapt if test -f "$f"; then 6453234949Sbapt # Build tree 6454234949Sbapt echo $f 6455234949Sbapt elif test -f "$srcdir/$f"; then 6456234949Sbapt # Source tree 6457234949Sbapt echo $srcdir/$f 6458234949Sbapt else 6459234949Sbapt # /dev/null tree 6460319349Sjkim { { echo "$as_me:6460: error: cannot find input file: $f" >&5 6461234949Sbaptecho "$as_me: error: cannot find input file: $f" >&2;} 6462234949Sbapt { (exit 1); exit 1; }; } 6463234949Sbapt fi;; 6464234949Sbapt esac 6465234949Sbapt done` || { (exit 1); exit 1; } 6466234949Sbapt # Remove the trailing spaces. 6467234949Sbapt sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 6468234949Sbapt 6469234949SbaptEOF 6470234949Sbapt 6471251143Sbapt# Transform confdefs.h into two sed scripts, `conftest.defines' and 6472251143Sbapt# `conftest.undefs', that substitutes the proper values into 6473251143Sbapt# config.h.in to produce config.h. The first handles `#define' 6474251143Sbapt# templates, and the second `#undef' templates. 6475251143Sbapt# And first: Protect against being on the right side of a sed subst in 6476251143Sbapt# config.status. Protect against being in an unquoted here document 6477251143Sbapt# in config.status. 6478251143Sbaptrm -f conftest.defines conftest.undefs 6479251143Sbapt# Using a here document instead of a string reduces the quoting nightmare. 6480251143Sbapt# Putting comments in sed scripts is not portable. 6481251143Sbapt# 6482251143Sbapt# `end' is used to avoid that the second main sed command (meant for 6483251143Sbapt# 0-ary CPP macros) applies to n-ary macro definitions. 6484251143Sbapt# See the Autoconf documentation for `clear'. 6485251143Sbaptcat >confdef2sed.sed <<\EOF 6486251143Sbapts/[\\&,]/\\&/g 6487251143Sbapts,[\\$`],\\&,g 6488251143Sbaptt clear 6489251143Sbapt: clear 6490251143Sbapts,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp 6491251143Sbaptt end 6492251143Sbapts,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 6493251143Sbapt: end 6494251143SbaptEOF 6495251143Sbapt# If some macros were called several times there might be several times 6496251143Sbapt# the same #defines, which is useless. Nevertheless, we may not want to 6497251143Sbapt# sort them, since we want the *last* AC-DEFINE to be honored. 6498251143Sbaptuniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 6499251143Sbaptsed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 6500251143Sbaptsed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs 6501251143Sbaptrm -f confdef2sed.sed 6502234949Sbapt 6503251143Sbapt# This sed command replaces #undef with comments. This is necessary, for 6504251143Sbapt# example, in the case of _POSIX_SOURCE, which is predefined and required 6505251143Sbapt# on some systems where configure will not decide to define it. 6506251143Sbaptcat >>conftest.undefs <<\EOF 6507251143Sbapts,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 6508251143SbaptEOF 6509234949Sbapt 6510251143Sbapt# Break up conftest.defines because some shells have a limit on the size 6511251143Sbapt# of here documents, and old seds have small limits too (100 cmds). 6512251143Sbaptecho ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 6513251143Sbaptecho ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 6514251143Sbaptecho ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 6515251143Sbaptecho ' :' >>$CONFIG_STATUS 6516234949Sbaptrm -f conftest.tail 6517251143Sbaptwhile grep . conftest.defines >/dev/null 6518234949Sbaptdo 6519251143Sbapt # Write a limited-size here document to $tmp/defines.sed. 6520251143Sbapt echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 6521251143Sbapt # Speed up: don't consider the non `#define' lines. 6522251143Sbapt echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 6523251143Sbapt # Work around the forget-to-reset-the-flag bug. 6524251143Sbapt echo 't clr' >>$CONFIG_STATUS 6525251143Sbapt echo ': clr' >>$CONFIG_STATUS 6526251143Sbapt sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 6527251143Sbapt echo 'CEOF 6528251143Sbapt sed -f $tmp/defines.sed $tmp/in >$tmp/out 6529251143Sbapt rm -f $tmp/in 6530251143Sbapt mv $tmp/out $tmp/in 6531251143Sbapt' >>$CONFIG_STATUS 6532251143Sbapt sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 6533251143Sbapt rm -f conftest.defines 6534251143Sbapt mv conftest.tail conftest.defines 6535234949Sbaptdone 6536251143Sbaptrm -f conftest.defines 6537251143Sbaptecho ' fi # egrep' >>$CONFIG_STATUS 6538251143Sbaptecho >>$CONFIG_STATUS 6539234949Sbapt 6540251143Sbapt# Break up conftest.undefs because some shells have a limit on the size 6541251143Sbapt# of here documents, and old seds have small limits too (100 cmds). 6542251143Sbaptecho ' # Handle all the #undef templates' >>$CONFIG_STATUS 6543251143Sbaptrm -f conftest.tail 6544251143Sbaptwhile grep . conftest.undefs >/dev/null 6545251143Sbaptdo 6546251143Sbapt # Write a limited-size here document to $tmp/undefs.sed. 6547251143Sbapt echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 6548251143Sbapt # Speed up: don't consider the non `#undef' 6549251143Sbapt echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 6550251143Sbapt # Work around the forget-to-reset-the-flag bug. 6551251143Sbapt echo 't clr' >>$CONFIG_STATUS 6552251143Sbapt echo ': clr' >>$CONFIG_STATUS 6553251143Sbapt sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 6554251143Sbapt echo 'CEOF 6555251143Sbapt sed -f $tmp/undefs.sed $tmp/in >$tmp/out 6556251143Sbapt rm -f $tmp/in 6557251143Sbapt mv $tmp/out $tmp/in 6558251143Sbapt' >>$CONFIG_STATUS 6559251143Sbapt sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 6560251143Sbapt rm -f conftest.undefs 6561251143Sbapt mv conftest.tail conftest.undefs 6562251143Sbaptdone 6563251143Sbaptrm -f conftest.undefs 6564234949Sbapt 6565234949Sbaptcat >>$CONFIG_STATUS <<\EOF 6566234949Sbapt # Let's still pretend it is `configure' which instantiates (i.e., don't 6567234949Sbapt # use $as_me), people would be surprised to read: 6568234949Sbapt # /* config.h. Generated automatically by config.status. */ 6569234949Sbapt if test x"$ac_file" = x-; then 6570234949Sbapt echo "/* Generated automatically by configure. */" >$tmp/config.h 6571234949Sbapt else 6572234949Sbapt echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h 6573234949Sbapt fi 6574234949Sbapt cat $tmp/in >>$tmp/config.h 6575234949Sbapt rm -f $tmp/in 6576234949Sbapt if test x"$ac_file" != x-; then 6577234949Sbapt if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 6578319349Sjkim { echo "$as_me:6578: $ac_file is unchanged" >&5 6579234949Sbaptecho "$as_me: $ac_file is unchanged" >&6;} 6580234949Sbapt else 6581234949Sbapt ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6582234949Sbapt X"$ac_file" : 'X\(//\)[^/]' \| \ 6583234949Sbapt X"$ac_file" : 'X\(//\)$' \| \ 6584234949Sbapt X"$ac_file" : 'X\(/\)' \| \ 6585234949Sbapt . : '\(.\)' 2>/dev/null || 6586234949Sbaptecho X"$ac_file" | 6587234949Sbapt sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6588234949Sbapt /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6589234949Sbapt /^X\(\/\/\)$/{ s//\1/; q; } 6590234949Sbapt /^X\(\/\).*/{ s//\1/; q; } 6591234949Sbapt s/.*/./; q'` 6592234949Sbapt if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 6593234949Sbapt { case "$ac_dir" in 6594234949Sbapt [\\/]* | ?:[\\/]* ) as_incr_dir=;; 6595234949Sbapt *) as_incr_dir=.;; 6596234949Sbaptesac 6597234949Sbaptas_dummy="$ac_dir" 6598234949Sbaptfor as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 6599234949Sbapt case $as_mkdir_dir in 6600234949Sbapt # Skip DOS drivespec 6601234949Sbapt ?:) as_incr_dir=$as_mkdir_dir ;; 6602234949Sbapt *) 6603234949Sbapt as_incr_dir=$as_incr_dir/$as_mkdir_dir 6604234949Sbapt test -d "$as_incr_dir" || mkdir "$as_incr_dir" 6605234949Sbapt ;; 6606234949Sbapt esac 6607234949Sbaptdone; } 6608234949Sbapt 6609234949Sbapt fi 6610234949Sbapt rm -f $ac_file 6611234949Sbapt mv $tmp/config.h $ac_file 6612234949Sbapt fi 6613234949Sbapt else 6614234949Sbapt cat $tmp/config.h 6615234949Sbapt rm -f $tmp/config.h 6616234949Sbapt fi 6617234949Sbaptdone 6618234949SbaptEOF 6619234949Sbapt 6620234949Sbaptcat >>$CONFIG_STATUS <<\EOF 6621234949Sbapt 6622234949Sbapt{ (exit 0); exit 0; } 6623234949SbaptEOF 6624234949Sbaptchmod +x $CONFIG_STATUS 6625234949Sbaptac_clean_files=$ac_clean_files_save 6626234949Sbapt 6627234949Sbapt# configure is writing to config.log, and then calls config.status. 6628234949Sbapt# config.status does its own redirection, appending to config.log. 6629234949Sbapt# Unfortunately, on DOS this fails, as config.log is still kept open 6630234949Sbapt# by configure, so config.status won't be able to write to it; its 6631234949Sbapt# output is simply discarded. So we exec the FD to /dev/null, 6632234949Sbapt# effectively closing config.log, so it can be properly (re)opened and 6633234949Sbapt# appended to by config.status. When coming back to configure, we 6634234949Sbapt# need to make the FD available again. 6635234949Sbaptif test "$no_create" != yes; then 6636234949Sbapt ac_cs_success=: 6637234949Sbapt exec 5>/dev/null 6638234949Sbapt $SHELL $CONFIG_STATUS || ac_cs_success=false 6639234949Sbapt exec 5>>config.log 6640234949Sbapt # Use ||, not &&, to avoid exiting from the if with $? = 1, which 6641234949Sbapt # would make configure fail if this is the last instruction. 6642234949Sbapt $ac_cs_success || { (exit 1); exit 1; } 6643234949Sbaptfi 6644234949Sbapt 6645260445Sbapttest -z "$cf_make_docs" && cf_make_docs=0 6646260445Sbapt 6647260445Sbaptcf_output=makefile 6648260445Sbapttest -f "$cf_output" || cf_output=Makefile 6649260445Sbapt 6650260445Sbaptif test "$cf_make_docs" = 0 6651260445Sbaptthen 6652296240Sjkimcat >>$cf_output <<CF_EOF 6653260445Sbapt################################################################################ 6654296240Sjkim## generated by CF_MAKE_DOCS 6655260445Sbapt.SUFFIXES : .html .1 .man .ps .pdf .txt 6656260445Sbapt 6657296240Sjkim${NROFF_NOTE}.1.txt : 6658296240Sjkim${NROFF_NOTE} \$(SHELL) -c "tbl \$*.1 | nroff -man | col -bx" >\$@ 6659260445Sbapt 6660296240Sjkim${GROFF_NOTE}.ps.pdf : 6661296240Sjkim${GROFF_NOTE} ps2pdf \$*.ps 6662296240Sjkim${GROFF_NOTE} 6663296240Sjkim${GROFF_NOTE}.1.ps : 6664296240Sjkim${GROFF_NOTE} \$(SHELL) -c "tbl \$*.1 | groff -man" >\$@ 6665296240Sjkim${GROFF_NOTE} 6666296240Sjkim${GROFF_NOTE}.1.txt : 6667296240Sjkim${GROFF_NOTE} GROFF_NO_SGR=stupid \$(SHELL) -c "tbl \$*.1 | nroff -Tascii -man | col -bx" >\$@ 6668260445Sbapt 6669296240Sjkim${MAN2HTML_NOTE}.1.html : 6670296240Sjkim${MAN2HTML_NOTE} ./${MAN2HTML_TEMP} \$* 1 man >\$@ 6671260445Sbapt 6672260445SbaptCF_EOF 6673260445Sbapt cf_make_docs=1 6674260445Sbaptfi 6675260445Sbapt 6676260445Sbaptfor cf_name in yacc 6677260445Sbaptdo 6678260445Sbaptcat >>$cf_output <<CF_EOF 6679260445Sbapt################################################################################ 6680296240Sjkim${NROFF_NOTE}docs docs-$cf_name :: $cf_name.txt 6681296240Sjkim${MAN2HTML_NOTE}docs docs-$cf_name :: $cf_name.html 6682296240Sjkim${GROFF_NOTE}docs docs-$cf_name :: $cf_name.pdf 6683296240Sjkim${GROFF_NOTE}docs docs-$cf_name :: $cf_name.ps 6684296240Sjkim${GROFF_NOTE}docs docs-$cf_name :: $cf_name.txt 6685260445Sbapt 6686260445Sbaptclean \\ 6687260445Sbaptdocs-clean :: 6688296240Sjkim${NROFF_NOTE} rm -f $cf_name.txt 6689296240Sjkim${MAN2HTML_NOTE} rm -f $cf_name.html 6690296240Sjkim${GROFF_NOTE} rm -f $cf_name.pdf 6691296240Sjkim${GROFF_NOTE} rm -f $cf_name.ps 6692296240Sjkim${GROFF_NOTE} rm -f $cf_name.txt 6693260445Sbapt 6694296240Sjkim${NROFF_NOTE}$cf_name.txt : $cf_name.1 6695296240Sjkim${MAN2HTML_NOTE}$cf_name.html : $cf_name.1 6696296240Sjkim${GROFF_NOTE}$cf_name.pdf : $cf_name.ps 6697296240Sjkim${GROFF_NOTE}$cf_name.ps : $cf_name.1 6698296240Sjkim${GROFF_NOTE}$cf_name.txt : $cf_name.1 6699260445SbaptCF_EOF 6700260445Sbaptdone 6701260445Sbapt 6702