configure revision 29964
1266125Sjhb#! /bin/sh 2283927Sjhb 3266125Sjhb# Guess values for system-dependent variables and create Makefiles. 4266125Sjhb# Generated automatically using autoconf version 2.12 5266125Sjhb# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 6266125Sjhb# 7266125Sjhb# This configure script is free software; the Free Software Foundation 8266125Sjhb# gives unlimited permission to copy, distribute and modify it. 9266125Sjhb 10266125Sjhb# Defaults: 11266125Sjhbac_help= 12266125Sjhbac_default_prefix=/usr/local 13266125Sjhb# Any additions from configure.in: 14266125Sjhbac_help="$ac_help 15266125Sjhb --enable-access-file=FILENAME 16266125Sjhb Enable the OPIE access file FILENAME" 17266125Sjhbac_help="$ac_help 18266125Sjhb --enable-server-md4 Use MD4 instead of MD5 for the server" 19266125Sjhbac_help="$ac_help 20266125Sjhb --disable-user-locking Disable user locking 21266125Sjhb --enable-user-locking[=DIR] 22266125Sjhb Put user lock files in DIR [/etc/opielocks]" 23266125Sjhbac_help="$ac_help 24266125Sjhb --enable-retype Ask users to re-type their secret pass phrases" 25266125Sjhbac_help="$ac_help 26266125Sjhb --enable-su-star-check Refuse to switch to disabled accounts" 27266125Sjhbac_help="$ac_help 28266125Sjhb --disable-new-prompts Use more compatible (but less informative) prompts" 29266125Sjhbac_help="$ac_help 30266125Sjhb --enable-insecure-override 31266125Sjhb Allow users to override insecure checks" 32266125Sjhbac_help="$ac_help 33266125Sjhb --enable-anonymous-ftp Enable anonymous FTP support" 34266125Sjhbac_help="$ac_help 35266125Sjhb --disable-utmp Disable utmp logging" 36266125Sjhbac_help="$ac_help 37266125Sjhb --disable-wtmp Disable wtmp logging" 38266125Sjhb 39266125Sjhb# Initialize some variables set by options. 40266125Sjhb# The variables have the same names as the options, with 41266125Sjhb# dashes changed to underlines. 42266125Sjhbbuild=NONE 43266125Sjhbcache_file=./config.cache 44266125Sjhbexec_prefix=NONE 45266125Sjhbhost=NONE 46266125Sjhbno_create= 47266125Sjhbnonopt=NONE 48266125Sjhbno_recursion= 49266125Sjhbprefix=NONE 50266125Sjhbprogram_prefix=NONE 51266125Sjhbprogram_suffix=NONE 52266125Sjhbprogram_transform_name=s,x,x, 53266125Sjhbsilent= 54266125Sjhbsite= 55266125Sjhbsrcdir= 56266125Sjhbtarget=NONE 57266125Sjhbverbose= 58266125Sjhbx_includes=NONE 59266125Sjhbx_libraries=NONE 60266125Sjhbbindir='${exec_prefix}/bin' 61266125Sjhbsbindir='${exec_prefix}/sbin' 62266125Sjhblibexecdir='${exec_prefix}/libexec' 63266125Sjhbdatadir='${prefix}/share' 64266125Sjhbsysconfdir='${prefix}/etc' 65266125Sjhbsharedstatedir='${prefix}/com' 66266125Sjhblocalstatedir='${prefix}/var' 67266125Sjhblibdir='${exec_prefix}/lib' 68266125Sjhbincludedir='${prefix}/include' 69266125Sjhboldincludedir='/usr/include' 70266125Sjhbinfodir='${prefix}/info' 71266125Sjhbmandir='${prefix}/man' 72266125Sjhb 73266125Sjhb# Initialize some other variables. 74266125Sjhbsubdirs= 75266125SjhbMFLAGS= MAKEFLAGS= 76266125Sjhb# Maximum number of lines to put in a shell here document. 77266125Sjhbac_max_here_lines=12 78266125Sjhb 79266125Sjhbac_prev= 80266125Sjhbfor ac_option 81266125Sjhbdo 82266125Sjhb 83266125Sjhb # If the previous option needs an argument, assign it. 84266125Sjhb if test -n "$ac_prev"; then 85266125Sjhb eval "$ac_prev=\$ac_option" 86266125Sjhb ac_prev= 87266125Sjhb continue 88266125Sjhb fi 89266125Sjhb 90266125Sjhb case "$ac_option" in 91266125Sjhb -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 92266125Sjhb *) ac_optarg= ;; 93266125Sjhb esac 94266125Sjhb 95266125Sjhb # Accept the important Cygnus configure options, so we can diagnose typos. 96266125Sjhb 97266125Sjhb case "$ac_option" in 98266125Sjhb 99266125Sjhb -bindir | --bindir | --bindi | --bind | --bin | --bi) 100266125Sjhb ac_prev=bindir ;; 101266125Sjhb -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 102266125Sjhb bindir="$ac_optarg" ;; 103266125Sjhb 104266125Sjhb -build | --build | --buil | --bui | --bu) 105266125Sjhb ac_prev=build ;; 106266125Sjhb -build=* | --build=* | --buil=* | --bui=* | --bu=*) 107266125Sjhb build="$ac_optarg" ;; 108266125Sjhb 109266125Sjhb -cache-file | --cache-file | --cache-fil | --cache-fi \ 110266125Sjhb | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 111266125Sjhb ac_prev=cache_file ;; 112266125Sjhb -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 113266125Sjhb | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 114266125Sjhb cache_file="$ac_optarg" ;; 115266125Sjhb 116266125Sjhb -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 117266125Sjhb ac_prev=datadir ;; 118270159Sgrehan -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 119266125Sjhb | --da=*) 120266125Sjhb datadir="$ac_optarg" ;; 121266125Sjhb 122266125Sjhb -disable-* | --disable-*) 123266125Sjhb ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 124266125Sjhb # Reject names that are not valid shell variable names. 125266125Sjhb if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 126266125Sjhb { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 127266125Sjhb fi 128270159Sgrehan ac_feature=`echo $ac_feature| sed 's/-/_/g'` 129266125Sjhb eval "enable_${ac_feature}=no" ;; 130270159Sgrehan 131270159Sgrehan -enable-* | --enable-*) 132266125Sjhb ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 133266125Sjhb # Reject names that are not valid shell variable names. 134266125Sjhb if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 135266125Sjhb { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 136266125Sjhb fi 137266125Sjhb ac_feature=`echo $ac_feature| sed 's/-/_/g'` 138266125Sjhb case "$ac_option" in 139266125Sjhb *=*) ;; 140266125Sjhb *) ac_optarg=yes ;; 141266125Sjhb esac 142266125Sjhb eval "enable_${ac_feature}='$ac_optarg'" ;; 143266125Sjhb 144266125Sjhb -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 145266125Sjhb | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 146266125Sjhb | --exec | --exe | --ex) 147266125Sjhb ac_prev=exec_prefix ;; 148266125Sjhb -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 149266125Sjhb | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 150266125Sjhb | --exec=* | --exe=* | --ex=*) 151266125Sjhb exec_prefix="$ac_optarg" ;; 152266125Sjhb 153266125Sjhb -gas | --gas | --ga | --g) 154266125Sjhb # Obsolete; use --with-gas. 155266125Sjhb with_gas=yes ;; 156266125Sjhb 157266125Sjhb -help | --help | --hel | --he) 158266125Sjhb # Omit some internal or obsolete options to make the list less imposing. 159266125Sjhb # This message is too long to be a string in the A/UX 3.1 sh. 160266125Sjhb cat << EOF 161266125SjhbUsage: configure [options] [host] 162266125SjhbOptions: [defaults in brackets after descriptions] 163266125SjhbConfiguration: 164266125Sjhb --cache-file=FILE cache test results in FILE 165266125Sjhb --help print this message 166266125Sjhb --no-create do not create output files 167266125Sjhb --quiet, --silent do not print \`checking...' messages 168266125Sjhb --version print the version of autoconf that created configure 169266125SjhbDirectory and file names: 170266125Sjhb --prefix=PREFIX install architecture-independent files in PREFIX 171266125Sjhb [$ac_default_prefix] 172266125Sjhb --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 173266125Sjhb [same as prefix] 174266125Sjhb --bindir=DIR user executables in DIR [EPREFIX/bin] 175266125Sjhb --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 176266125Sjhb --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 177266125Sjhb --datadir=DIR read-only architecture-independent data in DIR 178266125Sjhb [PREFIX/share] 179266125Sjhb --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 180266125Sjhb --sharedstatedir=DIR modifiable architecture-independent data in DIR 181266125Sjhb [PREFIX/com] 182266125Sjhb --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 183266125Sjhb --libdir=DIR object code libraries in DIR [EPREFIX/lib] 184266125Sjhb --includedir=DIR C header files in DIR [PREFIX/include] 185266125Sjhb --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 186266125Sjhb --infodir=DIR info documentation in DIR [PREFIX/info] 187266125Sjhb --mandir=DIR man documentation in DIR [PREFIX/man] 188266125Sjhb --srcdir=DIR find the sources in DIR [configure dir or ..] 189266125Sjhb --program-prefix=PREFIX prepend PREFIX to installed program names 190266125Sjhb --program-suffix=SUFFIX append SUFFIX to installed program names 191266125Sjhb --program-transform-name=PROGRAM 192266125Sjhb run sed PROGRAM on installed program names 193266125SjhbEOF 194266125Sjhb cat << EOF 195266125SjhbHost type: 196266125Sjhb --build=BUILD configure for building on BUILD [BUILD=HOST] 197266125Sjhb --host=HOST configure for HOST [guessed] 198266125Sjhb --target=TARGET configure for TARGET [TARGET=HOST] 199266125SjhbFeatures and packages: 200270159Sgrehan --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 201266125Sjhb --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 202266125Sjhb --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 203266125Sjhb --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 204266125Sjhb --x-includes=DIR X include files are in DIR 205266125Sjhb --x-libraries=DIR X library files are in DIR 206266125SjhbEOF 207266125Sjhb if test -n "$ac_help"; then 208266125Sjhb echo "--enable and --with options recognized:$ac_help" 209266125Sjhb fi 210266125Sjhb exit 0 ;; 211266125Sjhb 212266125Sjhb -host | --host | --hos | --ho) 213266125Sjhb ac_prev=host ;; 214266125Sjhb -host=* | --host=* | --hos=* | --ho=*) 215266125Sjhb host="$ac_optarg" ;; 216266125Sjhb 217266125Sjhb -includedir | --includedir | --includedi | --included | --include \ 218266125Sjhb | --includ | --inclu | --incl | --inc) 219266125Sjhb ac_prev=includedir ;; 220266125Sjhb -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 221266125Sjhb | --includ=* | --inclu=* | --incl=* | --inc=*) 222266125Sjhb includedir="$ac_optarg" ;; 223266125Sjhb 224266125Sjhb -infodir | --infodir | --infodi | --infod | --info | --inf) 225270159Sgrehan ac_prev=infodir ;; 226266125Sjhb -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 227266125Sjhb infodir="$ac_optarg" ;; 228266125Sjhb 229266125Sjhb -libdir | --libdir | --libdi | --libd) 230266125Sjhb ac_prev=libdir ;; 231266125Sjhb -libdir=* | --libdir=* | --libdi=* | --libd=*) 232266125Sjhb libdir="$ac_optarg" ;; 233266125Sjhb 234266125Sjhb -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 235266125Sjhb | --libexe | --libex | --libe) 236266125Sjhb ac_prev=libexecdir ;; 237266125Sjhb -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 238266125Sjhb | --libexe=* | --libex=* | --libe=*) 239266125Sjhb libexecdir="$ac_optarg" ;; 240266125Sjhb 241266125Sjhb -localstatedir | --localstatedir | --localstatedi | --localstated \ 242266125Sjhb | --localstate | --localstat | --localsta | --localst \ 243266125Sjhb | --locals | --local | --loca | --loc | --lo) 244266125Sjhb ac_prev=localstatedir ;; 245266125Sjhb -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 246266125Sjhb | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 247266125Sjhb | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 248266125Sjhb localstatedir="$ac_optarg" ;; 249266125Sjhb 250266125Sjhb -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 251266125Sjhb ac_prev=mandir ;; 252266125Sjhb -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 253266125Sjhb mandir="$ac_optarg" ;; 254266125Sjhb 255266125Sjhb -nfp | --nfp | --nf) 256266125Sjhb # Obsolete; use --without-fp. 257266125Sjhb with_fp=no ;; 258266125Sjhb 259266125Sjhb -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 260266125Sjhb | --no-cr | --no-c) 261266125Sjhb no_create=yes ;; 262266125Sjhb 263266125Sjhb -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 264266125Sjhb | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 265266125Sjhb no_recursion=yes ;; 266266125Sjhb 267266125Sjhb -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 268266125Sjhb | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 269266125Sjhb | --oldin | --oldi | --old | --ol | --o) 270266125Sjhb ac_prev=oldincludedir ;; 271266125Sjhb -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 272266125Sjhb | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 273266125Sjhb | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 274266125Sjhb oldincludedir="$ac_optarg" ;; 275266125Sjhb 276266125Sjhb -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 277266125Sjhb ac_prev=prefix ;; 278266125Sjhb -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 279266125Sjhb prefix="$ac_optarg" ;; 280266125Sjhb 281266125Sjhb -program-prefix | --program-prefix | --program-prefi | --program-pref \ 282266125Sjhb | --program-pre | --program-pr | --program-p) 283266125Sjhb ac_prev=program_prefix ;; 284266125Sjhb -program-prefix=* | --program-prefix=* | --program-prefi=* \ 285266125Sjhb | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 286266125Sjhb program_prefix="$ac_optarg" ;; 287266125Sjhb 288266125Sjhb -program-suffix | --program-suffix | --program-suffi | --program-suff \ 289266125Sjhb | --program-suf | --program-su | --program-s) 290266125Sjhb ac_prev=program_suffix ;; 291266125Sjhb -program-suffix=* | --program-suffix=* | --program-suffi=* \ 292266125Sjhb | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 293266125Sjhb program_suffix="$ac_optarg" ;; 294266125Sjhb 295266125Sjhb -program-transform-name | --program-transform-name \ 296266125Sjhb | --program-transform-nam | --program-transform-na \ 297266125Sjhb | --program-transform-n | --program-transform- \ 298266125Sjhb | --program-transform | --program-transfor \ 299266125Sjhb | --program-transfo | --program-transf \ 300266125Sjhb | --program-trans | --program-tran \ 301266125Sjhb | --progr-tra | --program-tr | --program-t) 302266125Sjhb ac_prev=program_transform_name ;; 303266125Sjhb -program-transform-name=* | --program-transform-name=* \ 304266125Sjhb | --program-transform-nam=* | --program-transform-na=* \ 305266125Sjhb | --program-transform-n=* | --program-transform-=* \ 306266125Sjhb | --program-transform=* | --program-transfor=* \ 307266125Sjhb | --program-transfo=* | --program-transf=* \ 308266125Sjhb | --program-trans=* | --program-tran=* \ 309266125Sjhb | --progr-tra=* | --program-tr=* | --program-t=*) 310266125Sjhb program_transform_name="$ac_optarg" ;; 311266125Sjhb 312266125Sjhb -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 313266125Sjhb | -silent | --silent | --silen | --sile | --sil) 314266125Sjhb silent=yes ;; 315266125Sjhb 316266125Sjhb -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 317266125Sjhb ac_prev=sbindir ;; 318266125Sjhb -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 319266125Sjhb | --sbi=* | --sb=*) 320266125Sjhb sbindir="$ac_optarg" ;; 321266125Sjhb 322266125Sjhb -sharedstatedir | --sharedstatedir | --sharedstatedi \ 323266125Sjhb | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 324266125Sjhb | --sharedst | --shareds | --shared | --share | --shar \ 325266125Sjhb | --sha | --sh) 326266125Sjhb ac_prev=sharedstatedir ;; 327266125Sjhb -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 328266125Sjhb | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 329266125Sjhb | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 330266125Sjhb | --sha=* | --sh=*) 331266125Sjhb sharedstatedir="$ac_optarg" ;; 332266125Sjhb 333266125Sjhb -site | --site | --sit) 334266125Sjhb ac_prev=site ;; 335266125Sjhb -site=* | --site=* | --sit=*) 336266125Sjhb site="$ac_optarg" ;; 337266125Sjhb 338266125Sjhb -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 339266125Sjhb ac_prev=srcdir ;; 340266125Sjhb -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 341266125Sjhb srcdir="$ac_optarg" ;; 342266125Sjhb 343266125Sjhb -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 344266125Sjhb | --syscon | --sysco | --sysc | --sys | --sy) 345266125Sjhb ac_prev=sysconfdir ;; 346266125Sjhb -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 347 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 348 sysconfdir="$ac_optarg" ;; 349 350 -target | --target | --targe | --targ | --tar | --ta | --t) 351 ac_prev=target ;; 352 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 353 target="$ac_optarg" ;; 354 355 -v | -verbose | --verbose | --verbos | --verbo | --verb) 356 verbose=yes ;; 357 358 -version | --version | --versio | --versi | --vers) 359 echo "configure generated by autoconf version 2.12" 360 exit 0 ;; 361 362 -with-* | --with-*) 363 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 364 # Reject names that are not valid shell variable names. 365 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 366 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 367 fi 368 ac_package=`echo $ac_package| sed 's/-/_/g'` 369 case "$ac_option" in 370 *=*) ;; 371 *) ac_optarg=yes ;; 372 esac 373 eval "with_${ac_package}='$ac_optarg'" ;; 374 375 -without-* | --without-*) 376 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 377 # Reject names that are not valid shell variable names. 378 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 379 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 380 fi 381 ac_package=`echo $ac_package| sed 's/-/_/g'` 382 eval "with_${ac_package}=no" ;; 383 384 --x) 385 # Obsolete; use --with-x. 386 with_x=yes ;; 387 388 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 389 | --x-incl | --x-inc | --x-in | --x-i) 390 ac_prev=x_includes ;; 391 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 392 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 393 x_includes="$ac_optarg" ;; 394 395 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 396 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 397 ac_prev=x_libraries ;; 398 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 399 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 400 x_libraries="$ac_optarg" ;; 401 402 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 403 ;; 404 405 *) 406 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 407 echo "configure: warning: $ac_option: invalid host type" 1>&2 408 fi 409 if test "x$nonopt" != xNONE; then 410 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 411 fi 412 nonopt="$ac_option" 413 ;; 414 415 esac 416done 417 418if test -n "$ac_prev"; then 419 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 420fi 421 422trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 423 424# File descriptor usage: 425# 0 standard input 426# 1 file creation 427# 2 errors and warnings 428# 3 some systems may open it to /dev/tty 429# 4 used on the Kubota Titan 430# 6 checking for... messages and results 431# 5 compiler messages saved in config.log 432if test "$silent" = yes; then 433 exec 6>/dev/null 434else 435 exec 6>&1 436fi 437exec 5>./config.log 438 439echo "\ 440This file contains any messages produced by compilers while 441running configure, to aid debugging if configure makes a mistake. 442" 1>&5 443 444# Strip out --no-create and --no-recursion so they do not pile up. 445# Also quote any args containing shell metacharacters. 446ac_configure_args= 447for ac_arg 448do 449 case "$ac_arg" in 450 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 451 | --no-cr | --no-c) ;; 452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 454 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 455 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 456 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 457 esac 458done 459 460# NLS nuisances. 461# Only set these to C if already set. These must not be set unconditionally 462# because not all systems understand e.g. LANG=C (notably SCO). 463# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 464# Non-C LC_CTYPE values break the ctype check. 465if test "${LANG+set}" = set; then LANG=C; export LANG; fi 466if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 467if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 468if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 469 470# confdefs.h avoids OS command line length limits that DEFS can exceed. 471rm -rf conftest* confdefs.h 472# AIX cpp loses on an empty file, so make sure it contains at least a newline. 473echo > confdefs.h 474 475# A filename unique to this package, relative to the directory that 476# configure is in, which we can look for to find out if srcdir is correct. 477ac_unique_file=README 478 479# Find the source files, if location was not specified. 480if test -z "$srcdir"; then 481 ac_srcdir_defaulted=yes 482 # Try the directory containing this script, then its parent. 483 ac_prog=$0 484 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 485 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 486 srcdir=$ac_confdir 487 if test ! -r $srcdir/$ac_unique_file; then 488 srcdir=.. 489 fi 490else 491 ac_srcdir_defaulted=no 492fi 493if test ! -r $srcdir/$ac_unique_file; then 494 if test "$ac_srcdir_defaulted" = yes; then 495 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 496 else 497 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 498 fi 499fi 500srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 501 502# Prefer explicitly selected file to automatically selected ones. 503if test -z "$CONFIG_SITE"; then 504 if test "x$prefix" != xNONE; then 505 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 506 else 507 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 508 fi 509fi 510for ac_site_file in $CONFIG_SITE; do 511 if test -r "$ac_site_file"; then 512 echo "loading site script $ac_site_file" 513 . "$ac_site_file" 514 fi 515done 516 517if test -r "$cache_file"; then 518 echo "loading cache $cache_file" 519 . $cache_file 520else 521 echo "creating cache $cache_file" 522 > $cache_file 523fi 524 525ac_ext=c 526# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 527ac_cpp='$CPP $CPPFLAGS' 528ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 529ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 530cross_compiling=$ac_cv_prog_cc_cross 531 532if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 533 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 534 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 535 ac_n= ac_c=' 536' ac_t=' ' 537 else 538 ac_n=-n ac_c= ac_t= 539 fi 540else 541 ac_n= ac_c='\c' ac_t= 542fi 543 544 545 546# Check whether --enable-access-file or --disable-access-file was given. 547if test "${enable_access_file+set}" = set; then 548 enableval="$enable_access_file" 549 cat >> confdefs.h <<EOF 550#define PATH_ACCESS_FILE "$enable_access_file" 551EOF 552 echo "Using the access file in $enable_access_file -- don't say we didn't warn you!" 553fi 554 555ACCESS_FILE="$enable_access_file" 556 557# Check whether --enable-server-md4 or --disable-server-md4 was given. 558if test "${enable_server_md4+set}" = set; then 559 enableval="$enable_server_md4" 560 cat >> confdefs.h <<\EOF 561#define MDX 4 562EOF 563 564else 565 cat >> confdefs.h <<\EOF 566#define MDX 5 567EOF 568 569fi 570 571 572set do_user_locking=1; 573# Check whether --enable-user-locking or --disable-user-locking was given. 574if test "${enable_user_locking+set}" = set; then 575 enableval="$enable_user_locking" 576 : 577else 578 set do_user_locking=0 579fi 580 581if $do_user_locking; 582then 583 cat >> confdefs.h <<\EOF 584#define USER_LOCKING 1 585EOF 586 587 if test -z "$enable_user_locking" 588 then 589 cat >> confdefs.h <<\EOF 590#define OPIE_LOCK_DIR "/etc/opielocks" 591EOF 592 593 else 594 cat >> confdefs.h <<EOF 595#define OPIE_LOCK_DIR "$enable_user_locking" 596EOF 597 598 fi 599fi 600LOCK_DIR="$enable_user_locking" 601 602 603# Check whether --enable-retype or --disable-retype was given. 604if test "${enable_retype+set}" = set; then 605 enableval="$enable_retype" 606 cat >> confdefs.h <<\EOF 607#define RETYPE 1 608EOF 609 610fi 611 612# Check whether --enable-su-star-check or --disable-su-star-check was given. 613if test "${enable_su_star_check+set}" = set; then 614 enableval="$enable_su_star_check" 615 cat >> confdefs.h <<\EOF 616#define SU_STAR_CHECK 1 617EOF 618 619fi 620 621# Check whether --enable-new-prompts or --disable-new-prompts was given. 622if test "${enable_new_prompts+set}" = set; then 623 enableval="$enable_new_prompts" 624 : 625else 626 cat >> confdefs.h <<\EOF 627#define NEW_PROMPTS 1 628EOF 629 630fi 631 632# Check whether --enable-insecure-override or --disable-insecure-override was given. 633if test "${enable_insecure_override+set}" = set; then 634 enableval="$enable_insecure_override" 635 cat >> confdefs.h <<\EOF 636#define INSECURE_OVERRIDE 1 637EOF 638 639fi 640 641# Check whether --enable-anonymous-ftp or --disable-anonymous-ftp was given. 642if test "${enable_anonymous_ftp+set}" = set; then 643 enableval="$enable_anonymous_ftp" 644 cat >> confdefs.h <<\EOF 645#define DOANONYMOUS 1 646EOF 647 echo "Enabling anonymous FTP support in ftp -- don't say we didn't warn you!" 648fi 649 650# Check whether --enable-utmp or --disable-utmp was given. 651if test "${enable_utmp+set}" = set; then 652 enableval="$enable_utmp" 653 cat >> confdefs.h <<\EOF 654#define DISABLE_UTMP 1 655EOF 656 echo "Disabling utmp logging" 657fi 658 659# Check whether --enable-wtmp or --disable-wtmp was given. 660if test "${enable_wtmp+set}" = set; then 661 enableval="$enable_wtmp" 662 cat >> confdefs.h <<\EOF 663#define DISABLE_UTMP 1 664EOF 665 echo "Disabling wtmp logging" 666fi 667 668 669# Extract the first word of "gcc", so it can be a program name with args. 670set dummy gcc; ac_word=$2 671echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 672echo "configure:673: checking for $ac_word" >&5 673if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 674 echo $ac_n "(cached) $ac_c" 1>&6 675else 676 if test -n "$CC"; then 677 ac_cv_prog_CC="$CC" # Let the user override the test. 678else 679 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 680 for ac_dir in $PATH; do 681 test -z "$ac_dir" && ac_dir=. 682 if test -f $ac_dir/$ac_word; then 683 ac_cv_prog_CC="gcc" 684 break 685 fi 686 done 687 IFS="$ac_save_ifs" 688fi 689fi 690CC="$ac_cv_prog_CC" 691if test -n "$CC"; then 692 echo "$ac_t""$CC" 1>&6 693else 694 echo "$ac_t""no" 1>&6 695fi 696 697if test -z "$CC"; then 698 # Extract the first word of "cc", so it can be a program name with args. 699set dummy cc; ac_word=$2 700echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 701echo "configure:702: checking for $ac_word" >&5 702if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 703 echo $ac_n "(cached) $ac_c" 1>&6 704else 705 if test -n "$CC"; then 706 ac_cv_prog_CC="$CC" # Let the user override the test. 707else 708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 709 ac_prog_rejected=no 710 for ac_dir in $PATH; do 711 test -z "$ac_dir" && ac_dir=. 712 if test -f $ac_dir/$ac_word; then 713 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 714 ac_prog_rejected=yes 715 continue 716 fi 717 ac_cv_prog_CC="cc" 718 break 719 fi 720 done 721 IFS="$ac_save_ifs" 722if test $ac_prog_rejected = yes; then 723 # We found a bogon in the path, so make sure we never use it. 724 set dummy $ac_cv_prog_CC 725 shift 726 if test $# -gt 0; then 727 # We chose a different compiler from the bogus one. 728 # However, it has the same basename, so the bogon will be chosen 729 # first if we set CC to just the basename; use the full file name. 730 shift 731 set dummy "$ac_dir/$ac_word" "$@" 732 shift 733 ac_cv_prog_CC="$@" 734 fi 735fi 736fi 737fi 738CC="$ac_cv_prog_CC" 739if test -n "$CC"; then 740 echo "$ac_t""$CC" 1>&6 741else 742 echo "$ac_t""no" 1>&6 743fi 744 745 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 746fi 747 748echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 749echo "configure:750: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 750 751ac_ext=c 752# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 753ac_cpp='$CPP $CPPFLAGS' 754ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 755ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 756cross_compiling=$ac_cv_prog_cc_cross 757 758cat > conftest.$ac_ext <<EOF 759#line 760 "configure" 760#include "confdefs.h" 761main(){return(0);} 762EOF 763if { (eval echo configure:764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 764 ac_cv_prog_cc_works=yes 765 # If we can't run a trivial program, we are probably using a cross compiler. 766 if (./conftest; exit) 2>/dev/null; then 767 ac_cv_prog_cc_cross=no 768 else 769 ac_cv_prog_cc_cross=yes 770 fi 771else 772 echo "configure: failed program was:" >&5 773 cat conftest.$ac_ext >&5 774 ac_cv_prog_cc_works=no 775fi 776rm -fr conftest* 777 778echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 779if test $ac_cv_prog_cc_works = no; then 780 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 781fi 782echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 783echo "configure:784: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 784echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 785cross_compiling=$ac_cv_prog_cc_cross 786 787echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 788echo "configure:789: checking whether we are using GNU C" >&5 789if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 790 echo $ac_n "(cached) $ac_c" 1>&6 791else 792 cat > conftest.c <<EOF 793#ifdef __GNUC__ 794 yes; 795#endif 796EOF 797if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 798 ac_cv_prog_gcc=yes 799else 800 ac_cv_prog_gcc=no 801fi 802fi 803 804echo "$ac_t""$ac_cv_prog_gcc" 1>&6 805 806if test $ac_cv_prog_gcc = yes; then 807 GCC=yes 808 ac_test_CFLAGS="${CFLAGS+set}" 809 ac_save_CFLAGS="$CFLAGS" 810 CFLAGS= 811 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 812echo "configure:813: checking whether ${CC-cc} accepts -g" >&5 813if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 814 echo $ac_n "(cached) $ac_c" 1>&6 815else 816 echo 'void f(){}' > conftest.c 817if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 818 ac_cv_prog_cc_g=yes 819else 820 ac_cv_prog_cc_g=no 821fi 822rm -f conftest* 823 824fi 825 826echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 827 if test "$ac_test_CFLAGS" = set; then 828 CFLAGS="$ac_save_CFLAGS" 829 elif test $ac_cv_prog_cc_g = yes; then 830 CFLAGS="-g -O2" 831 else 832 CFLAGS="-O2" 833 fi 834else 835 GCC= 836 test "${CFLAGS+set}" = set || CFLAGS="-g" 837fi 838 839echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 840echo "configure:841: checking how to run the C preprocessor" >&5 841# On Suns, sometimes $CPP names a directory. 842if test -n "$CPP" && test -d "$CPP"; then 843 CPP= 844fi 845if test -z "$CPP"; then 846if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 847 echo $ac_n "(cached) $ac_c" 1>&6 848else 849 # This must be in double quotes, not single quotes, because CPP may get 850 # substituted into the Makefile and "${CC-cc}" will confuse make. 851 CPP="${CC-cc} -E" 852 # On the NeXT, cc -E runs the code through the compiler's parser, 853 # not just through cpp. 854 cat > conftest.$ac_ext <<EOF 855#line 856 "configure" 856#include "confdefs.h" 857#include <assert.h> 858Syntax Error 859EOF 860ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 861{ (eval echo configure:862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 862ac_err=`grep -v '^ *+' conftest.out` 863if test -z "$ac_err"; then 864 : 865else 866 echo "$ac_err" >&5 867 echo "configure: failed program was:" >&5 868 cat conftest.$ac_ext >&5 869 rm -rf conftest* 870 CPP="${CC-cc} -E -traditional-cpp" 871 cat > conftest.$ac_ext <<EOF 872#line 873 "configure" 873#include "confdefs.h" 874#include <assert.h> 875Syntax Error 876EOF 877ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 878{ (eval echo configure:879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 879ac_err=`grep -v '^ *+' conftest.out` 880if test -z "$ac_err"; then 881 : 882else 883 echo "$ac_err" >&5 884 echo "configure: failed program was:" >&5 885 cat conftest.$ac_ext >&5 886 rm -rf conftest* 887 CPP=/lib/cpp 888fi 889rm -f conftest* 890fi 891rm -f conftest* 892 ac_cv_prog_CPP="$CPP" 893fi 894 CPP="$ac_cv_prog_CPP" 895else 896 ac_cv_prog_CPP="$CPP" 897fi 898echo "$ac_t""$CPP" 1>&6 899 900echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 901echo "configure:902: checking whether ln -s works" >&5 902if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 903 echo $ac_n "(cached) $ac_c" 1>&6 904else 905 rm -f conftestdata 906if ln -s X conftestdata 2>/dev/null 907then 908 rm -f conftestdata 909 ac_cv_prog_LN_S="ln -s" 910else 911 ac_cv_prog_LN_S=ln 912fi 913fi 914LN_S="$ac_cv_prog_LN_S" 915if test "$ac_cv_prog_LN_S" = "ln -s"; then 916 echo "$ac_t""yes" 1>&6 917else 918 echo "$ac_t""no" 1>&6 919fi 920 921# Extract the first word of "ranlib", so it can be a program name with args. 922set dummy ranlib; ac_word=$2 923echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 924echo "configure:925: checking for $ac_word" >&5 925if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 926 echo $ac_n "(cached) $ac_c" 1>&6 927else 928 if test -n "$RANLIB"; then 929 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 930else 931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 932 for ac_dir in $PATH; do 933 test -z "$ac_dir" && ac_dir=. 934 if test -f $ac_dir/$ac_word; then 935 ac_cv_prog_RANLIB="ranlib" 936 break 937 fi 938 done 939 IFS="$ac_save_ifs" 940 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 941fi 942fi 943RANLIB="$ac_cv_prog_RANLIB" 944if test -n "$RANLIB"; then 945 echo "$ac_t""$RANLIB" 1>&6 946else 947 echo "$ac_t""no" 1>&6 948fi 949 950for ac_prog in 'bison -y' byacc 951do 952# Extract the first word of "$ac_prog", so it can be a program name with args. 953set dummy $ac_prog; ac_word=$2 954echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 955echo "configure:956: checking for $ac_word" >&5 956if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then 957 echo $ac_n "(cached) $ac_c" 1>&6 958else 959 if test -n "$YACC"; then 960 ac_cv_prog_YACC="$YACC" # Let the user override the test. 961else 962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 963 for ac_dir in $PATH; do 964 test -z "$ac_dir" && ac_dir=. 965 if test -f $ac_dir/$ac_word; then 966 ac_cv_prog_YACC="$ac_prog" 967 break 968 fi 969 done 970 IFS="$ac_save_ifs" 971fi 972fi 973YACC="$ac_cv_prog_YACC" 974if test -n "$YACC"; then 975 echo "$ac_t""$YACC" 1>&6 976else 977 echo "$ac_t""no" 1>&6 978fi 979 980test -n "$YACC" && break 981done 982test -n "$YACC" || YACC="yacc" 983 984 985echo $ac_n "checking for AIX""... $ac_c" 1>&6 986echo "configure:987: checking for AIX" >&5 987cat > conftest.$ac_ext <<EOF 988#line 989 "configure" 989#include "confdefs.h" 990#ifdef _AIX 991 yes 992#endif 993 994EOF 995if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 996 egrep "yes" >/dev/null 2>&1; then 997 rm -rf conftest* 998 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 999#define _ALL_SOURCE 1 1000EOF 1001 1002else 1003 rm -rf conftest* 1004 echo "$ac_t""no" 1>&6 1005fi 1006rm -f conftest* 1007 1008 1009echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 1010echo "configure:1011: checking for POSIXized ISC" >&5 1011if test -d /etc/conf/kconfig.d && 1012 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 1013then 1014 echo "$ac_t""yes" 1>&6 1015 ISC=yes # If later tests want to check for ISC. 1016 cat >> confdefs.h <<\EOF 1017#define _POSIX_SOURCE 1 1018EOF 1019 1020 if test "$GCC" = yes; then 1021 CC="$CC -posix" 1022 else 1023 CC="$CC -Xp" 1024 fi 1025else 1026 echo "$ac_t""no" 1>&6 1027 ISC= 1028fi 1029 1030ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` 1031echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 1032echo "configure:1033: checking for minix/config.h" >&5 1033if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1034 echo $ac_n "(cached) $ac_c" 1>&6 1035else 1036 cat > conftest.$ac_ext <<EOF 1037#line 1038 "configure" 1038#include "confdefs.h" 1039#include <minix/config.h> 1040EOF 1041ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1042{ (eval echo configure:1043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1043ac_err=`grep -v '^ *+' conftest.out` 1044if test -z "$ac_err"; then 1045 rm -rf conftest* 1046 eval "ac_cv_header_$ac_safe=yes" 1047else 1048 echo "$ac_err" >&5 1049 echo "configure: failed program was:" >&5 1050 cat conftest.$ac_ext >&5 1051 rm -rf conftest* 1052 eval "ac_cv_header_$ac_safe=no" 1053fi 1054rm -f conftest* 1055fi 1056if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1057 echo "$ac_t""yes" 1>&6 1058 MINIX=yes 1059else 1060 echo "$ac_t""no" 1>&6 1061MINIX= 1062fi 1063 1064if test "$MINIX" = yes; then 1065 cat >> confdefs.h <<\EOF 1066#define _POSIX_SOURCE 1 1067EOF 1068 1069 cat >> confdefs.h <<\EOF 1070#define _POSIX_1_SOURCE 2 1071EOF 1072 1073 cat >> confdefs.h <<\EOF 1074#define _MINIX 1 1075EOF 1076 1077fi 1078 1079 1080 1081# Extract the first word of "chown", so it can be a program name with args. 1082set dummy chown; ac_word=$2 1083echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1084echo "configure:1085: checking for $ac_word" >&5 1085if eval "test \"`echo '$''{'ac_cv_path_CHOWN'+set}'`\" = set"; then 1086 echo $ac_n "(cached) $ac_c" 1>&6 1087else 1088 case "$CHOWN" in 1089 /*) 1090 ac_cv_path_CHOWN="$CHOWN" # Let the user override the test with a path. 1091 ;; 1092 *) 1093 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1094 for ac_dir in /usr/bin /bin /usr/sbin /sbin /usr/etc /etc$ac_dummy; do 1095 test -z "$ac_dir" && ac_dir=. 1096 if test -f $ac_dir/$ac_word; then 1097 ac_cv_path_CHOWN="$ac_dir/$ac_word" 1098 break 1099 fi 1100 done 1101 IFS="$ac_save_ifs" 1102 test -z "$ac_cv_path_CHOWN" && ac_cv_path_CHOWN="/bin/chown" 1103 ;; 1104esac 1105fi 1106CHOWN="$ac_cv_path_CHOWN" 1107if test -n "$CHOWN"; then 1108 echo "$ac_t""$CHOWN" 1>&6 1109else 1110 echo "$ac_t""no" 1>&6 1111fi 1112 1113 1114# Extract the first word of "su", so it can be a program name with args. 1115set dummy su; ac_word=$2 1116echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1117echo "configure:1118: checking for $ac_word" >&5 1118if eval "test \"`echo '$''{'ac_cv_path_SU'+set}'`\" = set"; then 1119 echo $ac_n "(cached) $ac_c" 1>&6 1120else 1121 case "$SU" in 1122 /*) 1123 ac_cv_path_SU="$SU" # Let the user override the test with a path. 1124 ;; 1125 *) 1126 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1127 for ac_dir in /usr/bin /bin$ac_dummy; do 1128 test -z "$ac_dir" && ac_dir=. 1129 if test -f $ac_dir/$ac_word; then 1130 ac_cv_path_SU="$ac_dir/$ac_word" 1131 break 1132 fi 1133 done 1134 IFS="$ac_save_ifs" 1135 test -z "$ac_cv_path_SU" && ac_cv_path_SU="/bin/su" 1136 ;; 1137esac 1138fi 1139SU="$ac_cv_path_SU" 1140if test -n "$SU"; then 1141 echo "$ac_t""$SU" 1>&6 1142else 1143 echo "$ac_t""no" 1>&6 1144fi 1145 1146# Extract the first word of "su", so it can be a program name with args. 1147set dummy su; ac_word=$2 1148echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1149echo "configure:1150: checking for $ac_word" >&5 1150if eval "test \"`echo '$''{'ac_cv_path_ALT_SU'+set}'`\" = set"; then 1151 echo $ac_n "(cached) $ac_c" 1>&6 1152else 1153 case "$ALT_SU" in 1154 /*) 1155 ac_cv_path_ALT_SU="$ALT_SU" # Let the user override the test with a path. 1156 ;; 1157 *) 1158 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1159 for ac_dir in /usr/sbin /sbin$ac_dummy; do 1160 test -z "$ac_dir" && ac_dir=. 1161 if test -f $ac_dir/$ac_word; then 1162 ac_cv_path_ALT_SU="$ac_dir/$ac_word" 1163 break 1164 fi 1165 done 1166 IFS="$ac_save_ifs" 1167 ;; 1168esac 1169fi 1170ALT_SU="$ac_cv_path_ALT_SU" 1171if test -n "$ALT_SU"; then 1172 echo "$ac_t""$ALT_SU" 1>&6 1173else 1174 echo "$ac_t""no" 1>&6 1175fi 1176 1177 1178# Extract the first word of "scheme", so it can be a program name with args. 1179set dummy scheme; ac_word=$2 1180echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1181echo "configure:1182: checking for $ac_word" >&5 1182if eval "test \"`echo '$''{'ac_cv_path_SCHEME'+set}'`\" = set"; then 1183 echo $ac_n "(cached) $ac_c" 1>&6 1184else 1185 case "$SCHEME" in 1186 /*) 1187 ac_cv_path_SCHEME="$SCHEME" # Let the user override the test with a path. 1188 ;; 1189 *) 1190 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1191 for ac_dir in /usr/lib/iaf/scheme$ac_dummy; do 1192 test -z "$ac_dir" && ac_dir=. 1193 if test -f $ac_dir/$ac_word; then 1194 ac_cv_path_SCHEME="$ac_dir/$ac_word" 1195 break 1196 fi 1197 done 1198 IFS="$ac_save_ifs" 1199 ;; 1200esac 1201fi 1202SCHEME="$ac_cv_path_SCHEME" 1203if test -n "$SCHEME"; then 1204 echo "$ac_t""$SCHEME" 1>&6 1205else 1206 echo "$ac_t""no" 1>&6 1207fi 1208 1209# Extract the first word of "login", so it can be a program name with args. 1210set dummy login; ac_word=$2 1211echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1212echo "configure:1213: checking for $ac_word" >&5 1213if eval "test \"`echo '$''{'ac_cv_path_LOGIN'+set}'`\" = set"; then 1214 echo $ac_n "(cached) $ac_c" 1>&6 1215else 1216 case "$LOGIN" in 1217 /*) 1218 ac_cv_path_LOGIN="$LOGIN" # Let the user override the test with a path. 1219 ;; 1220 *) 1221 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1222 for ac_dir in /usr/bin /bin$ac_dummy; do 1223 test -z "$ac_dir" && ac_dir=. 1224 if test -f $ac_dir/$ac_word; then 1225 ac_cv_path_LOGIN="$ac_dir/$ac_word" 1226 break 1227 fi 1228 done 1229 IFS="$ac_save_ifs" 1230 test -z "$ac_cv_path_LOGIN" && ac_cv_path_LOGIN="/bin/login" 1231 ;; 1232esac 1233fi 1234LOGIN="$ac_cv_path_LOGIN" 1235if test -n "$LOGIN"; then 1236 echo "$ac_t""$LOGIN" 1>&6 1237else 1238 echo "$ac_t""no" 1>&6 1239fi 1240 1241 1242if test ! -z "$SCHEME"; 1243then 1244 LOGIN="$SCHEME"; 1245fi 1246 1247# Extract the first word of "ftpd", so it can be a program name with args. 1248set dummy ftpd; ac_word=$2 1249echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1250echo "configure:1251: checking for $ac_word" >&5 1251if eval "test \"`echo '$''{'ac_cv_path_FTPD'+set}'`\" = set"; then 1252 echo $ac_n "(cached) $ac_c" 1>&6 1253else 1254 case "$FTPD" in 1255 /*) 1256 ac_cv_path_FTPD="$FTPD" # Let the user override the test with a path. 1257 ;; 1258 *) 1259 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1260 for ac_dir in /usr/libexec /usr/etc /etc /usr/sbin /sbin /usr/lbin$ac_dummy; do 1261 test -z "$ac_dir" && ac_dir=. 1262 if test -f $ac_dir/$ac_word; then 1263 ac_cv_path_FTPD="$ac_dir/$ac_word" 1264 break 1265 fi 1266 done 1267 IFS="$ac_save_ifs" 1268 ;; 1269esac 1270fi 1271FTPD="$ac_cv_path_FTPD" 1272if test -n "$FTPD"; then 1273 echo "$ac_t""$FTPD" 1>&6 1274else 1275 echo "$ac_t""no" 1>&6 1276fi 1277 1278# Extract the first word of "in.ftpd", so it can be a program name with args. 1279set dummy in.ftpd; ac_word=$2 1280echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1281echo "configure:1282: checking for $ac_word" >&5 1282if eval "test \"`echo '$''{'ac_cv_path_INFTPD'+set}'`\" = set"; then 1283 echo $ac_n "(cached) $ac_c" 1>&6 1284else 1285 case "$INFTPD" in 1286 /*) 1287 ac_cv_path_INFTPD="$INFTPD" # Let the user override the test with a path. 1288 ;; 1289 *) 1290 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1291 for ac_dir in /usr/libexec /usr/etc /etc /usr/sbin /sbin /usr/lbin$ac_dummy; do 1292 test -z "$ac_dir" && ac_dir=. 1293 if test -f $ac_dir/$ac_word; then 1294 ac_cv_path_INFTPD="$ac_dir/$ac_word" 1295 break 1296 fi 1297 done 1298 IFS="$ac_save_ifs" 1299 ;; 1300esac 1301fi 1302INFTPD="$ac_cv_path_INFTPD" 1303if test -n "$INFTPD"; then 1304 echo "$ac_t""$INFTPD" 1>&6 1305else 1306 echo "$ac_t""no" 1>&6 1307fi 1308 1309 1310if test -z "$FTPD" 1311then 1312 if test ! -z "$INFTPD" 1313 then 1314 FTPD="$INFTPD" 1315 fi 1316fi 1317 1318echo $ac_n "checking for default PATH entries""... $ac_c" 1>&6 1319echo "configure:1320: checking for default PATH entries" >&5 1320default_path="" 1321save_IFS="$IFS" 1322IFS=" " 1323for i in /usr/bin /bin /usr/ucb /usr/sbin /usr/bsd /sbin /usr/bin/X11 /etc /usr/local/X11/bin /usr/X11R6/bin /your-system-is-broken 1324do 1325 IFS=":" 1326 for j in $PATH 1327 do 1328 if test "$i" = "$j" 1329 then 1330 if test -d "$i" 1331 then 1332 if test -z "$default_path" 1333 then 1334 default_path="$i" 1335 else 1336 default_path="$default_path:$i" 1337 fi 1338 fi 1339 fi 1340 done 1341 IFS=" " 1342done 1343cat >> confdefs.h <<EOF 1344#define DEFAULT_PATH "$default_path" 1345EOF 1346 1347echo "$ac_t""$default_path" 1>&6 1348 1349echo $ac_n "checking for test -e flag""... $ac_c" 1>&6 1350echo "configure:1351: checking for test -e flag" >&5 1351if sh config.testeflag 1352then 1353 result=yes 1354 EXISTS="-e" 1355else 1356 result=no 1357 EXISTS="-f" 1358fi 1359 1360echo "$ac_t""$result" 1>&6 1361 1362echo $ac_n "checking for mkdir -p flag""... $ac_c" 1>&6 1363echo "configure:1364: checking for mkdir -p flag" >&5 1364if test -d config.tmpdir 1365then 1366 rmdir config.tmpdir/foo/bar >/dev/null 2>/dev/null 1367 rmdir config.tmpdir/foo >/dev/null 2>/dev/null 1368 rmdir config.tmpdir >/dev/null 2>/dev/null 1369fi 1370 1371result=no 1372if mkdir -p config.tmpdir/foo/bar >/dev/null 2>/dev/null 1373then 1374 if test -d config.tmpdir 1375 then 1376 if test -d config.tmpdir/foo 1377 then 1378 if test -d config.tmpdir/foo/bar 1379 then 1380 result=yes 1381 rmdir config.tmpdir/foo/bar >/dev/null 2>/dev/null 1382 fi 1383 rmdir config.tmpdir/foo >/dev/null 2>/dev/null 1384 fi 1385 rmdir config.tmpdir >/dev/null 2>/dev/null 1386 fi 1387fi 1388 1389if test "$result" = yes 1390then 1391 MKDIR="mkdir -p" 1392else 1393 MKDIR="mkdir" 1394fi 1395 1396echo "$ac_t""$result" 1>&6 1397 1398echo $ac_n "checking for ls group field""... $ac_c" 1>&6 1399echo "configure:1400: checking for ls group field" >&5 1400lsg=`/bin/ls -ldg / | wc -w | awk '{print $1}'`; 1401ls=`/bin/ls -ld / | wc -w | awk '{print $1}'`; 1402result="no" 1403if test $ls = 9; 1404then 1405 result="yes" 1406else 1407 if test "$ls" = 8 -a "$lsg" = 9; 1408 then 1409 result="yes, with -g" 1410 cat >> confdefs.h <<\EOF 1411#define HAVE_LS_G_FLAG 1 1412EOF 1413 1414 fi 1415fi 1416echo "$ac_t""$result" 1>&6 1417 1418echo $ac_n "checking for /etc/default/login""... $ac_c" 1>&6 1419echo "configure:1420: checking for /etc/default/login" >&5 1420if test $EXISTS /etc/default/login 1421then 1422 result=yes 1423 cat >> confdefs.h <<\EOF 1424#define HAVE_ETC_DEFAULT_LOGIN 1 1425EOF 1426 1427else 1428 result=no 1429fi 1430echo "$ac_t""$result" 1>&6 1431 1432echo $ac_n "checking for /etc/securetty""... $ac_c" 1>&6 1433echo "configure:1434: checking for /etc/securetty" >&5 1434if test $EXISTS /etc/securetty 1435then 1436 result=yes 1437 cat >> confdefs.h <<\EOF 1438#define HAVE_SECURETTY 1 1439EOF 1440 1441else 1442 result=no 1443fi 1444echo "$ac_t""$result" 1>&6 1445 1446echo $ac_n "checking for /etc/logindevperm""... $ac_c" 1>&6 1447echo "configure:1448: checking for /etc/logindevperm" >&5 1448if test $EXISTS /etc/logindevperm 1449then 1450 echo "$ac_t""yes" 1>&6 1451 cat >> confdefs.h <<\EOF 1452#define HAVE_LOGIN_PERMFILE "/etc/logindevperm" 1453EOF 1454 1455else 1456 echo "$ac_t""no" 1>&6 1457 1458 echo $ac_n "checking for /etc/fbtab""... $ac_c" 1>&6 1459echo "configure:1460: checking for /etc/fbtab" >&5 1460 if test $EXISTS /etc/fbtab 1461 then 1462 result=yes 1463 cat >> confdefs.h <<\EOF 1464#define HAVE_LOGIN_PERMFILE "/etc/fbtab" 1465EOF 1466 1467 else 1468 result=no 1469 fi 1470 echo "$ac_t""$result" 1>&6 1471fi 1472 1473echo $ac_n "checking for /etc/environment""... $ac_c" 1>&6 1474echo "configure:1475: checking for /etc/environment" >&5 1475if test $EXISTS /etc/environment 1476then 1477 echo "$ac_t""yes" 1>&6 1478 cat >> confdefs.h <<\EOF 1479#define HAVE_LOGIN_ENVFILE "/etc/environment" 1480EOF 1481 1482else 1483 echo "$ac_t""no" 1>&6 1484 1485 echo $ac_n "checking for /etc/src.sh""... $ac_c" 1>&6 1486echo "configure:1487: checking for /etc/src.sh" >&5 1487 if test $EXISTS /etc/src.sh 1488 then 1489 result=yes 1490 cat >> confdefs.h <<\EOF 1491#define HAVE_LOGIN_ENVFILE "/etc/src.sh" 1492EOF 1493 1494 else 1495 result=no 1496 fi 1497 echo "$ac_t""$result" 1>&6 1498fi 1499 1500echo $ac_n "checking for /etc/shadow""... $ac_c" 1>&6 1501echo "configure:1502: checking for /etc/shadow" >&5 1502if test $EXISTS /etc/shadow 1503then 1504 result=yes 1505 cat >> confdefs.h <<\EOF 1506#define HAVE_ETC_SHADOW 1 1507EOF 1508 1509else 1510 echo "$ac_t""no" 1>&6 1511 1512 echo $ac_n "checking for /etc/security/passwd.adjunct""... $ac_c" 1>&6 1513echo "configure:1514: checking for /etc/security/passwd.adjunct" >&5 1514 if test $EXISTS /etc/security/passwd.adjunct 1515 then 1516 result=yes 1517 cat >> confdefs.h <<\EOF 1518#define HAVE_SUNOS_C2_SHADOW 1 1519EOF 1520 1521 LIBOBJS="$LIBOBJS getspnam.o endspent.o" 1522 else 1523 result=no 1524 fi 1525fi 1526echo "$ac_t""$result" 1>&6 1527 1528echo $ac_n "checking for /var/adm/sulog""... $ac_c" 1>&6 1529echo "configure:1530: checking for /var/adm/sulog" >&5 1530if test $EXISTS /var/adm/sulog 1531then 1532 result=yes 1533 cat >> confdefs.h <<\EOF 1534#define HAVE_SULOG 1 1535EOF 1536 1537else 1538 result=no 1539fi 1540echo "$ac_t""$result" 1>&6 1541 1542echo $ac_n "checking mail spool location""... $ac_c" 1>&6 1543echo "configure:1544: checking mail spool location" >&5 1544mail_spool="" 1545for i in /var/mail /usr/mail /var/spool/mail /usr/spool/mail 1546do 1547 if test -d $i 1548 then 1549 mail_spool="$i" 1550 fi 1551done 1552if test -z "$mail_spool" 1553then 1554 result="not found" 1555else 1556 result="$mail_spool" 1557 cat >> confdefs.h <<EOF 1558#define PATH_MAIL "$mail_spool" 1559EOF 1560 1561fi 1562echo "$ac_t""$result" 1>&6 1563 1564echo $ac_n "checking where your system puts the utmp file""... $ac_c" 1>&6 1565echo "configure:1566: checking where your system puts the utmp file" >&5 1566utmp_path="" 1567for i in /var/run /var/adm /usr/adm /etc 1568do 1569 if test $EXISTS $i/utmp 1570 then 1571 utmp_path="$i" 1572 fi 1573done 1574if test -z "$utmp_path" 1575then 1576 result="not found" 1577else 1578 result="$utmp_path" 1579 cat >> confdefs.h <<EOF 1580#define PATH_UTMP_AC "$utmp_path/utmp" 1581EOF 1582 1583fi 1584echo "$ac_t""$result" 1>&6 1585 1586echo $ac_n "checking where your system puts the utmpx file""... $ac_c" 1>&6 1587echo "configure:1588: checking where your system puts the utmpx file" >&5 1588utmp_path="" 1589for i in /var/run /var/adm /usr/adm /etc 1590do 1591 if test $EXISTS $i/utmp 1592 then 1593 utmp_path="$i" 1594 fi 1595done 1596if test -z "$utmp_path" 1597then 1598 result="not found" 1599 cat >> confdefs.h <<EOF 1600#define PATH_UTMP_AC "$utmp_path/utmpx" 1601EOF 1602 1603fi 1604echo "$ac_t""$result" 1>&6 1605 1606echo $ac_n "checking where your system puts the wtmp file""... $ac_c" 1>&6 1607echo "configure:1608: checking where your system puts the wtmp file" >&5 1608wtmp_path="" 1609for i in /var/run /var/log /var/adm /usr/adm /etc 1610do 1611 if test $EXISTS $i/wtmp 1612 then 1613 wtmp_path="$i" 1614 fi 1615done 1616if test -z "$wtmp_path" 1617then 1618 result="not found" 1619else 1620 result="$wtmp_path" 1621 cat >> confdefs.h <<EOF 1622#define PATH_WTMP_AC "$wtmp_path/wtmp" 1623EOF 1624 1625fi 1626echo "$ac_t""$result" 1>&6 1627 1628echo $ac_n "checking where your system puts the wtmpx file""... $ac_c" 1>&6 1629echo "configure:1630: checking where your system puts the wtmpx file" >&5 1630wtmpx_path="" 1631for i in /var/run /var/log /var/adm /usr/adm /etc 1632do 1633 if test $EXISTS $i/wtmpx 1634 then 1635 wtmpx_path="$i" 1636 fi 1637done 1638if test -z "$wtmpx_path" 1639then 1640 result="not found" 1641else 1642 result="$wtmpx_path" 1643 cat >> confdefs.h <<EOF 1644#define PATH_WTMPX_AC "$wtmpx_path/wtmpx" 1645EOF 1646 1647fi 1648echo "$ac_t""$result" 1>&6 1649 1650echo $ac_n "checking whether the system profile displays the motd""... $ac_c" 1>&6 1651echo "configure:1652: checking whether the system profile displays the motd" >&5 1652result=no 1653if test $EXISTS /etc/profile 1654then 1655 if grep motd /etc/profile >/dev/null 2>/dev/null 1656 then 1657 result=yes 1658 fi 1659fi 1660if test "$result" = yes 1661then 1662 cat >> confdefs.h <<\EOF 1663#define HAVE_MOTD_IN_PROFILE 1 1664EOF 1665 1666fi 1667echo "$ac_t""$result" 1>&6 1668 1669echo $ac_n "checking whether the system profile checks for mail""... $ac_c" 1>&6 1670echo "configure:1671: checking whether the system profile checks for mail" >&5 1671result=no 1672if test $EXISTS /etc/profile 1673then 1674 if grep 'mail\.' /etc/profile >/dev/null 2>/dev/null 1675 then 1676 result=yes 1677 fi 1678fi 1679if test "$result" = yes 1680then 1681 cat >> confdefs.h <<\EOF 1682#define HAVE_MAILCHECK_IN_PROFILE 1 1683EOF 1684 1685fi 1686echo "$ac_t""$result" 1>&6 1687 1688echo $ac_n "checking for working const""... $ac_c" 1>&6 1689echo "configure:1690: checking for working const" >&5 1690if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 1691 echo $ac_n "(cached) $ac_c" 1>&6 1692else 1693 cat > conftest.$ac_ext <<EOF 1694#line 1695 "configure" 1695#include "confdefs.h" 1696 1697int main() { 1698 1699/* Ultrix mips cc rejects this. */ 1700typedef int charset[2]; const charset x; 1701/* SunOS 4.1.1 cc rejects this. */ 1702char const *const *ccp; 1703char **p; 1704/* NEC SVR4.0.2 mips cc rejects this. */ 1705struct point {int x, y;}; 1706static struct point const zero = {0,0}; 1707/* AIX XL C 1.02.0.0 rejects this. 1708 It does not let you subtract one const X* pointer from another in an arm 1709 of an if-expression whose if-part is not a constant expression */ 1710const char *g = "string"; 1711ccp = &g + (g ? g-g : 0); 1712/* HPUX 7.0 cc rejects these. */ 1713++ccp; 1714p = (char**) ccp; 1715ccp = (char const *const *) p; 1716{ /* SCO 3.2v4 cc rejects this. */ 1717 char *t; 1718 char const *s = 0 ? (char *) 0 : (char const *) 0; 1719 1720 *t++ = 0; 1721} 1722{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 1723 int x[] = {25, 17}; 1724 const int *foo = &x[0]; 1725 ++foo; 1726} 1727{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 1728 typedef const int *iptr; 1729 iptr p = 0; 1730 ++p; 1731} 1732{ /* AIX XL C 1.02.0.0 rejects this saying 1733 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 1734 struct s { int j; const int *ap[3]; }; 1735 struct s *b; b->j = 5; 1736} 1737{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 1738 const int foo = 10; 1739} 1740 1741; return 0; } 1742EOF 1743if { (eval echo configure:1744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1744 rm -rf conftest* 1745 ac_cv_c_const=yes 1746else 1747 echo "configure: failed program was:" >&5 1748 cat conftest.$ac_ext >&5 1749 rm -rf conftest* 1750 ac_cv_c_const=no 1751fi 1752rm -f conftest* 1753fi 1754 1755echo "$ac_t""$ac_cv_c_const" 1>&6 1756if test $ac_cv_c_const = no; then 1757 cat >> confdefs.h <<\EOF 1758#define const 1759EOF 1760 1761fi 1762 1763 1764echo $ac_n "checking to see if your compiler can handle void arguments""... $ac_c" 1>&6 1765echo "configure:1766: checking to see if your compiler can handle void arguments" >&5 1766cat > conftest.$ac_ext <<EOF 1767#line 1768 "configure" 1768#include "confdefs.h" 1769foo(void) { } 1770int main() { 1771 1772; return 0; } 1773EOF 1774if { (eval echo configure:1775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1775 rm -rf conftest* 1776 cat >> confdefs.h <<\EOF 1777#define HAVE_VOIDARG 1 1778EOF 1779 echo "$ac_t""yes" 1>&6 1780else 1781 echo "configure: failed program was:" >&5 1782 cat conftest.$ac_ext >&5 1783 rm -rf conftest* 1784 echo "$ac_t""no" 1>&6 1785fi 1786rm -f conftest* 1787 1788echo $ac_n "checking to see if your compiler can handle void return values""... $ac_c" 1>&6 1789echo "configure:1790: checking to see if your compiler can handle void return values" >&5 1790cat > conftest.$ac_ext <<EOF 1791#line 1792 "configure" 1792#include "confdefs.h" 1793void foo() { } 1794int main() { 1795 1796; return 0; } 1797EOF 1798if { (eval echo configure:1799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1799 rm -rf conftest* 1800 cat >> confdefs.h <<\EOF 1801#define HAVE_VOIDRET 1 1802EOF 1803 echo "$ac_t""yes" 1>&6 1804else 1805 echo "configure: failed program was:" >&5 1806 cat conftest.$ac_ext >&5 1807 rm -rf conftest* 1808 echo "$ac_t""no" 1>&6 1809fi 1810rm -f conftest* 1811 1812echo $ac_n "checking to see if your compiler can handle void pointers""... $ac_c" 1>&6 1813echo "configure:1814: checking to see if your compiler can handle void pointers" >&5 1814cat > conftest.$ac_ext <<EOF 1815#line 1816 "configure" 1816#include "confdefs.h" 1817foo() { void *bar = (void *)0x42; bar = bar + 1; } 1818int main() { 1819 1820; return 0; } 1821EOF 1822if { (eval echo configure:1823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1823 rm -rf conftest* 1824 cat >> confdefs.h <<\EOF 1825#define HAVE_VOIDPTR 1 1826EOF 1827 echo "$ac_t""yes" 1>&6 1828else 1829 echo "configure: failed program was:" >&5 1830 cat conftest.$ac_ext >&5 1831 rm -rf conftest* 1832 echo "$ac_t""no" 1>&6 1833fi 1834rm -f conftest* 1835 1836echo $ac_n "checking to see if your compiler can handle ANSI argument lists""... $ac_c" 1>&6 1837echo "configure:1838: checking to see if your compiler can handle ANSI argument lists" >&5 1838cat > conftest.$ac_ext <<EOF 1839#line 1840 "configure" 1840#include "confdefs.h" 1841int foo(int bar, int baz) { return 0; } 1842int main() { 1843 1844; return 0; } 1845EOF 1846if { (eval echo configure:1847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1847 rm -rf conftest* 1848 cat >> confdefs.h <<\EOF 1849#define HAVE_ANSIDECL 1 1850EOF 1851 echo "$ac_t""yes" 1>&6 1852else 1853 echo "configure: failed program was:" >&5 1854 cat conftest.$ac_ext >&5 1855 rm -rf conftest* 1856 echo "$ac_t""no" 1>&6 1857fi 1858rm -f conftest* 1859 1860echo $ac_n "checking to see if your compiler can handle ANSI prototypes""... $ac_c" 1>&6 1861echo "configure:1862: checking to see if your compiler can handle ANSI prototypes" >&5 1862cat > conftest.$ac_ext <<EOF 1863#line 1864 "configure" 1864#include "confdefs.h" 1865extern int foo(int, int); 1866int main() { 1867 1868; return 0; } 1869EOF 1870if { (eval echo configure:1871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1871 rm -rf conftest* 1872 cat >> confdefs.h <<\EOF 1873#define HAVE_ANSIPROTO 1 1874EOF 1875 echo "$ac_t""yes" 1>&6 1876else 1877 echo "configure: failed program was:" >&5 1878 cat conftest.$ac_ext >&5 1879 rm -rf conftest* 1880 echo "$ac_t""no" 1>&6 1881fi 1882rm -f conftest* 1883 1884echo $ac_n "checking to see if your compiler can handle ANSI variable arguments""... $ac_c" 1>&6 1885echo "configure:1886: checking to see if your compiler can handle ANSI variable arguments" >&5 1886cat > conftest.$ac_ext <<EOF 1887#line 1888 "configure" 1888#include "confdefs.h" 1889#include <stdarg.h> 1890int foo(int arg, ...) { 1891 va_list ap; 1892 va_start(ap, arg); 1893 va_end(ap); 1894 return 0; 1895} 1896int main() { 1897 1898; return 0; } 1899EOF 1900if { (eval echo configure:1901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1901 rm -rf conftest* 1902 cat >> confdefs.h <<\EOF 1903#define HAVE_ANSISTDARG 1 1904EOF 1905 echo "$ac_t""yes" 1>&6 1906else 1907 echo "configure: failed program was:" >&5 1908 cat conftest.$ac_ext >&5 1909 rm -rf conftest* 1910 echo "$ac_t""no" 1>&6 1911fi 1912rm -f conftest* 1913 1914echo $ac_n "checking to see if you have an ANSI-style sprintf""... $ac_c" 1>&6 1915echo "configure:1916: checking to see if you have an ANSI-style sprintf" >&5 1916if test "$cross_compiling" = yes; then 1917 echo "$ac_t""no" 1>&6 1918else 1919 cat > conftest.$ac_ext <<EOF 1920#line 1921 "configure" 1921#include "confdefs.h" 1922#include <stdio.h> 1923int main(argc, argv) 1924int argc; 1925char *argv[]; 1926{ 1927 char buf[5]; 1928 int i = 2; 1929 i += sprintf(buf, "1234"); 1930 return (i == 6) ? 0 : -1; 1931} 1932EOF 1933if { (eval echo configure:1934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null 1934then 1935 cat >> confdefs.h <<\EOF 1936#define HAVE_ANSISPRINTF 1 1937EOF 1938 echo "$ac_t""yes" 1>&6 1939else 1940 echo "configure: failed program was:" >&5 1941 cat conftest.$ac_ext >&5 1942 rm -fr conftest* 1943 echo "$ac_t""no" 1>&6 1944fi 1945rm -fr conftest* 1946fi 1947 1948 1949echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 1950echo "configure:1951: checking for crypt in -lcrypt" >&5 1951ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 1952if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1953 echo $ac_n "(cached) $ac_c" 1>&6 1954else 1955 ac_save_LIBS="$LIBS" 1956LIBS="-lcrypt $LIBS" 1957cat > conftest.$ac_ext <<EOF 1958#line 1959 "configure" 1959#include "confdefs.h" 1960/* Override any gcc2 internal prototype to avoid an error. */ 1961/* We use char because int might match the return type of a gcc2 1962 builtin and then its argument prototype would still apply. */ 1963char crypt(); 1964 1965int main() { 1966crypt() 1967; return 0; } 1968EOF 1969if { (eval echo configure:1970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1970 rm -rf conftest* 1971 eval "ac_cv_lib_$ac_lib_var=yes" 1972else 1973 echo "configure: failed program was:" >&5 1974 cat conftest.$ac_ext >&5 1975 rm -rf conftest* 1976 eval "ac_cv_lib_$ac_lib_var=no" 1977fi 1978rm -f conftest* 1979LIBS="$ac_save_LIBS" 1980 1981fi 1982if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1983 echo "$ac_t""yes" 1>&6 1984 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1985 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1986 cat >> confdefs.h <<EOF 1987#define $ac_tr_lib 1 1988EOF 1989 1990 LIBS="-lcrypt $LIBS" 1991 1992else 1993 echo "$ac_t""no" 1>&6 1994fi 1995 1996echo $ac_n "checking for gethostname in -lnsl""... $ac_c" 1>&6 1997echo "configure:1998: checking for gethostname in -lnsl" >&5 1998ac_lib_var=`echo nsl'_'gethostname | sed 'y%./+-%__p_%'` 1999if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2000 echo $ac_n "(cached) $ac_c" 1>&6 2001else 2002 ac_save_LIBS="$LIBS" 2003LIBS="-lnsl $LIBS" 2004cat > conftest.$ac_ext <<EOF 2005#line 2006 "configure" 2006#include "confdefs.h" 2007/* Override any gcc2 internal prototype to avoid an error. */ 2008/* We use char because int might match the return type of a gcc2 2009 builtin and then its argument prototype would still apply. */ 2010char gethostname(); 2011 2012int main() { 2013gethostname() 2014; return 0; } 2015EOF 2016if { (eval echo configure:2017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2017 rm -rf conftest* 2018 eval "ac_cv_lib_$ac_lib_var=yes" 2019else 2020 echo "configure: failed program was:" >&5 2021 cat conftest.$ac_ext >&5 2022 rm -rf conftest* 2023 eval "ac_cv_lib_$ac_lib_var=no" 2024fi 2025rm -f conftest* 2026LIBS="$ac_save_LIBS" 2027 2028fi 2029if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2030 echo "$ac_t""yes" 1>&6 2031 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 2032 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 2033 cat >> confdefs.h <<EOF 2034#define $ac_tr_lib 1 2035EOF 2036 2037 LIBS="-lnsl $LIBS" 2038 2039else 2040 echo "$ac_t""no" 1>&6 2041fi 2042 2043echo $ac_n "checking for main in -lposix""... $ac_c" 1>&6 2044echo "configure:2045: checking for main in -lposix" >&5 2045ac_lib_var=`echo posix'_'main | sed 'y%./+-%__p_%'` 2046if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2047 echo $ac_n "(cached) $ac_c" 1>&6 2048else 2049 ac_save_LIBS="$LIBS" 2050LIBS="-lposix $LIBS" 2051cat > conftest.$ac_ext <<EOF 2052#line 2053 "configure" 2053#include "confdefs.h" 2054 2055int main() { 2056main() 2057; return 0; } 2058EOF 2059if { (eval echo configure:2060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2060 rm -rf conftest* 2061 eval "ac_cv_lib_$ac_lib_var=yes" 2062else 2063 echo "configure: failed program was:" >&5 2064 cat conftest.$ac_ext >&5 2065 rm -rf conftest* 2066 eval "ac_cv_lib_$ac_lib_var=no" 2067fi 2068rm -f conftest* 2069LIBS="$ac_save_LIBS" 2070 2071fi 2072if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2073 echo "$ac_t""yes" 1>&6 2074 ac_tr_lib=HAVE_LIB`echo posix | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 2075 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 2076 cat >> confdefs.h <<EOF 2077#define $ac_tr_lib 1 2078EOF 2079 2080 LIBS="-lposix $LIBS" 2081 2082else 2083 echo "$ac_t""no" 1>&6 2084fi 2085 2086echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 2087echo "configure:2088: checking for socket in -lsocket" >&5 2088ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` 2089if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2090 echo $ac_n "(cached) $ac_c" 1>&6 2091else 2092 ac_save_LIBS="$LIBS" 2093LIBS="-lsocket $LIBS" 2094cat > conftest.$ac_ext <<EOF 2095#line 2096 "configure" 2096#include "confdefs.h" 2097/* Override any gcc2 internal prototype to avoid an error. */ 2098/* We use char because int might match the return type of a gcc2 2099 builtin and then its argument prototype would still apply. */ 2100char socket(); 2101 2102int main() { 2103socket() 2104; return 0; } 2105EOF 2106if { (eval echo configure:2107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2107 rm -rf conftest* 2108 eval "ac_cv_lib_$ac_lib_var=yes" 2109else 2110 echo "configure: failed program was:" >&5 2111 cat conftest.$ac_ext >&5 2112 rm -rf conftest* 2113 eval "ac_cv_lib_$ac_lib_var=no" 2114fi 2115rm -f conftest* 2116LIBS="$ac_save_LIBS" 2117 2118fi 2119if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2120 echo "$ac_t""yes" 1>&6 2121 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 2122 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 2123 cat >> confdefs.h <<EOF 2124#define $ac_tr_lib 1 2125EOF 2126 2127 LIBS="-lsocket $LIBS" 2128 2129else 2130 echo "$ac_t""no" 1>&6 2131fi 2132 2133 2134ac_header_dirent=no 2135for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h 2136do 2137ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2138echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 2139echo "configure:2140: checking for $ac_hdr that defines DIR" >&5 2140if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then 2141 echo $ac_n "(cached) $ac_c" 1>&6 2142else 2143 cat > conftest.$ac_ext <<EOF 2144#line 2145 "configure" 2145#include "confdefs.h" 2146#include <sys/types.h> 2147#include <$ac_hdr> 2148int main() { 2149DIR *dirp = 0; 2150; return 0; } 2151EOF 2152if { (eval echo configure:2153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2153 rm -rf conftest* 2154 eval "ac_cv_header_dirent_$ac_safe=yes" 2155else 2156 echo "configure: failed program was:" >&5 2157 cat conftest.$ac_ext >&5 2158 rm -rf conftest* 2159 eval "ac_cv_header_dirent_$ac_safe=no" 2160fi 2161rm -f conftest* 2162fi 2163if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then 2164 echo "$ac_t""yes" 1>&6 2165 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2166 cat >> confdefs.h <<EOF 2167#define $ac_tr_hdr 1 2168EOF 2169 ac_header_dirent=$ac_hdr; break 2170else 2171 echo "$ac_t""no" 1>&6 2172fi 2173done 2174# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 2175if test $ac_header_dirent = dirent.h; then 2176echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 2177echo "configure:2178: checking for opendir in -ldir" >&5 2178ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` 2179if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2180 echo $ac_n "(cached) $ac_c" 1>&6 2181else 2182 ac_save_LIBS="$LIBS" 2183LIBS="-ldir $LIBS" 2184cat > conftest.$ac_ext <<EOF 2185#line 2186 "configure" 2186#include "confdefs.h" 2187/* Override any gcc2 internal prototype to avoid an error. */ 2188/* We use char because int might match the return type of a gcc2 2189 builtin and then its argument prototype would still apply. */ 2190char opendir(); 2191 2192int main() { 2193opendir() 2194; return 0; } 2195EOF 2196if { (eval echo configure:2197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2197 rm -rf conftest* 2198 eval "ac_cv_lib_$ac_lib_var=yes" 2199else 2200 echo "configure: failed program was:" >&5 2201 cat conftest.$ac_ext >&5 2202 rm -rf conftest* 2203 eval "ac_cv_lib_$ac_lib_var=no" 2204fi 2205rm -f conftest* 2206LIBS="$ac_save_LIBS" 2207 2208fi 2209if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2210 echo "$ac_t""yes" 1>&6 2211 LIBS="$LIBS -ldir" 2212else 2213 echo "$ac_t""no" 1>&6 2214fi 2215 2216else 2217echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 2218echo "configure:2219: checking for opendir in -lx" >&5 2219ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` 2220if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2221 echo $ac_n "(cached) $ac_c" 1>&6 2222else 2223 ac_save_LIBS="$LIBS" 2224LIBS="-lx $LIBS" 2225cat > conftest.$ac_ext <<EOF 2226#line 2227 "configure" 2227#include "confdefs.h" 2228/* Override any gcc2 internal prototype to avoid an error. */ 2229/* We use char because int might match the return type of a gcc2 2230 builtin and then its argument prototype would still apply. */ 2231char opendir(); 2232 2233int main() { 2234opendir() 2235; return 0; } 2236EOF 2237if { (eval echo configure:2238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2238 rm -rf conftest* 2239 eval "ac_cv_lib_$ac_lib_var=yes" 2240else 2241 echo "configure: failed program was:" >&5 2242 cat conftest.$ac_ext >&5 2243 rm -rf conftest* 2244 eval "ac_cv_lib_$ac_lib_var=no" 2245fi 2246rm -f conftest* 2247LIBS="$ac_save_LIBS" 2248 2249fi 2250if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2251 echo "$ac_t""yes" 1>&6 2252 LIBS="$LIBS -lx" 2253else 2254 echo "$ac_t""no" 1>&6 2255fi 2256 2257fi 2258 2259echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 2260echo "configure:2261: checking for sys/wait.h that is POSIX.1 compatible" >&5 2261if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then 2262 echo $ac_n "(cached) $ac_c" 1>&6 2263else 2264 cat > conftest.$ac_ext <<EOF 2265#line 2266 "configure" 2266#include "confdefs.h" 2267#include <sys/types.h> 2268#include <sys/wait.h> 2269#ifndef WEXITSTATUS 2270#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 2271#endif 2272#ifndef WIFEXITED 2273#define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 2274#endif 2275int main() { 2276int s; 2277wait (&s); 2278s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 2279; return 0; } 2280EOF 2281if { (eval echo configure:2282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2282 rm -rf conftest* 2283 ac_cv_header_sys_wait_h=yes 2284else 2285 echo "configure: failed program was:" >&5 2286 cat conftest.$ac_ext >&5 2287 rm -rf conftest* 2288 ac_cv_header_sys_wait_h=no 2289fi 2290rm -f conftest* 2291fi 2292 2293echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 2294if test $ac_cv_header_sys_wait_h = yes; then 2295 cat >> confdefs.h <<\EOF 2296#define HAVE_SYS_WAIT_H 1 2297EOF 2298 2299fi 2300 2301for ac_hdr in crypt.h fcntl.h limits.h termios.h sys/file.h sys/ioctl.h sys/time.h syslog.h unistd.h paths.h shadow.h signal.h sys/signal.h lastlog.h sys/utsname.h pwd.h sys/param.h string.h stdlib.h utmpx.h sys/select.h 2302do 2303ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2304echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2305echo "configure:2306: checking for $ac_hdr" >&5 2306if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2307 echo $ac_n "(cached) $ac_c" 1>&6 2308else 2309 cat > conftest.$ac_ext <<EOF 2310#line 2311 "configure" 2311#include "confdefs.h" 2312#include <$ac_hdr> 2313EOF 2314ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2315{ (eval echo configure:2316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2316ac_err=`grep -v '^ *+' conftest.out` 2317if test -z "$ac_err"; then 2318 rm -rf conftest* 2319 eval "ac_cv_header_$ac_safe=yes" 2320else 2321 echo "$ac_err" >&5 2322 echo "configure: failed program was:" >&5 2323 cat conftest.$ac_ext >&5 2324 rm -rf conftest* 2325 eval "ac_cv_header_$ac_safe=no" 2326fi 2327rm -f conftest* 2328fi 2329if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2330 echo "$ac_t""yes" 1>&6 2331 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2332 cat >> confdefs.h <<EOF 2333#define $ac_tr_hdr 1 2334EOF 2335 2336else 2337 echo "$ac_t""no" 1>&6 2338fi 2339done 2340 2341 2342 2343echo $ac_n "checking for ut_pid in struct utmp""... $ac_c" 1>&6 2344echo "configure:2345: checking for ut_pid in struct utmp" >&5 2345cat > conftest.$ac_ext <<EOF 2346#line 2347 "configure" 2347#include "confdefs.h" 2348#include <sys/types.h> 2349#include <utmp.h> 2350int main() { 2351struct utmp foo; return (int)foo.ut_pid; 2352; return 0; } 2353EOF 2354if { (eval echo configure:2355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2355 rm -rf conftest* 2356 cat >> confdefs.h <<\EOF 2357#define HAVE_UT_PID 1 2358EOF 2359 echo "$ac_t""yes" 1>&6 2360else 2361 echo "configure: failed program was:" >&5 2362 cat conftest.$ac_ext >&5 2363 rm -rf conftest* 2364 echo "$ac_t""no" 1>&6 2365fi 2366rm -f conftest* 2367echo $ac_n "checking for ut_type in struct utmp""... $ac_c" 1>&6 2368echo "configure:2369: checking for ut_type in struct utmp" >&5 2369cat > conftest.$ac_ext <<EOF 2370#line 2371 "configure" 2371#include "confdefs.h" 2372#include <sys/types.h> 2373#include <utmp.h> 2374int main() { 2375struct utmp foo; return (int)foo.ut_type; 2376; return 0; } 2377EOF 2378if { (eval echo configure:2379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2379 rm -rf conftest* 2380 cat >> confdefs.h <<\EOF 2381#define HAVE_UT_TYPE 1 2382EOF 2383 echo "$ac_t""yes" 1>&6 2384else 2385 echo "configure: failed program was:" >&5 2386 cat conftest.$ac_ext >&5 2387 rm -rf conftest* 2388 echo "$ac_t""no" 1>&6 2389fi 2390rm -f conftest* 2391echo $ac_n "checking for ut_name in struct utmp""... $ac_c" 1>&6 2392echo "configure:2393: checking for ut_name in struct utmp" >&5 2393cat > conftest.$ac_ext <<EOF 2394#line 2395 "configure" 2395#include "confdefs.h" 2396#include <sys/types.h> 2397#include <utmp.h> 2398int main() { 2399struct utmp foo; return (int)foo.ut_name[0]; 2400; return 0; } 2401EOF 2402if { (eval echo configure:2403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2403 rm -rf conftest* 2404 cat >> confdefs.h <<\EOF 2405#define HAVE_UT_NAME 1 2406EOF 2407 echo "$ac_t""yes" 1>&6 2408else 2409 echo "configure: failed program was:" >&5 2410 cat conftest.$ac_ext >&5 2411 rm -rf conftest* 2412 echo "$ac_t""no" 1>&6 2413fi 2414rm -f conftest* 2415cat >> confdefs.h <<\EOF 2416#define HAVE_UT_HOST 1 2417EOF 2418 2419 2420echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2421echo "configure:2422: checking return type of signal handlers" >&5 2422if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 2423 echo $ac_n "(cached) $ac_c" 1>&6 2424else 2425 cat > conftest.$ac_ext <<EOF 2426#line 2427 "configure" 2427#include "confdefs.h" 2428#include <sys/types.h> 2429#include <signal.h> 2430#ifdef signal 2431#undef signal 2432#endif 2433#ifdef __cplusplus 2434extern "C" void (*signal (int, void (*)(int)))(int); 2435#else 2436void (*signal ()) (); 2437#endif 2438 2439int main() { 2440int i; 2441; return 0; } 2442EOF 2443if { (eval echo configure:2444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2444 rm -rf conftest* 2445 ac_cv_type_signal=void 2446else 2447 echo "configure: failed program was:" >&5 2448 cat conftest.$ac_ext >&5 2449 rm -rf conftest* 2450 ac_cv_type_signal=int 2451fi 2452rm -f conftest* 2453fi 2454 2455echo "$ac_t""$ac_cv_type_signal" 1>&6 2456cat >> confdefs.h <<EOF 2457#define RETSIGTYPE $ac_cv_type_signal 2458EOF 2459 2460 2461for ac_func in gettimeofday socket strftime strstr setpriority getttynam setvbuf getspnam endspent setgroups getgroups fpurge setlogin lstat getutxline pututxline usleep 2462do 2463echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2464echo "configure:2465: checking for $ac_func" >&5 2465if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2466 echo $ac_n "(cached) $ac_c" 1>&6 2467else 2468 cat > conftest.$ac_ext <<EOF 2469#line 2470 "configure" 2470#include "confdefs.h" 2471/* System header to define __stub macros and hopefully few prototypes, 2472 which can conflict with char $ac_func(); below. */ 2473#include <assert.h> 2474/* Override any gcc2 internal prototype to avoid an error. */ 2475/* We use char because int might match the return type of a gcc2 2476 builtin and then its argument prototype would still apply. */ 2477char $ac_func(); 2478 2479int main() { 2480 2481/* The GNU C library defines this for functions which it implements 2482 to always fail with ENOSYS. Some functions are actually named 2483 something starting with __ and the normal name is an alias. */ 2484#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2485choke me 2486#else 2487$ac_func(); 2488#endif 2489 2490; return 0; } 2491EOF 2492if { (eval echo configure:2493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2493 rm -rf conftest* 2494 eval "ac_cv_func_$ac_func=yes" 2495else 2496 echo "configure: failed program was:" >&5 2497 cat conftest.$ac_ext >&5 2498 rm -rf conftest* 2499 eval "ac_cv_func_$ac_func=no" 2500fi 2501rm -f conftest* 2502fi 2503 2504if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2505 echo "$ac_t""yes" 1>&6 2506 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2507 cat >> confdefs.h <<EOF 2508#define $ac_tr_func 1 2509EOF 2510 2511else 2512 echo "$ac_t""no" 1>&6 2513fi 2514done 2515 2516 2517echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6 2518echo "configure:2519: checking for 8-bit clean memcmp" >&5 2519if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then 2520 echo $ac_n "(cached) $ac_c" 1>&6 2521else 2522 if test "$cross_compiling" = yes; then 2523 ac_cv_func_memcmp_clean=no 2524else 2525 cat > conftest.$ac_ext <<EOF 2526#line 2527 "configure" 2527#include "confdefs.h" 2528 2529main() 2530{ 2531 char c0 = 0x40, c1 = 0x80, c2 = 0x81; 2532 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1); 2533} 2534 2535EOF 2536if { (eval echo configure:2537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null 2537then 2538 ac_cv_func_memcmp_clean=yes 2539else 2540 echo "configure: failed program was:" >&5 2541 cat conftest.$ac_ext >&5 2542 rm -fr conftest* 2543 ac_cv_func_memcmp_clean=no 2544fi 2545rm -fr conftest* 2546fi 2547 2548fi 2549 2550echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6 2551test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o" 2552 2553# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 2554# for constant arguments. Useless! 2555echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 2556echo "configure:2557: checking for working alloca.h" >&5 2557if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 2558 echo $ac_n "(cached) $ac_c" 1>&6 2559else 2560 cat > conftest.$ac_ext <<EOF 2561#line 2562 "configure" 2562#include "confdefs.h" 2563#include <alloca.h> 2564int main() { 2565char *p = alloca(2 * sizeof(int)); 2566; return 0; } 2567EOF 2568if { (eval echo configure:2569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2569 rm -rf conftest* 2570 ac_cv_header_alloca_h=yes 2571else 2572 echo "configure: failed program was:" >&5 2573 cat conftest.$ac_ext >&5 2574 rm -rf conftest* 2575 ac_cv_header_alloca_h=no 2576fi 2577rm -f conftest* 2578fi 2579 2580echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 2581if test $ac_cv_header_alloca_h = yes; then 2582 cat >> confdefs.h <<\EOF 2583#define HAVE_ALLOCA_H 1 2584EOF 2585 2586fi 2587 2588echo $ac_n "checking for alloca""... $ac_c" 1>&6 2589echo "configure:2590: checking for alloca" >&5 2590if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 2591 echo $ac_n "(cached) $ac_c" 1>&6 2592else 2593 cat > conftest.$ac_ext <<EOF 2594#line 2595 "configure" 2595#include "confdefs.h" 2596 2597#ifdef __GNUC__ 2598# define alloca __builtin_alloca 2599#else 2600# if HAVE_ALLOCA_H 2601# include <alloca.h> 2602# else 2603# ifdef _AIX 2604 #pragma alloca 2605# else 2606# ifndef alloca /* predefined by HP cc +Olibcalls */ 2607char *alloca (); 2608# endif 2609# endif 2610# endif 2611#endif 2612 2613int main() { 2614char *p = (char *) alloca(1); 2615; return 0; } 2616EOF 2617if { (eval echo configure:2618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2618 rm -rf conftest* 2619 ac_cv_func_alloca_works=yes 2620else 2621 echo "configure: failed program was:" >&5 2622 cat conftest.$ac_ext >&5 2623 rm -rf conftest* 2624 ac_cv_func_alloca_works=no 2625fi 2626rm -f conftest* 2627fi 2628 2629echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 2630if test $ac_cv_func_alloca_works = yes; then 2631 cat >> confdefs.h <<\EOF 2632#define HAVE_ALLOCA 1 2633EOF 2634 2635fi 2636 2637if test $ac_cv_func_alloca_works = no; then 2638 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 2639 # that cause trouble. Some versions do not even contain alloca or 2640 # contain a buggy version. If you still want to use their alloca, 2641 # use ar to extract alloca.o from them instead of compiling alloca.c. 2642 ALLOCA=alloca.o 2643 cat >> confdefs.h <<\EOF 2644#define C_ALLOCA 1 2645EOF 2646 2647 2648echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 2649echo "configure:2650: checking whether alloca needs Cray hooks" >&5 2650if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 2651 echo $ac_n "(cached) $ac_c" 1>&6 2652else 2653 cat > conftest.$ac_ext <<EOF 2654#line 2655 "configure" 2655#include "confdefs.h" 2656#if defined(CRAY) && ! defined(CRAY2) 2657webecray 2658#else 2659wenotbecray 2660#endif 2661 2662EOF 2663if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2664 egrep "webecray" >/dev/null 2>&1; then 2665 rm -rf conftest* 2666 ac_cv_os_cray=yes 2667else 2668 rm -rf conftest* 2669 ac_cv_os_cray=no 2670fi 2671rm -f conftest* 2672 2673fi 2674 2675echo "$ac_t""$ac_cv_os_cray" 1>&6 2676if test $ac_cv_os_cray = yes; then 2677for ac_func in _getb67 GETB67 getb67; do 2678 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2679echo "configure:2680: checking for $ac_func" >&5 2680if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2681 echo $ac_n "(cached) $ac_c" 1>&6 2682else 2683 cat > conftest.$ac_ext <<EOF 2684#line 2685 "configure" 2685#include "confdefs.h" 2686/* System header to define __stub macros and hopefully few prototypes, 2687 which can conflict with char $ac_func(); below. */ 2688#include <assert.h> 2689/* Override any gcc2 internal prototype to avoid an error. */ 2690/* We use char because int might match the return type of a gcc2 2691 builtin and then its argument prototype would still apply. */ 2692char $ac_func(); 2693 2694int main() { 2695 2696/* The GNU C library defines this for functions which it implements 2697 to always fail with ENOSYS. Some functions are actually named 2698 something starting with __ and the normal name is an alias. */ 2699#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2700choke me 2701#else 2702$ac_func(); 2703#endif 2704 2705; return 0; } 2706EOF 2707if { (eval echo configure:2708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2708 rm -rf conftest* 2709 eval "ac_cv_func_$ac_func=yes" 2710else 2711 echo "configure: failed program was:" >&5 2712 cat conftest.$ac_ext >&5 2713 rm -rf conftest* 2714 eval "ac_cv_func_$ac_func=no" 2715fi 2716rm -f conftest* 2717fi 2718 2719if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2720 echo "$ac_t""yes" 1>&6 2721 cat >> confdefs.h <<EOF 2722#define CRAY_STACKSEG_END $ac_func 2723EOF 2724 2725 break 2726else 2727 echo "$ac_t""no" 1>&6 2728fi 2729 2730done 2731fi 2732 2733echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 2734echo "configure:2735: checking stack direction for C alloca" >&5 2735if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 2736 echo $ac_n "(cached) $ac_c" 1>&6 2737else 2738 if test "$cross_compiling" = yes; then 2739 ac_cv_c_stack_direction=0 2740else 2741 cat > conftest.$ac_ext <<EOF 2742#line 2743 "configure" 2743#include "confdefs.h" 2744find_stack_direction () 2745{ 2746 static char *addr = 0; 2747 auto char dummy; 2748 if (addr == 0) 2749 { 2750 addr = &dummy; 2751 return find_stack_direction (); 2752 } 2753 else 2754 return (&dummy > addr) ? 1 : -1; 2755} 2756main () 2757{ 2758 exit (find_stack_direction() < 0); 2759} 2760EOF 2761if { (eval echo configure:2762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null 2762then 2763 ac_cv_c_stack_direction=1 2764else 2765 echo "configure: failed program was:" >&5 2766 cat conftest.$ac_ext >&5 2767 rm -fr conftest* 2768 ac_cv_c_stack_direction=-1 2769fi 2770rm -fr conftest* 2771fi 2772 2773fi 2774 2775echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 2776cat >> confdefs.h <<EOF 2777#define STACK_DIRECTION $ac_cv_c_stack_direction 2778EOF 2779 2780fi 2781 2782for ac_func in getusershell sigaddset sigemptyset strerror strncasecmp 2783do 2784echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2785echo "configure:2786: checking for $ac_func" >&5 2786if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2787 echo $ac_n "(cached) $ac_c" 1>&6 2788else 2789 cat > conftest.$ac_ext <<EOF 2790#line 2791 "configure" 2791#include "confdefs.h" 2792/* System header to define __stub macros and hopefully few prototypes, 2793 which can conflict with char $ac_func(); below. */ 2794#include <assert.h> 2795/* Override any gcc2 internal prototype to avoid an error. */ 2796/* We use char because int might match the return type of a gcc2 2797 builtin and then its argument prototype would still apply. */ 2798char $ac_func(); 2799 2800int main() { 2801 2802/* The GNU C library defines this for functions which it implements 2803 to always fail with ENOSYS. Some functions are actually named 2804 something starting with __ and the normal name is an alias. */ 2805#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2806choke me 2807#else 2808$ac_func(); 2809#endif 2810 2811; return 0; } 2812EOF 2813if { (eval echo configure:2814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2814 rm -rf conftest* 2815 eval "ac_cv_func_$ac_func=yes" 2816else 2817 echo "configure: failed program was:" >&5 2818 cat conftest.$ac_ext >&5 2819 rm -rf conftest* 2820 eval "ac_cv_func_$ac_func=no" 2821fi 2822rm -f conftest* 2823fi 2824 2825if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2826 echo "$ac_t""yes" 1>&6 2827 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2828 cat >> confdefs.h <<EOF 2829#define $ac_tr_func 1 2830EOF 2831 2832else 2833 echo "$ac_t""no" 1>&6 2834LIBOBJS="$LIBOBJS ${ac_func}.o" 2835fi 2836done 2837 2838 2839MISSING="$LIBOBJS $ALLOCA " ; 2840echo $ac_n "checking for atexit""... $ac_c" 1>&6 2841echo "configure:2842: checking for atexit" >&5 2842if eval "test \"`echo '$''{'ac_cv_func_atexit'+set}'`\" = set"; then 2843 echo $ac_n "(cached) $ac_c" 1>&6 2844else 2845 cat > conftest.$ac_ext <<EOF 2846#line 2847 "configure" 2847#include "confdefs.h" 2848/* System header to define __stub macros and hopefully few prototypes, 2849 which can conflict with char atexit(); below. */ 2850#include <assert.h> 2851/* Override any gcc2 internal prototype to avoid an error. */ 2852/* We use char because int might match the return type of a gcc2 2853 builtin and then its argument prototype would still apply. */ 2854char atexit(); 2855 2856int main() { 2857 2858/* The GNU C library defines this for functions which it implements 2859 to always fail with ENOSYS. Some functions are actually named 2860 something starting with __ and the normal name is an alias. */ 2861#if defined (__stub_atexit) || defined (__stub___atexit) 2862choke me 2863#else 2864atexit(); 2865#endif 2866 2867; return 0; } 2868EOF 2869if { (eval echo configure:2870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2870 rm -rf conftest* 2871 eval "ac_cv_func_atexit=yes" 2872else 2873 echo "configure: failed program was:" >&5 2874 cat conftest.$ac_ext >&5 2875 rm -rf conftest* 2876 eval "ac_cv_func_atexit=no" 2877fi 2878rm -f conftest* 2879fi 2880 2881if eval "test \"`echo '$ac_cv_func_'atexit`\" = yes"; then 2882 echo "$ac_t""yes" 1>&6 2883 : 2884else 2885 echo "$ac_t""no" 1>&6 2886MISSING="${MISSING}atexit.o "; for ac_func in on_exit 2887do 2888echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2889echo "configure:2890: checking for $ac_func" >&5 2890if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2891 echo $ac_n "(cached) $ac_c" 1>&6 2892else 2893 cat > conftest.$ac_ext <<EOF 2894#line 2895 "configure" 2895#include "confdefs.h" 2896/* System header to define __stub macros and hopefully few prototypes, 2897 which can conflict with char $ac_func(); below. */ 2898#include <assert.h> 2899/* Override any gcc2 internal prototype to avoid an error. */ 2900/* We use char because int might match the return type of a gcc2 2901 builtin and then its argument prototype would still apply. */ 2902char $ac_func(); 2903 2904int main() { 2905 2906/* The GNU C library defines this for functions which it implements 2907 to always fail with ENOSYS. Some functions are actually named 2908 something starting with __ and the normal name is an alias. */ 2909#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2910choke me 2911#else 2912$ac_func(); 2913#endif 2914 2915; return 0; } 2916EOF 2917if { (eval echo configure:2918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2918 rm -rf conftest* 2919 eval "ac_cv_func_$ac_func=yes" 2920else 2921 echo "configure: failed program was:" >&5 2922 cat conftest.$ac_ext >&5 2923 rm -rf conftest* 2924 eval "ac_cv_func_$ac_func=no" 2925fi 2926rm -f conftest* 2927fi 2928 2929if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2930 echo "$ac_t""yes" 1>&6 2931 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2932 cat >> confdefs.h <<EOF 2933#define $ac_tr_func 1 2934EOF 2935 2936else 2937 echo "$ac_t""no" 1>&6 2938fi 2939done 2940 2941fi 2942 2943echo $ac_n "checking for endutent""... $ac_c" 1>&6 2944echo "configure:2945: checking for endutent" >&5 2945if eval "test \"`echo '$''{'ac_cv_func_endutent'+set}'`\" = set"; then 2946 echo $ac_n "(cached) $ac_c" 1>&6 2947else 2948 cat > conftest.$ac_ext <<EOF 2949#line 2950 "configure" 2950#include "confdefs.h" 2951/* System header to define __stub macros and hopefully few prototypes, 2952 which can conflict with char endutent(); below. */ 2953#include <assert.h> 2954/* Override any gcc2 internal prototype to avoid an error. */ 2955/* We use char because int might match the return type of a gcc2 2956 builtin and then its argument prototype would still apply. */ 2957char endutent(); 2958 2959int main() { 2960 2961/* The GNU C library defines this for functions which it implements 2962 to always fail with ENOSYS. Some functions are actually named 2963 something starting with __ and the normal name is an alias. */ 2964#if defined (__stub_endutent) || defined (__stub___endutent) 2965choke me 2966#else 2967endutent(); 2968#endif 2969 2970; return 0; } 2971EOF 2972if { (eval echo configure:2973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2973 rm -rf conftest* 2974 eval "ac_cv_func_endutent=yes" 2975else 2976 echo "configure: failed program was:" >&5 2977 cat conftest.$ac_ext >&5 2978 rm -rf conftest* 2979 eval "ac_cv_func_endutent=no" 2980fi 2981rm -f conftest* 2982fi 2983 2984if eval "test \"`echo '$ac_cv_func_'endutent`\" = yes"; then 2985 echo "$ac_t""yes" 1>&6 2986 : 2987else 2988 echo "$ac_t""no" 1>&6 2989MISSING="${MISSING}endutent.o " 2990fi 2991 2992echo $ac_n "checking for memcpy""... $ac_c" 1>&6 2993echo "configure:2994: checking for memcpy" >&5 2994if eval "test \"`echo '$''{'ac_cv_func_memcpy'+set}'`\" = set"; then 2995 echo $ac_n "(cached) $ac_c" 1>&6 2996else 2997 cat > conftest.$ac_ext <<EOF 2998#line 2999 "configure" 2999#include "confdefs.h" 3000/* System header to define __stub macros and hopefully few prototypes, 3001 which can conflict with char memcpy(); below. */ 3002#include <assert.h> 3003/* Override any gcc2 internal prototype to avoid an error. */ 3004/* We use char because int might match the return type of a gcc2 3005 builtin and then its argument prototype would still apply. */ 3006char memcpy(); 3007 3008int main() { 3009 3010/* The GNU C library defines this for functions which it implements 3011 to always fail with ENOSYS. Some functions are actually named 3012 something starting with __ and the normal name is an alias. */ 3013#if defined (__stub_memcpy) || defined (__stub___memcpy) 3014choke me 3015#else 3016memcpy(); 3017#endif 3018 3019; return 0; } 3020EOF 3021if { (eval echo configure:3022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3022 rm -rf conftest* 3023 eval "ac_cv_func_memcpy=yes" 3024else 3025 echo "configure: failed program was:" >&5 3026 cat conftest.$ac_ext >&5 3027 rm -rf conftest* 3028 eval "ac_cv_func_memcpy=no" 3029fi 3030rm -f conftest* 3031fi 3032 3033if eval "test \"`echo '$ac_cv_func_'memcpy`\" = yes"; then 3034 echo "$ac_t""yes" 1>&6 3035 : 3036else 3037 echo "$ac_t""no" 1>&6 3038MISSING="${MISSING}memcpy.o "; for ac_func in bcopy 3039do 3040echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3041echo "configure:3042: checking for $ac_func" >&5 3042if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3043 echo $ac_n "(cached) $ac_c" 1>&6 3044else 3045 cat > conftest.$ac_ext <<EOF 3046#line 3047 "configure" 3047#include "confdefs.h" 3048/* System header to define __stub macros and hopefully few prototypes, 3049 which can conflict with char $ac_func(); below. */ 3050#include <assert.h> 3051/* Override any gcc2 internal prototype to avoid an error. */ 3052/* We use char because int might match the return type of a gcc2 3053 builtin and then its argument prototype would still apply. */ 3054char $ac_func(); 3055 3056int main() { 3057 3058/* The GNU C library defines this for functions which it implements 3059 to always fail with ENOSYS. Some functions are actually named 3060 something starting with __ and the normal name is an alias. */ 3061#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3062choke me 3063#else 3064$ac_func(); 3065#endif 3066 3067; return 0; } 3068EOF 3069if { (eval echo configure:3070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3070 rm -rf conftest* 3071 eval "ac_cv_func_$ac_func=yes" 3072else 3073 echo "configure: failed program was:" >&5 3074 cat conftest.$ac_ext >&5 3075 rm -rf conftest* 3076 eval "ac_cv_func_$ac_func=no" 3077fi 3078rm -f conftest* 3079fi 3080 3081if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3082 echo "$ac_t""yes" 1>&6 3083 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3084 cat >> confdefs.h <<EOF 3085#define $ac_tr_func 1 3086EOF 3087 3088else 3089 echo "$ac_t""no" 1>&6 3090fi 3091done 3092 3093fi 3094 3095echo $ac_n "checking for memset""... $ac_c" 1>&6 3096echo "configure:3097: checking for memset" >&5 3097if eval "test \"`echo '$''{'ac_cv_func_memset'+set}'`\" = set"; then 3098 echo $ac_n "(cached) $ac_c" 1>&6 3099else 3100 cat > conftest.$ac_ext <<EOF 3101#line 3102 "configure" 3102#include "confdefs.h" 3103/* System header to define __stub macros and hopefully few prototypes, 3104 which can conflict with char memset(); below. */ 3105#include <assert.h> 3106/* Override any gcc2 internal prototype to avoid an error. */ 3107/* We use char because int might match the return type of a gcc2 3108 builtin and then its argument prototype would still apply. */ 3109char memset(); 3110 3111int main() { 3112 3113/* The GNU C library defines this for functions which it implements 3114 to always fail with ENOSYS. Some functions are actually named 3115 something starting with __ and the normal name is an alias. */ 3116#if defined (__stub_memset) || defined (__stub___memset) 3117choke me 3118#else 3119memset(); 3120#endif 3121 3122; return 0; } 3123EOF 3124if { (eval echo configure:3125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3125 rm -rf conftest* 3126 eval "ac_cv_func_memset=yes" 3127else 3128 echo "configure: failed program was:" >&5 3129 cat conftest.$ac_ext >&5 3130 rm -rf conftest* 3131 eval "ac_cv_func_memset=no" 3132fi 3133rm -f conftest* 3134fi 3135 3136if eval "test \"`echo '$ac_cv_func_'memset`\" = yes"; then 3137 echo "$ac_t""yes" 1>&6 3138 : 3139else 3140 echo "$ac_t""no" 1>&6 3141MISSING="${MISSING}memset.o "; for ac_func in bzero 3142do 3143echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3144echo "configure:3145: checking for $ac_func" >&5 3145if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3146 echo $ac_n "(cached) $ac_c" 1>&6 3147else 3148 cat > conftest.$ac_ext <<EOF 3149#line 3150 "configure" 3150#include "confdefs.h" 3151/* System header to define __stub macros and hopefully few prototypes, 3152 which can conflict with char $ac_func(); below. */ 3153#include <assert.h> 3154/* Override any gcc2 internal prototype to avoid an error. */ 3155/* We use char because int might match the return type of a gcc2 3156 builtin and then its argument prototype would still apply. */ 3157char $ac_func(); 3158 3159int main() { 3160 3161/* The GNU C library defines this for functions which it implements 3162 to always fail with ENOSYS. Some functions are actually named 3163 something starting with __ and the normal name is an alias. */ 3164#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3165choke me 3166#else 3167$ac_func(); 3168#endif 3169 3170; return 0; } 3171EOF 3172if { (eval echo configure:3173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3173 rm -rf conftest* 3174 eval "ac_cv_func_$ac_func=yes" 3175else 3176 echo "configure: failed program was:" >&5 3177 cat conftest.$ac_ext >&5 3178 rm -rf conftest* 3179 eval "ac_cv_func_$ac_func=no" 3180fi 3181rm -f conftest* 3182fi 3183 3184if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3185 echo "$ac_t""yes" 1>&6 3186 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3187 cat >> confdefs.h <<EOF 3188#define $ac_tr_func 1 3189EOF 3190 3191else 3192 echo "$ac_t""no" 1>&6 3193fi 3194done 3195 3196fi 3197 3198echo $ac_n "checking for getcwd""... $ac_c" 1>&6 3199echo "configure:3200: checking for getcwd" >&5 3200if eval "test \"`echo '$''{'ac_cv_func_getcwd'+set}'`\" = set"; then 3201 echo $ac_n "(cached) $ac_c" 1>&6 3202else 3203 cat > conftest.$ac_ext <<EOF 3204#line 3205 "configure" 3205#include "confdefs.h" 3206/* System header to define __stub macros and hopefully few prototypes, 3207 which can conflict with char getcwd(); below. */ 3208#include <assert.h> 3209/* Override any gcc2 internal prototype to avoid an error. */ 3210/* We use char because int might match the return type of a gcc2 3211 builtin and then its argument prototype would still apply. */ 3212char getcwd(); 3213 3214int main() { 3215 3216/* The GNU C library defines this for functions which it implements 3217 to always fail with ENOSYS. Some functions are actually named 3218 something starting with __ and the normal name is an alias. */ 3219#if defined (__stub_getcwd) || defined (__stub___getcwd) 3220choke me 3221#else 3222getcwd(); 3223#endif 3224 3225; return 0; } 3226EOF 3227if { (eval echo configure:3228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3228 rm -rf conftest* 3229 eval "ac_cv_func_getcwd=yes" 3230else 3231 echo "configure: failed program was:" >&5 3232 cat conftest.$ac_ext >&5 3233 rm -rf conftest* 3234 eval "ac_cv_func_getcwd=no" 3235fi 3236rm -f conftest* 3237fi 3238 3239if eval "test \"`echo '$ac_cv_func_'getcwd`\" = yes"; then 3240 echo "$ac_t""yes" 1>&6 3241 : 3242else 3243 echo "$ac_t""no" 1>&6 3244MISSING="${MISSING}getcwd.o "; for ac_func in getwd 3245do 3246echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3247echo "configure:3248: checking for $ac_func" >&5 3248if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3249 echo $ac_n "(cached) $ac_c" 1>&6 3250else 3251 cat > conftest.$ac_ext <<EOF 3252#line 3253 "configure" 3253#include "confdefs.h" 3254/* System header to define __stub macros and hopefully few prototypes, 3255 which can conflict with char $ac_func(); below. */ 3256#include <assert.h> 3257/* Override any gcc2 internal prototype to avoid an error. */ 3258/* We use char because int might match the return type of a gcc2 3259 builtin and then its argument prototype would still apply. */ 3260char $ac_func(); 3261 3262int main() { 3263 3264/* The GNU C library defines this for functions which it implements 3265 to always fail with ENOSYS. Some functions are actually named 3266 something starting with __ and the normal name is an alias. */ 3267#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3268choke me 3269#else 3270$ac_func(); 3271#endif 3272 3273; return 0; } 3274EOF 3275if { (eval echo configure:3276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3276 rm -rf conftest* 3277 eval "ac_cv_func_$ac_func=yes" 3278else 3279 echo "configure: failed program was:" >&5 3280 cat conftest.$ac_ext >&5 3281 rm -rf conftest* 3282 eval "ac_cv_func_$ac_func=no" 3283fi 3284rm -f conftest* 3285fi 3286 3287if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3288 echo "$ac_t""yes" 1>&6 3289 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3290 cat >> confdefs.h <<EOF 3291#define $ac_tr_func 1 3292EOF 3293 3294else 3295 echo "$ac_t""no" 1>&6 3296fi 3297done 3298 3299fi 3300 3301echo $ac_n "checking for getenv""... $ac_c" 1>&6 3302echo "configure:3303: checking for getenv" >&5 3303if eval "test \"`echo '$''{'ac_cv_func_getenv'+set}'`\" = set"; then 3304 echo $ac_n "(cached) $ac_c" 1>&6 3305else 3306 cat > conftest.$ac_ext <<EOF 3307#line 3308 "configure" 3308#include "confdefs.h" 3309/* System header to define __stub macros and hopefully few prototypes, 3310 which can conflict with char getenv(); below. */ 3311#include <assert.h> 3312/* Override any gcc2 internal prototype to avoid an error. */ 3313/* We use char because int might match the return type of a gcc2 3314 builtin and then its argument prototype would still apply. */ 3315char getenv(); 3316 3317int main() { 3318 3319/* The GNU C library defines this for functions which it implements 3320 to always fail with ENOSYS. Some functions are actually named 3321 something starting with __ and the normal name is an alias. */ 3322#if defined (__stub_getenv) || defined (__stub___getenv) 3323choke me 3324#else 3325getenv(); 3326#endif 3327 3328; return 0; } 3329EOF 3330if { (eval echo configure:3331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3331 rm -rf conftest* 3332 eval "ac_cv_func_getenv=yes" 3333else 3334 echo "configure: failed program was:" >&5 3335 cat conftest.$ac_ext >&5 3336 rm -rf conftest* 3337 eval "ac_cv_func_getenv=no" 3338fi 3339rm -f conftest* 3340fi 3341 3342if eval "test \"`echo '$ac_cv_func_'getenv`\" = yes"; then 3343 echo "$ac_t""yes" 1>&6 3344 cat >> confdefs.h <<\EOF 3345#define HAVE_GETENV 1 3346EOF 3347 3348else 3349 echo "$ac_t""no" 1>&6 3350MISSING="${MISSING}env.o " 3351fi 3352 3353echo $ac_n "checking for getutline""... $ac_c" 1>&6 3354echo "configure:3355: checking for getutline" >&5 3355if eval "test \"`echo '$''{'ac_cv_func_getutline'+set}'`\" = set"; then 3356 echo $ac_n "(cached) $ac_c" 1>&6 3357else 3358 cat > conftest.$ac_ext <<EOF 3359#line 3360 "configure" 3360#include "confdefs.h" 3361/* System header to define __stub macros and hopefully few prototypes, 3362 which can conflict with char getutline(); below. */ 3363#include <assert.h> 3364/* Override any gcc2 internal prototype to avoid an error. */ 3365/* We use char because int might match the return type of a gcc2 3366 builtin and then its argument prototype would still apply. */ 3367char getutline(); 3368 3369int main() { 3370 3371/* The GNU C library defines this for functions which it implements 3372 to always fail with ENOSYS. Some functions are actually named 3373 something starting with __ and the normal name is an alias. */ 3374#if defined (__stub_getutline) || defined (__stub___getutline) 3375choke me 3376#else 3377getutline(); 3378#endif 3379 3380; return 0; } 3381EOF 3382if { (eval echo configure:3383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3383 rm -rf conftest* 3384 eval "ac_cv_func_getutline=yes" 3385else 3386 echo "configure: failed program was:" >&5 3387 cat conftest.$ac_ext >&5 3388 rm -rf conftest* 3389 eval "ac_cv_func_getutline=no" 3390fi 3391rm -f conftest* 3392fi 3393 3394if eval "test \"`echo '$ac_cv_func_'getutline`\" = yes"; then 3395 echo "$ac_t""yes" 1>&6 3396 cat >> confdefs.h <<\EOF 3397#define HAVE_GETUTLINE 1 3398EOF 3399 3400else 3401 echo "$ac_t""no" 1>&6 3402MISSING="${MISSING}getutline.o "; for ac_func in ttyslot 3403do 3404echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3405echo "configure:3406: checking for $ac_func" >&5 3406if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3407 echo $ac_n "(cached) $ac_c" 1>&6 3408else 3409 cat > conftest.$ac_ext <<EOF 3410#line 3411 "configure" 3411#include "confdefs.h" 3412/* System header to define __stub macros and hopefully few prototypes, 3413 which can conflict with char $ac_func(); below. */ 3414#include <assert.h> 3415/* Override any gcc2 internal prototype to avoid an error. */ 3416/* We use char because int might match the return type of a gcc2 3417 builtin and then its argument prototype would still apply. */ 3418char $ac_func(); 3419 3420int main() { 3421 3422/* The GNU C library defines this for functions which it implements 3423 to always fail with ENOSYS. Some functions are actually named 3424 something starting with __ and the normal name is an alias. */ 3425#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3426choke me 3427#else 3428$ac_func(); 3429#endif 3430 3431; return 0; } 3432EOF 3433if { (eval echo configure:3434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3434 rm -rf conftest* 3435 eval "ac_cv_func_$ac_func=yes" 3436else 3437 echo "configure: failed program was:" >&5 3438 cat conftest.$ac_ext >&5 3439 rm -rf conftest* 3440 eval "ac_cv_func_$ac_func=no" 3441fi 3442rm -f conftest* 3443fi 3444 3445if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3446 echo "$ac_t""yes" 1>&6 3447 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3448 cat >> confdefs.h <<EOF 3449#define $ac_tr_func 1 3450EOF 3451 3452else 3453 echo "$ac_t""no" 1>&6 3454fi 3455done 3456 3457fi 3458 3459echo $ac_n "checking for pututline""... $ac_c" 1>&6 3460echo "configure:3461: checking for pututline" >&5 3461if eval "test \"`echo '$''{'ac_cv_func_pututline'+set}'`\" = set"; then 3462 echo $ac_n "(cached) $ac_c" 1>&6 3463else 3464 cat > conftest.$ac_ext <<EOF 3465#line 3466 "configure" 3466#include "confdefs.h" 3467/* System header to define __stub macros and hopefully few prototypes, 3468 which can conflict with char pututline(); below. */ 3469#include <assert.h> 3470/* Override any gcc2 internal prototype to avoid an error. */ 3471/* We use char because int might match the return type of a gcc2 3472 builtin and then its argument prototype would still apply. */ 3473char pututline(); 3474 3475int main() { 3476 3477/* The GNU C library defines this for functions which it implements 3478 to always fail with ENOSYS. Some functions are actually named 3479 something starting with __ and the normal name is an alias. */ 3480#if defined (__stub_pututline) || defined (__stub___pututline) 3481choke me 3482#else 3483pututline(); 3484#endif 3485 3486; return 0; } 3487EOF 3488if { (eval echo configure:3489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3489 rm -rf conftest* 3490 eval "ac_cv_func_pututline=yes" 3491else 3492 echo "configure: failed program was:" >&5 3493 cat conftest.$ac_ext >&5 3494 rm -rf conftest* 3495 eval "ac_cv_func_pututline=no" 3496fi 3497rm -f conftest* 3498fi 3499 3500if eval "test \"`echo '$ac_cv_func_'pututline`\" = yes"; then 3501 echo "$ac_t""yes" 1>&6 3502 : 3503else 3504 echo "$ac_t""no" 1>&6 3505MISSING="${MISSING}pututline.o "; for ac_func in ttyslot 3506do 3507echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3508echo "configure:3509: checking for $ac_func" >&5 3509if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3510 echo $ac_n "(cached) $ac_c" 1>&6 3511else 3512 cat > conftest.$ac_ext <<EOF 3513#line 3514 "configure" 3514#include "confdefs.h" 3515/* System header to define __stub macros and hopefully few prototypes, 3516 which can conflict with char $ac_func(); below. */ 3517#include <assert.h> 3518/* Override any gcc2 internal prototype to avoid an error. */ 3519/* We use char because int might match the return type of a gcc2 3520 builtin and then its argument prototype would still apply. */ 3521char $ac_func(); 3522 3523int main() { 3524 3525/* The GNU C library defines this for functions which it implements 3526 to always fail with ENOSYS. Some functions are actually named 3527 something starting with __ and the normal name is an alias. */ 3528#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3529choke me 3530#else 3531$ac_func(); 3532#endif 3533 3534; return 0; } 3535EOF 3536if { (eval echo configure:3537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3537 rm -rf conftest* 3538 eval "ac_cv_func_$ac_func=yes" 3539else 3540 echo "configure: failed program was:" >&5 3541 cat conftest.$ac_ext >&5 3542 rm -rf conftest* 3543 eval "ac_cv_func_$ac_func=no" 3544fi 3545rm -f conftest* 3546fi 3547 3548if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3549 echo "$ac_t""yes" 1>&6 3550 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3551 cat >> confdefs.h <<EOF 3552#define $ac_tr_func 1 3553EOF 3554 3555else 3556 echo "$ac_t""no" 1>&6 3557fi 3558done 3559 3560fi 3561 3562echo $ac_n "checking for setenv""... $ac_c" 1>&6 3563echo "configure:3564: checking for setenv" >&5 3564if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then 3565 echo $ac_n "(cached) $ac_c" 1>&6 3566else 3567 cat > conftest.$ac_ext <<EOF 3568#line 3569 "configure" 3569#include "confdefs.h" 3570/* System header to define __stub macros and hopefully few prototypes, 3571 which can conflict with char setenv(); below. */ 3572#include <assert.h> 3573/* Override any gcc2 internal prototype to avoid an error. */ 3574/* We use char because int might match the return type of a gcc2 3575 builtin and then its argument prototype would still apply. */ 3576char setenv(); 3577 3578int main() { 3579 3580/* The GNU C library defines this for functions which it implements 3581 to always fail with ENOSYS. Some functions are actually named 3582 something starting with __ and the normal name is an alias. */ 3583#if defined (__stub_setenv) || defined (__stub___setenv) 3584choke me 3585#else 3586setenv(); 3587#endif 3588 3589; return 0; } 3590EOF 3591if { (eval echo configure:3592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3592 rm -rf conftest* 3593 eval "ac_cv_func_setenv=yes" 3594else 3595 echo "configure: failed program was:" >&5 3596 cat conftest.$ac_ext >&5 3597 rm -rf conftest* 3598 eval "ac_cv_func_setenv=no" 3599fi 3600rm -f conftest* 3601fi 3602 3603if eval "test \"`echo '$ac_cv_func_'setenv`\" = yes"; then 3604 echo "$ac_t""yes" 1>&6 3605 cat >> confdefs.h <<\EOF 3606#define HAVE_SETENV 1 3607EOF 3608 3609else 3610 echo "$ac_t""no" 1>&6 3611MISSING="${MISSING}env.o " 3612fi 3613 3614echo $ac_n "checking for setegid""... $ac_c" 1>&6 3615echo "configure:3616: checking for setegid" >&5 3616if eval "test \"`echo '$''{'ac_cv_func_setegid'+set}'`\" = set"; then 3617 echo $ac_n "(cached) $ac_c" 1>&6 3618else 3619 cat > conftest.$ac_ext <<EOF 3620#line 3621 "configure" 3621#include "confdefs.h" 3622/* System header to define __stub macros and hopefully few prototypes, 3623 which can conflict with char setegid(); below. */ 3624#include <assert.h> 3625/* Override any gcc2 internal prototype to avoid an error. */ 3626/* We use char because int might match the return type of a gcc2 3627 builtin and then its argument prototype would still apply. */ 3628char setegid(); 3629 3630int main() { 3631 3632/* The GNU C library defines this for functions which it implements 3633 to always fail with ENOSYS. Some functions are actually named 3634 something starting with __ and the normal name is an alias. */ 3635#if defined (__stub_setegid) || defined (__stub___setegid) 3636choke me 3637#else 3638setegid(); 3639#endif 3640 3641; return 0; } 3642EOF 3643if { (eval echo configure:3644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3644 rm -rf conftest* 3645 eval "ac_cv_func_setegid=yes" 3646else 3647 echo "configure: failed program was:" >&5 3648 cat conftest.$ac_ext >&5 3649 rm -rf conftest* 3650 eval "ac_cv_func_setegid=no" 3651fi 3652rm -f conftest* 3653fi 3654 3655if eval "test \"`echo '$ac_cv_func_'setegid`\" = yes"; then 3656 echo "$ac_t""yes" 1>&6 3657 : 3658else 3659 echo "$ac_t""no" 1>&6 3660MISSING="${MISSING}setegid.o "; for ac_func in setregid setresgid 3661do 3662echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3663echo "configure:3664: checking for $ac_func" >&5 3664if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3665 echo $ac_n "(cached) $ac_c" 1>&6 3666else 3667 cat > conftest.$ac_ext <<EOF 3668#line 3669 "configure" 3669#include "confdefs.h" 3670/* System header to define __stub macros and hopefully few prototypes, 3671 which can conflict with char $ac_func(); below. */ 3672#include <assert.h> 3673/* Override any gcc2 internal prototype to avoid an error. */ 3674/* We use char because int might match the return type of a gcc2 3675 builtin and then its argument prototype would still apply. */ 3676char $ac_func(); 3677 3678int main() { 3679 3680/* The GNU C library defines this for functions which it implements 3681 to always fail with ENOSYS. Some functions are actually named 3682 something starting with __ and the normal name is an alias. */ 3683#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3684choke me 3685#else 3686$ac_func(); 3687#endif 3688 3689; return 0; } 3690EOF 3691if { (eval echo configure:3692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3692 rm -rf conftest* 3693 eval "ac_cv_func_$ac_func=yes" 3694else 3695 echo "configure: failed program was:" >&5 3696 cat conftest.$ac_ext >&5 3697 rm -rf conftest* 3698 eval "ac_cv_func_$ac_func=no" 3699fi 3700rm -f conftest* 3701fi 3702 3703if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3704 echo "$ac_t""yes" 1>&6 3705 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3706 cat >> confdefs.h <<EOF 3707#define $ac_tr_func 1 3708EOF 3709 3710else 3711 echo "$ac_t""no" 1>&6 3712fi 3713done 3714 3715fi 3716 3717echo $ac_n "checking for seteuid""... $ac_c" 1>&6 3718echo "configure:3719: checking for seteuid" >&5 3719if eval "test \"`echo '$''{'ac_cv_func_seteuid'+set}'`\" = set"; then 3720 echo $ac_n "(cached) $ac_c" 1>&6 3721else 3722 cat > conftest.$ac_ext <<EOF 3723#line 3724 "configure" 3724#include "confdefs.h" 3725/* System header to define __stub macros and hopefully few prototypes, 3726 which can conflict with char seteuid(); below. */ 3727#include <assert.h> 3728/* Override any gcc2 internal prototype to avoid an error. */ 3729/* We use char because int might match the return type of a gcc2 3730 builtin and then its argument prototype would still apply. */ 3731char seteuid(); 3732 3733int main() { 3734 3735/* The GNU C library defines this for functions which it implements 3736 to always fail with ENOSYS. Some functions are actually named 3737 something starting with __ and the normal name is an alias. */ 3738#if defined (__stub_seteuid) || defined (__stub___seteuid) 3739choke me 3740#else 3741seteuid(); 3742#endif 3743 3744; return 0; } 3745EOF 3746if { (eval echo configure:3747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3747 rm -rf conftest* 3748 eval "ac_cv_func_seteuid=yes" 3749else 3750 echo "configure: failed program was:" >&5 3751 cat conftest.$ac_ext >&5 3752 rm -rf conftest* 3753 eval "ac_cv_func_seteuid=no" 3754fi 3755rm -f conftest* 3756fi 3757 3758if eval "test \"`echo '$ac_cv_func_'seteuid`\" = yes"; then 3759 echo "$ac_t""yes" 1>&6 3760 : 3761else 3762 echo "$ac_t""no" 1>&6 3763MISSING="${MISSING}seteuid.o "; for ac_func in setreuid setresuid 3764do 3765echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3766echo "configure:3767: checking for $ac_func" >&5 3767if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3768 echo $ac_n "(cached) $ac_c" 1>&6 3769else 3770 cat > conftest.$ac_ext <<EOF 3771#line 3772 "configure" 3772#include "confdefs.h" 3773/* System header to define __stub macros and hopefully few prototypes, 3774 which can conflict with char $ac_func(); below. */ 3775#include <assert.h> 3776/* Override any gcc2 internal prototype to avoid an error. */ 3777/* We use char because int might match the return type of a gcc2 3778 builtin and then its argument prototype would still apply. */ 3779char $ac_func(); 3780 3781int main() { 3782 3783/* The GNU C library defines this for functions which it implements 3784 to always fail with ENOSYS. Some functions are actually named 3785 something starting with __ and the normal name is an alias. */ 3786#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3787choke me 3788#else 3789$ac_func(); 3790#endif 3791 3792; return 0; } 3793EOF 3794if { (eval echo configure:3795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3795 rm -rf conftest* 3796 eval "ac_cv_func_$ac_func=yes" 3797else 3798 echo "configure: failed program was:" >&5 3799 cat conftest.$ac_ext >&5 3800 rm -rf conftest* 3801 eval "ac_cv_func_$ac_func=no" 3802fi 3803rm -f conftest* 3804fi 3805 3806if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3807 echo "$ac_t""yes" 1>&6 3808 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3809 cat >> confdefs.h <<EOF 3810#define $ac_tr_func 1 3811EOF 3812 3813else 3814 echo "$ac_t""no" 1>&6 3815fi 3816done 3817 3818fi 3819 3820echo $ac_n "checking for setutent""... $ac_c" 1>&6 3821echo "configure:3822: checking for setutent" >&5 3822if eval "test \"`echo '$''{'ac_cv_func_setutent'+set}'`\" = set"; then 3823 echo $ac_n "(cached) $ac_c" 1>&6 3824else 3825 cat > conftest.$ac_ext <<EOF 3826#line 3827 "configure" 3827#include "confdefs.h" 3828/* System header to define __stub macros and hopefully few prototypes, 3829 which can conflict with char setutent(); below. */ 3830#include <assert.h> 3831/* Override any gcc2 internal prototype to avoid an error. */ 3832/* We use char because int might match the return type of a gcc2 3833 builtin and then its argument prototype would still apply. */ 3834char setutent(); 3835 3836int main() { 3837 3838/* The GNU C library defines this for functions which it implements 3839 to always fail with ENOSYS. Some functions are actually named 3840 something starting with __ and the normal name is an alias. */ 3841#if defined (__stub_setutent) || defined (__stub___setutent) 3842choke me 3843#else 3844setutent(); 3845#endif 3846 3847; return 0; } 3848EOF 3849if { (eval echo configure:3850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3850 rm -rf conftest* 3851 eval "ac_cv_func_setutent=yes" 3852else 3853 echo "configure: failed program was:" >&5 3854 cat conftest.$ac_ext >&5 3855 rm -rf conftest* 3856 eval "ac_cv_func_setutent=no" 3857fi 3858rm -f conftest* 3859fi 3860 3861if eval "test \"`echo '$ac_cv_func_'setutent`\" = yes"; then 3862 echo "$ac_t""yes" 1>&6 3863 : 3864else 3865 echo "$ac_t""no" 1>&6 3866MISSING="${MISSING}setutent.o " 3867fi 3868 3869echo $ac_n "checking for sigprocmask""... $ac_c" 1>&6 3870echo "configure:3871: checking for sigprocmask" >&5 3871if eval "test \"`echo '$''{'ac_cv_func_sigprocmask'+set}'`\" = set"; then 3872 echo $ac_n "(cached) $ac_c" 1>&6 3873else 3874 cat > conftest.$ac_ext <<EOF 3875#line 3876 "configure" 3876#include "confdefs.h" 3877/* System header to define __stub macros and hopefully few prototypes, 3878 which can conflict with char sigprocmask(); below. */ 3879#include <assert.h> 3880/* Override any gcc2 internal prototype to avoid an error. */ 3881/* We use char because int might match the return type of a gcc2 3882 builtin and then its argument prototype would still apply. */ 3883char sigprocmask(); 3884 3885int main() { 3886 3887/* The GNU C library defines this for functions which it implements 3888 to always fail with ENOSYS. Some functions are actually named 3889 something starting with __ and the normal name is an alias. */ 3890#if defined (__stub_sigprocmask) || defined (__stub___sigprocmask) 3891choke me 3892#else 3893sigprocmask(); 3894#endif 3895 3896; return 0; } 3897EOF 3898if { (eval echo configure:3899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3899 rm -rf conftest* 3900 eval "ac_cv_func_sigprocmask=yes" 3901else 3902 echo "configure: failed program was:" >&5 3903 cat conftest.$ac_ext >&5 3904 rm -rf conftest* 3905 eval "ac_cv_func_sigprocmask=no" 3906fi 3907rm -f conftest* 3908fi 3909 3910if eval "test \"`echo '$ac_cv_func_'sigprocmask`\" = yes"; then 3911 echo "$ac_t""yes" 1>&6 3912 : 3913else 3914 echo "$ac_t""no" 1>&6 3915MISSING="${MISSING}sigprocmask.o "; for ac_func in sigblock sigsetmask 3916do 3917echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3918echo "configure:3919: checking for $ac_func" >&5 3919if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3920 echo $ac_n "(cached) $ac_c" 1>&6 3921else 3922 cat > conftest.$ac_ext <<EOF 3923#line 3924 "configure" 3924#include "confdefs.h" 3925/* System header to define __stub macros and hopefully few prototypes, 3926 which can conflict with char $ac_func(); below. */ 3927#include <assert.h> 3928/* Override any gcc2 internal prototype to avoid an error. */ 3929/* We use char because int might match the return type of a gcc2 3930 builtin and then its argument prototype would still apply. */ 3931char $ac_func(); 3932 3933int main() { 3934 3935/* The GNU C library defines this for functions which it implements 3936 to always fail with ENOSYS. Some functions are actually named 3937 something starting with __ and the normal name is an alias. */ 3938#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3939choke me 3940#else 3941$ac_func(); 3942#endif 3943 3944; return 0; } 3945EOF 3946if { (eval echo configure:3947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3947 rm -rf conftest* 3948 eval "ac_cv_func_$ac_func=yes" 3949else 3950 echo "configure: failed program was:" >&5 3951 cat conftest.$ac_ext >&5 3952 rm -rf conftest* 3953 eval "ac_cv_func_$ac_func=no" 3954fi 3955rm -f conftest* 3956fi 3957 3958if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3959 echo "$ac_t""yes" 1>&6 3960 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3961 cat >> confdefs.h <<EOF 3962#define $ac_tr_func 1 3963EOF 3964 3965else 3966 echo "$ac_t""no" 1>&6 3967fi 3968done 3969 3970fi 3971 3972echo $ac_n "checking for strchr""... $ac_c" 1>&6 3973echo "configure:3974: checking for strchr" >&5 3974if eval "test \"`echo '$''{'ac_cv_func_strchr'+set}'`\" = set"; then 3975 echo $ac_n "(cached) $ac_c" 1>&6 3976else 3977 cat > conftest.$ac_ext <<EOF 3978#line 3979 "configure" 3979#include "confdefs.h" 3980/* System header to define __stub macros and hopefully few prototypes, 3981 which can conflict with char strchr(); below. */ 3982#include <assert.h> 3983/* Override any gcc2 internal prototype to avoid an error. */ 3984/* We use char because int might match the return type of a gcc2 3985 builtin and then its argument prototype would still apply. */ 3986char strchr(); 3987 3988int main() { 3989 3990/* The GNU C library defines this for functions which it implements 3991 to always fail with ENOSYS. Some functions are actually named 3992 something starting with __ and the normal name is an alias. */ 3993#if defined (__stub_strchr) || defined (__stub___strchr) 3994choke me 3995#else 3996strchr(); 3997#endif 3998 3999; return 0; } 4000EOF 4001if { (eval echo configure:4002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4002 rm -rf conftest* 4003 eval "ac_cv_func_strchr=yes" 4004else 4005 echo "configure: failed program was:" >&5 4006 cat conftest.$ac_ext >&5 4007 rm -rf conftest* 4008 eval "ac_cv_func_strchr=no" 4009fi 4010rm -f conftest* 4011fi 4012 4013if eval "test \"`echo '$ac_cv_func_'strchr`\" = yes"; then 4014 echo "$ac_t""yes" 1>&6 4015 : 4016else 4017 echo "$ac_t""no" 1>&6 4018MISSING="${MISSING}strchr.o "; for ac_func in index 4019do 4020echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4021echo "configure:4022: checking for $ac_func" >&5 4022if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4023 echo $ac_n "(cached) $ac_c" 1>&6 4024else 4025 cat > conftest.$ac_ext <<EOF 4026#line 4027 "configure" 4027#include "confdefs.h" 4028/* System header to define __stub macros and hopefully few prototypes, 4029 which can conflict with char $ac_func(); below. */ 4030#include <assert.h> 4031/* Override any gcc2 internal prototype to avoid an error. */ 4032/* We use char because int might match the return type of a gcc2 4033 builtin and then its argument prototype would still apply. */ 4034char $ac_func(); 4035 4036int main() { 4037 4038/* The GNU C library defines this for functions which it implements 4039 to always fail with ENOSYS. Some functions are actually named 4040 something starting with __ and the normal name is an alias. */ 4041#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4042choke me 4043#else 4044$ac_func(); 4045#endif 4046 4047; return 0; } 4048EOF 4049if { (eval echo configure:4050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4050 rm -rf conftest* 4051 eval "ac_cv_func_$ac_func=yes" 4052else 4053 echo "configure: failed program was:" >&5 4054 cat conftest.$ac_ext >&5 4055 rm -rf conftest* 4056 eval "ac_cv_func_$ac_func=no" 4057fi 4058rm -f conftest* 4059fi 4060 4061if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4062 echo "$ac_t""yes" 1>&6 4063 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4064 cat >> confdefs.h <<EOF 4065#define $ac_tr_func 1 4066EOF 4067 4068else 4069 echo "$ac_t""no" 1>&6 4070fi 4071done 4072 4073fi 4074 4075echo $ac_n "checking for strrchr""... $ac_c" 1>&6 4076echo "configure:4077: checking for strrchr" >&5 4077if eval "test \"`echo '$''{'ac_cv_func_strrchr'+set}'`\" = set"; then 4078 echo $ac_n "(cached) $ac_c" 1>&6 4079else 4080 cat > conftest.$ac_ext <<EOF 4081#line 4082 "configure" 4082#include "confdefs.h" 4083/* System header to define __stub macros and hopefully few prototypes, 4084 which can conflict with char strrchr(); below. */ 4085#include <assert.h> 4086/* Override any gcc2 internal prototype to avoid an error. */ 4087/* We use char because int might match the return type of a gcc2 4088 builtin and then its argument prototype would still apply. */ 4089char strrchr(); 4090 4091int main() { 4092 4093/* The GNU C library defines this for functions which it implements 4094 to always fail with ENOSYS. Some functions are actually named 4095 something starting with __ and the normal name is an alias. */ 4096#if defined (__stub_strrchr) || defined (__stub___strrchr) 4097choke me 4098#else 4099strrchr(); 4100#endif 4101 4102; return 0; } 4103EOF 4104if { (eval echo configure:4105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4105 rm -rf conftest* 4106 eval "ac_cv_func_strrchr=yes" 4107else 4108 echo "configure: failed program was:" >&5 4109 cat conftest.$ac_ext >&5 4110 rm -rf conftest* 4111 eval "ac_cv_func_strrchr=no" 4112fi 4113rm -f conftest* 4114fi 4115 4116if eval "test \"`echo '$ac_cv_func_'strrchr`\" = yes"; then 4117 echo "$ac_t""yes" 1>&6 4118 : 4119else 4120 echo "$ac_t""no" 1>&6 4121MISSING="${MISSING}strrchr.o "; for ac_func in rindex 4122do 4123echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4124echo "configure:4125: checking for $ac_func" >&5 4125if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4126 echo $ac_n "(cached) $ac_c" 1>&6 4127else 4128 cat > conftest.$ac_ext <<EOF 4129#line 4130 "configure" 4130#include "confdefs.h" 4131/* System header to define __stub macros and hopefully few prototypes, 4132 which can conflict with char $ac_func(); below. */ 4133#include <assert.h> 4134/* Override any gcc2 internal prototype to avoid an error. */ 4135/* We use char because int might match the return type of a gcc2 4136 builtin and then its argument prototype would still apply. */ 4137char $ac_func(); 4138 4139int main() { 4140 4141/* The GNU C library defines this for functions which it implements 4142 to always fail with ENOSYS. Some functions are actually named 4143 something starting with __ and the normal name is an alias. */ 4144#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4145choke me 4146#else 4147$ac_func(); 4148#endif 4149 4150; return 0; } 4151EOF 4152if { (eval echo configure:4153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4153 rm -rf conftest* 4154 eval "ac_cv_func_$ac_func=yes" 4155else 4156 echo "configure: failed program was:" >&5 4157 cat conftest.$ac_ext >&5 4158 rm -rf conftest* 4159 eval "ac_cv_func_$ac_func=no" 4160fi 4161rm -f conftest* 4162fi 4163 4164if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4165 echo "$ac_t""yes" 1>&6 4166 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4167 cat >> confdefs.h <<EOF 4168#define $ac_tr_func 1 4169EOF 4170 4171else 4172 echo "$ac_t""no" 1>&6 4173fi 4174done 4175 4176fi 4177 4178echo $ac_n "checking for strtoul""... $ac_c" 1>&6 4179echo "configure:4180: checking for strtoul" >&5 4180if eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then 4181 echo $ac_n "(cached) $ac_c" 1>&6 4182else 4183 cat > conftest.$ac_ext <<EOF 4184#line 4185 "configure" 4185#include "confdefs.h" 4186/* System header to define __stub macros and hopefully few prototypes, 4187 which can conflict with char strtoul(); below. */ 4188#include <assert.h> 4189/* Override any gcc2 internal prototype to avoid an error. */ 4190/* We use char because int might match the return type of a gcc2 4191 builtin and then its argument prototype would still apply. */ 4192char strtoul(); 4193 4194int main() { 4195 4196/* The GNU C library defines this for functions which it implements 4197 to always fail with ENOSYS. Some functions are actually named 4198 something starting with __ and the normal name is an alias. */ 4199#if defined (__stub_strtoul) || defined (__stub___strtoul) 4200choke me 4201#else 4202strtoul(); 4203#endif 4204 4205; return 0; } 4206EOF 4207if { (eval echo configure:4208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4208 rm -rf conftest* 4209 eval "ac_cv_func_strtoul=yes" 4210else 4211 echo "configure: failed program was:" >&5 4212 cat conftest.$ac_ext >&5 4213 rm -rf conftest* 4214 eval "ac_cv_func_strtoul=no" 4215fi 4216rm -f conftest* 4217fi 4218 4219if eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then 4220 echo "$ac_t""yes" 1>&6 4221 : 4222else 4223 echo "$ac_t""no" 1>&6 4224MISSING="${MISSING}strtoul.o " 4225fi 4226 4227echo $ac_n "checking for sysconf""... $ac_c" 1>&6 4228echo "configure:4229: checking for sysconf" >&5 4229if eval "test \"`echo '$''{'ac_cv_func_sysconf'+set}'`\" = set"; then 4230 echo $ac_n "(cached) $ac_c" 1>&6 4231else 4232 cat > conftest.$ac_ext <<EOF 4233#line 4234 "configure" 4234#include "confdefs.h" 4235/* System header to define __stub macros and hopefully few prototypes, 4236 which can conflict with char sysconf(); below. */ 4237#include <assert.h> 4238/* Override any gcc2 internal prototype to avoid an error. */ 4239/* We use char because int might match the return type of a gcc2 4240 builtin and then its argument prototype would still apply. */ 4241char sysconf(); 4242 4243int main() { 4244 4245/* The GNU C library defines this for functions which it implements 4246 to always fail with ENOSYS. Some functions are actually named 4247 something starting with __ and the normal name is an alias. */ 4248#if defined (__stub_sysconf) || defined (__stub___sysconf) 4249choke me 4250#else 4251sysconf(); 4252#endif 4253 4254; return 0; } 4255EOF 4256if { (eval echo configure:4257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4257 rm -rf conftest* 4258 eval "ac_cv_func_sysconf=yes" 4259else 4260 echo "configure: failed program was:" >&5 4261 cat conftest.$ac_ext >&5 4262 rm -rf conftest* 4263 eval "ac_cv_func_sysconf=no" 4264fi 4265rm -f conftest* 4266fi 4267 4268if eval "test \"`echo '$ac_cv_func_'sysconf`\" = yes"; then 4269 echo "$ac_t""yes" 1>&6 4270 : 4271else 4272 echo "$ac_t""no" 1>&6 4273MISSING="${MISSING}sysconf.o "; for ac_func in getdtablesize 4274do 4275echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4276echo "configure:4277: checking for $ac_func" >&5 4277if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4278 echo $ac_n "(cached) $ac_c" 1>&6 4279else 4280 cat > conftest.$ac_ext <<EOF 4281#line 4282 "configure" 4282#include "confdefs.h" 4283/* System header to define __stub macros and hopefully few prototypes, 4284 which can conflict with char $ac_func(); below. */ 4285#include <assert.h> 4286/* Override any gcc2 internal prototype to avoid an error. */ 4287/* We use char because int might match the return type of a gcc2 4288 builtin and then its argument prototype would still apply. */ 4289char $ac_func(); 4290 4291int main() { 4292 4293/* The GNU C library defines this for functions which it implements 4294 to always fail with ENOSYS. Some functions are actually named 4295 something starting with __ and the normal name is an alias. */ 4296#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4297choke me 4298#else 4299$ac_func(); 4300#endif 4301 4302; return 0; } 4303EOF 4304if { (eval echo configure:4305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4305 rm -rf conftest* 4306 eval "ac_cv_func_$ac_func=yes" 4307else 4308 echo "configure: failed program was:" >&5 4309 cat conftest.$ac_ext >&5 4310 rm -rf conftest* 4311 eval "ac_cv_func_$ac_func=no" 4312fi 4313rm -f conftest* 4314fi 4315 4316if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4317 echo "$ac_t""yes" 1>&6 4318 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4319 cat >> confdefs.h <<EOF 4320#define $ac_tr_func 1 4321EOF 4322 4323else 4324 echo "$ac_t""no" 1>&6 4325fi 4326done 4327 4328fi 4329 4330echo $ac_n "checking for uname""... $ac_c" 1>&6 4331echo "configure:4332: checking for uname" >&5 4332if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then 4333 echo $ac_n "(cached) $ac_c" 1>&6 4334else 4335 cat > conftest.$ac_ext <<EOF 4336#line 4337 "configure" 4337#include "confdefs.h" 4338/* System header to define __stub macros and hopefully few prototypes, 4339 which can conflict with char uname(); below. */ 4340#include <assert.h> 4341/* Override any gcc2 internal prototype to avoid an error. */ 4342/* We use char because int might match the return type of a gcc2 4343 builtin and then its argument prototype would still apply. */ 4344char uname(); 4345 4346int main() { 4347 4348/* The GNU C library defines this for functions which it implements 4349 to always fail with ENOSYS. Some functions are actually named 4350 something starting with __ and the normal name is an alias. */ 4351#if defined (__stub_uname) || defined (__stub___uname) 4352choke me 4353#else 4354uname(); 4355#endif 4356 4357; return 0; } 4358EOF 4359if { (eval echo configure:4360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4360 rm -rf conftest* 4361 eval "ac_cv_func_uname=yes" 4362else 4363 echo "configure: failed program was:" >&5 4364 cat conftest.$ac_ext >&5 4365 rm -rf conftest* 4366 eval "ac_cv_func_uname=no" 4367fi 4368rm -f conftest* 4369fi 4370 4371if eval "test \"`echo '$ac_cv_func_'uname`\" = yes"; then 4372 echo "$ac_t""yes" 1>&6 4373 : 4374else 4375 echo "$ac_t""no" 1>&6 4376MISSING="${MISSING}uname.o "; for ac_func in gethostname 4377do 4378echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4379echo "configure:4380: checking for $ac_func" >&5 4380if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4381 echo $ac_n "(cached) $ac_c" 1>&6 4382else 4383 cat > conftest.$ac_ext <<EOF 4384#line 4385 "configure" 4385#include "confdefs.h" 4386/* System header to define __stub macros and hopefully few prototypes, 4387 which can conflict with char $ac_func(); below. */ 4388#include <assert.h> 4389/* Override any gcc2 internal prototype to avoid an error. */ 4390/* We use char because int might match the return type of a gcc2 4391 builtin and then its argument prototype would still apply. */ 4392char $ac_func(); 4393 4394int main() { 4395 4396/* The GNU C library defines this for functions which it implements 4397 to always fail with ENOSYS. Some functions are actually named 4398 something starting with __ and the normal name is an alias. */ 4399#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4400choke me 4401#else 4402$ac_func(); 4403#endif 4404 4405; return 0; } 4406EOF 4407if { (eval echo configure:4408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4408 rm -rf conftest* 4409 eval "ac_cv_func_$ac_func=yes" 4410else 4411 echo "configure: failed program was:" >&5 4412 cat conftest.$ac_ext >&5 4413 rm -rf conftest* 4414 eval "ac_cv_func_$ac_func=no" 4415fi 4416rm -f conftest* 4417fi 4418 4419if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4420 echo "$ac_t""yes" 1>&6 4421 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4422 cat >> confdefs.h <<EOF 4423#define $ac_tr_func 1 4424EOF 4425 4426else 4427 echo "$ac_t""no" 1>&6 4428fi 4429done 4430 4431fi 4432 4433echo $ac_n "checking for unsetenv""... $ac_c" 1>&6 4434echo "configure:4435: checking for unsetenv" >&5 4435if eval "test \"`echo '$''{'ac_cv_func_unsetenv'+set}'`\" = set"; then 4436 echo $ac_n "(cached) $ac_c" 1>&6 4437else 4438 cat > conftest.$ac_ext <<EOF 4439#line 4440 "configure" 4440#include "confdefs.h" 4441/* System header to define __stub macros and hopefully few prototypes, 4442 which can conflict with char unsetenv(); below. */ 4443#include <assert.h> 4444/* Override any gcc2 internal prototype to avoid an error. */ 4445/* We use char because int might match the return type of a gcc2 4446 builtin and then its argument prototype would still apply. */ 4447char unsetenv(); 4448 4449int main() { 4450 4451/* The GNU C library defines this for functions which it implements 4452 to always fail with ENOSYS. Some functions are actually named 4453 something starting with __ and the normal name is an alias. */ 4454#if defined (__stub_unsetenv) || defined (__stub___unsetenv) 4455choke me 4456#else 4457unsetenv(); 4458#endif 4459 4460; return 0; } 4461EOF 4462if { (eval echo configure:4463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4463 rm -rf conftest* 4464 eval "ac_cv_func_unsetenv=yes" 4465else 4466 echo "configure: failed program was:" >&5 4467 cat conftest.$ac_ext >&5 4468 rm -rf conftest* 4469 eval "ac_cv_func_unsetenv=no" 4470fi 4471rm -f conftest* 4472fi 4473 4474if eval "test \"`echo '$ac_cv_func_'unsetenv`\" = yes"; then 4475 echo "$ac_t""yes" 1>&6 4476 cat >> confdefs.h <<\EOF 4477#define HAVE_UNSETENV 1 4478EOF 4479 4480else 4481 echo "$ac_t""no" 1>&6 4482MISSING="${MISSING}env.o " 4483fi 4484 4485 4486 4487echo $ac_n "checking for nonstandard gettimeofday""... $ac_c" 1>&6 4488echo "configure:4489: checking for nonstandard gettimeofday" >&5 4489cat > conftest.$ac_ext <<EOF 4490#line 4491 "configure" 4491#include "confdefs.h" 4492 4493#if HAVE_SYS_TIME_H 4494#include <sys/time.h> 4495#endif /* HAVE_SYS_TIME_H */ 4496#if HAVE_UNISTD_H 4497#include <unistd.h> 4498#endif /* HAVE_UNISTD_H */ 4499 4500int main() { 4501struct timeval tv; 4502gettimeofday(&tv, NULL) 4503; return 0; } 4504EOF 4505if { (eval echo configure:4506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4506 rm -rf conftest* 4507 echo "$ac_t""no" 1>&6 4508else 4509 echo "configure: failed program was:" >&5 4510 cat conftest.$ac_ext >&5 4511 rm -rf conftest* 4512 echo "$ac_t""maybe" 1>&6 cat > conftest.$ac_ext <<EOF 4513#line 4514 "configure" 4514#include "confdefs.h" 4515 4516#if HAVE_SYS_TIME_H 4517#include <sys/time.h> 4518#endif /* HAVE_SYS_TIME_H */ 4519#if HAVE_UNISTD_H 4520#include <unistd.h> 4521#endif /* HAVE_UNISTD_H */ 4522 4523int main() { 4524struct timeval tv; 4525gettimeofday(&tv) 4526; return 0; } 4527EOF 4528if { (eval echo configure:4529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4529 rm -rf conftest* 4530 cat >> confdefs.h <<\EOF 4531#define HAVE_ONE_ARG_GETTIMEOFDAY 1 4532EOF 4533 echo "$ac_t""yes" 1>&6 4534else 4535 echo "configure: failed program was:" >&5 4536 cat conftest.$ac_ext >&5 4537 rm -rf conftest* 4538 echo "$ac_t""no" 1>&6 4539fi 4540rm -f conftest* 4541fi 4542rm -f conftest* 4543 4544# Munge out LOCALBIN and LOCALMAN in canonical (no bletch) form 4545trap '' 1 2 15 4546cat > confcache <<\EOF 4547# This file is a shell script that caches the results of configure 4548# tests run on this system so they can be shared between configure 4549# scripts and configure runs. It is not useful on other systems. 4550# If it contains results you don't want to keep, you may remove or edit it. 4551# 4552# By default, configure uses ./config.cache as the cache file, 4553# creating it if it does not exist already. You can give configure 4554# the --cache-file=FILE option to use a different cache file; that is 4555# what configure does when it calls configure scripts in 4556# subdirectories, so they share the cache. 4557# Giving --cache-file=/dev/null disables caching, for debugging configure. 4558# config.status only pays attention to the cache file if you give it the 4559# --recheck option to rerun configure. 4560# 4561EOF 4562# The following way of writing the cache mishandles newlines in values, 4563# but we know of no workaround that is simple, portable, and efficient. 4564# So, don't put newlines in cache variables' values. 4565# Ultrix sh set writes to stderr and can't be redirected directly, 4566# and sets the high bit in the cache file unless we assign to the vars. 4567(set) 2>&1 | 4568 case `(ac_space=' '; set) 2>&1` in 4569 *ac_space=\ *) 4570 # `set' does not quote correctly, so add quotes (double-quote substitution 4571 # turns \\\\ into \\, and sed turns \\ into \). 4572 sed -n \ 4573 -e "s/'/'\\\\''/g" \ 4574 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 4575 ;; 4576 *) 4577 # `set' quotes correctly as required by POSIX, so do not add quotes. 4578 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 4579 ;; 4580 esac >> confcache 4581if cmp -s $cache_file confcache; then 4582 : 4583else 4584 if test -w $cache_file; then 4585 echo "updating cache $cache_file" 4586 cat confcache > $cache_file 4587 else 4588 echo "not updating unwritable cache $cache_file" 4589 fi 4590fi 4591rm -f confcache 4592 4593trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 4594 4595test "x$prefix" = xNONE && prefix=$ac_default_prefix 4596# Let make expand exec_prefix. 4597test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 4598 4599# Any assignment to VPATH causes Sun make to only execute 4600# the first set of double-colon rules, so remove it if not needed. 4601# If there is a colon in the path, we need to keep it. 4602if test "x$srcdir" = x.; then 4603 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 4604fi 4605 4606trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 4607 4608DEFS=-DHAVE_CONFIG_H 4609 4610# Without the "./", some shells look in PATH for config.status. 4611: ${CONFIG_STATUS=./config.status} 4612 4613echo creating $CONFIG_STATUS 4614rm -f $CONFIG_STATUS 4615cat > $CONFIG_STATUS <<EOF 4616#! /bin/sh 4617# Generated automatically by configure. 4618# Run this file to recreate the current configuration. 4619# This directory was configured as follows, 4620# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 4621# 4622# $0 $ac_configure_args 4623# 4624# Compiler output produced by configure, useful for debugging 4625# configure, is in ./config.log if it exists. 4626 4627ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 4628for ac_option 4629do 4630 case "\$ac_option" in 4631 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 4632 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 4633 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 4634 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 4635 echo "$CONFIG_STATUS generated by autoconf version 2.12" 4636 exit 0 ;; 4637 -help | --help | --hel | --he | --h) 4638 echo "\$ac_cs_usage"; exit 0 ;; 4639 *) echo "\$ac_cs_usage"; exit 1 ;; 4640 esac 4641done 4642 4643ac_given_srcdir=$srcdir 4644 4645trap 'rm -fr `echo "configure.munger libmissing/Makefile libopie/Makefile Makefile.munge:Makefile.in config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 4646EOF 4647cat >> $CONFIG_STATUS <<EOF 4648 4649# Protect against being on the right side of a sed subst in config.status. 4650sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 4651 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 4652$ac_vpsub 4653$extrasub 4654s%@CFLAGS@%$CFLAGS%g 4655s%@CPPFLAGS@%$CPPFLAGS%g 4656s%@CXXFLAGS@%$CXXFLAGS%g 4657s%@DEFS@%$DEFS%g 4658s%@LDFLAGS@%$LDFLAGS%g 4659s%@LIBS@%$LIBS%g 4660s%@exec_prefix@%$exec_prefix%g 4661s%@prefix@%$prefix%g 4662s%@program_transform_name@%$program_transform_name%g 4663s%@bindir@%$bindir%g 4664s%@sbindir@%$sbindir%g 4665s%@libexecdir@%$libexecdir%g 4666s%@datadir@%$datadir%g 4667s%@sysconfdir@%$sysconfdir%g 4668s%@sharedstatedir@%$sharedstatedir%g 4669s%@localstatedir@%$localstatedir%g 4670s%@libdir@%$libdir%g 4671s%@includedir@%$includedir%g 4672s%@oldincludedir@%$oldincludedir%g 4673s%@infodir@%$infodir%g 4674s%@mandir@%$mandir%g 4675s%@ACCESS_FILE@%$ACCESS_FILE%g 4676s%@LOCK_DIR@%$LOCK_DIR%g 4677s%@CC@%$CC%g 4678s%@CPP@%$CPP%g 4679s%@LN_S@%$LN_S%g 4680s%@RANLIB@%$RANLIB%g 4681s%@YACC@%$YACC%g 4682s%@CHOWN@%$CHOWN%g 4683s%@SU@%$SU%g 4684s%@ALT_SU@%$ALT_SU%g 4685s%@SCHEME@%$SCHEME%g 4686s%@LOGIN@%$LOGIN%g 4687s%@FTPD@%$FTPD%g 4688s%@INFTPD@%$INFTPD%g 4689s%@EXISTS@%$EXISTS%g 4690s%@MKDIR@%$MKDIR%g 4691s%@LIBOBJS@%$LIBOBJS%g 4692s%@ALLOCA@%$ALLOCA%g 4693s%@MISSING@%$MISSING%g 4694 4695CEOF 4696EOF 4697 4698cat >> $CONFIG_STATUS <<\EOF 4699 4700# Split the substitutions into bite-sized pieces for seds with 4701# small command number limits, like on Digital OSF/1 and HP-UX. 4702ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 4703ac_file=1 # Number of current file. 4704ac_beg=1 # First line for current file. 4705ac_end=$ac_max_sed_cmds # Line after last line for current file. 4706ac_more_lines=: 4707ac_sed_cmds="" 4708while $ac_more_lines; do 4709 if test $ac_beg -gt 1; then 4710 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 4711 else 4712 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 4713 fi 4714 if test ! -s conftest.s$ac_file; then 4715 ac_more_lines=false 4716 rm -f conftest.s$ac_file 4717 else 4718 if test -z "$ac_sed_cmds"; then 4719 ac_sed_cmds="sed -f conftest.s$ac_file" 4720 else 4721 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 4722 fi 4723 ac_file=`expr $ac_file + 1` 4724 ac_beg=$ac_end 4725 ac_end=`expr $ac_end + $ac_max_sed_cmds` 4726 fi 4727done 4728if test -z "$ac_sed_cmds"; then 4729 ac_sed_cmds=cat 4730fi 4731EOF 4732 4733cat >> $CONFIG_STATUS <<EOF 4734 4735CONFIG_FILES=\${CONFIG_FILES-"configure.munger libmissing/Makefile libopie/Makefile Makefile.munge:Makefile.in"} 4736EOF 4737cat >> $CONFIG_STATUS <<\EOF 4738for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 4739 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 4740 case "$ac_file" in 4741 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 4742 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 4743 *) ac_file_in="${ac_file}.in" ;; 4744 esac 4745 4746 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 4747 4748 # Remove last slash and all that follows it. Not all systems have dirname. 4749 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 4750 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 4751 # The file is in a subdirectory. 4752 test ! -d "$ac_dir" && mkdir "$ac_dir" 4753 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 4754 # A "../" for each directory in $ac_dir_suffix. 4755 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 4756 else 4757 ac_dir_suffix= ac_dots= 4758 fi 4759 4760 case "$ac_given_srcdir" in 4761 .) srcdir=. 4762 if test -z "$ac_dots"; then top_srcdir=. 4763 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 4764 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 4765 *) # Relative path. 4766 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 4767 top_srcdir="$ac_dots$ac_given_srcdir" ;; 4768 esac 4769 4770 4771 echo creating "$ac_file" 4772 rm -f "$ac_file" 4773 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 4774 case "$ac_file" in 4775 *Makefile*) ac_comsub="1i\\ 4776# $configure_input" ;; 4777 *) ac_comsub= ;; 4778 esac 4779 4780 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 4781 sed -e "$ac_comsub 4782s%@configure_input@%$configure_input%g 4783s%@srcdir@%$srcdir%g 4784s%@top_srcdir@%$top_srcdir%g 4785" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 4786fi; done 4787rm -f conftest.s* 4788 4789# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 4790# NAME is the cpp macro being defined and VALUE is the value it is being given. 4791# 4792# ac_d sets the value in "#define NAME VALUE" lines. 4793ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 4794ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 4795ac_dC='\3' 4796ac_dD='%g' 4797# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 4798ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 4799ac_uB='\([ ]\)%\1#\2define\3' 4800ac_uC=' ' 4801ac_uD='\4%g' 4802# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 4803ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 4804ac_eB='$%\1#\2define\3' 4805ac_eC=' ' 4806ac_eD='%g' 4807 4808if test "${CONFIG_HEADERS+set}" != set; then 4809EOF 4810cat >> $CONFIG_STATUS <<EOF 4811 CONFIG_HEADERS="config.h" 4812EOF 4813cat >> $CONFIG_STATUS <<\EOF 4814fi 4815for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 4816 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 4817 case "$ac_file" in 4818 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 4819 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 4820 *) ac_file_in="${ac_file}.in" ;; 4821 esac 4822 4823 echo creating $ac_file 4824 4825 rm -f conftest.frag conftest.in conftest.out 4826 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 4827 cat $ac_file_inputs > conftest.in 4828 4829EOF 4830 4831# Transform confdefs.h into a sed script conftest.vals that substitutes 4832# the proper values into config.h.in to produce config.h. And first: 4833# Protect against being on the right side of a sed subst in config.status. 4834# Protect against being in an unquoted here document in config.status. 4835rm -f conftest.vals 4836cat > conftest.hdr <<\EOF 4837s/[\\&%]/\\&/g 4838s%[\\$`]%\\&%g 4839s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 4840s%ac_d%ac_u%gp 4841s%ac_u%ac_e%gp 4842EOF 4843sed -n -f conftest.hdr confdefs.h > conftest.vals 4844rm -f conftest.hdr 4845 4846# This sed command replaces #undef with comments. This is necessary, for 4847# example, in the case of _POSIX_SOURCE, which is predefined and required 4848# on some systems where configure will not decide to define it. 4849cat >> conftest.vals <<\EOF 4850s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 4851EOF 4852 4853# Break up conftest.vals because some shells have a limit on 4854# the size of here documents, and old seds have small limits too. 4855 4856rm -f conftest.tail 4857while : 4858do 4859 ac_lines=`grep -c . conftest.vals` 4860 # grep -c gives empty output for an empty file on some AIX systems. 4861 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 4862 # Write a limited-size here document to conftest.frag. 4863 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 4864 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 4865 echo 'CEOF 4866 sed -f conftest.frag conftest.in > conftest.out 4867 rm -f conftest.in 4868 mv conftest.out conftest.in 4869' >> $CONFIG_STATUS 4870 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 4871 rm -f conftest.vals 4872 mv conftest.tail conftest.vals 4873done 4874rm -f conftest.vals 4875 4876cat >> $CONFIG_STATUS <<\EOF 4877 rm -f conftest.frag conftest.h 4878 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 4879 cat conftest.in >> conftest.h 4880 rm -f conftest.in 4881 if cmp -s $ac_file conftest.h 2>/dev/null; then 4882 echo "$ac_file is unchanged" 4883 rm -f conftest.h 4884 else 4885 # Remove last slash and all that follows it. Not all systems have dirname. 4886 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 4887 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 4888 # The file is in a subdirectory. 4889 test ! -d "$ac_dir" && mkdir "$ac_dir" 4890 fi 4891 rm -f $ac_file 4892 mv conftest.h $ac_file 4893 fi 4894fi; done 4895 4896EOF 4897cat >> $CONFIG_STATUS <<EOF 4898 4899EOF 4900cat >> $CONFIG_STATUS <<\EOF 4901 4902exit 0 4903EOF 4904chmod +x $CONFIG_STATUS 4905rm -fr confdefs* $ac_clean_files 4906test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 4907 4908sh configure.munger 4909