xref: /minix3/external/bsd/byacc/dist/configure (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
14a17663cSThomas Veerman#! /bin/sh
2*0a6a1f1dSLionel Sambuc# From configure.in Revision: 1.20 .
34a17663cSThomas Veerman# Guess values for system-dependent variables and create Makefiles.
484d9c625SLionel Sambuc# Generated by Autoconf 2.52.20121002.
54a17663cSThomas Veerman#
64a17663cSThomas Veerman# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
74a17663cSThomas Veerman# Free Software Foundation, Inc.
84a17663cSThomas Veerman# This configure script is free software; the Free Software Foundation
94a17663cSThomas Veerman# gives unlimited permission to copy, distribute and modify it.
104a17663cSThomas Veerman
114a17663cSThomas Veerman# Avoid depending upon Character Ranges.
124a17663cSThomas Veermanas_cr_letters='abcdefghijklmnopqrstuvwxyz'
134a17663cSThomas Veermanas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
144a17663cSThomas Veermanas_cr_Letters=$as_cr_letters$as_cr_LETTERS
154a17663cSThomas Veermanas_cr_digits='0123456789'
164a17663cSThomas Veermanas_cr_alnum=$as_cr_Letters$as_cr_digits
174a17663cSThomas Veerman
184a17663cSThomas Veerman# Sed expression to map a string onto a valid variable name.
194a17663cSThomas Veermanas_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
204a17663cSThomas Veerman
214a17663cSThomas Veerman# Sed expression to map a string onto a valid CPP name.
224a17663cSThomas Veermanas_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
234a17663cSThomas Veerman
244a17663cSThomas Veerman# Be Bourne compatible
254a17663cSThomas Veermanif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264a17663cSThomas Veerman  emulate sh
274a17663cSThomas Veerman  NULLCMD=:
284a17663cSThomas Veermanelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
294a17663cSThomas Veerman  set -o posix
304a17663cSThomas Veermanfi
314a17663cSThomas Veerman
324a17663cSThomas Veerman# Name of the executable.
334a17663cSThomas Veermanas_me=`echo "$0" |sed 's,.*[\\/],,'`
344a17663cSThomas Veerman
354a17663cSThomas Veermanif expr a : '\(a\)' >/dev/null 2>&1; then
364a17663cSThomas Veerman  as_expr=expr
374a17663cSThomas Veermanelse
384a17663cSThomas Veerman  as_expr=false
394a17663cSThomas Veermanfi
404a17663cSThomas Veerman
414a17663cSThomas Veermanrm -f conf$$ conf$$.exe conf$$.file
424a17663cSThomas Veermanecho >conf$$.file
434a17663cSThomas Veermanif ln -s conf$$.file conf$$ 2>/dev/null; then
444a17663cSThomas Veerman  # We could just check for DJGPP; but this test a) works b) is more generic
454a17663cSThomas Veerman  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
464a17663cSThomas Veerman  if test -f conf$$.exe; then
474a17663cSThomas Veerman    # Don't use ln at all; we don't have any links
484a17663cSThomas Veerman    as_ln_s='cp -p'
494a17663cSThomas Veerman  else
504a17663cSThomas Veerman    as_ln_s='ln -s'
514a17663cSThomas Veerman  fi
524a17663cSThomas Veermanelif ln conf$$.file conf$$ 2>/dev/null; then
534a17663cSThomas Veerman  as_ln_s=ln
544a17663cSThomas Veermanelse
554a17663cSThomas Veerman  as_ln_s='cp -p'
564a17663cSThomas Veermanfi
574a17663cSThomas Veermanrm -f conf$$ conf$$.exe conf$$.file
584a17663cSThomas Veerman
594a17663cSThomas Veermanas_executable_p="test -f"
604a17663cSThomas Veerman
614a17663cSThomas Veerman# Support unset when possible.
624a17663cSThomas Veermanif (FOO=FOO; unset FOO) >/dev/null 2>&1; then
634a17663cSThomas Veerman  as_unset=unset
644a17663cSThomas Veermanelse
654a17663cSThomas Veerman  as_unset=false
664a17663cSThomas Veermanfi
674a17663cSThomas Veerman
684a17663cSThomas Veerman# NLS nuisances.
694a17663cSThomas Veerman$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
704a17663cSThomas Veerman$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
714a17663cSThomas Veerman$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
724a17663cSThomas Veerman$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
734a17663cSThomas Veerman$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
744a17663cSThomas Veerman$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
754a17663cSThomas Veerman$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
764a17663cSThomas Veerman$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
774a17663cSThomas Veerman
784a17663cSThomas Veerman# IFS
794a17663cSThomas Veerman# We need space, tab and new line, in precisely that order.
804a17663cSThomas Veermanas_nl='
814a17663cSThomas Veerman'
824a17663cSThomas VeermanIFS=" 	$as_nl"
834a17663cSThomas Veerman
844a17663cSThomas Veerman# CDPATH.
854a17663cSThomas Veerman$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
864a17663cSThomas Veerman
874a17663cSThomas Veerman# Name of the host.
884a17663cSThomas Veerman# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
894a17663cSThomas Veerman# so uname gets run too.
904a17663cSThomas Veermanac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
914a17663cSThomas Veerman
924a17663cSThomas Veermanexec 6>&1
934a17663cSThomas Veerman
944a17663cSThomas Veerman#
954a17663cSThomas Veerman# Initializations.
964a17663cSThomas Veerman#
974a17663cSThomas Veermanac_default_prefix=/usr/local
984a17663cSThomas Veermancross_compiling=no
994a17663cSThomas Veermansubdirs=
1004a17663cSThomas VeermanMFLAGS= MAKEFLAGS=
1014a17663cSThomas VeermanSHELL=${CONFIG_SHELL-/bin/sh}
1024a17663cSThomas Veerman
1034a17663cSThomas Veerman# Maximum number of lines to put in a shell here document.
1044a17663cSThomas Veerman# This variable seems obsolete.  It should probably be removed, and
1054a17663cSThomas Veerman# only ac_max_sed_lines should be used.
1064a17663cSThomas Veerman: ${ac_max_here_lines=38}
1074a17663cSThomas Veerman
1084a17663cSThomas Veermanac_unique_file="main.c"
109*0a6a1f1dSLionel Sambuc# Factoring default headers for most tests.
110*0a6a1f1dSLionel Sambucac_includes_default="\
111*0a6a1f1dSLionel Sambuc#include <stdio.h>
112*0a6a1f1dSLionel Sambuc#if HAVE_SYS_TYPES_H
113*0a6a1f1dSLionel Sambuc# include <sys/types.h>
114*0a6a1f1dSLionel Sambuc#endif
115*0a6a1f1dSLionel Sambuc#if HAVE_SYS_STAT_H
116*0a6a1f1dSLionel Sambuc# include <sys/stat.h>
117*0a6a1f1dSLionel Sambuc#endif
118*0a6a1f1dSLionel Sambuc#if STDC_HEADERS
119*0a6a1f1dSLionel Sambuc# include <stdlib.h>
120*0a6a1f1dSLionel Sambuc# include <stddef.h>
121*0a6a1f1dSLionel Sambuc#else
122*0a6a1f1dSLionel Sambuc# if HAVE_STDLIB_H
123*0a6a1f1dSLionel Sambuc#  include <stdlib.h>
124*0a6a1f1dSLionel Sambuc# endif
125*0a6a1f1dSLionel Sambuc#endif
126*0a6a1f1dSLionel Sambuc#if HAVE_STRING_H
127*0a6a1f1dSLionel Sambuc# if !STDC_HEADERS && HAVE_MEMORY_H
128*0a6a1f1dSLionel Sambuc#  include <memory.h>
129*0a6a1f1dSLionel Sambuc# endif
130*0a6a1f1dSLionel Sambuc# include <string.h>
131*0a6a1f1dSLionel Sambuc#endif
132*0a6a1f1dSLionel Sambuc#if HAVE_STRINGS_H
133*0a6a1f1dSLionel Sambuc# include <strings.h>
134*0a6a1f1dSLionel Sambuc#endif
135*0a6a1f1dSLionel Sambuc#if HAVE_INTTYPES_H
136*0a6a1f1dSLionel Sambuc# include <inttypes.h>
137*0a6a1f1dSLionel Sambuc#else
138*0a6a1f1dSLionel Sambuc# if HAVE_STDINT_H
139*0a6a1f1dSLionel Sambuc#  include <stdint.h>
140*0a6a1f1dSLionel Sambuc# endif
141*0a6a1f1dSLionel Sambuc#endif
142*0a6a1f1dSLionel Sambuc#if HAVE_UNISTD_H
143*0a6a1f1dSLionel Sambuc# include <unistd.h>
144*0a6a1f1dSLionel Sambuc#endif"
1454a17663cSThomas Veerman
1464a17663cSThomas Veerman# Initialize some variables set by options.
1474a17663cSThomas Veermanac_init_help=
1484a17663cSThomas Veermanac_init_version=false
1494a17663cSThomas Veerman# The variables have the same names as the options, with
1504a17663cSThomas Veerman# dashes changed to underlines.
1514a17663cSThomas Veermancache_file=/dev/null
1524a17663cSThomas Veermanexec_prefix=NONE
1534a17663cSThomas Veermanno_create=
1544a17663cSThomas Veermanno_recursion=
1554a17663cSThomas Veermanprefix=NONE
1564a17663cSThomas Veermanprogram_prefix=NONE
1574a17663cSThomas Veermanprogram_suffix=NONE
1584a17663cSThomas Veermanprogram_transform_name=s,x,x,
1594a17663cSThomas Veermansilent=
1604a17663cSThomas Veermansite=
1614a17663cSThomas Veermansrcdir=
1624a17663cSThomas Veermanverbose=
1634a17663cSThomas Veermanx_includes=NONE
1644a17663cSThomas Veermanx_libraries=NONE
1654a17663cSThomas Veerman
1664a17663cSThomas Veerman# Installation directory options.
1674a17663cSThomas Veerman# These are left unexpanded so users can "make install exec_prefix=/foo"
1684a17663cSThomas Veerman# and all the variables that are supposed to be based on exec_prefix
1694a17663cSThomas Veerman# by default will actually change.
1704a17663cSThomas Veerman# Use braces instead of parens because sh, perl, etc. also accept them.
1714a17663cSThomas Veermanbindir='${exec_prefix}/bin'
1724a17663cSThomas Veermansbindir='${exec_prefix}/sbin'
1734a17663cSThomas Veermanlibexecdir='${exec_prefix}/libexec'
17484d9c625SLionel Sambucdatarootdir='${prefix}/share'
17584d9c625SLionel Sambucdatadir='${datarootdir}'
1764a17663cSThomas Veermansysconfdir='${prefix}/etc'
1774a17663cSThomas Veermansharedstatedir='${prefix}/com'
1784a17663cSThomas Veermanlocalstatedir='${prefix}/var'
1794a17663cSThomas Veermanlibdir='${exec_prefix}/lib'
1804a17663cSThomas Veermanincludedir='${prefix}/include'
1814a17663cSThomas Veermanoldincludedir='/usr/include'
18284d9c625SLionel Sambucinfodir='${datarootdir}/info'
18384d9c625SLionel Sambucmandir='${datarootdir}/man'
1844a17663cSThomas Veerman
1854a17663cSThomas Veerman# Identity of this package.
1864a17663cSThomas VeermanPACKAGE_NAME=
1874a17663cSThomas VeermanPACKAGE_TARNAME=
1884a17663cSThomas VeermanPACKAGE_VERSION=
1894a17663cSThomas VeermanPACKAGE_STRING=
1904a17663cSThomas VeermanPACKAGE_BUGREPORT=
1914a17663cSThomas Veerman
1924a17663cSThomas Veermanac_prev=
1934a17663cSThomas Veermanfor ac_option
1944a17663cSThomas Veermando
1954a17663cSThomas Veerman  # If the previous option needs an argument, assign it.
1964a17663cSThomas Veerman  if test -n "$ac_prev"; then
1974a17663cSThomas Veerman    eval "$ac_prev=\$ac_option"
1984a17663cSThomas Veerman    ac_prev=
1994a17663cSThomas Veerman    continue
2004a17663cSThomas Veerman  fi
2014a17663cSThomas Veerman
2024a17663cSThomas Veerman  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
2034a17663cSThomas Veerman
2044a17663cSThomas Veerman  # Accept the important Cygnus configure options, so we can diagnose typos.
2054a17663cSThomas Veerman
2064a17663cSThomas Veerman  case $ac_option in
2074a17663cSThomas Veerman
2084a17663cSThomas Veerman  -bindir | --bindir | --bindi | --bind | --bin | --bi)
2094a17663cSThomas Veerman    ac_prev=bindir ;;
2104a17663cSThomas Veerman  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
2114a17663cSThomas Veerman    bindir=$ac_optarg ;;
2124a17663cSThomas Veerman
2134a17663cSThomas Veerman  -build | --build | --buil | --bui | --bu)
2144a17663cSThomas Veerman    ac_prev=build_alias ;;
2154a17663cSThomas Veerman  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
2164a17663cSThomas Veerman    build_alias=$ac_optarg ;;
2174a17663cSThomas Veerman
2184a17663cSThomas Veerman  -cache-file | --cache-file | --cache-fil | --cache-fi \
2194a17663cSThomas Veerman  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2204a17663cSThomas Veerman    ac_prev=cache_file ;;
2214a17663cSThomas Veerman  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2224a17663cSThomas Veerman  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2234a17663cSThomas Veerman    cache_file=$ac_optarg ;;
2244a17663cSThomas Veerman
2254a17663cSThomas Veerman  --config-cache | -C)
2264a17663cSThomas Veerman    cache_file=config.cache ;;
2274a17663cSThomas Veerman
2284a17663cSThomas Veerman  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
2294a17663cSThomas Veerman    ac_prev=datadir ;;
2304a17663cSThomas Veerman  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
2314a17663cSThomas Veerman  | --da=*)
2324a17663cSThomas Veerman    datadir=$ac_optarg ;;
2334a17663cSThomas Veerman
23484d9c625SLionel Sambuc  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
23584d9c625SLionel Sambuc  | --dataroo | --dataro | --datar)
23684d9c625SLionel Sambuc    ac_prev=datarootdir ;;
23784d9c625SLionel Sambuc  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
23884d9c625SLionel Sambuc  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
23984d9c625SLionel Sambuc    datarootdir=$ac_optarg ;;
24084d9c625SLionel Sambuc
2414a17663cSThomas Veerman  -disable-* | --disable-*)
2424a17663cSThomas Veerman    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
2434a17663cSThomas Veerman    # Reject names that are not valid shell variable names.
2444a17663cSThomas Veerman    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
2454a17663cSThomas Veerman      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
2464a17663cSThomas Veerman   { (exit 1); exit 1; }; }
2474a17663cSThomas Veerman    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
2484a17663cSThomas Veerman    eval "enable_$ac_feature=no" ;;
2494a17663cSThomas Veerman
2504a17663cSThomas Veerman  -enable-* | --enable-*)
2514a17663cSThomas Veerman    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
2524a17663cSThomas Veerman    # Reject names that are not valid shell variable names.
2534a17663cSThomas Veerman    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
2544a17663cSThomas Veerman      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
2554a17663cSThomas Veerman   { (exit 1); exit 1; }; }
2564a17663cSThomas Veerman    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
2574a17663cSThomas Veerman    case $ac_option in
2584a17663cSThomas Veerman      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
2594a17663cSThomas Veerman      *) ac_optarg=yes ;;
2604a17663cSThomas Veerman    esac
2614a17663cSThomas Veerman    eval "enable_$ac_feature='$ac_optarg'" ;;
2624a17663cSThomas Veerman
2634a17663cSThomas Veerman  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
2644a17663cSThomas Veerman  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
2654a17663cSThomas Veerman  | --exec | --exe | --ex)
2664a17663cSThomas Veerman    ac_prev=exec_prefix ;;
2674a17663cSThomas Veerman  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
2684a17663cSThomas Veerman  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
2694a17663cSThomas Veerman  | --exec=* | --exe=* | --ex=*)
2704a17663cSThomas Veerman    exec_prefix=$ac_optarg ;;
2714a17663cSThomas Veerman
2724a17663cSThomas Veerman  -gas | --gas | --ga | --g)
2734a17663cSThomas Veerman    # Obsolete; use --with-gas.
2744a17663cSThomas Veerman    with_gas=yes ;;
2754a17663cSThomas Veerman
2764a17663cSThomas Veerman  -help | --help | --hel | --he | -h)
2774a17663cSThomas Veerman    ac_init_help=long ;;
2784a17663cSThomas Veerman  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
2794a17663cSThomas Veerman    ac_init_help=recursive ;;
2804a17663cSThomas Veerman  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
2814a17663cSThomas Veerman    ac_init_help=short ;;
2824a17663cSThomas Veerman
2834a17663cSThomas Veerman  -host | --host | --hos | --ho)
2844a17663cSThomas Veerman    ac_prev=host_alias ;;
2854a17663cSThomas Veerman  -host=* | --host=* | --hos=* | --ho=*)
2864a17663cSThomas Veerman    host_alias=$ac_optarg ;;
2874a17663cSThomas Veerman
2884a17663cSThomas Veerman  -includedir | --includedir | --includedi | --included | --include \
2894a17663cSThomas Veerman  | --includ | --inclu | --incl | --inc)
2904a17663cSThomas Veerman    ac_prev=includedir ;;
2914a17663cSThomas Veerman  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
2924a17663cSThomas Veerman  | --includ=* | --inclu=* | --incl=* | --inc=*)
2934a17663cSThomas Veerman    includedir=$ac_optarg ;;
2944a17663cSThomas Veerman
2954a17663cSThomas Veerman  -infodir | --infodir | --infodi | --infod | --info | --inf)
2964a17663cSThomas Veerman    ac_prev=infodir ;;
2974a17663cSThomas Veerman  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
2984a17663cSThomas Veerman    infodir=$ac_optarg ;;
2994a17663cSThomas Veerman
3004a17663cSThomas Veerman  -libdir | --libdir | --libdi | --libd)
3014a17663cSThomas Veerman    ac_prev=libdir ;;
3024a17663cSThomas Veerman  -libdir=* | --libdir=* | --libdi=* | --libd=*)
3034a17663cSThomas Veerman    libdir=$ac_optarg ;;
3044a17663cSThomas Veerman
3054a17663cSThomas Veerman  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
3064a17663cSThomas Veerman  | --libexe | --libex | --libe)
3074a17663cSThomas Veerman    ac_prev=libexecdir ;;
3084a17663cSThomas Veerman  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
3094a17663cSThomas Veerman  | --libexe=* | --libex=* | --libe=*)
3104a17663cSThomas Veerman    libexecdir=$ac_optarg ;;
3114a17663cSThomas Veerman
3124a17663cSThomas Veerman  -localstatedir | --localstatedir | --localstatedi | --localstated \
3134a17663cSThomas Veerman  | --localstate | --localstat | --localsta | --localst \
3144a17663cSThomas Veerman  | --locals | --local | --loca | --loc | --lo)
3154a17663cSThomas Veerman    ac_prev=localstatedir ;;
3164a17663cSThomas Veerman  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
3174a17663cSThomas Veerman  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
3184a17663cSThomas Veerman  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
3194a17663cSThomas Veerman    localstatedir=$ac_optarg ;;
3204a17663cSThomas Veerman
3214a17663cSThomas Veerman  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
3224a17663cSThomas Veerman    ac_prev=mandir ;;
3234a17663cSThomas Veerman  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
3244a17663cSThomas Veerman    mandir=$ac_optarg ;;
3254a17663cSThomas Veerman
3264a17663cSThomas Veerman  -nfp | --nfp | --nf)
3274a17663cSThomas Veerman    # Obsolete; use --without-fp.
3284a17663cSThomas Veerman    with_fp=no ;;
3294a17663cSThomas Veerman
3304a17663cSThomas Veerman  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
3314a17663cSThomas Veerman  | --no-cr | --no-c)
3324a17663cSThomas Veerman    no_create=yes ;;
3334a17663cSThomas Veerman
3344a17663cSThomas Veerman  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
3354a17663cSThomas Veerman  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
3364a17663cSThomas Veerman    no_recursion=yes ;;
3374a17663cSThomas Veerman
3384a17663cSThomas Veerman  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
3394a17663cSThomas Veerman  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
3404a17663cSThomas Veerman  | --oldin | --oldi | --old | --ol | --o)
3414a17663cSThomas Veerman    ac_prev=oldincludedir ;;
3424a17663cSThomas Veerman  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
3434a17663cSThomas Veerman  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
3444a17663cSThomas Veerman  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
3454a17663cSThomas Veerman    oldincludedir=$ac_optarg ;;
3464a17663cSThomas Veerman
3474a17663cSThomas Veerman  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
3484a17663cSThomas Veerman    ac_prev=prefix ;;
3494a17663cSThomas Veerman  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
3504a17663cSThomas Veerman    prefix=$ac_optarg ;;
3514a17663cSThomas Veerman
3524a17663cSThomas Veerman  -program-prefix | --program-prefix | --program-prefi | --program-pref \
3534a17663cSThomas Veerman  | --program-pre | --program-pr | --program-p)
3544a17663cSThomas Veerman    ac_prev=program_prefix ;;
3554a17663cSThomas Veerman  -program-prefix=* | --program-prefix=* | --program-prefi=* \
3564a17663cSThomas Veerman  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
3574a17663cSThomas Veerman    program_prefix=$ac_optarg ;;
3584a17663cSThomas Veerman
3594a17663cSThomas Veerman  -program-suffix | --program-suffix | --program-suffi | --program-suff \
3604a17663cSThomas Veerman  | --program-suf | --program-su | --program-s)
3614a17663cSThomas Veerman    ac_prev=program_suffix ;;
3624a17663cSThomas Veerman  -program-suffix=* | --program-suffix=* | --program-suffi=* \
3634a17663cSThomas Veerman  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
3644a17663cSThomas Veerman    program_suffix=$ac_optarg ;;
3654a17663cSThomas Veerman
3664a17663cSThomas Veerman  -program-transform-name | --program-transform-name \
3674a17663cSThomas Veerman  | --program-transform-nam | --program-transform-na \
3684a17663cSThomas Veerman  | --program-transform-n | --program-transform- \
3694a17663cSThomas Veerman  | --program-transform | --program-transfor \
3704a17663cSThomas Veerman  | --program-transfo | --program-transf \
3714a17663cSThomas Veerman  | --program-trans | --program-tran \
3724a17663cSThomas Veerman  | --progr-tra | --program-tr | --program-t)
3734a17663cSThomas Veerman    ac_prev=program_transform_name ;;
3744a17663cSThomas Veerman  -program-transform-name=* | --program-transform-name=* \
3754a17663cSThomas Veerman  | --program-transform-nam=* | --program-transform-na=* \
3764a17663cSThomas Veerman  | --program-transform-n=* | --program-transform-=* \
3774a17663cSThomas Veerman  | --program-transform=* | --program-transfor=* \
3784a17663cSThomas Veerman  | --program-transfo=* | --program-transf=* \
3794a17663cSThomas Veerman  | --program-trans=* | --program-tran=* \
3804a17663cSThomas Veerman  | --progr-tra=* | --program-tr=* | --program-t=*)
3814a17663cSThomas Veerman    program_transform_name=$ac_optarg ;;
3824a17663cSThomas Veerman
3834a17663cSThomas Veerman  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3844a17663cSThomas Veerman  | -silent | --silent | --silen | --sile | --sil)
3854a17663cSThomas Veerman    silent=yes ;;
3864a17663cSThomas Veerman
3874a17663cSThomas Veerman  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
3884a17663cSThomas Veerman    ac_prev=sbindir ;;
3894a17663cSThomas Veerman  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
3904a17663cSThomas Veerman  | --sbi=* | --sb=*)
3914a17663cSThomas Veerman    sbindir=$ac_optarg ;;
3924a17663cSThomas Veerman
3934a17663cSThomas Veerman  -sharedstatedir | --sharedstatedir | --sharedstatedi \
3944a17663cSThomas Veerman  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
3954a17663cSThomas Veerman  | --sharedst | --shareds | --shared | --share | --shar \
3964a17663cSThomas Veerman  | --sha | --sh)
3974a17663cSThomas Veerman    ac_prev=sharedstatedir ;;
3984a17663cSThomas Veerman  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
3994a17663cSThomas Veerman  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
4004a17663cSThomas Veerman  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
4014a17663cSThomas Veerman  | --sha=* | --sh=*)
4024a17663cSThomas Veerman    sharedstatedir=$ac_optarg ;;
4034a17663cSThomas Veerman
4044a17663cSThomas Veerman  -site | --site | --sit)
4054a17663cSThomas Veerman    ac_prev=site ;;
4064a17663cSThomas Veerman  -site=* | --site=* | --sit=*)
4074a17663cSThomas Veerman    site=$ac_optarg ;;
4084a17663cSThomas Veerman
4094a17663cSThomas Veerman  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4104a17663cSThomas Veerman    ac_prev=srcdir ;;
4114a17663cSThomas Veerman  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4124a17663cSThomas Veerman    srcdir=$ac_optarg ;;
4134a17663cSThomas Veerman
4144a17663cSThomas Veerman  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
4154a17663cSThomas Veerman  | --syscon | --sysco | --sysc | --sys | --sy)
4164a17663cSThomas Veerman    ac_prev=sysconfdir ;;
4174a17663cSThomas Veerman  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
4184a17663cSThomas Veerman  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
4194a17663cSThomas Veerman    sysconfdir=$ac_optarg ;;
4204a17663cSThomas Veerman
4214a17663cSThomas Veerman  -target | --target | --targe | --targ | --tar | --ta | --t)
4224a17663cSThomas Veerman    ac_prev=target_alias ;;
4234a17663cSThomas Veerman  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
4244a17663cSThomas Veerman    target_alias=$ac_optarg ;;
4254a17663cSThomas Veerman
4264a17663cSThomas Veerman  -v | -verbose | --verbose | --verbos | --verbo | --verb)
4274a17663cSThomas Veerman    verbose=yes ;;
4284a17663cSThomas Veerman
4294a17663cSThomas Veerman  -version | --version | --versio | --versi | --vers | -V)
4304a17663cSThomas Veerman    ac_init_version=: ;;
4314a17663cSThomas Veerman
4324a17663cSThomas Veerman  -with-* | --with-*)
4334a17663cSThomas Veerman    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
4344a17663cSThomas Veerman    # Reject names that are not valid shell variable names.
4354a17663cSThomas Veerman    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
4364a17663cSThomas Veerman      { echo "$as_me: error: invalid package name: $ac_package" >&2
4374a17663cSThomas Veerman   { (exit 1); exit 1; }; }
4384a17663cSThomas Veerman    ac_package=`echo $ac_package| sed 's/-/_/g'`
4394a17663cSThomas Veerman    case $ac_option in
4404a17663cSThomas Veerman      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
4414a17663cSThomas Veerman      *) ac_optarg=yes ;;
4424a17663cSThomas Veerman    esac
4434a17663cSThomas Veerman    eval "with_$ac_package='$ac_optarg'" ;;
4444a17663cSThomas Veerman
4454a17663cSThomas Veerman  -without-* | --without-*)
4464a17663cSThomas Veerman    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
4474a17663cSThomas Veerman    # Reject names that are not valid shell variable names.
4484a17663cSThomas Veerman    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
4494a17663cSThomas Veerman      { echo "$as_me: error: invalid package name: $ac_package" >&2
4504a17663cSThomas Veerman   { (exit 1); exit 1; }; }
4514a17663cSThomas Veerman    ac_package=`echo $ac_package | sed 's/-/_/g'`
4524a17663cSThomas Veerman    eval "with_$ac_package=no" ;;
4534a17663cSThomas Veerman
4544a17663cSThomas Veerman  --x)
4554a17663cSThomas Veerman    # Obsolete; use --with-x.
4564a17663cSThomas Veerman    with_x=yes ;;
4574a17663cSThomas Veerman
4584a17663cSThomas Veerman  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
4594a17663cSThomas Veerman  | --x-incl | --x-inc | --x-in | --x-i)
4604a17663cSThomas Veerman    ac_prev=x_includes ;;
4614a17663cSThomas Veerman  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
4624a17663cSThomas Veerman  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
4634a17663cSThomas Veerman    x_includes=$ac_optarg ;;
4644a17663cSThomas Veerman
4654a17663cSThomas Veerman  -x-libraries | --x-libraries | --x-librarie | --x-librari \
4664a17663cSThomas Veerman  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
4674a17663cSThomas Veerman    ac_prev=x_libraries ;;
4684a17663cSThomas Veerman  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
4694a17663cSThomas Veerman  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
4704a17663cSThomas Veerman    x_libraries=$ac_optarg ;;
4714a17663cSThomas Veerman
4724a17663cSThomas Veerman  -*) { echo "$as_me: error: unrecognized option: $ac_option
4734a17663cSThomas VeermanTry \`$0 --help' for more information." >&2
4744a17663cSThomas Veerman   { (exit 1); exit 1; }; }
4754a17663cSThomas Veerman    ;;
4764a17663cSThomas Veerman
4774a17663cSThomas Veerman  *=*)
4784a17663cSThomas Veerman    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
4794a17663cSThomas Veerman    # Reject names that are not valid shell variable names.
4804a17663cSThomas Veerman    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
4814a17663cSThomas Veerman      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
4824a17663cSThomas Veerman   { (exit 1); exit 1; }; }
4834a17663cSThomas Veerman    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
4844a17663cSThomas Veerman    eval "$ac_envvar='$ac_optarg'"
4854a17663cSThomas Veerman    export $ac_envvar ;;
4864a17663cSThomas Veerman
4874a17663cSThomas Veerman  *)
4884a17663cSThomas Veerman    # FIXME: should be removed in autoconf 3.0.
4894a17663cSThomas Veerman    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
4904a17663cSThomas Veerman    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
4914a17663cSThomas Veerman      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
4924a17663cSThomas Veerman    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
4934a17663cSThomas Veerman    ;;
4944a17663cSThomas Veerman
4954a17663cSThomas Veerman  esac
4964a17663cSThomas Veermandone
4974a17663cSThomas Veerman
4984a17663cSThomas Veermanif test -n "$ac_prev"; then
4994a17663cSThomas Veerman  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5004a17663cSThomas Veerman  { echo "$as_me: error: missing argument to $ac_option" >&2
5014a17663cSThomas Veerman   { (exit 1); exit 1; }; }
5024a17663cSThomas Veermanfi
5034a17663cSThomas Veerman
5044a17663cSThomas Veerman# Be sure to have absolute paths.
5054a17663cSThomas Veermanfor ac_var in exec_prefix prefix
5064a17663cSThomas Veermando
5074a17663cSThomas Veerman  eval ac_val=$`echo $ac_var`
5084a17663cSThomas Veerman  case $ac_val in
5094a17663cSThomas Veerman    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
5104a17663cSThomas Veerman    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
5114a17663cSThomas Veerman   { (exit 1); exit 1; }; };;
5124a17663cSThomas Veerman  esac
5134a17663cSThomas Veermandone
5144a17663cSThomas Veerman
5154a17663cSThomas Veerman# Be sure to have absolute paths.
51684d9c625SLionel Sambucfor ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
5174a17663cSThomas Veerman              localstatedir libdir includedir oldincludedir infodir mandir
5184a17663cSThomas Veermando
5194a17663cSThomas Veerman  eval ac_val=$`echo $ac_var`
5204a17663cSThomas Veerman  case $ac_val in
5214a17663cSThomas Veerman    [\\/$]* | ?:[\\/]* ) ;;
5224a17663cSThomas Veerman    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
5234a17663cSThomas Veerman   { (exit 1); exit 1; }; };;
5244a17663cSThomas Veerman  esac
5254a17663cSThomas Veermandone
5264a17663cSThomas Veerman
5274a17663cSThomas Veerman# There might be people who depend on the old broken behavior: `$host'
5284a17663cSThomas Veerman# used to hold the argument of --host etc.
5294a17663cSThomas Veermanbuild=$build_alias
5304a17663cSThomas Veermanhost=$host_alias
5314a17663cSThomas Veermantarget=$target_alias
5324a17663cSThomas Veerman
5334a17663cSThomas Veerman# FIXME: should be removed in autoconf 3.0.
5344a17663cSThomas Veermanif test "x$host_alias" != x; then
5354a17663cSThomas Veerman  if test "x$build_alias" = x; then
5364a17663cSThomas Veerman    cross_compiling=maybe
5374a17663cSThomas Veerman    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
5384a17663cSThomas Veerman    If a cross compiler is detected then cross compile mode will be used." >&2
5394a17663cSThomas Veerman  elif test "x$build_alias" != "x$host_alias"; then
5404a17663cSThomas Veerman    cross_compiling=yes
5414a17663cSThomas Veerman  fi
5424a17663cSThomas Veermanfi
5434a17663cSThomas Veerman
5444a17663cSThomas Veermanac_tool_prefix=
5454a17663cSThomas Veermantest -n "$host_alias" && ac_tool_prefix=$host_alias-
5464a17663cSThomas Veerman
5474a17663cSThomas Veermantest "$silent" = yes && exec 6>/dev/null
5484a17663cSThomas Veerman
5494a17663cSThomas Veerman# Find the source files, if location was not specified.
5504a17663cSThomas Veermanif test -z "$srcdir"; then
5514a17663cSThomas Veerman  ac_srcdir_defaulted=yes
5524a17663cSThomas Veerman  # Try the directory containing this script, then its parent.
5534a17663cSThomas Veerman  ac_prog=$0
5544a17663cSThomas Veerman  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
5554a17663cSThomas Veerman  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
5564a17663cSThomas Veerman  srcdir=$ac_confdir
5574a17663cSThomas Veerman  if test ! -r $srcdir/$ac_unique_file; then
5584a17663cSThomas Veerman    srcdir=..
5594a17663cSThomas Veerman  fi
5604a17663cSThomas Veermanelse
5614a17663cSThomas Veerman  ac_srcdir_defaulted=no
5624a17663cSThomas Veermanfi
5634a17663cSThomas Veermanif test ! -r $srcdir/$ac_unique_file; then
5644a17663cSThomas Veerman  if test "$ac_srcdir_defaulted" = yes; then
5654a17663cSThomas Veerman    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
5664a17663cSThomas Veerman   { (exit 1); exit 1; }; }
5674a17663cSThomas Veerman  else
5684a17663cSThomas Veerman    { echo "$as_me: error: cannot find sources in $srcdir" >&2
5694a17663cSThomas Veerman   { (exit 1); exit 1; }; }
5704a17663cSThomas Veerman  fi
5714a17663cSThomas Veermanfi
5724a17663cSThomas Veermansrcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
5734a17663cSThomas Veermanac_env_build_alias_set=${build_alias+set}
5744a17663cSThomas Veermanac_env_build_alias_value=$build_alias
5754a17663cSThomas Veermanac_cv_env_build_alias_set=${build_alias+set}
5764a17663cSThomas Veermanac_cv_env_build_alias_value=$build_alias
5774a17663cSThomas Veermanac_env_host_alias_set=${host_alias+set}
5784a17663cSThomas Veermanac_env_host_alias_value=$host_alias
5794a17663cSThomas Veermanac_cv_env_host_alias_set=${host_alias+set}
5804a17663cSThomas Veermanac_cv_env_host_alias_value=$host_alias
5814a17663cSThomas Veermanac_env_target_alias_set=${target_alias+set}
5824a17663cSThomas Veermanac_env_target_alias_value=$target_alias
5834a17663cSThomas Veermanac_cv_env_target_alias_set=${target_alias+set}
5844a17663cSThomas Veermanac_cv_env_target_alias_value=$target_alias
5854a17663cSThomas Veermanac_env_CC_set=${CC+set}
5864a17663cSThomas Veermanac_env_CC_value=$CC
5874a17663cSThomas Veermanac_cv_env_CC_set=${CC+set}
5884a17663cSThomas Veermanac_cv_env_CC_value=$CC
5894a17663cSThomas Veermanac_env_CFLAGS_set=${CFLAGS+set}
5904a17663cSThomas Veermanac_env_CFLAGS_value=$CFLAGS
5914a17663cSThomas Veermanac_cv_env_CFLAGS_set=${CFLAGS+set}
5924a17663cSThomas Veermanac_cv_env_CFLAGS_value=$CFLAGS
5934a17663cSThomas Veermanac_env_LDFLAGS_set=${LDFLAGS+set}
5944a17663cSThomas Veermanac_env_LDFLAGS_value=$LDFLAGS
5954a17663cSThomas Veermanac_cv_env_LDFLAGS_set=${LDFLAGS+set}
5964a17663cSThomas Veermanac_cv_env_LDFLAGS_value=$LDFLAGS
5974a17663cSThomas Veermanac_env_CPPFLAGS_set=${CPPFLAGS+set}
5984a17663cSThomas Veermanac_env_CPPFLAGS_value=$CPPFLAGS
5994a17663cSThomas Veermanac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
6004a17663cSThomas Veermanac_cv_env_CPPFLAGS_value=$CPPFLAGS
6014a17663cSThomas Veermanac_env_CPP_set=${CPP+set}
6024a17663cSThomas Veermanac_env_CPP_value=$CPP
6034a17663cSThomas Veermanac_cv_env_CPP_set=${CPP+set}
6044a17663cSThomas Veermanac_cv_env_CPP_value=$CPP
6054a17663cSThomas Veerman
6064a17663cSThomas Veerman#
6074a17663cSThomas Veerman# Report the --help message.
6084a17663cSThomas Veerman#
6094a17663cSThomas Veermanif test "$ac_init_help" = "long"; then
6104a17663cSThomas Veerman  # Omit some internal or obsolete options to make the list less imposing.
6114a17663cSThomas Veerman  # This message is too long to be a string in the A/UX 3.1 sh.
6124a17663cSThomas Veerman  cat <<EOF
6134a17663cSThomas Veerman\`configure' configures this package to adapt to many kinds of systems.
6144a17663cSThomas Veerman
6154a17663cSThomas VeermanUsage: $0 [OPTION]... [VAR=VALUE]...
6164a17663cSThomas Veerman
6174a17663cSThomas VeermanTo assign environment variables (e.g., CC, CFLAGS...), specify them as
6184a17663cSThomas VeermanVAR=VALUE.  See below for descriptions of some of the useful variables.
6194a17663cSThomas Veerman
6204a17663cSThomas VeermanDefaults for the options are specified in brackets.
6214a17663cSThomas Veerman
6224a17663cSThomas VeermanConfiguration:
6234a17663cSThomas Veerman  -h, --help              display this help and exit
6244a17663cSThomas Veerman      --help=short        display options specific to this package
6254a17663cSThomas Veerman      --help=recursive    display the short help of all the included packages
6264a17663cSThomas Veerman  -V, --version           display version information and exit
6274a17663cSThomas Veerman  -q, --quiet, --silent   do not print \`checking...' messages
6284a17663cSThomas Veerman      --cache-file=FILE   cache test results in FILE [disabled]
6294a17663cSThomas Veerman  -C, --config-cache      alias for \`--cache-file=config.cache'
6304a17663cSThomas Veerman  -n, --no-create         do not create output files
6314a17663cSThomas Veerman      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
6324a17663cSThomas Veerman
6334a17663cSThomas VeermanEOF
6344a17663cSThomas Veerman
6354a17663cSThomas Veerman  cat <<EOF
6364a17663cSThomas VeermanInstallation directories:
6374a17663cSThomas Veerman  --prefix=PREFIX         install architecture-independent files in PREFIX
6384a17663cSThomas Veerman                          [$ac_default_prefix]
6394a17663cSThomas Veerman  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
6404a17663cSThomas Veerman                          [PREFIX]
6414a17663cSThomas Veerman
6424a17663cSThomas VeermanBy default, \`make install' will install all the files in
6434a17663cSThomas Veerman\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
6444a17663cSThomas Veermanan installation prefix other than \`$ac_default_prefix' using \`--prefix',
6454a17663cSThomas Veermanfor instance \`--prefix=\$HOME'.
6464a17663cSThomas Veerman
6474a17663cSThomas VeermanFor better control, use the options below.
6484a17663cSThomas Veerman
6494a17663cSThomas VeermanFine tuning of the installation directories:
6504a17663cSThomas Veerman  --bindir=DIR            user executables [EPREFIX/bin]
6514a17663cSThomas Veerman  --sbindir=DIR           system admin executables [EPREFIX/sbin]
6524a17663cSThomas Veerman  --libexecdir=DIR        program executables [EPREFIX/libexec]
65384d9c625SLionel Sambuc  --datarootdir=DIR       read-only architecture-independent data [PREFIX/share]
65484d9c625SLionel Sambuc  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
6554a17663cSThomas Veerman  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
6564a17663cSThomas Veerman  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
6574a17663cSThomas Veerman  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
6584a17663cSThomas Veerman  --libdir=DIR            object code libraries [EPREFIX/lib]
6594a17663cSThomas Veerman  --includedir=DIR        C header files [PREFIX/include]
6604a17663cSThomas Veerman  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
66184d9c625SLionel Sambuc  --infodir=DIR           info documentation [DATAROOTDIR/info]
66284d9c625SLionel Sambuc  --mandir=DIR            man documentation [DATAROOTDIR/man]
6634a17663cSThomas VeermanEOF
6644a17663cSThomas Veerman
6654a17663cSThomas Veerman  cat <<\EOF
6664a17663cSThomas Veerman
6674a17663cSThomas VeermanProgram names:
6684a17663cSThomas Veerman  --program-prefix=PREFIX            prepend PREFIX to installed program names
6694a17663cSThomas Veerman  --program-suffix=SUFFIX            append SUFFIX to installed program names
6704a17663cSThomas Veerman  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
6714a17663cSThomas Veerman
6724a17663cSThomas VeermanSystem types:
6734a17663cSThomas Veerman  --build=BUILD           configure for building on BUILD [guessed]
6744a17663cSThomas Veerman  --host=HOST       build programs to run on HOST [BUILD]
6754a17663cSThomas Veerman  --target=TARGET   configure for building compilers for TARGET [HOST]
6764a17663cSThomas VeermanEOF
6774a17663cSThomas Veermanfi
6784a17663cSThomas Veerman
6794a17663cSThomas Veermanif test -n "$ac_init_help"; then
6804a17663cSThomas Veerman
6814a17663cSThomas Veerman  cat <<\EOF
6824a17663cSThomas Veerman
6834a17663cSThomas VeermanOptional Packages:
6844a17663cSThomas Veerman  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
6854a17663cSThomas Veerman  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
6864a17663cSThomas Veerman
6874a17663cSThomas VeermanOptional Features:
6884a17663cSThomas Veerman  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
6894a17663cSThomas Veerman  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
6904a17663cSThomas Veerman
691*0a6a1f1dSLionel Sambuc  --with-max-table-size=N set the maximum table size = N (no default)
692*0a6a1f1dSLionel Sambuc  --enable-btyacc         turn on support for the btyacc backtracking
693*0a6a1f1dSLionel Sambuc                          extension (default: no)
6944a17663cSThomas Veerman  --with-warnings         test: turn on gcc warnings
69584d9c625SLionel Sambuc  --disable-echo          do not display "compiling" commands
6964a17663cSThomas Veerman  --with-dmalloc          test: use Gray Watson's dmalloc library
6974a17663cSThomas Veerman  --with-dbmalloc         test: use Conor Cahill's dbmalloc library
6984a17663cSThomas Veerman  --with-valgrind         test: use valgrind
6994a17663cSThomas Veerman  --disable-leaks         test: free permanent memory, analyze leaks
7004a17663cSThomas Veerman
7014a17663cSThomas VeermanSome influential environment variables:
7024a17663cSThomas Veerman  CC          C compiler command
7034a17663cSThomas Veerman  CFLAGS      C compiler flags
7044a17663cSThomas Veerman  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
7054a17663cSThomas Veerman              nonstandard directory <lib dir>
7064a17663cSThomas Veerman  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
7074a17663cSThomas Veerman              headers in a nonstandard directory <include dir>
7084a17663cSThomas Veerman  CPP         C preprocessor
7094a17663cSThomas Veerman
7104a17663cSThomas VeermanUse these variables to override the choices made by `configure' or to help
7114a17663cSThomas Veermanit to find libraries and programs with nonstandard names/locations.
7124a17663cSThomas Veerman
7134a17663cSThomas VeermanEOF
7144a17663cSThomas Veermanfi
7154a17663cSThomas Veerman
7164a17663cSThomas Veermanif test "$ac_init_help" = "recursive"; then
7174a17663cSThomas Veerman  # If there are subdirs, report their specific --help.
7184a17663cSThomas Veerman  ac_popdir=`pwd`
7194a17663cSThomas Veerman  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
7204a17663cSThomas Veerman    cd $ac_subdir
7214a17663cSThomas Veerman    # A "../" for each directory in /$ac_subdir.
7224a17663cSThomas Veerman    ac_dots=`echo $ac_subdir |
7234a17663cSThomas Veerman             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
7244a17663cSThomas Veerman
7254a17663cSThomas Veerman    case $srcdir in
7264a17663cSThomas Veerman    .) # No --srcdir option.  We are building in place.
7274a17663cSThomas Veerman      ac_sub_srcdir=$srcdir ;;
7284a17663cSThomas Veerman    [\\/]* | ?:[\\/]* ) # Absolute path.
7294a17663cSThomas Veerman      ac_sub_srcdir=$srcdir/$ac_subdir ;;
7304a17663cSThomas Veerman    *) # Relative path.
7314a17663cSThomas Veerman      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
7324a17663cSThomas Veerman    esac
7334a17663cSThomas Veerman
7344a17663cSThomas Veerman    # Check for guested configure; otherwise get Cygnus style configure.
7354a17663cSThomas Veerman    if test -f $ac_sub_srcdir/configure.gnu; then
7364a17663cSThomas Veerman      echo
7374a17663cSThomas Veerman      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
7384a17663cSThomas Veerman    elif test -f $ac_sub_srcdir/configure; then
7394a17663cSThomas Veerman      echo
7404a17663cSThomas Veerman      $SHELL $ac_sub_srcdir/configure  --help=recursive
7414a17663cSThomas Veerman    elif test -f $ac_sub_srcdir/configure.ac ||
7424a17663cSThomas Veerman           test -f $ac_sub_srcdir/configure.in; then
7434a17663cSThomas Veerman      echo
7444a17663cSThomas Veerman      $ac_configure --help
7454a17663cSThomas Veerman    else
7464a17663cSThomas Veerman      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
7474a17663cSThomas Veerman    fi
7484a17663cSThomas Veerman    cd $ac_popdir
7494a17663cSThomas Veerman  done
7504a17663cSThomas Veermanfi
7514a17663cSThomas Veerman
7524a17663cSThomas Veermantest -n "$ac_init_help" && exit 0
7534a17663cSThomas Veermanif $ac_init_version; then
7544a17663cSThomas Veerman  cat <<\EOF
7554a17663cSThomas Veerman
7564a17663cSThomas VeermanCopyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7574a17663cSThomas VeermanFree Software Foundation, Inc.
7584a17663cSThomas VeermanThis configure script is free software; the Free Software Foundation
7594a17663cSThomas Veermangives unlimited permission to copy, distribute and modify it.
7604a17663cSThomas VeermanEOF
7614a17663cSThomas Veerman  exit 0
7624a17663cSThomas Veermanfi
7634a17663cSThomas Veermanexec 5>config.log
7644a17663cSThomas Veermancat >&5 <<EOF
7654a17663cSThomas VeermanThis file contains any messages produced by compilers while
7664a17663cSThomas Veermanrunning configure, to aid debugging if configure makes a mistake.
7674a17663cSThomas Veerman
7684a17663cSThomas VeermanIt was created by $as_me, which was
76984d9c625SLionel Sambucgenerated by GNU Autoconf 2.52.20121002.  Invocation command line was
7704a17663cSThomas Veerman
7714a17663cSThomas Veerman  $ $0 $@
7724a17663cSThomas Veerman
7734a17663cSThomas VeermanEOF
7744a17663cSThomas Veerman{
7754a17663cSThomas Veermancat <<_ASUNAME
7764a17663cSThomas Veerman## ---------- ##
7774a17663cSThomas Veerman## Platform.  ##
7784a17663cSThomas Veerman## ---------- ##
7794a17663cSThomas Veerman
7804a17663cSThomas Veermanhostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
7814a17663cSThomas Veermanuname -m = `(uname -m) 2>/dev/null || echo unknown`
7824a17663cSThomas Veermanuname -r = `(uname -r) 2>/dev/null || echo unknown`
7834a17663cSThomas Veermanuname -s = `(uname -s) 2>/dev/null || echo unknown`
7844a17663cSThomas Veermanuname -v = `(uname -v) 2>/dev/null || echo unknown`
7854a17663cSThomas Veerman
7864a17663cSThomas Veerman/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
7874a17663cSThomas Veerman/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
7884a17663cSThomas Veerman
7894a17663cSThomas Veerman/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
7904a17663cSThomas Veerman/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
7914a17663cSThomas Veerman/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7924a17663cSThomas Veermanhostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
7934a17663cSThomas Veerman/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
7944a17663cSThomas Veerman/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
7954a17663cSThomas Veerman/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
7964a17663cSThomas Veerman
7974a17663cSThomas VeermanPATH = $PATH
7984a17663cSThomas Veerman
7994a17663cSThomas Veerman_ASUNAME
8004a17663cSThomas Veerman} >&5
8014a17663cSThomas Veerman
8024a17663cSThomas Veermancat >&5 <<EOF
8034a17663cSThomas Veerman## ------------ ##
8044a17663cSThomas Veerman## Core tests.  ##
8054a17663cSThomas Veerman## ------------ ##
8064a17663cSThomas Veerman
8074a17663cSThomas VeermanEOF
8084a17663cSThomas Veerman
8094a17663cSThomas Veerman# Keep a trace of the command line.
8104a17663cSThomas Veerman# Strip out --no-create and --no-recursion so they do not pile up.
8114a17663cSThomas Veerman# Also quote any args containing shell meta-characters.
8124a17663cSThomas Veermanac_configure_args=
8134a17663cSThomas Veermanac_sep=
8144a17663cSThomas Veermanfor ac_arg
8154a17663cSThomas Veermando
8164a17663cSThomas Veerman  case $ac_arg in
8174a17663cSThomas Veerman  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
8184a17663cSThomas Veerman  | --no-cr | --no-c) ;;
8194a17663cSThomas Veerman  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
8204a17663cSThomas Veerman  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
8214a17663cSThomas Veerman  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
8224a17663cSThomas Veerman    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
8234a17663cSThomas Veerman    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
8244a17663cSThomas Veerman    ac_sep=" " ;;
8254a17663cSThomas Veerman  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
8264a17663cSThomas Veerman     ac_sep=" " ;;
8274a17663cSThomas Veerman  esac
8284a17663cSThomas Veerman  # Get rid of the leading space.
8294a17663cSThomas Veermandone
8304a17663cSThomas Veerman
8314a17663cSThomas Veerman# When interrupted or exit'd, cleanup temporary files, and complete
8324a17663cSThomas Veerman# config.log.  We remove comments because anyway the quotes in there
8334a17663cSThomas Veerman# would cause problems or look ugly.
8344a17663cSThomas Veermantrap 'exit_status=$?
8354a17663cSThomas Veerman  # Save into config.log some information that might help in debugging.
8364a17663cSThomas Veerman  echo >&5
8374a17663cSThomas Veerman  echo "## ----------------- ##" >&5
8384a17663cSThomas Veerman  echo "## Cache variables.  ##" >&5
8394a17663cSThomas Veerman  echo "## ----------------- ##" >&5
8404a17663cSThomas Veerman  echo >&5
8414a17663cSThomas Veerman  # The following way of writing the cache mishandles newlines in values,
8424a17663cSThomas Veerman{
8434a17663cSThomas Veerman  (set) 2>&1 |
8444a17663cSThomas Veerman    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
8454a17663cSThomas Veerman    *ac_space=\ *)
8464a17663cSThomas Veerman      sed -n \
8474a17663cSThomas Veerman        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
8484a17663cSThomas Veerman    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
8494a17663cSThomas Veerman      ;;
8504a17663cSThomas Veerman    *)
8514a17663cSThomas Veerman      sed -n \
8524a17663cSThomas Veerman        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8534a17663cSThomas Veerman      ;;
8544a17663cSThomas Veerman    esac;
8554a17663cSThomas Veerman} >&5
8564a17663cSThomas Veerman  sed "/^$/d" confdefs.h >conftest.log
8574a17663cSThomas Veerman  if test -s conftest.log; then
8584a17663cSThomas Veerman    echo >&5
8594a17663cSThomas Veerman    echo "## ------------ ##" >&5
8604a17663cSThomas Veerman    echo "## confdefs.h.  ##" >&5
8614a17663cSThomas Veerman    echo "## ------------ ##" >&5
8624a17663cSThomas Veerman    echo >&5
8634a17663cSThomas Veerman    cat conftest.log >&5
8644a17663cSThomas Veerman  fi
8654a17663cSThomas Veerman  (echo; echo) >&5
8664a17663cSThomas Veerman  test "$ac_signal" != 0 &&
8674a17663cSThomas Veerman    echo "$as_me: caught signal $ac_signal" >&5
8684a17663cSThomas Veerman  echo "$as_me: exit $exit_status" >&5
8694a17663cSThomas Veerman  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
8704a17663cSThomas Veerman    exit $exit_status
8714a17663cSThomas Veerman     ' 0
8724a17663cSThomas Veermanfor ac_signal in 1 2 13 15; do
8734a17663cSThomas Veerman  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
8744a17663cSThomas Veermandone
8754a17663cSThomas Veermanac_signal=0
8764a17663cSThomas Veerman
8774a17663cSThomas Veerman# confdefs.h avoids OS command line length limits that DEFS can exceed.
8784a17663cSThomas Veermanrm -rf conftest* confdefs.h
8794a17663cSThomas Veerman# AIX cpp loses on an empty file, so make sure it contains at least a newline.
8804a17663cSThomas Veermanecho >confdefs.h
8814a17663cSThomas Veerman
8824a17663cSThomas Veerman# Let the site file select an alternate cache file if it wants to.
8834a17663cSThomas Veerman# Prefer explicitly selected file to automatically selected ones.
8844a17663cSThomas Veermanif test -z "$CONFIG_SITE"; then
8854a17663cSThomas Veerman  if test "x$prefix" != xNONE; then
8864a17663cSThomas Veerman    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
8874a17663cSThomas Veerman  else
8884a17663cSThomas Veerman    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
8894a17663cSThomas Veerman  fi
8904a17663cSThomas Veermanfi
8914a17663cSThomas Veermanfor ac_site_file in $CONFIG_SITE; do
8924a17663cSThomas Veerman  if test -r "$ac_site_file"; then
893*0a6a1f1dSLionel Sambuc    { echo "$as_me:893: loading site script $ac_site_file" >&5
8944a17663cSThomas Veermanecho "$as_me: loading site script $ac_site_file" >&6;}
8954a17663cSThomas Veerman    cat "$ac_site_file" >&5
8964a17663cSThomas Veerman    . "$ac_site_file"
8974a17663cSThomas Veerman  fi
8984a17663cSThomas Veermandone
8994a17663cSThomas Veerman
9004a17663cSThomas Veermanif test -r "$cache_file"; then
9014a17663cSThomas Veerman  # Some versions of bash will fail to source /dev/null (special
9024a17663cSThomas Veerman  # files actually), so we avoid doing that.
9034a17663cSThomas Veerman  if test -f "$cache_file"; then
904*0a6a1f1dSLionel Sambuc    { echo "$as_me:904: loading cache $cache_file" >&5
9054a17663cSThomas Veermanecho "$as_me: loading cache $cache_file" >&6;}
9064a17663cSThomas Veerman    case $cache_file in
9074a17663cSThomas Veerman      [\\/]* | ?:[\\/]* ) . $cache_file;;
9084a17663cSThomas Veerman      *)                      . ./$cache_file;;
9094a17663cSThomas Veerman    esac
9104a17663cSThomas Veerman  fi
9114a17663cSThomas Veermanelse
912*0a6a1f1dSLionel Sambuc  { echo "$as_me:912: creating cache $cache_file" >&5
9134a17663cSThomas Veermanecho "$as_me: creating cache $cache_file" >&6;}
9144a17663cSThomas Veerman  >$cache_file
9154a17663cSThomas Veermanfi
9164a17663cSThomas Veerman
9174a17663cSThomas Veerman# Check that the precious variables saved in the cache have kept the same
9184a17663cSThomas Veerman# value.
9194a17663cSThomas Veermanac_cache_corrupted=false
9204a17663cSThomas Veermanfor ac_var in `(set) 2>&1 |
9214a17663cSThomas Veerman               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
9224a17663cSThomas Veerman  eval ac_old_set=\$ac_cv_env_${ac_var}_set
9234a17663cSThomas Veerman  eval ac_new_set=\$ac_env_${ac_var}_set
9244a17663cSThomas Veerman  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
9254a17663cSThomas Veerman  eval ac_new_val="\$ac_env_${ac_var}_value"
9264a17663cSThomas Veerman  case $ac_old_set,$ac_new_set in
9274a17663cSThomas Veerman    set,)
928*0a6a1f1dSLionel Sambuc      { echo "$as_me:928: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
9294a17663cSThomas Veermanecho "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
9304a17663cSThomas Veerman      ac_cache_corrupted=: ;;
9314a17663cSThomas Veerman    ,set)
932*0a6a1f1dSLionel Sambuc      { echo "$as_me:932: error: \`$ac_var' was not set in the previous run" >&5
9334a17663cSThomas Veermanecho "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
9344a17663cSThomas Veerman      ac_cache_corrupted=: ;;
9354a17663cSThomas Veerman    ,);;
9364a17663cSThomas Veerman    *)
9374a17663cSThomas Veerman      if test "x$ac_old_val" != "x$ac_new_val"; then
938*0a6a1f1dSLionel Sambuc        { echo "$as_me:938: error: \`$ac_var' has changed since the previous run:" >&5
9394a17663cSThomas Veermanecho "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
940*0a6a1f1dSLionel Sambuc        { echo "$as_me:940:   former value:  $ac_old_val" >&5
9414a17663cSThomas Veermanecho "$as_me:   former value:  $ac_old_val" >&2;}
942*0a6a1f1dSLionel Sambuc        { echo "$as_me:942:   current value: $ac_new_val" >&5
9434a17663cSThomas Veermanecho "$as_me:   current value: $ac_new_val" >&2;}
9444a17663cSThomas Veerman        ac_cache_corrupted=:
9454a17663cSThomas Veerman      fi;;
9464a17663cSThomas Veerman  esac
9474a17663cSThomas Veerman  # Pass precious variables to config.status.  It doesn't matter if
9484a17663cSThomas Veerman  # we pass some twice (in addition to the command line arguments).
9494a17663cSThomas Veerman  if test "$ac_new_set" = set; then
9504a17663cSThomas Veerman    case $ac_new_val in
9514a17663cSThomas Veerman    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
9524a17663cSThomas Veerman      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
9534a17663cSThomas Veerman      ac_configure_args="$ac_configure_args '$ac_arg'"
9544a17663cSThomas Veerman      ;;
9554a17663cSThomas Veerman    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
9564a17663cSThomas Veerman       ;;
9574a17663cSThomas Veerman    esac
9584a17663cSThomas Veerman  fi
9594a17663cSThomas Veermandone
9604a17663cSThomas Veermanif $ac_cache_corrupted; then
961*0a6a1f1dSLionel Sambuc  { echo "$as_me:961: error: changes in the environment can compromise the build" >&5
9624a17663cSThomas Veermanecho "$as_me: error: changes in the environment can compromise the build" >&2;}
963*0a6a1f1dSLionel Sambuc  { { echo "$as_me:963: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
9644a17663cSThomas Veermanecho "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
9654a17663cSThomas Veerman   { (exit 1); exit 1; }; }
9664a17663cSThomas Veermanfi
9674a17663cSThomas Veerman
9684a17663cSThomas Veermanac_ext=c
9694a17663cSThomas Veermanac_cpp='$CPP $CPPFLAGS'
9704a17663cSThomas Veermanac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9714a17663cSThomas Veermanac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9724a17663cSThomas Veermanac_compiler_gnu=$ac_cv_c_compiler_gnu
9734a17663cSThomas Veermanac_main_return=return
9744a17663cSThomas Veerman
9754a17663cSThomas Veermancase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9764a17663cSThomas Veerman  *c*,-n*) ECHO_N= ECHO_C='
9774a17663cSThomas Veerman' ECHO_T='	' ;;
9784a17663cSThomas Veerman  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9794a17663cSThomas Veerman  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
9804a17663cSThomas Veermanesac
9814a17663cSThomas Veermanecho "#! $SHELL" >conftest.sh
9824a17663cSThomas Veermanecho  "exit 0"   >>conftest.sh
9834a17663cSThomas Veermanchmod +x conftest.sh
984*0a6a1f1dSLionel Sambucif { (echo "$as_me:984: PATH=\".;.\"; conftest.sh") >&5
9854a17663cSThomas Veerman  (PATH=".;."; conftest.sh) 2>&5
9864a17663cSThomas Veerman  ac_status=$?
987*0a6a1f1dSLionel Sambuc  echo "$as_me:987: \$? = $ac_status" >&5
9884a17663cSThomas Veerman  (exit $ac_status); }; then
9894a17663cSThomas Veerman  ac_path_separator=';'
9904a17663cSThomas Veermanelse
9914a17663cSThomas Veerman  ac_path_separator=:
9924a17663cSThomas Veermanfi
9934a17663cSThomas VeermanPATH_SEPARATOR="$ac_path_separator"
9944a17663cSThomas Veermanrm -f conftest.sh
9954a17663cSThomas Veerman
9964a17663cSThomas Veermanac_config_headers="$ac_config_headers config.h:config_h.in"
9974a17663cSThomas Veerman
9984a17663cSThomas Veermanac_aux_dir=
9994a17663cSThomas Veermanfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
10004a17663cSThomas Veerman  if test -f $ac_dir/install-sh; then
10014a17663cSThomas Veerman    ac_aux_dir=$ac_dir
10024a17663cSThomas Veerman    ac_install_sh="$ac_aux_dir/install-sh -c"
10034a17663cSThomas Veerman    break
10044a17663cSThomas Veerman  elif test -f $ac_dir/install.sh; then
10054a17663cSThomas Veerman    ac_aux_dir=$ac_dir
10064a17663cSThomas Veerman    ac_install_sh="$ac_aux_dir/install.sh -c"
10074a17663cSThomas Veerman    break
10084a17663cSThomas Veerman  elif test -f $ac_dir/shtool; then
10094a17663cSThomas Veerman    ac_aux_dir=$ac_dir
10104a17663cSThomas Veerman    ac_install_sh="$ac_aux_dir/shtool install -c"
10114a17663cSThomas Veerman    break
10124a17663cSThomas Veerman  fi
10134a17663cSThomas Veermandone
10144a17663cSThomas Veermanif test -z "$ac_aux_dir"; then
1015*0a6a1f1dSLionel Sambuc  { { echo "$as_me:1015: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
10164a17663cSThomas Veermanecho "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
10174a17663cSThomas Veerman   { (exit 1); exit 1; }; }
10184a17663cSThomas Veermanfi
10194a17663cSThomas Veermanac_config_guess="$SHELL $ac_aux_dir/config.guess"
10204a17663cSThomas Veermanac_config_sub="$SHELL $ac_aux_dir/config.sub"
10214a17663cSThomas Veermanac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
10224a17663cSThomas Veerman
10234a17663cSThomas Veerman# Make sure we can run config.sub.
10244a17663cSThomas Veerman$ac_config_sub sun4 >/dev/null 2>&1 ||
1025*0a6a1f1dSLionel Sambuc  { { echo "$as_me:1025: error: cannot run $ac_config_sub" >&5
10264a17663cSThomas Veermanecho "$as_me: error: cannot run $ac_config_sub" >&2;}
10274a17663cSThomas Veerman   { (exit 1); exit 1; }; }
10284a17663cSThomas Veerman
1029*0a6a1f1dSLionel Sambucecho "$as_me:1029: checking build system type" >&5
10304a17663cSThomas Veermanecho $ECHO_N "checking build system type... $ECHO_C" >&6
10314a17663cSThomas Veermanif test "${ac_cv_build+set}" = set; then
10324a17663cSThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
10334a17663cSThomas Veermanelse
10344a17663cSThomas Veerman  ac_cv_build_alias=$build_alias
10354a17663cSThomas Veermantest -z "$ac_cv_build_alias" &&
10364a17663cSThomas Veerman  ac_cv_build_alias=`$ac_config_guess`
10374a17663cSThomas Veermantest -z "$ac_cv_build_alias" &&
1038*0a6a1f1dSLionel Sambuc  { { echo "$as_me:1038: error: cannot guess build type; you must specify one" >&5
10394a17663cSThomas Veermanecho "$as_me: error: cannot guess build type; you must specify one" >&2;}
10404a17663cSThomas Veerman   { (exit 1); exit 1; }; }
10414a17663cSThomas Veermanac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1042*0a6a1f1dSLionel Sambuc  { { echo "$as_me:1042: error: $ac_config_sub $ac_cv_build_alias failed." >&5
10434a17663cSThomas Veermanecho "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
10444a17663cSThomas Veerman   { (exit 1); exit 1; }; }
10454a17663cSThomas Veerman
10464a17663cSThomas Veermanfi
1047*0a6a1f1dSLionel Sambucecho "$as_me:1047: result: $ac_cv_build" >&5
10484a17663cSThomas Veermanecho "${ECHO_T}$ac_cv_build" >&6
10494a17663cSThomas Veermanbuild=$ac_cv_build
10504a17663cSThomas Veermanbuild_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
10514a17663cSThomas Veermanbuild_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
10524a17663cSThomas Veermanbuild_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
10534a17663cSThomas Veerman
1054*0a6a1f1dSLionel Sambucecho "$as_me:1054: checking host system type" >&5
10554a17663cSThomas Veermanecho $ECHO_N "checking host system type... $ECHO_C" >&6
10564a17663cSThomas Veermanif test "${ac_cv_host+set}" = set; then
10574a17663cSThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
10584a17663cSThomas Veermanelse
10594a17663cSThomas Veerman  ac_cv_host_alias=$host_alias
10604a17663cSThomas Veermantest -z "$ac_cv_host_alias" &&
10614a17663cSThomas Veerman  ac_cv_host_alias=$ac_cv_build_alias
10624a17663cSThomas Veermanac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1063*0a6a1f1dSLionel Sambuc  { { echo "$as_me:1063: error: $ac_config_sub $ac_cv_host_alias failed" >&5
10644a17663cSThomas Veermanecho "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
10654a17663cSThomas Veerman   { (exit 1); exit 1; }; }
10664a17663cSThomas Veerman
10674a17663cSThomas Veermanfi
1068*0a6a1f1dSLionel Sambucecho "$as_me:1068: result: $ac_cv_host" >&5
10694a17663cSThomas Veermanecho "${ECHO_T}$ac_cv_host" >&6
10704a17663cSThomas Veermanhost=$ac_cv_host
10714a17663cSThomas Veermanhost_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
10724a17663cSThomas Veermanhost_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
10734a17663cSThomas Veermanhost_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
10744a17663cSThomas Veerman
10754a17663cSThomas Veermanif test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1076*0a6a1f1dSLionel Sambuc	echo "$as_me:1076: checking target system type" >&5
10774a17663cSThomas Veermanecho $ECHO_N "checking target system type... $ECHO_C" >&6
10784a17663cSThomas Veermanif test "${ac_cv_target+set}" = set; then
10794a17663cSThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
10804a17663cSThomas Veermanelse
10814a17663cSThomas Veerman  ac_cv_target_alias=$target_alias
10824a17663cSThomas Veermantest "x$ac_cv_target_alias" = "x" &&
10834a17663cSThomas Veerman  ac_cv_target_alias=$ac_cv_host_alias
10844a17663cSThomas Veermanac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1085*0a6a1f1dSLionel Sambuc  { { echo "$as_me:1085: error: $ac_config_sub $ac_cv_target_alias failed" >&5
10864a17663cSThomas Veermanecho "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
10874a17663cSThomas Veerman   { (exit 1); exit 1; }; }
10884a17663cSThomas Veerman
10894a17663cSThomas Veermanfi
1090*0a6a1f1dSLionel Sambucecho "$as_me:1090: result: $ac_cv_target" >&5
10914a17663cSThomas Veermanecho "${ECHO_T}$ac_cv_target" >&6
10924a17663cSThomas Veermantarget=$ac_cv_target
10934a17663cSThomas Veermantarget_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
10944a17663cSThomas Veermantarget_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
10954a17663cSThomas Veermantarget_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
10964a17663cSThomas Veerman
10974a17663cSThomas Veerman# The aliases save the names the user supplied, while $host etc.
10984a17663cSThomas Veerman# will get canonicalized.
10994a17663cSThomas Veermantest -n "$target_alias" &&
11004a17663cSThomas Veerman  test "$program_prefix$program_suffix$program_transform_name" = \
11014a17663cSThomas Veerman    NONENONEs,x,x, &&
11024a17663cSThomas Veerman  program_prefix=${target_alias}-
11034a17663cSThomas Veerman	system_name="$host_os"
11044a17663cSThomas Veermanelse
11054a17663cSThomas Veerman	system_name="`(uname -s -r) 2>/dev/null`"
11064a17663cSThomas Veerman	if test -z "$system_name" ; then
11074a17663cSThomas Veerman		system_name="`(hostname) 2>/dev/null`"
11084a17663cSThomas Veerman	fi
11094a17663cSThomas Veermanfi
111084d9c625SLionel Sambuctest -n "$system_name" &&
111184d9c625SLionel Sambuccat >>confdefs.h <<EOF
11124a17663cSThomas Veerman#define SYSTEM_NAME "$system_name"
11134a17663cSThomas VeermanEOF
11144a17663cSThomas Veerman
11154a17663cSThomas Veermanif test "${cf_cv_system_name+set}" = set; then
11164a17663cSThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
11174a17663cSThomas Veermanelse
11184a17663cSThomas Veerman  cf_cv_system_name="$system_name"
11194a17663cSThomas Veermanfi
11204a17663cSThomas Veerman
11214a17663cSThomas Veermantest -z "$system_name" && system_name="$cf_cv_system_name"
1122*0a6a1f1dSLionel Sambuctest -n "$cf_cv_system_name" && echo "$as_me:1122: result: Configuring for $cf_cv_system_name" >&5
11234a17663cSThomas Veermanecho "${ECHO_T}Configuring for $cf_cv_system_name" >&6
11244a17663cSThomas Veerman
11254a17663cSThomas Veermanif test ".$system_name" != ".$cf_cv_system_name" ; then
1126*0a6a1f1dSLionel Sambuc	echo "$as_me:1126: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
11274a17663cSThomas Veermanecho "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1128*0a6a1f1dSLionel Sambuc	{ { echo "$as_me:1128: error: \"Please remove config.cache and try again.\"" >&5
11294a17663cSThomas Veermanecho "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
11304a17663cSThomas Veerman   { (exit 1); exit 1; }; }
11314a17663cSThomas Veermanfi
11324a17663cSThomas Veerman
11334a17663cSThomas Veermantest "$program_prefix" != NONE &&
11344a17663cSThomas Veerman  program_transform_name="s,^,$program_prefix,;$program_transform_name"
11354a17663cSThomas Veerman# Use a double $ so make ignores it.
11364a17663cSThomas Veermantest "$program_suffix" != NONE &&
11374a17663cSThomas Veerman  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
11384a17663cSThomas Veerman# Double any \ or $.  echo might interpret backslashes.
11394a17663cSThomas Veerman# By default was `s,x,x', remove it if useless.
11404a17663cSThomas Veermancat <<\_ACEOF >conftest.sed
11414a17663cSThomas Veermans/[\\$]/&&/g;s/;s,x,x,$//
11424a17663cSThomas Veerman_ACEOF
11434a17663cSThomas Veermanprogram_transform_name=`echo $program_transform_name | sed -f conftest.sed`
11444a17663cSThomas Veermanrm conftest.sed
11454a17663cSThomas Veerman
11464a17663cSThomas Veermanac_ext=c
11474a17663cSThomas Veermanac_cpp='$CPP $CPPFLAGS'
11484a17663cSThomas Veermanac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11494a17663cSThomas Veermanac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11504a17663cSThomas Veermanac_compiler_gnu=$ac_cv_c_compiler_gnu
11514a17663cSThomas Veermanac_main_return=return
11524a17663cSThomas Veermanif test -n "$ac_tool_prefix"; then
11534a17663cSThomas Veerman  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11544a17663cSThomas Veermanset dummy ${ac_tool_prefix}gcc; ac_word=$2
1155*0a6a1f1dSLionel Sambucecho "$as_me:1155: checking for $ac_word" >&5
11564a17663cSThomas Veermanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11574a17663cSThomas Veermanif test "${ac_cv_prog_CC+set}" = set; then
11584a17663cSThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
11594a17663cSThomas Veermanelse
11604a17663cSThomas Veerman  if test -n "$CC"; then
11614a17663cSThomas Veerman  ac_cv_prog_CC="$CC" # Let the user override the test.
11624a17663cSThomas Veermanelse
11634a17663cSThomas Veerman  ac_save_IFS=$IFS; IFS=$ac_path_separator
11644a17663cSThomas Veermanac_dummy="$PATH"
11654a17663cSThomas Veermanfor ac_dir in $ac_dummy; do
11664a17663cSThomas Veerman  IFS=$ac_save_IFS
11674a17663cSThomas Veerman  test -z "$ac_dir" && ac_dir=.
11684a17663cSThomas Veerman  $as_executable_p "$ac_dir/$ac_word" || continue
11694a17663cSThomas Veermanac_cv_prog_CC="${ac_tool_prefix}gcc"
1170*0a6a1f1dSLionel Sambucecho "$as_me:1170: found $ac_dir/$ac_word" >&5
11714a17663cSThomas Veermanbreak
11724a17663cSThomas Veermandone
11734a17663cSThomas Veerman
11744a17663cSThomas Veermanfi
11754a17663cSThomas Veermanfi
11764a17663cSThomas VeermanCC=$ac_cv_prog_CC
11774a17663cSThomas Veermanif test -n "$CC"; then
1178*0a6a1f1dSLionel Sambuc  echo "$as_me:1178: result: $CC" >&5
11794a17663cSThomas Veermanecho "${ECHO_T}$CC" >&6
11804a17663cSThomas Veermanelse
1181*0a6a1f1dSLionel Sambuc  echo "$as_me:1181: result: no" >&5
11824a17663cSThomas Veermanecho "${ECHO_T}no" >&6
11834a17663cSThomas Veermanfi
11844a17663cSThomas Veerman
11854a17663cSThomas Veermanfi
11864a17663cSThomas Veermanif test -z "$ac_cv_prog_CC"; then
11874a17663cSThomas Veerman  ac_ct_CC=$CC
11884a17663cSThomas Veerman  # Extract the first word of "gcc", so it can be a program name with args.
11894a17663cSThomas Veermanset dummy gcc; ac_word=$2
1190*0a6a1f1dSLionel Sambucecho "$as_me:1190: checking for $ac_word" >&5
11914a17663cSThomas Veermanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11924a17663cSThomas Veermanif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11934a17663cSThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
11944a17663cSThomas Veermanelse
11954a17663cSThomas Veerman  if test -n "$ac_ct_CC"; then
11964a17663cSThomas Veerman  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11974a17663cSThomas Veermanelse
11984a17663cSThomas Veerman  ac_save_IFS=$IFS; IFS=$ac_path_separator
11994a17663cSThomas Veermanac_dummy="$PATH"
12004a17663cSThomas Veermanfor ac_dir in $ac_dummy; do
12014a17663cSThomas Veerman  IFS=$ac_save_IFS
12024a17663cSThomas Veerman  test -z "$ac_dir" && ac_dir=.
12034a17663cSThomas Veerman  $as_executable_p "$ac_dir/$ac_word" || continue
12044a17663cSThomas Veermanac_cv_prog_ac_ct_CC="gcc"
1205*0a6a1f1dSLionel Sambucecho "$as_me:1205: found $ac_dir/$ac_word" >&5
12064a17663cSThomas Veermanbreak
12074a17663cSThomas Veermandone
12084a17663cSThomas Veerman
12094a17663cSThomas Veermanfi
12104a17663cSThomas Veermanfi
12114a17663cSThomas Veermanac_ct_CC=$ac_cv_prog_ac_ct_CC
12124a17663cSThomas Veermanif test -n "$ac_ct_CC"; then
1213*0a6a1f1dSLionel Sambuc  echo "$as_me:1213: result: $ac_ct_CC" >&5
12144a17663cSThomas Veermanecho "${ECHO_T}$ac_ct_CC" >&6
12154a17663cSThomas Veermanelse
1216*0a6a1f1dSLionel Sambuc  echo "$as_me:1216: result: no" >&5
12174a17663cSThomas Veermanecho "${ECHO_T}no" >&6
12184a17663cSThomas Veermanfi
12194a17663cSThomas Veerman
12204a17663cSThomas Veerman  CC=$ac_ct_CC
12214a17663cSThomas Veermanelse
12224a17663cSThomas Veerman  CC="$ac_cv_prog_CC"
12234a17663cSThomas Veermanfi
12244a17663cSThomas Veerman
12254a17663cSThomas Veermanif test -z "$CC"; then
12264a17663cSThomas Veerman  if test -n "$ac_tool_prefix"; then
12274a17663cSThomas Veerman  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12284a17663cSThomas Veermanset dummy ${ac_tool_prefix}cc; ac_word=$2
1229*0a6a1f1dSLionel Sambucecho "$as_me:1229: checking for $ac_word" >&5
12304a17663cSThomas Veermanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12314a17663cSThomas Veermanif test "${ac_cv_prog_CC+set}" = set; then
12324a17663cSThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
12334a17663cSThomas Veermanelse
12344a17663cSThomas Veerman  if test -n "$CC"; then
12354a17663cSThomas Veerman  ac_cv_prog_CC="$CC" # Let the user override the test.
12364a17663cSThomas Veermanelse
12374a17663cSThomas Veerman  ac_save_IFS=$IFS; IFS=$ac_path_separator
12384a17663cSThomas Veermanac_dummy="$PATH"
12394a17663cSThomas Veermanfor ac_dir in $ac_dummy; do
12404a17663cSThomas Veerman  IFS=$ac_save_IFS
12414a17663cSThomas Veerman  test -z "$ac_dir" && ac_dir=.
12424a17663cSThomas Veerman  $as_executable_p "$ac_dir/$ac_word" || continue
12434a17663cSThomas Veermanac_cv_prog_CC="${ac_tool_prefix}cc"
1244*0a6a1f1dSLionel Sambucecho "$as_me:1244: found $ac_dir/$ac_word" >&5
12454a17663cSThomas Veermanbreak
12464a17663cSThomas Veermandone
12474a17663cSThomas Veerman
12484a17663cSThomas Veermanfi
12494a17663cSThomas Veermanfi
12504a17663cSThomas VeermanCC=$ac_cv_prog_CC
12514a17663cSThomas Veermanif test -n "$CC"; then
1252*0a6a1f1dSLionel Sambuc  echo "$as_me:1252: result: $CC" >&5
12534a17663cSThomas Veermanecho "${ECHO_T}$CC" >&6
12544a17663cSThomas Veermanelse
1255*0a6a1f1dSLionel Sambuc  echo "$as_me:1255: result: no" >&5
12564a17663cSThomas Veermanecho "${ECHO_T}no" >&6
12574a17663cSThomas Veermanfi
12584a17663cSThomas Veerman
12594a17663cSThomas Veermanfi
12604a17663cSThomas Veermanif test -z "$ac_cv_prog_CC"; then
12614a17663cSThomas Veerman  ac_ct_CC=$CC
12624a17663cSThomas Veerman  # Extract the first word of "cc", so it can be a program name with args.
12634a17663cSThomas Veermanset dummy cc; ac_word=$2
1264*0a6a1f1dSLionel Sambucecho "$as_me:1264: checking for $ac_word" >&5
12654a17663cSThomas Veermanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12664a17663cSThomas Veermanif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12674a17663cSThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
12684a17663cSThomas Veermanelse
12694a17663cSThomas Veerman  if test -n "$ac_ct_CC"; then
12704a17663cSThomas Veerman  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12714a17663cSThomas Veermanelse
12724a17663cSThomas Veerman  ac_save_IFS=$IFS; IFS=$ac_path_separator
12734a17663cSThomas Veermanac_dummy="$PATH"
12744a17663cSThomas Veermanfor ac_dir in $ac_dummy; do
12754a17663cSThomas Veerman  IFS=$ac_save_IFS
12764a17663cSThomas Veerman  test -z "$ac_dir" && ac_dir=.
12774a17663cSThomas Veerman  $as_executable_p "$ac_dir/$ac_word" || continue
12784a17663cSThomas Veermanac_cv_prog_ac_ct_CC="cc"
1279*0a6a1f1dSLionel Sambucecho "$as_me:1279: found $ac_dir/$ac_word" >&5
12804a17663cSThomas Veermanbreak
12814a17663cSThomas Veermandone
12824a17663cSThomas Veerman
12834a17663cSThomas Veermanfi
12844a17663cSThomas Veermanfi
12854a17663cSThomas Veermanac_ct_CC=$ac_cv_prog_ac_ct_CC
12864a17663cSThomas Veermanif test -n "$ac_ct_CC"; then
1287*0a6a1f1dSLionel Sambuc  echo "$as_me:1287: result: $ac_ct_CC" >&5
12884a17663cSThomas Veermanecho "${ECHO_T}$ac_ct_CC" >&6
12894a17663cSThomas Veermanelse
1290*0a6a1f1dSLionel Sambuc  echo "$as_me:1290: result: no" >&5
12914a17663cSThomas Veermanecho "${ECHO_T}no" >&6
12924a17663cSThomas Veermanfi
12934a17663cSThomas Veerman
12944a17663cSThomas Veerman  CC=$ac_ct_CC
12954a17663cSThomas Veermanelse
12964a17663cSThomas Veerman  CC="$ac_cv_prog_CC"
12974a17663cSThomas Veermanfi
12984a17663cSThomas Veerman
12994a17663cSThomas Veermanfi
13004a17663cSThomas Veermanif test -z "$CC"; then
13014a17663cSThomas Veerman  # Extract the first word of "cc", so it can be a program name with args.
13024a17663cSThomas Veermanset dummy cc; ac_word=$2
1303*0a6a1f1dSLionel Sambucecho "$as_me:1303: checking for $ac_word" >&5
13044a17663cSThomas Veermanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13054a17663cSThomas Veermanif test "${ac_cv_prog_CC+set}" = set; then
13064a17663cSThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
13074a17663cSThomas Veermanelse
13084a17663cSThomas Veerman  if test -n "$CC"; then
13094a17663cSThomas Veerman  ac_cv_prog_CC="$CC" # Let the user override the test.
13104a17663cSThomas Veermanelse
13114a17663cSThomas Veerman  ac_prog_rejected=no
13124a17663cSThomas Veerman  ac_save_IFS=$IFS; IFS=$ac_path_separator
13134a17663cSThomas Veermanac_dummy="$PATH"
13144a17663cSThomas Veermanfor ac_dir in $ac_dummy; do
13154a17663cSThomas Veerman  IFS=$ac_save_IFS
13164a17663cSThomas Veerman  test -z "$ac_dir" && ac_dir=.
13174a17663cSThomas Veerman  $as_executable_p "$ac_dir/$ac_word" || continue
13184a17663cSThomas Veermanif test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
13194a17663cSThomas Veerman  ac_prog_rejected=yes
13204a17663cSThomas Veerman  continue
13214a17663cSThomas Veermanfi
13224a17663cSThomas Veermanac_cv_prog_CC="cc"
1323*0a6a1f1dSLionel Sambucecho "$as_me:1323: found $ac_dir/$ac_word" >&5
13244a17663cSThomas Veermanbreak
13254a17663cSThomas Veermandone
13264a17663cSThomas Veerman
13274a17663cSThomas Veermanif test $ac_prog_rejected = yes; then
13284a17663cSThomas Veerman  # We found a bogon in the path, so make sure we never use it.
13294a17663cSThomas Veerman  set dummy $ac_cv_prog_CC
13304a17663cSThomas Veerman  shift
13314a17663cSThomas Veerman  if test $# != 0; then
13324a17663cSThomas Veerman    # We chose a different compiler from the bogus one.
13334a17663cSThomas Veerman    # However, it has the same basename, so the bogon will be chosen
13344a17663cSThomas Veerman    # first if we set CC to just the basename; use the full file name.
13354a17663cSThomas Veerman    shift
13364a17663cSThomas Veerman    set dummy "$ac_dir/$ac_word" ${1+"$@"}
13374a17663cSThomas Veerman    shift
13384a17663cSThomas Veerman    ac_cv_prog_CC="$@"
13394a17663cSThomas Veerman  fi
13404a17663cSThomas Veermanfi
13414a17663cSThomas Veermanfi
13424a17663cSThomas Veermanfi
13434a17663cSThomas VeermanCC=$ac_cv_prog_CC
13444a17663cSThomas Veermanif test -n "$CC"; then
1345*0a6a1f1dSLionel Sambuc  echo "$as_me:1345: result: $CC" >&5
13464a17663cSThomas Veermanecho "${ECHO_T}$CC" >&6
13474a17663cSThomas Veermanelse
1348*0a6a1f1dSLionel Sambuc  echo "$as_me:1348: result: no" >&5
13494a17663cSThomas Veermanecho "${ECHO_T}no" >&6
13504a17663cSThomas Veermanfi
13514a17663cSThomas Veerman
13524a17663cSThomas Veermanfi
13534a17663cSThomas Veermanif test -z "$CC"; then
13544a17663cSThomas Veerman  if test -n "$ac_tool_prefix"; then
13554a17663cSThomas Veerman  for ac_prog in cl
13564a17663cSThomas Veerman  do
13574a17663cSThomas Veerman    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13584a17663cSThomas Veermanset dummy $ac_tool_prefix$ac_prog; ac_word=$2
1359*0a6a1f1dSLionel Sambucecho "$as_me:1359: checking for $ac_word" >&5
13604a17663cSThomas Veermanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13614a17663cSThomas Veermanif test "${ac_cv_prog_CC+set}" = set; then
13624a17663cSThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
13634a17663cSThomas Veermanelse
13644a17663cSThomas Veerman  if test -n "$CC"; then
13654a17663cSThomas Veerman  ac_cv_prog_CC="$CC" # Let the user override the test.
13664a17663cSThomas Veermanelse
13674a17663cSThomas Veerman  ac_save_IFS=$IFS; IFS=$ac_path_separator
13684a17663cSThomas Veermanac_dummy="$PATH"
13694a17663cSThomas Veermanfor ac_dir in $ac_dummy; do
13704a17663cSThomas Veerman  IFS=$ac_save_IFS
13714a17663cSThomas Veerman  test -z "$ac_dir" && ac_dir=.
13724a17663cSThomas Veerman  $as_executable_p "$ac_dir/$ac_word" || continue
13734a17663cSThomas Veermanac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1374*0a6a1f1dSLionel Sambucecho "$as_me:1374: found $ac_dir/$ac_word" >&5
13754a17663cSThomas Veermanbreak
13764a17663cSThomas Veermandone
13774a17663cSThomas Veerman
13784a17663cSThomas Veermanfi
13794a17663cSThomas Veermanfi
13804a17663cSThomas VeermanCC=$ac_cv_prog_CC
13814a17663cSThomas Veermanif test -n "$CC"; then
1382*0a6a1f1dSLionel Sambuc  echo "$as_me:1382: result: $CC" >&5
13834a17663cSThomas Veermanecho "${ECHO_T}$CC" >&6
13844a17663cSThomas Veermanelse
1385*0a6a1f1dSLionel Sambuc  echo "$as_me:1385: result: no" >&5
13864a17663cSThomas Veermanecho "${ECHO_T}no" >&6
13874a17663cSThomas Veermanfi
13884a17663cSThomas Veerman
13894a17663cSThomas Veerman    test -n "$CC" && break
13904a17663cSThomas Veerman  done
13914a17663cSThomas Veermanfi
13924a17663cSThomas Veermanif test -z "$CC"; then
13934a17663cSThomas Veerman  ac_ct_CC=$CC
13944a17663cSThomas Veerman  for ac_prog in cl
13954a17663cSThomas Veermando
13964a17663cSThomas Veerman  # Extract the first word of "$ac_prog", so it can be a program name with args.
13974a17663cSThomas Veermanset dummy $ac_prog; ac_word=$2
1398*0a6a1f1dSLionel Sambucecho "$as_me:1398: checking for $ac_word" >&5
13994a17663cSThomas Veermanecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14004a17663cSThomas Veermanif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14014a17663cSThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
14024a17663cSThomas Veermanelse
14034a17663cSThomas Veerman  if test -n "$ac_ct_CC"; then
14044a17663cSThomas Veerman  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14054a17663cSThomas Veermanelse
14064a17663cSThomas Veerman  ac_save_IFS=$IFS; IFS=$ac_path_separator
14074a17663cSThomas Veermanac_dummy="$PATH"
14084a17663cSThomas Veermanfor ac_dir in $ac_dummy; do
14094a17663cSThomas Veerman  IFS=$ac_save_IFS
14104a17663cSThomas Veerman  test -z "$ac_dir" && ac_dir=.
14114a17663cSThomas Veerman  $as_executable_p "$ac_dir/$ac_word" || continue
14124a17663cSThomas Veermanac_cv_prog_ac_ct_CC="$ac_prog"
1413*0a6a1f1dSLionel Sambucecho "$as_me:1413: found $ac_dir/$ac_word" >&5
14144a17663cSThomas Veermanbreak
14154a17663cSThomas Veermandone
14164a17663cSThomas Veerman
14174a17663cSThomas Veermanfi
14184a17663cSThomas Veermanfi
14194a17663cSThomas Veermanac_ct_CC=$ac_cv_prog_ac_ct_CC
14204a17663cSThomas Veermanif test -n "$ac_ct_CC"; then
1421*0a6a1f1dSLionel Sambuc  echo "$as_me:1421: result: $ac_ct_CC" >&5
14224a17663cSThomas Veermanecho "${ECHO_T}$ac_ct_CC" >&6
14234a17663cSThomas Veermanelse
1424*0a6a1f1dSLionel Sambuc  echo "$as_me:1424: result: no" >&5
14254a17663cSThomas Veermanecho "${ECHO_T}no" >&6
14264a17663cSThomas Veermanfi
14274a17663cSThomas Veerman
14284a17663cSThomas Veerman  test -n "$ac_ct_CC" && break
14294a17663cSThomas Veermandone
14304a17663cSThomas Veerman
14314a17663cSThomas Veerman  CC=$ac_ct_CC
14324a17663cSThomas Veermanfi
14334a17663cSThomas Veerman
14344a17663cSThomas Veermanfi
14354a17663cSThomas Veerman
1436*0a6a1f1dSLionel Sambuctest -z "$CC" && { { echo "$as_me:1436: error: no acceptable cc found in \$PATH" >&5
14374a17663cSThomas Veermanecho "$as_me: error: no acceptable cc found in \$PATH" >&2;}
14384a17663cSThomas Veerman   { (exit 1); exit 1; }; }
14394a17663cSThomas Veerman
14404a17663cSThomas Veerman# Provide some information about the compiler.
1441*0a6a1f1dSLionel Sambucecho "$as_me:1441:" \
14424a17663cSThomas Veerman     "checking for C compiler version" >&5
14434a17663cSThomas Veermanac_compiler=`set X $ac_compile; echo $2`
1444*0a6a1f1dSLionel Sambuc{ (eval echo "$as_me:1444: \"$ac_compiler --version </dev/null >&5\"") >&5
14454a17663cSThomas Veerman  (eval $ac_compiler --version </dev/null >&5) 2>&5
14464a17663cSThomas Veerman  ac_status=$?
1447*0a6a1f1dSLionel Sambuc  echo "$as_me:1447: \$? = $ac_status" >&5
14484a17663cSThomas Veerman  (exit $ac_status); }
1449*0a6a1f1dSLionel Sambuc{ (eval echo "$as_me:1449: \"$ac_compiler -v </dev/null >&5\"") >&5
145084d9c625SLionel Sambuc  (eval $ac_compiler -v </dev/null >&5) 2>&5
145184d9c625SLionel Sambuc  ac_status=$?
1452*0a6a1f1dSLionel Sambuc  echo "$as_me:1452: \$? = $ac_status" >&5
145384d9c625SLionel Sambuc  (exit $ac_status); }
1454*0a6a1f1dSLionel Sambuc{ (eval echo "$as_me:1454: \"$ac_compiler -V </dev/null >&5\"") >&5
145584d9c625SLionel Sambuc  (eval $ac_compiler -V </dev/null >&5) 2>&5
145684d9c625SLionel Sambuc  ac_status=$?
1457*0a6a1f1dSLionel Sambuc  echo "$as_me:1457: \$? = $ac_status" >&5
145884d9c625SLionel Sambuc  (exit $ac_status); }
14594a17663cSThomas Veerman
14604a17663cSThomas Veermancat >conftest.$ac_ext <<_ACEOF
1461*0a6a1f1dSLionel Sambuc#line 1461 "configure"
14624a17663cSThomas Veerman#include "confdefs.h"
14634a17663cSThomas Veerman
14644a17663cSThomas Veermanint
14654a17663cSThomas Veermanmain ()
14664a17663cSThomas Veerman{
14674a17663cSThomas Veerman
14684a17663cSThomas Veerman  ;
14694a17663cSThomas Veerman  return 0;
14704a17663cSThomas Veerman}
14714a17663cSThomas Veerman_ACEOF
14724a17663cSThomas Veermanac_clean_files_save=$ac_clean_files
14734a17663cSThomas Veermanac_clean_files="$ac_clean_files a.out a.exe"
14744a17663cSThomas Veerman# Try to create an executable without -o first, disregard a.out.
14754a17663cSThomas Veerman# It will help us diagnose broken compilers, and finding out an intuition
14764a17663cSThomas Veerman# of exeext.
1477*0a6a1f1dSLionel Sambucecho "$as_me:1477: checking for C compiler default output" >&5
14784a17663cSThomas Veermanecho $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
14794a17663cSThomas Veermanac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1480*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:1480: \"$ac_link_default\"") >&5
14814a17663cSThomas Veerman  (eval $ac_link_default) 2>&5
14824a17663cSThomas Veerman  ac_status=$?
1483*0a6a1f1dSLionel Sambuc  echo "$as_me:1483: \$? = $ac_status" >&5
14844a17663cSThomas Veerman  (exit $ac_status); }; then
14854a17663cSThomas Veerman  # Find the output, starting from the most likely.  This scheme is
14864a17663cSThomas Veerman# not robust to junk in `.', hence go to wildcards (a.*) only as a last
14874a17663cSThomas Veerman# resort.
14884a17663cSThomas Veermanfor ac_file in `ls a.exe conftest.exe 2>/dev/null;
14894a17663cSThomas Veerman                ls a.out conftest 2>/dev/null;
14904a17663cSThomas Veerman                ls a.* conftest.* 2>/dev/null`; do
14914a17663cSThomas Veerman  case $ac_file in
14924a17663cSThomas Veerman    *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
14934a17663cSThomas Veerman    a.out ) # We found the default executable, but exeext='' is most
14944a17663cSThomas Veerman            # certainly right.
14954a17663cSThomas Veerman            break;;
14964a17663cSThomas Veerman    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14974a17663cSThomas Veerman          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
14984a17663cSThomas Veerman          export ac_cv_exeext
14994a17663cSThomas Veerman          break;;
15004a17663cSThomas Veerman    * ) break;;
15014a17663cSThomas Veerman  esac
15024a17663cSThomas Veermandone
15034a17663cSThomas Veermanelse
15044a17663cSThomas Veerman  echo "$as_me: failed program was:" >&5
15054a17663cSThomas Veermancat conftest.$ac_ext >&5
1506*0a6a1f1dSLionel Sambuc{ { echo "$as_me:1506: error: C compiler cannot create executables" >&5
15074a17663cSThomas Veermanecho "$as_me: error: C compiler cannot create executables" >&2;}
15084a17663cSThomas Veerman   { (exit 77); exit 77; }; }
15094a17663cSThomas Veermanfi
15104a17663cSThomas Veerman
15114a17663cSThomas Veermanac_exeext=$ac_cv_exeext
1512*0a6a1f1dSLionel Sambucecho "$as_me:1512: result: $ac_file" >&5
15134a17663cSThomas Veermanecho "${ECHO_T}$ac_file" >&6
15144a17663cSThomas Veerman
15154a17663cSThomas Veerman# Check the compiler produces executables we can run.  If not, either
15164a17663cSThomas Veerman# the compiler is broken, or we cross compile.
1517*0a6a1f1dSLionel Sambucecho "$as_me:1517: checking whether the C compiler works" >&5
15184a17663cSThomas Veermanecho $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
15194a17663cSThomas Veerman# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
15204a17663cSThomas Veerman# If not cross compiling, check that we can run a simple program.
15214a17663cSThomas Veermanif test "$cross_compiling" != yes; then
15224a17663cSThomas Veerman  if { ac_try='./$ac_file'
1523*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:1523: \"$ac_try\"") >&5
15244a17663cSThomas Veerman  (eval $ac_try) 2>&5
15254a17663cSThomas Veerman  ac_status=$?
1526*0a6a1f1dSLionel Sambuc  echo "$as_me:1526: \$? = $ac_status" >&5
15274a17663cSThomas Veerman  (exit $ac_status); }; }; then
15284a17663cSThomas Veerman    cross_compiling=no
15294a17663cSThomas Veerman  else
15304a17663cSThomas Veerman    if test "$cross_compiling" = maybe; then
15314a17663cSThomas Veerman	cross_compiling=yes
15324a17663cSThomas Veerman    else
1533*0a6a1f1dSLionel Sambuc	{ { echo "$as_me:1533: error: cannot run C compiled programs.
15344a17663cSThomas VeermanIf you meant to cross compile, use \`--host'." >&5
15354a17663cSThomas Veermanecho "$as_me: error: cannot run C compiled programs.
15364a17663cSThomas VeermanIf you meant to cross compile, use \`--host'." >&2;}
15374a17663cSThomas Veerman   { (exit 1); exit 1; }; }
15384a17663cSThomas Veerman    fi
15394a17663cSThomas Veerman  fi
15404a17663cSThomas Veermanfi
1541*0a6a1f1dSLionel Sambucecho "$as_me:1541: result: yes" >&5
15424a17663cSThomas Veermanecho "${ECHO_T}yes" >&6
15434a17663cSThomas Veerman
15444a17663cSThomas Veermanrm -f a.out a.exe conftest$ac_cv_exeext
15454a17663cSThomas Veermanac_clean_files=$ac_clean_files_save
15464a17663cSThomas Veerman# Check the compiler produces executables we can run.  If not, either
15474a17663cSThomas Veerman# the compiler is broken, or we cross compile.
1548*0a6a1f1dSLionel Sambucecho "$as_me:1548: checking whether we are cross compiling" >&5
15494a17663cSThomas Veermanecho $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1550*0a6a1f1dSLionel Sambucecho "$as_me:1550: result: $cross_compiling" >&5
15514a17663cSThomas Veermanecho "${ECHO_T}$cross_compiling" >&6
15524a17663cSThomas Veerman
1553*0a6a1f1dSLionel Sambucecho "$as_me:1553: checking for executable suffix" >&5
15544a17663cSThomas Veermanecho $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1555*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:1555: \"$ac_link\"") >&5
15564a17663cSThomas Veerman  (eval $ac_link) 2>&5
15574a17663cSThomas Veerman  ac_status=$?
1558*0a6a1f1dSLionel Sambuc  echo "$as_me:1558: \$? = $ac_status" >&5
15594a17663cSThomas Veerman  (exit $ac_status); }; then
15604a17663cSThomas Veerman  # If both `conftest.exe' and `conftest' are `present' (well, observable)
15614a17663cSThomas Veerman# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
15624a17663cSThomas Veerman# work properly (i.e., refer to `conftest.exe'), while it won't with
15634a17663cSThomas Veerman# `rm'.
15644a17663cSThomas Veermanfor ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
15654a17663cSThomas Veerman  case $ac_file in
15664a17663cSThomas Veerman    *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
15674a17663cSThomas Veerman    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
15684a17663cSThomas Veerman          export ac_cv_exeext
15694a17663cSThomas Veerman          break;;
15704a17663cSThomas Veerman    * ) break;;
15714a17663cSThomas Veerman  esac
15724a17663cSThomas Veermandone
15734a17663cSThomas Veermanelse
1574*0a6a1f1dSLionel Sambuc  { { echo "$as_me:1574: error: cannot compute EXEEXT: cannot compile and link" >&5
15754a17663cSThomas Veermanecho "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
15764a17663cSThomas Veerman   { (exit 1); exit 1; }; }
15774a17663cSThomas Veermanfi
15784a17663cSThomas Veerman
15794a17663cSThomas Veermanrm -f conftest$ac_cv_exeext
1580*0a6a1f1dSLionel Sambucecho "$as_me:1580: result: $ac_cv_exeext" >&5
15814a17663cSThomas Veermanecho "${ECHO_T}$ac_cv_exeext" >&6
15824a17663cSThomas Veerman
15834a17663cSThomas Veermanrm -f conftest.$ac_ext
15844a17663cSThomas VeermanEXEEXT=$ac_cv_exeext
15854a17663cSThomas Veermanac_exeext=$EXEEXT
1586*0a6a1f1dSLionel Sambucecho "$as_me:1586: checking for object suffix" >&5
15874a17663cSThomas Veermanecho $ECHO_N "checking for object suffix... $ECHO_C" >&6
15884a17663cSThomas Veermanif test "${ac_cv_objext+set}" = set; then
15894a17663cSThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
15904a17663cSThomas Veermanelse
15914a17663cSThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
1592*0a6a1f1dSLionel Sambuc#line 1592 "configure"
15934a17663cSThomas Veerman#include "confdefs.h"
15944a17663cSThomas Veerman
15954a17663cSThomas Veermanint
15964a17663cSThomas Veermanmain ()
15974a17663cSThomas Veerman{
15984a17663cSThomas Veerman
15994a17663cSThomas Veerman  ;
16004a17663cSThomas Veerman  return 0;
16014a17663cSThomas Veerman}
16024a17663cSThomas Veerman_ACEOF
16034a17663cSThomas Veermanrm -f conftest.o conftest.obj
1604*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:1604: \"$ac_compile\"") >&5
16054a17663cSThomas Veerman  (eval $ac_compile) 2>&5
16064a17663cSThomas Veerman  ac_status=$?
1607*0a6a1f1dSLionel Sambuc  echo "$as_me:1607: \$? = $ac_status" >&5
16084a17663cSThomas Veerman  (exit $ac_status); }; then
16094a17663cSThomas Veerman  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
16104a17663cSThomas Veerman  case $ac_file in
16114a17663cSThomas Veerman    *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
16124a17663cSThomas Veerman    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
16134a17663cSThomas Veerman       break;;
16144a17663cSThomas Veerman  esac
16154a17663cSThomas Veermandone
16164a17663cSThomas Veermanelse
16174a17663cSThomas Veerman  echo "$as_me: failed program was:" >&5
16184a17663cSThomas Veermancat conftest.$ac_ext >&5
1619*0a6a1f1dSLionel Sambuc{ { echo "$as_me:1619: error: cannot compute OBJEXT: cannot compile" >&5
16204a17663cSThomas Veermanecho "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
16214a17663cSThomas Veerman   { (exit 1); exit 1; }; }
16224a17663cSThomas Veermanfi
16234a17663cSThomas Veerman
16244a17663cSThomas Veermanrm -f conftest.$ac_cv_objext conftest.$ac_ext
16254a17663cSThomas Veermanfi
1626*0a6a1f1dSLionel Sambucecho "$as_me:1626: result: $ac_cv_objext" >&5
16274a17663cSThomas Veermanecho "${ECHO_T}$ac_cv_objext" >&6
16284a17663cSThomas VeermanOBJEXT=$ac_cv_objext
16294a17663cSThomas Veermanac_objext=$OBJEXT
1630*0a6a1f1dSLionel Sambucecho "$as_me:1630: checking whether we are using the GNU C compiler" >&5
16314a17663cSThomas Veermanecho $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
16324a17663cSThomas Veermanif test "${ac_cv_c_compiler_gnu+set}" = set; then
16334a17663cSThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
16344a17663cSThomas Veermanelse
16354a17663cSThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
1636*0a6a1f1dSLionel Sambuc#line 1636 "configure"
16374a17663cSThomas Veerman#include "confdefs.h"
16384a17663cSThomas Veerman
16394a17663cSThomas Veermanint
16404a17663cSThomas Veermanmain ()
16414a17663cSThomas Veerman{
16424a17663cSThomas Veerman#ifndef __GNUC__
16434a17663cSThomas Veerman       choke me
16444a17663cSThomas Veerman#endif
16454a17663cSThomas Veerman
16464a17663cSThomas Veerman  ;
16474a17663cSThomas Veerman  return 0;
16484a17663cSThomas Veerman}
16494a17663cSThomas Veerman_ACEOF
16504a17663cSThomas Veermanrm -f conftest.$ac_objext
1651*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:1651: \"$ac_compile\"") >&5
16524a17663cSThomas Veerman  (eval $ac_compile) 2>&5
16534a17663cSThomas Veerman  ac_status=$?
1654*0a6a1f1dSLionel Sambuc  echo "$as_me:1654: \$? = $ac_status" >&5
16554a17663cSThomas Veerman  (exit $ac_status); } &&
16564a17663cSThomas Veerman         { ac_try='test -s conftest.$ac_objext'
1657*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:1657: \"$ac_try\"") >&5
16584a17663cSThomas Veerman  (eval $ac_try) 2>&5
16594a17663cSThomas Veerman  ac_status=$?
1660*0a6a1f1dSLionel Sambuc  echo "$as_me:1660: \$? = $ac_status" >&5
16614a17663cSThomas Veerman  (exit $ac_status); }; }; then
16624a17663cSThomas Veerman  ac_compiler_gnu=yes
16634a17663cSThomas Veermanelse
16644a17663cSThomas Veerman  echo "$as_me: failed program was:" >&5
16654a17663cSThomas Veermancat conftest.$ac_ext >&5
16664a17663cSThomas Veermanac_compiler_gnu=no
16674a17663cSThomas Veermanfi
16684a17663cSThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
16694a17663cSThomas Veermanac_cv_c_compiler_gnu=$ac_compiler_gnu
16704a17663cSThomas Veerman
16714a17663cSThomas Veermanfi
1672*0a6a1f1dSLionel Sambucecho "$as_me:1672: result: $ac_cv_c_compiler_gnu" >&5
16734a17663cSThomas Veermanecho "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
16744a17663cSThomas VeermanGCC=`test $ac_compiler_gnu = yes && echo yes`
16754a17663cSThomas Veermanac_test_CFLAGS=${CFLAGS+set}
16764a17663cSThomas Veermanac_save_CFLAGS=$CFLAGS
16774a17663cSThomas VeermanCFLAGS="-g"
1678*0a6a1f1dSLionel Sambucecho "$as_me:1678: checking whether $CC accepts -g" >&5
16794a17663cSThomas Veermanecho $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
16804a17663cSThomas Veermanif test "${ac_cv_prog_cc_g+set}" = set; then
16814a17663cSThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
16824a17663cSThomas Veermanelse
16834a17663cSThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
1684*0a6a1f1dSLionel Sambuc#line 1684 "configure"
16854a17663cSThomas Veerman#include "confdefs.h"
16864a17663cSThomas Veerman
16874a17663cSThomas Veermanint
16884a17663cSThomas Veermanmain ()
16894a17663cSThomas Veerman{
16904a17663cSThomas Veerman
16914a17663cSThomas Veerman  ;
16924a17663cSThomas Veerman  return 0;
16934a17663cSThomas Veerman}
16944a17663cSThomas Veerman_ACEOF
16954a17663cSThomas Veermanrm -f conftest.$ac_objext
1696*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:1696: \"$ac_compile\"") >&5
16974a17663cSThomas Veerman  (eval $ac_compile) 2>&5
16984a17663cSThomas Veerman  ac_status=$?
1699*0a6a1f1dSLionel Sambuc  echo "$as_me:1699: \$? = $ac_status" >&5
17004a17663cSThomas Veerman  (exit $ac_status); } &&
17014a17663cSThomas Veerman         { ac_try='test -s conftest.$ac_objext'
1702*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:1702: \"$ac_try\"") >&5
17034a17663cSThomas Veerman  (eval $ac_try) 2>&5
17044a17663cSThomas Veerman  ac_status=$?
1705*0a6a1f1dSLionel Sambuc  echo "$as_me:1705: \$? = $ac_status" >&5
17064a17663cSThomas Veerman  (exit $ac_status); }; }; then
17074a17663cSThomas Veerman  ac_cv_prog_cc_g=yes
17084a17663cSThomas Veermanelse
17094a17663cSThomas Veerman  echo "$as_me: failed program was:" >&5
17104a17663cSThomas Veermancat conftest.$ac_ext >&5
17114a17663cSThomas Veermanac_cv_prog_cc_g=no
17124a17663cSThomas Veermanfi
17134a17663cSThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
17144a17663cSThomas Veermanfi
1715*0a6a1f1dSLionel Sambucecho "$as_me:1715: result: $ac_cv_prog_cc_g" >&5
17164a17663cSThomas Veermanecho "${ECHO_T}$ac_cv_prog_cc_g" >&6
17174a17663cSThomas Veermanif test "$ac_test_CFLAGS" = set; then
17184a17663cSThomas Veerman  CFLAGS=$ac_save_CFLAGS
17194a17663cSThomas Veermanelif test $ac_cv_prog_cc_g = yes; then
17204a17663cSThomas Veerman  if test "$GCC" = yes; then
17214a17663cSThomas Veerman    CFLAGS="-g -O2"
17224a17663cSThomas Veerman  else
17234a17663cSThomas Veerman    CFLAGS="-g"
17244a17663cSThomas Veerman  fi
17254a17663cSThomas Veermanelse
17264a17663cSThomas Veerman  if test "$GCC" = yes; then
17274a17663cSThomas Veerman    CFLAGS="-O2"
17284a17663cSThomas Veerman  else
17294a17663cSThomas Veerman    CFLAGS=
17304a17663cSThomas Veerman  fi
17314a17663cSThomas Veermanfi
17324a17663cSThomas Veerman# Some people use a C++ compiler to compile C.  Since we use `exit',
17334a17663cSThomas Veerman# in C++ we need to declare it.  In case someone uses the same compiler
17344a17663cSThomas Veerman# for both compiling C and C++ we need to have the C++ compiler decide
17354a17663cSThomas Veerman# the declaration of exit, since it's the most demanding environment.
17364a17663cSThomas Veermancat >conftest.$ac_ext <<_ACEOF
17374a17663cSThomas Veerman#ifndef __cplusplus
17384a17663cSThomas Veerman  choke me
17394a17663cSThomas Veerman#endif
17404a17663cSThomas Veerman_ACEOF
17414a17663cSThomas Veermanrm -f conftest.$ac_objext
1742*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:1742: \"$ac_compile\"") >&5
17434a17663cSThomas Veerman  (eval $ac_compile) 2>&5
17444a17663cSThomas Veerman  ac_status=$?
1745*0a6a1f1dSLionel Sambuc  echo "$as_me:1745: \$? = $ac_status" >&5
17464a17663cSThomas Veerman  (exit $ac_status); } &&
17474a17663cSThomas Veerman         { ac_try='test -s conftest.$ac_objext'
1748*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:1748: \"$ac_try\"") >&5
17494a17663cSThomas Veerman  (eval $ac_try) 2>&5
17504a17663cSThomas Veerman  ac_status=$?
1751*0a6a1f1dSLionel Sambuc  echo "$as_me:1751: \$? = $ac_status" >&5
17524a17663cSThomas Veerman  (exit $ac_status); }; }; then
17534a17663cSThomas Veerman  for ac_declaration in \
17544a17663cSThomas Veerman   ''\
17554a17663cSThomas Veerman   '#include <stdlib.h>' \
17564a17663cSThomas Veerman   'extern "C" void std::exit (int) throw (); using std::exit;' \
17574a17663cSThomas Veerman   'extern "C" void std::exit (int); using std::exit;' \
17584a17663cSThomas Veerman   'extern "C" void exit (int) throw ();' \
17594a17663cSThomas Veerman   'extern "C" void exit (int);' \
17604a17663cSThomas Veerman   'void exit (int);'
17614a17663cSThomas Veermando
17624a17663cSThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
1763*0a6a1f1dSLionel Sambuc#line 1763 "configure"
17644a17663cSThomas Veerman#include "confdefs.h"
17654a17663cSThomas Veerman#include <stdlib.h>
17664a17663cSThomas Veerman$ac_declaration
17674a17663cSThomas Veermanint
17684a17663cSThomas Veermanmain ()
17694a17663cSThomas Veerman{
17704a17663cSThomas Veermanexit (42);
17714a17663cSThomas Veerman  ;
17724a17663cSThomas Veerman  return 0;
17734a17663cSThomas Veerman}
17744a17663cSThomas Veerman_ACEOF
17754a17663cSThomas Veermanrm -f conftest.$ac_objext
1776*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:1776: \"$ac_compile\"") >&5
17774a17663cSThomas Veerman  (eval $ac_compile) 2>&5
17784a17663cSThomas Veerman  ac_status=$?
1779*0a6a1f1dSLionel Sambuc  echo "$as_me:1779: \$? = $ac_status" >&5
17804a17663cSThomas Veerman  (exit $ac_status); } &&
17814a17663cSThomas Veerman         { ac_try='test -s conftest.$ac_objext'
1782*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:1782: \"$ac_try\"") >&5
17834a17663cSThomas Veerman  (eval $ac_try) 2>&5
17844a17663cSThomas Veerman  ac_status=$?
1785*0a6a1f1dSLionel Sambuc  echo "$as_me:1785: \$? = $ac_status" >&5
17864a17663cSThomas Veerman  (exit $ac_status); }; }; then
17874a17663cSThomas Veerman  :
17884a17663cSThomas Veermanelse
17894a17663cSThomas Veerman  echo "$as_me: failed program was:" >&5
17904a17663cSThomas Veermancat conftest.$ac_ext >&5
17914a17663cSThomas Veermancontinue
17924a17663cSThomas Veermanfi
17934a17663cSThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
17944a17663cSThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
1795*0a6a1f1dSLionel Sambuc#line 1795 "configure"
17964a17663cSThomas Veerman#include "confdefs.h"
17974a17663cSThomas Veerman$ac_declaration
17984a17663cSThomas Veermanint
17994a17663cSThomas Veermanmain ()
18004a17663cSThomas Veerman{
18014a17663cSThomas Veermanexit (42);
18024a17663cSThomas Veerman  ;
18034a17663cSThomas Veerman  return 0;
18044a17663cSThomas Veerman}
18054a17663cSThomas Veerman_ACEOF
18064a17663cSThomas Veermanrm -f conftest.$ac_objext
1807*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:1807: \"$ac_compile\"") >&5
18084a17663cSThomas Veerman  (eval $ac_compile) 2>&5
18094a17663cSThomas Veerman  ac_status=$?
1810*0a6a1f1dSLionel Sambuc  echo "$as_me:1810: \$? = $ac_status" >&5
18114a17663cSThomas Veerman  (exit $ac_status); } &&
18124a17663cSThomas Veerman         { ac_try='test -s conftest.$ac_objext'
1813*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:1813: \"$ac_try\"") >&5
18144a17663cSThomas Veerman  (eval $ac_try) 2>&5
18154a17663cSThomas Veerman  ac_status=$?
1816*0a6a1f1dSLionel Sambuc  echo "$as_me:1816: \$? = $ac_status" >&5
18174a17663cSThomas Veerman  (exit $ac_status); }; }; then
18184a17663cSThomas Veerman  break
18194a17663cSThomas Veermanelse
18204a17663cSThomas Veerman  echo "$as_me: failed program was:" >&5
18214a17663cSThomas Veermancat conftest.$ac_ext >&5
18224a17663cSThomas Veermanfi
18234a17663cSThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
18244a17663cSThomas Veermandone
18254a17663cSThomas Veermanrm -rf conftest*
18264a17663cSThomas Veermanif test -n "$ac_declaration"; then
18274a17663cSThomas Veerman  echo '#ifdef __cplusplus' >>confdefs.h
18284a17663cSThomas Veerman  echo $ac_declaration      >>confdefs.h
18294a17663cSThomas Veerman  echo '#endif'             >>confdefs.h
18304a17663cSThomas Veermanfi
18314a17663cSThomas Veerman
18324a17663cSThomas Veermanelse
18334a17663cSThomas Veerman  echo "$as_me: failed program was:" >&5
18344a17663cSThomas Veermancat conftest.$ac_ext >&5
18354a17663cSThomas Veermanfi
18364a17663cSThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
18374a17663cSThomas Veermanac_ext=c
18384a17663cSThomas Veermanac_cpp='$CPP $CPPFLAGS'
18394a17663cSThomas Veermanac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18404a17663cSThomas Veermanac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18414a17663cSThomas Veermanac_compiler_gnu=$ac_cv_c_compiler_gnu
18424a17663cSThomas Veermanac_main_return=return
18434a17663cSThomas Veerman
184484d9c625SLionel SambucGCC_VERSION=none
184584d9c625SLionel Sambucif test "$GCC" = yes ; then
1846*0a6a1f1dSLionel Sambuc	echo "$as_me:1846: checking version of $CC" >&5
184784d9c625SLionel Sambucecho $ECHO_N "checking version of $CC... $ECHO_C" >&6
184884d9c625SLionel Sambuc	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.].*//'`"
184984d9c625SLionel Sambuc	test -z "$GCC_VERSION" && GCC_VERSION=unknown
1850*0a6a1f1dSLionel Sambuc	echo "$as_me:1850: result: $GCC_VERSION" >&5
185184d9c625SLionel Sambucecho "${ECHO_T}$GCC_VERSION" >&6
185284d9c625SLionel Sambucfi
185384d9c625SLionel Sambuc
1854*0a6a1f1dSLionel Sambucecho "$as_me:1854: checking for $CC option to accept ANSI C" >&5
18554a17663cSThomas Veermanecho $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
18564a17663cSThomas Veermanif test "${ac_cv_prog_cc_stdc+set}" = set; then
18574a17663cSThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
18584a17663cSThomas Veermanelse
18594a17663cSThomas Veerman  ac_cv_prog_cc_stdc=no
18604a17663cSThomas Veermanac_save_CC=$CC
18614a17663cSThomas Veermancat >conftest.$ac_ext <<_ACEOF
1862*0a6a1f1dSLionel Sambuc#line 1862 "configure"
18634a17663cSThomas Veerman#include "confdefs.h"
18644a17663cSThomas Veerman#include <stdarg.h>
18654a17663cSThomas Veerman#include <stdio.h>
18664a17663cSThomas Veerman#include <sys/types.h>
18674a17663cSThomas Veerman#include <sys/stat.h>
18684a17663cSThomas Veerman/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
18694a17663cSThomas Veermanstruct buf { int x; };
18704a17663cSThomas VeermanFILE * (*rcsopen) (struct buf *, struct stat *, int);
18714a17663cSThomas Veermanstatic char *e (p, i)
18724a17663cSThomas Veerman     char **p;
18734a17663cSThomas Veerman     int i;
18744a17663cSThomas Veerman{
18754a17663cSThomas Veerman  return p[i];
18764a17663cSThomas Veerman}
18774a17663cSThomas Veermanstatic char *f (char * (*g) (char **, int), char **p, ...)
18784a17663cSThomas Veerman{
18794a17663cSThomas Veerman  char *s;
18804a17663cSThomas Veerman  va_list v;
18814a17663cSThomas Veerman  va_start (v,p);
18824a17663cSThomas Veerman  s = g (p, va_arg (v,int));
18834a17663cSThomas Veerman  va_end (v);
18844a17663cSThomas Veerman  return s;
18854a17663cSThomas Veerman}
18864a17663cSThomas Veermanint test (int i, double x);
18874a17663cSThomas Veermanstruct s1 {int (*f) (int a);};
18884a17663cSThomas Veermanstruct s2 {int (*f) (double a);};
18894a17663cSThomas Veermanint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
18904a17663cSThomas Veermanint argc;
18914a17663cSThomas Veermanchar **argv;
18924a17663cSThomas Veermanint
18934a17663cSThomas Veermanmain ()
18944a17663cSThomas Veerman{
18954a17663cSThomas Veermanreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
18964a17663cSThomas Veerman  ;
18974a17663cSThomas Veerman  return 0;
18984a17663cSThomas Veerman}
18994a17663cSThomas Veerman_ACEOF
19004a17663cSThomas Veerman# Don't try gcc -ansi; that turns off useful extensions and
19014a17663cSThomas Veerman# breaks some systems' header files.
19024a17663cSThomas Veerman# AIX			-qlanglvl=ansi
19034a17663cSThomas Veerman# Ultrix and OSF/1	-std1
19044a17663cSThomas Veerman# HP-UX 10.20 and later	-Ae
19054a17663cSThomas Veerman# HP-UX older versions	-Aa -D_HPUX_SOURCE
19064a17663cSThomas Veerman# SVR4			-Xc -D__EXTENSIONS__
19074a17663cSThomas Veermanfor ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19084a17663cSThomas Veermando
19094a17663cSThomas Veerman  CC="$ac_save_CC $ac_arg"
19104a17663cSThomas Veerman  rm -f conftest.$ac_objext
1911*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:1911: \"$ac_compile\"") >&5
19124a17663cSThomas Veerman  (eval $ac_compile) 2>&5
19134a17663cSThomas Veerman  ac_status=$?
1914*0a6a1f1dSLionel Sambuc  echo "$as_me:1914: \$? = $ac_status" >&5
19154a17663cSThomas Veerman  (exit $ac_status); } &&
19164a17663cSThomas Veerman         { ac_try='test -s conftest.$ac_objext'
1917*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:1917: \"$ac_try\"") >&5
19184a17663cSThomas Veerman  (eval $ac_try) 2>&5
19194a17663cSThomas Veerman  ac_status=$?
1920*0a6a1f1dSLionel Sambuc  echo "$as_me:1920: \$? = $ac_status" >&5
19214a17663cSThomas Veerman  (exit $ac_status); }; }; then
19224a17663cSThomas Veerman  ac_cv_prog_cc_stdc=$ac_arg
19234a17663cSThomas Veermanbreak
19244a17663cSThomas Veermanelse
19254a17663cSThomas Veerman  echo "$as_me: failed program was:" >&5
19264a17663cSThomas Veermancat conftest.$ac_ext >&5
19274a17663cSThomas Veermanfi
19284a17663cSThomas Veermanrm -f conftest.$ac_objext
19294a17663cSThomas Veermandone
19304a17663cSThomas Veermanrm -f conftest.$ac_ext conftest.$ac_objext
19314a17663cSThomas VeermanCC=$ac_save_CC
19324a17663cSThomas Veerman
19334a17663cSThomas Veermanfi
19344a17663cSThomas Veerman
19354a17663cSThomas Veermancase "x$ac_cv_prog_cc_stdc" in
19364a17663cSThomas Veerman  x|xno)
1937*0a6a1f1dSLionel Sambuc    echo "$as_me:1937: result: none needed" >&5
19384a17663cSThomas Veermanecho "${ECHO_T}none needed" >&6 ;;
19394a17663cSThomas Veerman  *)
1940*0a6a1f1dSLionel Sambuc    echo "$as_me:1940: result: $ac_cv_prog_cc_stdc" >&5
19414a17663cSThomas Veermanecho "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19424a17663cSThomas Veerman    CC="$CC $ac_cv_prog_cc_stdc" ;;
19434a17663cSThomas Veermanesac
19444a17663cSThomas Veerman
19454a17663cSThomas Veerman# This should have been defined by AC_PROG_CC
19464a17663cSThomas Veerman: ${CC:=cc}
19474a17663cSThomas Veerman
1948*0a6a1f1dSLionel Sambucecho "$as_me:1948: checking \$CC variable" >&5
19494a17663cSThomas Veermanecho $ECHO_N "checking \$CC variable... $ECHO_C" >&6
19504a17663cSThomas Veermancase "$CC" in #(vi
19514a17663cSThomas Veerman*[\ \	]-[IUD]*)
1952*0a6a1f1dSLionel Sambuc	echo "$as_me:1952: result: broken" >&5
19534a17663cSThomas Veermanecho "${ECHO_T}broken" >&6
1954*0a6a1f1dSLionel Sambuc	{ echo "$as_me:1954: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
19554a17663cSThomas Veermanecho "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
19564a17663cSThomas Veerman	# humor him...
19574a17663cSThomas Veerman	cf_flags=`echo "$CC" | sed -e 's/^[^ 	]*[ 	]//'`
19584a17663cSThomas Veerman	CC=`echo "$CC" | sed -e 's/[ 	].*//'`
19594a17663cSThomas Veerman
19604a17663cSThomas Veermancf_fix_cppflags=no
19614a17663cSThomas Veermancf_new_cflags=
19624a17663cSThomas Veermancf_new_cppflags=
19634a17663cSThomas Veermancf_new_extra_cppflags=
19644a17663cSThomas Veerman
19654a17663cSThomas Veermanfor cf_add_cflags in $cf_flags
19664a17663cSThomas Veermando
19674a17663cSThomas Veermancase $cf_fix_cppflags in
19684a17663cSThomas Veermanno)
19694a17663cSThomas Veerman	case $cf_add_cflags in #(vi
19704a17663cSThomas Veerman	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
19714a17663cSThomas Veerman		case $cf_add_cflags in
19724a17663cSThomas Veerman		-D*)
19734a17663cSThomas Veerman			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
19744a17663cSThomas Veerman
1975*0a6a1f1dSLionel Sambuc			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19764a17663cSThomas Veerman				&& test -z "${cf_tst_cflags}" \
19774a17663cSThomas Veerman				&& cf_fix_cppflags=yes
19784a17663cSThomas Veerman
19794a17663cSThomas Veerman			if test $cf_fix_cppflags = yes ; then
19804a17663cSThomas Veerman				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
19814a17663cSThomas Veerman				continue
19824a17663cSThomas Veerman			elif test "${cf_tst_cflags}" = "\"'" ; then
19834a17663cSThomas Veerman				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
19844a17663cSThomas Veerman				continue
19854a17663cSThomas Veerman			fi
19864a17663cSThomas Veerman			;;
19874a17663cSThomas Veerman		esac
19884a17663cSThomas Veerman		case "$CPPFLAGS" in
19894a17663cSThomas Veerman		*$cf_add_cflags) #(vi
19904a17663cSThomas Veerman			;;
19914a17663cSThomas Veerman		*) #(vi
19924a17663cSThomas Veerman			case $cf_add_cflags in #(vi
19934a17663cSThomas Veerman			-D*)
19944a17663cSThomas Veerman				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
19954a17663cSThomas Veerman
19964a17663cSThomas VeermanCPPFLAGS=`echo "$CPPFLAGS" | \
19974a17663cSThomas Veerman	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
19984a17663cSThomas Veerman		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
19994a17663cSThomas Veerman
20004a17663cSThomas Veerman				;;
20014a17663cSThomas Veerman			esac
20024a17663cSThomas Veerman			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
20034a17663cSThomas Veerman			;;
20044a17663cSThomas Veerman		esac
20054a17663cSThomas Veerman		;;
20064a17663cSThomas Veerman	*)
20074a17663cSThomas Veerman		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
20084a17663cSThomas Veerman		;;
20094a17663cSThomas Veerman	esac
20104a17663cSThomas Veerman	;;
20114a17663cSThomas Veermanyes)
20124a17663cSThomas Veerman	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
20134a17663cSThomas Veerman
20144a17663cSThomas Veerman	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
20154a17663cSThomas Veerman
2016*0a6a1f1dSLionel Sambuc	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20174a17663cSThomas Veerman		&& test -z "${cf_tst_cflags}" \
20184a17663cSThomas Veerman		&& cf_fix_cppflags=no
20194a17663cSThomas Veerman	;;
20204a17663cSThomas Veermanesac
20214a17663cSThomas Veermandone
20224a17663cSThomas Veerman
20234a17663cSThomas Veermanif test -n "$cf_new_cflags" ; then
20244a17663cSThomas Veerman
20254a17663cSThomas Veerman	CFLAGS="$CFLAGS $cf_new_cflags"
20264a17663cSThomas Veermanfi
20274a17663cSThomas Veerman
20284a17663cSThomas Veermanif test -n "$cf_new_cppflags" ; then
20294a17663cSThomas Veerman
20304a17663cSThomas Veerman	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
20314a17663cSThomas Veermanfi
20324a17663cSThomas Veerman
20334a17663cSThomas Veermanif test -n "$cf_new_extra_cppflags" ; then
20344a17663cSThomas Veerman
20354a17663cSThomas Veerman	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
20364a17663cSThomas Veermanfi
20374a17663cSThomas Veerman
20384a17663cSThomas Veerman	;;
20394a17663cSThomas Veerman*)
2040*0a6a1f1dSLionel Sambuc	echo "$as_me:2040: result: ok" >&5
20414a17663cSThomas Veermanecho "${ECHO_T}ok" >&6
20424a17663cSThomas Veerman	;;
20434a17663cSThomas Veermanesac
20444a17663cSThomas Veerman
2045*0a6a1f1dSLionel Sambucecho "$as_me:2045: checking whether ${MAKE-make} sets \${MAKE}" >&5
204684d9c625SLionel Sambucecho $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
204784d9c625SLionel Sambucset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
204884d9c625SLionel Sambucif eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
204984d9c625SLionel Sambuc  echo $ECHO_N "(cached) $ECHO_C" >&6
205084d9c625SLionel Sambucelse
205184d9c625SLionel Sambuc  cat >conftest.make <<\EOF
205284d9c625SLionel Sambucall:
205384d9c625SLionel Sambuc	@echo 'ac_maketemp="${MAKE}"'
205484d9c625SLionel SambucEOF
205584d9c625SLionel Sambuc# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
205684d9c625SLionel Sambuceval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
205784d9c625SLionel Sambucif test -n "$ac_maketemp"; then
205884d9c625SLionel Sambuc  eval ac_cv_prog_make_${ac_make}_set=yes
205984d9c625SLionel Sambucelse
206084d9c625SLionel Sambuc  eval ac_cv_prog_make_${ac_make}_set=no
206184d9c625SLionel Sambucfi
206284d9c625SLionel Sambucrm -f conftest.make
206384d9c625SLionel Sambucfi
206484d9c625SLionel Sambucif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2065*0a6a1f1dSLionel Sambuc  echo "$as_me:2065: result: yes" >&5
206684d9c625SLionel Sambucecho "${ECHO_T}yes" >&6
206784d9c625SLionel Sambuc  SET_MAKE=
206884d9c625SLionel Sambucelse
2069*0a6a1f1dSLionel Sambuc  echo "$as_me:2069: result: no" >&5
207084d9c625SLionel Sambucecho "${ECHO_T}no" >&6
207184d9c625SLionel Sambuc  SET_MAKE="MAKE=${MAKE-make}"
207284d9c625SLionel Sambucfi
207384d9c625SLionel Sambuc
207484d9c625SLionel Sambuc# Find a good install program.  We prefer a C program (faster),
207584d9c625SLionel Sambuc# so one script is as good as another.  But avoid the broken or
207684d9c625SLionel Sambuc# incompatible versions:
207784d9c625SLionel Sambuc# SysV /etc/install, /usr/sbin/install
207884d9c625SLionel Sambuc# SunOS /usr/etc/install
207984d9c625SLionel Sambuc# IRIX /sbin/install
208084d9c625SLionel Sambuc# AIX /bin/install
208184d9c625SLionel Sambuc# AmigaOS /C/install, which installs bootblocks on floppy discs
208284d9c625SLionel Sambuc# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
208384d9c625SLionel Sambuc# AFS /usr/afsws/bin/install, which mishandles nonexistent args
208484d9c625SLionel Sambuc# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
208584d9c625SLionel Sambuc# ./install, which can be erroneously created by make from ./install.sh.
2086*0a6a1f1dSLionel Sambucecho "$as_me:2086: checking for a BSD compatible install" >&5
208784d9c625SLionel Sambucecho $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
208884d9c625SLionel Sambucif test -z "$INSTALL"; then
208984d9c625SLionel Sambucif test "${ac_cv_path_install+set}" = set; then
209084d9c625SLionel Sambuc  echo $ECHO_N "(cached) $ECHO_C" >&6
209184d9c625SLionel Sambucelse
209284d9c625SLionel Sambuc    ac_save_IFS=$IFS; IFS=$ac_path_separator
209384d9c625SLionel Sambuc  for ac_dir in $PATH; do
209484d9c625SLionel Sambuc    IFS=$ac_save_IFS
209584d9c625SLionel Sambuc    # Account for people who put trailing slashes in PATH elements.
209684d9c625SLionel Sambuc    case $ac_dir/ in
209784d9c625SLionel Sambuc    / | ./ | .// | /cC/* \
209884d9c625SLionel Sambuc    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
209984d9c625SLionel Sambuc    | /usr/ucb/* ) ;;
210084d9c625SLionel Sambuc    *)
210184d9c625SLionel Sambuc      # OSF1 and SCO ODT 3.0 have their own names for install.
210284d9c625SLionel Sambuc      # Don't use installbsd from OSF since it installs stuff as root
210384d9c625SLionel Sambuc      # by default.
210484d9c625SLionel Sambuc      for ac_prog in ginstall scoinst install; do
210584d9c625SLionel Sambuc        if $as_executable_p "$ac_dir/$ac_prog"; then
210684d9c625SLionel Sambuc	  if test $ac_prog = install &&
210784d9c625SLionel Sambuc            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
210884d9c625SLionel Sambuc	    # AIX install.  It has an incompatible calling convention.
210984d9c625SLionel Sambuc	    :
211084d9c625SLionel Sambuc	  elif test $ac_prog = install &&
211184d9c625SLionel Sambuc	    grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
211284d9c625SLionel Sambuc	    # program-specific install script used by HP pwplus--don't use.
211384d9c625SLionel Sambuc	    :
211484d9c625SLionel Sambuc	  else
211584d9c625SLionel Sambuc	    ac_cv_path_install="$ac_dir/$ac_prog -c"
211684d9c625SLionel Sambuc	    break 2
211784d9c625SLionel Sambuc	  fi
211884d9c625SLionel Sambuc	fi
211984d9c625SLionel Sambuc      done
212084d9c625SLionel Sambuc      ;;
212184d9c625SLionel Sambuc    esac
212284d9c625SLionel Sambuc  done
212384d9c625SLionel Sambuc
212484d9c625SLionel Sambucfi
212584d9c625SLionel Sambuc  if test "${ac_cv_path_install+set}" = set; then
212684d9c625SLionel Sambuc    INSTALL=$ac_cv_path_install
212784d9c625SLionel Sambuc  else
212884d9c625SLionel Sambuc    # As a last resort, use the slow shell script.  We don't cache a
212984d9c625SLionel Sambuc    # path for INSTALL within a source directory, because that will
213084d9c625SLionel Sambuc    # break other packages using the cache if that directory is
213184d9c625SLionel Sambuc    # removed, or if the path is relative.
213284d9c625SLionel Sambuc    INSTALL=$ac_install_sh
213384d9c625SLionel Sambuc  fi
213484d9c625SLionel Sambucfi
2135*0a6a1f1dSLionel Sambucecho "$as_me:2135: result: $INSTALL" >&5
213684d9c625SLionel Sambucecho "${ECHO_T}$INSTALL" >&6
213784d9c625SLionel Sambuc
213884d9c625SLionel Sambuc# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
213984d9c625SLionel Sambuc# It thinks the first close brace ends the variable substitution.
214084d9c625SLionel Sambuctest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
214184d9c625SLionel Sambuc
214284d9c625SLionel Sambuctest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
214384d9c625SLionel Sambuc
214484d9c625SLionel Sambuctest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
214584d9c625SLionel Sambuc
2146*0a6a1f1dSLionel Sambucecho "$as_me:2146: checking if filesystem supports mixed-case filenames" >&5
214784d9c625SLionel Sambucecho $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
214884d9c625SLionel Sambucif test "${cf_cv_mixedcase+set}" = set; then
21494a17663cSThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
21504a17663cSThomas Veermanelse
21514a17663cSThomas Veerman
215284d9c625SLionel Sambucif test "$cross_compiling" = yes ; then
215384d9c625SLionel Sambuc	case $target_alias in #(vi
2154*0a6a1f1dSLionel Sambuc	*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*) #(vi
215584d9c625SLionel Sambuc		cf_cv_mixedcase=no
21564a17663cSThomas Veerman		;;
21574a17663cSThomas Veerman	*)
215884d9c625SLionel Sambuc		cf_cv_mixedcase=yes
21594a17663cSThomas Veerman		;;
21604a17663cSThomas Veerman	esac
21614a17663cSThomas Veermanelse
216284d9c625SLionel Sambuc	rm -f conftest CONFTEST
216384d9c625SLionel Sambuc	echo test >conftest
216484d9c625SLionel Sambuc	if test -f CONFTEST ; then
216584d9c625SLionel Sambuc		cf_cv_mixedcase=no
21664a17663cSThomas Veerman	else
216784d9c625SLionel Sambuc		cf_cv_mixedcase=yes
216884d9c625SLionel Sambuc	fi
216984d9c625SLionel Sambuc	rm -f conftest CONFTEST
217084d9c625SLionel Sambucfi
217184d9c625SLionel Sambuc
217284d9c625SLionel Sambucfi
2173*0a6a1f1dSLionel Sambucecho "$as_me:2173: result: $cf_cv_mixedcase" >&5
217484d9c625SLionel Sambucecho "${ECHO_T}$cf_cv_mixedcase" >&6
217584d9c625SLionel Sambuctest "$cf_cv_mixedcase" = yes &&
21764a17663cSThomas Veermancat >>confdefs.h <<\EOF
217784d9c625SLionel Sambuc#define MIXEDCASE_FILENAMES 1
21784a17663cSThomas VeermanEOF
21794a17663cSThomas Veerman
218084d9c625SLionel Sambucfor ac_prog in exctags ctags
218184d9c625SLionel Sambucdo
218284d9c625SLionel Sambuc  # Extract the first word of "$ac_prog", so it can be a program name with args.
218384d9c625SLionel Sambucset dummy $ac_prog; ac_word=$2
2184*0a6a1f1dSLionel Sambucecho "$as_me:2184: checking for $ac_word" >&5
218584d9c625SLionel Sambucecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
218684d9c625SLionel Sambucif test "${ac_cv_prog_CTAGS+set}" = set; then
218784d9c625SLionel Sambuc  echo $ECHO_N "(cached) $ECHO_C" >&6
218884d9c625SLionel Sambucelse
218984d9c625SLionel Sambuc  if test -n "$CTAGS"; then
219084d9c625SLionel Sambuc  ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
219184d9c625SLionel Sambucelse
219284d9c625SLionel Sambuc  ac_save_IFS=$IFS; IFS=$ac_path_separator
219384d9c625SLionel Sambucac_dummy="$PATH"
219484d9c625SLionel Sambucfor ac_dir in $ac_dummy; do
219584d9c625SLionel Sambuc  IFS=$ac_save_IFS
219684d9c625SLionel Sambuc  test -z "$ac_dir" && ac_dir=.
219784d9c625SLionel Sambuc  $as_executable_p "$ac_dir/$ac_word" || continue
219884d9c625SLionel Sambucac_cv_prog_CTAGS="$ac_prog"
2199*0a6a1f1dSLionel Sambucecho "$as_me:2199: found $ac_dir/$ac_word" >&5
220084d9c625SLionel Sambucbreak
220184d9c625SLionel Sambucdone
220284d9c625SLionel Sambuc
22034a17663cSThomas Veermanfi
22044a17663cSThomas Veermanfi
220584d9c625SLionel SambucCTAGS=$ac_cv_prog_CTAGS
220684d9c625SLionel Sambucif test -n "$CTAGS"; then
2207*0a6a1f1dSLionel Sambuc  echo "$as_me:2207: result: $CTAGS" >&5
220884d9c625SLionel Sambucecho "${ECHO_T}$CTAGS" >&6
220984d9c625SLionel Sambucelse
2210*0a6a1f1dSLionel Sambuc  echo "$as_me:2210: result: no" >&5
221184d9c625SLionel Sambucecho "${ECHO_T}no" >&6
221284d9c625SLionel Sambucfi
22134a17663cSThomas Veerman
221484d9c625SLionel Sambuc  test -n "$CTAGS" && break
221584d9c625SLionel Sambucdone
221684d9c625SLionel Sambuc
221784d9c625SLionel Sambucfor ac_prog in exetags etags
221884d9c625SLionel Sambucdo
221984d9c625SLionel Sambuc  # Extract the first word of "$ac_prog", so it can be a program name with args.
222084d9c625SLionel Sambucset dummy $ac_prog; ac_word=$2
2221*0a6a1f1dSLionel Sambucecho "$as_me:2221: checking for $ac_word" >&5
222284d9c625SLionel Sambucecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
222384d9c625SLionel Sambucif test "${ac_cv_prog_ETAGS+set}" = set; then
222484d9c625SLionel Sambuc  echo $ECHO_N "(cached) $ECHO_C" >&6
222584d9c625SLionel Sambucelse
222684d9c625SLionel Sambuc  if test -n "$ETAGS"; then
222784d9c625SLionel Sambuc  ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
222884d9c625SLionel Sambucelse
222984d9c625SLionel Sambuc  ac_save_IFS=$IFS; IFS=$ac_path_separator
223084d9c625SLionel Sambucac_dummy="$PATH"
223184d9c625SLionel Sambucfor ac_dir in $ac_dummy; do
223284d9c625SLionel Sambuc  IFS=$ac_save_IFS
223384d9c625SLionel Sambuc  test -z "$ac_dir" && ac_dir=.
223484d9c625SLionel Sambuc  $as_executable_p "$ac_dir/$ac_word" || continue
223584d9c625SLionel Sambucac_cv_prog_ETAGS="$ac_prog"
2236*0a6a1f1dSLionel Sambucecho "$as_me:2236: found $ac_dir/$ac_word" >&5
223784d9c625SLionel Sambucbreak
223884d9c625SLionel Sambucdone
223984d9c625SLionel Sambuc
22404a17663cSThomas Veermanfi
224184d9c625SLionel Sambucfi
224284d9c625SLionel SambucETAGS=$ac_cv_prog_ETAGS
224384d9c625SLionel Sambucif test -n "$ETAGS"; then
2244*0a6a1f1dSLionel Sambuc  echo "$as_me:2244: result: $ETAGS" >&5
224584d9c625SLionel Sambucecho "${ECHO_T}$ETAGS" >&6
224684d9c625SLionel Sambucelse
2247*0a6a1f1dSLionel Sambuc  echo "$as_me:2247: result: no" >&5
224884d9c625SLionel Sambucecho "${ECHO_T}no" >&6
224984d9c625SLionel Sambucfi
225084d9c625SLionel Sambuc
225184d9c625SLionel Sambuc  test -n "$ETAGS" && break
225284d9c625SLionel Sambucdone
225384d9c625SLionel Sambuc
225484d9c625SLionel Sambuc# Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
225584d9c625SLionel Sambucset dummy ${CTAGS:-ctags}; ac_word=$2
2256*0a6a1f1dSLionel Sambucecho "$as_me:2256: checking for $ac_word" >&5
225784d9c625SLionel Sambucecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
225884d9c625SLionel Sambucif test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
225984d9c625SLionel Sambuc  echo $ECHO_N "(cached) $ECHO_C" >&6
226084d9c625SLionel Sambucelse
226184d9c625SLionel Sambuc  if test -n "$MAKE_LOWER_TAGS"; then
226284d9c625SLionel Sambuc  ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
226384d9c625SLionel Sambucelse
226484d9c625SLionel Sambuc  ac_save_IFS=$IFS; IFS=$ac_path_separator
226584d9c625SLionel Sambucac_dummy="$PATH"
226684d9c625SLionel Sambucfor ac_dir in $ac_dummy; do
226784d9c625SLionel Sambuc  IFS=$ac_save_IFS
226884d9c625SLionel Sambuc  test -z "$ac_dir" && ac_dir=.
226984d9c625SLionel Sambuc  $as_executable_p "$ac_dir/$ac_word" || continue
227084d9c625SLionel Sambucac_cv_prog_MAKE_LOWER_TAGS="yes"
2271*0a6a1f1dSLionel Sambucecho "$as_me:2271: found $ac_dir/$ac_word" >&5
227284d9c625SLionel Sambucbreak
227384d9c625SLionel Sambucdone
227484d9c625SLionel Sambuc
227584d9c625SLionel Sambuc  test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
227684d9c625SLionel Sambucfi
227784d9c625SLionel Sambucfi
227884d9c625SLionel SambucMAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
227984d9c625SLionel Sambucif test -n "$MAKE_LOWER_TAGS"; then
2280*0a6a1f1dSLionel Sambuc  echo "$as_me:2280: result: $MAKE_LOWER_TAGS" >&5
228184d9c625SLionel Sambucecho "${ECHO_T}$MAKE_LOWER_TAGS" >&6
228284d9c625SLionel Sambucelse
2283*0a6a1f1dSLionel Sambuc  echo "$as_me:2283: result: no" >&5
228484d9c625SLionel Sambucecho "${ECHO_T}no" >&6
228584d9c625SLionel Sambucfi
228684d9c625SLionel Sambuc
228784d9c625SLionel Sambucif test "$cf_cv_mixedcase" = yes ; then
228884d9c625SLionel Sambuc	# Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
228984d9c625SLionel Sambucset dummy ${ETAGS:-etags}; ac_word=$2
2290*0a6a1f1dSLionel Sambucecho "$as_me:2290: checking for $ac_word" >&5
229184d9c625SLionel Sambucecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
229284d9c625SLionel Sambucif test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
229384d9c625SLionel Sambuc  echo $ECHO_N "(cached) $ECHO_C" >&6
229484d9c625SLionel Sambucelse
229584d9c625SLionel Sambuc  if test -n "$MAKE_UPPER_TAGS"; then
229684d9c625SLionel Sambuc  ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
229784d9c625SLionel Sambucelse
229884d9c625SLionel Sambuc  ac_save_IFS=$IFS; IFS=$ac_path_separator
229984d9c625SLionel Sambucac_dummy="$PATH"
230084d9c625SLionel Sambucfor ac_dir in $ac_dummy; do
230184d9c625SLionel Sambuc  IFS=$ac_save_IFS
230284d9c625SLionel Sambuc  test -z "$ac_dir" && ac_dir=.
230384d9c625SLionel Sambuc  $as_executable_p "$ac_dir/$ac_word" || continue
230484d9c625SLionel Sambucac_cv_prog_MAKE_UPPER_TAGS="yes"
2305*0a6a1f1dSLionel Sambucecho "$as_me:2305: found $ac_dir/$ac_word" >&5
230684d9c625SLionel Sambucbreak
230784d9c625SLionel Sambucdone
230884d9c625SLionel Sambuc
230984d9c625SLionel Sambuc  test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
231084d9c625SLionel Sambucfi
231184d9c625SLionel Sambucfi
231284d9c625SLionel SambucMAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
231384d9c625SLionel Sambucif test -n "$MAKE_UPPER_TAGS"; then
2314*0a6a1f1dSLionel Sambuc  echo "$as_me:2314: result: $MAKE_UPPER_TAGS" >&5
231584d9c625SLionel Sambucecho "${ECHO_T}$MAKE_UPPER_TAGS" >&6
231684d9c625SLionel Sambucelse
2317*0a6a1f1dSLionel Sambuc  echo "$as_me:2317: result: no" >&5
231884d9c625SLionel Sambucecho "${ECHO_T}no" >&6
231984d9c625SLionel Sambucfi
232084d9c625SLionel Sambuc
232184d9c625SLionel Sambucelse
232284d9c625SLionel Sambuc	MAKE_UPPER_TAGS=no
232384d9c625SLionel Sambucfi
232484d9c625SLionel Sambuc
232584d9c625SLionel Sambucif test "$MAKE_UPPER_TAGS" = yes ; then
232684d9c625SLionel Sambuc	MAKE_UPPER_TAGS=
232784d9c625SLionel Sambucelse
232884d9c625SLionel Sambuc	MAKE_UPPER_TAGS="#"
232984d9c625SLionel Sambucfi
233084d9c625SLionel Sambuc
233184d9c625SLionel Sambucif test "$MAKE_LOWER_TAGS" = yes ; then
233284d9c625SLionel Sambuc	MAKE_LOWER_TAGS=
233384d9c625SLionel Sambucelse
233484d9c625SLionel Sambuc	MAKE_LOWER_TAGS="#"
233584d9c625SLionel Sambucfi
233684d9c625SLionel Sambuc
2337*0a6a1f1dSLionel Sambucfor ac_prog in mawk gawk nawk awk
2338*0a6a1f1dSLionel Sambucdo
2339*0a6a1f1dSLionel Sambuc  # Extract the first word of "$ac_prog", so it can be a program name with args.
2340*0a6a1f1dSLionel Sambucset dummy $ac_prog; ac_word=$2
2341*0a6a1f1dSLionel Sambucecho "$as_me:2341: checking for $ac_word" >&5
2342*0a6a1f1dSLionel Sambucecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2343*0a6a1f1dSLionel Sambucif test "${ac_cv_prog_AWK+set}" = set; then
2344*0a6a1f1dSLionel Sambuc  echo $ECHO_N "(cached) $ECHO_C" >&6
2345*0a6a1f1dSLionel Sambucelse
2346*0a6a1f1dSLionel Sambuc  if test -n "$AWK"; then
2347*0a6a1f1dSLionel Sambuc  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2348*0a6a1f1dSLionel Sambucelse
2349*0a6a1f1dSLionel Sambuc  ac_save_IFS=$IFS; IFS=$ac_path_separator
2350*0a6a1f1dSLionel Sambucac_dummy="$PATH"
2351*0a6a1f1dSLionel Sambucfor ac_dir in $ac_dummy; do
2352*0a6a1f1dSLionel Sambuc  IFS=$ac_save_IFS
2353*0a6a1f1dSLionel Sambuc  test -z "$ac_dir" && ac_dir=.
2354*0a6a1f1dSLionel Sambuc  $as_executable_p "$ac_dir/$ac_word" || continue
2355*0a6a1f1dSLionel Sambucac_cv_prog_AWK="$ac_prog"
2356*0a6a1f1dSLionel Sambucecho "$as_me:2356: found $ac_dir/$ac_word" >&5
2357*0a6a1f1dSLionel Sambucbreak
2358*0a6a1f1dSLionel Sambucdone
2359*0a6a1f1dSLionel Sambuc
2360*0a6a1f1dSLionel Sambucfi
2361*0a6a1f1dSLionel Sambucfi
2362*0a6a1f1dSLionel SambucAWK=$ac_cv_prog_AWK
2363*0a6a1f1dSLionel Sambucif test -n "$AWK"; then
2364*0a6a1f1dSLionel Sambuc  echo "$as_me:2364: result: $AWK" >&5
2365*0a6a1f1dSLionel Sambucecho "${ECHO_T}$AWK" >&6
2366*0a6a1f1dSLionel Sambucelse
2367*0a6a1f1dSLionel Sambuc  echo "$as_me:2367: result: no" >&5
2368*0a6a1f1dSLionel Sambucecho "${ECHO_T}no" >&6
2369*0a6a1f1dSLionel Sambucfi
2370*0a6a1f1dSLionel Sambuc
2371*0a6a1f1dSLionel Sambuc  test -n "$AWK" && break
2372*0a6a1f1dSLionel Sambucdone
2373*0a6a1f1dSLionel Sambuc
2374*0a6a1f1dSLionel Sambuctest -z "$AWK" && { { echo "$as_me:2374: error: No awk program found" >&5
2375*0a6a1f1dSLionel Sambucecho "$as_me: error: No awk program found" >&2;}
2376*0a6a1f1dSLionel Sambuc   { (exit 1); exit 1; }; }
2377*0a6a1f1dSLionel Sambuc
237884d9c625SLionel Sambucfor ac_prog in tdlint lint alint splint lclint
237984d9c625SLionel Sambucdo
238084d9c625SLionel Sambuc  # Extract the first word of "$ac_prog", so it can be a program name with args.
238184d9c625SLionel Sambucset dummy $ac_prog; ac_word=$2
2382*0a6a1f1dSLionel Sambucecho "$as_me:2382: checking for $ac_word" >&5
238384d9c625SLionel Sambucecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
238484d9c625SLionel Sambucif test "${ac_cv_prog_LINT+set}" = set; then
238584d9c625SLionel Sambuc  echo $ECHO_N "(cached) $ECHO_C" >&6
238684d9c625SLionel Sambucelse
238784d9c625SLionel Sambuc  if test -n "$LINT"; then
238884d9c625SLionel Sambuc  ac_cv_prog_LINT="$LINT" # Let the user override the test.
238984d9c625SLionel Sambucelse
239084d9c625SLionel Sambuc  ac_save_IFS=$IFS; IFS=$ac_path_separator
239184d9c625SLionel Sambucac_dummy="$PATH"
239284d9c625SLionel Sambucfor ac_dir in $ac_dummy; do
239384d9c625SLionel Sambuc  IFS=$ac_save_IFS
239484d9c625SLionel Sambuc  test -z "$ac_dir" && ac_dir=.
239584d9c625SLionel Sambuc  $as_executable_p "$ac_dir/$ac_word" || continue
239684d9c625SLionel Sambucac_cv_prog_LINT="$ac_prog"
2397*0a6a1f1dSLionel Sambucecho "$as_me:2397: found $ac_dir/$ac_word" >&5
239884d9c625SLionel Sambucbreak
239984d9c625SLionel Sambucdone
240084d9c625SLionel Sambuc
240184d9c625SLionel Sambucfi
240284d9c625SLionel Sambucfi
240384d9c625SLionel SambucLINT=$ac_cv_prog_LINT
240484d9c625SLionel Sambucif test -n "$LINT"; then
2405*0a6a1f1dSLionel Sambuc  echo "$as_me:2405: result: $LINT" >&5
240684d9c625SLionel Sambucecho "${ECHO_T}$LINT" >&6
240784d9c625SLionel Sambucelse
2408*0a6a1f1dSLionel Sambuc  echo "$as_me:2408: result: no" >&5
240984d9c625SLionel Sambucecho "${ECHO_T}no" >&6
241084d9c625SLionel Sambucfi
241184d9c625SLionel Sambuc
241284d9c625SLionel Sambuc  test -n "$LINT" && break
241384d9c625SLionel Sambucdone
24144a17663cSThomas Veerman
24154a17663cSThomas Veermancf_XOPEN_SOURCE=500
24164a17663cSThomas Veermancf_POSIX_C_SOURCE=199506L
24174a17663cSThomas Veermancf_xopen_source=
24184a17663cSThomas Veerman
24194a17663cSThomas Veermancase $host_os in #(vi
24204a17663cSThomas Veermanaix[4-7]*) #(vi
24214a17663cSThomas Veerman	cf_xopen_source="-D_ALL_SOURCE"
24224a17663cSThomas Veerman	;;
2423*0a6a1f1dSLionel Sambuccygwin|msys) #(vi
24244a17663cSThomas Veerman	cf_XOPEN_SOURCE=600
24254a17663cSThomas Veerman	;;
24264a17663cSThomas Veermandarwin[0-8].*) #(vi
24274a17663cSThomas Veerman	cf_xopen_source="-D_APPLE_C_SOURCE"
24284a17663cSThomas Veerman	;;
24294a17663cSThomas Veermandarwin*) #(vi
24304a17663cSThomas Veerman	cf_xopen_source="-D_DARWIN_C_SOURCE"
243184d9c625SLionel Sambuc	cf_XOPEN_SOURCE=
24324a17663cSThomas Veerman	;;
24334a17663cSThomas Veermanfreebsd*|dragonfly*) #(vi
24344a17663cSThomas Veerman	# 5.x headers associate
24354a17663cSThomas Veerman	#	_XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
24364a17663cSThomas Veerman	#	_XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
24374a17663cSThomas Veerman	cf_POSIX_C_SOURCE=200112L
24384a17663cSThomas Veerman	cf_XOPEN_SOURCE=600
24394a17663cSThomas Veerman	cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
24404a17663cSThomas Veerman	;;
24414a17663cSThomas Veermanhpux11*) #(vi
24424a17663cSThomas Veerman	cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
24434a17663cSThomas Veerman	;;
24444a17663cSThomas Veermanhpux*) #(vi
24454a17663cSThomas Veerman	cf_xopen_source="-D_HPUX_SOURCE"
24464a17663cSThomas Veerman	;;
24474a17663cSThomas Veermanirix[56].*) #(vi
24484a17663cSThomas Veerman	cf_xopen_source="-D_SGI_SOURCE"
244984d9c625SLionel Sambuc	cf_XOPEN_SOURCE=
24504a17663cSThomas Veerman	;;
24514a17663cSThomas Veermanlinux*|gnu*|mint*|k*bsd*-gnu) #(vi
24524a17663cSThomas Veerman
2453*0a6a1f1dSLionel Sambucecho "$as_me:2453: checking if we must define _GNU_SOURCE" >&5
24544a17663cSThomas Veermanecho $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
24554a17663cSThomas Veermanif test "${cf_cv_gnu_source+set}" = set; then
24564a17663cSThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
24574a17663cSThomas Veermanelse
24584a17663cSThomas Veerman
24594a17663cSThomas Veermancat >conftest.$ac_ext <<_ACEOF
2460*0a6a1f1dSLionel Sambuc#line 2460 "configure"
24614a17663cSThomas Veerman#include "confdefs.h"
24624a17663cSThomas Veerman#include <sys/types.h>
24634a17663cSThomas Veermanint
24644a17663cSThomas Veermanmain ()
24654a17663cSThomas Veerman{
24664a17663cSThomas Veerman
24674a17663cSThomas Veerman#ifndef _XOPEN_SOURCE
24684a17663cSThomas Veermanmake an error
24694a17663cSThomas Veerman#endif
24704a17663cSThomas Veerman  ;
24714a17663cSThomas Veerman  return 0;
24724a17663cSThomas Veerman}
24734a17663cSThomas Veerman_ACEOF
24744a17663cSThomas Veermanrm -f conftest.$ac_objext
2475*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:2475: \"$ac_compile\"") >&5
24764a17663cSThomas Veerman  (eval $ac_compile) 2>&5
24774a17663cSThomas Veerman  ac_status=$?
2478*0a6a1f1dSLionel Sambuc  echo "$as_me:2478: \$? = $ac_status" >&5
24794a17663cSThomas Veerman  (exit $ac_status); } &&
24804a17663cSThomas Veerman         { ac_try='test -s conftest.$ac_objext'
2481*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:2481: \"$ac_try\"") >&5
24824a17663cSThomas Veerman  (eval $ac_try) 2>&5
24834a17663cSThomas Veerman  ac_status=$?
2484*0a6a1f1dSLionel Sambuc  echo "$as_me:2484: \$? = $ac_status" >&5
24854a17663cSThomas Veerman  (exit $ac_status); }; }; then
24864a17663cSThomas Veerman  cf_cv_gnu_source=no
24874a17663cSThomas Veermanelse
24884a17663cSThomas Veerman  echo "$as_me: failed program was:" >&5
24894a17663cSThomas Veermancat conftest.$ac_ext >&5
24904a17663cSThomas Veermancf_save="$CPPFLAGS"
24914a17663cSThomas Veerman	 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
24924a17663cSThomas Veerman	 cat >conftest.$ac_ext <<_ACEOF
2493*0a6a1f1dSLionel Sambuc#line 2493 "configure"
24944a17663cSThomas Veerman#include "confdefs.h"
24954a17663cSThomas Veerman#include <sys/types.h>
24964a17663cSThomas Veermanint
24974a17663cSThomas Veermanmain ()
24984a17663cSThomas Veerman{
24994a17663cSThomas Veerman
25004a17663cSThomas Veerman#ifdef _XOPEN_SOURCE
25014a17663cSThomas Veermanmake an error
25024a17663cSThomas Veerman#endif
25034a17663cSThomas Veerman  ;
25044a17663cSThomas Veerman  return 0;
25054a17663cSThomas Veerman}
25064a17663cSThomas Veerman_ACEOF
25074a17663cSThomas Veermanrm -f conftest.$ac_objext
2508*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:2508: \"$ac_compile\"") >&5
25094a17663cSThomas Veerman  (eval $ac_compile) 2>&5
25104a17663cSThomas Veerman  ac_status=$?
2511*0a6a1f1dSLionel Sambuc  echo "$as_me:2511: \$? = $ac_status" >&5
25124a17663cSThomas Veerman  (exit $ac_status); } &&
25134a17663cSThomas Veerman         { ac_try='test -s conftest.$ac_objext'
2514*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:2514: \"$ac_try\"") >&5
25154a17663cSThomas Veerman  (eval $ac_try) 2>&5
25164a17663cSThomas Veerman  ac_status=$?
2517*0a6a1f1dSLionel Sambuc  echo "$as_me:2517: \$? = $ac_status" >&5
25184a17663cSThomas Veerman  (exit $ac_status); }; }; then
25194a17663cSThomas Veerman  cf_cv_gnu_source=no
25204a17663cSThomas Veermanelse
25214a17663cSThomas Veerman  echo "$as_me: failed program was:" >&5
25224a17663cSThomas Veermancat conftest.$ac_ext >&5
25234a17663cSThomas Veermancf_cv_gnu_source=yes
25244a17663cSThomas Veermanfi
25254a17663cSThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
25264a17663cSThomas Veerman	CPPFLAGS="$cf_save"
25274a17663cSThomas Veerman
25284a17663cSThomas Veermanfi
25294a17663cSThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
25304a17663cSThomas Veerman
25314a17663cSThomas Veermanfi
2532*0a6a1f1dSLionel Sambucecho "$as_me:2532: result: $cf_cv_gnu_source" >&5
25334a17663cSThomas Veermanecho "${ECHO_T}$cf_cv_gnu_source" >&6
25344a17663cSThomas Veermantest "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
25354a17663cSThomas Veerman
25364a17663cSThomas Veerman	;;
2537*0a6a1f1dSLionel Sambucminix*) #(vi
2538*0a6a1f1dSLionel Sambuc	cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
2539*0a6a1f1dSLionel Sambuc	;;
25404a17663cSThomas Veermanmirbsd*) #(vi
254184d9c625SLionel Sambuc	# setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
254284d9c625SLionel Sambuc	cf_XOPEN_SOURCE=
254384d9c625SLionel Sambuc
254484d9c625SLionel Sambuccf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
254584d9c625SLionel Sambuc
254684d9c625SLionel Sambuccf_save_CFLAGS="$CFLAGS"
254784d9c625SLionel Sambuccf_save_CPPFLAGS="$CPPFLAGS"
254884d9c625SLionel Sambuc
254984d9c625SLionel Sambuccf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
255084d9c625SLionel Sambuc	sed	-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
255184d9c625SLionel Sambuc		-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?$//g'`
255284d9c625SLionel Sambuc
255384d9c625SLionel Sambuccf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
255484d9c625SLionel Sambuc	sed	-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
255584d9c625SLionel Sambuc		-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?$//g'`
255684d9c625SLionel Sambuc
2557*0a6a1f1dSLionel Sambucecho "$as_me:2557: checking if we should define _POSIX_C_SOURCE" >&5
255884d9c625SLionel Sambucecho $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
255984d9c625SLionel Sambucif test "${cf_cv_posix_c_source+set}" = set; then
256084d9c625SLionel Sambuc  echo $ECHO_N "(cached) $ECHO_C" >&6
256184d9c625SLionel Sambucelse
256284d9c625SLionel Sambuc
2563*0a6a1f1dSLionel Sambucecho "${as_me:-configure}:2563: testing if the symbol is already defined go no further ..." 1>&5
256484d9c625SLionel Sambuc
256584d9c625SLionel Sambuc	cat >conftest.$ac_ext <<_ACEOF
2566*0a6a1f1dSLionel Sambuc#line 2566 "configure"
256784d9c625SLionel Sambuc#include "confdefs.h"
256884d9c625SLionel Sambuc#include <sys/types.h>
256984d9c625SLionel Sambucint
257084d9c625SLionel Sambucmain ()
257184d9c625SLionel Sambuc{
257284d9c625SLionel Sambuc
257384d9c625SLionel Sambuc#ifndef _POSIX_C_SOURCE
257484d9c625SLionel Sambucmake an error
257584d9c625SLionel Sambuc#endif
257684d9c625SLionel Sambuc  ;
257784d9c625SLionel Sambuc  return 0;
257884d9c625SLionel Sambuc}
257984d9c625SLionel Sambuc_ACEOF
258084d9c625SLionel Sambucrm -f conftest.$ac_objext
2581*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:2581: \"$ac_compile\"") >&5
258284d9c625SLionel Sambuc  (eval $ac_compile) 2>&5
258384d9c625SLionel Sambuc  ac_status=$?
2584*0a6a1f1dSLionel Sambuc  echo "$as_me:2584: \$? = $ac_status" >&5
258584d9c625SLionel Sambuc  (exit $ac_status); } &&
258684d9c625SLionel Sambuc         { ac_try='test -s conftest.$ac_objext'
2587*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:2587: \"$ac_try\"") >&5
258884d9c625SLionel Sambuc  (eval $ac_try) 2>&5
258984d9c625SLionel Sambuc  ac_status=$?
2590*0a6a1f1dSLionel Sambuc  echo "$as_me:2590: \$? = $ac_status" >&5
259184d9c625SLionel Sambuc  (exit $ac_status); }; }; then
259284d9c625SLionel Sambuc  cf_cv_posix_c_source=no
259384d9c625SLionel Sambucelse
259484d9c625SLionel Sambuc  echo "$as_me: failed program was:" >&5
259584d9c625SLionel Sambuccat conftest.$ac_ext >&5
259684d9c625SLionel Sambuccf_want_posix_source=no
259784d9c625SLionel Sambuc	 case .$cf_POSIX_C_SOURCE in #(vi
259884d9c625SLionel Sambuc	 .[12]??*) #(vi
259984d9c625SLionel Sambuc		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
260084d9c625SLionel Sambuc		;;
260184d9c625SLionel Sambuc	 .2) #(vi
260284d9c625SLionel Sambuc		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
260384d9c625SLionel Sambuc		cf_want_posix_source=yes
260484d9c625SLionel Sambuc		;;
260584d9c625SLionel Sambuc	 .*)
260684d9c625SLionel Sambuc		cf_want_posix_source=yes
260784d9c625SLionel Sambuc		;;
260884d9c625SLionel Sambuc	 esac
260984d9c625SLionel Sambuc	 if test "$cf_want_posix_source" = yes ; then
261084d9c625SLionel Sambuc		cat >conftest.$ac_ext <<_ACEOF
2611*0a6a1f1dSLionel Sambuc#line 2611 "configure"
261284d9c625SLionel Sambuc#include "confdefs.h"
261384d9c625SLionel Sambuc#include <sys/types.h>
261484d9c625SLionel Sambucint
261584d9c625SLionel Sambucmain ()
261684d9c625SLionel Sambuc{
261784d9c625SLionel Sambuc
261884d9c625SLionel Sambuc#ifdef _POSIX_SOURCE
261984d9c625SLionel Sambucmake an error
262084d9c625SLionel Sambuc#endif
262184d9c625SLionel Sambuc  ;
262284d9c625SLionel Sambuc  return 0;
262384d9c625SLionel Sambuc}
262484d9c625SLionel Sambuc_ACEOF
262584d9c625SLionel Sambucrm -f conftest.$ac_objext
2626*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:2626: \"$ac_compile\"") >&5
262784d9c625SLionel Sambuc  (eval $ac_compile) 2>&5
262884d9c625SLionel Sambuc  ac_status=$?
2629*0a6a1f1dSLionel Sambuc  echo "$as_me:2629: \$? = $ac_status" >&5
263084d9c625SLionel Sambuc  (exit $ac_status); } &&
263184d9c625SLionel Sambuc         { ac_try='test -s conftest.$ac_objext'
2632*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:2632: \"$ac_try\"") >&5
263384d9c625SLionel Sambuc  (eval $ac_try) 2>&5
263484d9c625SLionel Sambuc  ac_status=$?
2635*0a6a1f1dSLionel Sambuc  echo "$as_me:2635: \$? = $ac_status" >&5
263684d9c625SLionel Sambuc  (exit $ac_status); }; }; then
263784d9c625SLionel Sambuc  :
263884d9c625SLionel Sambucelse
263984d9c625SLionel Sambuc  echo "$as_me: failed program was:" >&5
264084d9c625SLionel Sambuccat conftest.$ac_ext >&5
264184d9c625SLionel Sambuccf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
264284d9c625SLionel Sambucfi
264384d9c625SLionel Sambucrm -f conftest.$ac_objext conftest.$ac_ext
264484d9c625SLionel Sambuc	 fi
264584d9c625SLionel Sambuc
2646*0a6a1f1dSLionel Sambucecho "${as_me:-configure}:2646: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
264784d9c625SLionel Sambuc
264884d9c625SLionel Sambuc	 CFLAGS="$cf_trim_CFLAGS"
264984d9c625SLionel Sambuc	 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
265084d9c625SLionel Sambuc
2651*0a6a1f1dSLionel Sambucecho "${as_me:-configure}:2651: testing if the second compile does not leave our definition intact error ..." 1>&5
265284d9c625SLionel Sambuc
265384d9c625SLionel Sambuc	 cat >conftest.$ac_ext <<_ACEOF
2654*0a6a1f1dSLionel Sambuc#line 2654 "configure"
265584d9c625SLionel Sambuc#include "confdefs.h"
265684d9c625SLionel Sambuc#include <sys/types.h>
265784d9c625SLionel Sambucint
265884d9c625SLionel Sambucmain ()
265984d9c625SLionel Sambuc{
266084d9c625SLionel Sambuc
266184d9c625SLionel Sambuc#ifndef _POSIX_C_SOURCE
266284d9c625SLionel Sambucmake an error
266384d9c625SLionel Sambuc#endif
266484d9c625SLionel Sambuc  ;
266584d9c625SLionel Sambuc  return 0;
266684d9c625SLionel Sambuc}
266784d9c625SLionel Sambuc_ACEOF
266884d9c625SLionel Sambucrm -f conftest.$ac_objext
2669*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:2669: \"$ac_compile\"") >&5
267084d9c625SLionel Sambuc  (eval $ac_compile) 2>&5
267184d9c625SLionel Sambuc  ac_status=$?
2672*0a6a1f1dSLionel Sambuc  echo "$as_me:2672: \$? = $ac_status" >&5
267384d9c625SLionel Sambuc  (exit $ac_status); } &&
267484d9c625SLionel Sambuc         { ac_try='test -s conftest.$ac_objext'
2675*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:2675: \"$ac_try\"") >&5
267684d9c625SLionel Sambuc  (eval $ac_try) 2>&5
267784d9c625SLionel Sambuc  ac_status=$?
2678*0a6a1f1dSLionel Sambuc  echo "$as_me:2678: \$? = $ac_status" >&5
267984d9c625SLionel Sambuc  (exit $ac_status); }; }; then
268084d9c625SLionel Sambuc  :
268184d9c625SLionel Sambucelse
268284d9c625SLionel Sambuc  echo "$as_me: failed program was:" >&5
268384d9c625SLionel Sambuccat conftest.$ac_ext >&5
268484d9c625SLionel Sambuccf_cv_posix_c_source=no
268584d9c625SLionel Sambucfi
268684d9c625SLionel Sambucrm -f conftest.$ac_objext conftest.$ac_ext
268784d9c625SLionel Sambuc	 CFLAGS="$cf_save_CFLAGS"
268884d9c625SLionel Sambuc	 CPPFLAGS="$cf_save_CPPFLAGS"
268984d9c625SLionel Sambuc
269084d9c625SLionel Sambucfi
269184d9c625SLionel Sambucrm -f conftest.$ac_objext conftest.$ac_ext
269284d9c625SLionel Sambuc
269384d9c625SLionel Sambucfi
2694*0a6a1f1dSLionel Sambucecho "$as_me:2694: result: $cf_cv_posix_c_source" >&5
269584d9c625SLionel Sambucecho "${ECHO_T}$cf_cv_posix_c_source" >&6
269684d9c625SLionel Sambuc
269784d9c625SLionel Sambucif test "$cf_cv_posix_c_source" != no ; then
269884d9c625SLionel Sambuc	CFLAGS="$cf_trim_CFLAGS"
269984d9c625SLionel Sambuc	CPPFLAGS="$cf_trim_CPPFLAGS"
270084d9c625SLionel Sambuc
270184d9c625SLionel Sambuccf_fix_cppflags=no
270284d9c625SLionel Sambuccf_new_cflags=
270384d9c625SLionel Sambuccf_new_cppflags=
270484d9c625SLionel Sambuccf_new_extra_cppflags=
270584d9c625SLionel Sambuc
270684d9c625SLionel Sambucfor cf_add_cflags in $cf_cv_posix_c_source
270784d9c625SLionel Sambucdo
270884d9c625SLionel Sambuccase $cf_fix_cppflags in
270984d9c625SLionel Sambucno)
271084d9c625SLionel Sambuc	case $cf_add_cflags in #(vi
271184d9c625SLionel Sambuc	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
271284d9c625SLionel Sambuc		case $cf_add_cflags in
271384d9c625SLionel Sambuc		-D*)
271484d9c625SLionel Sambuc			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
271584d9c625SLionel Sambuc
2716*0a6a1f1dSLionel Sambuc			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
271784d9c625SLionel Sambuc				&& test -z "${cf_tst_cflags}" \
271884d9c625SLionel Sambuc				&& cf_fix_cppflags=yes
271984d9c625SLionel Sambuc
272084d9c625SLionel Sambuc			if test $cf_fix_cppflags = yes ; then
272184d9c625SLionel Sambuc				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
272284d9c625SLionel Sambuc				continue
272384d9c625SLionel Sambuc			elif test "${cf_tst_cflags}" = "\"'" ; then
272484d9c625SLionel Sambuc				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
272584d9c625SLionel Sambuc				continue
272684d9c625SLionel Sambuc			fi
272784d9c625SLionel Sambuc			;;
272884d9c625SLionel Sambuc		esac
272984d9c625SLionel Sambuc		case "$CPPFLAGS" in
273084d9c625SLionel Sambuc		*$cf_add_cflags) #(vi
273184d9c625SLionel Sambuc			;;
273284d9c625SLionel Sambuc		*) #(vi
273384d9c625SLionel Sambuc			case $cf_add_cflags in #(vi
273484d9c625SLionel Sambuc			-D*)
273584d9c625SLionel Sambuc				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
273684d9c625SLionel Sambuc
273784d9c625SLionel SambucCPPFLAGS=`echo "$CPPFLAGS" | \
273884d9c625SLionel Sambuc	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
273984d9c625SLionel Sambuc		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
274084d9c625SLionel Sambuc
274184d9c625SLionel Sambuc				;;
274284d9c625SLionel Sambuc			esac
274384d9c625SLionel Sambuc			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
274484d9c625SLionel Sambuc			;;
274584d9c625SLionel Sambuc		esac
274684d9c625SLionel Sambuc		;;
274784d9c625SLionel Sambuc	*)
274884d9c625SLionel Sambuc		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
274984d9c625SLionel Sambuc		;;
275084d9c625SLionel Sambuc	esac
275184d9c625SLionel Sambuc	;;
275284d9c625SLionel Sambucyes)
275384d9c625SLionel Sambuc	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
275484d9c625SLionel Sambuc
275584d9c625SLionel Sambuc	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
275684d9c625SLionel Sambuc
2757*0a6a1f1dSLionel Sambuc	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
275884d9c625SLionel Sambuc		&& test -z "${cf_tst_cflags}" \
275984d9c625SLionel Sambuc		&& cf_fix_cppflags=no
276084d9c625SLionel Sambuc	;;
276184d9c625SLionel Sambucesac
276284d9c625SLionel Sambucdone
276384d9c625SLionel Sambuc
276484d9c625SLionel Sambucif test -n "$cf_new_cflags" ; then
276584d9c625SLionel Sambuc
276684d9c625SLionel Sambuc	CFLAGS="$CFLAGS $cf_new_cflags"
276784d9c625SLionel Sambucfi
276884d9c625SLionel Sambuc
276984d9c625SLionel Sambucif test -n "$cf_new_cppflags" ; then
277084d9c625SLionel Sambuc
277184d9c625SLionel Sambuc	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
277284d9c625SLionel Sambucfi
277384d9c625SLionel Sambuc
277484d9c625SLionel Sambucif test -n "$cf_new_extra_cppflags" ; then
277584d9c625SLionel Sambuc
277684d9c625SLionel Sambuc	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
277784d9c625SLionel Sambucfi
277884d9c625SLionel Sambuc
277984d9c625SLionel Sambucfi
278084d9c625SLionel Sambuc
27814a17663cSThomas Veerman	;;
27824a17663cSThomas Veermannetbsd*) #(vi
27834a17663cSThomas Veerman	cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
27844a17663cSThomas Veerman	;;
278584d9c625SLionel Sambucopenbsd[4-9]*) #(vi
278684d9c625SLionel Sambuc	# setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
278784d9c625SLionel Sambuc	cf_xopen_source="-D_BSD_SOURCE"
278884d9c625SLionel Sambuc	cf_XOPEN_SOURCE=600
278984d9c625SLionel Sambuc	;;
27904a17663cSThomas Veermanopenbsd*) #(vi
27914a17663cSThomas Veerman	# setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
27924a17663cSThomas Veerman	;;
27934a17663cSThomas Veermanosf[45]*) #(vi
27944a17663cSThomas Veerman	cf_xopen_source="-D_OSF_SOURCE"
27954a17663cSThomas Veerman	;;
27964a17663cSThomas Veermannto-qnx*) #(vi
27974a17663cSThomas Veerman	cf_xopen_source="-D_QNX_SOURCE"
27984a17663cSThomas Veerman	;;
27994a17663cSThomas Veermansco*) #(vi
28004a17663cSThomas Veerman	# setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
28014a17663cSThomas Veerman	;;
280284d9c625SLionel Sambucsolaris2.*) #(vi
28034a17663cSThomas Veerman	cf_xopen_source="-D__EXTENSIONS__"
2804*0a6a1f1dSLionel Sambuc	cf_cv_xopen_source=broken
2805*0a6a1f1dSLionel Sambuc	;;
2806*0a6a1f1dSLionel Sambucsysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
2807*0a6a1f1dSLionel Sambuc	cf_XOPEN_SOURCE=
2808*0a6a1f1dSLionel Sambuc	cf_POSIX_C_SOURCE=
28094a17663cSThomas Veerman	;;
28104a17663cSThomas Veerman*)
281184d9c625SLionel Sambuc
2812*0a6a1f1dSLionel Sambucecho "$as_me:2812: checking if we should define _XOPEN_SOURCE" >&5
28134a17663cSThomas Veermanecho $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
28144a17663cSThomas Veermanif test "${cf_cv_xopen_source+set}" = set; then
28154a17663cSThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
28164a17663cSThomas Veermanelse
28174a17663cSThomas Veerman
28184a17663cSThomas Veerman	cat >conftest.$ac_ext <<_ACEOF
2819*0a6a1f1dSLionel Sambuc#line 2819 "configure"
28204a17663cSThomas Veerman#include "confdefs.h"
282184d9c625SLionel Sambuc
282284d9c625SLionel Sambuc#include <stdlib.h>
282384d9c625SLionel Sambuc#include <string.h>
28244a17663cSThomas Veerman#include <sys/types.h>
282584d9c625SLionel Sambuc
28264a17663cSThomas Veermanint
28274a17663cSThomas Veermanmain ()
28284a17663cSThomas Veerman{
28294a17663cSThomas Veerman
28304a17663cSThomas Veerman#ifndef _XOPEN_SOURCE
28314a17663cSThomas Veermanmake an error
28324a17663cSThomas Veerman#endif
28334a17663cSThomas Veerman  ;
28344a17663cSThomas Veerman  return 0;
28354a17663cSThomas Veerman}
28364a17663cSThomas Veerman_ACEOF
28374a17663cSThomas Veermanrm -f conftest.$ac_objext
2838*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:2838: \"$ac_compile\"") >&5
28394a17663cSThomas Veerman  (eval $ac_compile) 2>&5
28404a17663cSThomas Veerman  ac_status=$?
2841*0a6a1f1dSLionel Sambuc  echo "$as_me:2841: \$? = $ac_status" >&5
28424a17663cSThomas Veerman  (exit $ac_status); } &&
28434a17663cSThomas Veerman         { ac_try='test -s conftest.$ac_objext'
2844*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:2844: \"$ac_try\"") >&5
28454a17663cSThomas Veerman  (eval $ac_try) 2>&5
28464a17663cSThomas Veerman  ac_status=$?
2847*0a6a1f1dSLionel Sambuc  echo "$as_me:2847: \$? = $ac_status" >&5
28484a17663cSThomas Veerman  (exit $ac_status); }; }; then
28494a17663cSThomas Veerman  cf_cv_xopen_source=no
28504a17663cSThomas Veermanelse
28514a17663cSThomas Veerman  echo "$as_me: failed program was:" >&5
28524a17663cSThomas Veermancat conftest.$ac_ext >&5
28534a17663cSThomas Veermancf_save="$CPPFLAGS"
28544a17663cSThomas Veerman	 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
28554a17663cSThomas Veerman	 cat >conftest.$ac_ext <<_ACEOF
2856*0a6a1f1dSLionel Sambuc#line 2856 "configure"
28574a17663cSThomas Veerman#include "confdefs.h"
285884d9c625SLionel Sambuc
285984d9c625SLionel Sambuc#include <stdlib.h>
286084d9c625SLionel Sambuc#include <string.h>
28614a17663cSThomas Veerman#include <sys/types.h>
286284d9c625SLionel Sambuc
28634a17663cSThomas Veermanint
28644a17663cSThomas Veermanmain ()
28654a17663cSThomas Veerman{
28664a17663cSThomas Veerman
28674a17663cSThomas Veerman#ifdef _XOPEN_SOURCE
28684a17663cSThomas Veermanmake an error
28694a17663cSThomas Veerman#endif
28704a17663cSThomas Veerman  ;
28714a17663cSThomas Veerman  return 0;
28724a17663cSThomas Veerman}
28734a17663cSThomas Veerman_ACEOF
28744a17663cSThomas Veermanrm -f conftest.$ac_objext
2875*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:2875: \"$ac_compile\"") >&5
28764a17663cSThomas Veerman  (eval $ac_compile) 2>&5
28774a17663cSThomas Veerman  ac_status=$?
2878*0a6a1f1dSLionel Sambuc  echo "$as_me:2878: \$? = $ac_status" >&5
28794a17663cSThomas Veerman  (exit $ac_status); } &&
28804a17663cSThomas Veerman         { ac_try='test -s conftest.$ac_objext'
2881*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:2881: \"$ac_try\"") >&5
28824a17663cSThomas Veerman  (eval $ac_try) 2>&5
28834a17663cSThomas Veerman  ac_status=$?
2884*0a6a1f1dSLionel Sambuc  echo "$as_me:2884: \$? = $ac_status" >&5
28854a17663cSThomas Veerman  (exit $ac_status); }; }; then
28864a17663cSThomas Veerman  cf_cv_xopen_source=no
28874a17663cSThomas Veermanelse
28884a17663cSThomas Veerman  echo "$as_me: failed program was:" >&5
28894a17663cSThomas Veermancat conftest.$ac_ext >&5
28904a17663cSThomas Veermancf_cv_xopen_source=$cf_XOPEN_SOURCE
28914a17663cSThomas Veermanfi
28924a17663cSThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
28934a17663cSThomas Veerman	CPPFLAGS="$cf_save"
28944a17663cSThomas Veerman
28954a17663cSThomas Veermanfi
28964a17663cSThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
28974a17663cSThomas Veerman
28984a17663cSThomas Veermanfi
2899*0a6a1f1dSLionel Sambucecho "$as_me:2899: result: $cf_cv_xopen_source" >&5
29004a17663cSThomas Veermanecho "${ECHO_T}$cf_cv_xopen_source" >&6
290184d9c625SLionel Sambuc
29024a17663cSThomas Veermanif test "$cf_cv_xopen_source" != no ; then
29034a17663cSThomas Veerman
29044a17663cSThomas VeermanCFLAGS=`echo "$CFLAGS" | \
29054a17663cSThomas Veerman	sed	-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
29064a17663cSThomas Veerman		-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?$//g'`
29074a17663cSThomas Veerman
29084a17663cSThomas VeermanCPPFLAGS=`echo "$CPPFLAGS" | \
29094a17663cSThomas Veerman	sed	-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
29104a17663cSThomas Veerman		-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?$//g'`
29114a17663cSThomas Veerman
29124a17663cSThomas Veerman	cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
29134a17663cSThomas Veerman
29144a17663cSThomas Veermancf_fix_cppflags=no
29154a17663cSThomas Veermancf_new_cflags=
29164a17663cSThomas Veermancf_new_cppflags=
29174a17663cSThomas Veermancf_new_extra_cppflags=
29184a17663cSThomas Veerman
29194a17663cSThomas Veermanfor cf_add_cflags in $cf_temp_xopen_source
29204a17663cSThomas Veermando
29214a17663cSThomas Veermancase $cf_fix_cppflags in
29224a17663cSThomas Veermanno)
29234a17663cSThomas Veerman	case $cf_add_cflags in #(vi
29244a17663cSThomas Veerman	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
29254a17663cSThomas Veerman		case $cf_add_cflags in
29264a17663cSThomas Veerman		-D*)
29274a17663cSThomas Veerman			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
29284a17663cSThomas Veerman
2929*0a6a1f1dSLionel Sambuc			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
29304a17663cSThomas Veerman				&& test -z "${cf_tst_cflags}" \
29314a17663cSThomas Veerman				&& cf_fix_cppflags=yes
29324a17663cSThomas Veerman
29334a17663cSThomas Veerman			if test $cf_fix_cppflags = yes ; then
29344a17663cSThomas Veerman				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
29354a17663cSThomas Veerman				continue
29364a17663cSThomas Veerman			elif test "${cf_tst_cflags}" = "\"'" ; then
29374a17663cSThomas Veerman				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
29384a17663cSThomas Veerman				continue
29394a17663cSThomas Veerman			fi
29404a17663cSThomas Veerman			;;
29414a17663cSThomas Veerman		esac
29424a17663cSThomas Veerman		case "$CPPFLAGS" in
29434a17663cSThomas Veerman		*$cf_add_cflags) #(vi
29444a17663cSThomas Veerman			;;
29454a17663cSThomas Veerman		*) #(vi
29464a17663cSThomas Veerman			case $cf_add_cflags in #(vi
29474a17663cSThomas Veerman			-D*)
29484a17663cSThomas Veerman				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
29494a17663cSThomas Veerman
29504a17663cSThomas VeermanCPPFLAGS=`echo "$CPPFLAGS" | \
29514a17663cSThomas Veerman	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
29524a17663cSThomas Veerman		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
29534a17663cSThomas Veerman
29544a17663cSThomas Veerman				;;
29554a17663cSThomas Veerman			esac
29564a17663cSThomas Veerman			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
29574a17663cSThomas Veerman			;;
29584a17663cSThomas Veerman		esac
29594a17663cSThomas Veerman		;;
29604a17663cSThomas Veerman	*)
29614a17663cSThomas Veerman		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
29624a17663cSThomas Veerman		;;
29634a17663cSThomas Veerman	esac
29644a17663cSThomas Veerman	;;
29654a17663cSThomas Veermanyes)
29664a17663cSThomas Veerman	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
29674a17663cSThomas Veerman
29684a17663cSThomas Veerman	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
29694a17663cSThomas Veerman
2970*0a6a1f1dSLionel Sambuc	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
29714a17663cSThomas Veerman		&& test -z "${cf_tst_cflags}" \
29724a17663cSThomas Veerman		&& cf_fix_cppflags=no
29734a17663cSThomas Veerman	;;
29744a17663cSThomas Veermanesac
29754a17663cSThomas Veermandone
29764a17663cSThomas Veerman
29774a17663cSThomas Veermanif test -n "$cf_new_cflags" ; then
29784a17663cSThomas Veerman
29794a17663cSThomas Veerman	CFLAGS="$CFLAGS $cf_new_cflags"
29804a17663cSThomas Veermanfi
29814a17663cSThomas Veerman
29824a17663cSThomas Veermanif test -n "$cf_new_cppflags" ; then
29834a17663cSThomas Veerman
29844a17663cSThomas Veerman	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
29854a17663cSThomas Veermanfi
29864a17663cSThomas Veerman
29874a17663cSThomas Veermanif test -n "$cf_new_extra_cppflags" ; then
29884a17663cSThomas Veerman
29894a17663cSThomas Veerman	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
29904a17663cSThomas Veermanfi
29914a17663cSThomas Veerman
29924a17663cSThomas Veermanfi
29934a17663cSThomas Veerman
29944a17663cSThomas Veermancf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
29954a17663cSThomas Veerman
29964a17663cSThomas Veermancf_save_CFLAGS="$CFLAGS"
29974a17663cSThomas Veermancf_save_CPPFLAGS="$CPPFLAGS"
29984a17663cSThomas Veerman
29994a17663cSThomas Veermancf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
30004a17663cSThomas Veerman	sed	-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
30014a17663cSThomas Veerman		-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?$//g'`
30024a17663cSThomas Veerman
30034a17663cSThomas Veermancf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
30044a17663cSThomas Veerman	sed	-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
30054a17663cSThomas Veerman		-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?$//g'`
30064a17663cSThomas Veerman
3007*0a6a1f1dSLionel Sambucecho "$as_me:3007: checking if we should define _POSIX_C_SOURCE" >&5
30084a17663cSThomas Veermanecho $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
30094a17663cSThomas Veermanif test "${cf_cv_posix_c_source+set}" = set; then
30104a17663cSThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
30114a17663cSThomas Veermanelse
30124a17663cSThomas Veerman
3013*0a6a1f1dSLionel Sambucecho "${as_me:-configure}:3013: testing if the symbol is already defined go no further ..." 1>&5
30144a17663cSThomas Veerman
30154a17663cSThomas Veerman	cat >conftest.$ac_ext <<_ACEOF
301684d9c625SLionel Sambuc#line 3016 "configure"
30174a17663cSThomas Veerman#include "confdefs.h"
30184a17663cSThomas Veerman#include <sys/types.h>
30194a17663cSThomas Veermanint
30204a17663cSThomas Veermanmain ()
30214a17663cSThomas Veerman{
30224a17663cSThomas Veerman
30234a17663cSThomas Veerman#ifndef _POSIX_C_SOURCE
30244a17663cSThomas Veermanmake an error
30254a17663cSThomas Veerman#endif
30264a17663cSThomas Veerman  ;
30274a17663cSThomas Veerman  return 0;
30284a17663cSThomas Veerman}
30294a17663cSThomas Veerman_ACEOF
30304a17663cSThomas Veermanrm -f conftest.$ac_objext
303184d9c625SLionel Sambucif { (eval echo "$as_me:3031: \"$ac_compile\"") >&5
30324a17663cSThomas Veerman  (eval $ac_compile) 2>&5
30334a17663cSThomas Veerman  ac_status=$?
303484d9c625SLionel Sambuc  echo "$as_me:3034: \$? = $ac_status" >&5
30354a17663cSThomas Veerman  (exit $ac_status); } &&
30364a17663cSThomas Veerman         { ac_try='test -s conftest.$ac_objext'
303784d9c625SLionel Sambuc  { (eval echo "$as_me:3037: \"$ac_try\"") >&5
30384a17663cSThomas Veerman  (eval $ac_try) 2>&5
30394a17663cSThomas Veerman  ac_status=$?
304084d9c625SLionel Sambuc  echo "$as_me:3040: \$? = $ac_status" >&5
30414a17663cSThomas Veerman  (exit $ac_status); }; }; then
3042*0a6a1f1dSLionel Sambuc  cf_cv_posix_c_source=no
3043*0a6a1f1dSLionel Sambucelse
3044*0a6a1f1dSLionel Sambuc  echo "$as_me: failed program was:" >&5
3045*0a6a1f1dSLionel Sambuccat conftest.$ac_ext >&5
3046*0a6a1f1dSLionel Sambuccf_want_posix_source=no
3047*0a6a1f1dSLionel Sambuc	 case .$cf_POSIX_C_SOURCE in #(vi
3048*0a6a1f1dSLionel Sambuc	 .[12]??*) #(vi
3049*0a6a1f1dSLionel Sambuc		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3050*0a6a1f1dSLionel Sambuc		;;
3051*0a6a1f1dSLionel Sambuc	 .2) #(vi
3052*0a6a1f1dSLionel Sambuc		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3053*0a6a1f1dSLionel Sambuc		cf_want_posix_source=yes
3054*0a6a1f1dSLionel Sambuc		;;
3055*0a6a1f1dSLionel Sambuc	 .*)
3056*0a6a1f1dSLionel Sambuc		cf_want_posix_source=yes
3057*0a6a1f1dSLionel Sambuc		;;
3058*0a6a1f1dSLionel Sambuc	 esac
3059*0a6a1f1dSLionel Sambuc	 if test "$cf_want_posix_source" = yes ; then
3060*0a6a1f1dSLionel Sambuc		cat >conftest.$ac_ext <<_ACEOF
3061*0a6a1f1dSLionel Sambuc#line 3061 "configure"
3062*0a6a1f1dSLionel Sambuc#include "confdefs.h"
3063*0a6a1f1dSLionel Sambuc#include <sys/types.h>
3064*0a6a1f1dSLionel Sambucint
3065*0a6a1f1dSLionel Sambucmain ()
3066*0a6a1f1dSLionel Sambuc{
3067*0a6a1f1dSLionel Sambuc
3068*0a6a1f1dSLionel Sambuc#ifdef _POSIX_SOURCE
3069*0a6a1f1dSLionel Sambucmake an error
3070*0a6a1f1dSLionel Sambuc#endif
3071*0a6a1f1dSLionel Sambuc  ;
3072*0a6a1f1dSLionel Sambuc  return 0;
3073*0a6a1f1dSLionel Sambuc}
3074*0a6a1f1dSLionel Sambuc_ACEOF
3075*0a6a1f1dSLionel Sambucrm -f conftest.$ac_objext
3076*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:3076: \"$ac_compile\"") >&5
3077*0a6a1f1dSLionel Sambuc  (eval $ac_compile) 2>&5
3078*0a6a1f1dSLionel Sambuc  ac_status=$?
3079*0a6a1f1dSLionel Sambuc  echo "$as_me:3079: \$? = $ac_status" >&5
3080*0a6a1f1dSLionel Sambuc  (exit $ac_status); } &&
3081*0a6a1f1dSLionel Sambuc         { ac_try='test -s conftest.$ac_objext'
3082*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:3082: \"$ac_try\"") >&5
3083*0a6a1f1dSLionel Sambuc  (eval $ac_try) 2>&5
3084*0a6a1f1dSLionel Sambuc  ac_status=$?
3085*0a6a1f1dSLionel Sambuc  echo "$as_me:3085: \$? = $ac_status" >&5
3086*0a6a1f1dSLionel Sambuc  (exit $ac_status); }; }; then
3087*0a6a1f1dSLionel Sambuc  :
3088*0a6a1f1dSLionel Sambucelse
3089*0a6a1f1dSLionel Sambuc  echo "$as_me: failed program was:" >&5
3090*0a6a1f1dSLionel Sambuccat conftest.$ac_ext >&5
3091*0a6a1f1dSLionel Sambuccf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3092*0a6a1f1dSLionel Sambucfi
3093*0a6a1f1dSLionel Sambucrm -f conftest.$ac_objext conftest.$ac_ext
3094*0a6a1f1dSLionel Sambuc	 fi
3095*0a6a1f1dSLionel Sambuc
3096*0a6a1f1dSLionel Sambucecho "${as_me:-configure}:3096: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3097*0a6a1f1dSLionel Sambuc
3098*0a6a1f1dSLionel Sambuc	 CFLAGS="$cf_trim_CFLAGS"
3099*0a6a1f1dSLionel Sambuc	 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3100*0a6a1f1dSLionel Sambuc
3101*0a6a1f1dSLionel Sambucecho "${as_me:-configure}:3101: testing if the second compile does not leave our definition intact error ..." 1>&5
3102*0a6a1f1dSLionel Sambuc
3103*0a6a1f1dSLionel Sambuc	 cat >conftest.$ac_ext <<_ACEOF
3104*0a6a1f1dSLionel Sambuc#line 3104 "configure"
3105*0a6a1f1dSLionel Sambuc#include "confdefs.h"
3106*0a6a1f1dSLionel Sambuc#include <sys/types.h>
3107*0a6a1f1dSLionel Sambucint
3108*0a6a1f1dSLionel Sambucmain ()
3109*0a6a1f1dSLionel Sambuc{
3110*0a6a1f1dSLionel Sambuc
3111*0a6a1f1dSLionel Sambuc#ifndef _POSIX_C_SOURCE
3112*0a6a1f1dSLionel Sambucmake an error
3113*0a6a1f1dSLionel Sambuc#endif
3114*0a6a1f1dSLionel Sambuc  ;
3115*0a6a1f1dSLionel Sambuc  return 0;
3116*0a6a1f1dSLionel Sambuc}
3117*0a6a1f1dSLionel Sambuc_ACEOF
3118*0a6a1f1dSLionel Sambucrm -f conftest.$ac_objext
3119*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:3119: \"$ac_compile\"") >&5
3120*0a6a1f1dSLionel Sambuc  (eval $ac_compile) 2>&5
3121*0a6a1f1dSLionel Sambuc  ac_status=$?
3122*0a6a1f1dSLionel Sambuc  echo "$as_me:3122: \$? = $ac_status" >&5
3123*0a6a1f1dSLionel Sambuc  (exit $ac_status); } &&
3124*0a6a1f1dSLionel Sambuc         { ac_try='test -s conftest.$ac_objext'
3125*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:3125: \"$ac_try\"") >&5
3126*0a6a1f1dSLionel Sambuc  (eval $ac_try) 2>&5
3127*0a6a1f1dSLionel Sambuc  ac_status=$?
3128*0a6a1f1dSLionel Sambuc  echo "$as_me:3128: \$? = $ac_status" >&5
3129*0a6a1f1dSLionel Sambuc  (exit $ac_status); }; }; then
31304a17663cSThomas Veerman  :
31314a17663cSThomas Veermanelse
31324a17663cSThomas Veerman  echo "$as_me: failed program was:" >&5
31334a17663cSThomas Veermancat conftest.$ac_ext >&5
31344a17663cSThomas Veermancf_cv_posix_c_source=no
31354a17663cSThomas Veermanfi
31364a17663cSThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
31374a17663cSThomas Veerman	 CFLAGS="$cf_save_CFLAGS"
31384a17663cSThomas Veerman	 CPPFLAGS="$cf_save_CPPFLAGS"
31394a17663cSThomas Veerman
31404a17663cSThomas Veermanfi
31414a17663cSThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
31424a17663cSThomas Veerman
31434a17663cSThomas Veermanfi
3144*0a6a1f1dSLionel Sambucecho "$as_me:3144: result: $cf_cv_posix_c_source" >&5
31454a17663cSThomas Veermanecho "${ECHO_T}$cf_cv_posix_c_source" >&6
31464a17663cSThomas Veerman
31474a17663cSThomas Veermanif test "$cf_cv_posix_c_source" != no ; then
31484a17663cSThomas Veerman	CFLAGS="$cf_trim_CFLAGS"
31494a17663cSThomas Veerman	CPPFLAGS="$cf_trim_CPPFLAGS"
31504a17663cSThomas Veerman
31514a17663cSThomas Veermancf_fix_cppflags=no
31524a17663cSThomas Veermancf_new_cflags=
31534a17663cSThomas Veermancf_new_cppflags=
31544a17663cSThomas Veermancf_new_extra_cppflags=
31554a17663cSThomas Veerman
31564a17663cSThomas Veermanfor cf_add_cflags in $cf_cv_posix_c_source
31574a17663cSThomas Veermando
31584a17663cSThomas Veermancase $cf_fix_cppflags in
31594a17663cSThomas Veermanno)
31604a17663cSThomas Veerman	case $cf_add_cflags in #(vi
31614a17663cSThomas Veerman	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
31624a17663cSThomas Veerman		case $cf_add_cflags in
31634a17663cSThomas Veerman		-D*)
31644a17663cSThomas Veerman			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
31654a17663cSThomas Veerman
3166*0a6a1f1dSLionel Sambuc			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
31674a17663cSThomas Veerman				&& test -z "${cf_tst_cflags}" \
31684a17663cSThomas Veerman				&& cf_fix_cppflags=yes
31694a17663cSThomas Veerman
31704a17663cSThomas Veerman			if test $cf_fix_cppflags = yes ; then
31714a17663cSThomas Veerman				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
31724a17663cSThomas Veerman				continue
31734a17663cSThomas Veerman			elif test "${cf_tst_cflags}" = "\"'" ; then
31744a17663cSThomas Veerman				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
31754a17663cSThomas Veerman				continue
31764a17663cSThomas Veerman			fi
31774a17663cSThomas Veerman			;;
31784a17663cSThomas Veerman		esac
31794a17663cSThomas Veerman		case "$CPPFLAGS" in
31804a17663cSThomas Veerman		*$cf_add_cflags) #(vi
31814a17663cSThomas Veerman			;;
31824a17663cSThomas Veerman		*) #(vi
31834a17663cSThomas Veerman			case $cf_add_cflags in #(vi
31844a17663cSThomas Veerman			-D*)
31854a17663cSThomas Veerman				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
31864a17663cSThomas Veerman
31874a17663cSThomas VeermanCPPFLAGS=`echo "$CPPFLAGS" | \
31884a17663cSThomas Veerman	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
31894a17663cSThomas Veerman		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
31904a17663cSThomas Veerman
31914a17663cSThomas Veerman				;;
31924a17663cSThomas Veerman			esac
31934a17663cSThomas Veerman			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
31944a17663cSThomas Veerman			;;
31954a17663cSThomas Veerman		esac
31964a17663cSThomas Veerman		;;
31974a17663cSThomas Veerman	*)
31984a17663cSThomas Veerman		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
31994a17663cSThomas Veerman		;;
32004a17663cSThomas Veerman	esac
32014a17663cSThomas Veerman	;;
32024a17663cSThomas Veermanyes)
32034a17663cSThomas Veerman	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
32044a17663cSThomas Veerman
32054a17663cSThomas Veerman	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
32064a17663cSThomas Veerman
3207*0a6a1f1dSLionel Sambuc	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
32084a17663cSThomas Veerman		&& test -z "${cf_tst_cflags}" \
32094a17663cSThomas Veerman		&& cf_fix_cppflags=no
32104a17663cSThomas Veerman	;;
32114a17663cSThomas Veermanesac
32124a17663cSThomas Veermandone
32134a17663cSThomas Veerman
32144a17663cSThomas Veermanif test -n "$cf_new_cflags" ; then
32154a17663cSThomas Veerman
32164a17663cSThomas Veerman	CFLAGS="$CFLAGS $cf_new_cflags"
32174a17663cSThomas Veermanfi
32184a17663cSThomas Veerman
32194a17663cSThomas Veermanif test -n "$cf_new_cppflags" ; then
32204a17663cSThomas Veerman
32214a17663cSThomas Veerman	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
32224a17663cSThomas Veermanfi
32234a17663cSThomas Veerman
32244a17663cSThomas Veermanif test -n "$cf_new_extra_cppflags" ; then
32254a17663cSThomas Veerman
32264a17663cSThomas Veerman	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
32274a17663cSThomas Veermanfi
32284a17663cSThomas Veerman
32294a17663cSThomas Veermanfi
32304a17663cSThomas Veerman
32314a17663cSThomas Veerman	;;
32324a17663cSThomas Veermanesac
32334a17663cSThomas Veerman
32344a17663cSThomas Veermanif test -n "$cf_xopen_source" ; then
32354a17663cSThomas Veerman
32364a17663cSThomas Veermancf_fix_cppflags=no
32374a17663cSThomas Veermancf_new_cflags=
32384a17663cSThomas Veermancf_new_cppflags=
32394a17663cSThomas Veermancf_new_extra_cppflags=
32404a17663cSThomas Veerman
32414a17663cSThomas Veermanfor cf_add_cflags in $cf_xopen_source
32424a17663cSThomas Veermando
32434a17663cSThomas Veermancase $cf_fix_cppflags in
32444a17663cSThomas Veermanno)
32454a17663cSThomas Veerman	case $cf_add_cflags in #(vi
32464a17663cSThomas Veerman	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
32474a17663cSThomas Veerman		case $cf_add_cflags in
32484a17663cSThomas Veerman		-D*)
32494a17663cSThomas Veerman			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
32504a17663cSThomas Veerman
3251*0a6a1f1dSLionel Sambuc			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
32524a17663cSThomas Veerman				&& test -z "${cf_tst_cflags}" \
32534a17663cSThomas Veerman				&& cf_fix_cppflags=yes
32544a17663cSThomas Veerman
32554a17663cSThomas Veerman			if test $cf_fix_cppflags = yes ; then
32564a17663cSThomas Veerman				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
32574a17663cSThomas Veerman				continue
32584a17663cSThomas Veerman			elif test "${cf_tst_cflags}" = "\"'" ; then
32594a17663cSThomas Veerman				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
32604a17663cSThomas Veerman				continue
32614a17663cSThomas Veerman			fi
32624a17663cSThomas Veerman			;;
32634a17663cSThomas Veerman		esac
32644a17663cSThomas Veerman		case "$CPPFLAGS" in
32654a17663cSThomas Veerman		*$cf_add_cflags) #(vi
32664a17663cSThomas Veerman			;;
32674a17663cSThomas Veerman		*) #(vi
32684a17663cSThomas Veerman			case $cf_add_cflags in #(vi
32694a17663cSThomas Veerman			-D*)
32704a17663cSThomas Veerman				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
32714a17663cSThomas Veerman
32724a17663cSThomas VeermanCPPFLAGS=`echo "$CPPFLAGS" | \
32734a17663cSThomas Veerman	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
32744a17663cSThomas Veerman		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
32754a17663cSThomas Veerman
32764a17663cSThomas Veerman				;;
32774a17663cSThomas Veerman			esac
32784a17663cSThomas Veerman			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
32794a17663cSThomas Veerman			;;
32804a17663cSThomas Veerman		esac
32814a17663cSThomas Veerman		;;
32824a17663cSThomas Veerman	*)
32834a17663cSThomas Veerman		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
32844a17663cSThomas Veerman		;;
32854a17663cSThomas Veerman	esac
32864a17663cSThomas Veerman	;;
32874a17663cSThomas Veermanyes)
32884a17663cSThomas Veerman	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
32894a17663cSThomas Veerman
32904a17663cSThomas Veerman	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
32914a17663cSThomas Veerman
3292*0a6a1f1dSLionel Sambuc	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
32934a17663cSThomas Veerman		&& test -z "${cf_tst_cflags}" \
32944a17663cSThomas Veerman		&& cf_fix_cppflags=no
32954a17663cSThomas Veerman	;;
32964a17663cSThomas Veermanesac
32974a17663cSThomas Veermandone
32984a17663cSThomas Veerman
32994a17663cSThomas Veermanif test -n "$cf_new_cflags" ; then
3300*0a6a1f1dSLionel Sambuc	test -n "$verbose" && echo "	add to \$CFLAGS $cf_new_cflags" 1>&6
3301*0a6a1f1dSLionel Sambuc
3302*0a6a1f1dSLionel Sambucecho "${as_me:-configure}:3302: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
33034a17663cSThomas Veerman
33044a17663cSThomas Veerman	CFLAGS="$CFLAGS $cf_new_cflags"
33054a17663cSThomas Veermanfi
33064a17663cSThomas Veerman
33074a17663cSThomas Veermanif test -n "$cf_new_cppflags" ; then
3308*0a6a1f1dSLionel Sambuc	test -n "$verbose" && echo "	add to \$CPPFLAGS $cf_new_cppflags" 1>&6
3309*0a6a1f1dSLionel Sambuc
3310*0a6a1f1dSLionel Sambucecho "${as_me:-configure}:3310: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
33114a17663cSThomas Veerman
33124a17663cSThomas Veerman	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
33134a17663cSThomas Veermanfi
33144a17663cSThomas Veerman
33154a17663cSThomas Veermanif test -n "$cf_new_extra_cppflags" ; then
3316*0a6a1f1dSLionel Sambuc	test -n "$verbose" && echo "	add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
3317*0a6a1f1dSLionel Sambuc
3318*0a6a1f1dSLionel Sambucecho "${as_me:-configure}:3318: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
33194a17663cSThomas Veerman
33204a17663cSThomas Veerman	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
33214a17663cSThomas Veermanfi
33224a17663cSThomas Veerman
33234a17663cSThomas Veermanfi
33244a17663cSThomas Veerman
332584d9c625SLionel Sambucif test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
3326*0a6a1f1dSLionel Sambuc	echo "$as_me:3326: checking if _XOPEN_SOURCE really is set" >&5
332784d9c625SLionel Sambucecho $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
332884d9c625SLionel Sambuc	cat >conftest.$ac_ext <<_ACEOF
3329*0a6a1f1dSLionel Sambuc#line 3329 "configure"
333084d9c625SLionel Sambuc#include "confdefs.h"
333184d9c625SLionel Sambuc#include <stdlib.h>
333284d9c625SLionel Sambucint
333384d9c625SLionel Sambucmain ()
333484d9c625SLionel Sambuc{
333584d9c625SLionel Sambuc
333684d9c625SLionel Sambuc#ifndef _XOPEN_SOURCE
333784d9c625SLionel Sambucmake an error
333884d9c625SLionel Sambuc#endif
333984d9c625SLionel Sambuc  ;
334084d9c625SLionel Sambuc  return 0;
334184d9c625SLionel Sambuc}
334284d9c625SLionel Sambuc_ACEOF
334384d9c625SLionel Sambucrm -f conftest.$ac_objext
3344*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:3344: \"$ac_compile\"") >&5
334584d9c625SLionel Sambuc  (eval $ac_compile) 2>&5
334684d9c625SLionel Sambuc  ac_status=$?
3347*0a6a1f1dSLionel Sambuc  echo "$as_me:3347: \$? = $ac_status" >&5
334884d9c625SLionel Sambuc  (exit $ac_status); } &&
334984d9c625SLionel Sambuc         { ac_try='test -s conftest.$ac_objext'
3350*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:3350: \"$ac_try\"") >&5
335184d9c625SLionel Sambuc  (eval $ac_try) 2>&5
335284d9c625SLionel Sambuc  ac_status=$?
3353*0a6a1f1dSLionel Sambuc  echo "$as_me:3353: \$? = $ac_status" >&5
335484d9c625SLionel Sambuc  (exit $ac_status); }; }; then
335584d9c625SLionel Sambuc  cf_XOPEN_SOURCE_set=yes
335684d9c625SLionel Sambucelse
335784d9c625SLionel Sambuc  echo "$as_me: failed program was:" >&5
335884d9c625SLionel Sambuccat conftest.$ac_ext >&5
335984d9c625SLionel Sambuccf_XOPEN_SOURCE_set=no
336084d9c625SLionel Sambucfi
336184d9c625SLionel Sambucrm -f conftest.$ac_objext conftest.$ac_ext
3362*0a6a1f1dSLionel Sambuc	echo "$as_me:3362: result: $cf_XOPEN_SOURCE_set" >&5
336384d9c625SLionel Sambucecho "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
336484d9c625SLionel Sambuc	if test $cf_XOPEN_SOURCE_set = yes
336584d9c625SLionel Sambuc	then
336684d9c625SLionel Sambuc		cat >conftest.$ac_ext <<_ACEOF
3367*0a6a1f1dSLionel Sambuc#line 3367 "configure"
336884d9c625SLionel Sambuc#include "confdefs.h"
336984d9c625SLionel Sambuc#include <stdlib.h>
337084d9c625SLionel Sambucint
337184d9c625SLionel Sambucmain ()
337284d9c625SLionel Sambuc{
337384d9c625SLionel Sambuc
337484d9c625SLionel Sambuc#if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
337584d9c625SLionel Sambucmake an error
337684d9c625SLionel Sambuc#endif
337784d9c625SLionel Sambuc  ;
337884d9c625SLionel Sambuc  return 0;
337984d9c625SLionel Sambuc}
338084d9c625SLionel Sambuc_ACEOF
338184d9c625SLionel Sambucrm -f conftest.$ac_objext
3382*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:3382: \"$ac_compile\"") >&5
338384d9c625SLionel Sambuc  (eval $ac_compile) 2>&5
338484d9c625SLionel Sambuc  ac_status=$?
3385*0a6a1f1dSLionel Sambuc  echo "$as_me:3385: \$? = $ac_status" >&5
338684d9c625SLionel Sambuc  (exit $ac_status); } &&
338784d9c625SLionel Sambuc         { ac_try='test -s conftest.$ac_objext'
3388*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:3388: \"$ac_try\"") >&5
338984d9c625SLionel Sambuc  (eval $ac_try) 2>&5
339084d9c625SLionel Sambuc  ac_status=$?
3391*0a6a1f1dSLionel Sambuc  echo "$as_me:3391: \$? = $ac_status" >&5
339284d9c625SLionel Sambuc  (exit $ac_status); }; }; then
339384d9c625SLionel Sambuc  cf_XOPEN_SOURCE_set_ok=yes
339484d9c625SLionel Sambucelse
339584d9c625SLionel Sambuc  echo "$as_me: failed program was:" >&5
339684d9c625SLionel Sambuccat conftest.$ac_ext >&5
339784d9c625SLionel Sambuccf_XOPEN_SOURCE_set_ok=no
339884d9c625SLionel Sambucfi
339984d9c625SLionel Sambucrm -f conftest.$ac_objext conftest.$ac_ext
340084d9c625SLionel Sambuc		if test $cf_XOPEN_SOURCE_set_ok = no
340184d9c625SLionel Sambuc		then
3402*0a6a1f1dSLionel Sambuc			{ echo "$as_me:3402: WARNING: _XOPEN_SOURCE is lower than requested" >&5
340384d9c625SLionel Sambucecho "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
340484d9c625SLionel Sambuc		fi
340584d9c625SLionel Sambuc	else
340684d9c625SLionel Sambuc
3407*0a6a1f1dSLionel Sambucecho "$as_me:3407: checking if we should define _XOPEN_SOURCE" >&5
340884d9c625SLionel Sambucecho $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
340984d9c625SLionel Sambucif test "${cf_cv_xopen_source+set}" = set; then
341084d9c625SLionel Sambuc  echo $ECHO_N "(cached) $ECHO_C" >&6
341184d9c625SLionel Sambucelse
341284d9c625SLionel Sambuc
341384d9c625SLionel Sambuc	cat >conftest.$ac_ext <<_ACEOF
3414*0a6a1f1dSLionel Sambuc#line 3414 "configure"
341584d9c625SLionel Sambuc#include "confdefs.h"
341684d9c625SLionel Sambuc
341784d9c625SLionel Sambuc#include <stdlib.h>
341884d9c625SLionel Sambuc#include <string.h>
341984d9c625SLionel Sambuc#include <sys/types.h>
342084d9c625SLionel Sambuc
342184d9c625SLionel Sambucint
342284d9c625SLionel Sambucmain ()
342384d9c625SLionel Sambuc{
342484d9c625SLionel Sambuc
342584d9c625SLionel Sambuc#ifndef _XOPEN_SOURCE
342684d9c625SLionel Sambucmake an error
342784d9c625SLionel Sambuc#endif
342884d9c625SLionel Sambuc  ;
342984d9c625SLionel Sambuc  return 0;
343084d9c625SLionel Sambuc}
343184d9c625SLionel Sambuc_ACEOF
343284d9c625SLionel Sambucrm -f conftest.$ac_objext
3433*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:3433: \"$ac_compile\"") >&5
343484d9c625SLionel Sambuc  (eval $ac_compile) 2>&5
343584d9c625SLionel Sambuc  ac_status=$?
3436*0a6a1f1dSLionel Sambuc  echo "$as_me:3436: \$? = $ac_status" >&5
343784d9c625SLionel Sambuc  (exit $ac_status); } &&
343884d9c625SLionel Sambuc         { ac_try='test -s conftest.$ac_objext'
3439*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:3439: \"$ac_try\"") >&5
344084d9c625SLionel Sambuc  (eval $ac_try) 2>&5
344184d9c625SLionel Sambuc  ac_status=$?
3442*0a6a1f1dSLionel Sambuc  echo "$as_me:3442: \$? = $ac_status" >&5
344384d9c625SLionel Sambuc  (exit $ac_status); }; }; then
344484d9c625SLionel Sambuc  cf_cv_xopen_source=no
344584d9c625SLionel Sambucelse
344684d9c625SLionel Sambuc  echo "$as_me: failed program was:" >&5
344784d9c625SLionel Sambuccat conftest.$ac_ext >&5
344884d9c625SLionel Sambuccf_save="$CPPFLAGS"
344984d9c625SLionel Sambuc	 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
345084d9c625SLionel Sambuc	 cat >conftest.$ac_ext <<_ACEOF
3451*0a6a1f1dSLionel Sambuc#line 3451 "configure"
345284d9c625SLionel Sambuc#include "confdefs.h"
345384d9c625SLionel Sambuc
345484d9c625SLionel Sambuc#include <stdlib.h>
345584d9c625SLionel Sambuc#include <string.h>
345684d9c625SLionel Sambuc#include <sys/types.h>
345784d9c625SLionel Sambuc
345884d9c625SLionel Sambucint
345984d9c625SLionel Sambucmain ()
346084d9c625SLionel Sambuc{
346184d9c625SLionel Sambuc
346284d9c625SLionel Sambuc#ifdef _XOPEN_SOURCE
346384d9c625SLionel Sambucmake an error
346484d9c625SLionel Sambuc#endif
346584d9c625SLionel Sambuc  ;
346684d9c625SLionel Sambuc  return 0;
346784d9c625SLionel Sambuc}
346884d9c625SLionel Sambuc_ACEOF
346984d9c625SLionel Sambucrm -f conftest.$ac_objext
3470*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:3470: \"$ac_compile\"") >&5
347184d9c625SLionel Sambuc  (eval $ac_compile) 2>&5
347284d9c625SLionel Sambuc  ac_status=$?
3473*0a6a1f1dSLionel Sambuc  echo "$as_me:3473: \$? = $ac_status" >&5
347484d9c625SLionel Sambuc  (exit $ac_status); } &&
347584d9c625SLionel Sambuc         { ac_try='test -s conftest.$ac_objext'
3476*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:3476: \"$ac_try\"") >&5
347784d9c625SLionel Sambuc  (eval $ac_try) 2>&5
347884d9c625SLionel Sambuc  ac_status=$?
3479*0a6a1f1dSLionel Sambuc  echo "$as_me:3479: \$? = $ac_status" >&5
348084d9c625SLionel Sambuc  (exit $ac_status); }; }; then
348184d9c625SLionel Sambuc  cf_cv_xopen_source=no
348284d9c625SLionel Sambucelse
348384d9c625SLionel Sambuc  echo "$as_me: failed program was:" >&5
348484d9c625SLionel Sambuccat conftest.$ac_ext >&5
348584d9c625SLionel Sambuccf_cv_xopen_source=$cf_XOPEN_SOURCE
348684d9c625SLionel Sambucfi
348784d9c625SLionel Sambucrm -f conftest.$ac_objext conftest.$ac_ext
348884d9c625SLionel Sambuc	CPPFLAGS="$cf_save"
348984d9c625SLionel Sambuc
349084d9c625SLionel Sambucfi
349184d9c625SLionel Sambucrm -f conftest.$ac_objext conftest.$ac_ext
349284d9c625SLionel Sambuc
349384d9c625SLionel Sambucfi
3494*0a6a1f1dSLionel Sambucecho "$as_me:3494: result: $cf_cv_xopen_source" >&5
349584d9c625SLionel Sambucecho "${ECHO_T}$cf_cv_xopen_source" >&6
349684d9c625SLionel Sambuc
349784d9c625SLionel Sambucif test "$cf_cv_xopen_source" != no ; then
349884d9c625SLionel Sambuc
349984d9c625SLionel SambucCFLAGS=`echo "$CFLAGS" | \
350084d9c625SLionel Sambuc	sed	-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
350184d9c625SLionel Sambuc		-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?$//g'`
350284d9c625SLionel Sambuc
350384d9c625SLionel SambucCPPFLAGS=`echo "$CPPFLAGS" | \
350484d9c625SLionel Sambuc	sed	-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
350584d9c625SLionel Sambuc		-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?$//g'`
350684d9c625SLionel Sambuc
350784d9c625SLionel Sambuc	cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
350884d9c625SLionel Sambuc
350984d9c625SLionel Sambuccf_fix_cppflags=no
351084d9c625SLionel Sambuccf_new_cflags=
351184d9c625SLionel Sambuccf_new_cppflags=
351284d9c625SLionel Sambuccf_new_extra_cppflags=
351384d9c625SLionel Sambuc
351484d9c625SLionel Sambucfor cf_add_cflags in $cf_temp_xopen_source
351584d9c625SLionel Sambucdo
351684d9c625SLionel Sambuccase $cf_fix_cppflags in
351784d9c625SLionel Sambucno)
351884d9c625SLionel Sambuc	case $cf_add_cflags in #(vi
351984d9c625SLionel Sambuc	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
352084d9c625SLionel Sambuc		case $cf_add_cflags in
352184d9c625SLionel Sambuc		-D*)
352284d9c625SLionel Sambuc			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
352384d9c625SLionel Sambuc
3524*0a6a1f1dSLionel Sambuc			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
352584d9c625SLionel Sambuc				&& test -z "${cf_tst_cflags}" \
352684d9c625SLionel Sambuc				&& cf_fix_cppflags=yes
352784d9c625SLionel Sambuc
352884d9c625SLionel Sambuc			if test $cf_fix_cppflags = yes ; then
352984d9c625SLionel Sambuc				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
353084d9c625SLionel Sambuc				continue
353184d9c625SLionel Sambuc			elif test "${cf_tst_cflags}" = "\"'" ; then
353284d9c625SLionel Sambuc				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
353384d9c625SLionel Sambuc				continue
353484d9c625SLionel Sambuc			fi
353584d9c625SLionel Sambuc			;;
353684d9c625SLionel Sambuc		esac
353784d9c625SLionel Sambuc		case "$CPPFLAGS" in
353884d9c625SLionel Sambuc		*$cf_add_cflags) #(vi
353984d9c625SLionel Sambuc			;;
354084d9c625SLionel Sambuc		*) #(vi
354184d9c625SLionel Sambuc			case $cf_add_cflags in #(vi
354284d9c625SLionel Sambuc			-D*)
354384d9c625SLionel Sambuc				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
354484d9c625SLionel Sambuc
354584d9c625SLionel SambucCPPFLAGS=`echo "$CPPFLAGS" | \
354684d9c625SLionel Sambuc	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
354784d9c625SLionel Sambuc		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
354884d9c625SLionel Sambuc
354984d9c625SLionel Sambuc				;;
355084d9c625SLionel Sambuc			esac
355184d9c625SLionel Sambuc			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
355284d9c625SLionel Sambuc			;;
355384d9c625SLionel Sambuc		esac
355484d9c625SLionel Sambuc		;;
355584d9c625SLionel Sambuc	*)
355684d9c625SLionel Sambuc		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
355784d9c625SLionel Sambuc		;;
355884d9c625SLionel Sambuc	esac
355984d9c625SLionel Sambuc	;;
356084d9c625SLionel Sambucyes)
356184d9c625SLionel Sambuc	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
356284d9c625SLionel Sambuc
356384d9c625SLionel Sambuc	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
356484d9c625SLionel Sambuc
3565*0a6a1f1dSLionel Sambuc	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
356684d9c625SLionel Sambuc		&& test -z "${cf_tst_cflags}" \
356784d9c625SLionel Sambuc		&& cf_fix_cppflags=no
356884d9c625SLionel Sambuc	;;
356984d9c625SLionel Sambucesac
357084d9c625SLionel Sambucdone
357184d9c625SLionel Sambuc
357284d9c625SLionel Sambucif test -n "$cf_new_cflags" ; then
357384d9c625SLionel Sambuc
357484d9c625SLionel Sambuc	CFLAGS="$CFLAGS $cf_new_cflags"
357584d9c625SLionel Sambucfi
357684d9c625SLionel Sambuc
357784d9c625SLionel Sambucif test -n "$cf_new_cppflags" ; then
357884d9c625SLionel Sambuc
357984d9c625SLionel Sambuc	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
358084d9c625SLionel Sambucfi
358184d9c625SLionel Sambuc
358284d9c625SLionel Sambucif test -n "$cf_new_extra_cppflags" ; then
358384d9c625SLionel Sambuc
358484d9c625SLionel Sambuc	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
358584d9c625SLionel Sambucfi
358684d9c625SLionel Sambuc
358784d9c625SLionel Sambucfi
358884d9c625SLionel Sambuc
358984d9c625SLionel Sambuc	fi
359084d9c625SLionel Sambucfi
359184d9c625SLionel Sambuc
35924a17663cSThomas Veermanac_ext=c
35934a17663cSThomas Veermanac_cpp='$CPP $CPPFLAGS'
35944a17663cSThomas Veermanac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35954a17663cSThomas Veermanac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35964a17663cSThomas Veermanac_compiler_gnu=$ac_cv_c_compiler_gnu
35974a17663cSThomas Veermanac_main_return=return
3598*0a6a1f1dSLionel Sambucecho "$as_me:3598: checking how to run the C preprocessor" >&5
35994a17663cSThomas Veermanecho $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
36004a17663cSThomas Veerman# On Suns, sometimes $CPP names a directory.
36014a17663cSThomas Veermanif test -n "$CPP" && test -d "$CPP"; then
36024a17663cSThomas Veerman  CPP=
36034a17663cSThomas Veermanfi
36044a17663cSThomas Veermanif test -z "$CPP"; then
36054a17663cSThomas Veerman  if test "${ac_cv_prog_CPP+set}" = set; then
36064a17663cSThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
36074a17663cSThomas Veermanelse
36084a17663cSThomas Veerman      # Double quotes because CPP needs to be expanded
36094a17663cSThomas Veerman    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
36104a17663cSThomas Veerman    do
36114a17663cSThomas Veerman      ac_preproc_ok=false
36124a17663cSThomas Veermanfor ac_c_preproc_warn_flag in '' yes
36134a17663cSThomas Veermando
36144a17663cSThomas Veerman  # Use a header file that comes with gcc, so configuring glibc
36154a17663cSThomas Veerman  # with a fresh cross-compiler works.
36164a17663cSThomas Veerman  # On the NeXT, cc -E runs the code through the compiler's parser,
36174a17663cSThomas Veerman  # not just through cpp. "Syntax error" is here to catch this case.
36184a17663cSThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
3619*0a6a1f1dSLionel Sambuc#line 3619 "configure"
36204a17663cSThomas Veerman#include "confdefs.h"
36214a17663cSThomas Veerman#include <assert.h>
36224a17663cSThomas Veerman                     Syntax error
36234a17663cSThomas Veerman_ACEOF
3624*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:3624: \"$ac_cpp conftest.$ac_ext\"") >&5
36254a17663cSThomas Veerman  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36264a17663cSThomas Veerman  ac_status=$?
36274a17663cSThomas Veerman  egrep -v '^ *\+' conftest.er1 >conftest.err
36284a17663cSThomas Veerman  rm -f conftest.er1
36294a17663cSThomas Veerman  cat conftest.err >&5
3630*0a6a1f1dSLionel Sambuc  echo "$as_me:3630: \$? = $ac_status" >&5
36314a17663cSThomas Veerman  (exit $ac_status); } >/dev/null; then
36324a17663cSThomas Veerman  if test -s conftest.err; then
36334a17663cSThomas Veerman    ac_cpp_err=$ac_c_preproc_warn_flag
36344a17663cSThomas Veerman  else
36354a17663cSThomas Veerman    ac_cpp_err=
36364a17663cSThomas Veerman  fi
36374a17663cSThomas Veermanelse
36384a17663cSThomas Veerman  ac_cpp_err=yes
36394a17663cSThomas Veermanfi
36404a17663cSThomas Veermanif test -z "$ac_cpp_err"; then
36414a17663cSThomas Veerman  :
36424a17663cSThomas Veermanelse
36434a17663cSThomas Veerman  echo "$as_me: failed program was:" >&5
36444a17663cSThomas Veerman  cat conftest.$ac_ext >&5
36454a17663cSThomas Veerman  # Broken: fails on valid input.
36464a17663cSThomas Veermancontinue
36474a17663cSThomas Veermanfi
36484a17663cSThomas Veermanrm -f conftest.err conftest.$ac_ext
36494a17663cSThomas Veerman
36504a17663cSThomas Veerman  # OK, works on sane cases.  Now check whether non-existent headers
36514a17663cSThomas Veerman  # can be detected and how.
36524a17663cSThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
3653*0a6a1f1dSLionel Sambuc#line 3653 "configure"
36544a17663cSThomas Veerman#include "confdefs.h"
36554a17663cSThomas Veerman#include <ac_nonexistent.h>
36564a17663cSThomas Veerman_ACEOF
3657*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:3657: \"$ac_cpp conftest.$ac_ext\"") >&5
36584a17663cSThomas Veerman  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36594a17663cSThomas Veerman  ac_status=$?
36604a17663cSThomas Veerman  egrep -v '^ *\+' conftest.er1 >conftest.err
36614a17663cSThomas Veerman  rm -f conftest.er1
36624a17663cSThomas Veerman  cat conftest.err >&5
3663*0a6a1f1dSLionel Sambuc  echo "$as_me:3663: \$? = $ac_status" >&5
36644a17663cSThomas Veerman  (exit $ac_status); } >/dev/null; then
36654a17663cSThomas Veerman  if test -s conftest.err; then
36664a17663cSThomas Veerman    ac_cpp_err=$ac_c_preproc_warn_flag
36674a17663cSThomas Veerman  else
36684a17663cSThomas Veerman    ac_cpp_err=
36694a17663cSThomas Veerman  fi
36704a17663cSThomas Veermanelse
36714a17663cSThomas Veerman  ac_cpp_err=yes
36724a17663cSThomas Veermanfi
36734a17663cSThomas Veermanif test -z "$ac_cpp_err"; then
36744a17663cSThomas Veerman  # Broken: success on invalid input.
36754a17663cSThomas Veermancontinue
36764a17663cSThomas Veermanelse
36774a17663cSThomas Veerman  echo "$as_me: failed program was:" >&5
36784a17663cSThomas Veerman  cat conftest.$ac_ext >&5
36794a17663cSThomas Veerman  # Passes both tests.
36804a17663cSThomas Veermanac_preproc_ok=:
36814a17663cSThomas Veermanbreak
36824a17663cSThomas Veermanfi
36834a17663cSThomas Veermanrm -f conftest.err conftest.$ac_ext
36844a17663cSThomas Veerman
36854a17663cSThomas Veermandone
36864a17663cSThomas Veerman# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
36874a17663cSThomas Veermanrm -f conftest.err conftest.$ac_ext
36884a17663cSThomas Veermanif $ac_preproc_ok; then
36894a17663cSThomas Veerman  break
36904a17663cSThomas Veermanfi
36914a17663cSThomas Veerman
36924a17663cSThomas Veerman    done
36934a17663cSThomas Veerman    ac_cv_prog_CPP=$CPP
36944a17663cSThomas Veerman
36954a17663cSThomas Veermanfi
36964a17663cSThomas Veerman  CPP=$ac_cv_prog_CPP
36974a17663cSThomas Veermanelse
36984a17663cSThomas Veerman  ac_cv_prog_CPP=$CPP
36994a17663cSThomas Veermanfi
3700*0a6a1f1dSLionel Sambucecho "$as_me:3700: result: $CPP" >&5
37014a17663cSThomas Veermanecho "${ECHO_T}$CPP" >&6
37024a17663cSThomas Veermanac_preproc_ok=false
37034a17663cSThomas Veermanfor ac_c_preproc_warn_flag in '' yes
37044a17663cSThomas Veermando
37054a17663cSThomas Veerman  # Use a header file that comes with gcc, so configuring glibc
37064a17663cSThomas Veerman  # with a fresh cross-compiler works.
37074a17663cSThomas Veerman  # On the NeXT, cc -E runs the code through the compiler's parser,
37084a17663cSThomas Veerman  # not just through cpp. "Syntax error" is here to catch this case.
37094a17663cSThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
3710*0a6a1f1dSLionel Sambuc#line 3710 "configure"
37114a17663cSThomas Veerman#include "confdefs.h"
37124a17663cSThomas Veerman#include <assert.h>
37134a17663cSThomas Veerman                     Syntax error
37144a17663cSThomas Veerman_ACEOF
3715*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:3715: \"$ac_cpp conftest.$ac_ext\"") >&5
37164a17663cSThomas Veerman  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37174a17663cSThomas Veerman  ac_status=$?
37184a17663cSThomas Veerman  egrep -v '^ *\+' conftest.er1 >conftest.err
37194a17663cSThomas Veerman  rm -f conftest.er1
37204a17663cSThomas Veerman  cat conftest.err >&5
3721*0a6a1f1dSLionel Sambuc  echo "$as_me:3721: \$? = $ac_status" >&5
37224a17663cSThomas Veerman  (exit $ac_status); } >/dev/null; then
37234a17663cSThomas Veerman  if test -s conftest.err; then
37244a17663cSThomas Veerman    ac_cpp_err=$ac_c_preproc_warn_flag
37254a17663cSThomas Veerman  else
37264a17663cSThomas Veerman    ac_cpp_err=
37274a17663cSThomas Veerman  fi
37284a17663cSThomas Veermanelse
37294a17663cSThomas Veerman  ac_cpp_err=yes
37304a17663cSThomas Veermanfi
37314a17663cSThomas Veermanif test -z "$ac_cpp_err"; then
37324a17663cSThomas Veerman  :
37334a17663cSThomas Veermanelse
37344a17663cSThomas Veerman  echo "$as_me: failed program was:" >&5
37354a17663cSThomas Veerman  cat conftest.$ac_ext >&5
37364a17663cSThomas Veerman  # Broken: fails on valid input.
37374a17663cSThomas Veermancontinue
37384a17663cSThomas Veermanfi
37394a17663cSThomas Veermanrm -f conftest.err conftest.$ac_ext
37404a17663cSThomas Veerman
37414a17663cSThomas Veerman  # OK, works on sane cases.  Now check whether non-existent headers
37424a17663cSThomas Veerman  # can be detected and how.
37434a17663cSThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
3744*0a6a1f1dSLionel Sambuc#line 3744 "configure"
37454a17663cSThomas Veerman#include "confdefs.h"
37464a17663cSThomas Veerman#include <ac_nonexistent.h>
37474a17663cSThomas Veerman_ACEOF
3748*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:3748: \"$ac_cpp conftest.$ac_ext\"") >&5
37494a17663cSThomas Veerman  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37504a17663cSThomas Veerman  ac_status=$?
37514a17663cSThomas Veerman  egrep -v '^ *\+' conftest.er1 >conftest.err
37524a17663cSThomas Veerman  rm -f conftest.er1
37534a17663cSThomas Veerman  cat conftest.err >&5
3754*0a6a1f1dSLionel Sambuc  echo "$as_me:3754: \$? = $ac_status" >&5
37554a17663cSThomas Veerman  (exit $ac_status); } >/dev/null; then
37564a17663cSThomas Veerman  if test -s conftest.err; then
37574a17663cSThomas Veerman    ac_cpp_err=$ac_c_preproc_warn_flag
37584a17663cSThomas Veerman  else
37594a17663cSThomas Veerman    ac_cpp_err=
37604a17663cSThomas Veerman  fi
37614a17663cSThomas Veermanelse
37624a17663cSThomas Veerman  ac_cpp_err=yes
37634a17663cSThomas Veermanfi
37644a17663cSThomas Veermanif test -z "$ac_cpp_err"; then
37654a17663cSThomas Veerman  # Broken: success on invalid input.
37664a17663cSThomas Veermancontinue
37674a17663cSThomas Veermanelse
37684a17663cSThomas Veerman  echo "$as_me: failed program was:" >&5
37694a17663cSThomas Veerman  cat conftest.$ac_ext >&5
37704a17663cSThomas Veerman  # Passes both tests.
37714a17663cSThomas Veermanac_preproc_ok=:
37724a17663cSThomas Veermanbreak
37734a17663cSThomas Veermanfi
37744a17663cSThomas Veermanrm -f conftest.err conftest.$ac_ext
37754a17663cSThomas Veerman
37764a17663cSThomas Veermandone
37774a17663cSThomas Veerman# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
37784a17663cSThomas Veermanrm -f conftest.err conftest.$ac_ext
37794a17663cSThomas Veermanif $ac_preproc_ok; then
37804a17663cSThomas Veerman  :
37814a17663cSThomas Veermanelse
3782*0a6a1f1dSLionel Sambuc  { { echo "$as_me:3782: error: C preprocessor \"$CPP\" fails sanity check" >&5
37834a17663cSThomas Veermanecho "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
37844a17663cSThomas Veerman   { (exit 1); exit 1; }; }
37854a17663cSThomas Veermanfi
37864a17663cSThomas Veerman
37874a17663cSThomas Veermanac_ext=c
37884a17663cSThomas Veermanac_cpp='$CPP $CPPFLAGS'
37894a17663cSThomas Veermanac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37904a17663cSThomas Veermanac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37914a17663cSThomas Veermanac_compiler_gnu=$ac_cv_c_compiler_gnu
37924a17663cSThomas Veermanac_main_return=return
37934a17663cSThomas Veerman
37944a17663cSThomas Veermanfor ac_header in fcntl.h
37954a17663cSThomas Veermando
37964a17663cSThomas Veermanas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3797*0a6a1f1dSLionel Sambucecho "$as_me:3797: checking for $ac_header" >&5
37984a17663cSThomas Veermanecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37994a17663cSThomas Veermanif eval "test \"\${$as_ac_Header+set}\" = set"; then
38004a17663cSThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
38014a17663cSThomas Veermanelse
38024a17663cSThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
3803*0a6a1f1dSLionel Sambuc#line 3803 "configure"
38044a17663cSThomas Veerman#include "confdefs.h"
38054a17663cSThomas Veerman#include <$ac_header>
38064a17663cSThomas Veerman_ACEOF
3807*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:3807: \"$ac_cpp conftest.$ac_ext\"") >&5
38084a17663cSThomas Veerman  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38094a17663cSThomas Veerman  ac_status=$?
38104a17663cSThomas Veerman  egrep -v '^ *\+' conftest.er1 >conftest.err
38114a17663cSThomas Veerman  rm -f conftest.er1
38124a17663cSThomas Veerman  cat conftest.err >&5
3813*0a6a1f1dSLionel Sambuc  echo "$as_me:3813: \$? = $ac_status" >&5
38144a17663cSThomas Veerman  (exit $ac_status); } >/dev/null; then
38154a17663cSThomas Veerman  if test -s conftest.err; then
38164a17663cSThomas Veerman    ac_cpp_err=$ac_c_preproc_warn_flag
38174a17663cSThomas Veerman  else
38184a17663cSThomas Veerman    ac_cpp_err=
38194a17663cSThomas Veerman  fi
38204a17663cSThomas Veermanelse
38214a17663cSThomas Veerman  ac_cpp_err=yes
38224a17663cSThomas Veermanfi
38234a17663cSThomas Veermanif test -z "$ac_cpp_err"; then
38244a17663cSThomas Veerman  eval "$as_ac_Header=yes"
38254a17663cSThomas Veermanelse
38264a17663cSThomas Veerman  echo "$as_me: failed program was:" >&5
38274a17663cSThomas Veerman  cat conftest.$ac_ext >&5
38284a17663cSThomas Veerman  eval "$as_ac_Header=no"
38294a17663cSThomas Veermanfi
38304a17663cSThomas Veermanrm -f conftest.err conftest.$ac_ext
38314a17663cSThomas Veermanfi
3832*0a6a1f1dSLionel Sambucecho "$as_me:3832: result: `eval echo '${'$as_ac_Header'}'`" >&5
38334a17663cSThomas Veermanecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38344a17663cSThomas Veermanif test `eval echo '${'$as_ac_Header'}'` = yes; then
38354a17663cSThomas Veerman  cat >>confdefs.h <<EOF
38364a17663cSThomas Veerman#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38374a17663cSThomas VeermanEOF
38384a17663cSThomas Veerman
38394a17663cSThomas Veermanfi
38404a17663cSThomas Veermandone
38414a17663cSThomas Veerman
3842*0a6a1f1dSLionel Sambucecho "$as_me:3842: checking for working mkstemp" >&5
38434a17663cSThomas Veermanecho $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
38444a17663cSThomas Veermanif test "${cf_cv_func_mkstemp+set}" = set; then
38454a17663cSThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
38464a17663cSThomas Veermanelse
38474a17663cSThomas Veerman
38484a17663cSThomas Veermanrm -rf conftest*
38494a17663cSThomas Veermanif test "$cross_compiling" = yes; then
385084d9c625SLionel Sambuc  cf_cv_func_mkstemp=maybe
38514a17663cSThomas Veermanelse
38524a17663cSThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
3853*0a6a1f1dSLionel Sambuc#line 3853 "configure"
38544a17663cSThomas Veerman#include "confdefs.h"
38554a17663cSThomas Veerman
38564a17663cSThomas Veerman#include <sys/types.h>
38574a17663cSThomas Veerman#include <stdlib.h>
38584a17663cSThomas Veerman#include <stdio.h>
38594a17663cSThomas Veerman#include <string.h>
38604a17663cSThomas Veerman#include <sys/stat.h>
38614a17663cSThomas Veermanint main()
38624a17663cSThomas Veerman{
38634a17663cSThomas Veerman	char *tmpl = "conftestXXXXXX";
38644a17663cSThomas Veerman	char name[2][80];
38654a17663cSThomas Veerman	int n;
38664a17663cSThomas Veerman	int result = 0;
38674a17663cSThomas Veerman	int fd;
38684a17663cSThomas Veerman	struct stat sb;
38694a17663cSThomas Veerman
38704a17663cSThomas Veerman	umask(077);
38714a17663cSThomas Veerman	for (n = 0; n < 2; ++n) {
38724a17663cSThomas Veerman		strcpy(name[n], tmpl);
38734a17663cSThomas Veerman		if ((fd = mkstemp(name[n])) >= 0) {
38744a17663cSThomas Veerman			if (!strcmp(name[n], tmpl)
38754a17663cSThomas Veerman			 || stat(name[n], &sb) != 0
38764a17663cSThomas Veerman			 || (sb.st_mode & S_IFMT) != S_IFREG
38774a17663cSThomas Veerman			 || (sb.st_mode & 077) != 0) {
38784a17663cSThomas Veerman				result = 1;
38794a17663cSThomas Veerman			}
38804a17663cSThomas Veerman			close(fd);
38814a17663cSThomas Veerman		}
38824a17663cSThomas Veerman	}
38834a17663cSThomas Veerman	if (result == 0
38844a17663cSThomas Veerman	 && !strcmp(name[0], name[1]))
38854a17663cSThomas Veerman		result = 1;
38864a17663cSThomas Veerman	${cf_cv_main_return:-return}(result);
38874a17663cSThomas Veerman}
38884a17663cSThomas Veerman
38894a17663cSThomas Veerman_ACEOF
38904a17663cSThomas Veermanrm -f conftest$ac_exeext
3891*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:3891: \"$ac_link\"") >&5
38924a17663cSThomas Veerman  (eval $ac_link) 2>&5
38934a17663cSThomas Veerman  ac_status=$?
3894*0a6a1f1dSLionel Sambuc  echo "$as_me:3894: \$? = $ac_status" >&5
38954a17663cSThomas Veerman  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3896*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:3896: \"$ac_try\"") >&5
38974a17663cSThomas Veerman  (eval $ac_try) 2>&5
38984a17663cSThomas Veerman  ac_status=$?
3899*0a6a1f1dSLionel Sambuc  echo "$as_me:3899: \$? = $ac_status" >&5
39004a17663cSThomas Veerman  (exit $ac_status); }; }; then
39014a17663cSThomas Veerman  cf_cv_func_mkstemp=yes
39024a17663cSThomas Veerman
39034a17663cSThomas Veermanelse
39044a17663cSThomas Veerman  echo "$as_me: program exited with status $ac_status" >&5
39054a17663cSThomas Veermanecho "$as_me: failed program was:" >&5
39064a17663cSThomas Veermancat conftest.$ac_ext >&5
39074a17663cSThomas Veermancf_cv_func_mkstemp=no
39084a17663cSThomas Veerman
39094a17663cSThomas Veermanfi
39104a17663cSThomas Veermanrm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39114a17663cSThomas Veermanfi
39124a17663cSThomas Veerman
39134a17663cSThomas Veermanfi
3914*0a6a1f1dSLionel Sambucecho "$as_me:3914: result: $cf_cv_func_mkstemp" >&5
39154a17663cSThomas Veermanecho "${ECHO_T}$cf_cv_func_mkstemp" >&6
391684d9c625SLionel Sambucif test "x$cf_cv_func_mkstemp" = xmaybe ; then
3917*0a6a1f1dSLionel Sambuc	echo "$as_me:3917: checking for mkstemp" >&5
391884d9c625SLionel Sambucecho $ECHO_N "checking for mkstemp... $ECHO_C" >&6
391984d9c625SLionel Sambucif test "${ac_cv_func_mkstemp+set}" = set; then
392084d9c625SLionel Sambuc  echo $ECHO_N "(cached) $ECHO_C" >&6
392184d9c625SLionel Sambucelse
392284d9c625SLionel Sambuc  cat >conftest.$ac_ext <<_ACEOF
3923*0a6a1f1dSLionel Sambuc#line 3923 "configure"
392484d9c625SLionel Sambuc#include "confdefs.h"
392584d9c625SLionel Sambuc/* System header to define __stub macros and hopefully few prototypes,
392684d9c625SLionel Sambuc    which can conflict with char mkstemp (); below.  */
392784d9c625SLionel Sambuc#include <assert.h>
392884d9c625SLionel Sambuc/* Override any gcc2 internal prototype to avoid an error.  */
392984d9c625SLionel Sambuc#ifdef __cplusplus
393084d9c625SLionel Sambucextern "C"
393184d9c625SLionel Sambuc#endif
393284d9c625SLionel Sambuc/* We use char because int might match the return type of a gcc2
393384d9c625SLionel Sambuc   builtin and then its argument prototype would still apply.  */
393484d9c625SLionel Sambucchar mkstemp ();
393584d9c625SLionel Sambucchar (*f) ();
393684d9c625SLionel Sambuc
393784d9c625SLionel Sambucint
393884d9c625SLionel Sambucmain ()
393984d9c625SLionel Sambuc{
394084d9c625SLionel Sambuc/* The GNU C library defines this for functions which it implements
394184d9c625SLionel Sambuc    to always fail with ENOSYS.  Some functions are actually named
394284d9c625SLionel Sambuc    something starting with __ and the normal name is an alias.  */
394384d9c625SLionel Sambuc#if defined (__stub_mkstemp) || defined (__stub___mkstemp)
394484d9c625SLionel Sambucchoke me
394584d9c625SLionel Sambuc#else
394684d9c625SLionel Sambucf = mkstemp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
394784d9c625SLionel Sambuc#endif
394884d9c625SLionel Sambuc
394984d9c625SLionel Sambuc  ;
395084d9c625SLionel Sambuc  return 0;
395184d9c625SLionel Sambuc}
395284d9c625SLionel Sambuc_ACEOF
395384d9c625SLionel Sambucrm -f conftest.$ac_objext conftest$ac_exeext
3954*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:3954: \"$ac_link\"") >&5
395584d9c625SLionel Sambuc  (eval $ac_link) 2>&5
395684d9c625SLionel Sambuc  ac_status=$?
3957*0a6a1f1dSLionel Sambuc  echo "$as_me:3957: \$? = $ac_status" >&5
395884d9c625SLionel Sambuc  (exit $ac_status); } &&
395984d9c625SLionel Sambuc         { ac_try='test -s conftest$ac_exeext'
3960*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:3960: \"$ac_try\"") >&5
396184d9c625SLionel Sambuc  (eval $ac_try) 2>&5
396284d9c625SLionel Sambuc  ac_status=$?
3963*0a6a1f1dSLionel Sambuc  echo "$as_me:3963: \$? = $ac_status" >&5
396484d9c625SLionel Sambuc  (exit $ac_status); }; }; then
396584d9c625SLionel Sambuc  ac_cv_func_mkstemp=yes
396684d9c625SLionel Sambucelse
396784d9c625SLionel Sambuc  echo "$as_me: failed program was:" >&5
396884d9c625SLionel Sambuccat conftest.$ac_ext >&5
396984d9c625SLionel Sambucac_cv_func_mkstemp=no
397084d9c625SLionel Sambucfi
397184d9c625SLionel Sambucrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
397284d9c625SLionel Sambucfi
3973*0a6a1f1dSLionel Sambucecho "$as_me:3973: result: $ac_cv_func_mkstemp" >&5
397484d9c625SLionel Sambucecho "${ECHO_T}$ac_cv_func_mkstemp" >&6
397584d9c625SLionel Sambuc
397684d9c625SLionel Sambucfi
39774a17663cSThomas Veermanif test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
397884d9c625SLionel Sambuc
39794a17663cSThomas Veermancat >>confdefs.h <<\EOF
39804a17663cSThomas Veerman#define HAVE_MKSTEMP 1
39814a17663cSThomas VeermanEOF
39824a17663cSThomas Veerman
39834a17663cSThomas Veermanfi
39844a17663cSThomas Veerman
3985*0a6a1f1dSLionel Sambucfor ac_func in vsnprintf
3986*0a6a1f1dSLionel Sambucdo
3987*0a6a1f1dSLionel Sambucas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3988*0a6a1f1dSLionel Sambucecho "$as_me:3988: checking for $ac_func" >&5
3989*0a6a1f1dSLionel Sambucecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3990*0a6a1f1dSLionel Sambucif eval "test \"\${$as_ac_var+set}\" = set"; then
3991*0a6a1f1dSLionel Sambuc  echo $ECHO_N "(cached) $ECHO_C" >&6
3992*0a6a1f1dSLionel Sambucelse
3993*0a6a1f1dSLionel Sambuc  cat >conftest.$ac_ext <<_ACEOF
3994*0a6a1f1dSLionel Sambuc#line 3994 "configure"
3995*0a6a1f1dSLionel Sambuc#include "confdefs.h"
3996*0a6a1f1dSLionel Sambuc/* System header to define __stub macros and hopefully few prototypes,
3997*0a6a1f1dSLionel Sambuc    which can conflict with char $ac_func (); below.  */
3998*0a6a1f1dSLionel Sambuc#include <assert.h>
3999*0a6a1f1dSLionel Sambuc/* Override any gcc2 internal prototype to avoid an error.  */
4000*0a6a1f1dSLionel Sambuc#ifdef __cplusplus
4001*0a6a1f1dSLionel Sambucextern "C"
4002*0a6a1f1dSLionel Sambuc#endif
4003*0a6a1f1dSLionel Sambuc/* We use char because int might match the return type of a gcc2
4004*0a6a1f1dSLionel Sambuc   builtin and then its argument prototype would still apply.  */
4005*0a6a1f1dSLionel Sambucchar $ac_func ();
4006*0a6a1f1dSLionel Sambucchar (*f) ();
4007*0a6a1f1dSLionel Sambuc
4008*0a6a1f1dSLionel Sambucint
4009*0a6a1f1dSLionel Sambucmain ()
4010*0a6a1f1dSLionel Sambuc{
4011*0a6a1f1dSLionel Sambuc/* The GNU C library defines this for functions which it implements
4012*0a6a1f1dSLionel Sambuc    to always fail with ENOSYS.  Some functions are actually named
4013*0a6a1f1dSLionel Sambuc    something starting with __ and the normal name is an alias.  */
4014*0a6a1f1dSLionel Sambuc#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4015*0a6a1f1dSLionel Sambucchoke me
4016*0a6a1f1dSLionel Sambuc#else
4017*0a6a1f1dSLionel Sambucf = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
4018*0a6a1f1dSLionel Sambuc#endif
4019*0a6a1f1dSLionel Sambuc
4020*0a6a1f1dSLionel Sambuc  ;
4021*0a6a1f1dSLionel Sambuc  return 0;
4022*0a6a1f1dSLionel Sambuc}
4023*0a6a1f1dSLionel Sambuc_ACEOF
4024*0a6a1f1dSLionel Sambucrm -f conftest.$ac_objext conftest$ac_exeext
4025*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:4025: \"$ac_link\"") >&5
4026*0a6a1f1dSLionel Sambuc  (eval $ac_link) 2>&5
4027*0a6a1f1dSLionel Sambuc  ac_status=$?
4028*0a6a1f1dSLionel Sambuc  echo "$as_me:4028: \$? = $ac_status" >&5
4029*0a6a1f1dSLionel Sambuc  (exit $ac_status); } &&
4030*0a6a1f1dSLionel Sambuc         { ac_try='test -s conftest$ac_exeext'
4031*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:4031: \"$ac_try\"") >&5
4032*0a6a1f1dSLionel Sambuc  (eval $ac_try) 2>&5
4033*0a6a1f1dSLionel Sambuc  ac_status=$?
4034*0a6a1f1dSLionel Sambuc  echo "$as_me:4034: \$? = $ac_status" >&5
4035*0a6a1f1dSLionel Sambuc  (exit $ac_status); }; }; then
4036*0a6a1f1dSLionel Sambuc  eval "$as_ac_var=yes"
4037*0a6a1f1dSLionel Sambucelse
4038*0a6a1f1dSLionel Sambuc  echo "$as_me: failed program was:" >&5
4039*0a6a1f1dSLionel Sambuccat conftest.$ac_ext >&5
4040*0a6a1f1dSLionel Sambuceval "$as_ac_var=no"
4041*0a6a1f1dSLionel Sambucfi
4042*0a6a1f1dSLionel Sambucrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4043*0a6a1f1dSLionel Sambucfi
4044*0a6a1f1dSLionel Sambucecho "$as_me:4044: result: `eval echo '${'$as_ac_var'}'`" >&5
4045*0a6a1f1dSLionel Sambucecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4046*0a6a1f1dSLionel Sambucif test `eval echo '${'$as_ac_var'}'` = yes; then
4047*0a6a1f1dSLionel Sambuc  cat >>confdefs.h <<EOF
4048*0a6a1f1dSLionel Sambuc#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4049*0a6a1f1dSLionel SambucEOF
4050*0a6a1f1dSLionel Sambuc
4051*0a6a1f1dSLionel Sambucfi
4052*0a6a1f1dSLionel Sambucdone
4053*0a6a1f1dSLionel Sambuc
4054*0a6a1f1dSLionel Sambucecho "$as_me:4054: checking for maximum table size" >&5
4055*0a6a1f1dSLionel Sambucecho $ECHO_N "checking for maximum table size... $ECHO_C" >&6
4056*0a6a1f1dSLionel Sambuc
4057*0a6a1f1dSLionel Sambuc# Check whether --with-max-table-size or --without-max-table-size was given.
4058*0a6a1f1dSLionel Sambucif test "${with_max_table_size+set}" = set; then
4059*0a6a1f1dSLionel Sambuc  withval="$with_max_table_size"
4060*0a6a1f1dSLionel Sambuc
4061*0a6a1f1dSLionel Sambucfi;
4062*0a6a1f1dSLionel Sambucif test -n "$with_max_table_size"
4063*0a6a1f1dSLionel Sambucthen
4064*0a6a1f1dSLionel Sambuc	echo "$as_me:4064: result: $with_max_table_size" >&5
4065*0a6a1f1dSLionel Sambucecho "${ECHO_T}$with_max_table_size" >&6
4066*0a6a1f1dSLionel Sambuc	check=`expr "$with_max_table_size" + 0`
4067*0a6a1f1dSLionel Sambuc	if test "x$check" != "x$with_max_table_size"
4068*0a6a1f1dSLionel Sambuc	then
4069*0a6a1f1dSLionel Sambuc		{ { echo "$as_me:4069: error: invalid value for --with-max-table-size: $with_max_table_size" >&5
4070*0a6a1f1dSLionel Sambucecho "$as_me: error: invalid value for --with-max-table-size: $with_max_table_size" >&2;}
4071*0a6a1f1dSLionel Sambuc   { (exit 1); exit 1; }; }
4072*0a6a1f1dSLionel Sambuc	fi
4073*0a6a1f1dSLionel Sambuc
4074*0a6a1f1dSLionel Sambuccat >>confdefs.h <<EOF
4075*0a6a1f1dSLionel Sambuc#define MAXTABLE $with_max_table_size
4076*0a6a1f1dSLionel SambucEOF
4077*0a6a1f1dSLionel Sambuc
4078*0a6a1f1dSLionel Sambucelse
4079*0a6a1f1dSLionel Sambuc	echo "$as_me:4079: result: default" >&5
4080*0a6a1f1dSLionel Sambucecho "${ECHO_T}default" >&6
4081*0a6a1f1dSLionel Sambucfi
4082*0a6a1f1dSLionel Sambuc
4083*0a6a1f1dSLionel Sambucecho "$as_me:4083: checking if backtracking extension is wanted" >&5
4084*0a6a1f1dSLionel Sambucecho $ECHO_N "checking if backtracking extension is wanted... $ECHO_C" >&6
4085*0a6a1f1dSLionel Sambuc
4086*0a6a1f1dSLionel Sambuc# Check whether --enable-btyacc or --disable-btyacc was given.
4087*0a6a1f1dSLionel Sambucif test "${enable_btyacc+set}" = set; then
4088*0a6a1f1dSLionel Sambuc  enableval="$enable_btyacc"
4089*0a6a1f1dSLionel Sambuc
4090*0a6a1f1dSLionel Sambucfi;
4091*0a6a1f1dSLionel Sambucecho "$as_me:4091: result: $enable_btyacc" >&5
4092*0a6a1f1dSLionel Sambucecho "${ECHO_T}$enable_btyacc" >&6
4093*0a6a1f1dSLionel Sambucif test "$enable_btyacc" = "yes"; then
4094*0a6a1f1dSLionel Sambuc
4095*0a6a1f1dSLionel Sambuccat >>confdefs.h <<\EOF
4096*0a6a1f1dSLionel Sambuc#define YYBTYACC 1
4097*0a6a1f1dSLionel SambucEOF
4098*0a6a1f1dSLionel Sambuc
4099*0a6a1f1dSLionel Sambuc	SKELETON=btyaccpar
4100*0a6a1f1dSLionel Sambucelse
4101*0a6a1f1dSLionel Sambuc	SKELETON=yaccpar
4102*0a6a1f1dSLionel Sambucfi
4103*0a6a1f1dSLionel Sambuc
41044a17663cSThomas Veermanif ( test "$GCC" = yes || test "$GXX" = yes )
41054a17663cSThomas Veermanthen
4106*0a6a1f1dSLionel Sambucecho "$as_me:4106: checking if you want to check for gcc warnings" >&5
41074a17663cSThomas Veermanecho $ECHO_N "checking if you want to check for gcc warnings... $ECHO_C" >&6
41084a17663cSThomas Veerman
41094a17663cSThomas Veerman# Check whether --with-warnings or --without-warnings was given.
41104a17663cSThomas Veermanif test "${with_warnings+set}" = set; then
41114a17663cSThomas Veerman  withval="$with_warnings"
41124a17663cSThomas Veerman  cf_opt_with_warnings=$withval
41134a17663cSThomas Veermanelse
41144a17663cSThomas Veerman  cf_opt_with_warnings=no
41154a17663cSThomas Veermanfi;
4116*0a6a1f1dSLionel Sambucecho "$as_me:4116: result: $cf_opt_with_warnings" >&5
41174a17663cSThomas Veermanecho "${ECHO_T}$cf_opt_with_warnings" >&6
41184a17663cSThomas Veermanif test "$cf_opt_with_warnings" != no ; then
41194a17663cSThomas Veerman
41204a17663cSThomas Veermanif test "$GCC" = yes
41214a17663cSThomas Veermanthen
41224a17663cSThomas Veermancat > conftest.i <<EOF
41234a17663cSThomas Veerman#ifndef GCC_PRINTF
41244a17663cSThomas Veerman#define GCC_PRINTF 0
41254a17663cSThomas Veerman#endif
41264a17663cSThomas Veerman#ifndef GCC_SCANF
41274a17663cSThomas Veerman#define GCC_SCANF 0
41284a17663cSThomas Veerman#endif
41294a17663cSThomas Veerman#ifndef GCC_NORETURN
41304a17663cSThomas Veerman#define GCC_NORETURN /* nothing */
41314a17663cSThomas Veerman#endif
41324a17663cSThomas Veerman#ifndef GCC_UNUSED
41334a17663cSThomas Veerman#define GCC_UNUSED /* nothing */
41344a17663cSThomas Veerman#endif
41354a17663cSThomas VeermanEOF
41364a17663cSThomas Veermanif test "$GCC" = yes
41374a17663cSThomas Veermanthen
4138*0a6a1f1dSLionel Sambuc	{ echo "$as_me:4138: checking for $CC __attribute__ directives..." >&5
41394a17663cSThomas Veermanecho "$as_me: checking for $CC __attribute__ directives..." >&6;}
41404a17663cSThomas Veermancat > conftest.$ac_ext <<EOF
4141*0a6a1f1dSLionel Sambuc#line 4141 "${as_me:-configure}"
41424a17663cSThomas Veerman#include "confdefs.h"
41434a17663cSThomas Veerman#include "conftest.h"
41444a17663cSThomas Veerman#include "conftest.i"
41454a17663cSThomas Veerman#if	GCC_PRINTF
41464a17663cSThomas Veerman#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
41474a17663cSThomas Veerman#else
41484a17663cSThomas Veerman#define GCC_PRINTFLIKE(fmt,var) /*nothing*/
41494a17663cSThomas Veerman#endif
41504a17663cSThomas Veerman#if	GCC_SCANF
41514a17663cSThomas Veerman#define GCC_SCANFLIKE(fmt,var)  __attribute__((format(scanf,fmt,var)))
41524a17663cSThomas Veerman#else
41534a17663cSThomas Veerman#define GCC_SCANFLIKE(fmt,var)  /*nothing*/
41544a17663cSThomas Veerman#endif
41554a17663cSThomas Veermanextern void wow(char *,...) GCC_SCANFLIKE(1,2);
41564a17663cSThomas Veermanextern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
41574a17663cSThomas Veermanextern void foo(void) GCC_NORETURN;
41584a17663cSThomas Veermanint main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
41594a17663cSThomas VeermanEOF
41604a17663cSThomas Veerman	cf_printf_attribute=no
41614a17663cSThomas Veerman	cf_scanf_attribute=no
41624a17663cSThomas Veerman	for cf_attribute in scanf printf unused noreturn
41634a17663cSThomas Veerman	do
41644a17663cSThomas Veerman
41654a17663cSThomas Veermancf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
41664a17663cSThomas Veerman
41674a17663cSThomas Veerman		cf_directive="__attribute__(($cf_attribute))"
41684a17663cSThomas Veerman		echo "checking for $CC $cf_directive" 1>&5
41694a17663cSThomas Veerman
41704a17663cSThomas Veerman		case $cf_attribute in #(vi
41714a17663cSThomas Veerman		printf) #(vi
41724a17663cSThomas Veerman			cf_printf_attribute=yes
41734a17663cSThomas Veerman			cat >conftest.h <<EOF
41744a17663cSThomas Veerman#define GCC_$cf_ATTRIBUTE 1
41754a17663cSThomas VeermanEOF
41764a17663cSThomas Veerman			;;
41774a17663cSThomas Veerman		scanf) #(vi
41784a17663cSThomas Veerman			cf_scanf_attribute=yes
41794a17663cSThomas Veerman			cat >conftest.h <<EOF
41804a17663cSThomas Veerman#define GCC_$cf_ATTRIBUTE 1
41814a17663cSThomas VeermanEOF
41824a17663cSThomas Veerman			;;
41834a17663cSThomas Veerman		*) #(vi
41844a17663cSThomas Veerman			cat >conftest.h <<EOF
41854a17663cSThomas Veerman#define GCC_$cf_ATTRIBUTE $cf_directive
41864a17663cSThomas VeermanEOF
41874a17663cSThomas Veerman			;;
41884a17663cSThomas Veerman		esac
41894a17663cSThomas Veerman
4190*0a6a1f1dSLionel Sambuc		if { (eval echo "$as_me:4190: \"$ac_compile\"") >&5
41914a17663cSThomas Veerman  (eval $ac_compile) 2>&5
41924a17663cSThomas Veerman  ac_status=$?
4193*0a6a1f1dSLionel Sambuc  echo "$as_me:4193: \$? = $ac_status" >&5
41944a17663cSThomas Veerman  (exit $ac_status); }; then
4195*0a6a1f1dSLionel Sambuc			test -n "$verbose" && echo "$as_me:4195: result: ... $cf_attribute" >&5
41964a17663cSThomas Veermanecho "${ECHO_T}... $cf_attribute" >&6
41974a17663cSThomas Veerman			cat conftest.h >>confdefs.h
41984a17663cSThomas Veerman			case $cf_attribute in #(vi
419984d9c625SLionel Sambuc			noreturn) #(vi
420084d9c625SLionel Sambuc
420184d9c625SLionel Sambuccat >>confdefs.h <<EOF
420284d9c625SLionel Sambuc#define GCC_NORETURN $cf_directive
420384d9c625SLionel SambucEOF
420484d9c625SLionel Sambuc
420584d9c625SLionel Sambuc				;;
42064a17663cSThomas Veerman			printf) #(vi
420784d9c625SLionel Sambuc				cf_value='/* nothing */'
420884d9c625SLionel Sambuc				if test "$cf_printf_attribute" != no ; then
420984d9c625SLionel Sambuc					cf_value='__attribute__((format(printf,fmt,var)))'
421084d9c625SLionel Sambuc
421184d9c625SLionel Sambuccat >>confdefs.h <<\EOF
421284d9c625SLionel Sambuc#define GCC_PRINTF 1
42134a17663cSThomas VeermanEOF
421484d9c625SLionel Sambuc
42154a17663cSThomas Veerman				fi
421684d9c625SLionel Sambuc
421784d9c625SLionel Sambuccat >>confdefs.h <<EOF
421884d9c625SLionel Sambuc#define GCC_PRINTFLIKE(fmt,var) $cf_value
421984d9c625SLionel SambucEOF
422084d9c625SLionel Sambuc
42214a17663cSThomas Veerman				;;
42224a17663cSThomas Veerman			scanf) #(vi
422384d9c625SLionel Sambuc				cf_value='/* nothing */'
422484d9c625SLionel Sambuc				if test "$cf_scanf_attribute" != no ; then
422584d9c625SLionel Sambuc					cf_value='__attribute__((format(scanf,fmt,var)))'
422684d9c625SLionel Sambuc
422784d9c625SLionel Sambuccat >>confdefs.h <<\EOF
422884d9c625SLionel Sambuc#define GCC_SCANF 1
42294a17663cSThomas VeermanEOF
423084d9c625SLionel Sambuc
42314a17663cSThomas Veerman				fi
423284d9c625SLionel Sambuc
423384d9c625SLionel Sambuccat >>confdefs.h <<EOF
423484d9c625SLionel Sambuc#define GCC_SCANFLIKE(fmt,var) $cf_value
423584d9c625SLionel SambucEOF
423684d9c625SLionel Sambuc
423784d9c625SLionel Sambuc				;;
423884d9c625SLionel Sambuc			unused) #(vi
423984d9c625SLionel Sambuc
424084d9c625SLionel Sambuccat >>confdefs.h <<EOF
424184d9c625SLionel Sambuc#define GCC_UNUSED $cf_directive
424284d9c625SLionel SambucEOF
424384d9c625SLionel Sambuc
42444a17663cSThomas Veerman				;;
42454a17663cSThomas Veerman			esac
42464a17663cSThomas Veerman		fi
42474a17663cSThomas Veerman	done
42484a17663cSThomas Veermanelse
42494a17663cSThomas Veerman	fgrep define conftest.i >>confdefs.h
42504a17663cSThomas Veermanfi
42514a17663cSThomas Veermanrm -rf conftest*
42524a17663cSThomas Veermanfi
42534a17663cSThomas Veerman
42544a17663cSThomas VeermanINTEL_COMPILER=no
42554a17663cSThomas Veerman
42564a17663cSThomas Veermanif test "$GCC" = yes ; then
42574a17663cSThomas Veerman	case $host_os in
42584a17663cSThomas Veerman	linux*|gnu*)
4259*0a6a1f1dSLionel Sambuc		echo "$as_me:4259: checking if this is really Intel C compiler" >&5
42604a17663cSThomas Veermanecho $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
42614a17663cSThomas Veerman		cf_save_CFLAGS="$CFLAGS"
42624a17663cSThomas Veerman		CFLAGS="$CFLAGS -no-gcc"
42634a17663cSThomas Veerman		cat >conftest.$ac_ext <<_ACEOF
4264*0a6a1f1dSLionel Sambuc#line 4264 "configure"
42654a17663cSThomas Veerman#include "confdefs.h"
42664a17663cSThomas Veerman
42674a17663cSThomas Veermanint
42684a17663cSThomas Veermanmain ()
42694a17663cSThomas Veerman{
42704a17663cSThomas Veerman
42714a17663cSThomas Veerman#ifdef __INTEL_COMPILER
42724a17663cSThomas Veerman#else
42734a17663cSThomas Veermanmake an error
42744a17663cSThomas Veerman#endif
42754a17663cSThomas Veerman
42764a17663cSThomas Veerman  ;
42774a17663cSThomas Veerman  return 0;
42784a17663cSThomas Veerman}
42794a17663cSThomas Veerman_ACEOF
42804a17663cSThomas Veermanrm -f conftest.$ac_objext
4281*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:4281: \"$ac_compile\"") >&5
42824a17663cSThomas Veerman  (eval $ac_compile) 2>&5
42834a17663cSThomas Veerman  ac_status=$?
4284*0a6a1f1dSLionel Sambuc  echo "$as_me:4284: \$? = $ac_status" >&5
42854a17663cSThomas Veerman  (exit $ac_status); } &&
42864a17663cSThomas Veerman         { ac_try='test -s conftest.$ac_objext'
4287*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:4287: \"$ac_try\"") >&5
42884a17663cSThomas Veerman  (eval $ac_try) 2>&5
42894a17663cSThomas Veerman  ac_status=$?
4290*0a6a1f1dSLionel Sambuc  echo "$as_me:4290: \$? = $ac_status" >&5
42914a17663cSThomas Veerman  (exit $ac_status); }; }; then
42924a17663cSThomas Veerman  INTEL_COMPILER=yes
4293*0a6a1f1dSLionel Sambuccf_save_CFLAGS="$cf_save_CFLAGS -we147"
42944a17663cSThomas Veerman
42954a17663cSThomas Veermanelse
42964a17663cSThomas Veerman  echo "$as_me: failed program was:" >&5
42974a17663cSThomas Veermancat conftest.$ac_ext >&5
42984a17663cSThomas Veermanfi
42994a17663cSThomas Veermanrm -f conftest.$ac_objext conftest.$ac_ext
43004a17663cSThomas Veerman		CFLAGS="$cf_save_CFLAGS"
4301*0a6a1f1dSLionel Sambuc		echo "$as_me:4301: result: $INTEL_COMPILER" >&5
43024a17663cSThomas Veermanecho "${ECHO_T}$INTEL_COMPILER" >&6
43034a17663cSThomas Veerman		;;
43044a17663cSThomas Veerman	esac
43054a17663cSThomas Veermanfi
43064a17663cSThomas Veerman
430784d9c625SLionel SambucCLANG_COMPILER=no
430884d9c625SLionel Sambuc
430984d9c625SLionel Sambucif test "$GCC" = yes ; then
4310*0a6a1f1dSLionel Sambuc	echo "$as_me:4310: checking if this is really Clang C compiler" >&5
431184d9c625SLionel Sambucecho $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
431284d9c625SLionel Sambuc	cf_save_CFLAGS="$CFLAGS"
431384d9c625SLionel Sambuc	CFLAGS="$CFLAGS -Qunused-arguments"
431484d9c625SLionel Sambuc	cat >conftest.$ac_ext <<_ACEOF
4315*0a6a1f1dSLionel Sambuc#line 4315 "configure"
431684d9c625SLionel Sambuc#include "confdefs.h"
431784d9c625SLionel Sambuc
431884d9c625SLionel Sambucint
431984d9c625SLionel Sambucmain ()
432084d9c625SLionel Sambuc{
432184d9c625SLionel Sambuc
432284d9c625SLionel Sambuc#ifdef __clang__
432384d9c625SLionel Sambuc#else
432484d9c625SLionel Sambucmake an error
432584d9c625SLionel Sambuc#endif
432684d9c625SLionel Sambuc
432784d9c625SLionel Sambuc  ;
432884d9c625SLionel Sambuc  return 0;
432984d9c625SLionel Sambuc}
433084d9c625SLionel Sambuc_ACEOF
433184d9c625SLionel Sambucrm -f conftest.$ac_objext
4332*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:4332: \"$ac_compile\"") >&5
433384d9c625SLionel Sambuc  (eval $ac_compile) 2>&5
433484d9c625SLionel Sambuc  ac_status=$?
4335*0a6a1f1dSLionel Sambuc  echo "$as_me:4335: \$? = $ac_status" >&5
433684d9c625SLionel Sambuc  (exit $ac_status); } &&
433784d9c625SLionel Sambuc         { ac_try='test -s conftest.$ac_objext'
4338*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:4338: \"$ac_try\"") >&5
433984d9c625SLionel Sambuc  (eval $ac_try) 2>&5
434084d9c625SLionel Sambuc  ac_status=$?
4341*0a6a1f1dSLionel Sambuc  echo "$as_me:4341: \$? = $ac_status" >&5
434284d9c625SLionel Sambuc  (exit $ac_status); }; }; then
434384d9c625SLionel Sambuc  CLANG_COMPILER=yes
434484d9c625SLionel Sambuccf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
434584d9c625SLionel Sambuc
434684d9c625SLionel Sambucelse
434784d9c625SLionel Sambuc  echo "$as_me: failed program was:" >&5
434884d9c625SLionel Sambuccat conftest.$ac_ext >&5
434984d9c625SLionel Sambucfi
435084d9c625SLionel Sambucrm -f conftest.$ac_objext conftest.$ac_ext
435184d9c625SLionel Sambuc	CFLAGS="$cf_save_CFLAGS"
4352*0a6a1f1dSLionel Sambuc	echo "$as_me:4352: result: $CLANG_COMPILER" >&5
435384d9c625SLionel Sambucecho "${ECHO_T}$CLANG_COMPILER" >&6
435484d9c625SLionel Sambucfi
435584d9c625SLionel Sambuc
43564a17663cSThomas Veermancat > conftest.$ac_ext <<EOF
4357*0a6a1f1dSLionel Sambuc#line 4357 "${as_me:-configure}"
43584a17663cSThomas Veermanint main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
43594a17663cSThomas VeermanEOF
43604a17663cSThomas Veerman
43614a17663cSThomas Veermanif test "$INTEL_COMPILER" = yes
43624a17663cSThomas Veermanthen
43634a17663cSThomas Veerman# The "-wdXXX" options suppress warnings:
43644a17663cSThomas Veerman# remark #1419: external declaration in primary source file
43654a17663cSThomas Veerman# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
43664a17663cSThomas Veerman# remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
43674a17663cSThomas Veerman# remark #193: zero used for undefined preprocessing identifier
43684a17663cSThomas Veerman# remark #593: variable "curs_sb_left_arrow" was set but never used
43694a17663cSThomas Veerman# remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
43704a17663cSThomas Veerman# remark #869: parameter "tw" was never referenced
43714a17663cSThomas Veerman# remark #981: operands are evaluated in unspecified order
43724a17663cSThomas Veerman# warning #279: controlling expression is constant
43734a17663cSThomas Veerman
4374*0a6a1f1dSLionel Sambuc	{ echo "$as_me:4374: checking for $CC warning options..." >&5
43754a17663cSThomas Veermanecho "$as_me: checking for $CC warning options..." >&6;}
43764a17663cSThomas Veerman	cf_save_CFLAGS="$CFLAGS"
43774a17663cSThomas Veerman	EXTRA_CFLAGS="-Wall"
43784a17663cSThomas Veerman	for cf_opt in \
43794a17663cSThomas Veerman		wd1419 \
43804a17663cSThomas Veerman		wd1683 \
43814a17663cSThomas Veerman		wd1684 \
43824a17663cSThomas Veerman		wd193 \
43834a17663cSThomas Veerman		wd593 \
43844a17663cSThomas Veerman		wd279 \
43854a17663cSThomas Veerman		wd810 \
43864a17663cSThomas Veerman		wd869 \
43874a17663cSThomas Veerman		wd981
43884a17663cSThomas Veerman	do
43894a17663cSThomas Veerman		CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4390*0a6a1f1dSLionel Sambuc		if { (eval echo "$as_me:4390: \"$ac_compile\"") >&5
43914a17663cSThomas Veerman  (eval $ac_compile) 2>&5
43924a17663cSThomas Veerman  ac_status=$?
4393*0a6a1f1dSLionel Sambuc  echo "$as_me:4393: \$? = $ac_status" >&5
43944a17663cSThomas Veerman  (exit $ac_status); }; then
4395*0a6a1f1dSLionel Sambuc			test -n "$verbose" && echo "$as_me:4395: result: ... -$cf_opt" >&5
43964a17663cSThomas Veermanecho "${ECHO_T}... -$cf_opt" >&6
43974a17663cSThomas Veerman			EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
43984a17663cSThomas Veerman		fi
43994a17663cSThomas Veerman	done
44004a17663cSThomas Veerman	CFLAGS="$cf_save_CFLAGS"
44014a17663cSThomas Veerman
44024a17663cSThomas Veermanelif test "$GCC" = yes
44034a17663cSThomas Veermanthen
4404*0a6a1f1dSLionel Sambuc	{ echo "$as_me:4404: checking for $CC warning options..." >&5
44054a17663cSThomas Veermanecho "$as_me: checking for $CC warning options..." >&6;}
44064a17663cSThomas Veerman	cf_save_CFLAGS="$CFLAGS"
44074a17663cSThomas Veerman	EXTRA_CFLAGS=
44084a17663cSThomas Veerman	cf_warn_CONST=""
44094a17663cSThomas Veerman	test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
4410*0a6a1f1dSLionel Sambuc	cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
4411*0a6a1f1dSLionel Sambuc	test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
44124a17663cSThomas Veerman	for cf_opt in W Wall \
44134a17663cSThomas Veerman		Wbad-function-cast \
44144a17663cSThomas Veerman		Wcast-align \
44154a17663cSThomas Veerman		Wcast-qual \
4416*0a6a1f1dSLionel Sambuc		Wdeclaration-after-statement \
4417*0a6a1f1dSLionel Sambuc		Wextra \
44184a17663cSThomas Veerman		Winline \
44194a17663cSThomas Veerman		Wmissing-declarations \
44204a17663cSThomas Veerman		Wmissing-prototypes \
44214a17663cSThomas Veerman		Wnested-externs \
44224a17663cSThomas Veerman		Wpointer-arith \
44234a17663cSThomas Veerman		Wshadow \
44244a17663cSThomas Veerman		Wstrict-prototypes \
4425*0a6a1f1dSLionel Sambuc		Wundef $cf_gcc_warnings $cf_warn_CONST Wwrite-strings
44264a17663cSThomas Veerman	do
44274a17663cSThomas Veerman		CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4428*0a6a1f1dSLionel Sambuc		if { (eval echo "$as_me:4428: \"$ac_compile\"") >&5
44294a17663cSThomas Veerman  (eval $ac_compile) 2>&5
44304a17663cSThomas Veerman  ac_status=$?
4431*0a6a1f1dSLionel Sambuc  echo "$as_me:4431: \$? = $ac_status" >&5
44324a17663cSThomas Veerman  (exit $ac_status); }; then
4433*0a6a1f1dSLionel Sambuc			test -n "$verbose" && echo "$as_me:4433: result: ... -$cf_opt" >&5
44344a17663cSThomas Veermanecho "${ECHO_T}... -$cf_opt" >&6
44354a17663cSThomas Veerman			case $cf_opt in #(vi
44364a17663cSThomas Veerman			Wcast-qual) #(vi
44374a17663cSThomas Veerman				CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
44384a17663cSThomas Veerman				;;
44394a17663cSThomas Veerman			Winline) #(vi
44404a17663cSThomas Veerman				case $GCC_VERSION in
44414a17663cSThomas Veerman				[34].*)
44424a17663cSThomas Veerman					test -n "$verbose" && echo "	feature is broken in gcc $GCC_VERSION" 1>&6
44434a17663cSThomas Veerman
4444*0a6a1f1dSLionel Sambucecho "${as_me:-configure}:4444: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
444584d9c625SLionel Sambuc
444684d9c625SLionel Sambuc					continue;;
444784d9c625SLionel Sambuc				esac
444884d9c625SLionel Sambuc				;;
444984d9c625SLionel Sambuc			Wpointer-arith) #(vi
445084d9c625SLionel Sambuc				case $GCC_VERSION in
445184d9c625SLionel Sambuc				[12].*)
445284d9c625SLionel Sambuc					test -n "$verbose" && echo "	feature is broken in gcc $GCC_VERSION" 1>&6
445384d9c625SLionel Sambuc
4454*0a6a1f1dSLionel Sambucecho "${as_me:-configure}:4454: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
44554a17663cSThomas Veerman
44564a17663cSThomas Veerman					continue;;
44574a17663cSThomas Veerman				esac
44584a17663cSThomas Veerman				;;
44594a17663cSThomas Veerman			esac
44604a17663cSThomas Veerman			EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
44614a17663cSThomas Veerman		fi
44624a17663cSThomas Veerman	done
44634a17663cSThomas Veerman	CFLAGS="$cf_save_CFLAGS"
44644a17663cSThomas Veermanfi
44654a17663cSThomas Veermanrm -rf conftest*
44664a17663cSThomas Veerman
44674a17663cSThomas Veermanfi
44684a17663cSThomas Veermanfi
44694a17663cSThomas Veerman
4470*0a6a1f1dSLionel Sambucecho "$as_me:4470: checking if you want to see long compiling messages" >&5
44714a17663cSThomas Veermanecho $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
44724a17663cSThomas Veerman
44734a17663cSThomas Veerman# Check whether --enable-echo or --disable-echo was given.
44744a17663cSThomas Veermanif test "${enable_echo+set}" = set; then
44754a17663cSThomas Veerman  enableval="$enable_echo"
44764a17663cSThomas Veerman  test "$enableval" != no && enableval=yes
44774a17663cSThomas Veerman  if test "$enableval" != "yes" ; then
44784a17663cSThomas Veerman
44794a17663cSThomas Veerman    ECHO_LT='--silent'
44804a17663cSThomas Veerman    ECHO_LD='@echo linking $@;'
44814a17663cSThomas Veerman    RULE_CC='@echo compiling $<'
44824a17663cSThomas Veerman    SHOW_CC='@echo compiling $@'
44834a17663cSThomas Veerman    ECHO_CC='@'
44844a17663cSThomas Veerman
44854a17663cSThomas Veerman  else
44864a17663cSThomas Veerman
44874a17663cSThomas Veerman    ECHO_LT=''
44884a17663cSThomas Veerman    ECHO_LD=''
44894a17663cSThomas Veerman    RULE_CC=''
44904a17663cSThomas Veerman    SHOW_CC=''
44914a17663cSThomas Veerman    ECHO_CC=''
44924a17663cSThomas Veerman
44934a17663cSThomas Veerman  fi
44944a17663cSThomas Veermanelse
44954a17663cSThomas Veerman  enableval=yes
44964a17663cSThomas Veerman
44974a17663cSThomas Veerman    ECHO_LT=''
44984a17663cSThomas Veerman    ECHO_LD=''
44994a17663cSThomas Veerman    RULE_CC=''
45004a17663cSThomas Veerman    SHOW_CC=''
45014a17663cSThomas Veerman    ECHO_CC=''
45024a17663cSThomas Veerman
45034a17663cSThomas Veermanfi;
4504*0a6a1f1dSLionel Sambucecho "$as_me:4504: result: $enableval" >&5
45054a17663cSThomas Veermanecho "${ECHO_T}$enableval" >&6
45064a17663cSThomas Veerman
4507*0a6a1f1dSLionel Sambucecho "$as_me:4507: checking if you want to use dmalloc for testing" >&5
45084a17663cSThomas Veermanecho $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
45094a17663cSThomas Veerman
45104a17663cSThomas Veerman# Check whether --with-dmalloc or --without-dmalloc was given.
45114a17663cSThomas Veermanif test "${with_dmalloc+set}" = set; then
45124a17663cSThomas Veerman  withval="$with_dmalloc"
451384d9c625SLionel Sambuc
451484d9c625SLionel Sambuccat >>confdefs.h <<EOF
45154a17663cSThomas Veerman#define USE_DMALLOC 1
45164a17663cSThomas VeermanEOF
45174a17663cSThomas Veerman
45184a17663cSThomas Veerman	: ${with_cflags:=-g}
45194a17663cSThomas Veerman	: ${with_no_leaks:=yes}
45204a17663cSThomas Veerman	 with_dmalloc=yes
45214a17663cSThomas Veermanelse
45224a17663cSThomas Veerman  with_dmalloc=
45234a17663cSThomas Veermanfi;
4524*0a6a1f1dSLionel Sambucecho "$as_me:4524: result: ${with_dmalloc:-no}" >&5
45254a17663cSThomas Veermanecho "${ECHO_T}${with_dmalloc:-no}" >&6
45264a17663cSThomas Veerman
45274a17663cSThomas Veermancase .$with_cflags in #(vi
45284a17663cSThomas Veerman.*-g*)
45294a17663cSThomas Veerman	case .$CFLAGS in #(vi
45304a17663cSThomas Veerman	.*-g*) #(vi
45314a17663cSThomas Veerman		;;
45324a17663cSThomas Veerman	*)
45334a17663cSThomas Veerman
45344a17663cSThomas Veermancf_fix_cppflags=no
45354a17663cSThomas Veermancf_new_cflags=
45364a17663cSThomas Veermancf_new_cppflags=
45374a17663cSThomas Veermancf_new_extra_cppflags=
45384a17663cSThomas Veerman
45394a17663cSThomas Veermanfor cf_add_cflags in -g
45404a17663cSThomas Veermando
45414a17663cSThomas Veermancase $cf_fix_cppflags in
45424a17663cSThomas Veermanno)
45434a17663cSThomas Veerman	case $cf_add_cflags in #(vi
45444a17663cSThomas Veerman	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
45454a17663cSThomas Veerman		case $cf_add_cflags in
45464a17663cSThomas Veerman		-D*)
45474a17663cSThomas Veerman			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
45484a17663cSThomas Veerman
4549*0a6a1f1dSLionel Sambuc			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
45504a17663cSThomas Veerman				&& test -z "${cf_tst_cflags}" \
45514a17663cSThomas Veerman				&& cf_fix_cppflags=yes
45524a17663cSThomas Veerman
45534a17663cSThomas Veerman			if test $cf_fix_cppflags = yes ; then
45544a17663cSThomas Veerman				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
45554a17663cSThomas Veerman				continue
45564a17663cSThomas Veerman			elif test "${cf_tst_cflags}" = "\"'" ; then
45574a17663cSThomas Veerman				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
45584a17663cSThomas Veerman				continue
45594a17663cSThomas Veerman			fi
45604a17663cSThomas Veerman			;;
45614a17663cSThomas Veerman		esac
45624a17663cSThomas Veerman		case "$CPPFLAGS" in
45634a17663cSThomas Veerman		*$cf_add_cflags) #(vi
45644a17663cSThomas Veerman			;;
45654a17663cSThomas Veerman		*) #(vi
45664a17663cSThomas Veerman			case $cf_add_cflags in #(vi
45674a17663cSThomas Veerman			-D*)
45684a17663cSThomas Veerman				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
45694a17663cSThomas Veerman
45704a17663cSThomas VeermanCPPFLAGS=`echo "$CPPFLAGS" | \
45714a17663cSThomas Veerman	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
45724a17663cSThomas Veerman		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
45734a17663cSThomas Veerman
45744a17663cSThomas Veerman				;;
45754a17663cSThomas Veerman			esac
45764a17663cSThomas Veerman			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
45774a17663cSThomas Veerman			;;
45784a17663cSThomas Veerman		esac
45794a17663cSThomas Veerman		;;
45804a17663cSThomas Veerman	*)
45814a17663cSThomas Veerman		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
45824a17663cSThomas Veerman		;;
45834a17663cSThomas Veerman	esac
45844a17663cSThomas Veerman	;;
45854a17663cSThomas Veermanyes)
45864a17663cSThomas Veerman	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
45874a17663cSThomas Veerman
45884a17663cSThomas Veerman	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
45894a17663cSThomas Veerman
4590*0a6a1f1dSLionel Sambuc	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
45914a17663cSThomas Veerman		&& test -z "${cf_tst_cflags}" \
45924a17663cSThomas Veerman		&& cf_fix_cppflags=no
45934a17663cSThomas Veerman	;;
45944a17663cSThomas Veermanesac
45954a17663cSThomas Veermandone
45964a17663cSThomas Veerman
45974a17663cSThomas Veermanif test -n "$cf_new_cflags" ; then
45984a17663cSThomas Veerman
45994a17663cSThomas Veerman	CFLAGS="$CFLAGS $cf_new_cflags"
46004a17663cSThomas Veermanfi
46014a17663cSThomas Veerman
46024a17663cSThomas Veermanif test -n "$cf_new_cppflags" ; then
46034a17663cSThomas Veerman
46044a17663cSThomas Veerman	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
46054a17663cSThomas Veermanfi
46064a17663cSThomas Veerman
46074a17663cSThomas Veermanif test -n "$cf_new_extra_cppflags" ; then
46084a17663cSThomas Veerman
46094a17663cSThomas Veerman	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
46104a17663cSThomas Veermanfi
46114a17663cSThomas Veerman
46124a17663cSThomas Veerman		;;
46134a17663cSThomas Veerman	esac
46144a17663cSThomas Veerman	;;
46154a17663cSThomas Veermanesac
46164a17663cSThomas Veerman
46174a17663cSThomas Veermanif test "$with_dmalloc" = yes ; then
4618*0a6a1f1dSLionel Sambuc	echo "$as_me:4618: checking for dmalloc.h" >&5
46194a17663cSThomas Veermanecho $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
46204a17663cSThomas Veermanif test "${ac_cv_header_dmalloc_h+set}" = set; then
46214a17663cSThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
46224a17663cSThomas Veermanelse
46234a17663cSThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
4624*0a6a1f1dSLionel Sambuc#line 4624 "configure"
46254a17663cSThomas Veerman#include "confdefs.h"
46264a17663cSThomas Veerman#include <dmalloc.h>
46274a17663cSThomas Veerman_ACEOF
4628*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:4628: \"$ac_cpp conftest.$ac_ext\"") >&5
46294a17663cSThomas Veerman  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46304a17663cSThomas Veerman  ac_status=$?
46314a17663cSThomas Veerman  egrep -v '^ *\+' conftest.er1 >conftest.err
46324a17663cSThomas Veerman  rm -f conftest.er1
46334a17663cSThomas Veerman  cat conftest.err >&5
4634*0a6a1f1dSLionel Sambuc  echo "$as_me:4634: \$? = $ac_status" >&5
46354a17663cSThomas Veerman  (exit $ac_status); } >/dev/null; then
46364a17663cSThomas Veerman  if test -s conftest.err; then
46374a17663cSThomas Veerman    ac_cpp_err=$ac_c_preproc_warn_flag
46384a17663cSThomas Veerman  else
46394a17663cSThomas Veerman    ac_cpp_err=
46404a17663cSThomas Veerman  fi
46414a17663cSThomas Veermanelse
46424a17663cSThomas Veerman  ac_cpp_err=yes
46434a17663cSThomas Veermanfi
46444a17663cSThomas Veermanif test -z "$ac_cpp_err"; then
46454a17663cSThomas Veerman  ac_cv_header_dmalloc_h=yes
46464a17663cSThomas Veermanelse
46474a17663cSThomas Veerman  echo "$as_me: failed program was:" >&5
46484a17663cSThomas Veerman  cat conftest.$ac_ext >&5
46494a17663cSThomas Veerman  ac_cv_header_dmalloc_h=no
46504a17663cSThomas Veermanfi
46514a17663cSThomas Veermanrm -f conftest.err conftest.$ac_ext
46524a17663cSThomas Veermanfi
4653*0a6a1f1dSLionel Sambucecho "$as_me:4653: result: $ac_cv_header_dmalloc_h" >&5
46544a17663cSThomas Veermanecho "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
46554a17663cSThomas Veermanif test $ac_cv_header_dmalloc_h = yes; then
46564a17663cSThomas Veerman
4657*0a6a1f1dSLionel Sambucecho "$as_me:4657: checking for dmalloc_debug in -ldmalloc" >&5
46584a17663cSThomas Veermanecho $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
46594a17663cSThomas Veermanif test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
46604a17663cSThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
46614a17663cSThomas Veermanelse
46624a17663cSThomas Veerman  ac_check_lib_save_LIBS=$LIBS
46634a17663cSThomas VeermanLIBS="-ldmalloc  $LIBS"
46644a17663cSThomas Veermancat >conftest.$ac_ext <<_ACEOF
4665*0a6a1f1dSLionel Sambuc#line 4665 "configure"
46664a17663cSThomas Veerman#include "confdefs.h"
46674a17663cSThomas Veerman
46684a17663cSThomas Veerman/* Override any gcc2 internal prototype to avoid an error.  */
46694a17663cSThomas Veerman#ifdef __cplusplus
46704a17663cSThomas Veermanextern "C"
46714a17663cSThomas Veerman#endif
46724a17663cSThomas Veerman/* We use char because int might match the return type of a gcc2
46734a17663cSThomas Veerman   builtin and then its argument prototype would still apply.  */
46744a17663cSThomas Veermanchar dmalloc_debug ();
46754a17663cSThomas Veermanint
46764a17663cSThomas Veermanmain ()
46774a17663cSThomas Veerman{
46784a17663cSThomas Veermandmalloc_debug ();
46794a17663cSThomas Veerman  ;
46804a17663cSThomas Veerman  return 0;
46814a17663cSThomas Veerman}
46824a17663cSThomas Veerman_ACEOF
46834a17663cSThomas Veermanrm -f conftest.$ac_objext conftest$ac_exeext
4684*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:4684: \"$ac_link\"") >&5
46854a17663cSThomas Veerman  (eval $ac_link) 2>&5
46864a17663cSThomas Veerman  ac_status=$?
4687*0a6a1f1dSLionel Sambuc  echo "$as_me:4687: \$? = $ac_status" >&5
46884a17663cSThomas Veerman  (exit $ac_status); } &&
46894a17663cSThomas Veerman         { ac_try='test -s conftest$ac_exeext'
4690*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:4690: \"$ac_try\"") >&5
46914a17663cSThomas Veerman  (eval $ac_try) 2>&5
46924a17663cSThomas Veerman  ac_status=$?
4693*0a6a1f1dSLionel Sambuc  echo "$as_me:4693: \$? = $ac_status" >&5
46944a17663cSThomas Veerman  (exit $ac_status); }; }; then
46954a17663cSThomas Veerman  ac_cv_lib_dmalloc_dmalloc_debug=yes
46964a17663cSThomas Veermanelse
46974a17663cSThomas Veerman  echo "$as_me: failed program was:" >&5
46984a17663cSThomas Veermancat conftest.$ac_ext >&5
46994a17663cSThomas Veermanac_cv_lib_dmalloc_dmalloc_debug=no
47004a17663cSThomas Veermanfi
47014a17663cSThomas Veermanrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47024a17663cSThomas VeermanLIBS=$ac_check_lib_save_LIBS
47034a17663cSThomas Veermanfi
4704*0a6a1f1dSLionel Sambucecho "$as_me:4704: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
47054a17663cSThomas Veermanecho "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
47064a17663cSThomas Veermanif test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
47074a17663cSThomas Veerman  cat >>confdefs.h <<EOF
47084a17663cSThomas Veerman#define HAVE_LIBDMALLOC 1
47094a17663cSThomas VeermanEOF
47104a17663cSThomas Veerman
47114a17663cSThomas Veerman  LIBS="-ldmalloc $LIBS"
47124a17663cSThomas Veerman
47134a17663cSThomas Veermanfi
47144a17663cSThomas Veerman
47154a17663cSThomas Veermanfi
47164a17663cSThomas Veerman
47174a17663cSThomas Veermanfi
47184a17663cSThomas Veerman
4719*0a6a1f1dSLionel Sambucecho "$as_me:4719: checking if you want to use dbmalloc for testing" >&5
47204a17663cSThomas Veermanecho $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
47214a17663cSThomas Veerman
47224a17663cSThomas Veerman# Check whether --with-dbmalloc or --without-dbmalloc was given.
47234a17663cSThomas Veermanif test "${with_dbmalloc+set}" = set; then
47244a17663cSThomas Veerman  withval="$with_dbmalloc"
472584d9c625SLionel Sambuc
472684d9c625SLionel Sambuccat >>confdefs.h <<EOF
47274a17663cSThomas Veerman#define USE_DBMALLOC 1
47284a17663cSThomas VeermanEOF
47294a17663cSThomas Veerman
47304a17663cSThomas Veerman	: ${with_cflags:=-g}
47314a17663cSThomas Veerman	: ${with_no_leaks:=yes}
47324a17663cSThomas Veerman	 with_dbmalloc=yes
47334a17663cSThomas Veermanelse
47344a17663cSThomas Veerman  with_dbmalloc=
47354a17663cSThomas Veermanfi;
4736*0a6a1f1dSLionel Sambucecho "$as_me:4736: result: ${with_dbmalloc:-no}" >&5
47374a17663cSThomas Veermanecho "${ECHO_T}${with_dbmalloc:-no}" >&6
47384a17663cSThomas Veerman
47394a17663cSThomas Veermancase .$with_cflags in #(vi
47404a17663cSThomas Veerman.*-g*)
47414a17663cSThomas Veerman	case .$CFLAGS in #(vi
47424a17663cSThomas Veerman	.*-g*) #(vi
47434a17663cSThomas Veerman		;;
47444a17663cSThomas Veerman	*)
47454a17663cSThomas Veerman
47464a17663cSThomas Veermancf_fix_cppflags=no
47474a17663cSThomas Veermancf_new_cflags=
47484a17663cSThomas Veermancf_new_cppflags=
47494a17663cSThomas Veermancf_new_extra_cppflags=
47504a17663cSThomas Veerman
47514a17663cSThomas Veermanfor cf_add_cflags in -g
47524a17663cSThomas Veermando
47534a17663cSThomas Veermancase $cf_fix_cppflags in
47544a17663cSThomas Veermanno)
47554a17663cSThomas Veerman	case $cf_add_cflags in #(vi
47564a17663cSThomas Veerman	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
47574a17663cSThomas Veerman		case $cf_add_cflags in
47584a17663cSThomas Veerman		-D*)
47594a17663cSThomas Veerman			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
47604a17663cSThomas Veerman
4761*0a6a1f1dSLionel Sambuc			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
47624a17663cSThomas Veerman				&& test -z "${cf_tst_cflags}" \
47634a17663cSThomas Veerman				&& cf_fix_cppflags=yes
47644a17663cSThomas Veerman
47654a17663cSThomas Veerman			if test $cf_fix_cppflags = yes ; then
47664a17663cSThomas Veerman				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
47674a17663cSThomas Veerman				continue
47684a17663cSThomas Veerman			elif test "${cf_tst_cflags}" = "\"'" ; then
47694a17663cSThomas Veerman				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
47704a17663cSThomas Veerman				continue
47714a17663cSThomas Veerman			fi
47724a17663cSThomas Veerman			;;
47734a17663cSThomas Veerman		esac
47744a17663cSThomas Veerman		case "$CPPFLAGS" in
47754a17663cSThomas Veerman		*$cf_add_cflags) #(vi
47764a17663cSThomas Veerman			;;
47774a17663cSThomas Veerman		*) #(vi
47784a17663cSThomas Veerman			case $cf_add_cflags in #(vi
47794a17663cSThomas Veerman			-D*)
47804a17663cSThomas Veerman				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
47814a17663cSThomas Veerman
47824a17663cSThomas VeermanCPPFLAGS=`echo "$CPPFLAGS" | \
47834a17663cSThomas Veerman	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
47844a17663cSThomas Veerman		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
47854a17663cSThomas Veerman
47864a17663cSThomas Veerman				;;
47874a17663cSThomas Veerman			esac
47884a17663cSThomas Veerman			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
47894a17663cSThomas Veerman			;;
47904a17663cSThomas Veerman		esac
47914a17663cSThomas Veerman		;;
47924a17663cSThomas Veerman	*)
47934a17663cSThomas Veerman		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
47944a17663cSThomas Veerman		;;
47954a17663cSThomas Veerman	esac
47964a17663cSThomas Veerman	;;
47974a17663cSThomas Veermanyes)
47984a17663cSThomas Veerman	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
47994a17663cSThomas Veerman
48004a17663cSThomas Veerman	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
48014a17663cSThomas Veerman
4802*0a6a1f1dSLionel Sambuc	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
48034a17663cSThomas Veerman		&& test -z "${cf_tst_cflags}" \
48044a17663cSThomas Veerman		&& cf_fix_cppflags=no
48054a17663cSThomas Veerman	;;
48064a17663cSThomas Veermanesac
48074a17663cSThomas Veermandone
48084a17663cSThomas Veerman
48094a17663cSThomas Veermanif test -n "$cf_new_cflags" ; then
48104a17663cSThomas Veerman
48114a17663cSThomas Veerman	CFLAGS="$CFLAGS $cf_new_cflags"
48124a17663cSThomas Veermanfi
48134a17663cSThomas Veerman
48144a17663cSThomas Veermanif test -n "$cf_new_cppflags" ; then
48154a17663cSThomas Veerman
48164a17663cSThomas Veerman	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
48174a17663cSThomas Veermanfi
48184a17663cSThomas Veerman
48194a17663cSThomas Veermanif test -n "$cf_new_extra_cppflags" ; then
48204a17663cSThomas Veerman
48214a17663cSThomas Veerman	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
48224a17663cSThomas Veermanfi
48234a17663cSThomas Veerman
48244a17663cSThomas Veerman		;;
48254a17663cSThomas Veerman	esac
48264a17663cSThomas Veerman	;;
48274a17663cSThomas Veermanesac
48284a17663cSThomas Veerman
48294a17663cSThomas Veermanif test "$with_dbmalloc" = yes ; then
4830*0a6a1f1dSLionel Sambuc	echo "$as_me:4830: checking for dbmalloc.h" >&5
48314a17663cSThomas Veermanecho $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
48324a17663cSThomas Veermanif test "${ac_cv_header_dbmalloc_h+set}" = set; then
48334a17663cSThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
48344a17663cSThomas Veermanelse
48354a17663cSThomas Veerman  cat >conftest.$ac_ext <<_ACEOF
4836*0a6a1f1dSLionel Sambuc#line 4836 "configure"
48374a17663cSThomas Veerman#include "confdefs.h"
48384a17663cSThomas Veerman#include <dbmalloc.h>
48394a17663cSThomas Veerman_ACEOF
4840*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:4840: \"$ac_cpp conftest.$ac_ext\"") >&5
48414a17663cSThomas Veerman  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
48424a17663cSThomas Veerman  ac_status=$?
48434a17663cSThomas Veerman  egrep -v '^ *\+' conftest.er1 >conftest.err
48444a17663cSThomas Veerman  rm -f conftest.er1
48454a17663cSThomas Veerman  cat conftest.err >&5
4846*0a6a1f1dSLionel Sambuc  echo "$as_me:4846: \$? = $ac_status" >&5
48474a17663cSThomas Veerman  (exit $ac_status); } >/dev/null; then
48484a17663cSThomas Veerman  if test -s conftest.err; then
48494a17663cSThomas Veerman    ac_cpp_err=$ac_c_preproc_warn_flag
48504a17663cSThomas Veerman  else
48514a17663cSThomas Veerman    ac_cpp_err=
48524a17663cSThomas Veerman  fi
48534a17663cSThomas Veermanelse
48544a17663cSThomas Veerman  ac_cpp_err=yes
48554a17663cSThomas Veermanfi
48564a17663cSThomas Veermanif test -z "$ac_cpp_err"; then
48574a17663cSThomas Veerman  ac_cv_header_dbmalloc_h=yes
48584a17663cSThomas Veermanelse
48594a17663cSThomas Veerman  echo "$as_me: failed program was:" >&5
48604a17663cSThomas Veerman  cat conftest.$ac_ext >&5
48614a17663cSThomas Veerman  ac_cv_header_dbmalloc_h=no
48624a17663cSThomas Veermanfi
48634a17663cSThomas Veermanrm -f conftest.err conftest.$ac_ext
48644a17663cSThomas Veermanfi
4865*0a6a1f1dSLionel Sambucecho "$as_me:4865: result: $ac_cv_header_dbmalloc_h" >&5
48664a17663cSThomas Veermanecho "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
48674a17663cSThomas Veermanif test $ac_cv_header_dbmalloc_h = yes; then
48684a17663cSThomas Veerman
4869*0a6a1f1dSLionel Sambucecho "$as_me:4869: checking for debug_malloc in -ldbmalloc" >&5
48704a17663cSThomas Veermanecho $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
48714a17663cSThomas Veermanif test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
48724a17663cSThomas Veerman  echo $ECHO_N "(cached) $ECHO_C" >&6
48734a17663cSThomas Veermanelse
48744a17663cSThomas Veerman  ac_check_lib_save_LIBS=$LIBS
48754a17663cSThomas VeermanLIBS="-ldbmalloc  $LIBS"
48764a17663cSThomas Veermancat >conftest.$ac_ext <<_ACEOF
4877*0a6a1f1dSLionel Sambuc#line 4877 "configure"
48784a17663cSThomas Veerman#include "confdefs.h"
48794a17663cSThomas Veerman
48804a17663cSThomas Veerman/* Override any gcc2 internal prototype to avoid an error.  */
48814a17663cSThomas Veerman#ifdef __cplusplus
48824a17663cSThomas Veermanextern "C"
48834a17663cSThomas Veerman#endif
48844a17663cSThomas Veerman/* We use char because int might match the return type of a gcc2
48854a17663cSThomas Veerman   builtin and then its argument prototype would still apply.  */
48864a17663cSThomas Veermanchar debug_malloc ();
48874a17663cSThomas Veermanint
48884a17663cSThomas Veermanmain ()
48894a17663cSThomas Veerman{
48904a17663cSThomas Veermandebug_malloc ();
48914a17663cSThomas Veerman  ;
48924a17663cSThomas Veerman  return 0;
48934a17663cSThomas Veerman}
48944a17663cSThomas Veerman_ACEOF
48954a17663cSThomas Veermanrm -f conftest.$ac_objext conftest$ac_exeext
4896*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:4896: \"$ac_link\"") >&5
48974a17663cSThomas Veerman  (eval $ac_link) 2>&5
48984a17663cSThomas Veerman  ac_status=$?
4899*0a6a1f1dSLionel Sambuc  echo "$as_me:4899: \$? = $ac_status" >&5
49004a17663cSThomas Veerman  (exit $ac_status); } &&
49014a17663cSThomas Veerman         { ac_try='test -s conftest$ac_exeext'
4902*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:4902: \"$ac_try\"") >&5
49034a17663cSThomas Veerman  (eval $ac_try) 2>&5
49044a17663cSThomas Veerman  ac_status=$?
4905*0a6a1f1dSLionel Sambuc  echo "$as_me:4905: \$? = $ac_status" >&5
49064a17663cSThomas Veerman  (exit $ac_status); }; }; then
49074a17663cSThomas Veerman  ac_cv_lib_dbmalloc_debug_malloc=yes
49084a17663cSThomas Veermanelse
49094a17663cSThomas Veerman  echo "$as_me: failed program was:" >&5
49104a17663cSThomas Veermancat conftest.$ac_ext >&5
49114a17663cSThomas Veermanac_cv_lib_dbmalloc_debug_malloc=no
49124a17663cSThomas Veermanfi
49134a17663cSThomas Veermanrm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49144a17663cSThomas VeermanLIBS=$ac_check_lib_save_LIBS
49154a17663cSThomas Veermanfi
4916*0a6a1f1dSLionel Sambucecho "$as_me:4916: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
49174a17663cSThomas Veermanecho "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
49184a17663cSThomas Veermanif test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
49194a17663cSThomas Veerman  cat >>confdefs.h <<EOF
49204a17663cSThomas Veerman#define HAVE_LIBDBMALLOC 1
49214a17663cSThomas VeermanEOF
49224a17663cSThomas Veerman
49234a17663cSThomas Veerman  LIBS="-ldbmalloc $LIBS"
49244a17663cSThomas Veerman
49254a17663cSThomas Veermanfi
49264a17663cSThomas Veerman
49274a17663cSThomas Veermanfi
49284a17663cSThomas Veerman
49294a17663cSThomas Veermanfi
49304a17663cSThomas Veerman
4931*0a6a1f1dSLionel Sambucecho "$as_me:4931: checking if you want to use valgrind for testing" >&5
49324a17663cSThomas Veermanecho $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
49334a17663cSThomas Veerman
49344a17663cSThomas Veerman# Check whether --with-valgrind or --without-valgrind was given.
49354a17663cSThomas Veermanif test "${with_valgrind+set}" = set; then
49364a17663cSThomas Veerman  withval="$with_valgrind"
493784d9c625SLionel Sambuc
493884d9c625SLionel Sambuccat >>confdefs.h <<EOF
49394a17663cSThomas Veerman#define USE_VALGRIND 1
49404a17663cSThomas VeermanEOF
49414a17663cSThomas Veerman
49424a17663cSThomas Veerman	: ${with_cflags:=-g}
49434a17663cSThomas Veerman	: ${with_no_leaks:=yes}
49444a17663cSThomas Veerman	 with_valgrind=yes
49454a17663cSThomas Veermanelse
49464a17663cSThomas Veerman  with_valgrind=
49474a17663cSThomas Veermanfi;
4948*0a6a1f1dSLionel Sambucecho "$as_me:4948: result: ${with_valgrind:-no}" >&5
49494a17663cSThomas Veermanecho "${ECHO_T}${with_valgrind:-no}" >&6
49504a17663cSThomas Veerman
49514a17663cSThomas Veermancase .$with_cflags in #(vi
49524a17663cSThomas Veerman.*-g*)
49534a17663cSThomas Veerman	case .$CFLAGS in #(vi
49544a17663cSThomas Veerman	.*-g*) #(vi
49554a17663cSThomas Veerman		;;
49564a17663cSThomas Veerman	*)
49574a17663cSThomas Veerman
49584a17663cSThomas Veermancf_fix_cppflags=no
49594a17663cSThomas Veermancf_new_cflags=
49604a17663cSThomas Veermancf_new_cppflags=
49614a17663cSThomas Veermancf_new_extra_cppflags=
49624a17663cSThomas Veerman
49634a17663cSThomas Veermanfor cf_add_cflags in -g
49644a17663cSThomas Veermando
49654a17663cSThomas Veermancase $cf_fix_cppflags in
49664a17663cSThomas Veermanno)
49674a17663cSThomas Veerman	case $cf_add_cflags in #(vi
49684a17663cSThomas Veerman	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
49694a17663cSThomas Veerman		case $cf_add_cflags in
49704a17663cSThomas Veerman		-D*)
49714a17663cSThomas Veerman			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
49724a17663cSThomas Veerman
4973*0a6a1f1dSLionel Sambuc			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
49744a17663cSThomas Veerman				&& test -z "${cf_tst_cflags}" \
49754a17663cSThomas Veerman				&& cf_fix_cppflags=yes
49764a17663cSThomas Veerman
49774a17663cSThomas Veerman			if test $cf_fix_cppflags = yes ; then
49784a17663cSThomas Veerman				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
49794a17663cSThomas Veerman				continue
49804a17663cSThomas Veerman			elif test "${cf_tst_cflags}" = "\"'" ; then
49814a17663cSThomas Veerman				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
49824a17663cSThomas Veerman				continue
49834a17663cSThomas Veerman			fi
49844a17663cSThomas Veerman			;;
49854a17663cSThomas Veerman		esac
49864a17663cSThomas Veerman		case "$CPPFLAGS" in
49874a17663cSThomas Veerman		*$cf_add_cflags) #(vi
49884a17663cSThomas Veerman			;;
49894a17663cSThomas Veerman		*) #(vi
49904a17663cSThomas Veerman			case $cf_add_cflags in #(vi
49914a17663cSThomas Veerman			-D*)
49924a17663cSThomas Veerman				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
49934a17663cSThomas Veerman
49944a17663cSThomas VeermanCPPFLAGS=`echo "$CPPFLAGS" | \
49954a17663cSThomas Veerman	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
49964a17663cSThomas Veerman		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
49974a17663cSThomas Veerman
49984a17663cSThomas Veerman				;;
49994a17663cSThomas Veerman			esac
50004a17663cSThomas Veerman			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
50014a17663cSThomas Veerman			;;
50024a17663cSThomas Veerman		esac
50034a17663cSThomas Veerman		;;
50044a17663cSThomas Veerman	*)
50054a17663cSThomas Veerman		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
50064a17663cSThomas Veerman		;;
50074a17663cSThomas Veerman	esac
50084a17663cSThomas Veerman	;;
50094a17663cSThomas Veermanyes)
50104a17663cSThomas Veerman	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
50114a17663cSThomas Veerman
50124a17663cSThomas Veerman	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
50134a17663cSThomas Veerman
5014*0a6a1f1dSLionel Sambuc	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
50154a17663cSThomas Veerman		&& test -z "${cf_tst_cflags}" \
50164a17663cSThomas Veerman		&& cf_fix_cppflags=no
50174a17663cSThomas Veerman	;;
50184a17663cSThomas Veermanesac
50194a17663cSThomas Veermandone
50204a17663cSThomas Veerman
50214a17663cSThomas Veermanif test -n "$cf_new_cflags" ; then
50224a17663cSThomas Veerman
50234a17663cSThomas Veerman	CFLAGS="$CFLAGS $cf_new_cflags"
50244a17663cSThomas Veermanfi
50254a17663cSThomas Veerman
50264a17663cSThomas Veermanif test -n "$cf_new_cppflags" ; then
50274a17663cSThomas Veerman
50284a17663cSThomas Veerman	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
50294a17663cSThomas Veermanfi
50304a17663cSThomas Veerman
50314a17663cSThomas Veermanif test -n "$cf_new_extra_cppflags" ; then
50324a17663cSThomas Veerman
50334a17663cSThomas Veerman	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
50344a17663cSThomas Veermanfi
50354a17663cSThomas Veerman
50364a17663cSThomas Veerman		;;
50374a17663cSThomas Veerman	esac
50384a17663cSThomas Veerman	;;
50394a17663cSThomas Veermanesac
50404a17663cSThomas Veerman
5041*0a6a1f1dSLionel Sambucecho "$as_me:5041: checking if you want to perform memory-leak testing" >&5
50424a17663cSThomas Veermanecho $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
50434a17663cSThomas Veerman
50444a17663cSThomas Veerman# Check whether --enable-leaks or --disable-leaks was given.
50454a17663cSThomas Veermanif test "${enable_leaks+set}" = set; then
50464a17663cSThomas Veerman  enableval="$enable_leaks"
50474a17663cSThomas Veerman  if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
50484a17663cSThomas Veermanelse
50494a17663cSThomas Veerman  : ${with_no_leaks:=no}
50504a17663cSThomas Veermanfi;
5051*0a6a1f1dSLionel Sambucecho "$as_me:5051: result: $with_no_leaks" >&5
50524a17663cSThomas Veermanecho "${ECHO_T}$with_no_leaks" >&6
50534a17663cSThomas Veerman
50544a17663cSThomas Veermanif test "$with_no_leaks" = yes ; then
505584d9c625SLionel Sambuc
50564a17663cSThomas Veermancat >>confdefs.h <<\EOF
50574a17663cSThomas Veerman#define NO_LEAKS 1
50584a17663cSThomas VeermanEOF
50594a17663cSThomas Veerman
50604a17663cSThomas Veermancat >>confdefs.h <<\EOF
50614a17663cSThomas Veerman#define YY_NO_LEAKS 1
50624a17663cSThomas VeermanEOF
50634a17663cSThomas Veerman
50644a17663cSThomas Veermanfi
50654a17663cSThomas Veerman
5066*0a6a1f1dSLionel Sambucecho "$as_me:5066: checking for ANSI C header files" >&5
5067*0a6a1f1dSLionel Sambucecho $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5068*0a6a1f1dSLionel Sambucif test "${ac_cv_header_stdc+set}" = set; then
5069*0a6a1f1dSLionel Sambuc  echo $ECHO_N "(cached) $ECHO_C" >&6
5070*0a6a1f1dSLionel Sambucelse
5071*0a6a1f1dSLionel Sambuc  cat >conftest.$ac_ext <<_ACEOF
5072*0a6a1f1dSLionel Sambuc#line 5072 "configure"
5073*0a6a1f1dSLionel Sambuc#include "confdefs.h"
5074*0a6a1f1dSLionel Sambuc#include <stdlib.h>
5075*0a6a1f1dSLionel Sambuc#include <stdarg.h>
5076*0a6a1f1dSLionel Sambuc#include <string.h>
5077*0a6a1f1dSLionel Sambuc#include <float.h>
5078*0a6a1f1dSLionel Sambuc
5079*0a6a1f1dSLionel Sambuc_ACEOF
5080*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:5080: \"$ac_cpp conftest.$ac_ext\"") >&5
5081*0a6a1f1dSLionel Sambuc  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5082*0a6a1f1dSLionel Sambuc  ac_status=$?
5083*0a6a1f1dSLionel Sambuc  egrep -v '^ *\+' conftest.er1 >conftest.err
5084*0a6a1f1dSLionel Sambuc  rm -f conftest.er1
5085*0a6a1f1dSLionel Sambuc  cat conftest.err >&5
5086*0a6a1f1dSLionel Sambuc  echo "$as_me:5086: \$? = $ac_status" >&5
5087*0a6a1f1dSLionel Sambuc  (exit $ac_status); } >/dev/null; then
5088*0a6a1f1dSLionel Sambuc  if test -s conftest.err; then
5089*0a6a1f1dSLionel Sambuc    ac_cpp_err=$ac_c_preproc_warn_flag
5090*0a6a1f1dSLionel Sambuc  else
5091*0a6a1f1dSLionel Sambuc    ac_cpp_err=
5092*0a6a1f1dSLionel Sambuc  fi
5093*0a6a1f1dSLionel Sambucelse
5094*0a6a1f1dSLionel Sambuc  ac_cpp_err=yes
5095*0a6a1f1dSLionel Sambucfi
5096*0a6a1f1dSLionel Sambucif test -z "$ac_cpp_err"; then
5097*0a6a1f1dSLionel Sambuc  ac_cv_header_stdc=yes
5098*0a6a1f1dSLionel Sambucelse
5099*0a6a1f1dSLionel Sambuc  echo "$as_me: failed program was:" >&5
5100*0a6a1f1dSLionel Sambuc  cat conftest.$ac_ext >&5
5101*0a6a1f1dSLionel Sambuc  ac_cv_header_stdc=no
5102*0a6a1f1dSLionel Sambucfi
5103*0a6a1f1dSLionel Sambucrm -f conftest.err conftest.$ac_ext
5104*0a6a1f1dSLionel Sambuc
5105*0a6a1f1dSLionel Sambucif test $ac_cv_header_stdc = yes; then
5106*0a6a1f1dSLionel Sambuc  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5107*0a6a1f1dSLionel Sambuc  cat >conftest.$ac_ext <<_ACEOF
5108*0a6a1f1dSLionel Sambuc#line 5108 "configure"
5109*0a6a1f1dSLionel Sambuc#include "confdefs.h"
5110*0a6a1f1dSLionel Sambuc#include <string.h>
5111*0a6a1f1dSLionel Sambuc
5112*0a6a1f1dSLionel Sambuc_ACEOF
5113*0a6a1f1dSLionel Sambucif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5114*0a6a1f1dSLionel Sambuc  egrep "memchr" >/dev/null 2>&1; then
5115*0a6a1f1dSLionel Sambuc  :
5116*0a6a1f1dSLionel Sambucelse
5117*0a6a1f1dSLionel Sambuc  ac_cv_header_stdc=no
5118*0a6a1f1dSLionel Sambucfi
5119*0a6a1f1dSLionel Sambucrm -rf conftest*
5120*0a6a1f1dSLionel Sambuc
5121*0a6a1f1dSLionel Sambucfi
5122*0a6a1f1dSLionel Sambuc
5123*0a6a1f1dSLionel Sambucif test $ac_cv_header_stdc = yes; then
5124*0a6a1f1dSLionel Sambuc  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5125*0a6a1f1dSLionel Sambuc  cat >conftest.$ac_ext <<_ACEOF
5126*0a6a1f1dSLionel Sambuc#line 5126 "configure"
5127*0a6a1f1dSLionel Sambuc#include "confdefs.h"
5128*0a6a1f1dSLionel Sambuc#include <stdlib.h>
5129*0a6a1f1dSLionel Sambuc
5130*0a6a1f1dSLionel Sambuc_ACEOF
5131*0a6a1f1dSLionel Sambucif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5132*0a6a1f1dSLionel Sambuc  egrep "free" >/dev/null 2>&1; then
5133*0a6a1f1dSLionel Sambuc  :
5134*0a6a1f1dSLionel Sambucelse
5135*0a6a1f1dSLionel Sambuc  ac_cv_header_stdc=no
5136*0a6a1f1dSLionel Sambucfi
5137*0a6a1f1dSLionel Sambucrm -rf conftest*
5138*0a6a1f1dSLionel Sambuc
5139*0a6a1f1dSLionel Sambucfi
5140*0a6a1f1dSLionel Sambuc
5141*0a6a1f1dSLionel Sambucif test $ac_cv_header_stdc = yes; then
5142*0a6a1f1dSLionel Sambuc  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5143*0a6a1f1dSLionel Sambuc  if test "$cross_compiling" = yes; then
5144*0a6a1f1dSLionel Sambuc  :
5145*0a6a1f1dSLionel Sambucelse
5146*0a6a1f1dSLionel Sambuc  cat >conftest.$ac_ext <<_ACEOF
5147*0a6a1f1dSLionel Sambuc#line 5147 "configure"
5148*0a6a1f1dSLionel Sambuc#include "confdefs.h"
5149*0a6a1f1dSLionel Sambuc#include <ctype.h>
5150*0a6a1f1dSLionel Sambuc#if ((' ' & 0x0FF) == 0x020)
5151*0a6a1f1dSLionel Sambuc# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5152*0a6a1f1dSLionel Sambuc# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5153*0a6a1f1dSLionel Sambuc#else
5154*0a6a1f1dSLionel Sambuc# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5155*0a6a1f1dSLionel Sambuc                     || ('j' <= (c) && (c) <= 'r') \
5156*0a6a1f1dSLionel Sambuc                     || ('s' <= (c) && (c) <= 'z'))
5157*0a6a1f1dSLionel Sambuc# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5158*0a6a1f1dSLionel Sambuc#endif
5159*0a6a1f1dSLionel Sambuc
5160*0a6a1f1dSLionel Sambuc#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5161*0a6a1f1dSLionel Sambucint
5162*0a6a1f1dSLionel Sambucmain ()
5163*0a6a1f1dSLionel Sambuc{
5164*0a6a1f1dSLionel Sambuc  int i;
5165*0a6a1f1dSLionel Sambuc  for (i = 0; i < 256; i++)
5166*0a6a1f1dSLionel Sambuc    if (XOR (islower (i), ISLOWER (i))
5167*0a6a1f1dSLionel Sambuc        || toupper (i) != TOUPPER (i))
5168*0a6a1f1dSLionel Sambuc      $ac_main_return(2);
5169*0a6a1f1dSLionel Sambuc  $ac_main_return (0);
5170*0a6a1f1dSLionel Sambuc}
5171*0a6a1f1dSLionel Sambuc_ACEOF
5172*0a6a1f1dSLionel Sambucrm -f conftest$ac_exeext
5173*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:5173: \"$ac_link\"") >&5
5174*0a6a1f1dSLionel Sambuc  (eval $ac_link) 2>&5
5175*0a6a1f1dSLionel Sambuc  ac_status=$?
5176*0a6a1f1dSLionel Sambuc  echo "$as_me:5176: \$? = $ac_status" >&5
5177*0a6a1f1dSLionel Sambuc  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5178*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:5178: \"$ac_try\"") >&5
5179*0a6a1f1dSLionel Sambuc  (eval $ac_try) 2>&5
5180*0a6a1f1dSLionel Sambuc  ac_status=$?
5181*0a6a1f1dSLionel Sambuc  echo "$as_me:5181: \$? = $ac_status" >&5
5182*0a6a1f1dSLionel Sambuc  (exit $ac_status); }; }; then
5183*0a6a1f1dSLionel Sambuc  :
5184*0a6a1f1dSLionel Sambucelse
5185*0a6a1f1dSLionel Sambuc  echo "$as_me: program exited with status $ac_status" >&5
5186*0a6a1f1dSLionel Sambucecho "$as_me: failed program was:" >&5
5187*0a6a1f1dSLionel Sambuccat conftest.$ac_ext >&5
5188*0a6a1f1dSLionel Sambucac_cv_header_stdc=no
5189*0a6a1f1dSLionel Sambucfi
5190*0a6a1f1dSLionel Sambucrm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5191*0a6a1f1dSLionel Sambucfi
5192*0a6a1f1dSLionel Sambucfi
5193*0a6a1f1dSLionel Sambucfi
5194*0a6a1f1dSLionel Sambucecho "$as_me:5194: result: $ac_cv_header_stdc" >&5
5195*0a6a1f1dSLionel Sambucecho "${ECHO_T}$ac_cv_header_stdc" >&6
5196*0a6a1f1dSLionel Sambucif test $ac_cv_header_stdc = yes; then
5197*0a6a1f1dSLionel Sambuc
5198*0a6a1f1dSLionel Sambuccat >>confdefs.h <<\EOF
5199*0a6a1f1dSLionel Sambuc#define STDC_HEADERS 1
5200*0a6a1f1dSLionel SambucEOF
5201*0a6a1f1dSLionel Sambuc
5202*0a6a1f1dSLionel Sambucfi
5203*0a6a1f1dSLionel Sambuc
5204*0a6a1f1dSLionel Sambuc# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5205*0a6a1f1dSLionel Sambuc
5206*0a6a1f1dSLionel Sambucfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5207*0a6a1f1dSLionel Sambuc                  inttypes.h stdint.h unistd.h
5208*0a6a1f1dSLionel Sambucdo
5209*0a6a1f1dSLionel Sambucas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5210*0a6a1f1dSLionel Sambucecho "$as_me:5210: checking for $ac_header" >&5
5211*0a6a1f1dSLionel Sambucecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5212*0a6a1f1dSLionel Sambucif eval "test \"\${$as_ac_Header+set}\" = set"; then
5213*0a6a1f1dSLionel Sambuc  echo $ECHO_N "(cached) $ECHO_C" >&6
5214*0a6a1f1dSLionel Sambucelse
5215*0a6a1f1dSLionel Sambuc  cat >conftest.$ac_ext <<_ACEOF
5216*0a6a1f1dSLionel Sambuc#line 5216 "configure"
5217*0a6a1f1dSLionel Sambuc#include "confdefs.h"
5218*0a6a1f1dSLionel Sambuc$ac_includes_default
5219*0a6a1f1dSLionel Sambuc#include <$ac_header>
5220*0a6a1f1dSLionel Sambuc_ACEOF
5221*0a6a1f1dSLionel Sambucrm -f conftest.$ac_objext
5222*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:5222: \"$ac_compile\"") >&5
5223*0a6a1f1dSLionel Sambuc  (eval $ac_compile) 2>&5
5224*0a6a1f1dSLionel Sambuc  ac_status=$?
5225*0a6a1f1dSLionel Sambuc  echo "$as_me:5225: \$? = $ac_status" >&5
5226*0a6a1f1dSLionel Sambuc  (exit $ac_status); } &&
5227*0a6a1f1dSLionel Sambuc         { ac_try='test -s conftest.$ac_objext'
5228*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:5228: \"$ac_try\"") >&5
5229*0a6a1f1dSLionel Sambuc  (eval $ac_try) 2>&5
5230*0a6a1f1dSLionel Sambuc  ac_status=$?
5231*0a6a1f1dSLionel Sambuc  echo "$as_me:5231: \$? = $ac_status" >&5
5232*0a6a1f1dSLionel Sambuc  (exit $ac_status); }; }; then
5233*0a6a1f1dSLionel Sambuc  eval "$as_ac_Header=yes"
5234*0a6a1f1dSLionel Sambucelse
5235*0a6a1f1dSLionel Sambuc  echo "$as_me: failed program was:" >&5
5236*0a6a1f1dSLionel Sambuccat conftest.$ac_ext >&5
5237*0a6a1f1dSLionel Sambuceval "$as_ac_Header=no"
5238*0a6a1f1dSLionel Sambucfi
5239*0a6a1f1dSLionel Sambucrm -f conftest.$ac_objext conftest.$ac_ext
5240*0a6a1f1dSLionel Sambucfi
5241*0a6a1f1dSLionel Sambucecho "$as_me:5241: result: `eval echo '${'$as_ac_Header'}'`" >&5
5242*0a6a1f1dSLionel Sambucecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5243*0a6a1f1dSLionel Sambucif test `eval echo '${'$as_ac_Header'}'` = yes; then
5244*0a6a1f1dSLionel Sambuc  cat >>confdefs.h <<EOF
5245*0a6a1f1dSLionel Sambuc#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5246*0a6a1f1dSLionel SambucEOF
5247*0a6a1f1dSLionel Sambuc
5248*0a6a1f1dSLionel Sambucfi
5249*0a6a1f1dSLionel Sambucdone
5250*0a6a1f1dSLionel Sambuc
5251*0a6a1f1dSLionel Sambucecho "$as_me:5251: checking for mode_t" >&5
5252*0a6a1f1dSLionel Sambucecho $ECHO_N "checking for mode_t... $ECHO_C" >&6
5253*0a6a1f1dSLionel Sambucif test "${ac_cv_type_mode_t+set}" = set; then
5254*0a6a1f1dSLionel Sambuc  echo $ECHO_N "(cached) $ECHO_C" >&6
5255*0a6a1f1dSLionel Sambucelse
5256*0a6a1f1dSLionel Sambuc  cat >conftest.$ac_ext <<_ACEOF
5257*0a6a1f1dSLionel Sambuc#line 5257 "configure"
5258*0a6a1f1dSLionel Sambuc#include "confdefs.h"
5259*0a6a1f1dSLionel Sambuc$ac_includes_default
5260*0a6a1f1dSLionel Sambucint
5261*0a6a1f1dSLionel Sambucmain ()
5262*0a6a1f1dSLionel Sambuc{
5263*0a6a1f1dSLionel Sambucif ((mode_t *) 0)
5264*0a6a1f1dSLionel Sambuc  return 0;
5265*0a6a1f1dSLionel Sambucif (sizeof (mode_t))
5266*0a6a1f1dSLionel Sambuc  return 0;
5267*0a6a1f1dSLionel Sambuc  ;
5268*0a6a1f1dSLionel Sambuc  return 0;
5269*0a6a1f1dSLionel Sambuc}
5270*0a6a1f1dSLionel Sambuc_ACEOF
5271*0a6a1f1dSLionel Sambucrm -f conftest.$ac_objext
5272*0a6a1f1dSLionel Sambucif { (eval echo "$as_me:5272: \"$ac_compile\"") >&5
5273*0a6a1f1dSLionel Sambuc  (eval $ac_compile) 2>&5
5274*0a6a1f1dSLionel Sambuc  ac_status=$?
5275*0a6a1f1dSLionel Sambuc  echo "$as_me:5275: \$? = $ac_status" >&5
5276*0a6a1f1dSLionel Sambuc  (exit $ac_status); } &&
5277*0a6a1f1dSLionel Sambuc         { ac_try='test -s conftest.$ac_objext'
5278*0a6a1f1dSLionel Sambuc  { (eval echo "$as_me:5278: \"$ac_try\"") >&5
5279*0a6a1f1dSLionel Sambuc  (eval $ac_try) 2>&5
5280*0a6a1f1dSLionel Sambuc  ac_status=$?
5281*0a6a1f1dSLionel Sambuc  echo "$as_me:5281: \$? = $ac_status" >&5
5282*0a6a1f1dSLionel Sambuc  (exit $ac_status); }; }; then
5283*0a6a1f1dSLionel Sambuc  ac_cv_type_mode_t=yes
5284*0a6a1f1dSLionel Sambucelse
5285*0a6a1f1dSLionel Sambuc  echo "$as_me: failed program was:" >&5
5286*0a6a1f1dSLionel Sambuccat conftest.$ac_ext >&5
5287*0a6a1f1dSLionel Sambucac_cv_type_mode_t=no
5288*0a6a1f1dSLionel Sambucfi
5289*0a6a1f1dSLionel Sambucrm -f conftest.$ac_objext conftest.$ac_ext
5290*0a6a1f1dSLionel Sambucfi
5291*0a6a1f1dSLionel Sambucecho "$as_me:5291: result: $ac_cv_type_mode_t" >&5
5292*0a6a1f1dSLionel Sambucecho "${ECHO_T}$ac_cv_type_mode_t" >&6
5293*0a6a1f1dSLionel Sambucif test $ac_cv_type_mode_t = yes; then
5294*0a6a1f1dSLionel Sambuc  :
5295*0a6a1f1dSLionel Sambucelse
5296*0a6a1f1dSLionel Sambuc
5297*0a6a1f1dSLionel Sambuccat >>confdefs.h <<EOF
5298*0a6a1f1dSLionel Sambuc#define mode_t int
5299*0a6a1f1dSLionel SambucEOF
5300*0a6a1f1dSLionel Sambuc
5301*0a6a1f1dSLionel Sambucfi
5302*0a6a1f1dSLionel Sambuc
53034a17663cSThomas Veerman###	output makefile
53044a17663cSThomas Veermanac_config_files="$ac_config_files makefile"
53054a17663cSThomas Veermancat >confcache <<\_ACEOF
53064a17663cSThomas Veerman# This file is a shell script that caches the results of configure
53074a17663cSThomas Veerman# tests run on this system so they can be shared between configure
53084a17663cSThomas Veerman# scripts and configure runs, see configure's option --config-cache.
53094a17663cSThomas Veerman# It is not useful on other systems.  If it contains results you don't
53104a17663cSThomas Veerman# want to keep, you may remove or edit it.
53114a17663cSThomas Veerman#
53124a17663cSThomas Veerman# config.status only pays attention to the cache file if you give it
53134a17663cSThomas Veerman# the --recheck option to rerun configure.
53144a17663cSThomas Veerman#
53154a17663cSThomas Veerman# `ac_cv_env_foo' variables (set or unset) will be overriden when
53164a17663cSThomas Veerman# loading this file, other *unset* `ac_cv_foo' will be assigned the
53174a17663cSThomas Veerman# following values.
53184a17663cSThomas Veerman
53194a17663cSThomas Veerman_ACEOF
53204a17663cSThomas Veerman
53214a17663cSThomas Veerman# The following way of writing the cache mishandles newlines in values,
53224a17663cSThomas Veerman# but we know of no workaround that is simple, portable, and efficient.
53234a17663cSThomas Veerman# So, don't put newlines in cache variables' values.
53244a17663cSThomas Veerman# Ultrix sh set writes to stderr and can't be redirected directly,
53254a17663cSThomas Veerman# and sets the high bit in the cache file unless we assign to the vars.
53264a17663cSThomas Veerman{
53274a17663cSThomas Veerman  (set) 2>&1 |
53284a17663cSThomas Veerman    case `(ac_space=' '; set | grep ac_space) 2>&1` in
53294a17663cSThomas Veerman    *ac_space=\ *)
53304a17663cSThomas Veerman      # `set' does not quote correctly, so add quotes (double-quote
53314a17663cSThomas Veerman      # substitution turns \\\\ into \\, and sed turns \\ into \).
53324a17663cSThomas Veerman      sed -n \
53334a17663cSThomas Veerman        "s/'/'\\\\''/g;
53344a17663cSThomas Veerman    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
53354a17663cSThomas Veerman      ;;
53364a17663cSThomas Veerman    *)
53374a17663cSThomas Veerman      # `set' quotes correctly as required by POSIX, so do not add quotes.
53384a17663cSThomas Veerman      sed -n \
53394a17663cSThomas Veerman        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
53404a17663cSThomas Veerman      ;;
53414a17663cSThomas Veerman    esac;
53424a17663cSThomas Veerman} |
53434a17663cSThomas Veerman  sed '
53444a17663cSThomas Veerman     t clear
53454a17663cSThomas Veerman     : clear
53464a17663cSThomas Veerman     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
53474a17663cSThomas Veerman     t end
53484a17663cSThomas Veerman     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
53494a17663cSThomas Veerman     : end' >>confcache
53504a17663cSThomas Veermanif cmp -s $cache_file confcache; then :; else
53514a17663cSThomas Veerman  if test -w $cache_file; then
53524a17663cSThomas Veerman    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
53534a17663cSThomas Veerman    cat confcache >$cache_file
53544a17663cSThomas Veerman  else
53554a17663cSThomas Veerman    echo "not updating unwritable cache $cache_file"
53564a17663cSThomas Veerman  fi
53574a17663cSThomas Veermanfi
53584a17663cSThomas Veermanrm -f confcache
53594a17663cSThomas Veerman
53604a17663cSThomas Veermantest "x$prefix" = xNONE && prefix=$ac_default_prefix
53614a17663cSThomas Veerman# Let make expand exec_prefix.
53624a17663cSThomas Veermantest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
53634a17663cSThomas Veerman
53644a17663cSThomas Veerman# VPATH may cause trouble with some makes, so we remove $(srcdir),
53654a17663cSThomas Veerman# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
53664a17663cSThomas Veerman# trailing colons and then remove the whole line if VPATH becomes empty
53674a17663cSThomas Veerman# (actually we leave an empty line to preserve line numbers).
53684a17663cSThomas Veermanif test "x$srcdir" = x.; then
53694a17663cSThomas Veerman  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
53704a17663cSThomas Veermans/:*\$(srcdir):*/:/;
53714a17663cSThomas Veermans/:*\${srcdir}:*/:/;
53724a17663cSThomas Veermans/:*@srcdir@:*/:/;
53734a17663cSThomas Veermans/^\([^=]*=[ 	]*\):*/\1/;
53744a17663cSThomas Veermans/:*$//;
53754a17663cSThomas Veermans/^[^=]*=[ 	]*$//;
53764a17663cSThomas Veerman}'
53774a17663cSThomas Veermanfi
53784a17663cSThomas Veerman
53794a17663cSThomas VeermanDEFS=-DHAVE_CONFIG_H
53804a17663cSThomas Veerman
53814a17663cSThomas Veerman: ${CONFIG_STATUS=./config.status}
53824a17663cSThomas Veermanac_clean_files_save=$ac_clean_files
53834a17663cSThomas Veermanac_clean_files="$ac_clean_files $CONFIG_STATUS"
5384*0a6a1f1dSLionel Sambuc{ echo "$as_me:5384: creating $CONFIG_STATUS" >&5
53854a17663cSThomas Veermanecho "$as_me: creating $CONFIG_STATUS" >&6;}
53864a17663cSThomas Veermancat >$CONFIG_STATUS <<_ACEOF
53874a17663cSThomas Veerman#! $SHELL
53884a17663cSThomas Veerman# Generated automatically by configure.
53894a17663cSThomas Veerman# Run this file to recreate the current configuration.
53904a17663cSThomas Veerman# Compiler output produced by configure, useful for debugging
53914a17663cSThomas Veerman# configure, is in config.log if it exists.
53924a17663cSThomas Veerman
53934a17663cSThomas Veermandebug=false
53944a17663cSThomas VeermanSHELL=\${CONFIG_SHELL-$SHELL}
53954a17663cSThomas Veermanac_cs_invocation="\$0 \$@"
53964a17663cSThomas Veerman
53974a17663cSThomas Veerman_ACEOF
53984a17663cSThomas Veerman
53994a17663cSThomas Veermancat >>$CONFIG_STATUS <<\_ACEOF
54004a17663cSThomas Veerman# Be Bourne compatible
54014a17663cSThomas Veermanif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
54024a17663cSThomas Veerman  emulate sh
54034a17663cSThomas Veerman  NULLCMD=:
54044a17663cSThomas Veermanelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
54054a17663cSThomas Veerman  set -o posix
54064a17663cSThomas Veermanfi
54074a17663cSThomas Veerman
54084a17663cSThomas Veerman# Name of the executable.
54094a17663cSThomas Veermanas_me=`echo "$0" |sed 's,.*[\\/],,'`
54104a17663cSThomas Veerman
54114a17663cSThomas Veermanif expr a : '\(a\)' >/dev/null 2>&1; then
54124a17663cSThomas Veerman  as_expr=expr
54134a17663cSThomas Veermanelse
54144a17663cSThomas Veerman  as_expr=false
54154a17663cSThomas Veermanfi
54164a17663cSThomas Veerman
54174a17663cSThomas Veermanrm -f conf$$ conf$$.exe conf$$.file
54184a17663cSThomas Veermanecho >conf$$.file
54194a17663cSThomas Veermanif ln -s conf$$.file conf$$ 2>/dev/null; then
54204a17663cSThomas Veerman  # We could just check for DJGPP; but this test a) works b) is more generic
54214a17663cSThomas Veerman  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
54224a17663cSThomas Veerman  if test -f conf$$.exe; then
54234a17663cSThomas Veerman    # Don't use ln at all; we don't have any links
54244a17663cSThomas Veerman    as_ln_s='cp -p'
54254a17663cSThomas Veerman  else
54264a17663cSThomas Veerman    as_ln_s='ln -s'
54274a17663cSThomas Veerman  fi
54284a17663cSThomas Veermanelif ln conf$$.file conf$$ 2>/dev/null; then
54294a17663cSThomas Veerman  as_ln_s=ln
54304a17663cSThomas Veermanelse
54314a17663cSThomas Veerman  as_ln_s='cp -p'
54324a17663cSThomas Veermanfi
54334a17663cSThomas Veermanrm -f conf$$ conf$$.exe conf$$.file
54344a17663cSThomas Veerman
54354a17663cSThomas Veermanas_executable_p="test -f"
54364a17663cSThomas Veerman
54374a17663cSThomas Veerman# Support unset when possible.
54384a17663cSThomas Veermanif (FOO=FOO; unset FOO) >/dev/null 2>&1; then
54394a17663cSThomas Veerman  as_unset=unset
54404a17663cSThomas Veermanelse
54414a17663cSThomas Veerman  as_unset=false
54424a17663cSThomas Veermanfi
54434a17663cSThomas Veerman
54444a17663cSThomas Veerman# NLS nuisances.
54454a17663cSThomas Veerman$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
54464a17663cSThomas Veerman$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
54474a17663cSThomas Veerman$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
54484a17663cSThomas Veerman$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
54494a17663cSThomas Veerman$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
54504a17663cSThomas Veerman$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
54514a17663cSThomas Veerman$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
54524a17663cSThomas Veerman$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
54534a17663cSThomas Veerman
54544a17663cSThomas Veerman# IFS
54554a17663cSThomas Veerman# We need space, tab and new line, in precisely that order.
54564a17663cSThomas Veermanas_nl='
54574a17663cSThomas Veerman'
54584a17663cSThomas VeermanIFS=" 	$as_nl"
54594a17663cSThomas Veerman
54604a17663cSThomas Veerman# CDPATH.
54614a17663cSThomas Veerman$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
54624a17663cSThomas Veerman
54634a17663cSThomas Veermanexec 6>&1
54644a17663cSThomas Veerman
54654a17663cSThomas Veerman_ACEOF
54664a17663cSThomas Veerman
54674a17663cSThomas Veerman# Files that config.status was made for.
54684a17663cSThomas Veermanif test -n "$ac_config_files"; then
54694a17663cSThomas Veerman  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
54704a17663cSThomas Veermanfi
54714a17663cSThomas Veerman
54724a17663cSThomas Veermanif test -n "$ac_config_headers"; then
54734a17663cSThomas Veerman  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
54744a17663cSThomas Veermanfi
54754a17663cSThomas Veerman
54764a17663cSThomas Veermanif test -n "$ac_config_links"; then
54774a17663cSThomas Veerman  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
54784a17663cSThomas Veermanfi
54794a17663cSThomas Veerman
54804a17663cSThomas Veermanif test -n "$ac_config_commands"; then
54814a17663cSThomas Veerman  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
54824a17663cSThomas Veermanfi
54834a17663cSThomas Veerman
54844a17663cSThomas Veermancat >>$CONFIG_STATUS <<\EOF
54854a17663cSThomas Veerman
54864a17663cSThomas Veermanac_cs_usage="\
54874a17663cSThomas Veerman\`$as_me' instantiates files from templates according to the
54884a17663cSThomas Veermancurrent configuration.
54894a17663cSThomas Veerman
54904a17663cSThomas VeermanUsage: $0 [OPTIONS] [FILE]...
54914a17663cSThomas Veerman
54924a17663cSThomas Veerman  -h, --help       print this help, then exit
54934a17663cSThomas Veerman  -V, --version    print version number, then exit
54944a17663cSThomas Veerman  -d, --debug      don't remove temporary files
54954a17663cSThomas Veerman      --recheck    update $as_me by reconfiguring in the same conditions
54964a17663cSThomas Veerman  --file=FILE[:TEMPLATE]
54974a17663cSThomas Veerman                   instantiate the configuration file FILE
54984a17663cSThomas Veerman  --header=FILE[:TEMPLATE]
54994a17663cSThomas Veerman                   instantiate the configuration header FILE
55004a17663cSThomas Veerman
55014a17663cSThomas VeermanConfiguration files:
55024a17663cSThomas Veerman$config_files
55034a17663cSThomas Veerman
55044a17663cSThomas VeermanConfiguration headers:
55054a17663cSThomas Veerman$config_headers
55064a17663cSThomas Veerman
55074a17663cSThomas VeermanReport bugs to <dickey@invisible-island.net>."
55084a17663cSThomas VeermanEOF
55094a17663cSThomas Veerman
55104a17663cSThomas Veermancat >>$CONFIG_STATUS <<EOF
55114a17663cSThomas Veermanac_cs_version="\\
55124a17663cSThomas Veermanconfig.status
551384d9c625SLionel Sambucconfigured by $0, generated by GNU Autoconf 2.52.20121002,
55144a17663cSThomas Veerman  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
55154a17663cSThomas Veerman
55164a17663cSThomas VeermanCopyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
55174a17663cSThomas VeermanFree Software Foundation, Inc.
55184a17663cSThomas VeermanThis config.status script is free software; the Free Software Foundation
55194a17663cSThomas Veermangives unlimited permission to copy, distribute and modify it."
55204a17663cSThomas Veermansrcdir=$srcdir
55214a17663cSThomas VeermanINSTALL="$INSTALL"
55224a17663cSThomas VeermanEOF
55234a17663cSThomas Veerman
55244a17663cSThomas Veermancat >>$CONFIG_STATUS <<\EOF
55254a17663cSThomas Veerman# If no file are specified by the user, then we need to provide default
55264a17663cSThomas Veerman# value.  By we need to know if files were specified by the user.
55274a17663cSThomas Veermanac_need_defaults=:
55284a17663cSThomas Veermanwhile test $# != 0
55294a17663cSThomas Veermando
55304a17663cSThomas Veerman  case $1 in
55314a17663cSThomas Veerman  --*=*)
55324a17663cSThomas Veerman    ac_option=`expr "x$1" : 'x\([^=]*\)='`
55334a17663cSThomas Veerman    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
55344a17663cSThomas Veerman    shift
55354a17663cSThomas Veerman    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
55364a17663cSThomas Veerman    shift
55374a17663cSThomas Veerman    ;;
55384a17663cSThomas Veerman  -*);;
55394a17663cSThomas Veerman  *) # This is not an option, so the user has probably given explicit
55404a17663cSThomas Veerman     # arguments.
55414a17663cSThomas Veerman     ac_need_defaults=false;;
55424a17663cSThomas Veerman  esac
55434a17663cSThomas Veerman
55444a17663cSThomas Veerman  case $1 in
55454a17663cSThomas Veerman  # Handling of the options.
55464a17663cSThomas VeermanEOF
55474a17663cSThomas Veermancat >>$CONFIG_STATUS <<EOF
55484a17663cSThomas Veerman  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
55494a17663cSThomas Veerman    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
55504a17663cSThomas Veerman    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
55514a17663cSThomas VeermanEOF
55524a17663cSThomas Veermancat >>$CONFIG_STATUS <<\EOF
55534a17663cSThomas Veerman  --version | --vers* | -V )
55544a17663cSThomas Veerman    echo "$ac_cs_version"; exit 0 ;;
55554a17663cSThomas Veerman  --he | --h)
55564a17663cSThomas Veerman    # Conflict between --help and --header
5557*0a6a1f1dSLionel Sambuc    { { echo "$as_me:5557: error: ambiguous option: $1
55584a17663cSThomas VeermanTry \`$0 --help' for more information." >&5
55594a17663cSThomas Veermanecho "$as_me: error: ambiguous option: $1
55604a17663cSThomas VeermanTry \`$0 --help' for more information." >&2;}
55614a17663cSThomas Veerman   { (exit 1); exit 1; }; };;
55624a17663cSThomas Veerman  --help | --hel | -h )
55634a17663cSThomas Veerman    echo "$ac_cs_usage"; exit 0 ;;
55644a17663cSThomas Veerman  --debug | --d* | -d )
55654a17663cSThomas Veerman    debug=: ;;
55664a17663cSThomas Veerman  --file | --fil | --fi | --f )
55674a17663cSThomas Veerman    shift
55684a17663cSThomas Veerman    CONFIG_FILES="$CONFIG_FILES $1"
55694a17663cSThomas Veerman    ac_need_defaults=false;;
55704a17663cSThomas Veerman  --header | --heade | --head | --hea )
55714a17663cSThomas Veerman    shift
55724a17663cSThomas Veerman    CONFIG_HEADERS="$CONFIG_HEADERS $1"
55734a17663cSThomas Veerman    ac_need_defaults=false;;
55744a17663cSThomas Veerman
55754a17663cSThomas Veerman  # This is an error.
5576*0a6a1f1dSLionel Sambuc  -*) { { echo "$as_me:5576: error: unrecognized option: $1
55774a17663cSThomas VeermanTry \`$0 --help' for more information." >&5
55784a17663cSThomas Veermanecho "$as_me: error: unrecognized option: $1
55794a17663cSThomas VeermanTry \`$0 --help' for more information." >&2;}
55804a17663cSThomas Veerman   { (exit 1); exit 1; }; } ;;
55814a17663cSThomas Veerman
55824a17663cSThomas Veerman  *) ac_config_targets="$ac_config_targets $1" ;;
55834a17663cSThomas Veerman
55844a17663cSThomas Veerman  esac
55854a17663cSThomas Veerman  shift
55864a17663cSThomas Veermandone
55874a17663cSThomas Veerman
55884a17663cSThomas Veermanexec 5>>config.log
55894a17663cSThomas Veermancat >&5 << _ACEOF
55904a17663cSThomas Veerman
55914a17663cSThomas Veerman## ----------------------- ##
55924a17663cSThomas Veerman## Running config.status.  ##
55934a17663cSThomas Veerman## ----------------------- ##
55944a17663cSThomas Veerman
559584d9c625SLionel SambucThis file was extended by $as_me 2.52.20121002, executed with
55964a17663cSThomas Veerman  CONFIG_FILES    = $CONFIG_FILES
55974a17663cSThomas Veerman  CONFIG_HEADERS  = $CONFIG_HEADERS
55984a17663cSThomas Veerman  CONFIG_LINKS    = $CONFIG_LINKS
55994a17663cSThomas Veerman  CONFIG_COMMANDS = $CONFIG_COMMANDS
56004a17663cSThomas Veerman  > $ac_cs_invocation
56014a17663cSThomas Veermanon `(hostname || uname -n) 2>/dev/null | sed 1q`
56024a17663cSThomas Veerman
56034a17663cSThomas Veerman_ACEOF
56044a17663cSThomas VeermanEOF
56054a17663cSThomas Veerman
56064a17663cSThomas Veermancat >>$CONFIG_STATUS <<\EOF
56074a17663cSThomas Veermanfor ac_config_target in $ac_config_targets
56084a17663cSThomas Veermando
56094a17663cSThomas Veerman  case "$ac_config_target" in
56104a17663cSThomas Veerman  # Handling of arguments.
56114a17663cSThomas Veerman  "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;;
56124a17663cSThomas Veerman  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;;
5613*0a6a1f1dSLionel Sambuc  *) { { echo "$as_me:5613: error: invalid argument: $ac_config_target" >&5
56144a17663cSThomas Veermanecho "$as_me: error: invalid argument: $ac_config_target" >&2;}
56154a17663cSThomas Veerman   { (exit 1); exit 1; }; };;
56164a17663cSThomas Veerman  esac
56174a17663cSThomas Veermandone
56184a17663cSThomas Veerman
56194a17663cSThomas Veerman# If the user did not use the arguments to specify the items to instantiate,
56204a17663cSThomas Veerman# then the envvar interface is used.  Set only those that are not.
56214a17663cSThomas Veerman# We use the long form for the default assignment because of an extremely
56224a17663cSThomas Veerman# bizarre bug on SunOS 4.1.3.
56234a17663cSThomas Veermanif $ac_need_defaults; then
56244a17663cSThomas Veerman  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
56254a17663cSThomas Veerman  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
56264a17663cSThomas Veermanfi
56274a17663cSThomas Veerman
56284a17663cSThomas Veerman# Create a temporary directory, and hook for its removal unless debugging.
56294a17663cSThomas Veerman$debug ||
56304a17663cSThomas Veerman{
56314a17663cSThomas Veerman  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
56324a17663cSThomas Veerman  trap '{ (exit 1); exit 1; }' 1 2 13 15
56334a17663cSThomas Veerman}
56344a17663cSThomas Veerman
56354a17663cSThomas Veerman# Create a (secure) tmp directory for tmp files.
56364a17663cSThomas Veerman: ${TMPDIR=/tmp}
56374a17663cSThomas Veerman{
56384a17663cSThomas Veerman  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
56394a17663cSThomas Veerman  test -n "$tmp" && test -d "$tmp"
56404a17663cSThomas Veerman}  ||
56414a17663cSThomas Veerman{
56424a17663cSThomas Veerman  tmp=$TMPDIR/cs$$-$RANDOM
56434a17663cSThomas Veerman  (umask 077 && mkdir $tmp)
56444a17663cSThomas Veerman} ||
56454a17663cSThomas Veerman{
56464a17663cSThomas Veerman   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
56474a17663cSThomas Veerman   { (exit 1); exit 1; }
56484a17663cSThomas Veerman}
56494a17663cSThomas Veerman
56504a17663cSThomas VeermanEOF
56514a17663cSThomas Veerman
56524a17663cSThomas Veermancat >>$CONFIG_STATUS <<EOF
56534a17663cSThomas Veerman
56544a17663cSThomas Veerman#
56554a17663cSThomas Veerman# CONFIG_FILES section.
56564a17663cSThomas Veerman#
56574a17663cSThomas Veerman
56584a17663cSThomas Veerman# No need to generate the scripts if there are no CONFIG_FILES.
56594a17663cSThomas Veerman# This happens for instance when ./config.status config.h
56604a17663cSThomas Veermanif test -n "\$CONFIG_FILES"; then
56614a17663cSThomas Veerman  # Protect against being on the right side of a sed subst in config.status.
56624a17663cSThomas Veerman  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
56634a17663cSThomas Veerman   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
56644a17663cSThomas Veermans,@SHELL@,$SHELL,;t t
56654a17663cSThomas Veermans,@exec_prefix@,$exec_prefix,;t t
56664a17663cSThomas Veermans,@prefix@,$prefix,;t t
56674a17663cSThomas Veermans,@program_transform_name@,$program_transform_name,;t t
56684a17663cSThomas Veermans,@bindir@,$bindir,;t t
56694a17663cSThomas Veermans,@sbindir@,$sbindir,;t t
56704a17663cSThomas Veermans,@libexecdir@,$libexecdir,;t t
567184d9c625SLionel Sambucs,@datarootdir@,$datarootdir,;t t
56724a17663cSThomas Veermans,@datadir@,$datadir,;t t
56734a17663cSThomas Veermans,@sysconfdir@,$sysconfdir,;t t
56744a17663cSThomas Veermans,@sharedstatedir@,$sharedstatedir,;t t
56754a17663cSThomas Veermans,@localstatedir@,$localstatedir,;t t
56764a17663cSThomas Veermans,@libdir@,$libdir,;t t
56774a17663cSThomas Veermans,@includedir@,$includedir,;t t
56784a17663cSThomas Veermans,@oldincludedir@,$oldincludedir,;t t
56794a17663cSThomas Veermans,@infodir@,$infodir,;t t
56804a17663cSThomas Veermans,@mandir@,$mandir,;t t
56814a17663cSThomas Veermans,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
56824a17663cSThomas Veermans,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
56834a17663cSThomas Veermans,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
56844a17663cSThomas Veermans,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
56854a17663cSThomas Veermans,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
56864a17663cSThomas Veermans,@build_alias@,$build_alias,;t t
56874a17663cSThomas Veermans,@host_alias@,$host_alias,;t t
56884a17663cSThomas Veermans,@target_alias@,$target_alias,;t t
56894a17663cSThomas Veermans,@ECHO_C@,$ECHO_C,;t t
56904a17663cSThomas Veermans,@ECHO_N@,$ECHO_N,;t t
56914a17663cSThomas Veermans,@ECHO_T@,$ECHO_T,;t t
56924a17663cSThomas Veermans,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
56934a17663cSThomas Veermans,@DEFS@,$DEFS,;t t
56944a17663cSThomas Veermans,@LIBS@,$LIBS,;t t
56954a17663cSThomas Veermans,@build@,$build,;t t
56964a17663cSThomas Veermans,@build_cpu@,$build_cpu,;t t
56974a17663cSThomas Veermans,@build_vendor@,$build_vendor,;t t
56984a17663cSThomas Veermans,@build_os@,$build_os,;t t
56994a17663cSThomas Veermans,@host@,$host,;t t
57004a17663cSThomas Veermans,@host_cpu@,$host_cpu,;t t
57014a17663cSThomas Veermans,@host_vendor@,$host_vendor,;t t
57024a17663cSThomas Veermans,@host_os@,$host_os,;t t
57034a17663cSThomas Veermans,@target@,$target,;t t
57044a17663cSThomas Veermans,@target_cpu@,$target_cpu,;t t
57054a17663cSThomas Veermans,@target_vendor@,$target_vendor,;t t
57064a17663cSThomas Veermans,@target_os@,$target_os,;t t
57074a17663cSThomas Veermans,@CC@,$CC,;t t
57084a17663cSThomas Veermans,@CFLAGS@,$CFLAGS,;t t
57094a17663cSThomas Veermans,@LDFLAGS@,$LDFLAGS,;t t
57104a17663cSThomas Veermans,@CPPFLAGS@,$CPPFLAGS,;t t
57114a17663cSThomas Veermans,@ac_ct_CC@,$ac_ct_CC,;t t
57124a17663cSThomas Veermans,@EXEEXT@,$EXEEXT,;t t
57134a17663cSThomas Veermans,@OBJEXT@,$OBJEXT,;t t
571484d9c625SLionel Sambucs,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
57154a17663cSThomas Veermans,@SET_MAKE@,$SET_MAKE,;t t
57164a17663cSThomas Veermans,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
57174a17663cSThomas Veermans,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
57184a17663cSThomas Veermans,@INSTALL_DATA@,$INSTALL_DATA,;t t
57194a17663cSThomas Veermans,@CTAGS@,$CTAGS,;t t
57204a17663cSThomas Veermans,@ETAGS@,$ETAGS,;t t
57214a17663cSThomas Veermans,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
57224a17663cSThomas Veermans,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
5723*0a6a1f1dSLionel Sambucs,@AWK@,$AWK,;t t
57244a17663cSThomas Veermans,@LINT@,$LINT,;t t
57254a17663cSThomas Veermans,@LINT_OPTS@,$LINT_OPTS,;t t
57264a17663cSThomas Veermans,@CPP@,$CPP,;t t
5727*0a6a1f1dSLionel Sambucs,@SKELETON@,$SKELETON,;t t
57284a17663cSThomas Veermans,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
57294a17663cSThomas Veermans,@ECHO_LT@,$ECHO_LT,;t t
57304a17663cSThomas Veermans,@ECHO_LD@,$ECHO_LD,;t t
57314a17663cSThomas Veermans,@RULE_CC@,$RULE_CC,;t t
57324a17663cSThomas Veermans,@SHOW_CC@,$SHOW_CC,;t t
57334a17663cSThomas Veermans,@ECHO_CC@,$ECHO_CC,;t t
57344a17663cSThomas VeermanCEOF
57354a17663cSThomas Veerman
57364a17663cSThomas VeermanEOF
57374a17663cSThomas Veerman
57384a17663cSThomas Veerman  cat >>$CONFIG_STATUS <<\EOF
57394a17663cSThomas Veerman  # Split the substitutions into bite-sized pieces for seds with
57404a17663cSThomas Veerman  # small command number limits, like on Digital OSF/1 and HP-UX.
57414a17663cSThomas Veerman  ac_max_sed_lines=48
57424a17663cSThomas Veerman  ac_sed_frag=1 # Number of current file.
57434a17663cSThomas Veerman  ac_beg=1 # First line for current file.
57444a17663cSThomas Veerman  ac_end=$ac_max_sed_lines # Line after last line for current file.
57454a17663cSThomas Veerman  ac_more_lines=:
57464a17663cSThomas Veerman  ac_sed_cmds=
57474a17663cSThomas Veerman  while $ac_more_lines; do
57484a17663cSThomas Veerman    if test $ac_beg -gt 1; then
57494a17663cSThomas Veerman      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
57504a17663cSThomas Veerman    else
57514a17663cSThomas Veerman      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
57524a17663cSThomas Veerman    fi
57534a17663cSThomas Veerman    if test ! -s $tmp/subs.frag; then
57544a17663cSThomas Veerman      ac_more_lines=false
57554a17663cSThomas Veerman    else
57564a17663cSThomas Veerman      # The purpose of the label and of the branching condition is to
57574a17663cSThomas Veerman      # speed up the sed processing (if there are no `@' at all, there
57584a17663cSThomas Veerman      # is no need to browse any of the substitutions).
57594a17663cSThomas Veerman      # These are the two extra sed commands mentioned above.
57604a17663cSThomas Veerman      (echo ':t
57614a17663cSThomas Veerman  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
57624a17663cSThomas Veerman      if test -z "$ac_sed_cmds"; then
57634a17663cSThomas Veerman  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
57644a17663cSThomas Veerman      else
57654a17663cSThomas Veerman  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
57664a17663cSThomas Veerman      fi
57674a17663cSThomas Veerman      ac_sed_frag=`expr $ac_sed_frag + 1`
57684a17663cSThomas Veerman      ac_beg=$ac_end
57694a17663cSThomas Veerman      ac_end=`expr $ac_end + $ac_max_sed_lines`
57704a17663cSThomas Veerman    fi
57714a17663cSThomas Veerman  done
57724a17663cSThomas Veerman  if test -z "$ac_sed_cmds"; then
57734a17663cSThomas Veerman    ac_sed_cmds=cat
57744a17663cSThomas Veerman  fi
57754a17663cSThomas Veermanfi # test -n "$CONFIG_FILES"
57764a17663cSThomas Veerman
57774a17663cSThomas VeermanEOF
57784a17663cSThomas Veermancat >>$CONFIG_STATUS <<\EOF
57794a17663cSThomas Veermanfor ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
57804a17663cSThomas Veerman  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
57814a17663cSThomas Veerman  case $ac_file in
57824a17663cSThomas Veerman  - | *:- | *:-:* ) # input from stdin
57834a17663cSThomas Veerman        cat >$tmp/stdin
57844a17663cSThomas Veerman        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
57854a17663cSThomas Veerman        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
57864a17663cSThomas Veerman  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
57874a17663cSThomas Veerman        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
57884a17663cSThomas Veerman  * )   ac_file_in=$ac_file.in ;;
57894a17663cSThomas Veerman  esac
57904a17663cSThomas Veerman
57914a17663cSThomas Veerman  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
57924a17663cSThomas Veerman  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57934a17663cSThomas Veerman         X"$ac_file" : 'X\(//\)[^/]' \| \
57944a17663cSThomas Veerman         X"$ac_file" : 'X\(//\)$' \| \
57954a17663cSThomas Veerman         X"$ac_file" : 'X\(/\)' \| \
57964a17663cSThomas Veerman         .     : '\(.\)' 2>/dev/null ||
57974a17663cSThomas Veermanecho X"$ac_file" |
57984a17663cSThomas Veerman    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
57994a17663cSThomas Veerman  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
58004a17663cSThomas Veerman  	  /^X\(\/\/\)$/{ s//\1/; q; }
58014a17663cSThomas Veerman  	  /^X\(\/\).*/{ s//\1/; q; }
58024a17663cSThomas Veerman  	  s/.*/./; q'`
58034a17663cSThomas Veerman  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
58044a17663cSThomas Veerman    { case "$ac_dir" in
58054a17663cSThomas Veerman  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
58064a17663cSThomas Veerman  *)                      as_incr_dir=.;;
58074a17663cSThomas Veermanesac
58084a17663cSThomas Veermanas_dummy="$ac_dir"
58094a17663cSThomas Veermanfor as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
58104a17663cSThomas Veerman  case $as_mkdir_dir in
58114a17663cSThomas Veerman    # Skip DOS drivespec
58124a17663cSThomas Veerman    ?:) as_incr_dir=$as_mkdir_dir ;;
58134a17663cSThomas Veerman    *)
58144a17663cSThomas Veerman      as_incr_dir=$as_incr_dir/$as_mkdir_dir
58154a17663cSThomas Veerman      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
58164a17663cSThomas Veerman    ;;
58174a17663cSThomas Veerman  esac
58184a17663cSThomas Veermandone; }
58194a17663cSThomas Veerman
58204a17663cSThomas Veerman    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
58214a17663cSThomas Veerman    # A "../" for each directory in $ac_dir_suffix.
58224a17663cSThomas Veerman    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
58234a17663cSThomas Veerman  else
58244a17663cSThomas Veerman    ac_dir_suffix= ac_dots=
58254a17663cSThomas Veerman  fi
58264a17663cSThomas Veerman
58274a17663cSThomas Veerman  case $srcdir in
58284a17663cSThomas Veerman  .)  ac_srcdir=.
58294a17663cSThomas Veerman      if test -z "$ac_dots"; then
58304a17663cSThomas Veerman         ac_top_srcdir=.
58314a17663cSThomas Veerman      else
58324a17663cSThomas Veerman         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
58334a17663cSThomas Veerman      fi ;;
58344a17663cSThomas Veerman  [\\/]* | ?:[\\/]* )
58354a17663cSThomas Veerman      ac_srcdir=$srcdir$ac_dir_suffix;
58364a17663cSThomas Veerman      ac_top_srcdir=$srcdir ;;
58374a17663cSThomas Veerman  *) # Relative path.
58384a17663cSThomas Veerman    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
58394a17663cSThomas Veerman    ac_top_srcdir=$ac_dots$srcdir ;;
58404a17663cSThomas Veerman  esac
58414a17663cSThomas Veerman
58424a17663cSThomas Veerman  case $INSTALL in
58434a17663cSThomas Veerman  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
58444a17663cSThomas Veerman  *) ac_INSTALL=$ac_dots$INSTALL ;;
58454a17663cSThomas Veerman  esac
58464a17663cSThomas Veerman
58474a17663cSThomas Veerman  if test x"$ac_file" != x-; then
5848*0a6a1f1dSLionel Sambuc    { echo "$as_me:5848: creating $ac_file" >&5
58494a17663cSThomas Veermanecho "$as_me: creating $ac_file" >&6;}
58504a17663cSThomas Veerman    rm -f "$ac_file"
58514a17663cSThomas Veerman  fi
58524a17663cSThomas Veerman  # Let's still pretend it is `configure' which instantiates (i.e., don't
58534a17663cSThomas Veerman  # use $as_me), people would be surprised to read:
58544a17663cSThomas Veerman  #    /* config.h.  Generated automatically by config.status.  */
58554a17663cSThomas Veerman  configure_input="Generated automatically from `echo $ac_file_in |
58564a17663cSThomas Veerman                                                 sed 's,.*/,,'` by configure."
58574a17663cSThomas Veerman
58584a17663cSThomas Veerman  # First look for the input files in the build tree, otherwise in the
58594a17663cSThomas Veerman  # src tree.
58604a17663cSThomas Veerman  ac_file_inputs=`IFS=:
58614a17663cSThomas Veerman    for f in $ac_file_in; do
58624a17663cSThomas Veerman      case $f in
58634a17663cSThomas Veerman      -) echo $tmp/stdin ;;
58644a17663cSThomas Veerman      [\\/$]*)
58654a17663cSThomas Veerman         # Absolute (can't be DOS-style, as IFS=:)
5866*0a6a1f1dSLionel Sambuc         test -f "$f" || { { echo "$as_me:5866: error: cannot find input file: $f" >&5
58674a17663cSThomas Veermanecho "$as_me: error: cannot find input file: $f" >&2;}
58684a17663cSThomas Veerman   { (exit 1); exit 1; }; }
58694a17663cSThomas Veerman         echo $f;;
58704a17663cSThomas Veerman      *) # Relative
58714a17663cSThomas Veerman         if test -f "$f"; then
58724a17663cSThomas Veerman           # Build tree
58734a17663cSThomas Veerman           echo $f
58744a17663cSThomas Veerman         elif test -f "$srcdir/$f"; then
58754a17663cSThomas Veerman           # Source tree
58764a17663cSThomas Veerman           echo $srcdir/$f
58774a17663cSThomas Veerman         else
58784a17663cSThomas Veerman           # /dev/null tree
5879*0a6a1f1dSLionel Sambuc           { { echo "$as_me:5879: error: cannot find input file: $f" >&5
58804a17663cSThomas Veermanecho "$as_me: error: cannot find input file: $f" >&2;}
58814a17663cSThomas Veerman   { (exit 1); exit 1; }; }
58824a17663cSThomas Veerman         fi;;
58834a17663cSThomas Veerman      esac
58844a17663cSThomas Veerman    done` || { (exit 1); exit 1; }
58854a17663cSThomas VeermanEOF
588684d9c625SLionel Sambuccat >>$CONFIG_STATUS <<\EOF
588784d9c625SLionel Sambuc  ac_warn_datarootdir=no
588884d9c625SLionel Sambuc  if test x"$ac_file" != x-; then
588984d9c625SLionel Sambuc    for ac_item in $ac_file_inputs
589084d9c625SLionel Sambuc    do
589184d9c625SLionel Sambuc      ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
589284d9c625SLionel Sambuc      if test -n "$ac_seen"; then
589384d9c625SLionel Sambuc        ac_used=`grep '@datarootdir@' $ac_item`
589484d9c625SLionel Sambuc        if test -z "$ac_used"; then
5895*0a6a1f1dSLionel Sambuc          { echo "$as_me:5895: WARNING: datarootdir was used implicitly but not set:
589684d9c625SLionel Sambuc$ac_seen" >&5
589784d9c625SLionel Sambucecho "$as_me: WARNING: datarootdir was used implicitly but not set:
589884d9c625SLionel Sambuc$ac_seen" >&2;}
589984d9c625SLionel Sambuc          ac_warn_datarootdir=yes
590084d9c625SLionel Sambuc        fi
590184d9c625SLionel Sambuc      fi
590284d9c625SLionel Sambuc      ac_seen=`grep '${datarootdir}' $ac_item`
590384d9c625SLionel Sambuc      if test -n "$ac_seen"; then
5904*0a6a1f1dSLionel Sambuc        { echo "$as_me:5904: WARNING: datarootdir was used explicitly but not set:
590584d9c625SLionel Sambuc$ac_seen" >&5
590684d9c625SLionel Sambucecho "$as_me: WARNING: datarootdir was used explicitly but not set:
590784d9c625SLionel Sambuc$ac_seen" >&2;}
590884d9c625SLionel Sambuc        ac_warn_datarootdir=yes
590984d9c625SLionel Sambuc      fi
591084d9c625SLionel Sambuc    done
591184d9c625SLionel Sambuc  fi
591284d9c625SLionel Sambuc
591384d9c625SLionel Sambucif test "x$ac_warn_datarootdir" = xyes; then
591484d9c625SLionel Sambuc  ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
591584d9c625SLionel Sambucfi
591684d9c625SLionel Sambuc
591784d9c625SLionel SambucEOF
59184a17663cSThomas Veermancat >>$CONFIG_STATUS <<EOF
59194a17663cSThomas Veerman  sed "$ac_vpsub
59204a17663cSThomas Veerman$extrasub
59214a17663cSThomas VeermanEOF
59224a17663cSThomas Veermancat >>$CONFIG_STATUS <<\EOF
59234a17663cSThomas Veerman:t
59244a17663cSThomas Veerman/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
59254a17663cSThomas Veermans,@configure_input@,$configure_input,;t t
59264a17663cSThomas Veermans,@srcdir@,$ac_srcdir,;t t
59274a17663cSThomas Veermans,@top_srcdir@,$ac_top_srcdir,;t t
59284a17663cSThomas Veermans,@INSTALL@,$ac_INSTALL,;t t
59294a17663cSThomas Veerman" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
59304a17663cSThomas Veerman  rm -f $tmp/stdin
59314a17663cSThomas Veerman  if test x"$ac_file" != x-; then
593284d9c625SLionel Sambuc    cp $tmp/out $ac_file
593384d9c625SLionel Sambuc
593484d9c625SLionel Sambuc    for ac_name in prefix exec_prefix datarootdir
593584d9c625SLionel Sambuc    do
593684d9c625SLionel Sambuc        ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
593784d9c625SLionel Sambuc        if test -n "$ac_seen"; then
593884d9c625SLionel Sambuc            ac_init=`egrep '[ 	]*'$ac_name'[ 	]*=' $ac_file`
593984d9c625SLionel Sambuc            if test -z "$ac_init"; then
594084d9c625SLionel Sambuc              ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
5941*0a6a1f1dSLionel Sambuc              { echo "$as_me:5941: WARNING: Variable $ac_name is used but was not set:
594284d9c625SLionel Sambuc$ac_seen" >&5
594384d9c625SLionel Sambucecho "$as_me: WARNING: Variable $ac_name is used but was not set:
594484d9c625SLionel Sambuc$ac_seen" >&2;}
594584d9c625SLionel Sambuc            fi
594684d9c625SLionel Sambuc        fi
594784d9c625SLionel Sambuc    done
594884d9c625SLionel Sambuc    egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
594984d9c625SLionel Sambuc    egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
595084d9c625SLionel Sambuc    if test -s $tmp/out; then
595184d9c625SLionel Sambuc      ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
5952*0a6a1f1dSLionel Sambuc      { echo "$as_me:5952: WARNING: Some variables may not be substituted:
595384d9c625SLionel Sambuc$ac_seen" >&5
595484d9c625SLionel Sambucecho "$as_me: WARNING: Some variables may not be substituted:
595584d9c625SLionel Sambuc$ac_seen" >&2;}
595684d9c625SLionel Sambuc    fi
59574a17663cSThomas Veerman  else
59584a17663cSThomas Veerman    cat $tmp/out
59594a17663cSThomas Veerman  fi
596084d9c625SLionel Sambuc  rm -f $tmp/out
59614a17663cSThomas Veerman
59624a17663cSThomas Veermandone
59634a17663cSThomas VeermanEOF
59644a17663cSThomas Veermancat >>$CONFIG_STATUS <<\EOF
59654a17663cSThomas Veerman
59664a17663cSThomas Veerman#
59674a17663cSThomas Veerman# CONFIG_HEADER section.
59684a17663cSThomas Veerman#
59694a17663cSThomas Veerman
59704a17663cSThomas Veerman# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
59714a17663cSThomas Veerman# NAME is the cpp macro being defined and VALUE is the value it is being given.
59724a17663cSThomas Veerman#
59734a17663cSThomas Veerman# ac_d sets the value in "#define NAME VALUE" lines.
59744a17663cSThomas Veermanac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
59754a17663cSThomas Veermanac_dB='[ 	].*$,\1#\2'
59764a17663cSThomas Veermanac_dC=' '
59774a17663cSThomas Veermanac_dD=',;t'
59784a17663cSThomas Veerman# ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
59794a17663cSThomas Veermanac_iA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
59804a17663cSThomas Veermanac_iB='\([ 	]\),\1#\2define\3'
59814a17663cSThomas Veermanac_iC=' '
59824a17663cSThomas Veermanac_iD='\4,;t'
59834a17663cSThomas Veerman# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
59844a17663cSThomas Veermanac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
59854a17663cSThomas Veermanac_uB='$,\1#\2define\3'
59864a17663cSThomas Veermanac_uC=' '
59874a17663cSThomas Veermanac_uD=',;t'
59884a17663cSThomas Veerman
59894a17663cSThomas Veermanfor ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
59904a17663cSThomas Veerman  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
59914a17663cSThomas Veerman  case $ac_file in
59924a17663cSThomas Veerman  - | *:- | *:-:* ) # input from stdin
59934a17663cSThomas Veerman        cat >$tmp/stdin
59944a17663cSThomas Veerman        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
59954a17663cSThomas Veerman        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
59964a17663cSThomas Veerman  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
59974a17663cSThomas Veerman        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
59984a17663cSThomas Veerman  * )   ac_file_in=$ac_file.in ;;
59994a17663cSThomas Veerman  esac
60004a17663cSThomas Veerman
6001*0a6a1f1dSLionel Sambuc  test x"$ac_file" != x- && { echo "$as_me:6001: creating $ac_file" >&5
60024a17663cSThomas Veermanecho "$as_me: creating $ac_file" >&6;}
60034a17663cSThomas Veerman
60044a17663cSThomas Veerman  # First look for the input files in the build tree, otherwise in the
60054a17663cSThomas Veerman  # src tree.
60064a17663cSThomas Veerman  ac_file_inputs=`IFS=:
60074a17663cSThomas Veerman    for f in $ac_file_in; do
60084a17663cSThomas Veerman      case $f in
60094a17663cSThomas Veerman      -) echo $tmp/stdin ;;
60104a17663cSThomas Veerman      [\\/$]*)
60114a17663cSThomas Veerman         # Absolute (can't be DOS-style, as IFS=:)
6012*0a6a1f1dSLionel Sambuc         test -f "$f" || { { echo "$as_me:6012: error: cannot find input file: $f" >&5
60134a17663cSThomas Veermanecho "$as_me: error: cannot find input file: $f" >&2;}
60144a17663cSThomas Veerman   { (exit 1); exit 1; }; }
60154a17663cSThomas Veerman         echo $f;;
60164a17663cSThomas Veerman      *) # Relative
60174a17663cSThomas Veerman         if test -f "$f"; then
60184a17663cSThomas Veerman           # Build tree
60194a17663cSThomas Veerman           echo $f
60204a17663cSThomas Veerman         elif test -f "$srcdir/$f"; then
60214a17663cSThomas Veerman           # Source tree
60224a17663cSThomas Veerman           echo $srcdir/$f
60234a17663cSThomas Veerman         else
60244a17663cSThomas Veerman           # /dev/null tree
6025*0a6a1f1dSLionel Sambuc           { { echo "$as_me:6025: error: cannot find input file: $f" >&5
60264a17663cSThomas Veermanecho "$as_me: error: cannot find input file: $f" >&2;}
60274a17663cSThomas Veerman   { (exit 1); exit 1; }; }
60284a17663cSThomas Veerman         fi;;
60294a17663cSThomas Veerman      esac
60304a17663cSThomas Veerman    done` || { (exit 1); exit 1; }
60314a17663cSThomas Veerman  # Remove the trailing spaces.
60324a17663cSThomas Veerman  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
60334a17663cSThomas Veerman
60344a17663cSThomas VeermanEOF
60354a17663cSThomas Veerman
603684d9c625SLionel Sambuc# Transform confdefs.h into two sed scripts, `conftest.defines' and
603784d9c625SLionel Sambuc# `conftest.undefs', that substitutes the proper values into
603884d9c625SLionel Sambuc# config.h.in to produce config.h.  The first handles `#define'
603984d9c625SLionel Sambuc# templates, and the second `#undef' templates.
604084d9c625SLionel Sambuc# And first: Protect against being on the right side of a sed subst in
604184d9c625SLionel Sambuc# config.status.  Protect against being in an unquoted here document
604284d9c625SLionel Sambuc# in config.status.
604384d9c625SLionel Sambucrm -f conftest.defines conftest.undefs
604484d9c625SLionel Sambuc# Using a here document instead of a string reduces the quoting nightmare.
604584d9c625SLionel Sambuc# Putting comments in sed scripts is not portable.
604684d9c625SLionel Sambuc#
604784d9c625SLionel Sambuc# `end' is used to avoid that the second main sed command (meant for
604884d9c625SLionel Sambuc# 0-ary CPP macros) applies to n-ary macro definitions.
604984d9c625SLionel Sambuc# See the Autoconf documentation for `clear'.
605084d9c625SLionel Sambuccat >confdef2sed.sed <<\EOF
605184d9c625SLionel Sambucs/[\\&,]/\\&/g
605284d9c625SLionel Sambucs,[\\$`],\\&,g
605384d9c625SLionel Sambuct clear
605484d9c625SLionel Sambuc: clear
605584d9c625SLionel Sambucs,^[ 	]*#[ 	]*define[ 	][ 	]*\(\([^ 	(][^ 	(]*\)([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
605684d9c625SLionel Sambuct end
605784d9c625SLionel Sambucs,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
605884d9c625SLionel Sambuc: end
605984d9c625SLionel SambucEOF
606084d9c625SLionel Sambuc# If some macros were called several times there might be several times
606184d9c625SLionel Sambuc# the same #defines, which is useless.  Nevertheless, we may not want to
606284d9c625SLionel Sambuc# sort them, since we want the *last* AC-DEFINE to be honored.
606384d9c625SLionel Sambucuniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
606484d9c625SLionel Sambucsed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
606584d9c625SLionel Sambucsed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs
606684d9c625SLionel Sambucrm -f confdef2sed.sed
60674a17663cSThomas Veerman
606884d9c625SLionel Sambuc# This sed command replaces #undef with comments.  This is necessary, for
606984d9c625SLionel Sambuc# example, in the case of _POSIX_SOURCE, which is predefined and required
607084d9c625SLionel Sambuc# on some systems where configure will not decide to define it.
607184d9c625SLionel Sambuccat >>conftest.undefs <<\EOF
607284d9c625SLionel Sambucs,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
607384d9c625SLionel SambucEOF
60744a17663cSThomas Veerman
607584d9c625SLionel Sambuc# Break up conftest.defines because some shells have a limit on the size
607684d9c625SLionel Sambuc# of here documents, and old seds have small limits too (100 cmds).
607784d9c625SLionel Sambucecho '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
607884d9c625SLionel Sambucecho '  if egrep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
607984d9c625SLionel Sambucecho '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
608084d9c625SLionel Sambucecho '  :' >>$CONFIG_STATUS
60814a17663cSThomas Veermanrm -f conftest.tail
608284d9c625SLionel Sambucwhile grep . conftest.defines >/dev/null
60834a17663cSThomas Veermando
608484d9c625SLionel Sambuc  # Write a limited-size here document to $tmp/defines.sed.
608584d9c625SLionel Sambuc  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
608684d9c625SLionel Sambuc  # Speed up: don't consider the non `#define' lines.
608784d9c625SLionel Sambuc  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
608884d9c625SLionel Sambuc  # Work around the forget-to-reset-the-flag bug.
608984d9c625SLionel Sambuc  echo 't clr' >>$CONFIG_STATUS
609084d9c625SLionel Sambuc  echo ': clr' >>$CONFIG_STATUS
609184d9c625SLionel Sambuc  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
609284d9c625SLionel Sambuc  echo 'CEOF
609384d9c625SLionel Sambuc  sed -f $tmp/defines.sed $tmp/in >$tmp/out
60944a17663cSThomas Veerman  rm -f $tmp/in
60954a17663cSThomas Veerman  mv $tmp/out $tmp/in
60964a17663cSThomas Veerman' >>$CONFIG_STATUS
609784d9c625SLionel Sambuc  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
609884d9c625SLionel Sambuc  rm -f conftest.defines
609984d9c625SLionel Sambuc  mv conftest.tail conftest.defines
610084d9c625SLionel Sambucdone
610184d9c625SLionel Sambucrm -f conftest.defines
610284d9c625SLionel Sambucecho '  fi # egrep' >>$CONFIG_STATUS
610384d9c625SLionel Sambucecho >>$CONFIG_STATUS
610484d9c625SLionel Sambuc
610584d9c625SLionel Sambuc# Break up conftest.undefs because some shells have a limit on the size
610684d9c625SLionel Sambuc# of here documents, and old seds have small limits too (100 cmds).
610784d9c625SLionel Sambucecho '  # Handle all the #undef templates' >>$CONFIG_STATUS
610884d9c625SLionel Sambucrm -f conftest.tail
610984d9c625SLionel Sambucwhile grep . conftest.undefs >/dev/null
611084d9c625SLionel Sambucdo
611184d9c625SLionel Sambuc  # Write a limited-size here document to $tmp/undefs.sed.
611284d9c625SLionel Sambuc  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
611384d9c625SLionel Sambuc  # Speed up: don't consider the non `#undef'
611484d9c625SLionel Sambuc  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
611584d9c625SLionel Sambuc  # Work around the forget-to-reset-the-flag bug.
611684d9c625SLionel Sambuc  echo 't clr' >>$CONFIG_STATUS
611784d9c625SLionel Sambuc  echo ': clr' >>$CONFIG_STATUS
611884d9c625SLionel Sambuc  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
611984d9c625SLionel Sambuc  echo 'CEOF
612084d9c625SLionel Sambuc  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
612184d9c625SLionel Sambuc  rm -f $tmp/in
612284d9c625SLionel Sambuc  mv $tmp/out $tmp/in
612384d9c625SLionel Sambuc' >>$CONFIG_STATUS
612484d9c625SLionel Sambuc  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
612584d9c625SLionel Sambuc  rm -f conftest.undefs
612684d9c625SLionel Sambuc  mv conftest.tail conftest.undefs
612784d9c625SLionel Sambucdone
612884d9c625SLionel Sambucrm -f conftest.undefs
61294a17663cSThomas Veerman
61304a17663cSThomas Veermancat >>$CONFIG_STATUS <<\EOF
61314a17663cSThomas Veerman  # Let's still pretend it is `configure' which instantiates (i.e., don't
61324a17663cSThomas Veerman  # use $as_me), people would be surprised to read:
61334a17663cSThomas Veerman  #    /* config.h.  Generated automatically by config.status.  */
61344a17663cSThomas Veerman  if test x"$ac_file" = x-; then
61354a17663cSThomas Veerman    echo "/* Generated automatically by configure.  */" >$tmp/config.h
61364a17663cSThomas Veerman  else
61374a17663cSThomas Veerman    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
61384a17663cSThomas Veerman  fi
61394a17663cSThomas Veerman  cat $tmp/in >>$tmp/config.h
61404a17663cSThomas Veerman  rm -f $tmp/in
61414a17663cSThomas Veerman  if test x"$ac_file" != x-; then
61424a17663cSThomas Veerman    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
6143*0a6a1f1dSLionel Sambuc      { echo "$as_me:6143: $ac_file is unchanged" >&5
61444a17663cSThomas Veermanecho "$as_me: $ac_file is unchanged" >&6;}
61454a17663cSThomas Veerman    else
61464a17663cSThomas Veerman      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
61474a17663cSThomas Veerman         X"$ac_file" : 'X\(//\)[^/]' \| \
61484a17663cSThomas Veerman         X"$ac_file" : 'X\(//\)$' \| \
61494a17663cSThomas Veerman         X"$ac_file" : 'X\(/\)' \| \
61504a17663cSThomas Veerman         .     : '\(.\)' 2>/dev/null ||
61514a17663cSThomas Veermanecho X"$ac_file" |
61524a17663cSThomas Veerman    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
61534a17663cSThomas Veerman  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
61544a17663cSThomas Veerman  	  /^X\(\/\/\)$/{ s//\1/; q; }
61554a17663cSThomas Veerman  	  /^X\(\/\).*/{ s//\1/; q; }
61564a17663cSThomas Veerman  	  s/.*/./; q'`
61574a17663cSThomas Veerman      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
61584a17663cSThomas Veerman        { case "$ac_dir" in
61594a17663cSThomas Veerman  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
61604a17663cSThomas Veerman  *)                      as_incr_dir=.;;
61614a17663cSThomas Veermanesac
61624a17663cSThomas Veermanas_dummy="$ac_dir"
61634a17663cSThomas Veermanfor as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
61644a17663cSThomas Veerman  case $as_mkdir_dir in
61654a17663cSThomas Veerman    # Skip DOS drivespec
61664a17663cSThomas Veerman    ?:) as_incr_dir=$as_mkdir_dir ;;
61674a17663cSThomas Veerman    *)
61684a17663cSThomas Veerman      as_incr_dir=$as_incr_dir/$as_mkdir_dir
61694a17663cSThomas Veerman      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
61704a17663cSThomas Veerman    ;;
61714a17663cSThomas Veerman  esac
61724a17663cSThomas Veermandone; }
61734a17663cSThomas Veerman
61744a17663cSThomas Veerman      fi
61754a17663cSThomas Veerman      rm -f $ac_file
61764a17663cSThomas Veerman      mv $tmp/config.h $ac_file
61774a17663cSThomas Veerman    fi
61784a17663cSThomas Veerman  else
61794a17663cSThomas Veerman    cat $tmp/config.h
61804a17663cSThomas Veerman    rm -f $tmp/config.h
61814a17663cSThomas Veerman  fi
61824a17663cSThomas Veermandone
61834a17663cSThomas VeermanEOF
61844a17663cSThomas Veerman
61854a17663cSThomas Veermancat >>$CONFIG_STATUS <<\EOF
61864a17663cSThomas Veerman
61874a17663cSThomas Veerman{ (exit 0); exit 0; }
61884a17663cSThomas VeermanEOF
61894a17663cSThomas Veermanchmod +x $CONFIG_STATUS
61904a17663cSThomas Veermanac_clean_files=$ac_clean_files_save
61914a17663cSThomas Veerman
61924a17663cSThomas Veerman# configure is writing to config.log, and then calls config.status.
61934a17663cSThomas Veerman# config.status does its own redirection, appending to config.log.
61944a17663cSThomas Veerman# Unfortunately, on DOS this fails, as config.log is still kept open
61954a17663cSThomas Veerman# by configure, so config.status won't be able to write to it; its
61964a17663cSThomas Veerman# output is simply discarded.  So we exec the FD to /dev/null,
61974a17663cSThomas Veerman# effectively closing config.log, so it can be properly (re)opened and
61984a17663cSThomas Veerman# appended to by config.status.  When coming back to configure, we
61994a17663cSThomas Veerman# need to make the FD available again.
62004a17663cSThomas Veermanif test "$no_create" != yes; then
62014a17663cSThomas Veerman  ac_cs_success=:
62024a17663cSThomas Veerman  exec 5>/dev/null
62034a17663cSThomas Veerman  $SHELL $CONFIG_STATUS || ac_cs_success=false
62044a17663cSThomas Veerman  exec 5>>config.log
62054a17663cSThomas Veerman  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
62064a17663cSThomas Veerman  # would make configure fail if this is the last instruction.
62074a17663cSThomas Veerman  $ac_cs_success || { (exit 1); exit 1; }
62084a17663cSThomas Veermanfi
62094a17663cSThomas Veerman
6210*0a6a1f1dSLionel Sambuctest -z "$cf_make_docs" && cf_make_docs=0
6211*0a6a1f1dSLionel Sambuc
6212*0a6a1f1dSLionel Sambuccf_output=makefile
6213*0a6a1f1dSLionel Sambuctest -f "$cf_output" || cf_output=Makefile
6214*0a6a1f1dSLionel Sambuc
6215*0a6a1f1dSLionel Sambucif test "$cf_make_docs" = 0
6216*0a6a1f1dSLionel Sambucthen
6217*0a6a1f1dSLionel Sambuccat >>$cf_output <<"CF_EOF"
6218*0a6a1f1dSLionel Sambuc################################################################################
6219*0a6a1f1dSLionel Sambuc.SUFFIXES : .html .1 .man .ps .pdf .txt
6220*0a6a1f1dSLionel Sambuc
6221*0a6a1f1dSLionel Sambuc.1.html :
6222*0a6a1f1dSLionel Sambuc	GROFF_NO_SGR=stupid $(SHELL) -c "tbl $*.1 | groff -P -o0 -Iyacc,1_ -Thtml -man" >$@
6223*0a6a1f1dSLionel Sambuc
6224*0a6a1f1dSLionel Sambuc.1.ps :
6225*0a6a1f1dSLionel Sambuc	$(SHELL) -c "tbl $*.1 | groff -man" >$@
6226*0a6a1f1dSLionel Sambuc
6227*0a6a1f1dSLionel Sambuc.1.txt :
6228*0a6a1f1dSLionel Sambuc	GROFF_NO_SGR=stupid $(SHELL) -c "tbl $*.1 | nroff -Tascii -man | col -bx" >$@
6229*0a6a1f1dSLionel Sambuc
6230*0a6a1f1dSLionel Sambuc.ps.pdf :
6231*0a6a1f1dSLionel Sambuc	ps2pdf $*.ps
6232*0a6a1f1dSLionel Sambuc
6233*0a6a1f1dSLionel SambucCF_EOF
6234*0a6a1f1dSLionel Sambuc	cf_make_docs=1
6235*0a6a1f1dSLionel Sambucfi
6236*0a6a1f1dSLionel Sambuc
6237*0a6a1f1dSLionel Sambucfor cf_name in yacc
6238*0a6a1f1dSLionel Sambucdo
6239*0a6a1f1dSLionel Sambuccat >>$cf_output <<CF_EOF
6240*0a6a1f1dSLionel Sambuc################################################################################
6241*0a6a1f1dSLionel Sambucdocs-$cf_name \\
6242*0a6a1f1dSLionel Sambucdocs :: $cf_name.html \\
6243*0a6a1f1dSLionel Sambuc	$cf_name.pdf \\
6244*0a6a1f1dSLionel Sambuc	$cf_name.ps \\
6245*0a6a1f1dSLionel Sambuc	$cf_name.txt
6246*0a6a1f1dSLionel Sambuc
6247*0a6a1f1dSLionel Sambucclean \\
6248*0a6a1f1dSLionel Sambucdocs-clean ::
6249*0a6a1f1dSLionel Sambuc	rm -f $cf_name.html $cf_name.pdf $cf_name.ps $cf_name.txt
6250*0a6a1f1dSLionel Sambuc
6251*0a6a1f1dSLionel Sambuc$cf_name.html : $cf_name.\1
6252*0a6a1f1dSLionel Sambuc$cf_name.pdf : $cf_name.ps
6253*0a6a1f1dSLionel Sambuc$cf_name.ps : $cf_name.\1
6254*0a6a1f1dSLionel Sambuc$cf_name.txt : $cf_name.\1
6255*0a6a1f1dSLionel SambucCF_EOF
6256*0a6a1f1dSLionel Sambucdone
6257*0a6a1f1dSLionel Sambuc
6258