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