1234949Sbapt#! /bin/sh 2272957Srodrigc# From configure.in Revision: 1.20 . 3234949Sbapt# Guess values for system-dependent variables and create Makefiles. 4251143Sbapt# Generated by Autoconf 2.52.20121002. 5234949Sbapt# 6234949Sbapt# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 7234949Sbapt# Free Software Foundation, Inc. 8234949Sbapt# This configure script is free software; the Free Software Foundation 9234949Sbapt# gives unlimited permission to copy, distribute and modify it. 10234949Sbapt 11234949Sbapt# Avoid depending upon Character Ranges. 12234949Sbaptas_cr_letters='abcdefghijklmnopqrstuvwxyz' 13234949Sbaptas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14234949Sbaptas_cr_Letters=$as_cr_letters$as_cr_LETTERS 15234949Sbaptas_cr_digits='0123456789' 16234949Sbaptas_cr_alnum=$as_cr_Letters$as_cr_digits 17234949Sbapt 18234949Sbapt# Sed expression to map a string onto a valid variable name. 19234949Sbaptas_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 20234949Sbapt 21234949Sbapt# Sed expression to map a string onto a valid CPP name. 22234949Sbaptas_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 23234949Sbapt 24234949Sbapt# Be Bourne compatible 25234949Sbaptif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 26234949Sbapt emulate sh 27234949Sbapt NULLCMD=: 28234949Sbaptelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 29234949Sbapt set -o posix 30234949Sbaptfi 31234949Sbapt 32234949Sbapt# Name of the executable. 33234949Sbaptas_me=`echo "$0" |sed 's,.*[\\/],,'` 34234949Sbapt 35234949Sbaptif expr a : '\(a\)' >/dev/null 2>&1; then 36234949Sbapt as_expr=expr 37234949Sbaptelse 38234949Sbapt as_expr=false 39234949Sbaptfi 40234949Sbapt 41234949Sbaptrm -f conf$$ conf$$.exe conf$$.file 42234949Sbaptecho >conf$$.file 43234949Sbaptif ln -s conf$$.file conf$$ 2>/dev/null; then 44234949Sbapt # We could just check for DJGPP; but this test a) works b) is more generic 45234949Sbapt # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 46234949Sbapt if test -f conf$$.exe; then 47234949Sbapt # Don't use ln at all; we don't have any links 48234949Sbapt as_ln_s='cp -p' 49234949Sbapt else 50234949Sbapt as_ln_s='ln -s' 51234949Sbapt fi 52234949Sbaptelif ln conf$$.file conf$$ 2>/dev/null; then 53234949Sbapt as_ln_s=ln 54234949Sbaptelse 55234949Sbapt as_ln_s='cp -p' 56234949Sbaptfi 57234949Sbaptrm -f conf$$ conf$$.exe conf$$.file 58234949Sbapt 59234949Sbaptas_executable_p="test -f" 60234949Sbapt 61234949Sbapt# Support unset when possible. 62234949Sbaptif (FOO=FOO; unset FOO) >/dev/null 2>&1; then 63234949Sbapt as_unset=unset 64234949Sbaptelse 65234949Sbapt as_unset=false 66234949Sbaptfi 67234949Sbapt 68234949Sbapt# NLS nuisances. 69234949Sbapt$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 70234949Sbapt$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 71234949Sbapt$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 72234949Sbapt$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 73234949Sbapt$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 74234949Sbapt$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 75234949Sbapt$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 76234949Sbapt$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 77234949Sbapt 78234949Sbapt# IFS 79234949Sbapt# We need space, tab and new line, in precisely that order. 80234949Sbaptas_nl=' 81234949Sbapt' 82234949SbaptIFS=" $as_nl" 83234949Sbapt 84234949Sbapt# CDPATH. 85234949Sbapt$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 86234949Sbapt 87234949Sbapt# Name of the host. 88234949Sbapt# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 89234949Sbapt# so uname gets run too. 90234949Sbaptac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 91234949Sbapt 92234949Sbaptexec 6>&1 93234949Sbapt 94234949Sbapt# 95234949Sbapt# Initializations. 96234949Sbapt# 97234949Sbaptac_default_prefix=/usr/local 98234949Sbaptcross_compiling=no 99234949Sbaptsubdirs= 100234949SbaptMFLAGS= MAKEFLAGS= 101234949SbaptSHELL=${CONFIG_SHELL-/bin/sh} 102234949Sbapt 103234949Sbapt# Maximum number of lines to put in a shell here document. 104234949Sbapt# This variable seems obsolete. It should probably be removed, and 105234949Sbapt# only ac_max_sed_lines should be used. 106234949Sbapt: ${ac_max_here_lines=38} 107234949Sbapt 108234949Sbaptac_unique_file="main.c" 109272957Srodrigc# Factoring default headers for most tests. 110272957Srodrigcac_includes_default="\ 111272957Srodrigc#include <stdio.h> 112272957Srodrigc#if HAVE_SYS_TYPES_H 113272957Srodrigc# include <sys/types.h> 114272957Srodrigc#endif 115272957Srodrigc#if HAVE_SYS_STAT_H 116272957Srodrigc# include <sys/stat.h> 117272957Srodrigc#endif 118272957Srodrigc#if STDC_HEADERS 119272957Srodrigc# include <stdlib.h> 120272957Srodrigc# include <stddef.h> 121272957Srodrigc#else 122272957Srodrigc# if HAVE_STDLIB_H 123272957Srodrigc# include <stdlib.h> 124272957Srodrigc# endif 125272957Srodrigc#endif 126272957Srodrigc#if HAVE_STRING_H 127272957Srodrigc# if !STDC_HEADERS && HAVE_MEMORY_H 128272957Srodrigc# include <memory.h> 129272957Srodrigc# endif 130272957Srodrigc# include <string.h> 131272957Srodrigc#endif 132272957Srodrigc#if HAVE_STRINGS_H 133272957Srodrigc# include <strings.h> 134272957Srodrigc#endif 135272957Srodrigc#if HAVE_INTTYPES_H 136272957Srodrigc# include <inttypes.h> 137272957Srodrigc#else 138272957Srodrigc# if HAVE_STDINT_H 139272957Srodrigc# include <stdint.h> 140272957Srodrigc# endif 141272957Srodrigc#endif 142272957Srodrigc#if HAVE_UNISTD_H 143272957Srodrigc# include <unistd.h> 144272957Srodrigc#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 691268899Sbapt --with-max-table-size=N set the maximum table size = N (no default) 692268899Sbapt --enable-btyacc turn on support for the btyacc backtracking 693268899Sbapt 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 700234949Sbapt 701234949SbaptSome influential environment variables: 702234949Sbapt CC C compiler command 703234949Sbapt CFLAGS C compiler flags 704234949Sbapt LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 705234949Sbapt nonstandard directory <lib dir> 706234949Sbapt CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 707234949Sbapt headers in a nonstandard directory <include dir> 708234949Sbapt CPP C preprocessor 709234949Sbapt 710234949SbaptUse these variables to override the choices made by `configure' or to help 711234949Sbaptit to find libraries and programs with nonstandard names/locations. 712234949Sbapt 713234949SbaptEOF 714234949Sbaptfi 715234949Sbapt 716234949Sbaptif test "$ac_init_help" = "recursive"; then 717234949Sbapt # If there are subdirs, report their specific --help. 718234949Sbapt ac_popdir=`pwd` 719234949Sbapt for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue 720234949Sbapt cd $ac_subdir 721234949Sbapt # A "../" for each directory in /$ac_subdir. 722234949Sbapt ac_dots=`echo $ac_subdir | 723234949Sbapt sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 724234949Sbapt 725234949Sbapt case $srcdir in 726234949Sbapt .) # No --srcdir option. We are building in place. 727234949Sbapt ac_sub_srcdir=$srcdir ;; 728234949Sbapt [\\/]* | ?:[\\/]* ) # Absolute path. 729234949Sbapt ac_sub_srcdir=$srcdir/$ac_subdir ;; 730234949Sbapt *) # Relative path. 731234949Sbapt ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; 732234949Sbapt esac 733234949Sbapt 734234949Sbapt # Check for guested configure; otherwise get Cygnus style configure. 735234949Sbapt if test -f $ac_sub_srcdir/configure.gnu; then 736234949Sbapt echo 737234949Sbapt $SHELL $ac_sub_srcdir/configure.gnu --help=recursive 738234949Sbapt elif test -f $ac_sub_srcdir/configure; then 739234949Sbapt echo 740234949Sbapt $SHELL $ac_sub_srcdir/configure --help=recursive 741234949Sbapt elif test -f $ac_sub_srcdir/configure.ac || 742234949Sbapt test -f $ac_sub_srcdir/configure.in; then 743234949Sbapt echo 744234949Sbapt $ac_configure --help 745234949Sbapt else 746234949Sbapt echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 747234949Sbapt fi 748234949Sbapt cd $ac_popdir 749234949Sbapt done 750234949Sbaptfi 751234949Sbapt 752234949Sbapttest -n "$ac_init_help" && exit 0 753234949Sbaptif $ac_init_version; then 754234949Sbapt cat <<\EOF 755234949Sbapt 756234949SbaptCopyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 757234949SbaptFree Software Foundation, Inc. 758234949SbaptThis configure script is free software; the Free Software Foundation 759234949Sbaptgives unlimited permission to copy, distribute and modify it. 760234949SbaptEOF 761234949Sbapt exit 0 762234949Sbaptfi 763234949Sbaptexec 5>config.log 764234949Sbaptcat >&5 <<EOF 765234949SbaptThis file contains any messages produced by compilers while 766234949Sbaptrunning configure, to aid debugging if configure makes a mistake. 767234949Sbapt 768234949SbaptIt was created by $as_me, which was 769251143Sbaptgenerated by GNU Autoconf 2.52.20121002. Invocation command line was 770234949Sbapt 771234949Sbapt $ $0 $@ 772234949Sbapt 773234949SbaptEOF 774234949Sbapt{ 775234949Sbaptcat <<_ASUNAME 776234949Sbapt## ---------- ## 777234949Sbapt## Platform. ## 778234949Sbapt## ---------- ## 779234949Sbapt 780234949Sbapthostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 781234949Sbaptuname -m = `(uname -m) 2>/dev/null || echo unknown` 782234949Sbaptuname -r = `(uname -r) 2>/dev/null || echo unknown` 783234949Sbaptuname -s = `(uname -s) 2>/dev/null || echo unknown` 784234949Sbaptuname -v = `(uname -v) 2>/dev/null || echo unknown` 785234949Sbapt 786234949Sbapt/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 787234949Sbapt/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 788234949Sbapt 789234949Sbapt/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 790234949Sbapt/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 791234949Sbapt/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 792234949Sbapthostinfo = `(hostinfo) 2>/dev/null || echo unknown` 793234949Sbapt/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 794234949Sbapt/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 795234949Sbapt/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 796234949Sbapt 797234949SbaptPATH = $PATH 798234949Sbapt 799234949Sbapt_ASUNAME 800234949Sbapt} >&5 801234949Sbapt 802234949Sbaptcat >&5 <<EOF 803234949Sbapt## ------------ ## 804234949Sbapt## Core tests. ## 805234949Sbapt## ------------ ## 806234949Sbapt 807234949SbaptEOF 808234949Sbapt 809234949Sbapt# Keep a trace of the command line. 810234949Sbapt# Strip out --no-create and --no-recursion so they do not pile up. 811234949Sbapt# Also quote any args containing shell meta-characters. 812234949Sbaptac_configure_args= 813234949Sbaptac_sep= 814234949Sbaptfor ac_arg 815234949Sbaptdo 816234949Sbapt case $ac_arg in 817234949Sbapt -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 818234949Sbapt | --no-cr | --no-c) ;; 819234949Sbapt -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 820234949Sbapt | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 821234949Sbapt *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 822234949Sbapt ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 823234949Sbapt ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 824234949Sbapt ac_sep=" " ;; 825234949Sbapt *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" 826234949Sbapt ac_sep=" " ;; 827234949Sbapt esac 828234949Sbapt # Get rid of the leading space. 829234949Sbaptdone 830234949Sbapt 831234949Sbapt# When interrupted or exit'd, cleanup temporary files, and complete 832234949Sbapt# config.log. We remove comments because anyway the quotes in there 833234949Sbapt# would cause problems or look ugly. 834234949Sbapttrap 'exit_status=$? 835234949Sbapt # Save into config.log some information that might help in debugging. 836234949Sbapt echo >&5 837234949Sbapt echo "## ----------------- ##" >&5 838234949Sbapt echo "## Cache variables. ##" >&5 839234949Sbapt echo "## ----------------- ##" >&5 840234949Sbapt echo >&5 841234949Sbapt # The following way of writing the cache mishandles newlines in values, 842234949Sbapt{ 843234949Sbapt (set) 2>&1 | 844234949Sbapt case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 845234949Sbapt *ac_space=\ *) 846234949Sbapt sed -n \ 847234949Sbapt "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 848234949Sbapt s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 849234949Sbapt ;; 850234949Sbapt *) 851234949Sbapt sed -n \ 852234949Sbapt "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 853234949Sbapt ;; 854234949Sbapt esac; 855234949Sbapt} >&5 856234949Sbapt sed "/^$/d" confdefs.h >conftest.log 857234949Sbapt if test -s conftest.log; then 858234949Sbapt echo >&5 859234949Sbapt echo "## ------------ ##" >&5 860234949Sbapt echo "## confdefs.h. ##" >&5 861234949Sbapt echo "## ------------ ##" >&5 862234949Sbapt echo >&5 863234949Sbapt cat conftest.log >&5 864234949Sbapt fi 865234949Sbapt (echo; echo) >&5 866234949Sbapt test "$ac_signal" != 0 && 867234949Sbapt echo "$as_me: caught signal $ac_signal" >&5 868234949Sbapt echo "$as_me: exit $exit_status" >&5 869234949Sbapt rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && 870234949Sbapt exit $exit_status 871234949Sbapt ' 0 872234949Sbaptfor ac_signal in 1 2 13 15; do 873234949Sbapt trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 874234949Sbaptdone 875234949Sbaptac_signal=0 876234949Sbapt 877234949Sbapt# confdefs.h avoids OS command line length limits that DEFS can exceed. 878234949Sbaptrm -rf conftest* confdefs.h 879234949Sbapt# AIX cpp loses on an empty file, so make sure it contains at least a newline. 880234949Sbaptecho >confdefs.h 881234949Sbapt 882234949Sbapt# Let the site file select an alternate cache file if it wants to. 883234949Sbapt# Prefer explicitly selected file to automatically selected ones. 884234949Sbaptif test -z "$CONFIG_SITE"; then 885234949Sbapt if test "x$prefix" != xNONE; then 886234949Sbapt CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 887234949Sbapt else 888234949Sbapt CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 889234949Sbapt fi 890234949Sbaptfi 891234949Sbaptfor ac_site_file in $CONFIG_SITE; do 892234949Sbapt if test -r "$ac_site_file"; then 893272957Srodrigc { echo "$as_me:893: loading site script $ac_site_file" >&5 894234949Sbaptecho "$as_me: loading site script $ac_site_file" >&6;} 895234949Sbapt cat "$ac_site_file" >&5 896234949Sbapt . "$ac_site_file" 897234949Sbapt fi 898234949Sbaptdone 899234949Sbapt 900234949Sbaptif test -r "$cache_file"; then 901234949Sbapt # Some versions of bash will fail to source /dev/null (special 902234949Sbapt # files actually), so we avoid doing that. 903234949Sbapt if test -f "$cache_file"; then 904272957Srodrigc { echo "$as_me:904: loading cache $cache_file" >&5 905234949Sbaptecho "$as_me: loading cache $cache_file" >&6;} 906234949Sbapt case $cache_file in 907234949Sbapt [\\/]* | ?:[\\/]* ) . $cache_file;; 908234949Sbapt *) . ./$cache_file;; 909234949Sbapt esac 910234949Sbapt fi 911234949Sbaptelse 912272957Srodrigc { echo "$as_me:912: creating cache $cache_file" >&5 913234949Sbaptecho "$as_me: creating cache $cache_file" >&6;} 914234949Sbapt >$cache_file 915234949Sbaptfi 916234949Sbapt 917234949Sbapt# Check that the precious variables saved in the cache have kept the same 918234949Sbapt# value. 919234949Sbaptac_cache_corrupted=false 920234949Sbaptfor ac_var in `(set) 2>&1 | 921234949Sbapt sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 922234949Sbapt eval ac_old_set=\$ac_cv_env_${ac_var}_set 923234949Sbapt eval ac_new_set=\$ac_env_${ac_var}_set 924234949Sbapt eval ac_old_val="\$ac_cv_env_${ac_var}_value" 925234949Sbapt eval ac_new_val="\$ac_env_${ac_var}_value" 926234949Sbapt case $ac_old_set,$ac_new_set in 927234949Sbapt set,) 928272957Srodrigc { echo "$as_me:928: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 929234949Sbaptecho "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 930234949Sbapt ac_cache_corrupted=: ;; 931234949Sbapt ,set) 932272957Srodrigc { echo "$as_me:932: error: \`$ac_var' was not set in the previous run" >&5 933234949Sbaptecho "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 934234949Sbapt ac_cache_corrupted=: ;; 935234949Sbapt ,);; 936234949Sbapt *) 937234949Sbapt if test "x$ac_old_val" != "x$ac_new_val"; then 938272957Srodrigc { echo "$as_me:938: error: \`$ac_var' has changed since the previous run:" >&5 939234949Sbaptecho "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 940272957Srodrigc { echo "$as_me:940: former value: $ac_old_val" >&5 941234949Sbaptecho "$as_me: former value: $ac_old_val" >&2;} 942272957Srodrigc { echo "$as_me:942: current value: $ac_new_val" >&5 943234949Sbaptecho "$as_me: current value: $ac_new_val" >&2;} 944234949Sbapt ac_cache_corrupted=: 945234949Sbapt fi;; 946234949Sbapt esac 947234949Sbapt # Pass precious variables to config.status. It doesn't matter if 948234949Sbapt # we pass some twice (in addition to the command line arguments). 949234949Sbapt if test "$ac_new_set" = set; then 950234949Sbapt case $ac_new_val in 951234949Sbapt *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 952234949Sbapt ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` 953234949Sbapt ac_configure_args="$ac_configure_args '$ac_arg'" 954234949Sbapt ;; 955234949Sbapt *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" 956234949Sbapt ;; 957234949Sbapt esac 958234949Sbapt fi 959234949Sbaptdone 960234949Sbaptif $ac_cache_corrupted; then 961272957Srodrigc { echo "$as_me:961: error: changes in the environment can compromise the build" >&5 962234949Sbaptecho "$as_me: error: changes in the environment can compromise the build" >&2;} 963272957Srodrigc { { echo "$as_me:963: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 964234949Sbaptecho "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 965234949Sbapt { (exit 1); exit 1; }; } 966234949Sbaptfi 967234949Sbapt 968234949Sbaptac_ext=c 969234949Sbaptac_cpp='$CPP $CPPFLAGS' 970234949Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 971234949Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 972234949Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu 973234949Sbaptac_main_return=return 974234949Sbapt 975234949Sbaptcase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 976234949Sbapt *c*,-n*) ECHO_N= ECHO_C=' 977234949Sbapt' ECHO_T=' ' ;; 978234949Sbapt *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 979234949Sbapt *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 980234949Sbaptesac 981234949Sbaptecho "#! $SHELL" >conftest.sh 982234949Sbaptecho "exit 0" >>conftest.sh 983234949Sbaptchmod +x conftest.sh 984272957Srodrigcif { (echo "$as_me:984: PATH=\".;.\"; conftest.sh") >&5 985234949Sbapt (PATH=".;."; conftest.sh) 2>&5 986234949Sbapt ac_status=$? 987272957Srodrigc echo "$as_me:987: \$? = $ac_status" >&5 988234949Sbapt (exit $ac_status); }; then 989234949Sbapt ac_path_separator=';' 990234949Sbaptelse 991234949Sbapt ac_path_separator=: 992234949Sbaptfi 993234949SbaptPATH_SEPARATOR="$ac_path_separator" 994234949Sbaptrm -f conftest.sh 995234949Sbapt 996234949Sbaptac_config_headers="$ac_config_headers config.h:config_h.in" 997234949Sbapt 998234949Sbaptac_aux_dir= 999234949Sbaptfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1000234949Sbapt if test -f $ac_dir/install-sh; then 1001234949Sbapt ac_aux_dir=$ac_dir 1002234949Sbapt ac_install_sh="$ac_aux_dir/install-sh -c" 1003234949Sbapt break 1004234949Sbapt elif test -f $ac_dir/install.sh; then 1005234949Sbapt ac_aux_dir=$ac_dir 1006234949Sbapt ac_install_sh="$ac_aux_dir/install.sh -c" 1007234949Sbapt break 1008234949Sbapt elif test -f $ac_dir/shtool; then 1009234949Sbapt ac_aux_dir=$ac_dir 1010234949Sbapt ac_install_sh="$ac_aux_dir/shtool install -c" 1011234949Sbapt break 1012234949Sbapt fi 1013234949Sbaptdone 1014234949Sbaptif test -z "$ac_aux_dir"; then 1015272957Srodrigc { { echo "$as_me:1015: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1016234949Sbaptecho "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1017234949Sbapt { (exit 1); exit 1; }; } 1018234949Sbaptfi 1019234949Sbaptac_config_guess="$SHELL $ac_aux_dir/config.guess" 1020234949Sbaptac_config_sub="$SHELL $ac_aux_dir/config.sub" 1021234949Sbaptac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1022234949Sbapt 1023234949Sbapt# Make sure we can run config.sub. 1024234949Sbapt$ac_config_sub sun4 >/dev/null 2>&1 || 1025272957Srodrigc { { echo "$as_me:1025: error: cannot run $ac_config_sub" >&5 1026234949Sbaptecho "$as_me: error: cannot run $ac_config_sub" >&2;} 1027234949Sbapt { (exit 1); exit 1; }; } 1028234949Sbapt 1029272957Srodrigcecho "$as_me:1029: checking build system type" >&5 1030234949Sbaptecho $ECHO_N "checking build system type... $ECHO_C" >&6 1031234949Sbaptif test "${ac_cv_build+set}" = set; then 1032234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1033234949Sbaptelse 1034234949Sbapt ac_cv_build_alias=$build_alias 1035234949Sbapttest -z "$ac_cv_build_alias" && 1036234949Sbapt ac_cv_build_alias=`$ac_config_guess` 1037234949Sbapttest -z "$ac_cv_build_alias" && 1038272957Srodrigc { { echo "$as_me:1038: error: cannot guess build type; you must specify one" >&5 1039234949Sbaptecho "$as_me: error: cannot guess build type; you must specify one" >&2;} 1040234949Sbapt { (exit 1); exit 1; }; } 1041234949Sbaptac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1042272957Srodrigc { { echo "$as_me:1042: error: $ac_config_sub $ac_cv_build_alias failed." >&5 1043234949Sbaptecho "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} 1044234949Sbapt { (exit 1); exit 1; }; } 1045234949Sbapt 1046234949Sbaptfi 1047272957Srodrigcecho "$as_me:1047: result: $ac_cv_build" >&5 1048234949Sbaptecho "${ECHO_T}$ac_cv_build" >&6 1049234949Sbaptbuild=$ac_cv_build 1050234949Sbaptbuild_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1051234949Sbaptbuild_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1052234949Sbaptbuild_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1053234949Sbapt 1054272957Srodrigcecho "$as_me:1054: checking host system type" >&5 1055234949Sbaptecho $ECHO_N "checking host system type... $ECHO_C" >&6 1056234949Sbaptif test "${ac_cv_host+set}" = set; then 1057234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1058234949Sbaptelse 1059234949Sbapt ac_cv_host_alias=$host_alias 1060234949Sbapttest -z "$ac_cv_host_alias" && 1061234949Sbapt ac_cv_host_alias=$ac_cv_build_alias 1062234949Sbaptac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1063272957Srodrigc { { echo "$as_me:1063: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1064234949Sbaptecho "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1065234949Sbapt { (exit 1); exit 1; }; } 1066234949Sbapt 1067234949Sbaptfi 1068272957Srodrigcecho "$as_me:1068: result: $ac_cv_host" >&5 1069234949Sbaptecho "${ECHO_T}$ac_cv_host" >&6 1070234949Sbapthost=$ac_cv_host 1071234949Sbapthost_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1072234949Sbapthost_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1073234949Sbapthost_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1074234949Sbapt 1075234949Sbaptif test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then 1076272957Srodrigc echo "$as_me:1076: checking target system type" >&5 1077234949Sbaptecho $ECHO_N "checking target system type... $ECHO_C" >&6 1078234949Sbaptif test "${ac_cv_target+set}" = set; then 1079234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1080234949Sbaptelse 1081234949Sbapt ac_cv_target_alias=$target_alias 1082234949Sbapttest "x$ac_cv_target_alias" = "x" && 1083234949Sbapt ac_cv_target_alias=$ac_cv_host_alias 1084234949Sbaptac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1085272957Srodrigc { { echo "$as_me:1085: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1086234949Sbaptecho "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1087234949Sbapt { (exit 1); exit 1; }; } 1088234949Sbapt 1089234949Sbaptfi 1090272957Srodrigcecho "$as_me:1090: result: $ac_cv_target" >&5 1091234949Sbaptecho "${ECHO_T}$ac_cv_target" >&6 1092234949Sbapttarget=$ac_cv_target 1093234949Sbapttarget_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1094234949Sbapttarget_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1095234949Sbapttarget_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1096234949Sbapt 1097234949Sbapt# The aliases save the names the user supplied, while $host etc. 1098234949Sbapt# will get canonicalized. 1099234949Sbapttest -n "$target_alias" && 1100234949Sbapt test "$program_prefix$program_suffix$program_transform_name" = \ 1101234949Sbapt NONENONEs,x,x, && 1102234949Sbapt program_prefix=${target_alias}- 1103234949Sbapt system_name="$host_os" 1104234949Sbaptelse 1105234949Sbapt system_name="`(uname -s -r) 2>/dev/null`" 1106234949Sbapt if test -z "$system_name" ; then 1107234949Sbapt system_name="`(hostname) 2>/dev/null`" 1108234949Sbapt fi 1109234949Sbaptfi 1110251143Sbapttest -n "$system_name" && 1111251143Sbaptcat >>confdefs.h <<EOF 1112234949Sbapt#define SYSTEM_NAME "$system_name" 1113234949SbaptEOF 1114234949Sbapt 1115234949Sbaptif test "${cf_cv_system_name+set}" = set; then 1116234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1117234949Sbaptelse 1118234949Sbapt cf_cv_system_name="$system_name" 1119234949Sbaptfi 1120234949Sbapt 1121234949Sbapttest -z "$system_name" && system_name="$cf_cv_system_name" 1122272957Srodrigctest -n "$cf_cv_system_name" && echo "$as_me:1122: result: Configuring for $cf_cv_system_name" >&5 1123234949Sbaptecho "${ECHO_T}Configuring for $cf_cv_system_name" >&6 1124234949Sbapt 1125234949Sbaptif test ".$system_name" != ".$cf_cv_system_name" ; then 1126272957Srodrigc echo "$as_me:1126: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5 1127234949Sbaptecho "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6 1128272957Srodrigc { { echo "$as_me:1128: error: \"Please remove config.cache and try again.\"" >&5 1129234949Sbaptecho "$as_me: error: \"Please remove config.cache and try again.\"" >&2;} 1130234949Sbapt { (exit 1); exit 1; }; } 1131234949Sbaptfi 1132234949Sbapt 1133234949Sbapttest "$program_prefix" != NONE && 1134234949Sbapt program_transform_name="s,^,$program_prefix,;$program_transform_name" 1135234949Sbapt# Use a double $ so make ignores it. 1136234949Sbapttest "$program_suffix" != NONE && 1137234949Sbapt program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1138234949Sbapt# Double any \ or $. echo might interpret backslashes. 1139234949Sbapt# By default was `s,x,x', remove it if useless. 1140234949Sbaptcat <<\_ACEOF >conftest.sed 1141234949Sbapts/[\\$]/&&/g;s/;s,x,x,$// 1142234949Sbapt_ACEOF 1143234949Sbaptprogram_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1144234949Sbaptrm conftest.sed 1145234949Sbapt 1146234949Sbaptac_ext=c 1147234949Sbaptac_cpp='$CPP $CPPFLAGS' 1148234949Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1149234949Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1150234949Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu 1151234949Sbaptac_main_return=return 1152234949Sbaptif test -n "$ac_tool_prefix"; then 1153234949Sbapt # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1154234949Sbaptset dummy ${ac_tool_prefix}gcc; ac_word=$2 1155272957Srodrigcecho "$as_me:1155: checking for $ac_word" >&5 1156234949Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1157234949Sbaptif test "${ac_cv_prog_CC+set}" = set; then 1158234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1159234949Sbaptelse 1160234949Sbapt if test -n "$CC"; then 1161234949Sbapt ac_cv_prog_CC="$CC" # Let the user override the test. 1162234949Sbaptelse 1163234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 1164234949Sbaptac_dummy="$PATH" 1165234949Sbaptfor ac_dir in $ac_dummy; do 1166234949Sbapt IFS=$ac_save_IFS 1167234949Sbapt test -z "$ac_dir" && ac_dir=. 1168234949Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 1169234949Sbaptac_cv_prog_CC="${ac_tool_prefix}gcc" 1170272957Srodrigcecho "$as_me:1170: found $ac_dir/$ac_word" >&5 1171234949Sbaptbreak 1172234949Sbaptdone 1173234949Sbapt 1174234949Sbaptfi 1175234949Sbaptfi 1176234949SbaptCC=$ac_cv_prog_CC 1177234949Sbaptif test -n "$CC"; then 1178272957Srodrigc echo "$as_me:1178: result: $CC" >&5 1179234949Sbaptecho "${ECHO_T}$CC" >&6 1180234949Sbaptelse 1181272957Srodrigc echo "$as_me:1181: result: no" >&5 1182234949Sbaptecho "${ECHO_T}no" >&6 1183234949Sbaptfi 1184234949Sbapt 1185234949Sbaptfi 1186234949Sbaptif test -z "$ac_cv_prog_CC"; then 1187234949Sbapt ac_ct_CC=$CC 1188234949Sbapt # Extract the first word of "gcc", so it can be a program name with args. 1189234949Sbaptset dummy gcc; ac_word=$2 1190272957Srodrigcecho "$as_me:1190: checking for $ac_word" >&5 1191234949Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1192234949Sbaptif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1193234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1194234949Sbaptelse 1195234949Sbapt if test -n "$ac_ct_CC"; then 1196234949Sbapt ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1197234949Sbaptelse 1198234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 1199234949Sbaptac_dummy="$PATH" 1200234949Sbaptfor ac_dir in $ac_dummy; do 1201234949Sbapt IFS=$ac_save_IFS 1202234949Sbapt test -z "$ac_dir" && ac_dir=. 1203234949Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 1204234949Sbaptac_cv_prog_ac_ct_CC="gcc" 1205272957Srodrigcecho "$as_me:1205: found $ac_dir/$ac_word" >&5 1206234949Sbaptbreak 1207234949Sbaptdone 1208234949Sbapt 1209234949Sbaptfi 1210234949Sbaptfi 1211234949Sbaptac_ct_CC=$ac_cv_prog_ac_ct_CC 1212234949Sbaptif test -n "$ac_ct_CC"; then 1213272957Srodrigc echo "$as_me:1213: result: $ac_ct_CC" >&5 1214234949Sbaptecho "${ECHO_T}$ac_ct_CC" >&6 1215234949Sbaptelse 1216272957Srodrigc echo "$as_me:1216: result: no" >&5 1217234949Sbaptecho "${ECHO_T}no" >&6 1218234949Sbaptfi 1219234949Sbapt 1220234949Sbapt CC=$ac_ct_CC 1221234949Sbaptelse 1222234949Sbapt CC="$ac_cv_prog_CC" 1223234949Sbaptfi 1224234949Sbapt 1225234949Sbaptif test -z "$CC"; then 1226234949Sbapt if test -n "$ac_tool_prefix"; then 1227234949Sbapt # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1228234949Sbaptset dummy ${ac_tool_prefix}cc; ac_word=$2 1229272957Srodrigcecho "$as_me:1229: checking for $ac_word" >&5 1230234949Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1231234949Sbaptif test "${ac_cv_prog_CC+set}" = set; then 1232234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1233234949Sbaptelse 1234234949Sbapt if test -n "$CC"; then 1235234949Sbapt ac_cv_prog_CC="$CC" # Let the user override the test. 1236234949Sbaptelse 1237234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 1238234949Sbaptac_dummy="$PATH" 1239234949Sbaptfor ac_dir in $ac_dummy; do 1240234949Sbapt IFS=$ac_save_IFS 1241234949Sbapt test -z "$ac_dir" && ac_dir=. 1242234949Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 1243234949Sbaptac_cv_prog_CC="${ac_tool_prefix}cc" 1244272957Srodrigcecho "$as_me:1244: found $ac_dir/$ac_word" >&5 1245234949Sbaptbreak 1246234949Sbaptdone 1247234949Sbapt 1248234949Sbaptfi 1249234949Sbaptfi 1250234949SbaptCC=$ac_cv_prog_CC 1251234949Sbaptif test -n "$CC"; then 1252272957Srodrigc echo "$as_me:1252: result: $CC" >&5 1253234949Sbaptecho "${ECHO_T}$CC" >&6 1254234949Sbaptelse 1255272957Srodrigc echo "$as_me:1255: result: no" >&5 1256234949Sbaptecho "${ECHO_T}no" >&6 1257234949Sbaptfi 1258234949Sbapt 1259234949Sbaptfi 1260234949Sbaptif test -z "$ac_cv_prog_CC"; then 1261234949Sbapt ac_ct_CC=$CC 1262234949Sbapt # Extract the first word of "cc", so it can be a program name with args. 1263234949Sbaptset dummy cc; ac_word=$2 1264272957Srodrigcecho "$as_me:1264: checking for $ac_word" >&5 1265234949Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1266234949Sbaptif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1267234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1268234949Sbaptelse 1269234949Sbapt if test -n "$ac_ct_CC"; then 1270234949Sbapt ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1271234949Sbaptelse 1272234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 1273234949Sbaptac_dummy="$PATH" 1274234949Sbaptfor ac_dir in $ac_dummy; do 1275234949Sbapt IFS=$ac_save_IFS 1276234949Sbapt test -z "$ac_dir" && ac_dir=. 1277234949Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 1278234949Sbaptac_cv_prog_ac_ct_CC="cc" 1279272957Srodrigcecho "$as_me:1279: found $ac_dir/$ac_word" >&5 1280234949Sbaptbreak 1281234949Sbaptdone 1282234949Sbapt 1283234949Sbaptfi 1284234949Sbaptfi 1285234949Sbaptac_ct_CC=$ac_cv_prog_ac_ct_CC 1286234949Sbaptif test -n "$ac_ct_CC"; then 1287272957Srodrigc echo "$as_me:1287: result: $ac_ct_CC" >&5 1288234949Sbaptecho "${ECHO_T}$ac_ct_CC" >&6 1289234949Sbaptelse 1290272957Srodrigc echo "$as_me:1290: result: no" >&5 1291234949Sbaptecho "${ECHO_T}no" >&6 1292234949Sbaptfi 1293234949Sbapt 1294234949Sbapt CC=$ac_ct_CC 1295234949Sbaptelse 1296234949Sbapt CC="$ac_cv_prog_CC" 1297234949Sbaptfi 1298234949Sbapt 1299234949Sbaptfi 1300234949Sbaptif test -z "$CC"; then 1301234949Sbapt # Extract the first word of "cc", so it can be a program name with args. 1302234949Sbaptset dummy cc; ac_word=$2 1303272957Srodrigcecho "$as_me:1303: checking for $ac_word" >&5 1304234949Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1305234949Sbaptif test "${ac_cv_prog_CC+set}" = set; then 1306234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1307234949Sbaptelse 1308234949Sbapt if test -n "$CC"; then 1309234949Sbapt ac_cv_prog_CC="$CC" # Let the user override the test. 1310234949Sbaptelse 1311234949Sbapt ac_prog_rejected=no 1312234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 1313234949Sbaptac_dummy="$PATH" 1314234949Sbaptfor ac_dir in $ac_dummy; do 1315234949Sbapt IFS=$ac_save_IFS 1316234949Sbapt test -z "$ac_dir" && ac_dir=. 1317234949Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 1318234949Sbaptif test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1319234949Sbapt ac_prog_rejected=yes 1320234949Sbapt continue 1321234949Sbaptfi 1322234949Sbaptac_cv_prog_CC="cc" 1323272957Srodrigcecho "$as_me:1323: found $ac_dir/$ac_word" >&5 1324234949Sbaptbreak 1325234949Sbaptdone 1326234949Sbapt 1327234949Sbaptif test $ac_prog_rejected = yes; then 1328234949Sbapt # We found a bogon in the path, so make sure we never use it. 1329234949Sbapt set dummy $ac_cv_prog_CC 1330234949Sbapt shift 1331234949Sbapt if test $# != 0; then 1332234949Sbapt # We chose a different compiler from the bogus one. 1333234949Sbapt # However, it has the same basename, so the bogon will be chosen 1334234949Sbapt # first if we set CC to just the basename; use the full file name. 1335234949Sbapt shift 1336234949Sbapt set dummy "$ac_dir/$ac_word" ${1+"$@"} 1337234949Sbapt shift 1338234949Sbapt ac_cv_prog_CC="$@" 1339234949Sbapt fi 1340234949Sbaptfi 1341234949Sbaptfi 1342234949Sbaptfi 1343234949SbaptCC=$ac_cv_prog_CC 1344234949Sbaptif test -n "$CC"; then 1345272957Srodrigc echo "$as_me:1345: result: $CC" >&5 1346234949Sbaptecho "${ECHO_T}$CC" >&6 1347234949Sbaptelse 1348272957Srodrigc echo "$as_me:1348: result: no" >&5 1349234949Sbaptecho "${ECHO_T}no" >&6 1350234949Sbaptfi 1351234949Sbapt 1352234949Sbaptfi 1353234949Sbaptif test -z "$CC"; then 1354234949Sbapt if test -n "$ac_tool_prefix"; then 1355234949Sbapt for ac_prog in cl 1356234949Sbapt do 1357234949Sbapt # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1358234949Sbaptset dummy $ac_tool_prefix$ac_prog; ac_word=$2 1359272957Srodrigcecho "$as_me:1359: checking for $ac_word" >&5 1360234949Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1361234949Sbaptif test "${ac_cv_prog_CC+set}" = set; then 1362234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1363234949Sbaptelse 1364234949Sbapt if test -n "$CC"; then 1365234949Sbapt ac_cv_prog_CC="$CC" # Let the user override the test. 1366234949Sbaptelse 1367234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 1368234949Sbaptac_dummy="$PATH" 1369234949Sbaptfor ac_dir in $ac_dummy; do 1370234949Sbapt IFS=$ac_save_IFS 1371234949Sbapt test -z "$ac_dir" && ac_dir=. 1372234949Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 1373234949Sbaptac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1374272957Srodrigcecho "$as_me:1374: found $ac_dir/$ac_word" >&5 1375234949Sbaptbreak 1376234949Sbaptdone 1377234949Sbapt 1378234949Sbaptfi 1379234949Sbaptfi 1380234949SbaptCC=$ac_cv_prog_CC 1381234949Sbaptif test -n "$CC"; then 1382272957Srodrigc echo "$as_me:1382: result: $CC" >&5 1383234949Sbaptecho "${ECHO_T}$CC" >&6 1384234949Sbaptelse 1385272957Srodrigc echo "$as_me:1385: result: no" >&5 1386234949Sbaptecho "${ECHO_T}no" >&6 1387234949Sbaptfi 1388234949Sbapt 1389234949Sbapt test -n "$CC" && break 1390234949Sbapt done 1391234949Sbaptfi 1392234949Sbaptif test -z "$CC"; then 1393234949Sbapt ac_ct_CC=$CC 1394234949Sbapt for ac_prog in cl 1395234949Sbaptdo 1396234949Sbapt # Extract the first word of "$ac_prog", so it can be a program name with args. 1397234949Sbaptset dummy $ac_prog; ac_word=$2 1398272957Srodrigcecho "$as_me:1398: checking for $ac_word" >&5 1399234949Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1400234949Sbaptif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1401234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1402234949Sbaptelse 1403234949Sbapt if test -n "$ac_ct_CC"; then 1404234949Sbapt ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1405234949Sbaptelse 1406234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 1407234949Sbaptac_dummy="$PATH" 1408234949Sbaptfor ac_dir in $ac_dummy; do 1409234949Sbapt IFS=$ac_save_IFS 1410234949Sbapt test -z "$ac_dir" && ac_dir=. 1411234949Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 1412234949Sbaptac_cv_prog_ac_ct_CC="$ac_prog" 1413272957Srodrigcecho "$as_me:1413: found $ac_dir/$ac_word" >&5 1414234949Sbaptbreak 1415234949Sbaptdone 1416234949Sbapt 1417234949Sbaptfi 1418234949Sbaptfi 1419234949Sbaptac_ct_CC=$ac_cv_prog_ac_ct_CC 1420234949Sbaptif test -n "$ac_ct_CC"; then 1421272957Srodrigc echo "$as_me:1421: result: $ac_ct_CC" >&5 1422234949Sbaptecho "${ECHO_T}$ac_ct_CC" >&6 1423234949Sbaptelse 1424272957Srodrigc echo "$as_me:1424: result: no" >&5 1425234949Sbaptecho "${ECHO_T}no" >&6 1426234949Sbaptfi 1427234949Sbapt 1428234949Sbapt test -n "$ac_ct_CC" && break 1429234949Sbaptdone 1430234949Sbapt 1431234949Sbapt CC=$ac_ct_CC 1432234949Sbaptfi 1433234949Sbapt 1434234949Sbaptfi 1435234949Sbapt 1436272957Srodrigctest -z "$CC" && { { echo "$as_me:1436: error: no acceptable cc found in \$PATH" >&5 1437234949Sbaptecho "$as_me: error: no acceptable cc found in \$PATH" >&2;} 1438234949Sbapt { (exit 1); exit 1; }; } 1439234949Sbapt 1440234949Sbapt# Provide some information about the compiler. 1441272957Srodrigcecho "$as_me:1441:" \ 1442234949Sbapt "checking for C compiler version" >&5 1443234949Sbaptac_compiler=`set X $ac_compile; echo $2` 1444272957Srodrigc{ (eval echo "$as_me:1444: \"$ac_compiler --version </dev/null >&5\"") >&5 1445234949Sbapt (eval $ac_compiler --version </dev/null >&5) 2>&5 1446234949Sbapt ac_status=$? 1447272957Srodrigc echo "$as_me:1447: \$? = $ac_status" >&5 1448234949Sbapt (exit $ac_status); } 1449272957Srodrigc{ (eval echo "$as_me:1449: \"$ac_compiler -v </dev/null >&5\"") >&5 1450234949Sbapt (eval $ac_compiler -v </dev/null >&5) 2>&5 1451234949Sbapt ac_status=$? 1452272957Srodrigc echo "$as_me:1452: \$? = $ac_status" >&5 1453234949Sbapt (exit $ac_status); } 1454272957Srodrigc{ (eval echo "$as_me:1454: \"$ac_compiler -V </dev/null >&5\"") >&5 1455234949Sbapt (eval $ac_compiler -V </dev/null >&5) 2>&5 1456234949Sbapt ac_status=$? 1457272957Srodrigc echo "$as_me:1457: \$? = $ac_status" >&5 1458234949Sbapt (exit $ac_status); } 1459234949Sbapt 1460234949Sbaptcat >conftest.$ac_ext <<_ACEOF 1461272957Srodrigc#line 1461 "configure" 1462234949Sbapt#include "confdefs.h" 1463234949Sbapt 1464234949Sbaptint 1465234949Sbaptmain () 1466234949Sbapt{ 1467234949Sbapt 1468234949Sbapt ; 1469234949Sbapt return 0; 1470234949Sbapt} 1471234949Sbapt_ACEOF 1472234949Sbaptac_clean_files_save=$ac_clean_files 1473234949Sbaptac_clean_files="$ac_clean_files a.out a.exe" 1474234949Sbapt# Try to create an executable without -o first, disregard a.out. 1475234949Sbapt# It will help us diagnose broken compilers, and finding out an intuition 1476234949Sbapt# of exeext. 1477272957Srodrigcecho "$as_me:1477: checking for C compiler default output" >&5 1478234949Sbaptecho $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1479234949Sbaptac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1480272957Srodrigcif { (eval echo "$as_me:1480: \"$ac_link_default\"") >&5 1481234949Sbapt (eval $ac_link_default) 2>&5 1482234949Sbapt ac_status=$? 1483272957Srodrigc echo "$as_me:1483: \$? = $ac_status" >&5 1484234949Sbapt (exit $ac_status); }; then 1485234949Sbapt # Find the output, starting from the most likely. This scheme is 1486234949Sbapt# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1487234949Sbapt# resort. 1488234949Sbaptfor ac_file in `ls a.exe conftest.exe 2>/dev/null; 1489234949Sbapt ls a.out conftest 2>/dev/null; 1490234949Sbapt ls a.* conftest.* 2>/dev/null`; do 1491234949Sbapt case $ac_file in 1492234949Sbapt *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1493234949Sbapt a.out ) # We found the default executable, but exeext='' is most 1494234949Sbapt # certainly right. 1495234949Sbapt break;; 1496234949Sbapt *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1497234949Sbapt # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 1498234949Sbapt export ac_cv_exeext 1499234949Sbapt break;; 1500234949Sbapt * ) break;; 1501234949Sbapt esac 1502234949Sbaptdone 1503234949Sbaptelse 1504234949Sbapt echo "$as_me: failed program was:" >&5 1505234949Sbaptcat conftest.$ac_ext >&5 1506272957Srodrigc{ { echo "$as_me:1506: error: C compiler cannot create executables" >&5 1507234949Sbaptecho "$as_me: error: C compiler cannot create executables" >&2;} 1508234949Sbapt { (exit 77); exit 77; }; } 1509234949Sbaptfi 1510234949Sbapt 1511234949Sbaptac_exeext=$ac_cv_exeext 1512272957Srodrigcecho "$as_me:1512: result: $ac_file" >&5 1513234949Sbaptecho "${ECHO_T}$ac_file" >&6 1514234949Sbapt 1515234949Sbapt# Check the compiler produces executables we can run. If not, either 1516234949Sbapt# the compiler is broken, or we cross compile. 1517272957Srodrigcecho "$as_me:1517: checking whether the C compiler works" >&5 1518234949Sbaptecho $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1519234949Sbapt# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1520234949Sbapt# If not cross compiling, check that we can run a simple program. 1521234949Sbaptif test "$cross_compiling" != yes; then 1522234949Sbapt if { ac_try='./$ac_file' 1523272957Srodrigc { (eval echo "$as_me:1523: \"$ac_try\"") >&5 1524234949Sbapt (eval $ac_try) 2>&5 1525234949Sbapt ac_status=$? 1526272957Srodrigc echo "$as_me:1526: \$? = $ac_status" >&5 1527234949Sbapt (exit $ac_status); }; }; then 1528234949Sbapt cross_compiling=no 1529234949Sbapt else 1530234949Sbapt if test "$cross_compiling" = maybe; then 1531234949Sbapt cross_compiling=yes 1532234949Sbapt else 1533272957Srodrigc { { echo "$as_me:1533: error: cannot run C compiled programs. 1534234949SbaptIf you meant to cross compile, use \`--host'." >&5 1535234949Sbaptecho "$as_me: error: cannot run C compiled programs. 1536234949SbaptIf you meant to cross compile, use \`--host'." >&2;} 1537234949Sbapt { (exit 1); exit 1; }; } 1538234949Sbapt fi 1539234949Sbapt fi 1540234949Sbaptfi 1541272957Srodrigcecho "$as_me:1541: result: yes" >&5 1542234949Sbaptecho "${ECHO_T}yes" >&6 1543234949Sbapt 1544234949Sbaptrm -f a.out a.exe conftest$ac_cv_exeext 1545234949Sbaptac_clean_files=$ac_clean_files_save 1546234949Sbapt# Check the compiler produces executables we can run. If not, either 1547234949Sbapt# the compiler is broken, or we cross compile. 1548272957Srodrigcecho "$as_me:1548: checking whether we are cross compiling" >&5 1549234949Sbaptecho $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1550272957Srodrigcecho "$as_me:1550: result: $cross_compiling" >&5 1551234949Sbaptecho "${ECHO_T}$cross_compiling" >&6 1552234949Sbapt 1553272957Srodrigcecho "$as_me:1553: checking for executable suffix" >&5 1554234949Sbaptecho $ECHO_N "checking for executable suffix... $ECHO_C" >&6 1555272957Srodrigcif { (eval echo "$as_me:1555: \"$ac_link\"") >&5 1556234949Sbapt (eval $ac_link) 2>&5 1557234949Sbapt ac_status=$? 1558272957Srodrigc echo "$as_me:1558: \$? = $ac_status" >&5 1559234949Sbapt (exit $ac_status); }; then 1560234949Sbapt # If both `conftest.exe' and `conftest' are `present' (well, observable) 1561234949Sbapt# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1562234949Sbapt# work properly (i.e., refer to `conftest.exe'), while it won't with 1563234949Sbapt# `rm'. 1564234949Sbaptfor ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1565234949Sbapt case $ac_file in 1566234949Sbapt *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1567234949Sbapt *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1568234949Sbapt export ac_cv_exeext 1569234949Sbapt break;; 1570234949Sbapt * ) break;; 1571234949Sbapt esac 1572234949Sbaptdone 1573234949Sbaptelse 1574272957Srodrigc { { echo "$as_me:1574: error: cannot compute EXEEXT: cannot compile and link" >&5 1575234949Sbaptecho "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} 1576234949Sbapt { (exit 1); exit 1; }; } 1577234949Sbaptfi 1578234949Sbapt 1579234949Sbaptrm -f conftest$ac_cv_exeext 1580272957Srodrigcecho "$as_me:1580: result: $ac_cv_exeext" >&5 1581234949Sbaptecho "${ECHO_T}$ac_cv_exeext" >&6 1582234949Sbapt 1583234949Sbaptrm -f conftest.$ac_ext 1584234949SbaptEXEEXT=$ac_cv_exeext 1585234949Sbaptac_exeext=$EXEEXT 1586272957Srodrigcecho "$as_me:1586: checking for object suffix" >&5 1587234949Sbaptecho $ECHO_N "checking for object suffix... $ECHO_C" >&6 1588234949Sbaptif test "${ac_cv_objext+set}" = set; then 1589234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1590234949Sbaptelse 1591234949Sbapt cat >conftest.$ac_ext <<_ACEOF 1592272957Srodrigc#line 1592 "configure" 1593234949Sbapt#include "confdefs.h" 1594234949Sbapt 1595234949Sbaptint 1596234949Sbaptmain () 1597234949Sbapt{ 1598234949Sbapt 1599234949Sbapt ; 1600234949Sbapt return 0; 1601234949Sbapt} 1602234949Sbapt_ACEOF 1603234949Sbaptrm -f conftest.o conftest.obj 1604272957Srodrigcif { (eval echo "$as_me:1604: \"$ac_compile\"") >&5 1605234949Sbapt (eval $ac_compile) 2>&5 1606234949Sbapt ac_status=$? 1607272957Srodrigc echo "$as_me:1607: \$? = $ac_status" >&5 1608234949Sbapt (exit $ac_status); }; then 1609234949Sbapt for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1610234949Sbapt case $ac_file in 1611234949Sbapt *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;; 1612234949Sbapt *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1613234949Sbapt break;; 1614234949Sbapt esac 1615234949Sbaptdone 1616234949Sbaptelse 1617234949Sbapt echo "$as_me: failed program was:" >&5 1618234949Sbaptcat conftest.$ac_ext >&5 1619272957Srodrigc{ { echo "$as_me:1619: error: cannot compute OBJEXT: cannot compile" >&5 1620234949Sbaptecho "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} 1621234949Sbapt { (exit 1); exit 1; }; } 1622234949Sbaptfi 1623234949Sbapt 1624234949Sbaptrm -f conftest.$ac_cv_objext conftest.$ac_ext 1625234949Sbaptfi 1626272957Srodrigcecho "$as_me:1626: result: $ac_cv_objext" >&5 1627234949Sbaptecho "${ECHO_T}$ac_cv_objext" >&6 1628234949SbaptOBJEXT=$ac_cv_objext 1629234949Sbaptac_objext=$OBJEXT 1630272957Srodrigcecho "$as_me:1630: checking whether we are using the GNU C compiler" >&5 1631234949Sbaptecho $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1632234949Sbaptif test "${ac_cv_c_compiler_gnu+set}" = set; then 1633234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1634234949Sbaptelse 1635234949Sbapt cat >conftest.$ac_ext <<_ACEOF 1636272957Srodrigc#line 1636 "configure" 1637234949Sbapt#include "confdefs.h" 1638234949Sbapt 1639234949Sbaptint 1640234949Sbaptmain () 1641234949Sbapt{ 1642234949Sbapt#ifndef __GNUC__ 1643234949Sbapt choke me 1644234949Sbapt#endif 1645234949Sbapt 1646234949Sbapt ; 1647234949Sbapt return 0; 1648234949Sbapt} 1649234949Sbapt_ACEOF 1650234949Sbaptrm -f conftest.$ac_objext 1651272957Srodrigcif { (eval echo "$as_me:1651: \"$ac_compile\"") >&5 1652234949Sbapt (eval $ac_compile) 2>&5 1653234949Sbapt ac_status=$? 1654272957Srodrigc echo "$as_me:1654: \$? = $ac_status" >&5 1655234949Sbapt (exit $ac_status); } && 1656234949Sbapt { ac_try='test -s conftest.$ac_objext' 1657272957Srodrigc { (eval echo "$as_me:1657: \"$ac_try\"") >&5 1658234949Sbapt (eval $ac_try) 2>&5 1659234949Sbapt ac_status=$? 1660272957Srodrigc echo "$as_me:1660: \$? = $ac_status" >&5 1661234949Sbapt (exit $ac_status); }; }; then 1662234949Sbapt ac_compiler_gnu=yes 1663234949Sbaptelse 1664234949Sbapt echo "$as_me: failed program was:" >&5 1665234949Sbaptcat conftest.$ac_ext >&5 1666234949Sbaptac_compiler_gnu=no 1667234949Sbaptfi 1668234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 1669234949Sbaptac_cv_c_compiler_gnu=$ac_compiler_gnu 1670234949Sbapt 1671234949Sbaptfi 1672272957Srodrigcecho "$as_me:1672: result: $ac_cv_c_compiler_gnu" >&5 1673234949Sbaptecho "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1674234949SbaptGCC=`test $ac_compiler_gnu = yes && echo yes` 1675234949Sbaptac_test_CFLAGS=${CFLAGS+set} 1676234949Sbaptac_save_CFLAGS=$CFLAGS 1677234949SbaptCFLAGS="-g" 1678272957Srodrigcecho "$as_me:1678: checking whether $CC accepts -g" >&5 1679234949Sbaptecho $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1680234949Sbaptif test "${ac_cv_prog_cc_g+set}" = set; then 1681234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1682234949Sbaptelse 1683234949Sbapt cat >conftest.$ac_ext <<_ACEOF 1684272957Srodrigc#line 1684 "configure" 1685234949Sbapt#include "confdefs.h" 1686234949Sbapt 1687234949Sbaptint 1688234949Sbaptmain () 1689234949Sbapt{ 1690234949Sbapt 1691234949Sbapt ; 1692234949Sbapt return 0; 1693234949Sbapt} 1694234949Sbapt_ACEOF 1695234949Sbaptrm -f conftest.$ac_objext 1696272957Srodrigcif { (eval echo "$as_me:1696: \"$ac_compile\"") >&5 1697234949Sbapt (eval $ac_compile) 2>&5 1698234949Sbapt ac_status=$? 1699272957Srodrigc echo "$as_me:1699: \$? = $ac_status" >&5 1700234949Sbapt (exit $ac_status); } && 1701234949Sbapt { ac_try='test -s conftest.$ac_objext' 1702272957Srodrigc { (eval echo "$as_me:1702: \"$ac_try\"") >&5 1703234949Sbapt (eval $ac_try) 2>&5 1704234949Sbapt ac_status=$? 1705272957Srodrigc echo "$as_me:1705: \$? = $ac_status" >&5 1706234949Sbapt (exit $ac_status); }; }; then 1707234949Sbapt ac_cv_prog_cc_g=yes 1708234949Sbaptelse 1709234949Sbapt echo "$as_me: failed program was:" >&5 1710234949Sbaptcat conftest.$ac_ext >&5 1711234949Sbaptac_cv_prog_cc_g=no 1712234949Sbaptfi 1713234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 1714234949Sbaptfi 1715272957Srodrigcecho "$as_me:1715: result: $ac_cv_prog_cc_g" >&5 1716234949Sbaptecho "${ECHO_T}$ac_cv_prog_cc_g" >&6 1717234949Sbaptif test "$ac_test_CFLAGS" = set; then 1718234949Sbapt CFLAGS=$ac_save_CFLAGS 1719234949Sbaptelif test $ac_cv_prog_cc_g = yes; then 1720234949Sbapt if test "$GCC" = yes; then 1721234949Sbapt CFLAGS="-g -O2" 1722234949Sbapt else 1723234949Sbapt CFLAGS="-g" 1724234949Sbapt fi 1725234949Sbaptelse 1726234949Sbapt if test "$GCC" = yes; then 1727234949Sbapt CFLAGS="-O2" 1728234949Sbapt else 1729234949Sbapt CFLAGS= 1730234949Sbapt fi 1731234949Sbaptfi 1732234949Sbapt# Some people use a C++ compiler to compile C. Since we use `exit', 1733234949Sbapt# in C++ we need to declare it. In case someone uses the same compiler 1734234949Sbapt# for both compiling C and C++ we need to have the C++ compiler decide 1735234949Sbapt# the declaration of exit, since it's the most demanding environment. 1736234949Sbaptcat >conftest.$ac_ext <<_ACEOF 1737234949Sbapt#ifndef __cplusplus 1738234949Sbapt choke me 1739234949Sbapt#endif 1740234949Sbapt_ACEOF 1741234949Sbaptrm -f conftest.$ac_objext 1742272957Srodrigcif { (eval echo "$as_me:1742: \"$ac_compile\"") >&5 1743234949Sbapt (eval $ac_compile) 2>&5 1744234949Sbapt ac_status=$? 1745272957Srodrigc echo "$as_me:1745: \$? = $ac_status" >&5 1746234949Sbapt (exit $ac_status); } && 1747234949Sbapt { ac_try='test -s conftest.$ac_objext' 1748272957Srodrigc { (eval echo "$as_me:1748: \"$ac_try\"") >&5 1749234949Sbapt (eval $ac_try) 2>&5 1750234949Sbapt ac_status=$? 1751272957Srodrigc echo "$as_me:1751: \$? = $ac_status" >&5 1752234949Sbapt (exit $ac_status); }; }; then 1753234949Sbapt for ac_declaration in \ 1754234949Sbapt ''\ 1755234949Sbapt '#include <stdlib.h>' \ 1756234949Sbapt 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1757234949Sbapt 'extern "C" void std::exit (int); using std::exit;' \ 1758234949Sbapt 'extern "C" void exit (int) throw ();' \ 1759234949Sbapt 'extern "C" void exit (int);' \ 1760234949Sbapt 'void exit (int);' 1761234949Sbaptdo 1762234949Sbapt cat >conftest.$ac_ext <<_ACEOF 1763272957Srodrigc#line 1763 "configure" 1764234949Sbapt#include "confdefs.h" 1765234949Sbapt#include <stdlib.h> 1766234949Sbapt$ac_declaration 1767234949Sbaptint 1768234949Sbaptmain () 1769234949Sbapt{ 1770234949Sbaptexit (42); 1771234949Sbapt ; 1772234949Sbapt return 0; 1773234949Sbapt} 1774234949Sbapt_ACEOF 1775234949Sbaptrm -f conftest.$ac_objext 1776272957Srodrigcif { (eval echo "$as_me:1776: \"$ac_compile\"") >&5 1777234949Sbapt (eval $ac_compile) 2>&5 1778234949Sbapt ac_status=$? 1779272957Srodrigc echo "$as_me:1779: \$? = $ac_status" >&5 1780234949Sbapt (exit $ac_status); } && 1781234949Sbapt { ac_try='test -s conftest.$ac_objext' 1782272957Srodrigc { (eval echo "$as_me:1782: \"$ac_try\"") >&5 1783234949Sbapt (eval $ac_try) 2>&5 1784234949Sbapt ac_status=$? 1785272957Srodrigc echo "$as_me:1785: \$? = $ac_status" >&5 1786234949Sbapt (exit $ac_status); }; }; then 1787234949Sbapt : 1788234949Sbaptelse 1789234949Sbapt echo "$as_me: failed program was:" >&5 1790234949Sbaptcat conftest.$ac_ext >&5 1791234949Sbaptcontinue 1792234949Sbaptfi 1793234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 1794234949Sbapt cat >conftest.$ac_ext <<_ACEOF 1795272957Srodrigc#line 1795 "configure" 1796234949Sbapt#include "confdefs.h" 1797234949Sbapt$ac_declaration 1798234949Sbaptint 1799234949Sbaptmain () 1800234949Sbapt{ 1801234949Sbaptexit (42); 1802234949Sbapt ; 1803234949Sbapt return 0; 1804234949Sbapt} 1805234949Sbapt_ACEOF 1806234949Sbaptrm -f conftest.$ac_objext 1807272957Srodrigcif { (eval echo "$as_me:1807: \"$ac_compile\"") >&5 1808234949Sbapt (eval $ac_compile) 2>&5 1809234949Sbapt ac_status=$? 1810272957Srodrigc echo "$as_me:1810: \$? = $ac_status" >&5 1811234949Sbapt (exit $ac_status); } && 1812234949Sbapt { ac_try='test -s conftest.$ac_objext' 1813272957Srodrigc { (eval echo "$as_me:1813: \"$ac_try\"") >&5 1814234949Sbapt (eval $ac_try) 2>&5 1815234949Sbapt ac_status=$? 1816272957Srodrigc echo "$as_me:1816: \$? = $ac_status" >&5 1817234949Sbapt (exit $ac_status); }; }; then 1818234949Sbapt break 1819234949Sbaptelse 1820234949Sbapt echo "$as_me: failed program was:" >&5 1821234949Sbaptcat conftest.$ac_ext >&5 1822234949Sbaptfi 1823234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 1824234949Sbaptdone 1825234949Sbaptrm -rf conftest* 1826234949Sbaptif test -n "$ac_declaration"; then 1827234949Sbapt echo '#ifdef __cplusplus' >>confdefs.h 1828234949Sbapt echo $ac_declaration >>confdefs.h 1829234949Sbapt echo '#endif' >>confdefs.h 1830234949Sbaptfi 1831234949Sbapt 1832234949Sbaptelse 1833234949Sbapt echo "$as_me: failed program was:" >&5 1834234949Sbaptcat conftest.$ac_ext >&5 1835234949Sbaptfi 1836234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 1837234949Sbaptac_ext=c 1838234949Sbaptac_cpp='$CPP $CPPFLAGS' 1839234949Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1840234949Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1841234949Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu 1842234949Sbaptac_main_return=return 1843234949Sbapt 1844251143SbaptGCC_VERSION=none 1845251143Sbaptif test "$GCC" = yes ; then 1846272957Srodrigc echo "$as_me:1846: checking version of $CC" >&5 1847251143Sbaptecho $ECHO_N "checking version of $CC... $ECHO_C" >&6 1848251143Sbapt 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.].*//'`" 1849251143Sbapt test -z "$GCC_VERSION" && GCC_VERSION=unknown 1850272957Srodrigc echo "$as_me:1850: result: $GCC_VERSION" >&5 1851251143Sbaptecho "${ECHO_T}$GCC_VERSION" >&6 1852251143Sbaptfi 1853251143Sbapt 1854272957Srodrigcecho "$as_me:1854: checking for $CC option to accept ANSI C" >&5 1855234949Sbaptecho $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 1856234949Sbaptif test "${ac_cv_prog_cc_stdc+set}" = set; then 1857234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1858234949Sbaptelse 1859234949Sbapt ac_cv_prog_cc_stdc=no 1860234949Sbaptac_save_CC=$CC 1861234949Sbaptcat >conftest.$ac_ext <<_ACEOF 1862272957Srodrigc#line 1862 "configure" 1863234949Sbapt#include "confdefs.h" 1864234949Sbapt#include <stdarg.h> 1865234949Sbapt#include <stdio.h> 1866234949Sbapt#include <sys/types.h> 1867234949Sbapt#include <sys/stat.h> 1868234949Sbapt/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 1869234949Sbaptstruct buf { int x; }; 1870234949SbaptFILE * (*rcsopen) (struct buf *, struct stat *, int); 1871234949Sbaptstatic char *e (p, i) 1872234949Sbapt char **p; 1873234949Sbapt int i; 1874234949Sbapt{ 1875234949Sbapt return p[i]; 1876234949Sbapt} 1877234949Sbaptstatic char *f (char * (*g) (char **, int), char **p, ...) 1878234949Sbapt{ 1879234949Sbapt char *s; 1880234949Sbapt va_list v; 1881234949Sbapt va_start (v,p); 1882234949Sbapt s = g (p, va_arg (v,int)); 1883234949Sbapt va_end (v); 1884234949Sbapt return s; 1885234949Sbapt} 1886234949Sbaptint test (int i, double x); 1887234949Sbaptstruct s1 {int (*f) (int a);}; 1888234949Sbaptstruct s2 {int (*f) (double a);}; 1889234949Sbaptint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 1890234949Sbaptint argc; 1891234949Sbaptchar **argv; 1892234949Sbaptint 1893234949Sbaptmain () 1894234949Sbapt{ 1895234949Sbaptreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 1896234949Sbapt ; 1897234949Sbapt return 0; 1898234949Sbapt} 1899234949Sbapt_ACEOF 1900234949Sbapt# Don't try gcc -ansi; that turns off useful extensions and 1901234949Sbapt# breaks some systems' header files. 1902234949Sbapt# AIX -qlanglvl=ansi 1903234949Sbapt# Ultrix and OSF/1 -std1 1904234949Sbapt# HP-UX 10.20 and later -Ae 1905234949Sbapt# HP-UX older versions -Aa -D_HPUX_SOURCE 1906234949Sbapt# SVR4 -Xc -D__EXTENSIONS__ 1907234949Sbaptfor ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 1908234949Sbaptdo 1909234949Sbapt CC="$ac_save_CC $ac_arg" 1910234949Sbapt rm -f conftest.$ac_objext 1911272957Srodrigcif { (eval echo "$as_me:1911: \"$ac_compile\"") >&5 1912234949Sbapt (eval $ac_compile) 2>&5 1913234949Sbapt ac_status=$? 1914272957Srodrigc echo "$as_me:1914: \$? = $ac_status" >&5 1915234949Sbapt (exit $ac_status); } && 1916234949Sbapt { ac_try='test -s conftest.$ac_objext' 1917272957Srodrigc { (eval echo "$as_me:1917: \"$ac_try\"") >&5 1918234949Sbapt (eval $ac_try) 2>&5 1919234949Sbapt ac_status=$? 1920272957Srodrigc echo "$as_me:1920: \$? = $ac_status" >&5 1921234949Sbapt (exit $ac_status); }; }; then 1922234949Sbapt ac_cv_prog_cc_stdc=$ac_arg 1923234949Sbaptbreak 1924234949Sbaptelse 1925234949Sbapt echo "$as_me: failed program was:" >&5 1926234949Sbaptcat conftest.$ac_ext >&5 1927234949Sbaptfi 1928234949Sbaptrm -f conftest.$ac_objext 1929234949Sbaptdone 1930234949Sbaptrm -f conftest.$ac_ext conftest.$ac_objext 1931234949SbaptCC=$ac_save_CC 1932234949Sbapt 1933234949Sbaptfi 1934234949Sbapt 1935234949Sbaptcase "x$ac_cv_prog_cc_stdc" in 1936234949Sbapt x|xno) 1937272957Srodrigc echo "$as_me:1937: result: none needed" >&5 1938234949Sbaptecho "${ECHO_T}none needed" >&6 ;; 1939234949Sbapt *) 1940272957Srodrigc echo "$as_me:1940: result: $ac_cv_prog_cc_stdc" >&5 1941234949Sbaptecho "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 1942234949Sbapt CC="$CC $ac_cv_prog_cc_stdc" ;; 1943234949Sbaptesac 1944234949Sbapt 1945251143Sbapt# This should have been defined by AC_PROG_CC 1946251143Sbapt: ${CC:=cc} 1947234949Sbapt 1948272957Srodrigcecho "$as_me:1948: checking \$CC variable" >&5 1949251143Sbaptecho $ECHO_N "checking \$CC variable... $ECHO_C" >&6 1950251143Sbaptcase "$CC" in #(vi 1951251143Sbapt*[\ \ ]-[IUD]*) 1952272957Srodrigc echo "$as_me:1952: result: broken" >&5 1953251143Sbaptecho "${ECHO_T}broken" >&6 1954272957Srodrigc { echo "$as_me:1954: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5 1955251143Sbaptecho "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;} 1956251143Sbapt # humor him... 1957251143Sbapt cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'` 1958251143Sbapt CC=`echo "$CC" | sed -e 's/[ ].*//'` 1959234949Sbapt 1960251143Sbaptcf_fix_cppflags=no 1961251143Sbaptcf_new_cflags= 1962251143Sbaptcf_new_cppflags= 1963251143Sbaptcf_new_extra_cppflags= 1964234949Sbapt 1965251143Sbaptfor cf_add_cflags in $cf_flags 1966251143Sbaptdo 1967251143Sbaptcase $cf_fix_cppflags in 1968251143Sbaptno) 1969251143Sbapt case $cf_add_cflags in #(vi 1970251143Sbapt -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 1971251143Sbapt case $cf_add_cflags in 1972251143Sbapt -D*) 1973251143Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 1974251143Sbapt 1975272955Srodrigc test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 1976251143Sbapt && test -z "${cf_tst_cflags}" \ 1977251143Sbapt && cf_fix_cppflags=yes 1978251143Sbapt 1979251143Sbapt if test $cf_fix_cppflags = yes ; then 1980251143Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 1981251143Sbapt continue 1982251143Sbapt elif test "${cf_tst_cflags}" = "\"'" ; then 1983251143Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 1984251143Sbapt continue 1985251143Sbapt fi 1986251143Sbapt ;; 1987251143Sbapt esac 1988251143Sbapt case "$CPPFLAGS" in 1989251143Sbapt *$cf_add_cflags) #(vi 1990251143Sbapt ;; 1991251143Sbapt *) #(vi 1992251143Sbapt case $cf_add_cflags in #(vi 1993251143Sbapt -D*) 1994251143Sbapt cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 1995251143Sbapt 1996251143SbaptCPPFLAGS=`echo "$CPPFLAGS" | \ 1997251143Sbapt sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 1998251143Sbapt -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 1999251143Sbapt 2000251143Sbapt ;; 2001251143Sbapt esac 2002251143Sbapt cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 2003251143Sbapt ;; 2004251143Sbapt esac 2005251143Sbapt ;; 2006251143Sbapt *) 2007251143Sbapt cf_new_cflags="$cf_new_cflags $cf_add_cflags" 2008251143Sbapt ;; 2009251143Sbapt esac 2010251143Sbapt ;; 2011251143Sbaptyes) 2012251143Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2013251143Sbapt 2014251143Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 2015251143Sbapt 2016272955Srodrigc test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2017251143Sbapt && test -z "${cf_tst_cflags}" \ 2018251143Sbapt && cf_fix_cppflags=no 2019251143Sbapt ;; 2020251143Sbaptesac 2021251143Sbaptdone 2022251143Sbapt 2023251143Sbaptif test -n "$cf_new_cflags" ; then 2024251143Sbapt 2025251143Sbapt CFLAGS="$CFLAGS $cf_new_cflags" 2026234949Sbaptfi 2027251143Sbapt 2028251143Sbaptif test -n "$cf_new_cppflags" ; then 2029251143Sbapt 2030251143Sbapt CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 2031234949Sbaptfi 2032234949Sbapt 2033251143Sbaptif test -n "$cf_new_extra_cppflags" ; then 2034234949Sbapt 2035251143Sbapt EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 2036234949Sbaptfi 2037234949Sbapt 2038251143Sbapt ;; 2039251143Sbapt*) 2040272957Srodrigc echo "$as_me:2040: result: ok" >&5 2041251143Sbaptecho "${ECHO_T}ok" >&6 2042251143Sbapt ;; 2043251143Sbaptesac 2044251143Sbapt 2045272957Srodrigcecho "$as_me:2045: checking whether ${MAKE-make} sets \${MAKE}" >&5 2046234949Sbaptecho $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 2047234949Sbaptset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 2048234949Sbaptif eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2049234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2050234949Sbaptelse 2051234949Sbapt cat >conftest.make <<\EOF 2052234949Sbaptall: 2053234949Sbapt @echo 'ac_maketemp="${MAKE}"' 2054234949SbaptEOF 2055234949Sbapt# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2056234949Sbapteval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2057234949Sbaptif test -n "$ac_maketemp"; then 2058234949Sbapt eval ac_cv_prog_make_${ac_make}_set=yes 2059234949Sbaptelse 2060234949Sbapt eval ac_cv_prog_make_${ac_make}_set=no 2061234949Sbaptfi 2062234949Sbaptrm -f conftest.make 2063234949Sbaptfi 2064234949Sbaptif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2065272957Srodrigc echo "$as_me:2065: result: yes" >&5 2066234949Sbaptecho "${ECHO_T}yes" >&6 2067234949Sbapt SET_MAKE= 2068234949Sbaptelse 2069272957Srodrigc echo "$as_me:2069: result: no" >&5 2070234949Sbaptecho "${ECHO_T}no" >&6 2071234949Sbapt SET_MAKE="MAKE=${MAKE-make}" 2072234949Sbaptfi 2073234949Sbapt 2074234949Sbapt# Find a good install program. We prefer a C program (faster), 2075234949Sbapt# so one script is as good as another. But avoid the broken or 2076234949Sbapt# incompatible versions: 2077234949Sbapt# SysV /etc/install, /usr/sbin/install 2078234949Sbapt# SunOS /usr/etc/install 2079234949Sbapt# IRIX /sbin/install 2080234949Sbapt# AIX /bin/install 2081234949Sbapt# AmigaOS /C/install, which installs bootblocks on floppy discs 2082234949Sbapt# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2083234949Sbapt# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2084234949Sbapt# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2085234949Sbapt# ./install, which can be erroneously created by make from ./install.sh. 2086272957Srodrigcecho "$as_me:2086: checking for a BSD compatible install" >&5 2087234949Sbaptecho $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 2088234949Sbaptif test -z "$INSTALL"; then 2089234949Sbaptif test "${ac_cv_path_install+set}" = set; then 2090234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2091234949Sbaptelse 2092234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 2093234949Sbapt for ac_dir in $PATH; do 2094234949Sbapt IFS=$ac_save_IFS 2095234949Sbapt # Account for people who put trailing slashes in PATH elements. 2096234949Sbapt case $ac_dir/ in 2097234949Sbapt / | ./ | .// | /cC/* \ 2098234949Sbapt | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 2099234949Sbapt | /usr/ucb/* ) ;; 2100234949Sbapt *) 2101234949Sbapt # OSF1 and SCO ODT 3.0 have their own names for install. 2102234949Sbapt # Don't use installbsd from OSF since it installs stuff as root 2103234949Sbapt # by default. 2104234949Sbapt for ac_prog in ginstall scoinst install; do 2105234949Sbapt if $as_executable_p "$ac_dir/$ac_prog"; then 2106234949Sbapt if test $ac_prog = install && 2107234949Sbapt grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2108234949Sbapt # AIX install. It has an incompatible calling convention. 2109234949Sbapt : 2110234949Sbapt elif test $ac_prog = install && 2111234949Sbapt grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2112234949Sbapt # program-specific install script used by HP pwplus--don't use. 2113234949Sbapt : 2114234949Sbapt else 2115234949Sbapt ac_cv_path_install="$ac_dir/$ac_prog -c" 2116234949Sbapt break 2 2117234949Sbapt fi 2118234949Sbapt fi 2119234949Sbapt done 2120234949Sbapt ;; 2121234949Sbapt esac 2122234949Sbapt done 2123234949Sbapt 2124234949Sbaptfi 2125234949Sbapt if test "${ac_cv_path_install+set}" = set; then 2126234949Sbapt INSTALL=$ac_cv_path_install 2127234949Sbapt else 2128234949Sbapt # As a last resort, use the slow shell script. We don't cache a 2129234949Sbapt # path for INSTALL within a source directory, because that will 2130234949Sbapt # break other packages using the cache if that directory is 2131234949Sbapt # removed, or if the path is relative. 2132234949Sbapt INSTALL=$ac_install_sh 2133234949Sbapt fi 2134234949Sbaptfi 2135272957Srodrigcecho "$as_me:2135: result: $INSTALL" >&5 2136234949Sbaptecho "${ECHO_T}$INSTALL" >&6 2137234949Sbapt 2138234949Sbapt# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2139234949Sbapt# It thinks the first close brace ends the variable substitution. 2140234949Sbapttest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2141234949Sbapt 2142234949Sbapttest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2143234949Sbapt 2144234949Sbapttest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2145234949Sbapt 2146272957Srodrigcecho "$as_me:2146: checking if filesystem supports mixed-case filenames" >&5 2147234949Sbaptecho $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6 2148234949Sbaptif test "${cf_cv_mixedcase+set}" = set; then 2149234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2150234949Sbaptelse 2151234949Sbapt 2152234949Sbaptif test "$cross_compiling" = yes ; then 2153234949Sbapt case $target_alias in #(vi 2154268899Sbapt *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*) #(vi 2155234949Sbapt cf_cv_mixedcase=no 2156234949Sbapt ;; 2157234949Sbapt *) 2158234949Sbapt cf_cv_mixedcase=yes 2159234949Sbapt ;; 2160234949Sbapt esac 2161234949Sbaptelse 2162234949Sbapt rm -f conftest CONFTEST 2163234949Sbapt echo test >conftest 2164234949Sbapt if test -f CONFTEST ; then 2165234949Sbapt cf_cv_mixedcase=no 2166234949Sbapt else 2167234949Sbapt cf_cv_mixedcase=yes 2168234949Sbapt fi 2169234949Sbapt rm -f conftest CONFTEST 2170234949Sbaptfi 2171234949Sbapt 2172234949Sbaptfi 2173272957Srodrigcecho "$as_me:2173: result: $cf_cv_mixedcase" >&5 2174234949Sbaptecho "${ECHO_T}$cf_cv_mixedcase" >&6 2175251143Sbapttest "$cf_cv_mixedcase" = yes && 2176251143Sbaptcat >>confdefs.h <<\EOF 2177234949Sbapt#define MIXEDCASE_FILENAMES 1 2178234949SbaptEOF 2179234949Sbapt 2180234949Sbaptfor ac_prog in exctags ctags 2181234949Sbaptdo 2182234949Sbapt # Extract the first word of "$ac_prog", so it can be a program name with args. 2183234949Sbaptset dummy $ac_prog; ac_word=$2 2184272957Srodrigcecho "$as_me:2184: checking for $ac_word" >&5 2185234949Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2186234949Sbaptif test "${ac_cv_prog_CTAGS+set}" = set; then 2187234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2188234949Sbaptelse 2189234949Sbapt if test -n "$CTAGS"; then 2190234949Sbapt ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test. 2191234949Sbaptelse 2192234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 2193234949Sbaptac_dummy="$PATH" 2194234949Sbaptfor ac_dir in $ac_dummy; do 2195234949Sbapt IFS=$ac_save_IFS 2196234949Sbapt test -z "$ac_dir" && ac_dir=. 2197234949Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 2198234949Sbaptac_cv_prog_CTAGS="$ac_prog" 2199272957Srodrigcecho "$as_me:2199: found $ac_dir/$ac_word" >&5 2200234949Sbaptbreak 2201234949Sbaptdone 2202234949Sbapt 2203234949Sbaptfi 2204234949Sbaptfi 2205234949SbaptCTAGS=$ac_cv_prog_CTAGS 2206234949Sbaptif test -n "$CTAGS"; then 2207272957Srodrigc echo "$as_me:2207: result: $CTAGS" >&5 2208234949Sbaptecho "${ECHO_T}$CTAGS" >&6 2209234949Sbaptelse 2210272957Srodrigc echo "$as_me:2210: result: no" >&5 2211234949Sbaptecho "${ECHO_T}no" >&6 2212234949Sbaptfi 2213234949Sbapt 2214234949Sbapt test -n "$CTAGS" && break 2215234949Sbaptdone 2216234949Sbapt 2217234949Sbaptfor ac_prog in exetags etags 2218234949Sbaptdo 2219234949Sbapt # Extract the first word of "$ac_prog", so it can be a program name with args. 2220234949Sbaptset dummy $ac_prog; ac_word=$2 2221272957Srodrigcecho "$as_me:2221: checking for $ac_word" >&5 2222234949Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2223234949Sbaptif test "${ac_cv_prog_ETAGS+set}" = set; then 2224234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2225234949Sbaptelse 2226234949Sbapt if test -n "$ETAGS"; then 2227234949Sbapt ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test. 2228234949Sbaptelse 2229234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 2230234949Sbaptac_dummy="$PATH" 2231234949Sbaptfor ac_dir in $ac_dummy; do 2232234949Sbapt IFS=$ac_save_IFS 2233234949Sbapt test -z "$ac_dir" && ac_dir=. 2234234949Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 2235234949Sbaptac_cv_prog_ETAGS="$ac_prog" 2236272957Srodrigcecho "$as_me:2236: found $ac_dir/$ac_word" >&5 2237234949Sbaptbreak 2238234949Sbaptdone 2239234949Sbapt 2240234949Sbaptfi 2241234949Sbaptfi 2242234949SbaptETAGS=$ac_cv_prog_ETAGS 2243234949Sbaptif test -n "$ETAGS"; then 2244272957Srodrigc echo "$as_me:2244: result: $ETAGS" >&5 2245234949Sbaptecho "${ECHO_T}$ETAGS" >&6 2246234949Sbaptelse 2247272957Srodrigc echo "$as_me:2247: result: no" >&5 2248234949Sbaptecho "${ECHO_T}no" >&6 2249234949Sbaptfi 2250234949Sbapt 2251234949Sbapt test -n "$ETAGS" && break 2252234949Sbaptdone 2253234949Sbapt 2254234949Sbapt# Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args. 2255234949Sbaptset dummy ${CTAGS:-ctags}; ac_word=$2 2256272957Srodrigcecho "$as_me:2256: checking for $ac_word" >&5 2257234949Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2258234949Sbaptif test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then 2259234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2260234949Sbaptelse 2261234949Sbapt if test -n "$MAKE_LOWER_TAGS"; then 2262234949Sbapt ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test. 2263234949Sbaptelse 2264234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 2265234949Sbaptac_dummy="$PATH" 2266234949Sbaptfor ac_dir in $ac_dummy; do 2267234949Sbapt IFS=$ac_save_IFS 2268234949Sbapt test -z "$ac_dir" && ac_dir=. 2269234949Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 2270234949Sbaptac_cv_prog_MAKE_LOWER_TAGS="yes" 2271272957Srodrigcecho "$as_me:2271: found $ac_dir/$ac_word" >&5 2272234949Sbaptbreak 2273234949Sbaptdone 2274234949Sbapt 2275234949Sbapt test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no" 2276234949Sbaptfi 2277234949Sbaptfi 2278234949SbaptMAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS 2279234949Sbaptif test -n "$MAKE_LOWER_TAGS"; then 2280272957Srodrigc echo "$as_me:2280: result: $MAKE_LOWER_TAGS" >&5 2281234949Sbaptecho "${ECHO_T}$MAKE_LOWER_TAGS" >&6 2282234949Sbaptelse 2283272957Srodrigc echo "$as_me:2283: result: no" >&5 2284234949Sbaptecho "${ECHO_T}no" >&6 2285234949Sbaptfi 2286234949Sbapt 2287234949Sbaptif test "$cf_cv_mixedcase" = yes ; then 2288234949Sbapt # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args. 2289234949Sbaptset dummy ${ETAGS:-etags}; ac_word=$2 2290272957Srodrigcecho "$as_me:2290: checking for $ac_word" >&5 2291234949Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2292234949Sbaptif test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then 2293234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2294234949Sbaptelse 2295234949Sbapt if test -n "$MAKE_UPPER_TAGS"; then 2296234949Sbapt ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test. 2297234949Sbaptelse 2298234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 2299234949Sbaptac_dummy="$PATH" 2300234949Sbaptfor ac_dir in $ac_dummy; do 2301234949Sbapt IFS=$ac_save_IFS 2302234949Sbapt test -z "$ac_dir" && ac_dir=. 2303234949Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 2304234949Sbaptac_cv_prog_MAKE_UPPER_TAGS="yes" 2305272957Srodrigcecho "$as_me:2305: found $ac_dir/$ac_word" >&5 2306234949Sbaptbreak 2307234949Sbaptdone 2308234949Sbapt 2309234949Sbapt test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no" 2310234949Sbaptfi 2311234949Sbaptfi 2312234949SbaptMAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS 2313234949Sbaptif test -n "$MAKE_UPPER_TAGS"; then 2314272957Srodrigc echo "$as_me:2314: result: $MAKE_UPPER_TAGS" >&5 2315234949Sbaptecho "${ECHO_T}$MAKE_UPPER_TAGS" >&6 2316234949Sbaptelse 2317272957Srodrigc echo "$as_me:2317: result: no" >&5 2318234949Sbaptecho "${ECHO_T}no" >&6 2319234949Sbaptfi 2320234949Sbapt 2321234949Sbaptelse 2322234949Sbapt MAKE_UPPER_TAGS=no 2323234949Sbaptfi 2324234949Sbapt 2325234949Sbaptif test "$MAKE_UPPER_TAGS" = yes ; then 2326234949Sbapt MAKE_UPPER_TAGS= 2327234949Sbaptelse 2328234949Sbapt MAKE_UPPER_TAGS="#" 2329234949Sbaptfi 2330234949Sbapt 2331234949Sbaptif test "$MAKE_LOWER_TAGS" = yes ; then 2332234949Sbapt MAKE_LOWER_TAGS= 2333234949Sbaptelse 2334234949Sbapt MAKE_LOWER_TAGS="#" 2335234949Sbaptfi 2336234949Sbapt 2337268899Sbaptfor ac_prog in mawk gawk nawk awk 2338268899Sbaptdo 2339268899Sbapt # Extract the first word of "$ac_prog", so it can be a program name with args. 2340268899Sbaptset dummy $ac_prog; ac_word=$2 2341272957Srodrigcecho "$as_me:2341: checking for $ac_word" >&5 2342268899Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2343268899Sbaptif test "${ac_cv_prog_AWK+set}" = set; then 2344268899Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2345268899Sbaptelse 2346268899Sbapt if test -n "$AWK"; then 2347268899Sbapt ac_cv_prog_AWK="$AWK" # Let the user override the test. 2348268899Sbaptelse 2349268899Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 2350268899Sbaptac_dummy="$PATH" 2351268899Sbaptfor ac_dir in $ac_dummy; do 2352268899Sbapt IFS=$ac_save_IFS 2353268899Sbapt test -z "$ac_dir" && ac_dir=. 2354268899Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 2355268899Sbaptac_cv_prog_AWK="$ac_prog" 2356272957Srodrigcecho "$as_me:2356: found $ac_dir/$ac_word" >&5 2357268899Sbaptbreak 2358268899Sbaptdone 2359268899Sbapt 2360268899Sbaptfi 2361268899Sbaptfi 2362268899SbaptAWK=$ac_cv_prog_AWK 2363268899Sbaptif test -n "$AWK"; then 2364272957Srodrigc echo "$as_me:2364: result: $AWK" >&5 2365268899Sbaptecho "${ECHO_T}$AWK" >&6 2366268899Sbaptelse 2367272957Srodrigc echo "$as_me:2367: result: no" >&5 2368268899Sbaptecho "${ECHO_T}no" >&6 2369268899Sbaptfi 2370268899Sbapt 2371268899Sbapt test -n "$AWK" && break 2372268899Sbaptdone 2373268899Sbapt 2374272957Srodrigctest -z "$AWK" && { { echo "$as_me:2374: error: No awk program found" >&5 2375268899Sbaptecho "$as_me: error: No awk program found" >&2;} 2376268899Sbapt { (exit 1); exit 1; }; } 2377268899Sbapt 2378234949Sbaptfor ac_prog in tdlint lint alint splint lclint 2379234949Sbaptdo 2380234949Sbapt # Extract the first word of "$ac_prog", so it can be a program name with args. 2381234949Sbaptset dummy $ac_prog; ac_word=$2 2382272957Srodrigcecho "$as_me:2382: checking for $ac_word" >&5 2383234949Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2384234949Sbaptif test "${ac_cv_prog_LINT+set}" = set; then 2385234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2386234949Sbaptelse 2387234949Sbapt if test -n "$LINT"; then 2388234949Sbapt ac_cv_prog_LINT="$LINT" # Let the user override the test. 2389234949Sbaptelse 2390234949Sbapt ac_save_IFS=$IFS; IFS=$ac_path_separator 2391234949Sbaptac_dummy="$PATH" 2392234949Sbaptfor ac_dir in $ac_dummy; do 2393234949Sbapt IFS=$ac_save_IFS 2394234949Sbapt test -z "$ac_dir" && ac_dir=. 2395234949Sbapt $as_executable_p "$ac_dir/$ac_word" || continue 2396234949Sbaptac_cv_prog_LINT="$ac_prog" 2397272957Srodrigcecho "$as_me:2397: found $ac_dir/$ac_word" >&5 2398234949Sbaptbreak 2399234949Sbaptdone 2400234949Sbapt 2401234949Sbaptfi 2402234949Sbaptfi 2403234949SbaptLINT=$ac_cv_prog_LINT 2404234949Sbaptif test -n "$LINT"; then 2405272957Srodrigc echo "$as_me:2405: result: $LINT" >&5 2406234949Sbaptecho "${ECHO_T}$LINT" >&6 2407234949Sbaptelse 2408272957Srodrigc echo "$as_me:2408: result: no" >&5 2409234949Sbaptecho "${ECHO_T}no" >&6 2410234949Sbaptfi 2411234949Sbapt 2412234949Sbapt test -n "$LINT" && break 2413234949Sbaptdone 2414234949Sbapt 2415234949Sbaptcf_XOPEN_SOURCE=500 2416234949Sbaptcf_POSIX_C_SOURCE=199506L 2417234949Sbaptcf_xopen_source= 2418234949Sbapt 2419234949Sbaptcase $host_os in #(vi 2420234949Sbaptaix[4-7]*) #(vi 2421234949Sbapt cf_xopen_source="-D_ALL_SOURCE" 2422234949Sbapt ;; 2423268899Sbaptcygwin|msys) #(vi 2424234949Sbapt cf_XOPEN_SOURCE=600 2425234949Sbapt ;; 2426234949Sbaptdarwin[0-8].*) #(vi 2427234949Sbapt cf_xopen_source="-D_APPLE_C_SOURCE" 2428234949Sbapt ;; 2429234949Sbaptdarwin*) #(vi 2430234949Sbapt cf_xopen_source="-D_DARWIN_C_SOURCE" 2431234949Sbapt cf_XOPEN_SOURCE= 2432234949Sbapt ;; 2433234949Sbaptfreebsd*|dragonfly*) #(vi 2434234949Sbapt # 5.x headers associate 2435234949Sbapt # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L 2436234949Sbapt # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L 2437234949Sbapt cf_POSIX_C_SOURCE=200112L 2438234949Sbapt cf_XOPEN_SOURCE=600 2439234949Sbapt cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 2440234949Sbapt ;; 2441234949Sbapthpux11*) #(vi 2442234949Sbapt cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500" 2443234949Sbapt ;; 2444234949Sbapthpux*) #(vi 2445234949Sbapt cf_xopen_source="-D_HPUX_SOURCE" 2446234949Sbapt ;; 2447234949Sbaptirix[56].*) #(vi 2448234949Sbapt cf_xopen_source="-D_SGI_SOURCE" 2449234949Sbapt cf_XOPEN_SOURCE= 2450234949Sbapt ;; 2451234949Sbaptlinux*|gnu*|mint*|k*bsd*-gnu) #(vi 2452234949Sbapt 2453272957Srodrigcecho "$as_me:2453: checking if we must define _GNU_SOURCE" >&5 2454234949Sbaptecho $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6 2455234949Sbaptif test "${cf_cv_gnu_source+set}" = set; then 2456234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2457234949Sbaptelse 2458234949Sbapt 2459234949Sbaptcat >conftest.$ac_ext <<_ACEOF 2460272957Srodrigc#line 2460 "configure" 2461234949Sbapt#include "confdefs.h" 2462234949Sbapt#include <sys/types.h> 2463234949Sbaptint 2464234949Sbaptmain () 2465234949Sbapt{ 2466234949Sbapt 2467234949Sbapt#ifndef _XOPEN_SOURCE 2468234949Sbaptmake an error 2469234949Sbapt#endif 2470234949Sbapt ; 2471234949Sbapt return 0; 2472234949Sbapt} 2473234949Sbapt_ACEOF 2474234949Sbaptrm -f conftest.$ac_objext 2475272957Srodrigcif { (eval echo "$as_me:2475: \"$ac_compile\"") >&5 2476234949Sbapt (eval $ac_compile) 2>&5 2477234949Sbapt ac_status=$? 2478272957Srodrigc echo "$as_me:2478: \$? = $ac_status" >&5 2479234949Sbapt (exit $ac_status); } && 2480234949Sbapt { ac_try='test -s conftest.$ac_objext' 2481272957Srodrigc { (eval echo "$as_me:2481: \"$ac_try\"") >&5 2482234949Sbapt (eval $ac_try) 2>&5 2483234949Sbapt ac_status=$? 2484272957Srodrigc echo "$as_me:2484: \$? = $ac_status" >&5 2485234949Sbapt (exit $ac_status); }; }; then 2486234949Sbapt cf_cv_gnu_source=no 2487234949Sbaptelse 2488234949Sbapt echo "$as_me: failed program was:" >&5 2489234949Sbaptcat conftest.$ac_ext >&5 2490234949Sbaptcf_save="$CPPFLAGS" 2491234949Sbapt CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" 2492234949Sbapt cat >conftest.$ac_ext <<_ACEOF 2493272957Srodrigc#line 2493 "configure" 2494234949Sbapt#include "confdefs.h" 2495234949Sbapt#include <sys/types.h> 2496234949Sbaptint 2497234949Sbaptmain () 2498234949Sbapt{ 2499234949Sbapt 2500234949Sbapt#ifdef _XOPEN_SOURCE 2501234949Sbaptmake an error 2502234949Sbapt#endif 2503234949Sbapt ; 2504234949Sbapt return 0; 2505234949Sbapt} 2506234949Sbapt_ACEOF 2507234949Sbaptrm -f conftest.$ac_objext 2508272957Srodrigcif { (eval echo "$as_me:2508: \"$ac_compile\"") >&5 2509234949Sbapt (eval $ac_compile) 2>&5 2510234949Sbapt ac_status=$? 2511272957Srodrigc echo "$as_me:2511: \$? = $ac_status" >&5 2512234949Sbapt (exit $ac_status); } && 2513234949Sbapt { ac_try='test -s conftest.$ac_objext' 2514272957Srodrigc { (eval echo "$as_me:2514: \"$ac_try\"") >&5 2515234949Sbapt (eval $ac_try) 2>&5 2516234949Sbapt ac_status=$? 2517272957Srodrigc echo "$as_me:2517: \$? = $ac_status" >&5 2518234949Sbapt (exit $ac_status); }; }; then 2519234949Sbapt cf_cv_gnu_source=no 2520234949Sbaptelse 2521234949Sbapt echo "$as_me: failed program was:" >&5 2522234949Sbaptcat conftest.$ac_ext >&5 2523234949Sbaptcf_cv_gnu_source=yes 2524234949Sbaptfi 2525234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 2526234949Sbapt CPPFLAGS="$cf_save" 2527234949Sbapt 2528234949Sbaptfi 2529234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 2530234949Sbapt 2531234949Sbaptfi 2532272957Srodrigcecho "$as_me:2532: result: $cf_cv_gnu_source" >&5 2533234949Sbaptecho "${ECHO_T}$cf_cv_gnu_source" >&6 2534234949Sbapttest "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" 2535234949Sbapt 2536234949Sbapt ;; 2537272955Srodrigcminix*) #(vi 2538272955Srodrigc cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this... 2539272955Srodrigc ;; 2540234949Sbaptmirbsd*) #(vi 2541234949Sbapt # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types 2542234949Sbapt cf_XOPEN_SOURCE= 2543234949Sbapt 2544234949Sbaptcf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 2545234949Sbapt 2546234949Sbaptcf_save_CFLAGS="$CFLAGS" 2547234949Sbaptcf_save_CPPFLAGS="$CPPFLAGS" 2548234949Sbapt 2549234949Sbaptcf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 2550234949Sbapt sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 2551234949Sbapt -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 2552234949Sbapt 2553234949Sbaptcf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 2554234949Sbapt sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 2555234949Sbapt -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 2556234949Sbapt 2557272957Srodrigcecho "$as_me:2557: checking if we should define _POSIX_C_SOURCE" >&5 2558234949Sbaptecho $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 2559234949Sbaptif test "${cf_cv_posix_c_source+set}" = set; then 2560234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2561234949Sbaptelse 2562234949Sbapt 2563272957Srodrigcecho "${as_me:-configure}:2563: testing if the symbol is already defined go no further ..." 1>&5 2564234949Sbapt 2565234949Sbapt cat >conftest.$ac_ext <<_ACEOF 2566272957Srodrigc#line 2566 "configure" 2567234949Sbapt#include "confdefs.h" 2568234949Sbapt#include <sys/types.h> 2569234949Sbaptint 2570234949Sbaptmain () 2571234949Sbapt{ 2572234949Sbapt 2573234949Sbapt#ifndef _POSIX_C_SOURCE 2574234949Sbaptmake an error 2575234949Sbapt#endif 2576234949Sbapt ; 2577234949Sbapt return 0; 2578234949Sbapt} 2579234949Sbapt_ACEOF 2580234949Sbaptrm -f conftest.$ac_objext 2581272957Srodrigcif { (eval echo "$as_me:2581: \"$ac_compile\"") >&5 2582234949Sbapt (eval $ac_compile) 2>&5 2583234949Sbapt ac_status=$? 2584272957Srodrigc echo "$as_me:2584: \$? = $ac_status" >&5 2585234949Sbapt (exit $ac_status); } && 2586234949Sbapt { ac_try='test -s conftest.$ac_objext' 2587272957Srodrigc { (eval echo "$as_me:2587: \"$ac_try\"") >&5 2588234949Sbapt (eval $ac_try) 2>&5 2589234949Sbapt ac_status=$? 2590272957Srodrigc echo "$as_me:2590: \$? = $ac_status" >&5 2591234949Sbapt (exit $ac_status); }; }; then 2592234949Sbapt cf_cv_posix_c_source=no 2593234949Sbaptelse 2594234949Sbapt echo "$as_me: failed program was:" >&5 2595234949Sbaptcat conftest.$ac_ext >&5 2596234949Sbaptcf_want_posix_source=no 2597234949Sbapt case .$cf_POSIX_C_SOURCE in #(vi 2598234949Sbapt .[12]??*) #(vi 2599234949Sbapt cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 2600234949Sbapt ;; 2601234949Sbapt .2) #(vi 2602234949Sbapt cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 2603234949Sbapt cf_want_posix_source=yes 2604234949Sbapt ;; 2605234949Sbapt .*) 2606234949Sbapt cf_want_posix_source=yes 2607234949Sbapt ;; 2608234949Sbapt esac 2609234949Sbapt if test "$cf_want_posix_source" = yes ; then 2610234949Sbapt cat >conftest.$ac_ext <<_ACEOF 2611272957Srodrigc#line 2611 "configure" 2612234949Sbapt#include "confdefs.h" 2613234949Sbapt#include <sys/types.h> 2614234949Sbaptint 2615234949Sbaptmain () 2616234949Sbapt{ 2617234949Sbapt 2618234949Sbapt#ifdef _POSIX_SOURCE 2619234949Sbaptmake an error 2620234949Sbapt#endif 2621234949Sbapt ; 2622234949Sbapt return 0; 2623234949Sbapt} 2624234949Sbapt_ACEOF 2625234949Sbaptrm -f conftest.$ac_objext 2626272957Srodrigcif { (eval echo "$as_me:2626: \"$ac_compile\"") >&5 2627234949Sbapt (eval $ac_compile) 2>&5 2628234949Sbapt ac_status=$? 2629272957Srodrigc echo "$as_me:2629: \$? = $ac_status" >&5 2630234949Sbapt (exit $ac_status); } && 2631234949Sbapt { ac_try='test -s conftest.$ac_objext' 2632272957Srodrigc { (eval echo "$as_me:2632: \"$ac_try\"") >&5 2633234949Sbapt (eval $ac_try) 2>&5 2634234949Sbapt ac_status=$? 2635272957Srodrigc echo "$as_me:2635: \$? = $ac_status" >&5 2636234949Sbapt (exit $ac_status); }; }; then 2637234949Sbapt : 2638234949Sbaptelse 2639234949Sbapt echo "$as_me: failed program was:" >&5 2640234949Sbaptcat conftest.$ac_ext >&5 2641234949Sbaptcf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 2642234949Sbaptfi 2643234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 2644234949Sbapt fi 2645234949Sbapt 2646272957Srodrigcecho "${as_me:-configure}:2646: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 2647234949Sbapt 2648234949Sbapt CFLAGS="$cf_trim_CFLAGS" 2649234949Sbapt CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source" 2650234949Sbapt 2651272957Srodrigcecho "${as_me:-configure}:2651: testing if the second compile does not leave our definition intact error ..." 1>&5 2652234949Sbapt 2653234949Sbapt cat >conftest.$ac_ext <<_ACEOF 2654272957Srodrigc#line 2654 "configure" 2655234949Sbapt#include "confdefs.h" 2656234949Sbapt#include <sys/types.h> 2657234949Sbaptint 2658234949Sbaptmain () 2659234949Sbapt{ 2660234949Sbapt 2661234949Sbapt#ifndef _POSIX_C_SOURCE 2662234949Sbaptmake an error 2663234949Sbapt#endif 2664234949Sbapt ; 2665234949Sbapt return 0; 2666234949Sbapt} 2667234949Sbapt_ACEOF 2668234949Sbaptrm -f conftest.$ac_objext 2669272957Srodrigcif { (eval echo "$as_me:2669: \"$ac_compile\"") >&5 2670234949Sbapt (eval $ac_compile) 2>&5 2671234949Sbapt ac_status=$? 2672272957Srodrigc echo "$as_me:2672: \$? = $ac_status" >&5 2673234949Sbapt (exit $ac_status); } && 2674234949Sbapt { ac_try='test -s conftest.$ac_objext' 2675272957Srodrigc { (eval echo "$as_me:2675: \"$ac_try\"") >&5 2676234949Sbapt (eval $ac_try) 2>&5 2677234949Sbapt ac_status=$? 2678272957Srodrigc echo "$as_me:2678: \$? = $ac_status" >&5 2679234949Sbapt (exit $ac_status); }; }; then 2680234949Sbapt : 2681234949Sbaptelse 2682234949Sbapt echo "$as_me: failed program was:" >&5 2683234949Sbaptcat conftest.$ac_ext >&5 2684234949Sbaptcf_cv_posix_c_source=no 2685234949Sbaptfi 2686234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 2687234949Sbapt CFLAGS="$cf_save_CFLAGS" 2688234949Sbapt CPPFLAGS="$cf_save_CPPFLAGS" 2689234949Sbapt 2690234949Sbaptfi 2691234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 2692234949Sbapt 2693234949Sbaptfi 2694272957Srodrigcecho "$as_me:2694: result: $cf_cv_posix_c_source" >&5 2695234949Sbaptecho "${ECHO_T}$cf_cv_posix_c_source" >&6 2696234949Sbapt 2697234949Sbaptif test "$cf_cv_posix_c_source" != no ; then 2698234949Sbapt CFLAGS="$cf_trim_CFLAGS" 2699234949Sbapt CPPFLAGS="$cf_trim_CPPFLAGS" 2700234949Sbapt 2701234949Sbaptcf_fix_cppflags=no 2702234949Sbaptcf_new_cflags= 2703234949Sbaptcf_new_cppflags= 2704234949Sbaptcf_new_extra_cppflags= 2705234949Sbapt 2706234949Sbaptfor cf_add_cflags in $cf_cv_posix_c_source 2707234949Sbaptdo 2708234949Sbaptcase $cf_fix_cppflags in 2709234949Sbaptno) 2710234949Sbapt case $cf_add_cflags in #(vi 2711234949Sbapt -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 2712234949Sbapt case $cf_add_cflags in 2713234949Sbapt -D*) 2714234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 2715234949Sbapt 2716272955Srodrigc test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2717234949Sbapt && test -z "${cf_tst_cflags}" \ 2718234949Sbapt && cf_fix_cppflags=yes 2719234949Sbapt 2720234949Sbapt if test $cf_fix_cppflags = yes ; then 2721234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2722234949Sbapt continue 2723234949Sbapt elif test "${cf_tst_cflags}" = "\"'" ; then 2724234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2725234949Sbapt continue 2726234949Sbapt fi 2727234949Sbapt ;; 2728234949Sbapt esac 2729234949Sbapt case "$CPPFLAGS" in 2730234949Sbapt *$cf_add_cflags) #(vi 2731234949Sbapt ;; 2732234949Sbapt *) #(vi 2733234949Sbapt case $cf_add_cflags in #(vi 2734234949Sbapt -D*) 2735234949Sbapt cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 2736234949Sbapt 2737234949SbaptCPPFLAGS=`echo "$CPPFLAGS" | \ 2738234949Sbapt sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 2739234949Sbapt -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 2740234949Sbapt 2741234949Sbapt ;; 2742234949Sbapt esac 2743234949Sbapt cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 2744234949Sbapt ;; 2745234949Sbapt esac 2746234949Sbapt ;; 2747234949Sbapt *) 2748234949Sbapt cf_new_cflags="$cf_new_cflags $cf_add_cflags" 2749234949Sbapt ;; 2750234949Sbapt esac 2751234949Sbapt ;; 2752234949Sbaptyes) 2753234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2754234949Sbapt 2755234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 2756234949Sbapt 2757272955Srodrigc test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2758234949Sbapt && test -z "${cf_tst_cflags}" \ 2759234949Sbapt && cf_fix_cppflags=no 2760234949Sbapt ;; 2761234949Sbaptesac 2762234949Sbaptdone 2763234949Sbapt 2764234949Sbaptif test -n "$cf_new_cflags" ; then 2765234949Sbapt 2766234949Sbapt CFLAGS="$CFLAGS $cf_new_cflags" 2767234949Sbaptfi 2768234949Sbapt 2769234949Sbaptif test -n "$cf_new_cppflags" ; then 2770234949Sbapt 2771234949Sbapt CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 2772234949Sbaptfi 2773234949Sbapt 2774234949Sbaptif test -n "$cf_new_extra_cppflags" ; then 2775234949Sbapt 2776234949Sbapt EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 2777234949Sbaptfi 2778234949Sbapt 2779234949Sbaptfi 2780234949Sbapt 2781234949Sbapt ;; 2782234949Sbaptnetbsd*) #(vi 2783234949Sbapt cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw 2784234949Sbapt ;; 2785234949Sbaptopenbsd[4-9]*) #(vi 2786234949Sbapt # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw 2787234949Sbapt cf_xopen_source="-D_BSD_SOURCE" 2788234949Sbapt cf_XOPEN_SOURCE=600 2789234949Sbapt ;; 2790234949Sbaptopenbsd*) #(vi 2791234949Sbapt # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw 2792234949Sbapt ;; 2793234949Sbaptosf[45]*) #(vi 2794234949Sbapt cf_xopen_source="-D_OSF_SOURCE" 2795234949Sbapt ;; 2796234949Sbaptnto-qnx*) #(vi 2797234949Sbapt cf_xopen_source="-D_QNX_SOURCE" 2798234949Sbapt ;; 2799234949Sbaptsco*) #(vi 2800234949Sbapt # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer 2801234949Sbapt ;; 2802234949Sbaptsolaris2.*) #(vi 2803234949Sbapt cf_xopen_source="-D__EXTENSIONS__" 2804268899Sbapt cf_cv_xopen_source=broken 2805234949Sbapt ;; 2806272957Srodrigcsysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2) 2807272957Srodrigc cf_XOPEN_SOURCE= 2808272957Srodrigc cf_POSIX_C_SOURCE= 2809272957Srodrigc ;; 2810234949Sbapt*) 2811234949Sbapt 2812272957Srodrigcecho "$as_me:2812: checking if we should define _XOPEN_SOURCE" >&5 2813234949Sbaptecho $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 2814234949Sbaptif test "${cf_cv_xopen_source+set}" = set; then 2815234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2816234949Sbaptelse 2817234949Sbapt 2818234949Sbapt cat >conftest.$ac_ext <<_ACEOF 2819272957Srodrigc#line 2819 "configure" 2820234949Sbapt#include "confdefs.h" 2821234949Sbapt 2822234949Sbapt#include <stdlib.h> 2823234949Sbapt#include <string.h> 2824234949Sbapt#include <sys/types.h> 2825234949Sbapt 2826234949Sbaptint 2827234949Sbaptmain () 2828234949Sbapt{ 2829234949Sbapt 2830234949Sbapt#ifndef _XOPEN_SOURCE 2831234949Sbaptmake an error 2832234949Sbapt#endif 2833234949Sbapt ; 2834234949Sbapt return 0; 2835234949Sbapt} 2836234949Sbapt_ACEOF 2837234949Sbaptrm -f conftest.$ac_objext 2838272957Srodrigcif { (eval echo "$as_me:2838: \"$ac_compile\"") >&5 2839234949Sbapt (eval $ac_compile) 2>&5 2840234949Sbapt ac_status=$? 2841272957Srodrigc echo "$as_me:2841: \$? = $ac_status" >&5 2842234949Sbapt (exit $ac_status); } && 2843234949Sbapt { ac_try='test -s conftest.$ac_objext' 2844272957Srodrigc { (eval echo "$as_me:2844: \"$ac_try\"") >&5 2845234949Sbapt (eval $ac_try) 2>&5 2846234949Sbapt ac_status=$? 2847272957Srodrigc echo "$as_me:2847: \$? = $ac_status" >&5 2848234949Sbapt (exit $ac_status); }; }; then 2849234949Sbapt cf_cv_xopen_source=no 2850234949Sbaptelse 2851234949Sbapt echo "$as_me: failed program was:" >&5 2852234949Sbaptcat conftest.$ac_ext >&5 2853234949Sbaptcf_save="$CPPFLAGS" 2854234949Sbapt CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 2855234949Sbapt cat >conftest.$ac_ext <<_ACEOF 2856272957Srodrigc#line 2856 "configure" 2857234949Sbapt#include "confdefs.h" 2858234949Sbapt 2859234949Sbapt#include <stdlib.h> 2860234949Sbapt#include <string.h> 2861234949Sbapt#include <sys/types.h> 2862234949Sbapt 2863234949Sbaptint 2864234949Sbaptmain () 2865234949Sbapt{ 2866234949Sbapt 2867234949Sbapt#ifdef _XOPEN_SOURCE 2868234949Sbaptmake an error 2869234949Sbapt#endif 2870234949Sbapt ; 2871234949Sbapt return 0; 2872234949Sbapt} 2873234949Sbapt_ACEOF 2874234949Sbaptrm -f conftest.$ac_objext 2875272957Srodrigcif { (eval echo "$as_me:2875: \"$ac_compile\"") >&5 2876234949Sbapt (eval $ac_compile) 2>&5 2877234949Sbapt ac_status=$? 2878272957Srodrigc echo "$as_me:2878: \$? = $ac_status" >&5 2879234949Sbapt (exit $ac_status); } && 2880234949Sbapt { ac_try='test -s conftest.$ac_objext' 2881272957Srodrigc { (eval echo "$as_me:2881: \"$ac_try\"") >&5 2882234949Sbapt (eval $ac_try) 2>&5 2883234949Sbapt ac_status=$? 2884272957Srodrigc echo "$as_me:2884: \$? = $ac_status" >&5 2885234949Sbapt (exit $ac_status); }; }; then 2886234949Sbapt cf_cv_xopen_source=no 2887234949Sbaptelse 2888234949Sbapt echo "$as_me: failed program was:" >&5 2889234949Sbaptcat conftest.$ac_ext >&5 2890234949Sbaptcf_cv_xopen_source=$cf_XOPEN_SOURCE 2891234949Sbaptfi 2892234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 2893234949Sbapt CPPFLAGS="$cf_save" 2894234949Sbapt 2895234949Sbaptfi 2896234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 2897234949Sbapt 2898234949Sbaptfi 2899272957Srodrigcecho "$as_me:2899: result: $cf_cv_xopen_source" >&5 2900234949Sbaptecho "${ECHO_T}$cf_cv_xopen_source" >&6 2901234949Sbapt 2902234949Sbaptif test "$cf_cv_xopen_source" != no ; then 2903234949Sbapt 2904234949SbaptCFLAGS=`echo "$CFLAGS" | \ 2905234949Sbapt sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 2906234949Sbapt -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 2907234949Sbapt 2908234949SbaptCPPFLAGS=`echo "$CPPFLAGS" | \ 2909234949Sbapt sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 2910234949Sbapt -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 2911234949Sbapt 2912234949Sbapt cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 2913234949Sbapt 2914234949Sbaptcf_fix_cppflags=no 2915234949Sbaptcf_new_cflags= 2916234949Sbaptcf_new_cppflags= 2917234949Sbaptcf_new_extra_cppflags= 2918234949Sbapt 2919234949Sbaptfor cf_add_cflags in $cf_temp_xopen_source 2920234949Sbaptdo 2921234949Sbaptcase $cf_fix_cppflags in 2922234949Sbaptno) 2923234949Sbapt case $cf_add_cflags in #(vi 2924234949Sbapt -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 2925234949Sbapt case $cf_add_cflags in 2926234949Sbapt -D*) 2927234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 2928234949Sbapt 2929272955Srodrigc test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2930234949Sbapt && test -z "${cf_tst_cflags}" \ 2931234949Sbapt && cf_fix_cppflags=yes 2932234949Sbapt 2933234949Sbapt if test $cf_fix_cppflags = yes ; then 2934234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2935234949Sbapt continue 2936234949Sbapt elif test "${cf_tst_cflags}" = "\"'" ; then 2937234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2938234949Sbapt continue 2939234949Sbapt fi 2940234949Sbapt ;; 2941234949Sbapt esac 2942234949Sbapt case "$CPPFLAGS" in 2943234949Sbapt *$cf_add_cflags) #(vi 2944234949Sbapt ;; 2945234949Sbapt *) #(vi 2946234949Sbapt case $cf_add_cflags in #(vi 2947234949Sbapt -D*) 2948234949Sbapt cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 2949234949Sbapt 2950234949SbaptCPPFLAGS=`echo "$CPPFLAGS" | \ 2951234949Sbapt sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 2952234949Sbapt -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 2953234949Sbapt 2954234949Sbapt ;; 2955234949Sbapt esac 2956234949Sbapt cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 2957234949Sbapt ;; 2958234949Sbapt esac 2959234949Sbapt ;; 2960234949Sbapt *) 2961234949Sbapt cf_new_cflags="$cf_new_cflags $cf_add_cflags" 2962234949Sbapt ;; 2963234949Sbapt esac 2964234949Sbapt ;; 2965234949Sbaptyes) 2966234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 2967234949Sbapt 2968234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 2969234949Sbapt 2970272955Srodrigc test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 2971234949Sbapt && test -z "${cf_tst_cflags}" \ 2972234949Sbapt && cf_fix_cppflags=no 2973234949Sbapt ;; 2974234949Sbaptesac 2975234949Sbaptdone 2976234949Sbapt 2977234949Sbaptif test -n "$cf_new_cflags" ; then 2978234949Sbapt 2979234949Sbapt CFLAGS="$CFLAGS $cf_new_cflags" 2980234949Sbaptfi 2981234949Sbapt 2982234949Sbaptif test -n "$cf_new_cppflags" ; then 2983234949Sbapt 2984234949Sbapt CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 2985234949Sbaptfi 2986234949Sbapt 2987234949Sbaptif test -n "$cf_new_extra_cppflags" ; then 2988234949Sbapt 2989234949Sbapt EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 2990234949Sbaptfi 2991234949Sbapt 2992234949Sbaptfi 2993234949Sbapt 2994234949Sbaptcf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE 2995234949Sbapt 2996234949Sbaptcf_save_CFLAGS="$CFLAGS" 2997234949Sbaptcf_save_CPPFLAGS="$CPPFLAGS" 2998234949Sbapt 2999234949Sbaptcf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ 3000234949Sbapt sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3001234949Sbapt -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 3002234949Sbapt 3003234949Sbaptcf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ 3004234949Sbapt sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3005234949Sbapt -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` 3006234949Sbapt 3007272957Srodrigcecho "$as_me:3007: checking if we should define _POSIX_C_SOURCE" >&5 3008234949Sbaptecho $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 3009234949Sbaptif test "${cf_cv_posix_c_source+set}" = set; then 3010234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 3011234949Sbaptelse 3012234949Sbapt 3013272957Srodrigcecho "${as_me:-configure}:3013: testing if the symbol is already defined go no further ..." 1>&5 3014234949Sbapt 3015234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3016272957Srodrigc#line 3016 "configure" 3017234949Sbapt#include "confdefs.h" 3018234949Sbapt#include <sys/types.h> 3019234949Sbaptint 3020234949Sbaptmain () 3021234949Sbapt{ 3022234949Sbapt 3023234949Sbapt#ifndef _POSIX_C_SOURCE 3024234949Sbaptmake an error 3025234949Sbapt#endif 3026234949Sbapt ; 3027234949Sbapt return 0; 3028234949Sbapt} 3029234949Sbapt_ACEOF 3030234949Sbaptrm -f conftest.$ac_objext 3031272957Srodrigcif { (eval echo "$as_me:3031: \"$ac_compile\"") >&5 3032234949Sbapt (eval $ac_compile) 2>&5 3033234949Sbapt ac_status=$? 3034272957Srodrigc echo "$as_me:3034: \$? = $ac_status" >&5 3035234949Sbapt (exit $ac_status); } && 3036234949Sbapt { ac_try='test -s conftest.$ac_objext' 3037272957Srodrigc { (eval echo "$as_me:3037: \"$ac_try\"") >&5 3038234949Sbapt (eval $ac_try) 2>&5 3039234949Sbapt ac_status=$? 3040272957Srodrigc echo "$as_me:3040: \$? = $ac_status" >&5 3041234949Sbapt (exit $ac_status); }; }; then 3042234949Sbapt cf_cv_posix_c_source=no 3043234949Sbaptelse 3044234949Sbapt echo "$as_me: failed program was:" >&5 3045234949Sbaptcat conftest.$ac_ext >&5 3046234949Sbaptcf_want_posix_source=no 3047234949Sbapt case .$cf_POSIX_C_SOURCE in #(vi 3048234949Sbapt .[12]??*) #(vi 3049234949Sbapt cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3050234949Sbapt ;; 3051234949Sbapt .2) #(vi 3052234949Sbapt cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" 3053234949Sbapt cf_want_posix_source=yes 3054234949Sbapt ;; 3055234949Sbapt .*) 3056234949Sbapt cf_want_posix_source=yes 3057234949Sbapt ;; 3058234949Sbapt esac 3059234949Sbapt if test "$cf_want_posix_source" = yes ; then 3060234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3061272957Srodrigc#line 3061 "configure" 3062234949Sbapt#include "confdefs.h" 3063234949Sbapt#include <sys/types.h> 3064234949Sbaptint 3065234949Sbaptmain () 3066234949Sbapt{ 3067234949Sbapt 3068234949Sbapt#ifdef _POSIX_SOURCE 3069234949Sbaptmake an error 3070234949Sbapt#endif 3071234949Sbapt ; 3072234949Sbapt return 0; 3073234949Sbapt} 3074234949Sbapt_ACEOF 3075234949Sbaptrm -f conftest.$ac_objext 3076272957Srodrigcif { (eval echo "$as_me:3076: \"$ac_compile\"") >&5 3077234949Sbapt (eval $ac_compile) 2>&5 3078234949Sbapt ac_status=$? 3079272957Srodrigc echo "$as_me:3079: \$? = $ac_status" >&5 3080234949Sbapt (exit $ac_status); } && 3081234949Sbapt { ac_try='test -s conftest.$ac_objext' 3082272957Srodrigc { (eval echo "$as_me:3082: \"$ac_try\"") >&5 3083234949Sbapt (eval $ac_try) 2>&5 3084234949Sbapt ac_status=$? 3085272957Srodrigc echo "$as_me:3085: \$? = $ac_status" >&5 3086234949Sbapt (exit $ac_status); }; }; then 3087234949Sbapt : 3088234949Sbaptelse 3089234949Sbapt echo "$as_me: failed program was:" >&5 3090234949Sbaptcat conftest.$ac_ext >&5 3091234949Sbaptcf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" 3092234949Sbaptfi 3093234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 3094234949Sbapt fi 3095234949Sbapt 3096272957Srodrigcecho "${as_me:-configure}:3096: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 3097234949Sbapt 3098234949Sbapt CFLAGS="$cf_trim_CFLAGS" 3099234949Sbapt CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source" 3100234949Sbapt 3101272957Srodrigcecho "${as_me:-configure}:3101: testing if the second compile does not leave our definition intact error ..." 1>&5 3102234949Sbapt 3103234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3104272957Srodrigc#line 3104 "configure" 3105234949Sbapt#include "confdefs.h" 3106234949Sbapt#include <sys/types.h> 3107234949Sbaptint 3108234949Sbaptmain () 3109234949Sbapt{ 3110234949Sbapt 3111234949Sbapt#ifndef _POSIX_C_SOURCE 3112234949Sbaptmake an error 3113234949Sbapt#endif 3114234949Sbapt ; 3115234949Sbapt return 0; 3116234949Sbapt} 3117234949Sbapt_ACEOF 3118234949Sbaptrm -f conftest.$ac_objext 3119272957Srodrigcif { (eval echo "$as_me:3119: \"$ac_compile\"") >&5 3120234949Sbapt (eval $ac_compile) 2>&5 3121234949Sbapt ac_status=$? 3122272957Srodrigc echo "$as_me:3122: \$? = $ac_status" >&5 3123234949Sbapt (exit $ac_status); } && 3124234949Sbapt { ac_try='test -s conftest.$ac_objext' 3125272957Srodrigc { (eval echo "$as_me:3125: \"$ac_try\"") >&5 3126234949Sbapt (eval $ac_try) 2>&5 3127234949Sbapt ac_status=$? 3128272957Srodrigc echo "$as_me:3128: \$? = $ac_status" >&5 3129234949Sbapt (exit $ac_status); }; }; then 3130234949Sbapt : 3131234949Sbaptelse 3132234949Sbapt echo "$as_me: failed program was:" >&5 3133234949Sbaptcat conftest.$ac_ext >&5 3134234949Sbaptcf_cv_posix_c_source=no 3135234949Sbaptfi 3136234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 3137234949Sbapt CFLAGS="$cf_save_CFLAGS" 3138234949Sbapt CPPFLAGS="$cf_save_CPPFLAGS" 3139234949Sbapt 3140234949Sbaptfi 3141234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 3142234949Sbapt 3143234949Sbaptfi 3144272957Srodrigcecho "$as_me:3144: result: $cf_cv_posix_c_source" >&5 3145234949Sbaptecho "${ECHO_T}$cf_cv_posix_c_source" >&6 3146234949Sbapt 3147234949Sbaptif test "$cf_cv_posix_c_source" != no ; then 3148234949Sbapt CFLAGS="$cf_trim_CFLAGS" 3149234949Sbapt CPPFLAGS="$cf_trim_CPPFLAGS" 3150234949Sbapt 3151234949Sbaptcf_fix_cppflags=no 3152234949Sbaptcf_new_cflags= 3153234949Sbaptcf_new_cppflags= 3154234949Sbaptcf_new_extra_cppflags= 3155234949Sbapt 3156234949Sbaptfor cf_add_cflags in $cf_cv_posix_c_source 3157234949Sbaptdo 3158234949Sbaptcase $cf_fix_cppflags in 3159234949Sbaptno) 3160234949Sbapt case $cf_add_cflags in #(vi 3161234949Sbapt -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 3162234949Sbapt case $cf_add_cflags in 3163234949Sbapt -D*) 3164234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3165234949Sbapt 3166272955Srodrigc test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3167234949Sbapt && test -z "${cf_tst_cflags}" \ 3168234949Sbapt && cf_fix_cppflags=yes 3169234949Sbapt 3170234949Sbapt if test $cf_fix_cppflags = yes ; then 3171234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3172234949Sbapt continue 3173234949Sbapt elif test "${cf_tst_cflags}" = "\"'" ; then 3174234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3175234949Sbapt continue 3176234949Sbapt fi 3177234949Sbapt ;; 3178234949Sbapt esac 3179234949Sbapt case "$CPPFLAGS" in 3180234949Sbapt *$cf_add_cflags) #(vi 3181234949Sbapt ;; 3182234949Sbapt *) #(vi 3183234949Sbapt case $cf_add_cflags in #(vi 3184234949Sbapt -D*) 3185234949Sbapt cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3186234949Sbapt 3187234949SbaptCPPFLAGS=`echo "$CPPFLAGS" | \ 3188234949Sbapt sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3189234949Sbapt -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3190234949Sbapt 3191234949Sbapt ;; 3192234949Sbapt esac 3193234949Sbapt cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3194234949Sbapt ;; 3195234949Sbapt esac 3196234949Sbapt ;; 3197234949Sbapt *) 3198234949Sbapt cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3199234949Sbapt ;; 3200234949Sbapt esac 3201234949Sbapt ;; 3202234949Sbaptyes) 3203234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3204234949Sbapt 3205234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3206234949Sbapt 3207272955Srodrigc test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3208234949Sbapt && test -z "${cf_tst_cflags}" \ 3209234949Sbapt && cf_fix_cppflags=no 3210234949Sbapt ;; 3211234949Sbaptesac 3212234949Sbaptdone 3213234949Sbapt 3214234949Sbaptif test -n "$cf_new_cflags" ; then 3215234949Sbapt 3216234949Sbapt CFLAGS="$CFLAGS $cf_new_cflags" 3217234949Sbaptfi 3218234949Sbapt 3219234949Sbaptif test -n "$cf_new_cppflags" ; then 3220234949Sbapt 3221234949Sbapt CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3222234949Sbaptfi 3223234949Sbapt 3224234949Sbaptif test -n "$cf_new_extra_cppflags" ; then 3225234949Sbapt 3226234949Sbapt EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3227234949Sbaptfi 3228234949Sbapt 3229234949Sbaptfi 3230234949Sbapt 3231234949Sbapt ;; 3232234949Sbaptesac 3233234949Sbapt 3234234949Sbaptif test -n "$cf_xopen_source" ; then 3235234949Sbapt 3236234949Sbaptcf_fix_cppflags=no 3237234949Sbaptcf_new_cflags= 3238234949Sbaptcf_new_cppflags= 3239234949Sbaptcf_new_extra_cppflags= 3240234949Sbapt 3241234949Sbaptfor cf_add_cflags in $cf_xopen_source 3242234949Sbaptdo 3243234949Sbaptcase $cf_fix_cppflags in 3244234949Sbaptno) 3245234949Sbapt case $cf_add_cflags in #(vi 3246234949Sbapt -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 3247234949Sbapt case $cf_add_cflags in 3248234949Sbapt -D*) 3249234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3250234949Sbapt 3251272955Srodrigc test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3252234949Sbapt && test -z "${cf_tst_cflags}" \ 3253234949Sbapt && cf_fix_cppflags=yes 3254234949Sbapt 3255234949Sbapt if test $cf_fix_cppflags = yes ; then 3256234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3257234949Sbapt continue 3258234949Sbapt elif test "${cf_tst_cflags}" = "\"'" ; then 3259234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3260234949Sbapt continue 3261234949Sbapt fi 3262234949Sbapt ;; 3263234949Sbapt esac 3264234949Sbapt case "$CPPFLAGS" in 3265234949Sbapt *$cf_add_cflags) #(vi 3266234949Sbapt ;; 3267234949Sbapt *) #(vi 3268234949Sbapt case $cf_add_cflags in #(vi 3269234949Sbapt -D*) 3270234949Sbapt cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3271234949Sbapt 3272234949SbaptCPPFLAGS=`echo "$CPPFLAGS" | \ 3273234949Sbapt sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3274234949Sbapt -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3275234949Sbapt 3276234949Sbapt ;; 3277234949Sbapt esac 3278234949Sbapt cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3279234949Sbapt ;; 3280234949Sbapt esac 3281234949Sbapt ;; 3282234949Sbapt *) 3283234949Sbapt cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3284234949Sbapt ;; 3285234949Sbapt esac 3286234949Sbapt ;; 3287234949Sbaptyes) 3288234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3289234949Sbapt 3290234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3291234949Sbapt 3292272955Srodrigc test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3293234949Sbapt && test -z "${cf_tst_cflags}" \ 3294234949Sbapt && cf_fix_cppflags=no 3295234949Sbapt ;; 3296234949Sbaptesac 3297234949Sbaptdone 3298234949Sbapt 3299234949Sbaptif test -n "$cf_new_cflags" ; then 3300272955Srodrigc test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6 3301234949Sbapt 3302272957Srodrigcecho "${as_me:-configure}:3302: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5 3303272955Srodrigc 3304234949Sbapt CFLAGS="$CFLAGS $cf_new_cflags" 3305234949Sbaptfi 3306234949Sbapt 3307234949Sbaptif test -n "$cf_new_cppflags" ; then 3308272955Srodrigc test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6 3309234949Sbapt 3310272957Srodrigcecho "${as_me:-configure}:3310: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5 3311272955Srodrigc 3312234949Sbapt CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3313234949Sbaptfi 3314234949Sbapt 3315234949Sbaptif test -n "$cf_new_extra_cppflags" ; then 3316272955Srodrigc test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6 3317234949Sbapt 3318272957Srodrigcecho "${as_me:-configure}:3318: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5 3319272955Srodrigc 3320234949Sbapt EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3321234949Sbaptfi 3322234949Sbapt 3323234949Sbaptfi 3324234949Sbapt 3325234949Sbaptif test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then 3326272957Srodrigc echo "$as_me:3326: checking if _XOPEN_SOURCE really is set" >&5 3327234949Sbaptecho $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6 3328234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3329272957Srodrigc#line 3329 "configure" 3330234949Sbapt#include "confdefs.h" 3331234949Sbapt#include <stdlib.h> 3332234949Sbaptint 3333234949Sbaptmain () 3334234949Sbapt{ 3335234949Sbapt 3336234949Sbapt#ifndef _XOPEN_SOURCE 3337234949Sbaptmake an error 3338234949Sbapt#endif 3339234949Sbapt ; 3340234949Sbapt return 0; 3341234949Sbapt} 3342234949Sbapt_ACEOF 3343234949Sbaptrm -f conftest.$ac_objext 3344272957Srodrigcif { (eval echo "$as_me:3344: \"$ac_compile\"") >&5 3345234949Sbapt (eval $ac_compile) 2>&5 3346234949Sbapt ac_status=$? 3347272957Srodrigc echo "$as_me:3347: \$? = $ac_status" >&5 3348234949Sbapt (exit $ac_status); } && 3349234949Sbapt { ac_try='test -s conftest.$ac_objext' 3350272957Srodrigc { (eval echo "$as_me:3350: \"$ac_try\"") >&5 3351234949Sbapt (eval $ac_try) 2>&5 3352234949Sbapt ac_status=$? 3353272957Srodrigc echo "$as_me:3353: \$? = $ac_status" >&5 3354234949Sbapt (exit $ac_status); }; }; then 3355234949Sbapt cf_XOPEN_SOURCE_set=yes 3356234949Sbaptelse 3357234949Sbapt echo "$as_me: failed program was:" >&5 3358234949Sbaptcat conftest.$ac_ext >&5 3359234949Sbaptcf_XOPEN_SOURCE_set=no 3360234949Sbaptfi 3361234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 3362272957Srodrigc echo "$as_me:3362: result: $cf_XOPEN_SOURCE_set" >&5 3363234949Sbaptecho "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6 3364234949Sbapt if test $cf_XOPEN_SOURCE_set = yes 3365234949Sbapt then 3366234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3367272957Srodrigc#line 3367 "configure" 3368234949Sbapt#include "confdefs.h" 3369234949Sbapt#include <stdlib.h> 3370234949Sbaptint 3371234949Sbaptmain () 3372234949Sbapt{ 3373234949Sbapt 3374234949Sbapt#if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE 3375234949Sbaptmake an error 3376234949Sbapt#endif 3377234949Sbapt ; 3378234949Sbapt return 0; 3379234949Sbapt} 3380234949Sbapt_ACEOF 3381234949Sbaptrm -f conftest.$ac_objext 3382272957Srodrigcif { (eval echo "$as_me:3382: \"$ac_compile\"") >&5 3383234949Sbapt (eval $ac_compile) 2>&5 3384234949Sbapt ac_status=$? 3385272957Srodrigc echo "$as_me:3385: \$? = $ac_status" >&5 3386234949Sbapt (exit $ac_status); } && 3387234949Sbapt { ac_try='test -s conftest.$ac_objext' 3388272957Srodrigc { (eval echo "$as_me:3388: \"$ac_try\"") >&5 3389234949Sbapt (eval $ac_try) 2>&5 3390234949Sbapt ac_status=$? 3391272957Srodrigc echo "$as_me:3391: \$? = $ac_status" >&5 3392234949Sbapt (exit $ac_status); }; }; then 3393234949Sbapt cf_XOPEN_SOURCE_set_ok=yes 3394234949Sbaptelse 3395234949Sbapt echo "$as_me: failed program was:" >&5 3396234949Sbaptcat conftest.$ac_ext >&5 3397234949Sbaptcf_XOPEN_SOURCE_set_ok=no 3398234949Sbaptfi 3399234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 3400234949Sbapt if test $cf_XOPEN_SOURCE_set_ok = no 3401234949Sbapt then 3402272957Srodrigc { echo "$as_me:3402: WARNING: _XOPEN_SOURCE is lower than requested" >&5 3403234949Sbaptecho "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;} 3404234949Sbapt fi 3405234949Sbapt else 3406234949Sbapt 3407272957Srodrigcecho "$as_me:3407: checking if we should define _XOPEN_SOURCE" >&5 3408234949Sbaptecho $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 3409234949Sbaptif test "${cf_cv_xopen_source+set}" = set; then 3410234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 3411234949Sbaptelse 3412234949Sbapt 3413234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3414272957Srodrigc#line 3414 "configure" 3415234949Sbapt#include "confdefs.h" 3416234949Sbapt 3417234949Sbapt#include <stdlib.h> 3418234949Sbapt#include <string.h> 3419234949Sbapt#include <sys/types.h> 3420234949Sbapt 3421234949Sbaptint 3422234949Sbaptmain () 3423234949Sbapt{ 3424234949Sbapt 3425234949Sbapt#ifndef _XOPEN_SOURCE 3426234949Sbaptmake an error 3427234949Sbapt#endif 3428234949Sbapt ; 3429234949Sbapt return 0; 3430234949Sbapt} 3431234949Sbapt_ACEOF 3432234949Sbaptrm -f conftest.$ac_objext 3433272957Srodrigcif { (eval echo "$as_me:3433: \"$ac_compile\"") >&5 3434234949Sbapt (eval $ac_compile) 2>&5 3435234949Sbapt ac_status=$? 3436272957Srodrigc echo "$as_me:3436: \$? = $ac_status" >&5 3437234949Sbapt (exit $ac_status); } && 3438234949Sbapt { ac_try='test -s conftest.$ac_objext' 3439272957Srodrigc { (eval echo "$as_me:3439: \"$ac_try\"") >&5 3440234949Sbapt (eval $ac_try) 2>&5 3441234949Sbapt ac_status=$? 3442272957Srodrigc echo "$as_me:3442: \$? = $ac_status" >&5 3443234949Sbapt (exit $ac_status); }; }; then 3444234949Sbapt cf_cv_xopen_source=no 3445234949Sbaptelse 3446234949Sbapt echo "$as_me: failed program was:" >&5 3447234949Sbaptcat conftest.$ac_ext >&5 3448234949Sbaptcf_save="$CPPFLAGS" 3449234949Sbapt CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" 3450234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3451272957Srodrigc#line 3451 "configure" 3452234949Sbapt#include "confdefs.h" 3453234949Sbapt 3454234949Sbapt#include <stdlib.h> 3455234949Sbapt#include <string.h> 3456234949Sbapt#include <sys/types.h> 3457234949Sbapt 3458234949Sbaptint 3459234949Sbaptmain () 3460234949Sbapt{ 3461234949Sbapt 3462234949Sbapt#ifdef _XOPEN_SOURCE 3463234949Sbaptmake an error 3464234949Sbapt#endif 3465234949Sbapt ; 3466234949Sbapt return 0; 3467234949Sbapt} 3468234949Sbapt_ACEOF 3469234949Sbaptrm -f conftest.$ac_objext 3470272957Srodrigcif { (eval echo "$as_me:3470: \"$ac_compile\"") >&5 3471234949Sbapt (eval $ac_compile) 2>&5 3472234949Sbapt ac_status=$? 3473272957Srodrigc echo "$as_me:3473: \$? = $ac_status" >&5 3474234949Sbapt (exit $ac_status); } && 3475234949Sbapt { ac_try='test -s conftest.$ac_objext' 3476272957Srodrigc { (eval echo "$as_me:3476: \"$ac_try\"") >&5 3477234949Sbapt (eval $ac_try) 2>&5 3478234949Sbapt ac_status=$? 3479272957Srodrigc echo "$as_me:3479: \$? = $ac_status" >&5 3480234949Sbapt (exit $ac_status); }; }; then 3481234949Sbapt cf_cv_xopen_source=no 3482234949Sbaptelse 3483234949Sbapt echo "$as_me: failed program was:" >&5 3484234949Sbaptcat conftest.$ac_ext >&5 3485234949Sbaptcf_cv_xopen_source=$cf_XOPEN_SOURCE 3486234949Sbaptfi 3487234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 3488234949Sbapt CPPFLAGS="$cf_save" 3489234949Sbapt 3490234949Sbaptfi 3491234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 3492234949Sbapt 3493234949Sbaptfi 3494272957Srodrigcecho "$as_me:3494: result: $cf_cv_xopen_source" >&5 3495234949Sbaptecho "${ECHO_T}$cf_cv_xopen_source" >&6 3496234949Sbapt 3497234949Sbaptif test "$cf_cv_xopen_source" != no ; then 3498234949Sbapt 3499234949SbaptCFLAGS=`echo "$CFLAGS" | \ 3500234949Sbapt sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3501234949Sbapt -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3502234949Sbapt 3503234949SbaptCPPFLAGS=`echo "$CPPFLAGS" | \ 3504234949Sbapt sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ 3505234949Sbapt -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` 3506234949Sbapt 3507234949Sbapt cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source" 3508234949Sbapt 3509234949Sbaptcf_fix_cppflags=no 3510234949Sbaptcf_new_cflags= 3511234949Sbaptcf_new_cppflags= 3512234949Sbaptcf_new_extra_cppflags= 3513234949Sbapt 3514234949Sbaptfor cf_add_cflags in $cf_temp_xopen_source 3515234949Sbaptdo 3516234949Sbaptcase $cf_fix_cppflags in 3517234949Sbaptno) 3518234949Sbapt case $cf_add_cflags in #(vi 3519234949Sbapt -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 3520234949Sbapt case $cf_add_cflags in 3521234949Sbapt -D*) 3522234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 3523234949Sbapt 3524272955Srodrigc test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3525234949Sbapt && test -z "${cf_tst_cflags}" \ 3526234949Sbapt && cf_fix_cppflags=yes 3527234949Sbapt 3528234949Sbapt if test $cf_fix_cppflags = yes ; then 3529234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3530234949Sbapt continue 3531234949Sbapt elif test "${cf_tst_cflags}" = "\"'" ; then 3532234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3533234949Sbapt continue 3534234949Sbapt fi 3535234949Sbapt ;; 3536234949Sbapt esac 3537234949Sbapt case "$CPPFLAGS" in 3538234949Sbapt *$cf_add_cflags) #(vi 3539234949Sbapt ;; 3540234949Sbapt *) #(vi 3541234949Sbapt case $cf_add_cflags in #(vi 3542234949Sbapt -D*) 3543234949Sbapt cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 3544234949Sbapt 3545234949SbaptCPPFLAGS=`echo "$CPPFLAGS" | \ 3546234949Sbapt sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 3547234949Sbapt -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 3548234949Sbapt 3549234949Sbapt ;; 3550234949Sbapt esac 3551234949Sbapt cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 3552234949Sbapt ;; 3553234949Sbapt esac 3554234949Sbapt ;; 3555234949Sbapt *) 3556234949Sbapt cf_new_cflags="$cf_new_cflags $cf_add_cflags" 3557234949Sbapt ;; 3558234949Sbapt esac 3559234949Sbapt ;; 3560234949Sbaptyes) 3561234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 3562234949Sbapt 3563234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 3564234949Sbapt 3565272955Srodrigc test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 3566234949Sbapt && test -z "${cf_tst_cflags}" \ 3567234949Sbapt && cf_fix_cppflags=no 3568234949Sbapt ;; 3569234949Sbaptesac 3570234949Sbaptdone 3571234949Sbapt 3572234949Sbaptif test -n "$cf_new_cflags" ; then 3573234949Sbapt 3574234949Sbapt CFLAGS="$CFLAGS $cf_new_cflags" 3575234949Sbaptfi 3576234949Sbapt 3577234949Sbaptif test -n "$cf_new_cppflags" ; then 3578234949Sbapt 3579234949Sbapt CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 3580234949Sbaptfi 3581234949Sbapt 3582234949Sbaptif test -n "$cf_new_extra_cppflags" ; then 3583234949Sbapt 3584234949Sbapt EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 3585234949Sbaptfi 3586234949Sbapt 3587234949Sbaptfi 3588234949Sbapt 3589234949Sbapt fi 3590234949Sbaptfi 3591234949Sbapt 3592234949Sbaptac_ext=c 3593234949Sbaptac_cpp='$CPP $CPPFLAGS' 3594234949Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3595234949Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3596234949Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu 3597234949Sbaptac_main_return=return 3598272957Srodrigcecho "$as_me:3598: checking how to run the C preprocessor" >&5 3599234949Sbaptecho $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3600234949Sbapt# On Suns, sometimes $CPP names a directory. 3601234949Sbaptif test -n "$CPP" && test -d "$CPP"; then 3602234949Sbapt CPP= 3603234949Sbaptfi 3604234949Sbaptif test -z "$CPP"; then 3605234949Sbapt if test "${ac_cv_prog_CPP+set}" = set; then 3606234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 3607234949Sbaptelse 3608234949Sbapt # Double quotes because CPP needs to be expanded 3609234949Sbapt for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3610234949Sbapt do 3611234949Sbapt ac_preproc_ok=false 3612234949Sbaptfor ac_c_preproc_warn_flag in '' yes 3613234949Sbaptdo 3614234949Sbapt # Use a header file that comes with gcc, so configuring glibc 3615234949Sbapt # with a fresh cross-compiler works. 3616234949Sbapt # On the NeXT, cc -E runs the code through the compiler's parser, 3617234949Sbapt # not just through cpp. "Syntax error" is here to catch this case. 3618234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3619272957Srodrigc#line 3619 "configure" 3620234949Sbapt#include "confdefs.h" 3621234949Sbapt#include <assert.h> 3622234949Sbapt Syntax error 3623234949Sbapt_ACEOF 3624272957Srodrigcif { (eval echo "$as_me:3624: \"$ac_cpp conftest.$ac_ext\"") >&5 3625234949Sbapt (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3626234949Sbapt ac_status=$? 3627234949Sbapt egrep -v '^ *\+' conftest.er1 >conftest.err 3628234949Sbapt rm -f conftest.er1 3629234949Sbapt cat conftest.err >&5 3630272957Srodrigc echo "$as_me:3630: \$? = $ac_status" >&5 3631234949Sbapt (exit $ac_status); } >/dev/null; then 3632234949Sbapt if test -s conftest.err; then 3633234949Sbapt ac_cpp_err=$ac_c_preproc_warn_flag 3634234949Sbapt else 3635234949Sbapt ac_cpp_err= 3636234949Sbapt fi 3637234949Sbaptelse 3638234949Sbapt ac_cpp_err=yes 3639234949Sbaptfi 3640234949Sbaptif test -z "$ac_cpp_err"; then 3641234949Sbapt : 3642234949Sbaptelse 3643234949Sbapt echo "$as_me: failed program was:" >&5 3644234949Sbapt cat conftest.$ac_ext >&5 3645234949Sbapt # Broken: fails on valid input. 3646234949Sbaptcontinue 3647234949Sbaptfi 3648234949Sbaptrm -f conftest.err conftest.$ac_ext 3649234949Sbapt 3650234949Sbapt # OK, works on sane cases. Now check whether non-existent headers 3651234949Sbapt # can be detected and how. 3652234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3653272957Srodrigc#line 3653 "configure" 3654234949Sbapt#include "confdefs.h" 3655234949Sbapt#include <ac_nonexistent.h> 3656234949Sbapt_ACEOF 3657272957Srodrigcif { (eval echo "$as_me:3657: \"$ac_cpp conftest.$ac_ext\"") >&5 3658234949Sbapt (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3659234949Sbapt ac_status=$? 3660234949Sbapt egrep -v '^ *\+' conftest.er1 >conftest.err 3661234949Sbapt rm -f conftest.er1 3662234949Sbapt cat conftest.err >&5 3663272957Srodrigc echo "$as_me:3663: \$? = $ac_status" >&5 3664234949Sbapt (exit $ac_status); } >/dev/null; then 3665234949Sbapt if test -s conftest.err; then 3666234949Sbapt ac_cpp_err=$ac_c_preproc_warn_flag 3667234949Sbapt else 3668234949Sbapt ac_cpp_err= 3669234949Sbapt fi 3670234949Sbaptelse 3671234949Sbapt ac_cpp_err=yes 3672234949Sbaptfi 3673234949Sbaptif test -z "$ac_cpp_err"; then 3674234949Sbapt # Broken: success on invalid input. 3675234949Sbaptcontinue 3676234949Sbaptelse 3677234949Sbapt echo "$as_me: failed program was:" >&5 3678234949Sbapt cat conftest.$ac_ext >&5 3679234949Sbapt # Passes both tests. 3680234949Sbaptac_preproc_ok=: 3681234949Sbaptbreak 3682234949Sbaptfi 3683234949Sbaptrm -f conftest.err conftest.$ac_ext 3684234949Sbapt 3685234949Sbaptdone 3686234949Sbapt# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3687234949Sbaptrm -f conftest.err conftest.$ac_ext 3688234949Sbaptif $ac_preproc_ok; then 3689234949Sbapt break 3690234949Sbaptfi 3691234949Sbapt 3692234949Sbapt done 3693234949Sbapt ac_cv_prog_CPP=$CPP 3694234949Sbapt 3695234949Sbaptfi 3696234949Sbapt CPP=$ac_cv_prog_CPP 3697234949Sbaptelse 3698234949Sbapt ac_cv_prog_CPP=$CPP 3699234949Sbaptfi 3700272957Srodrigcecho "$as_me:3700: result: $CPP" >&5 3701234949Sbaptecho "${ECHO_T}$CPP" >&6 3702234949Sbaptac_preproc_ok=false 3703234949Sbaptfor ac_c_preproc_warn_flag in '' yes 3704234949Sbaptdo 3705234949Sbapt # Use a header file that comes with gcc, so configuring glibc 3706234949Sbapt # with a fresh cross-compiler works. 3707234949Sbapt # On the NeXT, cc -E runs the code through the compiler's parser, 3708234949Sbapt # not just through cpp. "Syntax error" is here to catch this case. 3709234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3710272957Srodrigc#line 3710 "configure" 3711234949Sbapt#include "confdefs.h" 3712234949Sbapt#include <assert.h> 3713234949Sbapt Syntax error 3714234949Sbapt_ACEOF 3715272957Srodrigcif { (eval echo "$as_me:3715: \"$ac_cpp conftest.$ac_ext\"") >&5 3716234949Sbapt (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3717234949Sbapt ac_status=$? 3718234949Sbapt egrep -v '^ *\+' conftest.er1 >conftest.err 3719234949Sbapt rm -f conftest.er1 3720234949Sbapt cat conftest.err >&5 3721272957Srodrigc echo "$as_me:3721: \$? = $ac_status" >&5 3722234949Sbapt (exit $ac_status); } >/dev/null; then 3723234949Sbapt if test -s conftest.err; then 3724234949Sbapt ac_cpp_err=$ac_c_preproc_warn_flag 3725234949Sbapt else 3726234949Sbapt ac_cpp_err= 3727234949Sbapt fi 3728234949Sbaptelse 3729234949Sbapt ac_cpp_err=yes 3730234949Sbaptfi 3731234949Sbaptif test -z "$ac_cpp_err"; then 3732234949Sbapt : 3733234949Sbaptelse 3734234949Sbapt echo "$as_me: failed program was:" >&5 3735234949Sbapt cat conftest.$ac_ext >&5 3736234949Sbapt # Broken: fails on valid input. 3737234949Sbaptcontinue 3738234949Sbaptfi 3739234949Sbaptrm -f conftest.err conftest.$ac_ext 3740234949Sbapt 3741234949Sbapt # OK, works on sane cases. Now check whether non-existent headers 3742234949Sbapt # can be detected and how. 3743234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3744272957Srodrigc#line 3744 "configure" 3745234949Sbapt#include "confdefs.h" 3746234949Sbapt#include <ac_nonexistent.h> 3747234949Sbapt_ACEOF 3748272957Srodrigcif { (eval echo "$as_me:3748: \"$ac_cpp conftest.$ac_ext\"") >&5 3749234949Sbapt (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3750234949Sbapt ac_status=$? 3751234949Sbapt egrep -v '^ *\+' conftest.er1 >conftest.err 3752234949Sbapt rm -f conftest.er1 3753234949Sbapt cat conftest.err >&5 3754272957Srodrigc echo "$as_me:3754: \$? = $ac_status" >&5 3755234949Sbapt (exit $ac_status); } >/dev/null; then 3756234949Sbapt if test -s conftest.err; then 3757234949Sbapt ac_cpp_err=$ac_c_preproc_warn_flag 3758234949Sbapt else 3759234949Sbapt ac_cpp_err= 3760234949Sbapt fi 3761234949Sbaptelse 3762234949Sbapt ac_cpp_err=yes 3763234949Sbaptfi 3764234949Sbaptif test -z "$ac_cpp_err"; then 3765234949Sbapt # Broken: success on invalid input. 3766234949Sbaptcontinue 3767234949Sbaptelse 3768234949Sbapt echo "$as_me: failed program was:" >&5 3769234949Sbapt cat conftest.$ac_ext >&5 3770234949Sbapt # Passes both tests. 3771234949Sbaptac_preproc_ok=: 3772234949Sbaptbreak 3773234949Sbaptfi 3774234949Sbaptrm -f conftest.err conftest.$ac_ext 3775234949Sbapt 3776234949Sbaptdone 3777234949Sbapt# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3778234949Sbaptrm -f conftest.err conftest.$ac_ext 3779234949Sbaptif $ac_preproc_ok; then 3780234949Sbapt : 3781234949Sbaptelse 3782272957Srodrigc { { echo "$as_me:3782: error: C preprocessor \"$CPP\" fails sanity check" >&5 3783234949Sbaptecho "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 3784234949Sbapt { (exit 1); exit 1; }; } 3785234949Sbaptfi 3786234949Sbapt 3787234949Sbaptac_ext=c 3788234949Sbaptac_cpp='$CPP $CPPFLAGS' 3789234949Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3790234949Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3791234949Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu 3792234949Sbaptac_main_return=return 3793234949Sbapt 3794234949Sbaptfor ac_header in fcntl.h 3795234949Sbaptdo 3796234949Sbaptas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3797272957Srodrigcecho "$as_me:3797: checking for $ac_header" >&5 3798234949Sbaptecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3799234949Sbaptif eval "test \"\${$as_ac_Header+set}\" = set"; then 3800234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 3801234949Sbaptelse 3802234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3803272957Srodrigc#line 3803 "configure" 3804234949Sbapt#include "confdefs.h" 3805234949Sbapt#include <$ac_header> 3806234949Sbapt_ACEOF 3807272957Srodrigcif { (eval echo "$as_me:3807: \"$ac_cpp conftest.$ac_ext\"") >&5 3808234949Sbapt (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3809234949Sbapt ac_status=$? 3810234949Sbapt egrep -v '^ *\+' conftest.er1 >conftest.err 3811234949Sbapt rm -f conftest.er1 3812234949Sbapt cat conftest.err >&5 3813272957Srodrigc echo "$as_me:3813: \$? = $ac_status" >&5 3814234949Sbapt (exit $ac_status); } >/dev/null; then 3815234949Sbapt if test -s conftest.err; then 3816234949Sbapt ac_cpp_err=$ac_c_preproc_warn_flag 3817234949Sbapt else 3818234949Sbapt ac_cpp_err= 3819234949Sbapt fi 3820234949Sbaptelse 3821234949Sbapt ac_cpp_err=yes 3822234949Sbaptfi 3823234949Sbaptif test -z "$ac_cpp_err"; then 3824234949Sbapt eval "$as_ac_Header=yes" 3825234949Sbaptelse 3826234949Sbapt echo "$as_me: failed program was:" >&5 3827234949Sbapt cat conftest.$ac_ext >&5 3828234949Sbapt eval "$as_ac_Header=no" 3829234949Sbaptfi 3830234949Sbaptrm -f conftest.err conftest.$ac_ext 3831234949Sbaptfi 3832272957Srodrigcecho "$as_me:3832: result: `eval echo '${'$as_ac_Header'}'`" >&5 3833234949Sbaptecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3834234949Sbaptif test `eval echo '${'$as_ac_Header'}'` = yes; then 3835234949Sbapt cat >>confdefs.h <<EOF 3836234949Sbapt#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3837234949SbaptEOF 3838234949Sbapt 3839234949Sbaptfi 3840234949Sbaptdone 3841234949Sbapt 3842272957Srodrigcecho "$as_me:3842: checking for working mkstemp" >&5 3843251143Sbaptecho $ECHO_N "checking for working mkstemp... $ECHO_C" >&6 3844251143Sbaptif test "${cf_cv_func_mkstemp+set}" = set; then 3845234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 3846234949Sbaptelse 3847251143Sbapt 3848251143Sbaptrm -rf conftest* 3849251143Sbaptif test "$cross_compiling" = yes; then 3850251143Sbapt cf_cv_func_mkstemp=maybe 3851251143Sbaptelse 3852234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3853272957Srodrigc#line 3853 "configure" 3854234949Sbapt#include "confdefs.h" 3855234949Sbapt 3856251143Sbapt#include <sys/types.h> 3857251143Sbapt#include <stdlib.h> 3858251143Sbapt#include <stdio.h> 3859251143Sbapt#include <string.h> 3860251143Sbapt#include <sys/stat.h> 3861251143Sbaptint main() 3862234949Sbapt{ 3863251143Sbapt char *tmpl = "conftestXXXXXX"; 3864251143Sbapt char name[2][80]; 3865251143Sbapt int n; 3866251143Sbapt int result = 0; 3867251143Sbapt int fd; 3868251143Sbapt struct stat sb; 3869234949Sbapt 3870251143Sbapt umask(077); 3871251143Sbapt for (n = 0; n < 2; ++n) { 3872251143Sbapt strcpy(name[n], tmpl); 3873251143Sbapt if ((fd = mkstemp(name[n])) >= 0) { 3874251143Sbapt if (!strcmp(name[n], tmpl) 3875251143Sbapt || stat(name[n], &sb) != 0 3876251143Sbapt || (sb.st_mode & S_IFMT) != S_IFREG 3877251143Sbapt || (sb.st_mode & 077) != 0) { 3878251143Sbapt result = 1; 3879251143Sbapt } 3880251143Sbapt close(fd); 3881251143Sbapt } 3882251143Sbapt } 3883251143Sbapt if (result == 0 3884251143Sbapt && !strcmp(name[0], name[1])) 3885251143Sbapt result = 1; 3886251143Sbapt ${cf_cv_main_return:-return}(result); 3887234949Sbapt} 3888251143Sbapt 3889234949Sbapt_ACEOF 3890251143Sbaptrm -f conftest$ac_exeext 3891272957Srodrigcif { (eval echo "$as_me:3891: \"$ac_link\"") >&5 3892234949Sbapt (eval $ac_link) 2>&5 3893234949Sbapt ac_status=$? 3894272957Srodrigc echo "$as_me:3894: \$? = $ac_status" >&5 3895251143Sbapt (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3896272957Srodrigc { (eval echo "$as_me:3896: \"$ac_try\"") >&5 3897234949Sbapt (eval $ac_try) 2>&5 3898234949Sbapt ac_status=$? 3899272957Srodrigc echo "$as_me:3899: \$? = $ac_status" >&5 3900234949Sbapt (exit $ac_status); }; }; then 3901251143Sbapt cf_cv_func_mkstemp=yes 3902251143Sbapt 3903234949Sbaptelse 3904251143Sbapt echo "$as_me: program exited with status $ac_status" >&5 3905251143Sbaptecho "$as_me: failed program was:" >&5 3906234949Sbaptcat conftest.$ac_ext >&5 3907251143Sbaptcf_cv_func_mkstemp=no 3908251143Sbapt 3909234949Sbaptfi 3910251143Sbaptrm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3911234949Sbaptfi 3912234949Sbapt 3913234949Sbaptfi 3914272957Srodrigcecho "$as_me:3914: result: $cf_cv_func_mkstemp" >&5 3915251143Sbaptecho "${ECHO_T}$cf_cv_func_mkstemp" >&6 3916251143Sbaptif test "x$cf_cv_func_mkstemp" = xmaybe ; then 3917272957Srodrigc echo "$as_me:3917: checking for mkstemp" >&5 3918234949Sbaptecho $ECHO_N "checking for mkstemp... $ECHO_C" >&6 3919234949Sbaptif test "${ac_cv_func_mkstemp+set}" = set; then 3920234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 3921234949Sbaptelse 3922234949Sbapt cat >conftest.$ac_ext <<_ACEOF 3923272957Srodrigc#line 3923 "configure" 3924234949Sbapt#include "confdefs.h" 3925234949Sbapt/* System header to define __stub macros and hopefully few prototypes, 3926234949Sbapt which can conflict with char mkstemp (); below. */ 3927234949Sbapt#include <assert.h> 3928234949Sbapt/* Override any gcc2 internal prototype to avoid an error. */ 3929234949Sbapt#ifdef __cplusplus 3930234949Sbaptextern "C" 3931234949Sbapt#endif 3932234949Sbapt/* We use char because int might match the return type of a gcc2 3933234949Sbapt builtin and then its argument prototype would still apply. */ 3934234949Sbaptchar mkstemp (); 3935234949Sbaptchar (*f) (); 3936234949Sbapt 3937234949Sbaptint 3938234949Sbaptmain () 3939234949Sbapt{ 3940234949Sbapt/* The GNU C library defines this for functions which it implements 3941234949Sbapt to always fail with ENOSYS. Some functions are actually named 3942234949Sbapt something starting with __ and the normal name is an alias. */ 3943234949Sbapt#if defined (__stub_mkstemp) || defined (__stub___mkstemp) 3944234949Sbaptchoke me 3945234949Sbapt#else 3946251143Sbaptf = mkstemp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 3947234949Sbapt#endif 3948234949Sbapt 3949234949Sbapt ; 3950234949Sbapt return 0; 3951234949Sbapt} 3952234949Sbapt_ACEOF 3953234949Sbaptrm -f conftest.$ac_objext conftest$ac_exeext 3954272957Srodrigcif { (eval echo "$as_me:3954: \"$ac_link\"") >&5 3955234949Sbapt (eval $ac_link) 2>&5 3956234949Sbapt ac_status=$? 3957272957Srodrigc echo "$as_me:3957: \$? = $ac_status" >&5 3958234949Sbapt (exit $ac_status); } && 3959234949Sbapt { ac_try='test -s conftest$ac_exeext' 3960272957Srodrigc { (eval echo "$as_me:3960: \"$ac_try\"") >&5 3961234949Sbapt (eval $ac_try) 2>&5 3962234949Sbapt ac_status=$? 3963272957Srodrigc echo "$as_me:3963: \$? = $ac_status" >&5 3964234949Sbapt (exit $ac_status); }; }; then 3965234949Sbapt ac_cv_func_mkstemp=yes 3966234949Sbaptelse 3967234949Sbapt echo "$as_me: failed program was:" >&5 3968234949Sbaptcat conftest.$ac_ext >&5 3969234949Sbaptac_cv_func_mkstemp=no 3970234949Sbaptfi 3971234949Sbaptrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3972234949Sbaptfi 3973272957Srodrigcecho "$as_me:3973: result: $ac_cv_func_mkstemp" >&5 3974234949Sbaptecho "${ECHO_T}$ac_cv_func_mkstemp" >&6 3975234949Sbapt 3976234949Sbaptfi 3977251143Sbaptif test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then 3978234949Sbapt 3979251143Sbaptcat >>confdefs.h <<\EOF 3980234949Sbapt#define HAVE_MKSTEMP 1 3981234949SbaptEOF 3982234949Sbapt 3983234949Sbaptfi 3984234949Sbapt 3985268899Sbaptfor ac_func in vsnprintf 3986268899Sbaptdo 3987268899Sbaptas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 3988272957Srodrigcecho "$as_me:3988: checking for $ac_func" >&5 3989268899Sbaptecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6 3990268899Sbaptif eval "test \"\${$as_ac_var+set}\" = set"; then 3991268899Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 3992268899Sbaptelse 3993268899Sbapt cat >conftest.$ac_ext <<_ACEOF 3994272957Srodrigc#line 3994 "configure" 3995268899Sbapt#include "confdefs.h" 3996268899Sbapt/* System header to define __stub macros and hopefully few prototypes, 3997268899Sbapt which can conflict with char $ac_func (); below. */ 3998268899Sbapt#include <assert.h> 3999268899Sbapt/* Override any gcc2 internal prototype to avoid an error. */ 4000268899Sbapt#ifdef __cplusplus 4001268899Sbaptextern "C" 4002268899Sbapt#endif 4003268899Sbapt/* We use char because int might match the return type of a gcc2 4004268899Sbapt builtin and then its argument prototype would still apply. */ 4005268899Sbaptchar $ac_func (); 4006268899Sbaptchar (*f) (); 4007268899Sbapt 4008268899Sbaptint 4009268899Sbaptmain () 4010268899Sbapt{ 4011268899Sbapt/* The GNU C library defines this for functions which it implements 4012268899Sbapt to always fail with ENOSYS. Some functions are actually named 4013268899Sbapt something starting with __ and the normal name is an alias. */ 4014268899Sbapt#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4015268899Sbaptchoke me 4016268899Sbapt#else 4017268899Sbaptf = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; 4018268899Sbapt#endif 4019268899Sbapt 4020268899Sbapt ; 4021268899Sbapt return 0; 4022268899Sbapt} 4023268899Sbapt_ACEOF 4024268899Sbaptrm -f conftest.$ac_objext conftest$ac_exeext 4025272957Srodrigcif { (eval echo "$as_me:4025: \"$ac_link\"") >&5 4026268899Sbapt (eval $ac_link) 2>&5 4027268899Sbapt ac_status=$? 4028272957Srodrigc echo "$as_me:4028: \$? = $ac_status" >&5 4029268899Sbapt (exit $ac_status); } && 4030268899Sbapt { ac_try='test -s conftest$ac_exeext' 4031272957Srodrigc { (eval echo "$as_me:4031: \"$ac_try\"") >&5 4032268899Sbapt (eval $ac_try) 2>&5 4033268899Sbapt ac_status=$? 4034272957Srodrigc echo "$as_me:4034: \$? = $ac_status" >&5 4035268899Sbapt (exit $ac_status); }; }; then 4036268899Sbapt eval "$as_ac_var=yes" 4037268899Sbaptelse 4038268899Sbapt echo "$as_me: failed program was:" >&5 4039268899Sbaptcat conftest.$ac_ext >&5 4040268899Sbapteval "$as_ac_var=no" 4041268899Sbaptfi 4042268899Sbaptrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4043268899Sbaptfi 4044272957Srodrigcecho "$as_me:4044: result: `eval echo '${'$as_ac_var'}'`" >&5 4045268899Sbaptecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4046268899Sbaptif test `eval echo '${'$as_ac_var'}'` = yes; then 4047268899Sbapt cat >>confdefs.h <<EOF 4048268899Sbapt#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4049268899SbaptEOF 4050268899Sbapt 4051268899Sbaptfi 4052268899Sbaptdone 4053268899Sbapt 4054272957Srodrigcecho "$as_me:4054: checking for maximum table size" >&5 4055268899Sbaptecho $ECHO_N "checking for maximum table size... $ECHO_C" >&6 4056268899Sbapt 4057268899Sbapt# Check whether --with-max-table-size or --without-max-table-size was given. 4058268899Sbaptif test "${with_max_table_size+set}" = set; then 4059268899Sbapt withval="$with_max_table_size" 4060268899Sbapt 4061268899Sbaptfi; 4062268899Sbaptif test -n "$with_max_table_size" 4063268899Sbaptthen 4064272957Srodrigc echo "$as_me:4064: result: $with_max_table_size" >&5 4065268899Sbaptecho "${ECHO_T}$with_max_table_size" >&6 4066268899Sbapt check=`expr "$with_max_table_size" + 0` 4067268899Sbapt if test "x$check" != "x$with_max_table_size" 4068268899Sbapt then 4069272957Srodrigc { { echo "$as_me:4069: error: invalid value for --with-max-table-size: $with_max_table_size" >&5 4070268899Sbaptecho "$as_me: error: invalid value for --with-max-table-size: $with_max_table_size" >&2;} 4071268899Sbapt { (exit 1); exit 1; }; } 4072268899Sbapt fi 4073268899Sbapt 4074268899Sbaptcat >>confdefs.h <<EOF 4075268899Sbapt#define MAXTABLE $with_max_table_size 4076268899SbaptEOF 4077268899Sbapt 4078268899Sbaptelse 4079272957Srodrigc echo "$as_me:4079: result: default" >&5 4080268899Sbaptecho "${ECHO_T}default" >&6 4081268899Sbaptfi 4082268899Sbapt 4083272957Srodrigcecho "$as_me:4083: checking if backtracking extension is wanted" >&5 4084268899Sbaptecho $ECHO_N "checking if backtracking extension is wanted... $ECHO_C" >&6 4085268899Sbapt 4086268899Sbapt# Check whether --enable-btyacc or --disable-btyacc was given. 4087268899Sbaptif test "${enable_btyacc+set}" = set; then 4088268899Sbapt enableval="$enable_btyacc" 4089268899Sbapt 4090268899Sbaptfi; 4091272957Srodrigcecho "$as_me:4091: result: $enable_btyacc" >&5 4092268899Sbaptecho "${ECHO_T}$enable_btyacc" >&6 4093268899Sbaptif test "$enable_btyacc" = "yes"; then 4094268899Sbapt 4095268899Sbaptcat >>confdefs.h <<\EOF 4096268899Sbapt#define YYBTYACC 1 4097268899SbaptEOF 4098268899Sbapt 4099268899Sbapt SKELETON=btyaccpar 4100268899Sbaptelse 4101268899Sbapt SKELETON=yaccpar 4102268899Sbaptfi 4103268899Sbapt 4104234949Sbaptif ( test "$GCC" = yes || test "$GXX" = yes ) 4105234949Sbaptthen 4106272957Srodrigcecho "$as_me:4106: checking if you want to check for gcc warnings" >&5 4107234949Sbaptecho $ECHO_N "checking if you want to check for gcc warnings... $ECHO_C" >&6 4108234949Sbapt 4109234949Sbapt# Check whether --with-warnings or --without-warnings was given. 4110234949Sbaptif test "${with_warnings+set}" = set; then 4111234949Sbapt withval="$with_warnings" 4112234949Sbapt cf_opt_with_warnings=$withval 4113234949Sbaptelse 4114234949Sbapt cf_opt_with_warnings=no 4115234949Sbaptfi; 4116272957Srodrigcecho "$as_me:4116: result: $cf_opt_with_warnings" >&5 4117234949Sbaptecho "${ECHO_T}$cf_opt_with_warnings" >&6 4118234949Sbaptif test "$cf_opt_with_warnings" != no ; then 4119234949Sbapt 4120234949Sbaptif test "$GCC" = yes 4121234949Sbaptthen 4122234949Sbaptcat > conftest.i <<EOF 4123234949Sbapt#ifndef GCC_PRINTF 4124234949Sbapt#define GCC_PRINTF 0 4125234949Sbapt#endif 4126234949Sbapt#ifndef GCC_SCANF 4127234949Sbapt#define GCC_SCANF 0 4128234949Sbapt#endif 4129234949Sbapt#ifndef GCC_NORETURN 4130234949Sbapt#define GCC_NORETURN /* nothing */ 4131234949Sbapt#endif 4132234949Sbapt#ifndef GCC_UNUSED 4133234949Sbapt#define GCC_UNUSED /* nothing */ 4134234949Sbapt#endif 4135234949SbaptEOF 4136234949Sbaptif test "$GCC" = yes 4137234949Sbaptthen 4138272957Srodrigc { echo "$as_me:4138: checking for $CC __attribute__ directives..." >&5 4139234949Sbaptecho "$as_me: checking for $CC __attribute__ directives..." >&6;} 4140234949Sbaptcat > conftest.$ac_ext <<EOF 4141272957Srodrigc#line 4141 "${as_me:-configure}" 4142234949Sbapt#include "confdefs.h" 4143234949Sbapt#include "conftest.h" 4144234949Sbapt#include "conftest.i" 4145234949Sbapt#if GCC_PRINTF 4146234949Sbapt#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) 4147234949Sbapt#else 4148234949Sbapt#define GCC_PRINTFLIKE(fmt,var) /*nothing*/ 4149234949Sbapt#endif 4150234949Sbapt#if GCC_SCANF 4151234949Sbapt#define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var))) 4152234949Sbapt#else 4153234949Sbapt#define GCC_SCANFLIKE(fmt,var) /*nothing*/ 4154234949Sbapt#endif 4155234949Sbaptextern void wow(char *,...) GCC_SCANFLIKE(1,2); 4156234949Sbaptextern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN; 4157234949Sbaptextern void foo(void) GCC_NORETURN; 4158234949Sbaptint main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; } 4159234949SbaptEOF 4160234949Sbapt cf_printf_attribute=no 4161234949Sbapt cf_scanf_attribute=no 4162234949Sbapt for cf_attribute in scanf printf unused noreturn 4163234949Sbapt do 4164234949Sbapt 4165234949Sbaptcf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 4166234949Sbapt 4167234949Sbapt cf_directive="__attribute__(($cf_attribute))" 4168234949Sbapt echo "checking for $CC $cf_directive" 1>&5 4169234949Sbapt 4170234949Sbapt case $cf_attribute in #(vi 4171234949Sbapt printf) #(vi 4172234949Sbapt cf_printf_attribute=yes 4173234949Sbapt cat >conftest.h <<EOF 4174234949Sbapt#define GCC_$cf_ATTRIBUTE 1 4175234949SbaptEOF 4176234949Sbapt ;; 4177234949Sbapt scanf) #(vi 4178234949Sbapt cf_scanf_attribute=yes 4179234949Sbapt cat >conftest.h <<EOF 4180234949Sbapt#define GCC_$cf_ATTRIBUTE 1 4181234949SbaptEOF 4182234949Sbapt ;; 4183234949Sbapt *) #(vi 4184234949Sbapt cat >conftest.h <<EOF 4185234949Sbapt#define GCC_$cf_ATTRIBUTE $cf_directive 4186234949SbaptEOF 4187234949Sbapt ;; 4188234949Sbapt esac 4189234949Sbapt 4190272957Srodrigc if { (eval echo "$as_me:4190: \"$ac_compile\"") >&5 4191234949Sbapt (eval $ac_compile) 2>&5 4192234949Sbapt ac_status=$? 4193272957Srodrigc echo "$as_me:4193: \$? = $ac_status" >&5 4194234949Sbapt (exit $ac_status); }; then 4195272957Srodrigc test -n "$verbose" && echo "$as_me:4195: result: ... $cf_attribute" >&5 4196234949Sbaptecho "${ECHO_T}... $cf_attribute" >&6 4197234949Sbapt cat conftest.h >>confdefs.h 4198234949Sbapt case $cf_attribute in #(vi 4199251143Sbapt noreturn) #(vi 4200251143Sbapt 4201251143Sbaptcat >>confdefs.h <<EOF 4202251143Sbapt#define GCC_NORETURN $cf_directive 4203251143SbaptEOF 4204251143Sbapt 4205251143Sbapt ;; 4206234949Sbapt printf) #(vi 4207251143Sbapt cf_value='/* nothing */' 4208251143Sbapt if test "$cf_printf_attribute" != no ; then 4209251143Sbapt cf_value='__attribute__((format(printf,fmt,var)))' 4210251143Sbapt 4211251143Sbaptcat >>confdefs.h <<\EOF 4212251143Sbapt#define GCC_PRINTF 1 4213234949SbaptEOF 4214251143Sbapt 4215251143Sbapt fi 4216251143Sbapt 4217251143Sbaptcat >>confdefs.h <<EOF 4218251143Sbapt#define GCC_PRINTFLIKE(fmt,var) $cf_value 4219234949SbaptEOF 4220251143Sbapt 4221234949Sbapt ;; 4222234949Sbapt scanf) #(vi 4223251143Sbapt cf_value='/* nothing */' 4224251143Sbapt if test "$cf_scanf_attribute" != no ; then 4225251143Sbapt cf_value='__attribute__((format(scanf,fmt,var)))' 4226251143Sbapt 4227251143Sbaptcat >>confdefs.h <<\EOF 4228251143Sbapt#define GCC_SCANF 1 4229234949SbaptEOF 4230251143Sbapt 4231251143Sbapt fi 4232251143Sbapt 4233251143Sbaptcat >>confdefs.h <<EOF 4234251143Sbapt#define GCC_SCANFLIKE(fmt,var) $cf_value 4235234949SbaptEOF 4236251143Sbapt 4237234949Sbapt ;; 4238251143Sbapt unused) #(vi 4239251143Sbapt 4240251143Sbaptcat >>confdefs.h <<EOF 4241251143Sbapt#define GCC_UNUSED $cf_directive 4242251143SbaptEOF 4243251143Sbapt 4244251143Sbapt ;; 4245234949Sbapt esac 4246234949Sbapt fi 4247234949Sbapt done 4248234949Sbaptelse 4249234949Sbapt fgrep define conftest.i >>confdefs.h 4250234949Sbaptfi 4251234949Sbaptrm -rf conftest* 4252234949Sbaptfi 4253234949Sbapt 4254234949SbaptINTEL_COMPILER=no 4255234949Sbapt 4256234949Sbaptif test "$GCC" = yes ; then 4257234949Sbapt case $host_os in 4258234949Sbapt linux*|gnu*) 4259272957Srodrigc echo "$as_me:4259: checking if this is really Intel C compiler" >&5 4260234949Sbaptecho $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6 4261234949Sbapt cf_save_CFLAGS="$CFLAGS" 4262234949Sbapt CFLAGS="$CFLAGS -no-gcc" 4263234949Sbapt cat >conftest.$ac_ext <<_ACEOF 4264272957Srodrigc#line 4264 "configure" 4265234949Sbapt#include "confdefs.h" 4266234949Sbapt 4267234949Sbaptint 4268234949Sbaptmain () 4269234949Sbapt{ 4270234949Sbapt 4271234949Sbapt#ifdef __INTEL_COMPILER 4272234949Sbapt#else 4273234949Sbaptmake an error 4274234949Sbapt#endif 4275234949Sbapt 4276234949Sbapt ; 4277234949Sbapt return 0; 4278234949Sbapt} 4279234949Sbapt_ACEOF 4280234949Sbaptrm -f conftest.$ac_objext 4281272957Srodrigcif { (eval echo "$as_me:4281: \"$ac_compile\"") >&5 4282234949Sbapt (eval $ac_compile) 2>&5 4283234949Sbapt ac_status=$? 4284272957Srodrigc echo "$as_me:4284: \$? = $ac_status" >&5 4285234949Sbapt (exit $ac_status); } && 4286234949Sbapt { ac_try='test -s conftest.$ac_objext' 4287272957Srodrigc { (eval echo "$as_me:4287: \"$ac_try\"") >&5 4288234949Sbapt (eval $ac_try) 2>&5 4289234949Sbapt ac_status=$? 4290272957Srodrigc echo "$as_me:4290: \$? = $ac_status" >&5 4291234949Sbapt (exit $ac_status); }; }; then 4292234949Sbapt INTEL_COMPILER=yes 4293268899Sbaptcf_save_CFLAGS="$cf_save_CFLAGS -we147" 4294234949Sbapt 4295234949Sbaptelse 4296234949Sbapt echo "$as_me: failed program was:" >&5 4297234949Sbaptcat conftest.$ac_ext >&5 4298234949Sbaptfi 4299234949Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 4300234949Sbapt CFLAGS="$cf_save_CFLAGS" 4301272957Srodrigc echo "$as_me:4301: result: $INTEL_COMPILER" >&5 4302234949Sbaptecho "${ECHO_T}$INTEL_COMPILER" >&6 4303234949Sbapt ;; 4304234949Sbapt esac 4305234949Sbaptfi 4306234949Sbapt 4307251143SbaptCLANG_COMPILER=no 4308251143Sbapt 4309251143Sbaptif test "$GCC" = yes ; then 4310272957Srodrigc echo "$as_me:4310: checking if this is really Clang C compiler" >&5 4311251143Sbaptecho $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6 4312251143Sbapt cf_save_CFLAGS="$CFLAGS" 4313251143Sbapt CFLAGS="$CFLAGS -Qunused-arguments" 4314251143Sbapt cat >conftest.$ac_ext <<_ACEOF 4315272957Srodrigc#line 4315 "configure" 4316251143Sbapt#include "confdefs.h" 4317251143Sbapt 4318251143Sbaptint 4319251143Sbaptmain () 4320251143Sbapt{ 4321251143Sbapt 4322251143Sbapt#ifdef __clang__ 4323251143Sbapt#else 4324251143Sbaptmake an error 4325251143Sbapt#endif 4326251143Sbapt 4327251143Sbapt ; 4328251143Sbapt return 0; 4329251143Sbapt} 4330251143Sbapt_ACEOF 4331251143Sbaptrm -f conftest.$ac_objext 4332272957Srodrigcif { (eval echo "$as_me:4332: \"$ac_compile\"") >&5 4333251143Sbapt (eval $ac_compile) 2>&5 4334251143Sbapt ac_status=$? 4335272957Srodrigc echo "$as_me:4335: \$? = $ac_status" >&5 4336251143Sbapt (exit $ac_status); } && 4337251143Sbapt { ac_try='test -s conftest.$ac_objext' 4338272957Srodrigc { (eval echo "$as_me:4338: \"$ac_try\"") >&5 4339251143Sbapt (eval $ac_try) 2>&5 4340251143Sbapt ac_status=$? 4341272957Srodrigc echo "$as_me:4341: \$? = $ac_status" >&5 4342251143Sbapt (exit $ac_status); }; }; then 4343251143Sbapt CLANG_COMPILER=yes 4344251143Sbaptcf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments" 4345251143Sbapt 4346251143Sbaptelse 4347251143Sbapt echo "$as_me: failed program was:" >&5 4348251143Sbaptcat conftest.$ac_ext >&5 4349251143Sbaptfi 4350251143Sbaptrm -f conftest.$ac_objext conftest.$ac_ext 4351251143Sbapt CFLAGS="$cf_save_CFLAGS" 4352272957Srodrigc echo "$as_me:4352: result: $CLANG_COMPILER" >&5 4353251143Sbaptecho "${ECHO_T}$CLANG_COMPILER" >&6 4354251143Sbaptfi 4355251143Sbapt 4356234949Sbaptcat > conftest.$ac_ext <<EOF 4357272957Srodrigc#line 4357 "${as_me:-configure}" 4358234949Sbaptint main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; } 4359234949SbaptEOF 4360234949Sbapt 4361234949Sbaptif test "$INTEL_COMPILER" = yes 4362234949Sbaptthen 4363234949Sbapt# The "-wdXXX" options suppress warnings: 4364234949Sbapt# remark #1419: external declaration in primary source file 4365234949Sbapt# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem) 4366234949Sbapt# remark #1684: conversion from pointer to same-sized integral type (potential portability problem) 4367234949Sbapt# remark #193: zero used for undefined preprocessing identifier 4368234949Sbapt# remark #593: variable "curs_sb_left_arrow" was set but never used 4369234949Sbapt# remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits 4370234949Sbapt# remark #869: parameter "tw" was never referenced 4371234949Sbapt# remark #981: operands are evaluated in unspecified order 4372234949Sbapt# warning #279: controlling expression is constant 4373234949Sbapt 4374272957Srodrigc { echo "$as_me:4374: checking for $CC warning options..." >&5 4375234949Sbaptecho "$as_me: checking for $CC warning options..." >&6;} 4376234949Sbapt cf_save_CFLAGS="$CFLAGS" 4377234949Sbapt EXTRA_CFLAGS="-Wall" 4378234949Sbapt for cf_opt in \ 4379234949Sbapt wd1419 \ 4380234949Sbapt wd1683 \ 4381234949Sbapt wd1684 \ 4382234949Sbapt wd193 \ 4383234949Sbapt wd593 \ 4384234949Sbapt wd279 \ 4385234949Sbapt wd810 \ 4386234949Sbapt wd869 \ 4387234949Sbapt wd981 4388234949Sbapt do 4389234949Sbapt CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 4390272957Srodrigc if { (eval echo "$as_me:4390: \"$ac_compile\"") >&5 4391234949Sbapt (eval $ac_compile) 2>&5 4392234949Sbapt ac_status=$? 4393272957Srodrigc echo "$as_me:4393: \$? = $ac_status" >&5 4394234949Sbapt (exit $ac_status); }; then 4395272957Srodrigc test -n "$verbose" && echo "$as_me:4395: result: ... -$cf_opt" >&5 4396234949Sbaptecho "${ECHO_T}... -$cf_opt" >&6 4397234949Sbapt EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 4398234949Sbapt fi 4399234949Sbapt done 4400234949Sbapt CFLAGS="$cf_save_CFLAGS" 4401234949Sbapt 4402234949Sbaptelif test "$GCC" = yes 4403234949Sbaptthen 4404272957Srodrigc { echo "$as_me:4404: checking for $CC warning options..." >&5 4405234949Sbaptecho "$as_me: checking for $CC warning options..." >&6;} 4406234949Sbapt cf_save_CFLAGS="$CFLAGS" 4407234949Sbapt EXTRA_CFLAGS= 4408234949Sbapt cf_warn_CONST="" 4409234949Sbapt test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings" 4410268899Sbapt cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs" 4411268899Sbapt test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings= 4412234949Sbapt for cf_opt in W Wall \ 4413234949Sbapt Wbad-function-cast \ 4414234949Sbapt Wcast-align \ 4415234949Sbapt Wcast-qual \ 4416268899Sbapt Wdeclaration-after-statement \ 4417268899Sbapt Wextra \ 4418234949Sbapt Winline \ 4419234949Sbapt Wmissing-declarations \ 4420234949Sbapt Wmissing-prototypes \ 4421234949Sbapt Wnested-externs \ 4422234949Sbapt Wpointer-arith \ 4423234949Sbapt Wshadow \ 4424234949Sbapt Wstrict-prototypes \ 4425268899Sbapt Wundef $cf_gcc_warnings $cf_warn_CONST Wwrite-strings 4426234949Sbapt do 4427234949Sbapt CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" 4428272957Srodrigc if { (eval echo "$as_me:4428: \"$ac_compile\"") >&5 4429234949Sbapt (eval $ac_compile) 2>&5 4430234949Sbapt ac_status=$? 4431272957Srodrigc echo "$as_me:4431: \$? = $ac_status" >&5 4432234949Sbapt (exit $ac_status); }; then 4433272957Srodrigc test -n "$verbose" && echo "$as_me:4433: result: ... -$cf_opt" >&5 4434234949Sbaptecho "${ECHO_T}... -$cf_opt" >&6 4435234949Sbapt case $cf_opt in #(vi 4436234949Sbapt Wcast-qual) #(vi 4437234949Sbapt CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES" 4438234949Sbapt ;; 4439234949Sbapt Winline) #(vi 4440234949Sbapt case $GCC_VERSION in 4441234949Sbapt [34].*) 4442234949Sbapt test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 4443234949Sbapt 4444272957Srodrigcecho "${as_me:-configure}:4444: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 4445234949Sbapt 4446234949Sbapt continue;; 4447234949Sbapt esac 4448234949Sbapt ;; 4449251143Sbapt Wpointer-arith) #(vi 4450251143Sbapt case $GCC_VERSION in 4451251143Sbapt [12].*) 4452251143Sbapt test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6 4453251143Sbapt 4454272957Srodrigcecho "${as_me:-configure}:4454: testing feature is broken in gcc $GCC_VERSION ..." 1>&5 4455251143Sbapt 4456251143Sbapt continue;; 4457251143Sbapt esac 4458251143Sbapt ;; 4459234949Sbapt esac 4460234949Sbapt EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" 4461234949Sbapt fi 4462234949Sbapt done 4463234949Sbapt CFLAGS="$cf_save_CFLAGS" 4464234949Sbaptfi 4465234949Sbaptrm -rf conftest* 4466234949Sbapt 4467234949Sbaptfi 4468234949Sbaptfi 4469234949Sbapt 4470272957Srodrigcecho "$as_me:4470: checking if you want to see long compiling messages" >&5 4471234949Sbaptecho $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6 4472234949Sbapt 4473234949Sbapt# Check whether --enable-echo or --disable-echo was given. 4474234949Sbaptif test "${enable_echo+set}" = set; then 4475234949Sbapt enableval="$enable_echo" 4476234949Sbapt test "$enableval" != no && enableval=yes 4477234949Sbapt if test "$enableval" != "yes" ; then 4478234949Sbapt 4479234949Sbapt ECHO_LT='--silent' 4480234949Sbapt ECHO_LD='@echo linking $@;' 4481234949Sbapt RULE_CC='@echo compiling $<' 4482234949Sbapt SHOW_CC='@echo compiling $@' 4483234949Sbapt ECHO_CC='@' 4484234949Sbapt 4485234949Sbapt else 4486234949Sbapt 4487234949Sbapt ECHO_LT='' 4488234949Sbapt ECHO_LD='' 4489234949Sbapt RULE_CC='' 4490234949Sbapt SHOW_CC='' 4491234949Sbapt ECHO_CC='' 4492234949Sbapt 4493234949Sbapt fi 4494234949Sbaptelse 4495234949Sbapt enableval=yes 4496234949Sbapt 4497234949Sbapt ECHO_LT='' 4498234949Sbapt ECHO_LD='' 4499234949Sbapt RULE_CC='' 4500234949Sbapt SHOW_CC='' 4501234949Sbapt ECHO_CC='' 4502234949Sbapt 4503234949Sbaptfi; 4504272957Srodrigcecho "$as_me:4504: result: $enableval" >&5 4505234949Sbaptecho "${ECHO_T}$enableval" >&6 4506234949Sbapt 4507272957Srodrigcecho "$as_me:4507: checking if you want to use dmalloc for testing" >&5 4508234949Sbaptecho $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6 4509234949Sbapt 4510234949Sbapt# Check whether --with-dmalloc or --without-dmalloc was given. 4511234949Sbaptif test "${with_dmalloc+set}" = set; then 4512234949Sbapt withval="$with_dmalloc" 4513251143Sbapt 4514251143Sbaptcat >>confdefs.h <<EOF 4515234949Sbapt#define USE_DMALLOC 1 4516234949SbaptEOF 4517234949Sbapt 4518234949Sbapt : ${with_cflags:=-g} 4519234949Sbapt : ${with_no_leaks:=yes} 4520234949Sbapt with_dmalloc=yes 4521234949Sbaptelse 4522234949Sbapt with_dmalloc= 4523234949Sbaptfi; 4524272957Srodrigcecho "$as_me:4524: result: ${with_dmalloc:-no}" >&5 4525234949Sbaptecho "${ECHO_T}${with_dmalloc:-no}" >&6 4526234949Sbapt 4527234949Sbaptcase .$with_cflags in #(vi 4528234949Sbapt.*-g*) 4529234949Sbapt case .$CFLAGS in #(vi 4530234949Sbapt .*-g*) #(vi 4531234949Sbapt ;; 4532234949Sbapt *) 4533234949Sbapt 4534234949Sbaptcf_fix_cppflags=no 4535234949Sbaptcf_new_cflags= 4536234949Sbaptcf_new_cppflags= 4537234949Sbaptcf_new_extra_cppflags= 4538234949Sbapt 4539234949Sbaptfor cf_add_cflags in -g 4540234949Sbaptdo 4541234949Sbaptcase $cf_fix_cppflags in 4542234949Sbaptno) 4543234949Sbapt case $cf_add_cflags in #(vi 4544234949Sbapt -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 4545234949Sbapt case $cf_add_cflags in 4546234949Sbapt -D*) 4547234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4548234949Sbapt 4549272955Srodrigc test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4550234949Sbapt && test -z "${cf_tst_cflags}" \ 4551234949Sbapt && cf_fix_cppflags=yes 4552234949Sbapt 4553234949Sbapt if test $cf_fix_cppflags = yes ; then 4554234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4555234949Sbapt continue 4556234949Sbapt elif test "${cf_tst_cflags}" = "\"'" ; then 4557234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4558234949Sbapt continue 4559234949Sbapt fi 4560234949Sbapt ;; 4561234949Sbapt esac 4562234949Sbapt case "$CPPFLAGS" in 4563234949Sbapt *$cf_add_cflags) #(vi 4564234949Sbapt ;; 4565234949Sbapt *) #(vi 4566234949Sbapt case $cf_add_cflags in #(vi 4567234949Sbapt -D*) 4568234949Sbapt cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4569234949Sbapt 4570234949SbaptCPPFLAGS=`echo "$CPPFLAGS" | \ 4571234949Sbapt sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4572234949Sbapt -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4573234949Sbapt 4574234949Sbapt ;; 4575234949Sbapt esac 4576234949Sbapt cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 4577234949Sbapt ;; 4578234949Sbapt esac 4579234949Sbapt ;; 4580234949Sbapt *) 4581234949Sbapt cf_new_cflags="$cf_new_cflags $cf_add_cflags" 4582234949Sbapt ;; 4583234949Sbapt esac 4584234949Sbapt ;; 4585234949Sbaptyes) 4586234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4587234949Sbapt 4588234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 4589234949Sbapt 4590272955Srodrigc test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4591234949Sbapt && test -z "${cf_tst_cflags}" \ 4592234949Sbapt && cf_fix_cppflags=no 4593234949Sbapt ;; 4594234949Sbaptesac 4595234949Sbaptdone 4596234949Sbapt 4597234949Sbaptif test -n "$cf_new_cflags" ; then 4598234949Sbapt 4599234949Sbapt CFLAGS="$CFLAGS $cf_new_cflags" 4600234949Sbaptfi 4601234949Sbapt 4602234949Sbaptif test -n "$cf_new_cppflags" ; then 4603234949Sbapt 4604234949Sbapt CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 4605234949Sbaptfi 4606234949Sbapt 4607234949Sbaptif test -n "$cf_new_extra_cppflags" ; then 4608234949Sbapt 4609234949Sbapt EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 4610234949Sbaptfi 4611234949Sbapt 4612234949Sbapt ;; 4613234949Sbapt esac 4614234949Sbapt ;; 4615234949Sbaptesac 4616234949Sbapt 4617234949Sbaptif test "$with_dmalloc" = yes ; then 4618272957Srodrigc echo "$as_me:4618: checking for dmalloc.h" >&5 4619234949Sbaptecho $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6 4620234949Sbaptif test "${ac_cv_header_dmalloc_h+set}" = set; then 4621234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 4622234949Sbaptelse 4623234949Sbapt cat >conftest.$ac_ext <<_ACEOF 4624272957Srodrigc#line 4624 "configure" 4625234949Sbapt#include "confdefs.h" 4626234949Sbapt#include <dmalloc.h> 4627234949Sbapt_ACEOF 4628272957Srodrigcif { (eval echo "$as_me:4628: \"$ac_cpp conftest.$ac_ext\"") >&5 4629234949Sbapt (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4630234949Sbapt ac_status=$? 4631234949Sbapt egrep -v '^ *\+' conftest.er1 >conftest.err 4632234949Sbapt rm -f conftest.er1 4633234949Sbapt cat conftest.err >&5 4634272957Srodrigc echo "$as_me:4634: \$? = $ac_status" >&5 4635234949Sbapt (exit $ac_status); } >/dev/null; then 4636234949Sbapt if test -s conftest.err; then 4637234949Sbapt ac_cpp_err=$ac_c_preproc_warn_flag 4638234949Sbapt else 4639234949Sbapt ac_cpp_err= 4640234949Sbapt fi 4641234949Sbaptelse 4642234949Sbapt ac_cpp_err=yes 4643234949Sbaptfi 4644234949Sbaptif test -z "$ac_cpp_err"; then 4645234949Sbapt ac_cv_header_dmalloc_h=yes 4646234949Sbaptelse 4647234949Sbapt echo "$as_me: failed program was:" >&5 4648234949Sbapt cat conftest.$ac_ext >&5 4649234949Sbapt ac_cv_header_dmalloc_h=no 4650234949Sbaptfi 4651234949Sbaptrm -f conftest.err conftest.$ac_ext 4652234949Sbaptfi 4653272957Srodrigcecho "$as_me:4653: result: $ac_cv_header_dmalloc_h" >&5 4654234949Sbaptecho "${ECHO_T}$ac_cv_header_dmalloc_h" >&6 4655234949Sbaptif test $ac_cv_header_dmalloc_h = yes; then 4656234949Sbapt 4657272957Srodrigcecho "$as_me:4657: checking for dmalloc_debug in -ldmalloc" >&5 4658234949Sbaptecho $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6 4659234949Sbaptif test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then 4660234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 4661234949Sbaptelse 4662234949Sbapt ac_check_lib_save_LIBS=$LIBS 4663234949SbaptLIBS="-ldmalloc $LIBS" 4664234949Sbaptcat >conftest.$ac_ext <<_ACEOF 4665272957Srodrigc#line 4665 "configure" 4666234949Sbapt#include "confdefs.h" 4667234949Sbapt 4668234949Sbapt/* Override any gcc2 internal prototype to avoid an error. */ 4669234949Sbapt#ifdef __cplusplus 4670234949Sbaptextern "C" 4671234949Sbapt#endif 4672234949Sbapt/* We use char because int might match the return type of a gcc2 4673234949Sbapt builtin and then its argument prototype would still apply. */ 4674234949Sbaptchar dmalloc_debug (); 4675234949Sbaptint 4676234949Sbaptmain () 4677234949Sbapt{ 4678234949Sbaptdmalloc_debug (); 4679234949Sbapt ; 4680234949Sbapt return 0; 4681234949Sbapt} 4682234949Sbapt_ACEOF 4683234949Sbaptrm -f conftest.$ac_objext conftest$ac_exeext 4684272957Srodrigcif { (eval echo "$as_me:4684: \"$ac_link\"") >&5 4685234949Sbapt (eval $ac_link) 2>&5 4686234949Sbapt ac_status=$? 4687272957Srodrigc echo "$as_me:4687: \$? = $ac_status" >&5 4688234949Sbapt (exit $ac_status); } && 4689234949Sbapt { ac_try='test -s conftest$ac_exeext' 4690272957Srodrigc { (eval echo "$as_me:4690: \"$ac_try\"") >&5 4691234949Sbapt (eval $ac_try) 2>&5 4692234949Sbapt ac_status=$? 4693272957Srodrigc echo "$as_me:4693: \$? = $ac_status" >&5 4694234949Sbapt (exit $ac_status); }; }; then 4695234949Sbapt ac_cv_lib_dmalloc_dmalloc_debug=yes 4696234949Sbaptelse 4697234949Sbapt echo "$as_me: failed program was:" >&5 4698234949Sbaptcat conftest.$ac_ext >&5 4699234949Sbaptac_cv_lib_dmalloc_dmalloc_debug=no 4700234949Sbaptfi 4701234949Sbaptrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4702234949SbaptLIBS=$ac_check_lib_save_LIBS 4703234949Sbaptfi 4704272957Srodrigcecho "$as_me:4704: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5 4705234949Sbaptecho "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6 4706234949Sbaptif test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then 4707234949Sbapt cat >>confdefs.h <<EOF 4708234949Sbapt#define HAVE_LIBDMALLOC 1 4709234949SbaptEOF 4710234949Sbapt 4711234949Sbapt LIBS="-ldmalloc $LIBS" 4712234949Sbapt 4713234949Sbaptfi 4714234949Sbapt 4715234949Sbaptfi 4716234949Sbapt 4717234949Sbaptfi 4718234949Sbapt 4719272957Srodrigcecho "$as_me:4719: checking if you want to use dbmalloc for testing" >&5 4720234949Sbaptecho $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6 4721234949Sbapt 4722234949Sbapt# Check whether --with-dbmalloc or --without-dbmalloc was given. 4723234949Sbaptif test "${with_dbmalloc+set}" = set; then 4724234949Sbapt withval="$with_dbmalloc" 4725251143Sbapt 4726251143Sbaptcat >>confdefs.h <<EOF 4727234949Sbapt#define USE_DBMALLOC 1 4728234949SbaptEOF 4729234949Sbapt 4730234949Sbapt : ${with_cflags:=-g} 4731234949Sbapt : ${with_no_leaks:=yes} 4732234949Sbapt with_dbmalloc=yes 4733234949Sbaptelse 4734234949Sbapt with_dbmalloc= 4735234949Sbaptfi; 4736272957Srodrigcecho "$as_me:4736: result: ${with_dbmalloc:-no}" >&5 4737234949Sbaptecho "${ECHO_T}${with_dbmalloc:-no}" >&6 4738234949Sbapt 4739234949Sbaptcase .$with_cflags in #(vi 4740234949Sbapt.*-g*) 4741234949Sbapt case .$CFLAGS in #(vi 4742234949Sbapt .*-g*) #(vi 4743234949Sbapt ;; 4744234949Sbapt *) 4745234949Sbapt 4746234949Sbaptcf_fix_cppflags=no 4747234949Sbaptcf_new_cflags= 4748234949Sbaptcf_new_cppflags= 4749234949Sbaptcf_new_extra_cppflags= 4750234949Sbapt 4751234949Sbaptfor cf_add_cflags in -g 4752234949Sbaptdo 4753234949Sbaptcase $cf_fix_cppflags in 4754234949Sbaptno) 4755234949Sbapt case $cf_add_cflags in #(vi 4756234949Sbapt -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 4757234949Sbapt case $cf_add_cflags in 4758234949Sbapt -D*) 4759234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4760234949Sbapt 4761272955Srodrigc test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4762234949Sbapt && test -z "${cf_tst_cflags}" \ 4763234949Sbapt && cf_fix_cppflags=yes 4764234949Sbapt 4765234949Sbapt if test $cf_fix_cppflags = yes ; then 4766234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4767234949Sbapt continue 4768234949Sbapt elif test "${cf_tst_cflags}" = "\"'" ; then 4769234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4770234949Sbapt continue 4771234949Sbapt fi 4772234949Sbapt ;; 4773234949Sbapt esac 4774234949Sbapt case "$CPPFLAGS" in 4775234949Sbapt *$cf_add_cflags) #(vi 4776234949Sbapt ;; 4777234949Sbapt *) #(vi 4778234949Sbapt case $cf_add_cflags in #(vi 4779234949Sbapt -D*) 4780234949Sbapt cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4781234949Sbapt 4782234949SbaptCPPFLAGS=`echo "$CPPFLAGS" | \ 4783234949Sbapt sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4784234949Sbapt -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4785234949Sbapt 4786234949Sbapt ;; 4787234949Sbapt esac 4788234949Sbapt cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 4789234949Sbapt ;; 4790234949Sbapt esac 4791234949Sbapt ;; 4792234949Sbapt *) 4793234949Sbapt cf_new_cflags="$cf_new_cflags $cf_add_cflags" 4794234949Sbapt ;; 4795234949Sbapt esac 4796234949Sbapt ;; 4797234949Sbaptyes) 4798234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4799234949Sbapt 4800234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 4801234949Sbapt 4802272955Srodrigc test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4803234949Sbapt && test -z "${cf_tst_cflags}" \ 4804234949Sbapt && cf_fix_cppflags=no 4805234949Sbapt ;; 4806234949Sbaptesac 4807234949Sbaptdone 4808234949Sbapt 4809234949Sbaptif test -n "$cf_new_cflags" ; then 4810234949Sbapt 4811234949Sbapt CFLAGS="$CFLAGS $cf_new_cflags" 4812234949Sbaptfi 4813234949Sbapt 4814234949Sbaptif test -n "$cf_new_cppflags" ; then 4815234949Sbapt 4816234949Sbapt CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 4817234949Sbaptfi 4818234949Sbapt 4819234949Sbaptif test -n "$cf_new_extra_cppflags" ; then 4820234949Sbapt 4821234949Sbapt EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 4822234949Sbaptfi 4823234949Sbapt 4824234949Sbapt ;; 4825234949Sbapt esac 4826234949Sbapt ;; 4827234949Sbaptesac 4828234949Sbapt 4829234949Sbaptif test "$with_dbmalloc" = yes ; then 4830272957Srodrigc echo "$as_me:4830: checking for dbmalloc.h" >&5 4831234949Sbaptecho $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6 4832234949Sbaptif test "${ac_cv_header_dbmalloc_h+set}" = set; then 4833234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 4834234949Sbaptelse 4835234949Sbapt cat >conftest.$ac_ext <<_ACEOF 4836272957Srodrigc#line 4836 "configure" 4837234949Sbapt#include "confdefs.h" 4838234949Sbapt#include <dbmalloc.h> 4839234949Sbapt_ACEOF 4840272957Srodrigcif { (eval echo "$as_me:4840: \"$ac_cpp conftest.$ac_ext\"") >&5 4841234949Sbapt (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4842234949Sbapt ac_status=$? 4843234949Sbapt egrep -v '^ *\+' conftest.er1 >conftest.err 4844234949Sbapt rm -f conftest.er1 4845234949Sbapt cat conftest.err >&5 4846272957Srodrigc echo "$as_me:4846: \$? = $ac_status" >&5 4847234949Sbapt (exit $ac_status); } >/dev/null; then 4848234949Sbapt if test -s conftest.err; then 4849234949Sbapt ac_cpp_err=$ac_c_preproc_warn_flag 4850234949Sbapt else 4851234949Sbapt ac_cpp_err= 4852234949Sbapt fi 4853234949Sbaptelse 4854234949Sbapt ac_cpp_err=yes 4855234949Sbaptfi 4856234949Sbaptif test -z "$ac_cpp_err"; then 4857234949Sbapt ac_cv_header_dbmalloc_h=yes 4858234949Sbaptelse 4859234949Sbapt echo "$as_me: failed program was:" >&5 4860234949Sbapt cat conftest.$ac_ext >&5 4861234949Sbapt ac_cv_header_dbmalloc_h=no 4862234949Sbaptfi 4863234949Sbaptrm -f conftest.err conftest.$ac_ext 4864234949Sbaptfi 4865272957Srodrigcecho "$as_me:4865: result: $ac_cv_header_dbmalloc_h" >&5 4866234949Sbaptecho "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6 4867234949Sbaptif test $ac_cv_header_dbmalloc_h = yes; then 4868234949Sbapt 4869272957Srodrigcecho "$as_me:4869: checking for debug_malloc in -ldbmalloc" >&5 4870234949Sbaptecho $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6 4871234949Sbaptif test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then 4872234949Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 4873234949Sbaptelse 4874234949Sbapt ac_check_lib_save_LIBS=$LIBS 4875234949SbaptLIBS="-ldbmalloc $LIBS" 4876234949Sbaptcat >conftest.$ac_ext <<_ACEOF 4877272957Srodrigc#line 4877 "configure" 4878234949Sbapt#include "confdefs.h" 4879234949Sbapt 4880234949Sbapt/* Override any gcc2 internal prototype to avoid an error. */ 4881234949Sbapt#ifdef __cplusplus 4882234949Sbaptextern "C" 4883234949Sbapt#endif 4884234949Sbapt/* We use char because int might match the return type of a gcc2 4885234949Sbapt builtin and then its argument prototype would still apply. */ 4886234949Sbaptchar debug_malloc (); 4887234949Sbaptint 4888234949Sbaptmain () 4889234949Sbapt{ 4890234949Sbaptdebug_malloc (); 4891234949Sbapt ; 4892234949Sbapt return 0; 4893234949Sbapt} 4894234949Sbapt_ACEOF 4895234949Sbaptrm -f conftest.$ac_objext conftest$ac_exeext 4896272957Srodrigcif { (eval echo "$as_me:4896: \"$ac_link\"") >&5 4897234949Sbapt (eval $ac_link) 2>&5 4898234949Sbapt ac_status=$? 4899272957Srodrigc echo "$as_me:4899: \$? = $ac_status" >&5 4900234949Sbapt (exit $ac_status); } && 4901234949Sbapt { ac_try='test -s conftest$ac_exeext' 4902272957Srodrigc { (eval echo "$as_me:4902: \"$ac_try\"") >&5 4903234949Sbapt (eval $ac_try) 2>&5 4904234949Sbapt ac_status=$? 4905272957Srodrigc echo "$as_me:4905: \$? = $ac_status" >&5 4906234949Sbapt (exit $ac_status); }; }; then 4907234949Sbapt ac_cv_lib_dbmalloc_debug_malloc=yes 4908234949Sbaptelse 4909234949Sbapt echo "$as_me: failed program was:" >&5 4910234949Sbaptcat conftest.$ac_ext >&5 4911234949Sbaptac_cv_lib_dbmalloc_debug_malloc=no 4912234949Sbaptfi 4913234949Sbaptrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4914234949SbaptLIBS=$ac_check_lib_save_LIBS 4915234949Sbaptfi 4916272957Srodrigcecho "$as_me:4916: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5 4917234949Sbaptecho "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6 4918234949Sbaptif test $ac_cv_lib_dbmalloc_debug_malloc = yes; then 4919234949Sbapt cat >>confdefs.h <<EOF 4920234949Sbapt#define HAVE_LIBDBMALLOC 1 4921234949SbaptEOF 4922234949Sbapt 4923234949Sbapt LIBS="-ldbmalloc $LIBS" 4924234949Sbapt 4925234949Sbaptfi 4926234949Sbapt 4927234949Sbaptfi 4928234949Sbapt 4929234949Sbaptfi 4930234949Sbapt 4931272957Srodrigcecho "$as_me:4931: checking if you want to use valgrind for testing" >&5 4932234949Sbaptecho $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6 4933234949Sbapt 4934234949Sbapt# Check whether --with-valgrind or --without-valgrind was given. 4935234949Sbaptif test "${with_valgrind+set}" = set; then 4936234949Sbapt withval="$with_valgrind" 4937251143Sbapt 4938251143Sbaptcat >>confdefs.h <<EOF 4939234949Sbapt#define USE_VALGRIND 1 4940234949SbaptEOF 4941234949Sbapt 4942234949Sbapt : ${with_cflags:=-g} 4943234949Sbapt : ${with_no_leaks:=yes} 4944234949Sbapt with_valgrind=yes 4945234949Sbaptelse 4946234949Sbapt with_valgrind= 4947234949Sbaptfi; 4948272957Srodrigcecho "$as_me:4948: result: ${with_valgrind:-no}" >&5 4949234949Sbaptecho "${ECHO_T}${with_valgrind:-no}" >&6 4950234949Sbapt 4951234949Sbaptcase .$with_cflags in #(vi 4952234949Sbapt.*-g*) 4953234949Sbapt case .$CFLAGS in #(vi 4954234949Sbapt .*-g*) #(vi 4955234949Sbapt ;; 4956234949Sbapt *) 4957234949Sbapt 4958234949Sbaptcf_fix_cppflags=no 4959234949Sbaptcf_new_cflags= 4960234949Sbaptcf_new_cppflags= 4961234949Sbaptcf_new_extra_cppflags= 4962234949Sbapt 4963234949Sbaptfor cf_add_cflags in -g 4964234949Sbaptdo 4965234949Sbaptcase $cf_fix_cppflags in 4966234949Sbaptno) 4967234949Sbapt case $cf_add_cflags in #(vi 4968234949Sbapt -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi 4969234949Sbapt case $cf_add_cflags in 4970234949Sbapt -D*) 4971234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'` 4972234949Sbapt 4973272955Srodrigc test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 4974234949Sbapt && test -z "${cf_tst_cflags}" \ 4975234949Sbapt && cf_fix_cppflags=yes 4976234949Sbapt 4977234949Sbapt if test $cf_fix_cppflags = yes ; then 4978234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4979234949Sbapt continue 4980234949Sbapt elif test "${cf_tst_cflags}" = "\"'" ; then 4981234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 4982234949Sbapt continue 4983234949Sbapt fi 4984234949Sbapt ;; 4985234949Sbapt esac 4986234949Sbapt case "$CPPFLAGS" in 4987234949Sbapt *$cf_add_cflags) #(vi 4988234949Sbapt ;; 4989234949Sbapt *) #(vi 4990234949Sbapt case $cf_add_cflags in #(vi 4991234949Sbapt -D*) 4992234949Sbapt cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'` 4993234949Sbapt 4994234949SbaptCPPFLAGS=`echo "$CPPFLAGS" | \ 4995234949Sbapt sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \ 4996234949Sbapt -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'` 4997234949Sbapt 4998234949Sbapt ;; 4999234949Sbapt esac 5000234949Sbapt cf_new_cppflags="$cf_new_cppflags $cf_add_cflags" 5001234949Sbapt ;; 5002234949Sbapt esac 5003234949Sbapt ;; 5004234949Sbapt *) 5005234949Sbapt cf_new_cflags="$cf_new_cflags $cf_add_cflags" 5006234949Sbapt ;; 5007234949Sbapt esac 5008234949Sbapt ;; 5009234949Sbaptyes) 5010234949Sbapt cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags" 5011234949Sbapt 5012234949Sbapt cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'` 5013234949Sbapt 5014272955Srodrigc test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ 5015234949Sbapt && test -z "${cf_tst_cflags}" \ 5016234949Sbapt && cf_fix_cppflags=no 5017234949Sbapt ;; 5018234949Sbaptesac 5019234949Sbaptdone 5020234949Sbapt 5021234949Sbaptif test -n "$cf_new_cflags" ; then 5022234949Sbapt 5023234949Sbapt CFLAGS="$CFLAGS $cf_new_cflags" 5024234949Sbaptfi 5025234949Sbapt 5026234949Sbaptif test -n "$cf_new_cppflags" ; then 5027234949Sbapt 5028234949Sbapt CPPFLAGS="$CPPFLAGS $cf_new_cppflags" 5029234949Sbaptfi 5030234949Sbapt 5031234949Sbaptif test -n "$cf_new_extra_cppflags" ; then 5032234949Sbapt 5033234949Sbapt EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS" 5034234949Sbaptfi 5035234949Sbapt 5036234949Sbapt ;; 5037234949Sbapt esac 5038234949Sbapt ;; 5039234949Sbaptesac 5040234949Sbapt 5041272957Srodrigcecho "$as_me:5041: checking if you want to perform memory-leak testing" >&5 5042234949Sbaptecho $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6 5043234949Sbapt 5044234949Sbapt# Check whether --enable-leaks or --disable-leaks was given. 5045234949Sbaptif test "${enable_leaks+set}" = set; then 5046234949Sbapt enableval="$enable_leaks" 5047234949Sbapt if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi 5048234949Sbaptelse 5049234949Sbapt : ${with_no_leaks:=no} 5050234949Sbaptfi; 5051272957Srodrigcecho "$as_me:5051: result: $with_no_leaks" >&5 5052234949Sbaptecho "${ECHO_T}$with_no_leaks" >&6 5053234949Sbapt 5054234949Sbaptif test "$with_no_leaks" = yes ; then 5055251143Sbapt 5056251143Sbaptcat >>confdefs.h <<\EOF 5057234949Sbapt#define NO_LEAKS 1 5058234949SbaptEOF 5059234949Sbapt 5060251143Sbaptcat >>confdefs.h <<\EOF 5061234949Sbapt#define YY_NO_LEAKS 1 5062234949SbaptEOF 5063234949Sbapt 5064234949Sbaptfi 5065234949Sbapt 5066272957Srodrigcecho "$as_me:5066: checking for ANSI C header files" >&5 5067272957Srodrigcecho $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 5068272957Srodrigcif test "${ac_cv_header_stdc+set}" = set; then 5069272957Srodrigc echo $ECHO_N "(cached) $ECHO_C" >&6 5070272957Srodrigcelse 5071272957Srodrigc cat >conftest.$ac_ext <<_ACEOF 5072272957Srodrigc#line 5072 "configure" 5073272957Srodrigc#include "confdefs.h" 5074272957Srodrigc#include <stdlib.h> 5075272957Srodrigc#include <stdarg.h> 5076272957Srodrigc#include <string.h> 5077272957Srodrigc#include <float.h> 5078272957Srodrigc 5079272957Srodrigc_ACEOF 5080272957Srodrigcif { (eval echo "$as_me:5080: \"$ac_cpp conftest.$ac_ext\"") >&5 5081272957Srodrigc (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5082272957Srodrigc ac_status=$? 5083272957Srodrigc egrep -v '^ *\+' conftest.er1 >conftest.err 5084272957Srodrigc rm -f conftest.er1 5085272957Srodrigc cat conftest.err >&5 5086272957Srodrigc echo "$as_me:5086: \$? = $ac_status" >&5 5087272957Srodrigc (exit $ac_status); } >/dev/null; then 5088272957Srodrigc if test -s conftest.err; then 5089272957Srodrigc ac_cpp_err=$ac_c_preproc_warn_flag 5090272957Srodrigc else 5091272957Srodrigc ac_cpp_err= 5092272957Srodrigc fi 5093272957Srodrigcelse 5094272957Srodrigc ac_cpp_err=yes 5095272957Srodrigcfi 5096272957Srodrigcif test -z "$ac_cpp_err"; then 5097272957Srodrigc ac_cv_header_stdc=yes 5098272957Srodrigcelse 5099272957Srodrigc echo "$as_me: failed program was:" >&5 5100272957Srodrigc cat conftest.$ac_ext >&5 5101272957Srodrigc ac_cv_header_stdc=no 5102272957Srodrigcfi 5103272957Srodrigcrm -f conftest.err conftest.$ac_ext 5104272957Srodrigc 5105272957Srodrigcif test $ac_cv_header_stdc = yes; then 5106272957Srodrigc # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5107272957Srodrigc cat >conftest.$ac_ext <<_ACEOF 5108272957Srodrigc#line 5108 "configure" 5109272957Srodrigc#include "confdefs.h" 5110272957Srodrigc#include <string.h> 5111272957Srodrigc 5112272957Srodrigc_ACEOF 5113272957Srodrigcif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5114272957Srodrigc egrep "memchr" >/dev/null 2>&1; then 5115272957Srodrigc : 5116272957Srodrigcelse 5117272957Srodrigc ac_cv_header_stdc=no 5118272957Srodrigcfi 5119272957Srodrigcrm -rf conftest* 5120272957Srodrigc 5121272957Srodrigcfi 5122272957Srodrigc 5123272957Srodrigcif test $ac_cv_header_stdc = yes; then 5124272957Srodrigc # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5125272957Srodrigc cat >conftest.$ac_ext <<_ACEOF 5126272957Srodrigc#line 5126 "configure" 5127272957Srodrigc#include "confdefs.h" 5128272957Srodrigc#include <stdlib.h> 5129272957Srodrigc 5130272957Srodrigc_ACEOF 5131272957Srodrigcif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5132272957Srodrigc egrep "free" >/dev/null 2>&1; then 5133272957Srodrigc : 5134272957Srodrigcelse 5135272957Srodrigc ac_cv_header_stdc=no 5136272957Srodrigcfi 5137272957Srodrigcrm -rf conftest* 5138272957Srodrigc 5139272957Srodrigcfi 5140272957Srodrigc 5141272957Srodrigcif test $ac_cv_header_stdc = yes; then 5142272957Srodrigc # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5143272957Srodrigc if test "$cross_compiling" = yes; then 5144272957Srodrigc : 5145272957Srodrigcelse 5146272957Srodrigc cat >conftest.$ac_ext <<_ACEOF 5147272957Srodrigc#line 5147 "configure" 5148272957Srodrigc#include "confdefs.h" 5149272957Srodrigc#include <ctype.h> 5150272957Srodrigc#if ((' ' & 0x0FF) == 0x020) 5151272957Srodrigc# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5152272957Srodrigc# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5153272957Srodrigc#else 5154272957Srodrigc# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 5155272957Srodrigc || ('j' <= (c) && (c) <= 'r') \ 5156272957Srodrigc || ('s' <= (c) && (c) <= 'z')) 5157272957Srodrigc# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5158272957Srodrigc#endif 5159272957Srodrigc 5160272957Srodrigc#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5161272957Srodrigcint 5162272957Srodrigcmain () 5163272957Srodrigc{ 5164272957Srodrigc int i; 5165272957Srodrigc for (i = 0; i < 256; i++) 5166272957Srodrigc if (XOR (islower (i), ISLOWER (i)) 5167272957Srodrigc || toupper (i) != TOUPPER (i)) 5168272957Srodrigc $ac_main_return(2); 5169272957Srodrigc $ac_main_return (0); 5170272957Srodrigc} 5171272957Srodrigc_ACEOF 5172272957Srodrigcrm -f conftest$ac_exeext 5173272957Srodrigcif { (eval echo "$as_me:5173: \"$ac_link\"") >&5 5174272957Srodrigc (eval $ac_link) 2>&5 5175272957Srodrigc ac_status=$? 5176272957Srodrigc echo "$as_me:5176: \$? = $ac_status" >&5 5177272957Srodrigc (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5178272957Srodrigc { (eval echo "$as_me:5178: \"$ac_try\"") >&5 5179272957Srodrigc (eval $ac_try) 2>&5 5180272957Srodrigc ac_status=$? 5181272957Srodrigc echo "$as_me:5181: \$? = $ac_status" >&5 5182272957Srodrigc (exit $ac_status); }; }; then 5183272957Srodrigc : 5184272957Srodrigcelse 5185272957Srodrigc echo "$as_me: program exited with status $ac_status" >&5 5186272957Srodrigcecho "$as_me: failed program was:" >&5 5187272957Srodrigccat conftest.$ac_ext >&5 5188272957Srodrigcac_cv_header_stdc=no 5189272957Srodrigcfi 5190272957Srodrigcrm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5191272957Srodrigcfi 5192272957Srodrigcfi 5193272957Srodrigcfi 5194272957Srodrigcecho "$as_me:5194: result: $ac_cv_header_stdc" >&5 5195272957Srodrigcecho "${ECHO_T}$ac_cv_header_stdc" >&6 5196272957Srodrigcif test $ac_cv_header_stdc = yes; then 5197272957Srodrigc 5198272957Srodrigccat >>confdefs.h <<\EOF 5199272957Srodrigc#define STDC_HEADERS 1 5200272957SrodrigcEOF 5201272957Srodrigc 5202272957Srodrigcfi 5203272957Srodrigc 5204272957Srodrigc# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5205272957Srodrigc 5206272957Srodrigcfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5207272957Srodrigc inttypes.h stdint.h unistd.h 5208272957Srodrigcdo 5209272957Srodrigcas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5210272957Srodrigcecho "$as_me:5210: checking for $ac_header" >&5 5211272957Srodrigcecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5212272957Srodrigcif eval "test \"\${$as_ac_Header+set}\" = set"; then 5213272957Srodrigc echo $ECHO_N "(cached) $ECHO_C" >&6 5214272957Srodrigcelse 5215272957Srodrigc cat >conftest.$ac_ext <<_ACEOF 5216272957Srodrigc#line 5216 "configure" 5217272957Srodrigc#include "confdefs.h" 5218272957Srodrigc$ac_includes_default 5219272957Srodrigc#include <$ac_header> 5220272957Srodrigc_ACEOF 5221272957Srodrigcrm -f conftest.$ac_objext 5222272957Srodrigcif { (eval echo "$as_me:5222: \"$ac_compile\"") >&5 5223272957Srodrigc (eval $ac_compile) 2>&5 5224272957Srodrigc ac_status=$? 5225272957Srodrigc echo "$as_me:5225: \$? = $ac_status" >&5 5226272957Srodrigc (exit $ac_status); } && 5227272957Srodrigc { ac_try='test -s conftest.$ac_objext' 5228272957Srodrigc { (eval echo "$as_me:5228: \"$ac_try\"") >&5 5229272957Srodrigc (eval $ac_try) 2>&5 5230272957Srodrigc ac_status=$? 5231272957Srodrigc echo "$as_me:5231: \$? = $ac_status" >&5 5232272957Srodrigc (exit $ac_status); }; }; then 5233272957Srodrigc eval "$as_ac_Header=yes" 5234272957Srodrigcelse 5235272957Srodrigc echo "$as_me: failed program was:" >&5 5236272957Srodrigccat conftest.$ac_ext >&5 5237272957Srodrigceval "$as_ac_Header=no" 5238272957Srodrigcfi 5239272957Srodrigcrm -f conftest.$ac_objext conftest.$ac_ext 5240272957Srodrigcfi 5241272957Srodrigcecho "$as_me:5241: result: `eval echo '${'$as_ac_Header'}'`" >&5 5242272957Srodrigcecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5243272957Srodrigcif test `eval echo '${'$as_ac_Header'}'` = yes; then 5244272957Srodrigc cat >>confdefs.h <<EOF 5245272957Srodrigc#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5246272957SrodrigcEOF 5247272957Srodrigc 5248272957Srodrigcfi 5249272957Srodrigcdone 5250272957Srodrigc 5251272957Srodrigcecho "$as_me:5251: checking for mode_t" >&5 5252272957Srodrigcecho $ECHO_N "checking for mode_t... $ECHO_C" >&6 5253272957Srodrigcif test "${ac_cv_type_mode_t+set}" = set; then 5254272957Srodrigc echo $ECHO_N "(cached) $ECHO_C" >&6 5255272957Srodrigcelse 5256272957Srodrigc cat >conftest.$ac_ext <<_ACEOF 5257272957Srodrigc#line 5257 "configure" 5258272957Srodrigc#include "confdefs.h" 5259272957Srodrigc$ac_includes_default 5260272957Srodrigcint 5261272957Srodrigcmain () 5262272957Srodrigc{ 5263272957Srodrigcif ((mode_t *) 0) 5264272957Srodrigc return 0; 5265272957Srodrigcif (sizeof (mode_t)) 5266272957Srodrigc return 0; 5267272957Srodrigc ; 5268272957Srodrigc return 0; 5269272957Srodrigc} 5270272957Srodrigc_ACEOF 5271272957Srodrigcrm -f conftest.$ac_objext 5272272957Srodrigcif { (eval echo "$as_me:5272: \"$ac_compile\"") >&5 5273272957Srodrigc (eval $ac_compile) 2>&5 5274272957Srodrigc ac_status=$? 5275272957Srodrigc echo "$as_me:5275: \$? = $ac_status" >&5 5276272957Srodrigc (exit $ac_status); } && 5277272957Srodrigc { ac_try='test -s conftest.$ac_objext' 5278272957Srodrigc { (eval echo "$as_me:5278: \"$ac_try\"") >&5 5279272957Srodrigc (eval $ac_try) 2>&5 5280272957Srodrigc ac_status=$? 5281272957Srodrigc echo "$as_me:5281: \$? = $ac_status" >&5 5282272957Srodrigc (exit $ac_status); }; }; then 5283272957Srodrigc ac_cv_type_mode_t=yes 5284272957Srodrigcelse 5285272957Srodrigc echo "$as_me: failed program was:" >&5 5286272957Srodrigccat conftest.$ac_ext >&5 5287272957Srodrigcac_cv_type_mode_t=no 5288272957Srodrigcfi 5289272957Srodrigcrm -f conftest.$ac_objext conftest.$ac_ext 5290272957Srodrigcfi 5291272957Srodrigcecho "$as_me:5291: result: $ac_cv_type_mode_t" >&5 5292272957Srodrigcecho "${ECHO_T}$ac_cv_type_mode_t" >&6 5293272957Srodrigcif test $ac_cv_type_mode_t = yes; then 5294272957Srodrigc : 5295272957Srodrigcelse 5296272957Srodrigc 5297272957Srodrigccat >>confdefs.h <<EOF 5298272957Srodrigc#define mode_t int 5299272957SrodrigcEOF 5300272957Srodrigc 5301272957Srodrigcfi 5302272957Srodrigc 5303234949Sbapt### output makefile 5304234949Sbaptac_config_files="$ac_config_files makefile" 5305234949Sbaptcat >confcache <<\_ACEOF 5306234949Sbapt# This file is a shell script that caches the results of configure 5307234949Sbapt# tests run on this system so they can be shared between configure 5308234949Sbapt# scripts and configure runs, see configure's option --config-cache. 5309234949Sbapt# It is not useful on other systems. If it contains results you don't 5310234949Sbapt# want to keep, you may remove or edit it. 5311234949Sbapt# 5312234949Sbapt# config.status only pays attention to the cache file if you give it 5313234949Sbapt# the --recheck option to rerun configure. 5314234949Sbapt# 5315234949Sbapt# `ac_cv_env_foo' variables (set or unset) will be overriden when 5316234949Sbapt# loading this file, other *unset* `ac_cv_foo' will be assigned the 5317234949Sbapt# following values. 5318234949Sbapt 5319234949Sbapt_ACEOF 5320234949Sbapt 5321234949Sbapt# The following way of writing the cache mishandles newlines in values, 5322234949Sbapt# but we know of no workaround that is simple, portable, and efficient. 5323234949Sbapt# So, don't put newlines in cache variables' values. 5324234949Sbapt# Ultrix sh set writes to stderr and can't be redirected directly, 5325234949Sbapt# and sets the high bit in the cache file unless we assign to the vars. 5326234949Sbapt{ 5327234949Sbapt (set) 2>&1 | 5328234949Sbapt case `(ac_space=' '; set | grep ac_space) 2>&1` in 5329234949Sbapt *ac_space=\ *) 5330234949Sbapt # `set' does not quote correctly, so add quotes (double-quote 5331234949Sbapt # substitution turns \\\\ into \\, and sed turns \\ into \). 5332234949Sbapt sed -n \ 5333234949Sbapt "s/'/'\\\\''/g; 5334234949Sbapt s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 5335234949Sbapt ;; 5336234949Sbapt *) 5337234949Sbapt # `set' quotes correctly as required by POSIX, so do not add quotes. 5338234949Sbapt sed -n \ 5339234949Sbapt "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 5340234949Sbapt ;; 5341234949Sbapt esac; 5342234949Sbapt} | 5343234949Sbapt sed ' 5344234949Sbapt t clear 5345234949Sbapt : clear 5346234949Sbapt s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 5347234949Sbapt t end 5348234949Sbapt /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 5349234949Sbapt : end' >>confcache 5350234949Sbaptif cmp -s $cache_file confcache; then :; else 5351234949Sbapt if test -w $cache_file; then 5352234949Sbapt test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 5353234949Sbapt cat confcache >$cache_file 5354234949Sbapt else 5355234949Sbapt echo "not updating unwritable cache $cache_file" 5356234949Sbapt fi 5357234949Sbaptfi 5358234949Sbaptrm -f confcache 5359234949Sbapt 5360234949Sbapttest "x$prefix" = xNONE && prefix=$ac_default_prefix 5361234949Sbapt# Let make expand exec_prefix. 5362234949Sbapttest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 5363234949Sbapt 5364234949Sbapt# VPATH may cause trouble with some makes, so we remove $(srcdir), 5365234949Sbapt# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 5366234949Sbapt# trailing colons and then remove the whole line if VPATH becomes empty 5367234949Sbapt# (actually we leave an empty line to preserve line numbers). 5368234949Sbaptif test "x$srcdir" = x.; then 5369234949Sbapt ac_vpsub='/^[ ]*VPATH[ ]*=/{ 5370234949Sbapts/:*\$(srcdir):*/:/; 5371234949Sbapts/:*\${srcdir}:*/:/; 5372234949Sbapts/:*@srcdir@:*/:/; 5373234949Sbapts/^\([^=]*=[ ]*\):*/\1/; 5374234949Sbapts/:*$//; 5375234949Sbapts/^[^=]*=[ ]*$//; 5376234949Sbapt}' 5377234949Sbaptfi 5378234949Sbapt 5379234949SbaptDEFS=-DHAVE_CONFIG_H 5380234949Sbapt 5381234949Sbapt: ${CONFIG_STATUS=./config.status} 5382234949Sbaptac_clean_files_save=$ac_clean_files 5383234949Sbaptac_clean_files="$ac_clean_files $CONFIG_STATUS" 5384272957Srodrigc{ echo "$as_me:5384: creating $CONFIG_STATUS" >&5 5385234949Sbaptecho "$as_me: creating $CONFIG_STATUS" >&6;} 5386234949Sbaptcat >$CONFIG_STATUS <<_ACEOF 5387234949Sbapt#! $SHELL 5388234949Sbapt# Generated automatically by configure. 5389234949Sbapt# Run this file to recreate the current configuration. 5390234949Sbapt# Compiler output produced by configure, useful for debugging 5391234949Sbapt# configure, is in config.log if it exists. 5392234949Sbapt 5393234949Sbaptdebug=false 5394234949SbaptSHELL=\${CONFIG_SHELL-$SHELL} 5395234949Sbaptac_cs_invocation="\$0 \$@" 5396234949Sbapt 5397234949Sbapt_ACEOF 5398234949Sbapt 5399234949Sbaptcat >>$CONFIG_STATUS <<\_ACEOF 5400234949Sbapt# Be Bourne compatible 5401234949Sbaptif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 5402234949Sbapt emulate sh 5403234949Sbapt NULLCMD=: 5404234949Sbaptelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 5405234949Sbapt set -o posix 5406234949Sbaptfi 5407234949Sbapt 5408234949Sbapt# Name of the executable. 5409234949Sbaptas_me=`echo "$0" |sed 's,.*[\\/],,'` 5410234949Sbapt 5411234949Sbaptif expr a : '\(a\)' >/dev/null 2>&1; then 5412234949Sbapt as_expr=expr 5413234949Sbaptelse 5414234949Sbapt as_expr=false 5415234949Sbaptfi 5416234949Sbapt 5417234949Sbaptrm -f conf$$ conf$$.exe conf$$.file 5418234949Sbaptecho >conf$$.file 5419234949Sbaptif ln -s conf$$.file conf$$ 2>/dev/null; then 5420234949Sbapt # We could just check for DJGPP; but this test a) works b) is more generic 5421234949Sbapt # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 5422234949Sbapt if test -f conf$$.exe; then 5423234949Sbapt # Don't use ln at all; we don't have any links 5424234949Sbapt as_ln_s='cp -p' 5425234949Sbapt else 5426234949Sbapt as_ln_s='ln -s' 5427234949Sbapt fi 5428234949Sbaptelif ln conf$$.file conf$$ 2>/dev/null; then 5429234949Sbapt as_ln_s=ln 5430234949Sbaptelse 5431234949Sbapt as_ln_s='cp -p' 5432234949Sbaptfi 5433234949Sbaptrm -f conf$$ conf$$.exe conf$$.file 5434234949Sbapt 5435234949Sbaptas_executable_p="test -f" 5436234949Sbapt 5437234949Sbapt# Support unset when possible. 5438234949Sbaptif (FOO=FOO; unset FOO) >/dev/null 2>&1; then 5439234949Sbapt as_unset=unset 5440234949Sbaptelse 5441234949Sbapt as_unset=false 5442234949Sbaptfi 5443234949Sbapt 5444234949Sbapt# NLS nuisances. 5445234949Sbapt$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 5446234949Sbapt$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 5447234949Sbapt$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 5448234949Sbapt$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 5449234949Sbapt$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 5450234949Sbapt$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 5451234949Sbapt$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 5452234949Sbapt$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 5453234949Sbapt 5454234949Sbapt# IFS 5455234949Sbapt# We need space, tab and new line, in precisely that order. 5456234949Sbaptas_nl=' 5457234949Sbapt' 5458234949SbaptIFS=" $as_nl" 5459234949Sbapt 5460234949Sbapt# CDPATH. 5461234949Sbapt$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 5462234949Sbapt 5463234949Sbaptexec 6>&1 5464234949Sbapt 5465234949Sbapt_ACEOF 5466234949Sbapt 5467234949Sbapt# Files that config.status was made for. 5468234949Sbaptif test -n "$ac_config_files"; then 5469234949Sbapt echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 5470234949Sbaptfi 5471234949Sbapt 5472234949Sbaptif test -n "$ac_config_headers"; then 5473234949Sbapt echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 5474234949Sbaptfi 5475234949Sbapt 5476234949Sbaptif test -n "$ac_config_links"; then 5477234949Sbapt echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 5478234949Sbaptfi 5479234949Sbapt 5480234949Sbaptif test -n "$ac_config_commands"; then 5481234949Sbapt echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 5482234949Sbaptfi 5483234949Sbapt 5484234949Sbaptcat >>$CONFIG_STATUS <<\EOF 5485234949Sbapt 5486234949Sbaptac_cs_usage="\ 5487234949Sbapt\`$as_me' instantiates files from templates according to the 5488234949Sbaptcurrent configuration. 5489234949Sbapt 5490234949SbaptUsage: $0 [OPTIONS] [FILE]... 5491234949Sbapt 5492234949Sbapt -h, --help print this help, then exit 5493234949Sbapt -V, --version print version number, then exit 5494234949Sbapt -d, --debug don't remove temporary files 5495234949Sbapt --recheck update $as_me by reconfiguring in the same conditions 5496234949Sbapt --file=FILE[:TEMPLATE] 5497234949Sbapt instantiate the configuration file FILE 5498234949Sbapt --header=FILE[:TEMPLATE] 5499234949Sbapt instantiate the configuration header FILE 5500234949Sbapt 5501234949SbaptConfiguration files: 5502234949Sbapt$config_files 5503234949Sbapt 5504234949SbaptConfiguration headers: 5505234949Sbapt$config_headers 5506234949Sbapt 5507234949SbaptReport bugs to <dickey@invisible-island.net>." 5508234949SbaptEOF 5509234949Sbapt 5510234949Sbaptcat >>$CONFIG_STATUS <<EOF 5511234949Sbaptac_cs_version="\\ 5512234949Sbaptconfig.status 5513251143Sbaptconfigured by $0, generated by GNU Autoconf 2.52.20121002, 5514234949Sbapt with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 5515234949Sbapt 5516234949SbaptCopyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 5517234949SbaptFree Software Foundation, Inc. 5518234949SbaptThis config.status script is free software; the Free Software Foundation 5519234949Sbaptgives unlimited permission to copy, distribute and modify it." 5520234949Sbaptsrcdir=$srcdir 5521234949SbaptINSTALL="$INSTALL" 5522234949SbaptEOF 5523234949Sbapt 5524234949Sbaptcat >>$CONFIG_STATUS <<\EOF 5525234949Sbapt# If no file are specified by the user, then we need to provide default 5526234949Sbapt# value. By we need to know if files were specified by the user. 5527234949Sbaptac_need_defaults=: 5528234949Sbaptwhile test $# != 0 5529234949Sbaptdo 5530234949Sbapt case $1 in 5531234949Sbapt --*=*) 5532234949Sbapt ac_option=`expr "x$1" : 'x\([^=]*\)='` 5533234949Sbapt ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 5534234949Sbapt shift 5535234949Sbapt set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 5536234949Sbapt shift 5537234949Sbapt ;; 5538234949Sbapt -*);; 5539234949Sbapt *) # This is not an option, so the user has probably given explicit 5540234949Sbapt # arguments. 5541234949Sbapt ac_need_defaults=false;; 5542234949Sbapt esac 5543234949Sbapt 5544234949Sbapt case $1 in 5545234949Sbapt # Handling of the options. 5546234949SbaptEOF 5547234949Sbaptcat >>$CONFIG_STATUS <<EOF 5548234949Sbapt -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 5549234949Sbapt echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 5550234949Sbapt exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 5551234949SbaptEOF 5552234949Sbaptcat >>$CONFIG_STATUS <<\EOF 5553234949Sbapt --version | --vers* | -V ) 5554234949Sbapt echo "$ac_cs_version"; exit 0 ;; 5555234949Sbapt --he | --h) 5556234949Sbapt # Conflict between --help and --header 5557272957Srodrigc { { echo "$as_me:5557: error: ambiguous option: $1 5558234949SbaptTry \`$0 --help' for more information." >&5 5559234949Sbaptecho "$as_me: error: ambiguous option: $1 5560234949SbaptTry \`$0 --help' for more information." >&2;} 5561234949Sbapt { (exit 1); exit 1; }; };; 5562234949Sbapt --help | --hel | -h ) 5563234949Sbapt echo "$ac_cs_usage"; exit 0 ;; 5564234949Sbapt --debug | --d* | -d ) 5565234949Sbapt debug=: ;; 5566234949Sbapt --file | --fil | --fi | --f ) 5567234949Sbapt shift 5568234949Sbapt CONFIG_FILES="$CONFIG_FILES $1" 5569234949Sbapt ac_need_defaults=false;; 5570234949Sbapt --header | --heade | --head | --hea ) 5571234949Sbapt shift 5572234949Sbapt CONFIG_HEADERS="$CONFIG_HEADERS $1" 5573234949Sbapt ac_need_defaults=false;; 5574234949Sbapt 5575234949Sbapt # This is an error. 5576272957Srodrigc -*) { { echo "$as_me:5576: error: unrecognized option: $1 5577234949SbaptTry \`$0 --help' for more information." >&5 5578234949Sbaptecho "$as_me: error: unrecognized option: $1 5579234949SbaptTry \`$0 --help' for more information." >&2;} 5580234949Sbapt { (exit 1); exit 1; }; } ;; 5581234949Sbapt 5582234949Sbapt *) ac_config_targets="$ac_config_targets $1" ;; 5583234949Sbapt 5584234949Sbapt esac 5585234949Sbapt shift 5586234949Sbaptdone 5587234949Sbapt 5588234949Sbaptexec 5>>config.log 5589234949Sbaptcat >&5 << _ACEOF 5590234949Sbapt 5591234949Sbapt## ----------------------- ## 5592234949Sbapt## Running config.status. ## 5593234949Sbapt## ----------------------- ## 5594234949Sbapt 5595251143SbaptThis file was extended by $as_me 2.52.20121002, executed with 5596234949Sbapt CONFIG_FILES = $CONFIG_FILES 5597234949Sbapt CONFIG_HEADERS = $CONFIG_HEADERS 5598234949Sbapt CONFIG_LINKS = $CONFIG_LINKS 5599234949Sbapt CONFIG_COMMANDS = $CONFIG_COMMANDS 5600234949Sbapt > $ac_cs_invocation 5601234949Sbapton `(hostname || uname -n) 2>/dev/null | sed 1q` 5602234949Sbapt 5603234949Sbapt_ACEOF 5604234949SbaptEOF 5605234949Sbapt 5606234949Sbaptcat >>$CONFIG_STATUS <<\EOF 5607234949Sbaptfor ac_config_target in $ac_config_targets 5608234949Sbaptdo 5609234949Sbapt case "$ac_config_target" in 5610234949Sbapt # Handling of arguments. 5611234949Sbapt "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;; 5612234949Sbapt "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;; 5613272957Srodrigc *) { { echo "$as_me:5613: error: invalid argument: $ac_config_target" >&5 5614234949Sbaptecho "$as_me: error: invalid argument: $ac_config_target" >&2;} 5615234949Sbapt { (exit 1); exit 1; }; };; 5616234949Sbapt esac 5617234949Sbaptdone 5618234949Sbapt 5619234949Sbapt# If the user did not use the arguments to specify the items to instantiate, 5620234949Sbapt# then the envvar interface is used. Set only those that are not. 5621234949Sbapt# We use the long form for the default assignment because of an extremely 5622234949Sbapt# bizarre bug on SunOS 4.1.3. 5623234949Sbaptif $ac_need_defaults; then 5624234949Sbapt test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 5625234949Sbapt test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 5626234949Sbaptfi 5627234949Sbapt 5628234949Sbapt# Create a temporary directory, and hook for its removal unless debugging. 5629234949Sbapt$debug || 5630234949Sbapt{ 5631234949Sbapt trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 5632234949Sbapt trap '{ (exit 1); exit 1; }' 1 2 13 15 5633234949Sbapt} 5634234949Sbapt 5635234949Sbapt# Create a (secure) tmp directory for tmp files. 5636234949Sbapt: ${TMPDIR=/tmp} 5637234949Sbapt{ 5638234949Sbapt tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 5639234949Sbapt test -n "$tmp" && test -d "$tmp" 5640234949Sbapt} || 5641234949Sbapt{ 5642234949Sbapt tmp=$TMPDIR/cs$$-$RANDOM 5643234949Sbapt (umask 077 && mkdir $tmp) 5644234949Sbapt} || 5645234949Sbapt{ 5646234949Sbapt echo "$me: cannot create a temporary directory in $TMPDIR" >&2 5647234949Sbapt { (exit 1); exit 1; } 5648234949Sbapt} 5649234949Sbapt 5650234949SbaptEOF 5651234949Sbapt 5652234949Sbaptcat >>$CONFIG_STATUS <<EOF 5653234949Sbapt 5654234949Sbapt# 5655234949Sbapt# CONFIG_FILES section. 5656234949Sbapt# 5657234949Sbapt 5658234949Sbapt# No need to generate the scripts if there are no CONFIG_FILES. 5659234949Sbapt# This happens for instance when ./config.status config.h 5660234949Sbaptif test -n "\$CONFIG_FILES"; then 5661234949Sbapt # Protect against being on the right side of a sed subst in config.status. 5662234949Sbapt sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 5663234949Sbapt s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 5664234949Sbapts,@SHELL@,$SHELL,;t t 5665234949Sbapts,@exec_prefix@,$exec_prefix,;t t 5666234949Sbapts,@prefix@,$prefix,;t t 5667234949Sbapts,@program_transform_name@,$program_transform_name,;t t 5668234949Sbapts,@bindir@,$bindir,;t t 5669234949Sbapts,@sbindir@,$sbindir,;t t 5670234949Sbapts,@libexecdir@,$libexecdir,;t t 5671251143Sbapts,@datarootdir@,$datarootdir,;t t 5672234949Sbapts,@datadir@,$datadir,;t t 5673234949Sbapts,@sysconfdir@,$sysconfdir,;t t 5674234949Sbapts,@sharedstatedir@,$sharedstatedir,;t t 5675234949Sbapts,@localstatedir@,$localstatedir,;t t 5676234949Sbapts,@libdir@,$libdir,;t t 5677234949Sbapts,@includedir@,$includedir,;t t 5678234949Sbapts,@oldincludedir@,$oldincludedir,;t t 5679234949Sbapts,@infodir@,$infodir,;t t 5680234949Sbapts,@mandir@,$mandir,;t t 5681234949Sbapts,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 5682234949Sbapts,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 5683234949Sbapts,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 5684234949Sbapts,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 5685234949Sbapts,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 5686234949Sbapts,@build_alias@,$build_alias,;t t 5687234949Sbapts,@host_alias@,$host_alias,;t t 5688234949Sbapts,@target_alias@,$target_alias,;t t 5689234949Sbapts,@ECHO_C@,$ECHO_C,;t t 5690234949Sbapts,@ECHO_N@,$ECHO_N,;t t 5691234949Sbapts,@ECHO_T@,$ECHO_T,;t t 5692234949Sbapts,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 5693234949Sbapts,@DEFS@,$DEFS,;t t 5694234949Sbapts,@LIBS@,$LIBS,;t t 5695234949Sbapts,@build@,$build,;t t 5696234949Sbapts,@build_cpu@,$build_cpu,;t t 5697234949Sbapts,@build_vendor@,$build_vendor,;t t 5698234949Sbapts,@build_os@,$build_os,;t t 5699234949Sbapts,@host@,$host,;t t 5700234949Sbapts,@host_cpu@,$host_cpu,;t t 5701234949Sbapts,@host_vendor@,$host_vendor,;t t 5702234949Sbapts,@host_os@,$host_os,;t t 5703234949Sbapts,@target@,$target,;t t 5704234949Sbapts,@target_cpu@,$target_cpu,;t t 5705234949Sbapts,@target_vendor@,$target_vendor,;t t 5706234949Sbapts,@target_os@,$target_os,;t t 5707234949Sbapts,@CC@,$CC,;t t 5708234949Sbapts,@CFLAGS@,$CFLAGS,;t t 5709234949Sbapts,@LDFLAGS@,$LDFLAGS,;t t 5710234949Sbapts,@CPPFLAGS@,$CPPFLAGS,;t t 5711234949Sbapts,@ac_ct_CC@,$ac_ct_CC,;t t 5712234949Sbapts,@EXEEXT@,$EXEEXT,;t t 5713234949Sbapts,@OBJEXT@,$OBJEXT,;t t 5714251143Sbapts,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t 5715234949Sbapts,@SET_MAKE@,$SET_MAKE,;t t 5716234949Sbapts,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 5717234949Sbapts,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 5718234949Sbapts,@INSTALL_DATA@,$INSTALL_DATA,;t t 5719234949Sbapts,@CTAGS@,$CTAGS,;t t 5720234949Sbapts,@ETAGS@,$ETAGS,;t t 5721234949Sbapts,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t 5722234949Sbapts,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t 5723268899Sbapts,@AWK@,$AWK,;t t 5724234949Sbapts,@LINT@,$LINT,;t t 5725234949Sbapts,@LINT_OPTS@,$LINT_OPTS,;t t 5726234949Sbapts,@CPP@,$CPP,;t t 5727268899Sbapts,@SKELETON@,$SKELETON,;t t 5728234949Sbapts,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t 5729234949Sbapts,@ECHO_LT@,$ECHO_LT,;t t 5730234949Sbapts,@ECHO_LD@,$ECHO_LD,;t t 5731234949Sbapts,@RULE_CC@,$RULE_CC,;t t 5732234949Sbapts,@SHOW_CC@,$SHOW_CC,;t t 5733234949Sbapts,@ECHO_CC@,$ECHO_CC,;t t 5734234949SbaptCEOF 5735234949Sbapt 5736234949SbaptEOF 5737234949Sbapt 5738234949Sbapt cat >>$CONFIG_STATUS <<\EOF 5739234949Sbapt # Split the substitutions into bite-sized pieces for seds with 5740234949Sbapt # small command number limits, like on Digital OSF/1 and HP-UX. 5741234949Sbapt ac_max_sed_lines=48 5742234949Sbapt ac_sed_frag=1 # Number of current file. 5743234949Sbapt ac_beg=1 # First line for current file. 5744234949Sbapt ac_end=$ac_max_sed_lines # Line after last line for current file. 5745234949Sbapt ac_more_lines=: 5746234949Sbapt ac_sed_cmds= 5747234949Sbapt while $ac_more_lines; do 5748234949Sbapt if test $ac_beg -gt 1; then 5749234949Sbapt sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 5750234949Sbapt else 5751234949Sbapt sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 5752234949Sbapt fi 5753234949Sbapt if test ! -s $tmp/subs.frag; then 5754234949Sbapt ac_more_lines=false 5755234949Sbapt else 5756234949Sbapt # The purpose of the label and of the branching condition is to 5757234949Sbapt # speed up the sed processing (if there are no `@' at all, there 5758234949Sbapt # is no need to browse any of the substitutions). 5759234949Sbapt # These are the two extra sed commands mentioned above. 5760234949Sbapt (echo ':t 5761234949Sbapt /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 5762234949Sbapt if test -z "$ac_sed_cmds"; then 5763234949Sbapt ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 5764234949Sbapt else 5765234949Sbapt ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 5766234949Sbapt fi 5767234949Sbapt ac_sed_frag=`expr $ac_sed_frag + 1` 5768234949Sbapt ac_beg=$ac_end 5769234949Sbapt ac_end=`expr $ac_end + $ac_max_sed_lines` 5770234949Sbapt fi 5771234949Sbapt done 5772234949Sbapt if test -z "$ac_sed_cmds"; then 5773234949Sbapt ac_sed_cmds=cat 5774234949Sbapt fi 5775234949Sbaptfi # test -n "$CONFIG_FILES" 5776234949Sbapt 5777234949SbaptEOF 5778234949Sbaptcat >>$CONFIG_STATUS <<\EOF 5779234949Sbaptfor ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 5780234949Sbapt # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 5781234949Sbapt case $ac_file in 5782234949Sbapt - | *:- | *:-:* ) # input from stdin 5783234949Sbapt cat >$tmp/stdin 5784234949Sbapt ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5785234949Sbapt ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5786234949Sbapt *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5787234949Sbapt ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5788234949Sbapt * ) ac_file_in=$ac_file.in ;; 5789234949Sbapt esac 5790234949Sbapt 5791234949Sbapt # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 5792234949Sbapt ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5793234949Sbapt X"$ac_file" : 'X\(//\)[^/]' \| \ 5794234949Sbapt X"$ac_file" : 'X\(//\)$' \| \ 5795234949Sbapt X"$ac_file" : 'X\(/\)' \| \ 5796234949Sbapt . : '\(.\)' 2>/dev/null || 5797234949Sbaptecho X"$ac_file" | 5798234949Sbapt sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5799234949Sbapt /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5800234949Sbapt /^X\(\/\/\)$/{ s//\1/; q; } 5801234949Sbapt /^X\(\/\).*/{ s//\1/; q; } 5802234949Sbapt s/.*/./; q'` 5803234949Sbapt if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 5804234949Sbapt { case "$ac_dir" in 5805234949Sbapt [\\/]* | ?:[\\/]* ) as_incr_dir=;; 5806234949Sbapt *) as_incr_dir=.;; 5807234949Sbaptesac 5808234949Sbaptas_dummy="$ac_dir" 5809234949Sbaptfor as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 5810234949Sbapt case $as_mkdir_dir in 5811234949Sbapt # Skip DOS drivespec 5812234949Sbapt ?:) as_incr_dir=$as_mkdir_dir ;; 5813234949Sbapt *) 5814234949Sbapt as_incr_dir=$as_incr_dir/$as_mkdir_dir 5815234949Sbapt test -d "$as_incr_dir" || mkdir "$as_incr_dir" 5816234949Sbapt ;; 5817234949Sbapt esac 5818234949Sbaptdone; } 5819234949Sbapt 5820234949Sbapt ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" 5821234949Sbapt # A "../" for each directory in $ac_dir_suffix. 5822234949Sbapt ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 5823234949Sbapt else 5824234949Sbapt ac_dir_suffix= ac_dots= 5825234949Sbapt fi 5826234949Sbapt 5827234949Sbapt case $srcdir in 5828234949Sbapt .) ac_srcdir=. 5829234949Sbapt if test -z "$ac_dots"; then 5830234949Sbapt ac_top_srcdir=. 5831234949Sbapt else 5832234949Sbapt ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` 5833234949Sbapt fi ;; 5834234949Sbapt [\\/]* | ?:[\\/]* ) 5835234949Sbapt ac_srcdir=$srcdir$ac_dir_suffix; 5836234949Sbapt ac_top_srcdir=$srcdir ;; 5837234949Sbapt *) # Relative path. 5838234949Sbapt ac_srcdir=$ac_dots$srcdir$ac_dir_suffix 5839234949Sbapt ac_top_srcdir=$ac_dots$srcdir ;; 5840234949Sbapt esac 5841234949Sbapt 5842234949Sbapt case $INSTALL in 5843234949Sbapt [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 5844234949Sbapt *) ac_INSTALL=$ac_dots$INSTALL ;; 5845234949Sbapt esac 5846234949Sbapt 5847234949Sbapt if test x"$ac_file" != x-; then 5848272957Srodrigc { echo "$as_me:5848: creating $ac_file" >&5 5849234949Sbaptecho "$as_me: creating $ac_file" >&6;} 5850234949Sbapt rm -f "$ac_file" 5851234949Sbapt fi 5852234949Sbapt # Let's still pretend it is `configure' which instantiates (i.e., don't 5853234949Sbapt # use $as_me), people would be surprised to read: 5854234949Sbapt # /* config.h. Generated automatically by config.status. */ 5855234949Sbapt configure_input="Generated automatically from `echo $ac_file_in | 5856234949Sbapt sed 's,.*/,,'` by configure." 5857234949Sbapt 5858234949Sbapt # First look for the input files in the build tree, otherwise in the 5859234949Sbapt # src tree. 5860234949Sbapt ac_file_inputs=`IFS=: 5861234949Sbapt for f in $ac_file_in; do 5862234949Sbapt case $f in 5863234949Sbapt -) echo $tmp/stdin ;; 5864234949Sbapt [\\/$]*) 5865234949Sbapt # Absolute (can't be DOS-style, as IFS=:) 5866272957Srodrigc test -f "$f" || { { echo "$as_me:5866: error: cannot find input file: $f" >&5 5867234949Sbaptecho "$as_me: error: cannot find input file: $f" >&2;} 5868234949Sbapt { (exit 1); exit 1; }; } 5869234949Sbapt echo $f;; 5870234949Sbapt *) # Relative 5871234949Sbapt if test -f "$f"; then 5872234949Sbapt # Build tree 5873234949Sbapt echo $f 5874234949Sbapt elif test -f "$srcdir/$f"; then 5875234949Sbapt # Source tree 5876234949Sbapt echo $srcdir/$f 5877234949Sbapt else 5878234949Sbapt # /dev/null tree 5879272957Srodrigc { { echo "$as_me:5879: error: cannot find input file: $f" >&5 5880234949Sbaptecho "$as_me: error: cannot find input file: $f" >&2;} 5881234949Sbapt { (exit 1); exit 1; }; } 5882234949Sbapt fi;; 5883234949Sbapt esac 5884234949Sbapt done` || { (exit 1); exit 1; } 5885234949SbaptEOF 5886251143Sbaptcat >>$CONFIG_STATUS <<\EOF 5887251143Sbapt ac_warn_datarootdir=no 5888251143Sbapt if test x"$ac_file" != x-; then 5889251143Sbapt for ac_item in $ac_file_inputs 5890251143Sbapt do 5891251143Sbapt ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item` 5892251143Sbapt if test -n "$ac_seen"; then 5893251143Sbapt ac_used=`grep '@datarootdir@' $ac_item` 5894251143Sbapt if test -z "$ac_used"; then 5895272957Srodrigc { echo "$as_me:5895: WARNING: datarootdir was used implicitly but not set: 5896251143Sbapt$ac_seen" >&5 5897251143Sbaptecho "$as_me: WARNING: datarootdir was used implicitly but not set: 5898251143Sbapt$ac_seen" >&2;} 5899251143Sbapt ac_warn_datarootdir=yes 5900251143Sbapt fi 5901251143Sbapt fi 5902251143Sbapt ac_seen=`grep '${datarootdir}' $ac_item` 5903251143Sbapt if test -n "$ac_seen"; then 5904272957Srodrigc { echo "$as_me:5904: WARNING: datarootdir was used explicitly but not set: 5905251143Sbapt$ac_seen" >&5 5906251143Sbaptecho "$as_me: WARNING: datarootdir was used explicitly but not set: 5907251143Sbapt$ac_seen" >&2;} 5908251143Sbapt ac_warn_datarootdir=yes 5909251143Sbapt fi 5910251143Sbapt done 5911251143Sbapt fi 5912251143Sbapt 5913251143Sbaptif test "x$ac_warn_datarootdir" = xyes; then 5914251143Sbapt ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'" 5915251143Sbaptfi 5916251143Sbapt 5917251143SbaptEOF 5918234949Sbaptcat >>$CONFIG_STATUS <<EOF 5919234949Sbapt sed "$ac_vpsub 5920234949Sbapt$extrasub 5921234949SbaptEOF 5922234949Sbaptcat >>$CONFIG_STATUS <<\EOF 5923234949Sbapt:t 5924234949Sbapt/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 5925234949Sbapts,@configure_input@,$configure_input,;t t 5926234949Sbapts,@srcdir@,$ac_srcdir,;t t 5927234949Sbapts,@top_srcdir@,$ac_top_srcdir,;t t 5928234949Sbapts,@INSTALL@,$ac_INSTALL,;t t 5929234949Sbapt" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 5930234949Sbapt rm -f $tmp/stdin 5931234949Sbapt if test x"$ac_file" != x-; then 5932251143Sbapt cp $tmp/out $ac_file 5933251143Sbapt 5934251143Sbapt for ac_name in prefix exec_prefix datarootdir 5935251143Sbapt do 5936251143Sbapt ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file` 5937251143Sbapt if test -n "$ac_seen"; then 5938251143Sbapt ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file` 5939251143Sbapt if test -z "$ac_init"; then 5940251143Sbapt ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'` 5941272957Srodrigc { echo "$as_me:5941: WARNING: Variable $ac_name is used but was not set: 5942251143Sbapt$ac_seen" >&5 5943251143Sbaptecho "$as_me: WARNING: Variable $ac_name is used but was not set: 5944251143Sbapt$ac_seen" >&2;} 5945251143Sbapt fi 5946251143Sbapt fi 5947251143Sbapt done 5948251143Sbapt egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out 5949251143Sbapt egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out 5950251143Sbapt if test -s $tmp/out; then 5951251143Sbapt ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out` 5952272957Srodrigc { echo "$as_me:5952: WARNING: Some variables may not be substituted: 5953251143Sbapt$ac_seen" >&5 5954251143Sbaptecho "$as_me: WARNING: Some variables may not be substituted: 5955251143Sbapt$ac_seen" >&2;} 5956251143Sbapt fi 5957234949Sbapt else 5958234949Sbapt cat $tmp/out 5959234949Sbapt fi 5960251143Sbapt rm -f $tmp/out 5961234949Sbapt 5962234949Sbaptdone 5963234949SbaptEOF 5964234949Sbaptcat >>$CONFIG_STATUS <<\EOF 5965234949Sbapt 5966234949Sbapt# 5967234949Sbapt# CONFIG_HEADER section. 5968234949Sbapt# 5969234949Sbapt 5970234949Sbapt# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 5971234949Sbapt# NAME is the cpp macro being defined and VALUE is the value it is being given. 5972234949Sbapt# 5973234949Sbapt# ac_d sets the value in "#define NAME VALUE" lines. 5974234949Sbaptac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 5975234949Sbaptac_dB='[ ].*$,\1#\2' 5976234949Sbaptac_dC=' ' 5977234949Sbaptac_dD=',;t' 5978234949Sbapt# ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 5979234949Sbaptac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 5980234949Sbaptac_iB='\([ ]\),\1#\2define\3' 5981234949Sbaptac_iC=' ' 5982234949Sbaptac_iD='\4,;t' 5983234949Sbapt# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 5984234949Sbaptac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 5985234949Sbaptac_uB='$,\1#\2define\3' 5986234949Sbaptac_uC=' ' 5987234949Sbaptac_uD=',;t' 5988234949Sbapt 5989234949Sbaptfor ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 5990234949Sbapt # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 5991234949Sbapt case $ac_file in 5992234949Sbapt - | *:- | *:-:* ) # input from stdin 5993234949Sbapt cat >$tmp/stdin 5994234949Sbapt ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5995234949Sbapt ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5996234949Sbapt *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5997234949Sbapt ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5998234949Sbapt * ) ac_file_in=$ac_file.in ;; 5999234949Sbapt esac 6000234949Sbapt 6001272957Srodrigc test x"$ac_file" != x- && { echo "$as_me:6001: creating $ac_file" >&5 6002234949Sbaptecho "$as_me: creating $ac_file" >&6;} 6003234949Sbapt 6004234949Sbapt # First look for the input files in the build tree, otherwise in the 6005234949Sbapt # src tree. 6006234949Sbapt ac_file_inputs=`IFS=: 6007234949Sbapt for f in $ac_file_in; do 6008234949Sbapt case $f in 6009234949Sbapt -) echo $tmp/stdin ;; 6010234949Sbapt [\\/$]*) 6011234949Sbapt # Absolute (can't be DOS-style, as IFS=:) 6012272957Srodrigc test -f "$f" || { { echo "$as_me:6012: error: cannot find input file: $f" >&5 6013234949Sbaptecho "$as_me: error: cannot find input file: $f" >&2;} 6014234949Sbapt { (exit 1); exit 1; }; } 6015234949Sbapt echo $f;; 6016234949Sbapt *) # Relative 6017234949Sbapt if test -f "$f"; then 6018234949Sbapt # Build tree 6019234949Sbapt echo $f 6020234949Sbapt elif test -f "$srcdir/$f"; then 6021234949Sbapt # Source tree 6022234949Sbapt echo $srcdir/$f 6023234949Sbapt else 6024234949Sbapt # /dev/null tree 6025272957Srodrigc { { echo "$as_me:6025: error: cannot find input file: $f" >&5 6026234949Sbaptecho "$as_me: error: cannot find input file: $f" >&2;} 6027234949Sbapt { (exit 1); exit 1; }; } 6028234949Sbapt fi;; 6029234949Sbapt esac 6030234949Sbapt done` || { (exit 1); exit 1; } 6031234949Sbapt # Remove the trailing spaces. 6032234949Sbapt sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 6033234949Sbapt 6034234949SbaptEOF 6035234949Sbapt 6036251143Sbapt# Transform confdefs.h into two sed scripts, `conftest.defines' and 6037251143Sbapt# `conftest.undefs', that substitutes the proper values into 6038251143Sbapt# config.h.in to produce config.h. The first handles `#define' 6039251143Sbapt# templates, and the second `#undef' templates. 6040251143Sbapt# And first: Protect against being on the right side of a sed subst in 6041251143Sbapt# config.status. Protect against being in an unquoted here document 6042251143Sbapt# in config.status. 6043251143Sbaptrm -f conftest.defines conftest.undefs 6044251143Sbapt# Using a here document instead of a string reduces the quoting nightmare. 6045251143Sbapt# Putting comments in sed scripts is not portable. 6046251143Sbapt# 6047251143Sbapt# `end' is used to avoid that the second main sed command (meant for 6048251143Sbapt# 0-ary CPP macros) applies to n-ary macro definitions. 6049251143Sbapt# See the Autoconf documentation for `clear'. 6050251143Sbaptcat >confdef2sed.sed <<\EOF 6051251143Sbapts/[\\&,]/\\&/g 6052251143Sbapts,[\\$`],\\&,g 6053251143Sbaptt clear 6054251143Sbapt: clear 6055251143Sbapts,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp 6056251143Sbaptt end 6057251143Sbapts,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 6058251143Sbapt: end 6059251143SbaptEOF 6060251143Sbapt# If some macros were called several times there might be several times 6061251143Sbapt# the same #defines, which is useless. Nevertheless, we may not want to 6062251143Sbapt# sort them, since we want the *last* AC-DEFINE to be honored. 6063251143Sbaptuniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 6064251143Sbaptsed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 6065251143Sbaptsed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs 6066251143Sbaptrm -f confdef2sed.sed 6067234949Sbapt 6068251143Sbapt# This sed command replaces #undef with comments. This is necessary, for 6069251143Sbapt# example, in the case of _POSIX_SOURCE, which is predefined and required 6070251143Sbapt# on some systems where configure will not decide to define it. 6071251143Sbaptcat >>conftest.undefs <<\EOF 6072251143Sbapts,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 6073251143SbaptEOF 6074234949Sbapt 6075251143Sbapt# Break up conftest.defines because some shells have a limit on the size 6076251143Sbapt# of here documents, and old seds have small limits too (100 cmds). 6077251143Sbaptecho ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 6078251143Sbaptecho ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 6079251143Sbaptecho ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 6080251143Sbaptecho ' :' >>$CONFIG_STATUS 6081234949Sbaptrm -f conftest.tail 6082251143Sbaptwhile grep . conftest.defines >/dev/null 6083234949Sbaptdo 6084251143Sbapt # Write a limited-size here document to $tmp/defines.sed. 6085251143Sbapt echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 6086251143Sbapt # Speed up: don't consider the non `#define' lines. 6087251143Sbapt echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 6088251143Sbapt # Work around the forget-to-reset-the-flag bug. 6089251143Sbapt echo 't clr' >>$CONFIG_STATUS 6090251143Sbapt echo ': clr' >>$CONFIG_STATUS 6091251143Sbapt sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 6092251143Sbapt echo 'CEOF 6093251143Sbapt sed -f $tmp/defines.sed $tmp/in >$tmp/out 6094251143Sbapt rm -f $tmp/in 6095251143Sbapt mv $tmp/out $tmp/in 6096251143Sbapt' >>$CONFIG_STATUS 6097251143Sbapt sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 6098251143Sbapt rm -f conftest.defines 6099251143Sbapt mv conftest.tail conftest.defines 6100234949Sbaptdone 6101251143Sbaptrm -f conftest.defines 6102251143Sbaptecho ' fi # egrep' >>$CONFIG_STATUS 6103251143Sbaptecho >>$CONFIG_STATUS 6104234949Sbapt 6105251143Sbapt# Break up conftest.undefs because some shells have a limit on the size 6106251143Sbapt# of here documents, and old seds have small limits too (100 cmds). 6107251143Sbaptecho ' # Handle all the #undef templates' >>$CONFIG_STATUS 6108251143Sbaptrm -f conftest.tail 6109251143Sbaptwhile grep . conftest.undefs >/dev/null 6110251143Sbaptdo 6111251143Sbapt # Write a limited-size here document to $tmp/undefs.sed. 6112251143Sbapt echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 6113251143Sbapt # Speed up: don't consider the non `#undef' 6114251143Sbapt echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 6115251143Sbapt # Work around the forget-to-reset-the-flag bug. 6116251143Sbapt echo 't clr' >>$CONFIG_STATUS 6117251143Sbapt echo ': clr' >>$CONFIG_STATUS 6118251143Sbapt sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 6119251143Sbapt echo 'CEOF 6120251143Sbapt sed -f $tmp/undefs.sed $tmp/in >$tmp/out 6121251143Sbapt rm -f $tmp/in 6122251143Sbapt mv $tmp/out $tmp/in 6123251143Sbapt' >>$CONFIG_STATUS 6124251143Sbapt sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 6125251143Sbapt rm -f conftest.undefs 6126251143Sbapt mv conftest.tail conftest.undefs 6127251143Sbaptdone 6128251143Sbaptrm -f conftest.undefs 6129234949Sbapt 6130234949Sbaptcat >>$CONFIG_STATUS <<\EOF 6131234949Sbapt # Let's still pretend it is `configure' which instantiates (i.e., don't 6132234949Sbapt # use $as_me), people would be surprised to read: 6133234949Sbapt # /* config.h. Generated automatically by config.status. */ 6134234949Sbapt if test x"$ac_file" = x-; then 6135234949Sbapt echo "/* Generated automatically by configure. */" >$tmp/config.h 6136234949Sbapt else 6137234949Sbapt echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h 6138234949Sbapt fi 6139234949Sbapt cat $tmp/in >>$tmp/config.h 6140234949Sbapt rm -f $tmp/in 6141234949Sbapt if test x"$ac_file" != x-; then 6142234949Sbapt if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 6143272957Srodrigc { echo "$as_me:6143: $ac_file is unchanged" >&5 6144234949Sbaptecho "$as_me: $ac_file is unchanged" >&6;} 6145234949Sbapt else 6146234949Sbapt ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6147234949Sbapt X"$ac_file" : 'X\(//\)[^/]' \| \ 6148234949Sbapt X"$ac_file" : 'X\(//\)$' \| \ 6149234949Sbapt X"$ac_file" : 'X\(/\)' \| \ 6150234949Sbapt . : '\(.\)' 2>/dev/null || 6151234949Sbaptecho X"$ac_file" | 6152234949Sbapt sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6153234949Sbapt /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6154234949Sbapt /^X\(\/\/\)$/{ s//\1/; q; } 6155234949Sbapt /^X\(\/\).*/{ s//\1/; q; } 6156234949Sbapt s/.*/./; q'` 6157234949Sbapt if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 6158234949Sbapt { case "$ac_dir" in 6159234949Sbapt [\\/]* | ?:[\\/]* ) as_incr_dir=;; 6160234949Sbapt *) as_incr_dir=.;; 6161234949Sbaptesac 6162234949Sbaptas_dummy="$ac_dir" 6163234949Sbaptfor as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 6164234949Sbapt case $as_mkdir_dir in 6165234949Sbapt # Skip DOS drivespec 6166234949Sbapt ?:) as_incr_dir=$as_mkdir_dir ;; 6167234949Sbapt *) 6168234949Sbapt as_incr_dir=$as_incr_dir/$as_mkdir_dir 6169234949Sbapt test -d "$as_incr_dir" || mkdir "$as_incr_dir" 6170234949Sbapt ;; 6171234949Sbapt esac 6172234949Sbaptdone; } 6173234949Sbapt 6174234949Sbapt fi 6175234949Sbapt rm -f $ac_file 6176234949Sbapt mv $tmp/config.h $ac_file 6177234949Sbapt fi 6178234949Sbapt else 6179234949Sbapt cat $tmp/config.h 6180234949Sbapt rm -f $tmp/config.h 6181234949Sbapt fi 6182234949Sbaptdone 6183234949SbaptEOF 6184234949Sbapt 6185234949Sbaptcat >>$CONFIG_STATUS <<\EOF 6186234949Sbapt 6187234949Sbapt{ (exit 0); exit 0; } 6188234949SbaptEOF 6189234949Sbaptchmod +x $CONFIG_STATUS 6190234949Sbaptac_clean_files=$ac_clean_files_save 6191234949Sbapt 6192234949Sbapt# configure is writing to config.log, and then calls config.status. 6193234949Sbapt# config.status does its own redirection, appending to config.log. 6194234949Sbapt# Unfortunately, on DOS this fails, as config.log is still kept open 6195234949Sbapt# by configure, so config.status won't be able to write to it; its 6196234949Sbapt# output is simply discarded. So we exec the FD to /dev/null, 6197234949Sbapt# effectively closing config.log, so it can be properly (re)opened and 6198234949Sbapt# appended to by config.status. When coming back to configure, we 6199234949Sbapt# need to make the FD available again. 6200234949Sbaptif test "$no_create" != yes; then 6201234949Sbapt ac_cs_success=: 6202234949Sbapt exec 5>/dev/null 6203234949Sbapt $SHELL $CONFIG_STATUS || ac_cs_success=false 6204234949Sbapt exec 5>>config.log 6205234949Sbapt # Use ||, not &&, to avoid exiting from the if with $? = 1, which 6206234949Sbapt # would make configure fail if this is the last instruction. 6207234949Sbapt $ac_cs_success || { (exit 1); exit 1; } 6208234949Sbaptfi 6209234949Sbapt 6210268899Sbapttest -z "$cf_make_docs" && cf_make_docs=0 6211268899Sbapt 6212268899Sbaptcf_output=makefile 6213268899Sbapttest -f "$cf_output" || cf_output=Makefile 6214268899Sbapt 6215268899Sbaptif test "$cf_make_docs" = 0 6216268899Sbaptthen 6217268899Sbaptcat >>$cf_output <<"CF_EOF" 6218268899Sbapt################################################################################ 6219268899Sbapt.SUFFIXES : .html .1 .man .ps .pdf .txt 6220268899Sbapt 6221268899Sbapt.1.html : 6222268899Sbapt GROFF_NO_SGR=stupid $(SHELL) -c "tbl $*.1 | groff -P -o0 -Iyacc,1_ -Thtml -man" >$@ 6223268899Sbapt 6224268899Sbapt.1.ps : 6225268899Sbapt $(SHELL) -c "tbl $*.1 | groff -man" >$@ 6226268899Sbapt 6227268899Sbapt.1.txt : 6228268899Sbapt GROFF_NO_SGR=stupid $(SHELL) -c "tbl $*.1 | nroff -Tascii -man | col -bx" >$@ 6229268899Sbapt 6230268899Sbapt.ps.pdf : 6231268899Sbapt ps2pdf $*.ps 6232268899Sbapt 6233268899SbaptCF_EOF 6234268899Sbapt cf_make_docs=1 6235268899Sbaptfi 6236268899Sbapt 6237268899Sbaptfor cf_name in yacc 6238268899Sbaptdo 6239268899Sbaptcat >>$cf_output <<CF_EOF 6240268899Sbapt################################################################################ 6241268899Sbaptdocs-$cf_name \\ 6242268899Sbaptdocs :: $cf_name.html \\ 6243268899Sbapt $cf_name.pdf \\ 6244268899Sbapt $cf_name.ps \\ 6245268899Sbapt $cf_name.txt 6246268899Sbapt 6247268899Sbaptclean \\ 6248268899Sbaptdocs-clean :: 6249268899Sbapt rm -f $cf_name.html $cf_name.pdf $cf_name.ps $cf_name.txt 6250268899Sbapt 6251268899Sbapt$cf_name.html : $cf_name.\1 6252268899Sbapt$cf_name.pdf : $cf_name.ps 6253268899Sbapt$cf_name.ps : $cf_name.\1 6254268899Sbapt$cf_name.txt : $cf_name.\1 6255268899SbaptCF_EOF 6256268899Sbaptdone 6257268899Sbapt 6258