1*075184b7Schristos#! /bin/sh 2*075184b7Schristos 3*075184b7Schristos# Guess values for system-dependent variables and create Makefiles. 4*075184b7Schristos# Generated automatically using autoconf version 2.4 5*075184b7Schristos# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc. 6*075184b7Schristos# 7*075184b7Schristos# This configure script is free software; the Free Software Foundation 8*075184b7Schristos# gives unlimited permission to copy, distribute and modify it. 9*075184b7Schristos 10*075184b7Schristos# Defaults: 11*075184b7Schristosac_help= 12*075184b7Schristosac_default_prefix=/usr/local 13*075184b7Schristos# Any additions from configure.in: 14*075184b7Schristosac_help="$ac_help 15*075184b7Schristos --with-diffutils assume GNU diffutils is similarly installed" 16*075184b7Schristos 17*075184b7Schristos# Initialize some variables set by options. 18*075184b7Schristos# The variables have the same names as the options, with 19*075184b7Schristos# dashes changed to underlines. 20*075184b7Schristosbuild=NONE 21*075184b7Schristoscache_file=./config.cache 22*075184b7Schristosexec_prefix=NONE 23*075184b7Schristoshost=NONE 24*075184b7Schristosno_create= 25*075184b7Schristosnonopt=NONE 26*075184b7Schristosno_recursion= 27*075184b7Schristosprefix=NONE 28*075184b7Schristosprogram_prefix=NONE 29*075184b7Schristosprogram_suffix=NONE 30*075184b7Schristosprogram_transform_name=s,x,x, 31*075184b7Schristossilent= 32*075184b7Schristossite= 33*075184b7Schristossrcdir= 34*075184b7Schristostarget=NONE 35*075184b7Schristosverbose= 36*075184b7Schristosx_includes=NONE 37*075184b7Schristosx_libraries=NONE 38*075184b7Schristos 39*075184b7Schristos# Initialize some other variables. 40*075184b7Schristossubdirs= 41*075184b7Schristos 42*075184b7Schristosac_prev= 43*075184b7Schristosfor ac_option 44*075184b7Schristosdo 45*075184b7Schristos 46*075184b7Schristos # If the previous option needs an argument, assign it. 47*075184b7Schristos if test -n "$ac_prev"; then 48*075184b7Schristos eval "$ac_prev=\$ac_option" 49*075184b7Schristos ac_prev= 50*075184b7Schristos continue 51*075184b7Schristos fi 52*075184b7Schristos 53*075184b7Schristos case "$ac_option" in 54*075184b7Schristos -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 55*075184b7Schristos *) ac_optarg= ;; 56*075184b7Schristos esac 57*075184b7Schristos 58*075184b7Schristos # Accept the important Cygnus configure options, so we can diagnose typos. 59*075184b7Schristos 60*075184b7Schristos case "$ac_option" in 61*075184b7Schristos 62*075184b7Schristos -build | --build | --buil | --bui | --bu | --b) 63*075184b7Schristos ac_prev=build ;; 64*075184b7Schristos -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*) 65*075184b7Schristos build="$ac_optarg" ;; 66*075184b7Schristos 67*075184b7Schristos -cache-file | --cache-file | --cache-fil | --cache-fi \ 68*075184b7Schristos | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 69*075184b7Schristos ac_prev=cache_file ;; 70*075184b7Schristos -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 71*075184b7Schristos | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 72*075184b7Schristos cache_file="$ac_optarg" ;; 73*075184b7Schristos 74*075184b7Schristos -disable-* | --disable-*) 75*075184b7Schristos ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 76*075184b7Schristos # Reject names that are not valid shell variable names. 77*075184b7Schristos if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 78*075184b7Schristos { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 79*075184b7Schristos fi 80*075184b7Schristos ac_feature=`echo $ac_feature| sed 's/-/_/g'` 81*075184b7Schristos eval "enable_${ac_feature}=no" ;; 82*075184b7Schristos 83*075184b7Schristos -enable-* | --enable-*) 84*075184b7Schristos ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 85*075184b7Schristos # Reject names that are not valid shell variable names. 86*075184b7Schristos if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 87*075184b7Schristos { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 88*075184b7Schristos fi 89*075184b7Schristos ac_feature=`echo $ac_feature| sed 's/-/_/g'` 90*075184b7Schristos case "$ac_option" in 91*075184b7Schristos *=*) ;; 92*075184b7Schristos *) ac_optarg=yes ;; 93*075184b7Schristos esac 94*075184b7Schristos eval "enable_${ac_feature}='$ac_optarg'" ;; 95*075184b7Schristos 96*075184b7Schristos -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 97*075184b7Schristos | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 98*075184b7Schristos | --exec | --exe | --ex) 99*075184b7Schristos ac_prev=exec_prefix ;; 100*075184b7Schristos -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 101*075184b7Schristos | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 102*075184b7Schristos | --exec=* | --exe=* | --ex=*) 103*075184b7Schristos exec_prefix="$ac_optarg" ;; 104*075184b7Schristos 105*075184b7Schristos -gas | --gas | --ga | --g) 106*075184b7Schristos # Obsolete; use --with-gas. 107*075184b7Schristos with_gas=yes ;; 108*075184b7Schristos 109*075184b7Schristos -help | --help | --hel | --he) 110*075184b7Schristos # Omit some internal or obsolete options to make the list less imposing. 111*075184b7Schristos # This message is too long to be a string in the A/UX 3.1 sh. 112*075184b7Schristos cat << EOF 113*075184b7SchristosUsage: configure [options] [host] 114*075184b7SchristosOptions: [defaults in brackets after descriptions] 115*075184b7SchristosConfiguration: 116*075184b7Schristos --cache-file=FILE cache test results in FILE 117*075184b7Schristos --help print this message 118*075184b7Schristos --no-create do not create output files 119*075184b7Schristos --quiet, --silent do not print \`checking...' messages 120*075184b7Schristos --version print the version of autoconf that created configure 121*075184b7SchristosDirectory and file names: 122*075184b7Schristos --prefix=PREFIX install architecture-independent files in PREFIX 123*075184b7Schristos [$ac_default_prefix] 124*075184b7Schristos --exec-prefix=PREFIX install architecture-dependent files in PREFIX 125*075184b7Schristos [same as prefix] 126*075184b7Schristos --srcdir=DIR find the sources in DIR [configure dir or ..] 127*075184b7Schristos --program-prefix=PREFIX prepend PREFIX to installed program names 128*075184b7Schristos --program-suffix=SUFFIX append SUFFIX to installed program names 129*075184b7Schristos --program-transform-name=PROGRAM run sed PROGRAM on installed program names 130*075184b7SchristosHost type: 131*075184b7Schristos --build=BUILD configure for building on BUILD [BUILD=HOST] 132*075184b7Schristos --host=HOST configure for HOST [guessed] 133*075184b7Schristos --target=TARGET configure for TARGET [TARGET=HOST] 134*075184b7SchristosFeatures and packages: 135*075184b7Schristos --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 136*075184b7Schristos --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 137*075184b7Schristos --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 138*075184b7Schristos --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 139*075184b7Schristos --x-includes=DIR X include files are in DIR 140*075184b7Schristos --x-libraries=DIR X library files are in DIR 141*075184b7Schristos--enable and --with options recognized:$ac_help 142*075184b7SchristosEOF 143*075184b7Schristos exit 0 ;; 144*075184b7Schristos 145*075184b7Schristos -host | --host | --hos | --ho) 146*075184b7Schristos ac_prev=host ;; 147*075184b7Schristos -host=* | --host=* | --hos=* | --ho=*) 148*075184b7Schristos host="$ac_optarg" ;; 149*075184b7Schristos 150*075184b7Schristos -nfp | --nfp | --nf) 151*075184b7Schristos # Obsolete; use --without-fp. 152*075184b7Schristos with_fp=no ;; 153*075184b7Schristos 154*075184b7Schristos -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 155*075184b7Schristos | --no-cr | --no-c) 156*075184b7Schristos no_create=yes ;; 157*075184b7Schristos 158*075184b7Schristos -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 159*075184b7Schristos | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 160*075184b7Schristos no_recursion=yes ;; 161*075184b7Schristos 162*075184b7Schristos -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 163*075184b7Schristos ac_prev=prefix ;; 164*075184b7Schristos -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 165*075184b7Schristos prefix="$ac_optarg" ;; 166*075184b7Schristos 167*075184b7Schristos -program-prefix | --program-prefix | --program-prefi | --program-pref \ 168*075184b7Schristos | --program-pre | --program-pr | --program-p) 169*075184b7Schristos ac_prev=program_prefix ;; 170*075184b7Schristos -program-prefix=* | --program-prefix=* | --program-prefi=* \ 171*075184b7Schristos | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 172*075184b7Schristos program_prefix="$ac_optarg" ;; 173*075184b7Schristos 174*075184b7Schristos -program-suffix | --program-suffix | --program-suffi | --program-suff \ 175*075184b7Schristos | --program-suf | --program-su | --program-s) 176*075184b7Schristos ac_prev=program_suffix ;; 177*075184b7Schristos -program-suffix=* | --program-suffix=* | --program-suffi=* \ 178*075184b7Schristos | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 179*075184b7Schristos program_suffix="$ac_optarg" ;; 180*075184b7Schristos 181*075184b7Schristos -program-transform-name | --program-transform-name \ 182*075184b7Schristos | --program-transform-nam | --program-transform-na \ 183*075184b7Schristos | --program-transform-n | --program-transform- \ 184*075184b7Schristos | --program-transform | --program-transfor \ 185*075184b7Schristos | --program-transfo | --program-transf \ 186*075184b7Schristos | --program-trans | --program-tran \ 187*075184b7Schristos | --progr-tra | --program-tr | --program-t) 188*075184b7Schristos ac_prev=program_transform_name ;; 189*075184b7Schristos -program-transform-name=* | --program-transform-name=* \ 190*075184b7Schristos | --program-transform-nam=* | --program-transform-na=* \ 191*075184b7Schristos | --program-transform-n=* | --program-transform-=* \ 192*075184b7Schristos | --program-transform=* | --program-transfor=* \ 193*075184b7Schristos | --program-transfo=* | --program-transf=* \ 194*075184b7Schristos | --program-trans=* | --program-tran=* \ 195*075184b7Schristos | --progr-tra=* | --program-tr=* | --program-t=*) 196*075184b7Schristos program_transform_name="$ac_optarg" ;; 197*075184b7Schristos 198*075184b7Schristos -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 199*075184b7Schristos | -silent | --silent | --silen | --sile | --sil) 200*075184b7Schristos silent=yes ;; 201*075184b7Schristos 202*075184b7Schristos -site | --site | --sit) 203*075184b7Schristos ac_prev=site ;; 204*075184b7Schristos -site=* | --site=* | --sit=*) 205*075184b7Schristos site="$ac_optarg" ;; 206*075184b7Schristos 207*075184b7Schristos -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 208*075184b7Schristos ac_prev=srcdir ;; 209*075184b7Schristos -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 210*075184b7Schristos srcdir="$ac_optarg" ;; 211*075184b7Schristos 212*075184b7Schristos -target | --target | --targe | --targ | --tar | --ta | --t) 213*075184b7Schristos ac_prev=target ;; 214*075184b7Schristos -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 215*075184b7Schristos target="$ac_optarg" ;; 216*075184b7Schristos 217*075184b7Schristos -v | -verbose | --verbose | --verbos | --verbo | --verb) 218*075184b7Schristos verbose=yes ;; 219*075184b7Schristos 220*075184b7Schristos -version | --version | --versio | --versi | --vers) 221*075184b7Schristos echo "configure generated by autoconf version 2.4" 222*075184b7Schristos exit 0 ;; 223*075184b7Schristos 224*075184b7Schristos -with-* | --with-*) 225*075184b7Schristos ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 226*075184b7Schristos # Reject names that are not valid shell variable names. 227*075184b7Schristos if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 228*075184b7Schristos { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 229*075184b7Schristos fi 230*075184b7Schristos ac_package=`echo $ac_package| sed 's/-/_/g'` 231*075184b7Schristos case "$ac_option" in 232*075184b7Schristos *=*) ;; 233*075184b7Schristos *) ac_optarg=yes ;; 234*075184b7Schristos esac 235*075184b7Schristos eval "with_${ac_package}='$ac_optarg'" ;; 236*075184b7Schristos 237*075184b7Schristos -without-* | --without-*) 238*075184b7Schristos ac_package=`echo $ac_option|sed -e 's/-*without-//'` 239*075184b7Schristos # Reject names that are not valid shell variable names. 240*075184b7Schristos if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 241*075184b7Schristos { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 242*075184b7Schristos fi 243*075184b7Schristos ac_package=`echo $ac_package| sed 's/-/_/g'` 244*075184b7Schristos eval "with_${ac_package}=no" ;; 245*075184b7Schristos 246*075184b7Schristos --x) 247*075184b7Schristos # Obsolete; use --with-x. 248*075184b7Schristos with_x=yes ;; 249*075184b7Schristos 250*075184b7Schristos -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 251*075184b7Schristos | --x-incl | --x-inc | --x-in | --x-i) 252*075184b7Schristos ac_prev=x_includes ;; 253*075184b7Schristos -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 254*075184b7Schristos | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 255*075184b7Schristos x_includes="$ac_optarg" ;; 256*075184b7Schristos 257*075184b7Schristos -x-libraries | --x-libraries | --x-librarie | --x-librari \ 258*075184b7Schristos | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 259*075184b7Schristos ac_prev=x_libraries ;; 260*075184b7Schristos -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 261*075184b7Schristos | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 262*075184b7Schristos x_libraries="$ac_optarg" ;; 263*075184b7Schristos 264*075184b7Schristos -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 265*075184b7Schristos ;; 266*075184b7Schristos 267*075184b7Schristos *) 268*075184b7Schristos if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 269*075184b7Schristos echo "configure: warning: $ac_option: invalid host type" 1>&2 270*075184b7Schristos fi 271*075184b7Schristos if test "x$nonopt" != xNONE; then 272*075184b7Schristos { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 273*075184b7Schristos fi 274*075184b7Schristos nonopt="$ac_option" 275*075184b7Schristos ;; 276*075184b7Schristos 277*075184b7Schristos esac 278*075184b7Schristosdone 279*075184b7Schristos 280*075184b7Schristosif test -n "$ac_prev"; then 281*075184b7Schristos { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 282*075184b7Schristosfi 283*075184b7Schristos 284*075184b7Schristostrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 285*075184b7Schristos 286*075184b7Schristos# File descriptor usage: 287*075184b7Schristos# 0 standard input 288*075184b7Schristos# 1 file creation 289*075184b7Schristos# 2 errors and warnings 290*075184b7Schristos# 3 some systems may open it to /dev/tty 291*075184b7Schristos# 4 used on the Kubota Titan 292*075184b7Schristos# 6 checking for... messages and results 293*075184b7Schristos# 5 compiler messages saved in config.log 294*075184b7Schristosif test "$silent" = yes; then 295*075184b7Schristos exec 6>/dev/null 296*075184b7Schristoselse 297*075184b7Schristos exec 6>&1 298*075184b7Schristosfi 299*075184b7Schristosexec 5>./config.log 300*075184b7Schristos 301*075184b7Schristosecho "\ 302*075184b7SchristosThis file contains any messages produced by compilers while 303*075184b7Schristosrunning configure, to aid debugging if configure makes a mistake. 304*075184b7Schristos" 1>&5 305*075184b7Schristos 306*075184b7Schristos# Strip out --no-create and --no-recursion so they do not pile up. 307*075184b7Schristos# Also quote any args containing shell metacharacters. 308*075184b7Schristosac_configure_args= 309*075184b7Schristosfor ac_arg 310*075184b7Schristosdo 311*075184b7Schristos case "$ac_arg" in 312*075184b7Schristos -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 313*075184b7Schristos | --no-cr | --no-c) ;; 314*075184b7Schristos -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 315*075184b7Schristos | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 316*075184b7Schristos *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 317*075184b7Schristos ac_configure_args="$ac_configure_args '$ac_arg'" ;; 318*075184b7Schristos *) ac_configure_args="$ac_configure_args $ac_arg" ;; 319*075184b7Schristos esac 320*075184b7Schristosdone 321*075184b7Schristos 322*075184b7Schristos# NLS nuisances. 323*075184b7Schristos# Only set LANG and LC_ALL to C if already set. 324*075184b7Schristos# These must not be set unconditionally because not all systems understand 325*075184b7Schristos# e.g. LANG=C (notably SCO). 326*075184b7Schristosif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 327*075184b7Schristosif test "${LANG+set}" = set; then LANG=C; export LANG; fi 328*075184b7Schristos 329*075184b7Schristos# confdefs.h avoids OS command line length limits that DEFS can exceed. 330*075184b7Schristosrm -rf conftest* confdefs.h 331*075184b7Schristos# AIX cpp loses on an empty file, so make sure it contains at least a newline. 332*075184b7Schristosecho > confdefs.h 333*075184b7Schristos 334*075184b7Schristos# A filename unique to this package, relative to the directory that 335*075184b7Schristos# configure is in, which we can look for to find out if srcdir is correct. 336*075184b7Schristosac_unique_file=src/rcsbase.h 337*075184b7Schristos 338*075184b7Schristos# Find the source files, if location was not specified. 339*075184b7Schristosif test -z "$srcdir"; then 340*075184b7Schristos ac_srcdir_defaulted=yes 341*075184b7Schristos # Try the directory containing this script, then its parent. 342*075184b7Schristos ac_prog=$0 343*075184b7Schristos ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 344*075184b7Schristos test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 345*075184b7Schristos srcdir=$ac_confdir 346*075184b7Schristos if test ! -r $srcdir/$ac_unique_file; then 347*075184b7Schristos srcdir=.. 348*075184b7Schristos fi 349*075184b7Schristoselse 350*075184b7Schristos ac_srcdir_defaulted=no 351*075184b7Schristosfi 352*075184b7Schristosif test ! -r $srcdir/$ac_unique_file; then 353*075184b7Schristos if test "$ac_srcdir_defaulted" = yes; then 354*075184b7Schristos { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 355*075184b7Schristos else 356*075184b7Schristos { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 357*075184b7Schristos fi 358*075184b7Schristosfi 359*075184b7Schristossrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 360*075184b7Schristos 361*075184b7Schristos# Prefer explicitly selected file to automatically selected ones. 362*075184b7Schristosif test -z "$CONFIG_SITE"; then 363*075184b7Schristos if test "x$prefix" != xNONE; then 364*075184b7Schristos CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 365*075184b7Schristos else 366*075184b7Schristos CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 367*075184b7Schristos fi 368*075184b7Schristosfi 369*075184b7Schristosfor ac_site_file in $CONFIG_SITE; do 370*075184b7Schristos if test -r "$ac_site_file"; then 371*075184b7Schristos echo "loading site script $ac_site_file" 372*075184b7Schristos . "$ac_site_file" 373*075184b7Schristos fi 374*075184b7Schristosdone 375*075184b7Schristos 376*075184b7Schristosif test -r "$cache_file"; then 377*075184b7Schristos echo "loading cache $cache_file" 378*075184b7Schristos . $cache_file 379*075184b7Schristoselse 380*075184b7Schristos echo "creating cache $cache_file" 381*075184b7Schristos > $cache_file 382*075184b7Schristosfi 383*075184b7Schristos 384*075184b7Schristosac_ext=c 385*075184b7Schristos# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 386*075184b7Schristosac_cpp='$CPP $CPPFLAGS' 387*075184b7Schristosac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' 388*075184b7Schristosac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' 389*075184b7Schristos 390*075184b7Schristosif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 391*075184b7Schristos # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 392*075184b7Schristos if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 393*075184b7Schristos ac_n= ac_c=' 394*075184b7Schristos' ac_t=' ' 395*075184b7Schristos else 396*075184b7Schristos ac_n=-n ac_c= ac_t= 397*075184b7Schristos fi 398*075184b7Schristoselse 399*075184b7Schristos ac_n= ac_c='\c' ac_t= 400*075184b7Schristosfi 401*075184b7Schristos 402*075184b7Schristos 403*075184b7Schristos 404*075184b7Schristos# Set up simple `diff' test. 405*075184b7Schristosecho 0 >conftest0 406*075184b7Schristosecho 0 >conftest0c 407*075184b7Schristosecho 1 >conftest1 408*075184b7Schristoscat >conftestok <<'EOF' 409*075184b7Schristosd1 1 410*075184b7Schristosa1 1 411*075184b7Schristos1 412*075184b7SchristosEOF 413*075184b7Schristos 414*075184b7Schristos# Check whether --with-diffutils or --without-diffutils was given. 415*075184b7Schristoswithval="$with_diffutils" 416*075184b7Schristosif test -n "$withval"; then 417*075184b7Schristos with_diffutils=$withval 418*075184b7Schristoselse 419*075184b7Schristos with_diffutils=no 420*075184b7Schristos 421*075184b7Schristosfi 422*075184b7Schristos 423*075184b7Schristos 424*075184b7Schristoscase $with_diffutils in 425*075184b7Schristosyes) 426*075184b7Schristos : ${DIFF='$(bindir)/diff'} 427*075184b7Schristos : ${DIFF3=${DIFF}3} 428*075184b7Schristos : ${DIFF3_BIN=1} 429*075184b7Schristos : ${DIFFFLAGS=-an} 430*075184b7Schristos : ${DIFF_FAILURE=1} 431*075184b7Schristos : ${DIFF_L=1} 432*075184b7Schristos : ${DIFF_SUCCESS=0} 433*075184b7Schristos : ${DIFF_TROUBLE=2} 434*075184b7Schristosesac 435*075184b7Schristos 436*075184b7Schristos# Set DIFF to the name of the `diff' program to be run. 437*075184b7Schristos# On some systems, the RCS-compatible diff program is called `rdiff'; 438*075184b7Schristos# use it if it works and `diff' doesn't. 439*075184b7Schristos 440*075184b7Schristosecho $ac_n "checking diff basename""... $ac_c" 1>&6 441*075184b7Schristosif eval "test \"`echo '$''{'rcs_cv_prog_diff'+set}'`\" = set"; then 442*075184b7Schristos echo $ac_n "(cached) $ac_c" 1>&6 443*075184b7Schristoselse 444*075184b7Schristos 445*075184b7Schristos rcs_cv_prog_diff=$DIFF 446*075184b7Schristos case $rcs_cv_prog_diff in 447*075184b7Schristos '') 448*075184b7Schristos for i in diff /usr/lib/rdiff rdiff 449*075184b7Schristos do 450*075184b7Schristos sh -c "exec $i -n conftest0 conftest1" >conftestout 2>/dev/null 451*075184b7Schristos case $? in 452*075184b7Schristos 1) 453*075184b7Schristos if cmp -s conftestok conftestout 454*075184b7Schristos then rcs_cv_prog_diff=$i; break 455*075184b7Schristos fi 456*075184b7Schristos ;; 457*075184b7Schristos esac 458*075184b7Schristos done 459*075184b7Schristos ;; 460*075184b7Schristos esac 461*075184b7Schristos 462*075184b7Schristosfi 463*075184b7Schristos 464*075184b7SchristosDIFF=$rcs_cv_prog_diff 465*075184b7Schristoscase $DIFF in 466*075184b7Schristos'') { echo "configure: error: cannot find RCS-compatible diff" 1>&2; exit 1; };; 467*075184b7Schristosesac 468*075184b7Schristosecho "$ac_t""$DIFF" 1>&6 469*075184b7Schristos# Extract the first word of "$DIFF", so it can be a program name with args. 470*075184b7Schristosset dummy $DIFF; ac_word=$2 471*075184b7Schristosecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 472*075184b7Schristosif eval "test \"`echo '$''{'ac_cv_path_DIFF'+set}'`\" = set"; then 473*075184b7Schristos echo $ac_n "(cached) $ac_c" 1>&6 474*075184b7Schristoselse 475*075184b7Schristos case "$DIFF" in 476*075184b7Schristos /*) 477*075184b7Schristos ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 478*075184b7Schristos ;; 479*075184b7Schristos *) 480*075184b7Schristos IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 481*075184b7Schristos for ac_dir in $PATH; do 482*075184b7Schristos test -z "$ac_dir" && ac_dir=. 483*075184b7Schristos if test -f $ac_dir/$ac_word; then 484*075184b7Schristos ac_cv_path_DIFF="$ac_dir/$ac_word" 485*075184b7Schristos break 486*075184b7Schristos fi 487*075184b7Schristos done 488*075184b7Schristos IFS="$ac_save_ifs" 489*075184b7Schristos test -z "$ac_cv_path_DIFF" && ac_cv_path_DIFF="$DIFF" 490*075184b7Schristos ;; 491*075184b7Schristosesac 492*075184b7Schristosfi 493*075184b7SchristosDIFF="$ac_cv_path_DIFF" 494*075184b7Schristosif test -n "$DIFF"; then 495*075184b7Schristos echo "$ac_t""$DIFF" 1>&6 496*075184b7Schristoselse 497*075184b7Schristos echo "$ac_t""no" 1>&6 498*075184b7Schristosfi 499*075184b7Schristos 500*075184b7Schristos 501*075184b7Schristos# Set DIFF_SUCCESS, DIFF_FAILURE, DIFF_TROUBLE to diff's exit status 502*075184b7Schristos# when it finds no differences, some differences, or trouble. 503*075184b7Schristos 504*075184b7Schristosecho $ac_n "checking diff success status""... $ac_c" 1>&6 505*075184b7Schristosif eval "test \"`echo '$''{'rcs_cv_status_diff_success'+set}'`\" = set"; then 506*075184b7Schristos echo $ac_n "(cached) $ac_c" 1>&6 507*075184b7Schristoselse 508*075184b7Schristos 509*075184b7Schristos rcs_cv_status_diff_success=$DIFF_SUCCESS 510*075184b7Schristos case $rcs_cv_status_diff_success in 511*075184b7Schristos '') 512*075184b7Schristos # We can't use `$DIFF conftest0 conftest0', 513*075184b7Schristos # since buggy NEXTSTEP 3.0 diff silently yields exit status 2 for this. 514*075184b7Schristos $DIFF conftest0 conftest0c >/dev/null 2>&1 515*075184b7Schristos rcs_cv_status_diff_success=$? 516*075184b7Schristos ;; 517*075184b7Schristos esac 518*075184b7Schristos 519*075184b7Schristosfi 520*075184b7Schristos 521*075184b7SchristosDIFF_SUCCESS=$rcs_cv_status_diff_success 522*075184b7Schristosecho "$ac_t""$DIFF_SUCCESS" 1>&6 523*075184b7Schristos# 524*075184b7Schristos 525*075184b7Schristosecho $ac_n "checking diff failure status""... $ac_c" 1>&6 526*075184b7Schristosif eval "test \"`echo '$''{'rcs_cv_status_diff_failure'+set}'`\" = set"; then 527*075184b7Schristos echo $ac_n "(cached) $ac_c" 1>&6 528*075184b7Schristoselse 529*075184b7Schristos 530*075184b7Schristos rcs_cv_status_diff_failure=$DIFF_FAILURE 531*075184b7Schristos case $rcs_cv_status_diff_failure in 532*075184b7Schristos '') 533*075184b7Schristos $DIFF conftest0 conftest1 >/dev/null 2>&1 534*075184b7Schristos rcs_cv_status_diff_failure=$? 535*075184b7Schristos ;; 536*075184b7Schristos esac 537*075184b7Schristos 538*075184b7Schristosfi 539*075184b7Schristos 540*075184b7SchristosDIFF_FAILURE=$rcs_cv_status_diff_failure 541*075184b7Schristosecho "$ac_t""$DIFF_FAILURE" 1>&6 542*075184b7Schristos# 543*075184b7Schristos 544*075184b7Schristosecho $ac_n "checking diff trouble status""... $ac_c" 1>&6 545*075184b7Schristosif eval "test \"`echo '$''{'rcs_cv_status_diff_trouble'+set}'`\" = set"; then 546*075184b7Schristos echo $ac_n "(cached) $ac_c" 1>&6 547*075184b7Schristoselse 548*075184b7Schristos 549*075184b7Schristos rcs_cv_status_diff_trouble=$DIFF_TROUBLE 550*075184b7Schristos case $rcs_cv_status_diff_trouble in 551*075184b7Schristos '') 552*075184b7Schristos $DIFF conftest0 no/such/file >/dev/null 2>&1 553*075184b7Schristos rcs_cv_status_diff_trouble=$? 554*075184b7Schristos ;; 555*075184b7Schristos esac 556*075184b7Schristos 557*075184b7Schristosfi 558*075184b7Schristos 559*075184b7SchristosDIFF_TROUBLE=$rcs_cv_status_diff_trouble 560*075184b7Schristosecho "$ac_t""$DIFF_TROUBLE" 1>&6 561*075184b7Schristos 562*075184b7Schristos# Set DIFFFLAGS to the options of the `diff' program to be run. 563*075184b7Schristos# Use -an if possible, -n otherwise. 564*075184b7Schristos 565*075184b7Schristosecho $ac_n "checking diff options for RCS""... $ac_c" 1>&6 566*075184b7Schristosif eval "test \"`echo '$''{'rcs_cv_options_diff'+set}'`\" = set"; then 567*075184b7Schristos echo $ac_n "(cached) $ac_c" 1>&6 568*075184b7Schristoselse 569*075184b7Schristos 570*075184b7Schristos rcs_cv_options_diff=$DIFFFLAGS 571*075184b7Schristos case $rcs_cv_options_diff in 572*075184b7Schristos '') 573*075184b7Schristos rcs_cv_options_diff=-n 574*075184b7Schristos $DIFF -an conftest0 conftest1 >conftestout 2>conftestout2 575*075184b7Schristos case $? in 576*075184b7Schristos 1) 577*075184b7Schristos if cmp -s conftestok conftestout && test ! -s conftestout2 578*075184b7Schristos then rcs_cv_options_diff=-an 579*075184b7Schristos fi 580*075184b7Schristos ;; 581*075184b7Schristos esac 582*075184b7Schristos ;; 583*075184b7Schristos esac 584*075184b7Schristos 585*075184b7Schristosfi 586*075184b7Schristos 587*075184b7SchristosDIFFFLAGS=$rcs_cv_options_diff 588*075184b7Schristosecho "$ac_t""$DIFFFLAGS" 1>&6 589*075184b7Schristos 590*075184b7Schristos# Set DIFF_L to 1 if diff understands the L option, 0 otherwise. 591*075184b7Schristos 592*075184b7Schristosecho $ac_n "checking diff -L""... $ac_c" 1>&6 593*075184b7Schristosif eval "test \"`echo '$''{'rcs_cv_options_diff_l'+set}'`\" = set"; then 594*075184b7Schristos echo $ac_n "(cached) $ac_c" 1>&6 595*075184b7Schristoselse 596*075184b7Schristos 597*075184b7Schristos rcs_cv_options_diff_l=$DIFF_L 598*075184b7Schristos case $rcs_cv_options_diff_l in 599*075184b7Schristos '') 600*075184b7Schristos rcs_cv_options_diff_l=0 601*075184b7Schristos $DIFF -c -L 0 -L 1 conftest0 conftest1 >conftestout 2>/dev/null 602*075184b7Schristos case $? in 603*075184b7Schristos 1) 604*075184b7Schristos if cmp -s - conftestout <<'EOF' 605*075184b7Schristos*** 0 606*075184b7Schristos--- 1 607*075184b7Schristos*************** 608*075184b7Schristos*** 1 **** 609*075184b7Schristos! 0 610*075184b7Schristos--- 1 ---- 611*075184b7Schristos! 1 612*075184b7SchristosEOF 613*075184b7Schristos then rcs_cv_options_diff_l=1 614*075184b7Schristos fi 615*075184b7Schristos ;; 616*075184b7Schristos esac 617*075184b7Schristos ;; 618*075184b7Schristos esac 619*075184b7Schristos 620*075184b7Schristosfi 621*075184b7Schristos 622*075184b7SchristosDIFF_L=$rcs_cv_options_diff_l 623*075184b7Schristoscase $DIFF_L in 624*075184b7Schristos1) echo "$ac_t""yes" 1>&6;; 625*075184b7Schristos*) echo "$ac_t""no" 1>&6;; 626*075184b7Schristosesac 627*075184b7Schristos 628*075184b7Schristos# Set DIFF3 to the name of the diff3 program. 629*075184b7Schristos# In some systems (e.g. BSD/OS 2.0), diffutils diff3 lives in /usr/libexec. 630*075184b7Schristosdiff3PATH=$PATH:/usr/libexec 631*075184b7Schristos 632*075184b7Schristosecho $ac_n "checking diff3 -m""... $ac_c" 1>&6 633*075184b7Schristosif eval "test \"`echo '$''{'rcs_cv_prog_diff3_bin'+set}'`\" = set"; then 634*075184b7Schristos echo $ac_n "(cached) $ac_c" 1>&6 635*075184b7Schristoselse 636*075184b7Schristos 637*075184b7Schristos rcs_cv_prog_diff3_bin=$DIFF3 638*075184b7Schristos case $rcs_cv_prog_diff3_bin in 639*075184b7Schristos '') 640*075184b7Schristos PATH=$diff3PATH sh -c "exec diff3 -E -m -L 0 -L 1 -L 2 conftest0 conftest1 /dev/null" >conftestout 2>/dev/null 641*075184b7Schristos case $? in 642*075184b7Schristos 1) 643*075184b7Schristos if cmp -s - conftestout <<'EOF' 644*075184b7Schristos<<<<<<< 0 645*075184b7Schristos0 646*075184b7Schristos======= 647*075184b7Schristos>>>>>>> 2 648*075184b7SchristosEOF 649*075184b7Schristos then rcs_cv_prog_diff3_bin=diff3 650*075184b7Schristos fi 651*075184b7Schristos ;; 652*075184b7Schristos esac 653*075184b7Schristos ;; 654*075184b7Schristos esac 655*075184b7Schristos 656*075184b7Schristosfi 657*075184b7Schristos 658*075184b7Schristoscase $rcs_cv_prog_diff3_bin in 659*075184b7Schristos?*) 660*075184b7Schristos echo "$ac_t""yes" 1>&6 661*075184b7Schristos ac_save_path=$PATH 662*075184b7Schristos PATH=$diff3PATH 663*075184b7Schristos # Extract the first word of "$rcs_cv_prog_diff3_bin", so it can be a program name with args. 664*075184b7Schristosset dummy $rcs_cv_prog_diff3_bin; ac_word=$2 665*075184b7Schristosecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 666*075184b7Schristosif eval "test \"`echo '$''{'ac_cv_path_DIFF3'+set}'`\" = set"; then 667*075184b7Schristos echo $ac_n "(cached) $ac_c" 1>&6 668*075184b7Schristoselse 669*075184b7Schristos case "$DIFF3" in 670*075184b7Schristos /*) 671*075184b7Schristos ac_cv_path_DIFF3="$DIFF3" # Let the user override the test with a path. 672*075184b7Schristos ;; 673*075184b7Schristos *) 674*075184b7Schristos IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 675*075184b7Schristos for ac_dir in $PATH; do 676*075184b7Schristos test -z "$ac_dir" && ac_dir=. 677*075184b7Schristos if test -f $ac_dir/$ac_word; then 678*075184b7Schristos ac_cv_path_DIFF3="$ac_dir/$ac_word" 679*075184b7Schristos break 680*075184b7Schristos fi 681*075184b7Schristos done 682*075184b7Schristos IFS="$ac_save_ifs" 683*075184b7Schristos test -z "$ac_cv_path_DIFF3" && ac_cv_path_DIFF3="$rcs_cv_prog_diff3_bin" 684*075184b7Schristos ;; 685*075184b7Schristosesac 686*075184b7Schristosfi 687*075184b7SchristosDIFF3="$ac_cv_path_DIFF3" 688*075184b7Schristosif test -n "$DIFF3"; then 689*075184b7Schristos echo "$ac_t""$DIFF3" 1>&6 690*075184b7Schristoselse 691*075184b7Schristos echo "$ac_t""no" 1>&6 692*075184b7Schristosfi 693*075184b7Schristos 694*075184b7Schristos PATH=$ac_save_path 695*075184b7Schristos ;; 696*075184b7Schristos'') 697*075184b7Schristos echo "$ac_t""no" 1>&6 698*075184b7Schristos echo $ac_n "checking diff3 library program""... $ac_c" 1>&6 699*075184b7Schristos if eval "test \"`echo '$''{'rcs_cv_path_diff3_lib'+set}'`\" = set"; then 700*075184b7Schristos echo $ac_n "(cached) $ac_c" 1>&6 701*075184b7Schristoselse 702*075184b7Schristos 703*075184b7Schristos $DIFF conftest0 conftest1 >conftest01 704*075184b7Schristos $DIFF /dev/null conftest1 >conftestn1 705*075184b7Schristos for i in /usr/*lib*/*diff3*; do 706*075184b7Schristos sh -c "exec $i -E conftest01 conftestn1 conftest0 /dev/null conftest1" >conftestout 2>/dev/null 707*075184b7Schristos # The exit status is arbitrary! Test the output a bit. 708*075184b7Schristos if 709*075184b7Schristos grep '^<<* *conftest0$' conftestout >/dev/null 2>&1 && 710*075184b7Schristos grep '^>>* *conftest1$' conftestout >/dev/null 2>&1 && 711*075184b7Schristos grep '^0a$' conftestout >/dev/null 2>&1 712*075184b7Schristos then 713*075184b7Schristos rcs_cv_path_diff3_lib=$i 714*075184b7Schristos break 715*075184b7Schristos fi 716*075184b7Schristos done 717*075184b7Schristos 718*075184b7Schristosfi 719*075184b7Schristos 720*075184b7Schristos DIFF3=$rcs_cv_path_diff3_lib 721*075184b7Schristos case $DIFF3 in 722*075184b7Schristos '') { echo "configure: error: cannot find a working diff3 library program" 1>&2; exit 1; };; 723*075184b7Schristos ?*) echo "$ac_t""$DIFF3" 1>&6;; 724*075184b7Schristos esac 725*075184b7Schristos ;; 726*075184b7Schristosesac 727*075184b7Schristos 728*075184b7Schristos 729*075184b7Schristoscase $DIFF3_BIN in 730*075184b7Schristos'') 731*075184b7Schristos case $rcs_cv_prog_diff3_bin in 732*075184b7Schristos '') DIFF3_BIN=0;; 733*075184b7Schristos ?*) DIFF3_BIN=1;; 734*075184b7Schristos esac 735*075184b7Schristos ;; 736*075184b7Schristosesac 737*075184b7Schristos 738*075184b7Schristos# Clean up simple `diff' test. 739*075184b7Schristosrm -f conftest* 740*075184b7Schristos 741*075184b7Schristos# Extract the first word of "ed", so it can be a program name with args. 742*075184b7Schristosset dummy ed; ac_word=$2 743*075184b7Schristosecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 744*075184b7Schristosif eval "test \"`echo '$''{'ac_cv_path_ED'+set}'`\" = set"; then 745*075184b7Schristos echo $ac_n "(cached) $ac_c" 1>&6 746*075184b7Schristoselse 747*075184b7Schristos case "$ED" in 748*075184b7Schristos /*) 749*075184b7Schristos ac_cv_path_ED="$ED" # Let the user override the test with a path. 750*075184b7Schristos ;; 751*075184b7Schristos *) 752*075184b7Schristos IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 753*075184b7Schristos for ac_dir in $PATH; do 754*075184b7Schristos test -z "$ac_dir" && ac_dir=. 755*075184b7Schristos if test -f $ac_dir/$ac_word; then 756*075184b7Schristos ac_cv_path_ED="$ac_dir/$ac_word" 757*075184b7Schristos break 758*075184b7Schristos fi 759*075184b7Schristos done 760*075184b7Schristos IFS="$ac_save_ifs" 761*075184b7Schristos test -z "$ac_cv_path_ED" && ac_cv_path_ED="ed" 762*075184b7Schristos ;; 763*075184b7Schristosesac 764*075184b7Schristosfi 765*075184b7SchristosED="$ac_cv_path_ED" 766*075184b7Schristosif test -n "$ED"; then 767*075184b7Schristos echo "$ac_t""$ED" 1>&6 768*075184b7Schristoselse 769*075184b7Schristos echo "$ac_t""no" 1>&6 770*075184b7Schristosfi 771*075184b7Schristos 772*075184b7Schristos 773*075184b7Schristosac_save_path=$PATH 774*075184b7SchristosPATH=/usr/lib:/usr/bin:/bin:/usr/sbin:/sbin:$PATH 775*075184b7Schristosfor ac_prog in sendmail mail mailx 776*075184b7Schristosdo 777*075184b7Schristos# Extract the first word of "$ac_prog", so it can be a program name with args. 778*075184b7Schristosset dummy $ac_prog; ac_word=$2 779*075184b7Schristosecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 780*075184b7Schristosif eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then 781*075184b7Schristos echo $ac_n "(cached) $ac_c" 1>&6 782*075184b7Schristoselse 783*075184b7Schristos case "$SENDMAIL" in 784*075184b7Schristos /*) 785*075184b7Schristos ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path. 786*075184b7Schristos ;; 787*075184b7Schristos *) 788*075184b7Schristos IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 789*075184b7Schristos for ac_dir in $PATH; do 790*075184b7Schristos test -z "$ac_dir" && ac_dir=. 791*075184b7Schristos if test -f $ac_dir/$ac_word; then 792*075184b7Schristos ac_cv_path_SENDMAIL="$ac_dir/$ac_word" 793*075184b7Schristos break 794*075184b7Schristos fi 795*075184b7Schristos done 796*075184b7Schristos IFS="$ac_save_ifs" 797*075184b7Schristos ;; 798*075184b7Schristosesac 799*075184b7Schristosfi 800*075184b7SchristosSENDMAIL="$ac_cv_path_SENDMAIL" 801*075184b7Schristosif test -n "$SENDMAIL"; then 802*075184b7Schristos echo "$ac_t""$SENDMAIL" 1>&6 803*075184b7Schristoselse 804*075184b7Schristos echo "$ac_t""no" 1>&6 805*075184b7Schristosfi 806*075184b7Schristos 807*075184b7Schristostest -n "$SENDMAIL" && break 808*075184b7Schristosdone 809*075184b7Schristos 810*075184b7SchristosPATH=$ac_save_path 811*075184b7Schristoscase $SENDMAIL in 812*075184b7Schristos?*) SENDMAIL=\"$SENDMAIL\" 813*075184b7Schristosesac 814*075184b7Schristos 815*075184b7Schristos# Use the GNU pic -n option if available; it avoids GNU extensions, 816*075184b7Schristos# which is need for proper operation to generate a portable man page. 817*075184b7Schristos# Similarly, if using traditional pic, use its -D option. 818*075184b7Schristosfor ac_prog in "pic -n" "gpic -n" "pic -D" "pic" 819*075184b7Schristosdo 820*075184b7Schristos# Extract the first word of "$ac_prog", so it can be a program name with args. 821*075184b7Schristosset dummy $ac_prog; ac_word=$2 822*075184b7Schristosecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 823*075184b7Schristosif eval "test \"`echo '$''{'ac_cv_prog_PIC'+set}'`\" = set"; then 824*075184b7Schristos echo $ac_n "(cached) $ac_c" 1>&6 825*075184b7Schristoselse 826*075184b7Schristos if test -n "$PIC"; then 827*075184b7Schristos ac_cv_prog_PIC="$PIC" # Let the user override the test. 828*075184b7Schristoselse 829*075184b7Schristos IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 830*075184b7Schristos for ac_dir in $PATH; do 831*075184b7Schristos test -z "$ac_dir" && ac_dir=. 832*075184b7Schristos if test -f $ac_dir/$ac_word; then 833*075184b7Schristos ac_cv_prog_PIC="$ac_prog" 834*075184b7Schristos break 835*075184b7Schristos fi 836*075184b7Schristos done 837*075184b7Schristos IFS="$ac_save_ifs" 838*075184b7Schristosfi 839*075184b7Schristosfi 840*075184b7SchristosPIC="$ac_cv_prog_PIC" 841*075184b7Schristosif test -n "$PIC"; then 842*075184b7Schristos echo "$ac_t""$PIC" 1>&6 843*075184b7Schristoselse 844*075184b7Schristos echo "$ac_t""no" 1>&6 845*075184b7Schristosfi 846*075184b7Schristos 847*075184b7Schristostest -n "$PIC" && break 848*075184b7Schristosdone 849*075184b7Schristostest -n "$PIC" || PIC="pic" 850*075184b7Schristos 851*075184b7Schristos 852*075184b7Schristos# Extract the first word of "gcc", so it can be a program name with args. 853*075184b7Schristosset dummy gcc; ac_word=$2 854*075184b7Schristosecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 855*075184b7Schristosif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 856*075184b7Schristos echo $ac_n "(cached) $ac_c" 1>&6 857*075184b7Schristoselse 858*075184b7Schristos if test -n "$CC"; then 859*075184b7Schristos ac_cv_prog_CC="$CC" # Let the user override the test. 860*075184b7Schristoselse 861*075184b7Schristos IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 862*075184b7Schristos for ac_dir in $PATH; do 863*075184b7Schristos test -z "$ac_dir" && ac_dir=. 864*075184b7Schristos if test -f $ac_dir/$ac_word; then 865*075184b7Schristos ac_cv_prog_CC="gcc" 866*075184b7Schristos break 867*075184b7Schristos fi 868*075184b7Schristos done 869*075184b7Schristos IFS="$ac_save_ifs" 870*075184b7Schristos test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc" 871*075184b7Schristosfi 872*075184b7Schristosfi 873*075184b7SchristosCC="$ac_cv_prog_CC" 874*075184b7Schristosif test -n "$CC"; then 875*075184b7Schristos echo "$ac_t""$CC" 1>&6 876*075184b7Schristoselse 877*075184b7Schristos echo "$ac_t""no" 1>&6 878*075184b7Schristosfi 879*075184b7Schristos 880*075184b7Schristos 881*075184b7Schristosecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 882*075184b7Schristosif eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 883*075184b7Schristos echo $ac_n "(cached) $ac_c" 1>&6 884*075184b7Schristoselse 885*075184b7Schristos cat > conftest.c <<EOF 886*075184b7Schristos#ifdef __GNUC__ 887*075184b7Schristos yes; 888*075184b7Schristos#endif 889*075184b7SchristosEOF 890*075184b7Schristosif ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then 891*075184b7Schristos ac_cv_prog_gcc=yes 892*075184b7Schristoselse 893*075184b7Schristos ac_cv_prog_gcc=no 894*075184b7Schristosfi 895*075184b7Schristosfi 896*075184b7Schristosecho "$ac_t""$ac_cv_prog_gcc" 1>&6 897*075184b7Schristosif test $ac_cv_prog_gcc = yes; then 898*075184b7Schristos GCC=yes 899*075184b7Schristos if test "${CFLAGS+set}" != set; then 900*075184b7Schristos echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 901*075184b7Schristosif eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then 902*075184b7Schristos echo $ac_n "(cached) $ac_c" 1>&6 903*075184b7Schristoselse 904*075184b7Schristos echo 'void f(){}' > conftest.c 905*075184b7Schristosif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 906*075184b7Schristos ac_cv_prog_gcc_g=yes 907*075184b7Schristoselse 908*075184b7Schristos ac_cv_prog_gcc_g=no 909*075184b7Schristosfi 910*075184b7Schristosrm -f conftest* 911*075184b7Schristos 912*075184b7Schristosfi 913*075184b7Schristos echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6 914*075184b7Schristos if test $ac_cv_prog_gcc_g = yes; then 915*075184b7Schristos CFLAGS="-g -O" 916*075184b7Schristos else 917*075184b7Schristos CFLAGS="-O" 918*075184b7Schristos fi 919*075184b7Schristos fi 920*075184b7Schristoselse 921*075184b7Schristos GCC= 922*075184b7Schristos test "${CFLAGS+set}" = set || CFLAGS="-g" 923*075184b7Schristosfi 924*075184b7Schristos 925*075184b7Schristosac_aux_dir= 926*075184b7Schristosfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 927*075184b7Schristos if test -f $ac_dir/install-sh; then 928*075184b7Schristos ac_aux_dir=$ac_dir 929*075184b7Schristos ac_install_sh="$ac_aux_dir/install-sh -c" 930*075184b7Schristos break 931*075184b7Schristos elif test -f $ac_dir/install.sh; then 932*075184b7Schristos ac_aux_dir=$ac_dir 933*075184b7Schristos ac_install_sh="$ac_aux_dir/install.sh -c" 934*075184b7Schristos break 935*075184b7Schristos fi 936*075184b7Schristosdone 937*075184b7Schristosif test -z "$ac_aux_dir"; then 938*075184b7Schristos { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 939*075184b7Schristosfi 940*075184b7Schristosac_config_guess=$ac_aux_dir/config.guess 941*075184b7Schristosac_config_sub=$ac_aux_dir/config.sub 942*075184b7Schristosac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 943*075184b7Schristos 944*075184b7Schristos# Find a good install program. We prefer a C program (faster), 945*075184b7Schristos# so one script is as good as another. But avoid the broken or 946*075184b7Schristos# incompatible versions: 947*075184b7Schristos# SysV /etc/install, /usr/sbin/install 948*075184b7Schristos# SunOS /usr/etc/install 949*075184b7Schristos# IRIX /sbin/install 950*075184b7Schristos# AIX /bin/install 951*075184b7Schristos# AFS /usr/afsws/bin/install, which mishandles nonexistent args 952*075184b7Schristos# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 953*075184b7Schristos# ./install, which can be erroneously created by make from ./install.sh. 954*075184b7Schristosecho $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 955*075184b7Schristosif test -z "$INSTALL"; then 956*075184b7Schristosif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 957*075184b7Schristos echo $ac_n "(cached) $ac_c" 1>&6 958*075184b7Schristoselse 959*075184b7Schristos IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 960*075184b7Schristos for ac_dir in $PATH; do 961*075184b7Schristos # Account for people who put trailing slashes in PATH elements. 962*075184b7Schristos case "$ac_dir/" in 963*075184b7Schristos /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 964*075184b7Schristos *) 965*075184b7Schristos # OSF1 and SCO ODT 3.0 have their own names for install. 966*075184b7Schristos for ac_prog in ginstall installbsd scoinst install; do 967*075184b7Schristos if test -f $ac_dir/$ac_prog; then 968*075184b7Schristos if test $ac_prog = install && 969*075184b7Schristos grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 970*075184b7Schristos # AIX install. It has an incompatible calling convention. 971*075184b7Schristos # OSF/1 installbsd also uses dspmsg, but is usable. 972*075184b7Schristos : 973*075184b7Schristos else 974*075184b7Schristos ac_cv_path_install="$ac_dir/$ac_prog -c" 975*075184b7Schristos break 2 976*075184b7Schristos fi 977*075184b7Schristos fi 978*075184b7Schristos done 979*075184b7Schristos ;; 980*075184b7Schristos esac 981*075184b7Schristos done 982*075184b7Schristos IFS="$ac_save_ifs" 983*075184b7Schristos # As a last resort, use the slow shell script. 984*075184b7Schristos test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh" 985*075184b7Schristosfi 986*075184b7Schristos INSTALL="$ac_cv_path_install" 987*075184b7Schristosfi 988*075184b7Schristosecho "$ac_t""$INSTALL" 1>&6 989*075184b7Schristos 990*075184b7Schristos# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 991*075184b7Schristos# It thinks the first close brace ends the variable substitution. 992*075184b7Schristostest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 993*075184b7Schristos 994*075184b7Schristostest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 995*075184b7Schristos 996*075184b7Schristosecho $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 997*075184b7Schristosset dummy ${MAKE-make}; ac_make=$2 998*075184b7Schristosif eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 999*075184b7Schristos echo $ac_n "(cached) $ac_c" 1>&6 1000*075184b7Schristoselse 1001*075184b7Schristos cat > conftestmake <<\EOF 1002*075184b7Schristosall: 1003*075184b7Schristos @echo 'ac_maketemp="${MAKE}"' 1004*075184b7SchristosEOF 1005*075184b7Schristos# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1006*075184b7Schristoseval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 1007*075184b7Schristosif test -n "$ac_maketemp"; then 1008*075184b7Schristos eval ac_cv_prog_make_${ac_make}_set=yes 1009*075184b7Schristoselse 1010*075184b7Schristos eval ac_cv_prog_make_${ac_make}_set=no 1011*075184b7Schristosfi 1012*075184b7Schristosrm -f conftestmake 1013*075184b7Schristosfi 1014*075184b7Schristosif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1015*075184b7Schristos echo "$ac_t""yes" 1>&6 1016*075184b7Schristos SET_MAKE= 1017*075184b7Schristoselse 1018*075184b7Schristos echo "$ac_t""no" 1>&6 1019*075184b7Schristos SET_MAKE="MAKE=${MAKE-make}" 1020*075184b7Schristosfi 1021*075184b7Schristos 1022*075184b7Schristos 1023*075184b7Schristostrap '' 1 2 15 1024*075184b7Schristoscat > confcache <<\EOF 1025*075184b7Schristos# This file is a shell script that caches the results of configure 1026*075184b7Schristos# tests run on this system so they can be shared between configure 1027*075184b7Schristos# scripts and configure runs. It is not useful on other systems. 1028*075184b7Schristos# If it contains results you don't want to keep, you may remove or edit it. 1029*075184b7Schristos# 1030*075184b7Schristos# By default, configure uses ./config.cache as the cache file, 1031*075184b7Schristos# creating it if it does not exist already. You can give configure 1032*075184b7Schristos# the --cache-file=FILE option to use a different cache file; that is 1033*075184b7Schristos# what configure does when it calls configure scripts in 1034*075184b7Schristos# subdirectories, so they share the cache. 1035*075184b7Schristos# Giving --cache-file=/dev/null disables caching, for debugging configure. 1036*075184b7Schristos# config.status only pays attention to the cache file if you give it the 1037*075184b7Schristos# --recheck option to rerun configure. 1038*075184b7Schristos# 1039*075184b7SchristosEOF 1040*075184b7Schristos# Ultrix sh set writes to stderr and can't be redirected directly, 1041*075184b7Schristos# and sets the high bit in the cache file unless we assign to the vars. 1042*075184b7Schristos(set) 2>&1 | 1043*075184b7Schristos sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \ 1044*075184b7Schristos >> confcache 1045*075184b7Schristosif cmp -s $cache_file confcache; then 1046*075184b7Schristos : 1047*075184b7Schristoselse 1048*075184b7Schristos if test -w $cache_file; then 1049*075184b7Schristos echo "updating cache $cache_file" 1050*075184b7Schristos cat confcache > $cache_file 1051*075184b7Schristos else 1052*075184b7Schristos echo "not updating unwritable cache $cache_file" 1053*075184b7Schristos fi 1054*075184b7Schristosfi 1055*075184b7Schristosrm -f confcache 1056*075184b7Schristos 1057*075184b7Schristostrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 1058*075184b7Schristos 1059*075184b7Schristostest "x$prefix" = xNONE && prefix=$ac_default_prefix 1060*075184b7Schristos# Let make expand exec_prefix. 1061*075184b7Schristostest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 1062*075184b7Schristos 1063*075184b7Schristos# Any assignment to VPATH causes Sun make to only execute 1064*075184b7Schristos# the first set of double-colon rules, so remove it if not needed. 1065*075184b7Schristos# If there is a colon in the path, we need to keep it. 1066*075184b7Schristosif test "x$srcdir" = x.; then 1067*075184b7Schristos ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 1068*075184b7Schristosfi 1069*075184b7Schristos 1070*075184b7Schristostrap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 1071*075184b7Schristos 1072*075184b7Schristos# Transform confdefs.h into DEFS. 1073*075184b7Schristos# Protect against shell expansion while executing Makefile rules. 1074*075184b7Schristos# Protect against Makefile macro expansion. 1075*075184b7Schristoscat > conftest.defs <<\EOF 1076*075184b7Schristoss%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g 1077*075184b7Schristoss%[ `~#$^&*(){}\\|;'"<>?]%\\&%g 1078*075184b7Schristoss%\[%\\&%g 1079*075184b7Schristoss%\]%\\&%g 1080*075184b7Schristoss%\$%$$%g 1081*075184b7SchristosEOF 1082*075184b7SchristosDEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` 1083*075184b7Schristosrm -f conftest.defs 1084*075184b7Schristos 1085*075184b7Schristos 1086*075184b7Schristos# Without the "./", some shells look in PATH for config.status. 1087*075184b7Schristos: ${CONFIG_STATUS=./config.status} 1088*075184b7Schristos 1089*075184b7Schristosecho creating $CONFIG_STATUS 1090*075184b7Schristosrm -f $CONFIG_STATUS 1091*075184b7Schristoscat > $CONFIG_STATUS <<EOF 1092*075184b7Schristos#! /bin/sh 1093*075184b7Schristos# Generated automatically by configure. 1094*075184b7Schristos# Run this file to recreate the current configuration. 1095*075184b7Schristos# This directory was configured as follows, 1096*075184b7Schristos# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 1097*075184b7Schristos# 1098*075184b7Schristos# $0 $ac_configure_args 1099*075184b7Schristos# 1100*075184b7Schristos# Compiler output produced by configure, useful for debugging 1101*075184b7Schristos# configure, is in ./config.log if it exists. 1102*075184b7Schristos 1103*075184b7Schristosac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 1104*075184b7Schristosfor ac_option 1105*075184b7Schristosdo 1106*075184b7Schristos case "\$ac_option" in 1107*075184b7Schristos -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 1108*075184b7Schristos echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 1109*075184b7Schristos exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 1110*075184b7Schristos -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 1111*075184b7Schristos echo "$CONFIG_STATUS generated by autoconf version 2.4" 1112*075184b7Schristos exit 0 ;; 1113*075184b7Schristos -help | --help | --hel | --he | --h) 1114*075184b7Schristos echo "\$ac_cs_usage"; exit 0 ;; 1115*075184b7Schristos *) echo "\$ac_cs_usage"; exit 1 ;; 1116*075184b7Schristos esac 1117*075184b7Schristosdone 1118*075184b7Schristos 1119*075184b7Schristosac_given_srcdir=$srcdir 1120*075184b7Schristosac_given_INSTALL="$INSTALL" 1121*075184b7Schristos 1122*075184b7Schristostrap 'rm -fr `echo "Makefile man/Makefile src/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 1123*075184b7Schristos 1124*075184b7Schristos# Protect against being on the right side of a sed subst in config.status. 1125*075184b7Schristossed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 1126*075184b7Schristos s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF 1127*075184b7Schristos$ac_vpsub 1128*075184b7Schristos$extrasub 1129*075184b7Schristoss%@CFLAGS@%$CFLAGS%g 1130*075184b7Schristoss%@CPPFLAGS@%$CPPFLAGS%g 1131*075184b7Schristoss%@CXXFLAGS@%$CXXFLAGS%g 1132*075184b7Schristoss%@DEFS@%$DEFS%g 1133*075184b7Schristoss%@LDFLAGS@%$LDFLAGS%g 1134*075184b7Schristoss%@LIBS@%$LIBS%g 1135*075184b7Schristoss%@exec_prefix@%$exec_prefix%g 1136*075184b7Schristoss%@prefix@%$prefix%g 1137*075184b7Schristoss%@program_transform_name@%$program_transform_name%g 1138*075184b7Schristoss%@DIFF@%$DIFF%g 1139*075184b7Schristoss%@DIFF_SUCCESS@%$DIFF_SUCCESS%g 1140*075184b7Schristoss%@DIFF_FAILURE@%$DIFF_FAILURE%g 1141*075184b7Schristoss%@DIFF_TROUBLE@%$DIFF_TROUBLE%g 1142*075184b7Schristoss%@DIFFFLAGS@%$DIFFFLAGS%g 1143*075184b7Schristoss%@DIFF_L@%$DIFF_L%g 1144*075184b7Schristoss%@DIFF3@%$DIFF3%g 1145*075184b7Schristoss%@DIFF3_BIN@%$DIFF3_BIN%g 1146*075184b7Schristoss%@ED@%$ED%g 1147*075184b7Schristoss%@SENDMAIL@%$SENDMAIL%g 1148*075184b7Schristoss%@PIC@%$PIC%g 1149*075184b7Schristoss%@CC@%$CC%g 1150*075184b7Schristoss%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 1151*075184b7Schristoss%@INSTALL_DATA@%$INSTALL_DATA%g 1152*075184b7Schristoss%@SET_MAKE@%$SET_MAKE%g 1153*075184b7Schristos 1154*075184b7SchristosCEOF 1155*075184b7SchristosEOF 1156*075184b7Schristoscat >> $CONFIG_STATUS <<EOF 1157*075184b7Schristos 1158*075184b7SchristosCONFIG_FILES=\${CONFIG_FILES-"Makefile man/Makefile src/Makefile"} 1159*075184b7SchristosEOF 1160*075184b7Schristoscat >> $CONFIG_STATUS <<\EOF 1161*075184b7Schristosfor ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 1162*075184b7Schristos # Support "outfile[:infile]", defaulting infile="outfile.in". 1163*075184b7Schristos case "$ac_file" in 1164*075184b7Schristos *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` 1165*075184b7Schristos ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 1166*075184b7Schristos *) ac_file_in="${ac_file}.in" ;; 1167*075184b7Schristos esac 1168*075184b7Schristos 1169*075184b7Schristos # Adjust relative srcdir, etc. for subdirectories. 1170*075184b7Schristos 1171*075184b7Schristos # Remove last slash and all that follows it. Not all systems have dirname. 1172*075184b7Schristos ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 1173*075184b7Schristos if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 1174*075184b7Schristos # The file is in a subdirectory. 1175*075184b7Schristos test ! -d "$ac_dir" && mkdir "$ac_dir" 1176*075184b7Schristos ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 1177*075184b7Schristos # A "../" for each directory in $ac_dir_suffix. 1178*075184b7Schristos ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 1179*075184b7Schristos else 1180*075184b7Schristos ac_dir_suffix= ac_dots= 1181*075184b7Schristos fi 1182*075184b7Schristos 1183*075184b7Schristos case "$ac_given_srcdir" in 1184*075184b7Schristos .) srcdir=. 1185*075184b7Schristos if test -z "$ac_dots"; then top_srcdir=. 1186*075184b7Schristos else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 1187*075184b7Schristos /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 1188*075184b7Schristos *) # Relative path. 1189*075184b7Schristos srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 1190*075184b7Schristos top_srcdir="$ac_dots$ac_given_srcdir" ;; 1191*075184b7Schristos esac 1192*075184b7Schristos 1193*075184b7Schristos case "$ac_given_INSTALL" in 1194*075184b7Schristos [/$]*) INSTALL="$ac_given_INSTALL" ;; 1195*075184b7Schristos *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 1196*075184b7Schristos esac 1197*075184b7Schristos echo creating "$ac_file" 1198*075184b7Schristos rm -f "$ac_file" 1199*075184b7Schristos configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 1200*075184b7Schristos case "$ac_file" in 1201*075184b7Schristos *Makefile*) ac_comsub="1i\\ 1202*075184b7Schristos# $configure_input" ;; 1203*075184b7Schristos *) ac_comsub= ;; 1204*075184b7Schristos esac 1205*075184b7Schristos sed -e "$ac_comsub 1206*075184b7Schristoss%@configure_input@%$configure_input%g 1207*075184b7Schristoss%@srcdir@%$srcdir%g 1208*075184b7Schristoss%@top_srcdir@%$top_srcdir%g 1209*075184b7Schristoss%@INSTALL@%$INSTALL%g 1210*075184b7Schristos" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file 1211*075184b7Schristosfi; done 1212*075184b7Schristosrm -f conftest.subs 1213*075184b7Schristos 1214*075184b7Schristos 1215*075184b7Schristos 1216*075184b7Schristosexit 0 1217*075184b7SchristosEOF 1218*075184b7Schristoschmod +x $CONFIG_STATUS 1219*075184b7Schristosrm -fr confdefs* $ac_clean_files 1220*075184b7Schristostest "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 1221*075184b7Schristos 1222