1ea992d95Schristos#! /bin/sh 2*cb991a7bSchristos 3ea992d95Schristos# Guess values for system-dependent variables and create Makefiles. 4*cb991a7bSchristos# Generated automatically using autoconf version 2.3 5*cb991a7bSchristos# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc. 6*cb991a7bSchristos# 7*cb991a7bSchristos# This configure script is free software; the Free Software Foundation 8*cb991a7bSchristos# gives unlimited permission to copy, distribute and modify it. 9ea992d95Schristos 10*cb991a7bSchristos# Defaults: 11*cb991a7bSchristosac_help= 12*cb991a7bSchristosac_default_prefix=/usr/local 13*cb991a7bSchristos# Any additions from configure.in: 14ea992d95Schristos 15*cb991a7bSchristos# Initialize some variables set by options. 16*cb991a7bSchristos# The variables have the same names as the options, with 17*cb991a7bSchristos# dashes changed to underlines. 18*cb991a7bSchristosbuild=NONE 19*cb991a7bSchristoscache_file=./config.cache 20*cb991a7bSchristosexec_prefix=NONE 21*cb991a7bSchristoshost=NONE 22*cb991a7bSchristosno_create= 23*cb991a7bSchristosnonopt=NONE 24*cb991a7bSchristosno_recursion= 25*cb991a7bSchristosprefix=NONE 26*cb991a7bSchristosprogram_prefix=NONE 27*cb991a7bSchristosprogram_suffix=NONE 28*cb991a7bSchristosprogram_transform_name=s,x,x, 29*cb991a7bSchristossilent= 30*cb991a7bSchristossite= 31*cb991a7bSchristossrcdir= 32*cb991a7bSchristostarget=NONE 33*cb991a7bSchristosverbose= 34*cb991a7bSchristosx_includes=NONE 35*cb991a7bSchristosx_libraries=NONE 36ea992d95Schristos 37*cb991a7bSchristos# Initialize some other variables. 38*cb991a7bSchristossubdirs= 39ea992d95Schristos 40*cb991a7bSchristosac_prev= 41*cb991a7bSchristosfor ac_option 42ea992d95Schristosdo 43ea992d95Schristos 44*cb991a7bSchristos # If the previous option needs an argument, assign it. 45*cb991a7bSchristos if test -n "$ac_prev"; then 46*cb991a7bSchristos eval "$ac_prev=\$ac_option" 47*cb991a7bSchristos ac_prev= 48*cb991a7bSchristos continue 49ea992d95Schristos fi 50ea992d95Schristos 51*cb991a7bSchristos case "$ac_option" in 52*cb991a7bSchristos -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 53*cb991a7bSchristos *) ac_optarg= ;; 54*cb991a7bSchristos esac 55*cb991a7bSchristos 56*cb991a7bSchristos # Accept the important Cygnus configure options, so we can diagnose typos. 57*cb991a7bSchristos 58*cb991a7bSchristos case "$ac_option" in 59*cb991a7bSchristos 60*cb991a7bSchristos -build | --build | --buil | --bui | --bu | --b) 61*cb991a7bSchristos ac_prev=build ;; 62*cb991a7bSchristos -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*) 63*cb991a7bSchristos build="$ac_optarg" ;; 64*cb991a7bSchristos 65*cb991a7bSchristos -cache-file | --cache-file | --cache-fil | --cache-fi \ 66*cb991a7bSchristos | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 67*cb991a7bSchristos ac_prev=cache_file ;; 68*cb991a7bSchristos -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 69*cb991a7bSchristos | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 70*cb991a7bSchristos cache_file="$ac_optarg" ;; 71*cb991a7bSchristos 72*cb991a7bSchristos -disable-* | --disable-*) 73*cb991a7bSchristos ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 74*cb991a7bSchristos # Reject names that are not valid shell variable names. 75*cb991a7bSchristos if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 76*cb991a7bSchristos { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 77*cb991a7bSchristos fi 78*cb991a7bSchristos ac_feature=`echo $ac_feature| sed 's/-/_/g'` 79*cb991a7bSchristos eval "enable_${ac_feature}=no" ;; 80*cb991a7bSchristos 81*cb991a7bSchristos -enable-* | --enable-*) 82*cb991a7bSchristos ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 83*cb991a7bSchristos # Reject names that are not valid shell variable names. 84*cb991a7bSchristos if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 85*cb991a7bSchristos { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 86*cb991a7bSchristos fi 87*cb991a7bSchristos ac_feature=`echo $ac_feature| sed 's/-/_/g'` 88*cb991a7bSchristos case "$ac_option" in 89*cb991a7bSchristos *=*) ;; 90*cb991a7bSchristos *) ac_optarg=yes ;; 91*cb991a7bSchristos esac 92*cb991a7bSchristos eval "enable_${ac_feature}='$ac_optarg'" ;; 93*cb991a7bSchristos 94*cb991a7bSchristos -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 95*cb991a7bSchristos | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 96*cb991a7bSchristos | --exec | --exe | --ex) 97*cb991a7bSchristos ac_prev=exec_prefix ;; 98*cb991a7bSchristos -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 99*cb991a7bSchristos | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 100*cb991a7bSchristos | --exec=* | --exe=* | --ex=*) 101*cb991a7bSchristos exec_prefix="$ac_optarg" ;; 102*cb991a7bSchristos 103*cb991a7bSchristos -gas | --gas | --ga | --g) 104*cb991a7bSchristos # Obsolete; use --with-gas. 105*cb991a7bSchristos with_gas=yes ;; 106*cb991a7bSchristos 107*cb991a7bSchristos -help | --help | --hel | --he) 108*cb991a7bSchristos # Omit some internal or obsolete options to make the list less imposing. 109*cb991a7bSchristos # This message is too long to be a string in the A/UX 3.1 sh. 110*cb991a7bSchristos cat << EOF 111*cb991a7bSchristosUsage: configure [options] [host] 112*cb991a7bSchristosOptions: [defaults in brackets after descriptions] 113*cb991a7bSchristosConfiguration: 114*cb991a7bSchristos --cache-file=FILE cache test results in FILE 115*cb991a7bSchristos --help print this message 116*cb991a7bSchristos --no-create do not create output files 117*cb991a7bSchristos --quiet, --silent do not print \`checking...' messages 118*cb991a7bSchristos --version print the version of autoconf that created configure 119*cb991a7bSchristosDirectory and file names: 120*cb991a7bSchristos --prefix=PREFIX install architecture-independent files in PREFIX 121*cb991a7bSchristos [$ac_default_prefix] 122*cb991a7bSchristos --exec-prefix=PREFIX install architecture-dependent files in PREFIX 123*cb991a7bSchristos [same as prefix] 124*cb991a7bSchristos --srcdir=DIR find the sources in DIR [configure dir or ..] 125*cb991a7bSchristos --program-prefix=PREFIX prepend PREFIX to installed program names 126*cb991a7bSchristos --program-suffix=SUFFIX append SUFFIX to installed program names 127*cb991a7bSchristos --program-transform-name=PROGRAM run sed PROGRAM on installed program names 128*cb991a7bSchristosHost type: 129*cb991a7bSchristos --build=BUILD configure for building on BUILD [BUILD=HOST] 130*cb991a7bSchristos --host=HOST configure for HOST [guessed] 131*cb991a7bSchristos --target=TARGET configure for TARGET [TARGET=HOST] 132*cb991a7bSchristosFeatures and packages: 133*cb991a7bSchristos --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 134*cb991a7bSchristos --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 135*cb991a7bSchristos --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 136*cb991a7bSchristos --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 137*cb991a7bSchristos --x-includes=DIR X include files are in DIR 138*cb991a7bSchristos --x-libraries=DIR X library files are in DIR 139*cb991a7bSchristos--enable and --with options recognized:$ac_help 140*cb991a7bSchristosEOF 141*cb991a7bSchristos exit 0 ;; 142*cb991a7bSchristos 143*cb991a7bSchristos -host | --host | --hos | --ho) 144*cb991a7bSchristos ac_prev=host ;; 145*cb991a7bSchristos -host=* | --host=* | --hos=* | --ho=*) 146*cb991a7bSchristos host="$ac_optarg" ;; 147*cb991a7bSchristos 148*cb991a7bSchristos -nfp | --nfp | --nf) 149*cb991a7bSchristos # Obsolete; use --without-fp. 150*cb991a7bSchristos with_fp=no ;; 151*cb991a7bSchristos 152*cb991a7bSchristos -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 153*cb991a7bSchristos | --no-cr | --no-c) 154*cb991a7bSchristos no_create=yes ;; 155*cb991a7bSchristos 156*cb991a7bSchristos -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 157*cb991a7bSchristos | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 158*cb991a7bSchristos no_recursion=yes ;; 159*cb991a7bSchristos 160*cb991a7bSchristos -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 161*cb991a7bSchristos ac_prev=prefix ;; 162*cb991a7bSchristos -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 163*cb991a7bSchristos prefix="$ac_optarg" ;; 164*cb991a7bSchristos 165*cb991a7bSchristos -program-prefix | --program-prefix | --program-prefi | --program-pref \ 166*cb991a7bSchristos | --program-pre | --program-pr | --program-p) 167*cb991a7bSchristos ac_prev=program_prefix ;; 168*cb991a7bSchristos -program-prefix=* | --program-prefix=* | --program-prefi=* \ 169*cb991a7bSchristos | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 170*cb991a7bSchristos program_prefix="$ac_optarg" ;; 171*cb991a7bSchristos 172*cb991a7bSchristos -program-suffix | --program-suffix | --program-suffi | --program-suff \ 173*cb991a7bSchristos | --program-suf | --program-su | --program-s) 174*cb991a7bSchristos ac_prev=program_suffix ;; 175*cb991a7bSchristos -program-suffix=* | --program-suffix=* | --program-suffi=* \ 176*cb991a7bSchristos | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 177*cb991a7bSchristos program_suffix="$ac_optarg" ;; 178*cb991a7bSchristos 179*cb991a7bSchristos -program-transform-name | --program-transform-name \ 180*cb991a7bSchristos | --program-transform-nam | --program-transform-na \ 181*cb991a7bSchristos | --program-transform-n | --program-transform- \ 182*cb991a7bSchristos | --program-transform | --program-transfor \ 183*cb991a7bSchristos | --program-transfo | --program-transf \ 184*cb991a7bSchristos | --program-trans | --program-tran \ 185*cb991a7bSchristos | --progr-tra | --program-tr | --program-t) 186*cb991a7bSchristos ac_prev=program_transform_name ;; 187*cb991a7bSchristos -program-transform-name=* | --program-transform-name=* \ 188*cb991a7bSchristos | --program-transform-nam=* | --program-transform-na=* \ 189*cb991a7bSchristos | --program-transform-n=* | --program-transform-=* \ 190*cb991a7bSchristos | --program-transform=* | --program-transfor=* \ 191*cb991a7bSchristos | --program-transfo=* | --program-transf=* \ 192*cb991a7bSchristos | --program-trans=* | --program-tran=* \ 193*cb991a7bSchristos | --progr-tra=* | --program-tr=* | --program-t=*) 194*cb991a7bSchristos program_transform_name="$ac_optarg" ;; 195*cb991a7bSchristos 196*cb991a7bSchristos -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 197*cb991a7bSchristos | -silent | --silent | --silen | --sile | --sil) 198*cb991a7bSchristos silent=yes ;; 199*cb991a7bSchristos 200*cb991a7bSchristos -site | --site | --sit) 201*cb991a7bSchristos ac_prev=site ;; 202*cb991a7bSchristos -site=* | --site=* | --sit=*) 203*cb991a7bSchristos site="$ac_optarg" ;; 204*cb991a7bSchristos 205*cb991a7bSchristos -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 206*cb991a7bSchristos ac_prev=srcdir ;; 207*cb991a7bSchristos -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 208*cb991a7bSchristos srcdir="$ac_optarg" ;; 209*cb991a7bSchristos 210*cb991a7bSchristos -target | --target | --targe | --targ | --tar | --ta | --t) 211*cb991a7bSchristos ac_prev=target ;; 212*cb991a7bSchristos -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 213*cb991a7bSchristos target="$ac_optarg" ;; 214*cb991a7bSchristos 215*cb991a7bSchristos -v | -verbose | --verbose | --verbos | --verbo | --verb) 216ea992d95Schristos verbose=yes ;; 217ea992d95Schristos 218*cb991a7bSchristos -version | --version | --versio | --versi | --vers) 219*cb991a7bSchristos echo "configure generated by autoconf version 2.3" 220*cb991a7bSchristos exit 0 ;; 221*cb991a7bSchristos 222*cb991a7bSchristos -with-* | --with-*) 223*cb991a7bSchristos ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 224*cb991a7bSchristos # Reject names that are not valid shell variable names. 225*cb991a7bSchristos if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 226*cb991a7bSchristos { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 227ea992d95Schristos fi 228*cb991a7bSchristos ac_package=`echo $ac_package| sed 's/-/_/g'` 229*cb991a7bSchristos case "$ac_option" in 230*cb991a7bSchristos *=*) ;; 231*cb991a7bSchristos *) ac_optarg=yes ;; 232*cb991a7bSchristos esac 233*cb991a7bSchristos eval "with_${ac_package}='$ac_optarg'" ;; 234*cb991a7bSchristos 235*cb991a7bSchristos -without-* | --without-*) 236*cb991a7bSchristos ac_package=`echo $ac_option|sed -e 's/-*without-//'` 237*cb991a7bSchristos # Reject names that are not valid shell variable names. 238*cb991a7bSchristos if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 239*cb991a7bSchristos { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 240*cb991a7bSchristos fi 241*cb991a7bSchristos ac_package=`echo $ac_package| sed 's/-/_/g'` 242*cb991a7bSchristos eval "with_${ac_package}=no" ;; 243*cb991a7bSchristos 244*cb991a7bSchristos --x) 245*cb991a7bSchristos # Obsolete; use --with-x. 246*cb991a7bSchristos with_x=yes ;; 247*cb991a7bSchristos 248*cb991a7bSchristos -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 249*cb991a7bSchristos | --x-incl | --x-inc | --x-in | --x-i) 250*cb991a7bSchristos ac_prev=x_includes ;; 251*cb991a7bSchristos -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 252*cb991a7bSchristos | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 253*cb991a7bSchristos x_includes="$ac_optarg" ;; 254*cb991a7bSchristos 255*cb991a7bSchristos -x-libraries | --x-libraries | --x-librarie | --x-librari \ 256*cb991a7bSchristos | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 257*cb991a7bSchristos ac_prev=x_libraries ;; 258*cb991a7bSchristos -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 259*cb991a7bSchristos | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 260*cb991a7bSchristos x_libraries="$ac_optarg" ;; 261*cb991a7bSchristos 262*cb991a7bSchristos -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 263*cb991a7bSchristos ;; 264*cb991a7bSchristos 265*cb991a7bSchristos *) 266*cb991a7bSchristos if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 267*cb991a7bSchristos echo "configure: warning: $ac_option: invalid host type" 1>&2 268*cb991a7bSchristos fi 269*cb991a7bSchristos if test "x$nonopt" != xNONE; then 270*cb991a7bSchristos { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 271*cb991a7bSchristos fi 272*cb991a7bSchristos nonopt="$ac_option" 273*cb991a7bSchristos ;; 274*cb991a7bSchristos 275*cb991a7bSchristos esac 276ea992d95Schristosdone 277ea992d95Schristos 278*cb991a7bSchristosif test -n "$ac_prev"; then 279*cb991a7bSchristos { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 280*cb991a7bSchristosfi 281*cb991a7bSchristos 282*cb991a7bSchristostrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 283*cb991a7bSchristos 284*cb991a7bSchristos# File descriptor usage: 285*cb991a7bSchristos# 0 standard input 286*cb991a7bSchristos# 1 file creation 287*cb991a7bSchristos# 2 errors and warnings 288*cb991a7bSchristos# 3 some systems may open it to /dev/tty 289*cb991a7bSchristos# 4 used on the Kubota Titan 290*cb991a7bSchristos# 6 checking for... messages and results 291*cb991a7bSchristos# 5 compiler messages saved in config.log 292*cb991a7bSchristosif test "$silent" = yes; then 293*cb991a7bSchristos exec 6>/dev/null 294*cb991a7bSchristoselse 295*cb991a7bSchristos exec 6>&1 296*cb991a7bSchristosfi 297*cb991a7bSchristosexec 5>./config.log 298*cb991a7bSchristos 299*cb991a7bSchristosecho "\ 300*cb991a7bSchristosThis file contains any messages produced by compilers while 301*cb991a7bSchristosrunning configure, to aid debugging if configure makes a mistake. 302*cb991a7bSchristos" 1>&5 303*cb991a7bSchristos 304*cb991a7bSchristos# Strip out --no-create and --no-recursion so they do not pile up. 305*cb991a7bSchristos# Also quote any args containing shell metacharacters. 306*cb991a7bSchristosac_configure_args= 307*cb991a7bSchristosfor ac_arg 308*cb991a7bSchristosdo 309*cb991a7bSchristos case "$ac_arg" in 310*cb991a7bSchristos -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 311*cb991a7bSchristos | --no-cr | --no-c) ;; 312*cb991a7bSchristos -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 313*cb991a7bSchristos | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 314*cb991a7bSchristos *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 315*cb991a7bSchristos ac_configure_args="$ac_configure_args '$ac_arg'" ;; 316*cb991a7bSchristos *) ac_configure_args="$ac_configure_args $ac_arg" ;; 317*cb991a7bSchristos esac 318*cb991a7bSchristosdone 319ea992d95Schristos 320ea992d95Schristos# NLS nuisances. 321*cb991a7bSchristos# Only set LANG and LC_ALL to C if already set. 322ea992d95Schristos# These must not be set unconditionally because not all systems understand 323ea992d95Schristos# e.g. LANG=C (notably SCO). 324*cb991a7bSchristosif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 325*cb991a7bSchristosif test "${LANG+set}" = set; then LANG=C; export LANG; fi 326ea992d95Schristos 327*cb991a7bSchristos# confdefs.h avoids OS command line length limits that DEFS can exceed. 328*cb991a7bSchristosrm -rf conftest* confdefs.h 329*cb991a7bSchristos# AIX cpp loses on an empty file, so make sure it contains at least a newline. 330ea992d95Schristosecho > confdefs.h 331ea992d95Schristos 332ea992d95Schristos# A filename unique to this package, relative to the directory that 333ea992d95Schristos# configure is in, which we can look for to find out if srcdir is correct. 334*cb991a7bSchristosac_unique_file=send-pr.sh 335ea992d95Schristos 336ea992d95Schristos# Find the source files, if location was not specified. 337ea992d95Schristosif test -z "$srcdir"; then 338*cb991a7bSchristos ac_srcdir_defaulted=yes 339*cb991a7bSchristos # Try the directory containing this script, then its parent. 340*cb991a7bSchristos ac_prog=$0 341*cb991a7bSchristos ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 342*cb991a7bSchristos test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 343*cb991a7bSchristos srcdir=$ac_confdir 344*cb991a7bSchristos if test ! -r $srcdir/$ac_unique_file; then 345ea992d95Schristos srcdir=.. 346ea992d95Schristos fi 347ea992d95Schristoselse 348*cb991a7bSchristos ac_srcdir_defaulted=no 349ea992d95Schristosfi 350*cb991a7bSchristosif test ! -r $srcdir/$ac_unique_file; then 351*cb991a7bSchristos if test "$ac_srcdir_defaulted" = yes; then 352*cb991a7bSchristos { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 353*cb991a7bSchristos else 354*cb991a7bSchristos { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 355ea992d95Schristos fi 356*cb991a7bSchristosfi 357*cb991a7bSchristossrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 358*cb991a7bSchristos 359*cb991a7bSchristos# Prefer explicitly selected file to automatically selected ones. 360*cb991a7bSchristosif test -z "$CONFIG_SITE"; then 361*cb991a7bSchristos if test "x$prefix" != xNONE; then 362*cb991a7bSchristos CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 363*cb991a7bSchristos else 364*cb991a7bSchristos CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 365*cb991a7bSchristos fi 366*cb991a7bSchristosfi 367*cb991a7bSchristosfor ac_site_file in $CONFIG_SITE; do 368*cb991a7bSchristos if test -r "$ac_site_file"; then 369*cb991a7bSchristos echo "loading site script $ac_site_file" 370*cb991a7bSchristos . "$ac_site_file" 371*cb991a7bSchristos fi 372*cb991a7bSchristosdone 373*cb991a7bSchristos 374*cb991a7bSchristosif test -r "$cache_file"; then 375*cb991a7bSchristos echo "loading cache $cache_file" 376*cb991a7bSchristos . $cache_file 377*cb991a7bSchristoselse 378*cb991a7bSchristos echo "creating cache $cache_file" 379*cb991a7bSchristos > $cache_file 380*cb991a7bSchristosfi 381*cb991a7bSchristos 382*cb991a7bSchristosac_ext=c 383*cb991a7bSchristos# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 384*cb991a7bSchristosac_cpp='$CPP $CPPFLAGS' 385*cb991a7bSchristosac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' 386*cb991a7bSchristosac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' 387*cb991a7bSchristos 388*cb991a7bSchristosif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 389*cb991a7bSchristos # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 390*cb991a7bSchristos if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 391*cb991a7bSchristos ac_n= ac_c=' 392*cb991a7bSchristos' ac_t=' ' 393*cb991a7bSchristos else 394*cb991a7bSchristos ac_n=-n ac_c= ac_t= 395*cb991a7bSchristos fi 396*cb991a7bSchristoselse 397*cb991a7bSchristos ac_n= ac_c='\c' ac_t= 398*cb991a7bSchristosfi 399ea992d95Schristos 400ea992d95Schristos 401ea992d95Schristos 402ea992d95Schristos 403ea992d95Schristosecho checking for echo -n 404ea992d95Schristosif test "`echo -n foo`" = foo ; then 405ea992d95Schristos ECHON=bsd 406ea992d95Schristos test -n "$verbose" && echo ' using echo -n' 407ea992d95Schristoselif test "`echo 'foo\c'`" = foo ; then 408ea992d95Schristos ECHON=sysv 409ea992d95Schristos test -n "$verbose" && echo ' using echo ...\\c' 410ea992d95Schristoselse 411ea992d95Schristos ECHON=none 412ea992d95Schristos test -n "$verbose" && echo ' using plain echo' 413ea992d95Schristosfi 414*cb991a7bSchristosecho $ac_n "checking checking for Emacs Lisp files""... $ac_c" 1>&6 415*cb991a7bSchristosif test -n "$with_lispdir"; then 416*cb991a7bSchristos LISPDIR=${with_lispdir} 417*cb991a7bSchristoselse 418*cb991a7bSchristos for f in ${prefix-/usr/local}/lib/emacs/site-lisp \ 419*cb991a7bSchristos ${prefix-/usr/local}/lib/emacs/lisp; do 420*cb991a7bSchristos if test -d $f; then 421*cb991a7bSchristos if test -n "$prefix"; then 422*cb991a7bSchristos LISPDIR=`echo $f | sed "s,^$prefix,"'$(prefix),'` 423*cb991a7bSchristos else 424*cb991a7bSchristos LISPDIR=$f 425*cb991a7bSchristos fi 426*cb991a7bSchristos break 427*cb991a7bSchristos fi 428*cb991a7bSchristos done 429*cb991a7bSchristosfi 430*cb991a7bSchristosif test -z "$LISPDIR"; then 431*cb991a7bSchristos LISPDIR='$(prefix)/lib/emacs/lisp' 432*cb991a7bSchristosfi 433*cb991a7bSchristosecho "$ac_t""${LISPDIR}" 1>&6 434ea992d95Schristos 435*cb991a7bSchristosecho checking how to access passwd database 436*cb991a7bSchristosPASSWD="cat /etc/passwd" 437*cb991a7bSchristosif test -f /bin/domainname && test -n "`/bin/domainname`"; then 438*cb991a7bSchristos if test -f /usr/bin/niscat && 439*cb991a7bSchristos /usr/bin/niscat passwd.org_dir > /dev/null 2>&1; then 440*cb991a7bSchristos PASSWD="/usr/bin/niscat passwd.org_dir" 441*cb991a7bSchristos elif test -f /usr/bin/ypcat && /usr/bin/ypcat passwd > /dev/null 2>&1; then 442*cb991a7bSchristos PASSWD="/usr/bin/ypcat passwd" 443*cb991a7bSchristos fi 444*cb991a7bSchristosfi 445*cb991a7bSchristostest -n "$verbose" && echo " setting PASSWD to ${PASSWD}" 446*cb991a7bSchristos 447*cb991a7bSchristos 448*cb991a7bSchristosif test -z "${GNATS_SITE}"; then 449ea992d95Schristos GNATS_SITE=cygnus 450*cb991a7bSchristosfi 451ea992d95SchristosSUBMITTER=unknown 452*cb991a7bSchristosif test -z "${GNATS_ADDR}"; then 453ea992d95Schristos GNATS_ADDR=bugs@cygnus.com 454*cb991a7bSchristosfi 455ea992d95SchristosDEFAULT_ORGANIZATION= 456ea992d95Schristos 457ea992d95Schristosif test x/usr/lib:/usr/sbin:/usr/ucblib = x; then _PATH=$PATH; else _PATH=/usr/lib:/usr/sbin:/usr/ucblib; fi 458ea992d95Schristosif test -z "$SENDMAIL"; then 459ea992d95Schristos # Extract the first word of `sendmail', so it can be a program name with args. 460ea992d95Schristos set dummy sendmail; word=$2 461ea992d95Schristos echo checking for $word 462ea992d95Schristos IFS="${IFS= }"; saveifs="$IFS"; IFS="${IFS}:" 463ea992d95Schristos for dir in $_PATH; do 464ea992d95Schristos test -z "$dir" && dir=. 465ea992d95Schristos if test -f $dir/$word; then 466ea992d95Schristos SENDMAIL=$dir/$word 467ea992d95Schristos break 468ea992d95Schristos fi 469ea992d95Schristos done 470ea992d95Schristos IFS="$saveifs" 471ea992d95Schristosfi 472ea992d95Schristostest -n "$SENDMAIL" && test -n "$verbose" && echo " setting SENDMAIL to $SENDMAIL" 473ea992d95Schristos 474ea992d95Schristosif test -n "$SENDMAIL" ; then 475ea992d95Schristos MAIL_AGENT="$SENDMAIL -oi -t" 476ea992d95Schristoselse 477ea992d95Schristos MAIL_AGENT=false 478ea992d95Schristosfi 479ea992d95Schristos 480ea992d95Schristosif test -f ${srcdir}/../release-info ; then 481ea992d95Schristos DEFAULT_RELEASE=`. ${srcdir}/../release-info ; echo ${RELEASE_TAG}` 482ea992d95Schristoselse 483ea992d95Schristos DEFAULT_RELEASE='gnats-$(VERSION)' 484ea992d95Schristosfi 485ea992d95Schristos 486ea992d95Schristos# Get GNATS_ROOT from environment, if possible 487ea992d95Schristos 488ea992d95Schristosif test -n "$with_gnats_root"; then 489ea992d95Schristos GNATS_ROOT=$with_gnats_root 490ea992d95Schristosfi 491ea992d95Schristos 492ea992d95Schristosif test -z "${GNATS_ROOT}"; then 493*cb991a7bSchristos GNATS_ROOT=${prefix-/usr/local}/lib/gnats/gnats-root 494ea992d95Schristos _PR=${GNATS_ROOT} 495ea992d95Schristosfi 496ea992d95Schristos 497ea992d95Schristosif test x = x; then _PATH=$PATH; else _PATH=; fi 498ea992d95Schristosif test -z "$SEND_PR"; then 499ea992d95Schristos # Extract the first word of `send-pr', so it can be a program name with args. 500ea992d95Schristos set dummy send-pr; word=$2 501ea992d95Schristos echo checking for $word 502ea992d95Schristos IFS="${IFS= }"; saveifs="$IFS"; IFS="${IFS}:" 503ea992d95Schristos for dir in $_PATH; do 504ea992d95Schristos test -z "$dir" && dir=. 505ea992d95Schristos if test -f $dir/$word; then 506ea992d95Schristos SEND_PR=$dir/$word 507ea992d95Schristos break 508ea992d95Schristos fi 509ea992d95Schristos done 510ea992d95Schristos IFS="$saveifs" 511ea992d95Schristosfi 512ea992d95Schristostest -n "$SEND_PR" && test -n "$verbose" && echo " setting SEND_PR to $SEND_PR" 513ea992d95Schristos 514ea992d95Schristosif test -n "${SEND_PR}"; then 515ea992d95Schristos test -n "${_PR}" && eval `grep '^GNATS_ROOT=' ${SEND_PR}` 516ea992d95Schristos eval `grep '^SUBMITTER=' ${SEND_PR}` 517ea992d95Schristos eval `egrep '^GNATS_(ADDR|SITE)=' ${SEND_PR}` 518ea992d95Schristos eval `egrep '^DEFAULT_ORGANIZATION=' ${SEND_PR}` 519ea992d95Schristosfi 520ea992d95Schristos 521ea992d95Schristos# If the config file exists, it may have more recent info than send-pr 522ea992d95Schristosecho checking for GNATS configuration file 523ea992d95Schristostest -f ${GNATS_ROOT}/gnats-adm/config && . ${GNATS_ROOT}/gnats-adm/config 524ea992d95Schristos 525ea992d95Schristosif test -n "${_PR}" -a "${GNATS_ROOT}" = "${_PR}"; then 526ea992d95Schristos GNATS_ROOT= 527ea992d95Schristosfi 528ea992d95Schristos 529ea992d95Schristosif test -n "$verbose"; then 530ea992d95Schristos echo " setting GNATS_ROOT to $GNATS_ROOT" 531ea992d95Schristos echo " setting GNATS_SITE to $GNATS_SITE" 532ea992d95Schristos echo " setting GNATS_ADDR to $GNATS_ADDR" 533ea992d95Schristos echo " setting SUBMITTER to $SUBMITTER" 534ea992d95Schristos echo " setting DEFAULT_RELEASE to $DEFAULT_RELEASE" 535ea992d95Schristos echo " setting DEFAULT_ORGANIZATION to $DEFAULT_ORGANIZATION" 536ea992d95Schristos echo " setting MAIL_AGENT to $MAIL_AGENT" 537ea992d95Schristosfi 538ea992d95Schristos 539*cb991a7bSchristostrap '' 1 2 15 540*cb991a7bSchristoscat > confcache <<\EOF 541*cb991a7bSchristos# This file is a shell script that caches the results of configure 542*cb991a7bSchristos# tests run on this system so they can be shared between configure 543*cb991a7bSchristos# scripts and configure runs. It is not useful on other systems. 544*cb991a7bSchristos# If it contains results you don't want to keep, you may remove or edit it. 545*cb991a7bSchristos# 546*cb991a7bSchristos# By default, configure uses ./config.cache as the cache file, 547*cb991a7bSchristos# creating it if it does not exist already. You can give configure 548*cb991a7bSchristos# the --cache-file=FILE option to use a different cache file; that is 549*cb991a7bSchristos# what configure does when it calls configure scripts in 550*cb991a7bSchristos# subdirectories, so they share the cache. 551*cb991a7bSchristos# Giving --cache-file=/dev/null disables caching, for debugging configure. 552*cb991a7bSchristos# config.status only pays attention to the cache file if you give it the 553*cb991a7bSchristos# --recheck option to rerun configure. 554*cb991a7bSchristos# 555ea992d95SchristosEOF 556*cb991a7bSchristos# Ultrix sh set writes to stderr and can't be redirected directly, 557*cb991a7bSchristos# and sets the high bit in the cache file unless we assign to the vars. 558*cb991a7bSchristos(set) 2>&1 | 559*cb991a7bSchristos sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \ 560*cb991a7bSchristos >> confcache 561*cb991a7bSchristosif cmp -s $cache_file confcache; then 562*cb991a7bSchristos : 563*cb991a7bSchristoselse 564*cb991a7bSchristos if test -w $cache_file; then 565*cb991a7bSchristos echo "updating cache $cache_file" 566*cb991a7bSchristos cat confcache > $cache_file 567*cb991a7bSchristos else 568*cb991a7bSchristos echo "not updating unwritable cache $cache_file" 569*cb991a7bSchristos fi 570*cb991a7bSchristosfi 571*cb991a7bSchristosrm -f confcache 572ea992d95Schristos 573*cb991a7bSchristostrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 574*cb991a7bSchristos 575*cb991a7bSchristostest "x$prefix" = xNONE && prefix=$ac_default_prefix 576*cb991a7bSchristos# Let make expand exec_prefix. 577*cb991a7bSchristostest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 578*cb991a7bSchristos 579*cb991a7bSchristos# Any assignment to VPATH causes Sun make to only execute 580*cb991a7bSchristos# the first set of double-colon rules, so remove it if not needed. 581*cb991a7bSchristos# If there is a colon in the path, we need to keep it. 582*cb991a7bSchristosif test "x$srcdir" = x.; then 583*cb991a7bSchristos ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 584*cb991a7bSchristosfi 585*cb991a7bSchristos 586*cb991a7bSchristostrap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 587*cb991a7bSchristos 588*cb991a7bSchristos# Transform confdefs.h into DEFS. 589*cb991a7bSchristos# Protect against shell expansion while executing Makefile rules. 590*cb991a7bSchristos# Protect against Makefile macro expansion. 591*cb991a7bSchristoscat > conftest.defs <<\EOF 592*cb991a7bSchristoss%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g 593*cb991a7bSchristoss%[ `~#$^&*(){}\\|;'"<>?]%\\&%g 594*cb991a7bSchristoss%\[%\\&%g 595*cb991a7bSchristoss%\]%\\&%g 596*cb991a7bSchristoss%\$%$$%g 597*cb991a7bSchristosEOF 598*cb991a7bSchristosDEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` 599*cb991a7bSchristosrm -f conftest.defs 600*cb991a7bSchristos 601*cb991a7bSchristos 602*cb991a7bSchristos# Without the "./", some shells look in PATH for config.status. 603*cb991a7bSchristos: ${CONFIG_STATUS=./config.status} 604*cb991a7bSchristos 605*cb991a7bSchristosecho creating $CONFIG_STATUS 606*cb991a7bSchristosrm -f $CONFIG_STATUS 607*cb991a7bSchristoscat > $CONFIG_STATUS <<EOF 608ea992d95Schristos#! /bin/sh 609ea992d95Schristos# Generated automatically by configure. 610ea992d95Schristos# Run this file to recreate the current configuration. 611ea992d95Schristos# This directory was configured as follows, 612ea992d95Schristos# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 613ea992d95Schristos# 614*cb991a7bSchristos# $0 $ac_configure_args 615*cb991a7bSchristos# 616*cb991a7bSchristos# Compiler output produced by configure, useful for debugging 617*cb991a7bSchristos# configure, is in ./config.log if it exists. 618ea992d95Schristos 619*cb991a7bSchristosac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 620*cb991a7bSchristosfor ac_option 621ea992d95Schristosdo 622*cb991a7bSchristos case "\$ac_option" in 623ea992d95Schristos -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 624*cb991a7bSchristos echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 625*cb991a7bSchristos exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 626*cb991a7bSchristos -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 627*cb991a7bSchristos echo "$CONFIG_STATUS generated by autoconf version 2.3" 628*cb991a7bSchristos exit 0 ;; 629*cb991a7bSchristos -help | --help | --hel | --he | --h) 630*cb991a7bSchristos echo "\$ac_cs_usage"; exit 0 ;; 631*cb991a7bSchristos *) echo "\$ac_cs_usage"; exit 1 ;; 632ea992d95Schristos esac 633ea992d95Schristosdone 634ea992d95Schristos 635*cb991a7bSchristosac_given_srcdir=$srcdir 636ea992d95Schristos 637*cb991a7bSchristostrap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 638ea992d95Schristos 639*cb991a7bSchristos# Protect against being on the right side of a sed subst in config.status. 640*cb991a7bSchristossed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 641*cb991a7bSchristos s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF 642*cb991a7bSchristos$ac_vpsub 643ea992d95Schristos$extrasub 644*cb991a7bSchristoss%@CFLAGS@%$CFLAGS%g 645*cb991a7bSchristoss%@CPPFLAGS@%$CPPFLAGS%g 646*cb991a7bSchristoss%@CXXFLAGS@%$CXXFLAGS%g 647*cb991a7bSchristoss%@DEFS@%$DEFS%g 648*cb991a7bSchristoss%@LDFLAGS@%$LDFLAGS%g 649*cb991a7bSchristoss%@LIBS@%$LIBS%g 650*cb991a7bSchristoss%@exec_prefix@%$exec_prefix%g 651*cb991a7bSchristoss%@prefix@%$prefix%g 652*cb991a7bSchristoss%@program_transform_name@%$program_transform_name%g 653ea992d95Schristoss%@GNATS_ROOT@%$GNATS_ROOT%g 654ea992d95Schristoss%@GNATS_ADDR@%$GNATS_ADDR%g 655ea992d95Schristoss%@GNATS_SITE@%$GNATS_SITE%g 656ea992d95Schristoss%@DEFAULT_RELEASE@%$DEFAULT_RELEASE%g 657ea992d95Schristoss%@DEFAULT_ORGANIZATION@%$DEFAULT_ORGANIZATION%g 658ea992d95Schristoss%@MAIL_AGENT@%$MAIL_AGENT%g 659ea992d95Schristoss%@SUBMITTER@%$SUBMITTER%g 660ea992d95Schristoss%@ECHON@%$ECHON%g 661*cb991a7bSchristoss%@LISPDIR@%$LISPDIR%g 662*cb991a7bSchristoss%@PASSWD@%$PASSWD%g 663ea992d95Schristoss%@SENDMAIL@%$SENDMAIL%g 664ea992d95Schristoss%@SEND_PR@%$SEND_PR%g 665*cb991a7bSchristos 666*cb991a7bSchristosCEOF 667*cb991a7bSchristosEOF 668*cb991a7bSchristoscat >> $CONFIG_STATUS <<EOF 669*cb991a7bSchristos 670*cb991a7bSchristosCONFIG_FILES=\${CONFIG_FILES-"Makefile"} 671*cb991a7bSchristosEOF 672*cb991a7bSchristoscat >> $CONFIG_STATUS <<\EOF 673*cb991a7bSchristosfor ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 674*cb991a7bSchristos # Support "outfile[:infile]", defaulting infile="outfile.in". 675*cb991a7bSchristos case "$ac_file" in 676*cb991a7bSchristos *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` 677*cb991a7bSchristos ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 678*cb991a7bSchristos *) ac_file_in="${ac_file}.in" ;; 679*cb991a7bSchristos esac 680*cb991a7bSchristos 681*cb991a7bSchristos # Adjust relative srcdir, etc. for subdirectories. 682*cb991a7bSchristos 683*cb991a7bSchristos # Remove last slash and all that follows it. Not all systems have dirname. 684*cb991a7bSchristos ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 685*cb991a7bSchristos if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 686*cb991a7bSchristos # The file is in a subdirectory. 687*cb991a7bSchristos test ! -d "$ac_dir" && mkdir "$ac_dir" 688*cb991a7bSchristos ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 689*cb991a7bSchristos # A "../" for each directory in $ac_dir_suffix. 690*cb991a7bSchristos ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 691*cb991a7bSchristos else 692*cb991a7bSchristos ac_dir_suffix= ac_dots= 693*cb991a7bSchristos fi 694*cb991a7bSchristos 695*cb991a7bSchristos case "$ac_given_srcdir" in 696*cb991a7bSchristos .) srcdir=. 697*cb991a7bSchristos if test -z "$ac_dots"; then top_srcdir=. 698*cb991a7bSchristos else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 699*cb991a7bSchristos /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 700*cb991a7bSchristos *) # Relative path. 701*cb991a7bSchristos srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 702*cb991a7bSchristos top_srcdir="$ac_dots$ac_given_srcdir" ;; 703*cb991a7bSchristos esac 704*cb991a7bSchristos 705*cb991a7bSchristos echo creating "$ac_file" 706*cb991a7bSchristos rm -f "$ac_file" 707*cb991a7bSchristos configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 708*cb991a7bSchristos case "$ac_file" in 709*cb991a7bSchristos *Makefile*) ac_comsub="1i\\ 710*cb991a7bSchristos# $configure_input" ;; 711*cb991a7bSchristos *) ac_comsub= ;; 712*cb991a7bSchristos esac 713*cb991a7bSchristos sed -e "$ac_comsub 714*cb991a7bSchristoss%@configure_input@%$configure_input%g 715ea992d95Schristoss%@srcdir@%$srcdir%g 716*cb991a7bSchristoss%@top_srcdir@%$top_srcdir%g 717*cb991a7bSchristos" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file 718ea992d95Schristosfi; done 719*cb991a7bSchristosrm -f conftest.subs 720*cb991a7bSchristos 721ea992d95Schristos 722ea992d95Schristos 723ea992d95Schristosexit 0 724ea992d95SchristosEOF 725*cb991a7bSchristoschmod +x $CONFIG_STATUS 726*cb991a7bSchristosrm -fr confdefs* $ac_clean_files 727*cb991a7bSchristostest "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 728ea992d95Schristos 729