179968Sobrien#! /bin/sh 279968Sobrien 392282Sobrien# From configure.in Revision: 1.17 479968Sobrien 579968Sobrien 679968Sobrien 779968Sobrien 879968Sobrien 979968Sobrien 1079968Sobrien 1179968Sobrien 1279968Sobrien 1379968Sobrien 1479968Sobrien# Guess values for system-dependent variables and create Makefiles. 1579968Sobrien# Generated automatically using autoconf version 2.13 1679968Sobrien# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 1779968Sobrien# 1879968Sobrien# This configure script is free software; the Free Software Foundation 1979968Sobrien# gives unlimited permission to copy, distribute and modify it. 2079968Sobrien 2179968Sobrien# Defaults: 2279968Sobrienac_help= 2379968Sobrienac_default_prefix=/usr/local 2479968Sobrien# Any additions from configure.in: 2579968Sobrienac_help="$ac_help 2679968Sobrien\ 2779968Sobrien --enable-ipv6 Enable IPv6 support (if your OS supports it). 2892282Sobrien --disable-ipv6 Disable IPv6 support (even if your OS supports it). 2992282Sobrien [default: enabled]" 3079968Sobrienac_help="$ac_help 3179968Sobrien\ 3279968Sobrien --enable-builtinls Enable built-in /bin/ls. [default: enabled] 3379968Sobrien --disable-builtinls Disable built-in /bin/ls." 3479968Sobrienac_help="$ac_help 3579968Sobrien --with-socks Compile with SOCKS firewall traversal support." 3679968Sobrienac_help="$ac_help 3779968Sobrien --with-socks5[=PATH] Compile with SOCKS5 firewall traversal support." 3879968Sobrienac_help="$ac_help 3979968Sobrien --with-socks4[=PATH] Compile with SOCKS4 firewall traversal support." 4079968Sobrienac_help="$ac_help 4179968Sobrien --with-skey Compile with S/Key authentication support." 4279968Sobrien 4379968Sobrien# Initialize some variables set by options. 4479968Sobrien# The variables have the same names as the options, with 4579968Sobrien# dashes changed to underlines. 4679968Sobrienbuild=NONE 4779968Sobriencache_file=./config.cache 4879968Sobrienexec_prefix=NONE 4979968Sobrienhost=NONE 5079968Sobrienno_create= 5179968Sobriennonopt=NONE 5279968Sobrienno_recursion= 5379968Sobrienprefix=NONE 5479968Sobrienprogram_prefix=NONE 5579968Sobrienprogram_suffix=NONE 5679968Sobrienprogram_transform_name=s,x,x, 5779968Sobriensilent= 5879968Sobriensite= 5979968Sobriensrcdir= 6079968Sobrientarget=NONE 6179968Sobrienverbose= 6279968Sobrienx_includes=NONE 6379968Sobrienx_libraries=NONE 6479968Sobrienbindir='${exec_prefix}/bin' 6579968Sobriensbindir='${exec_prefix}/sbin' 6679968Sobrienlibexecdir='${exec_prefix}/libexec' 6779968Sobriendatadir='${prefix}/share' 6879968Sobriensysconfdir='${prefix}/etc' 6979968Sobriensharedstatedir='${prefix}/com' 7079968Sobrienlocalstatedir='${prefix}/var' 7179968Sobrienlibdir='${exec_prefix}/lib' 7279968Sobrienincludedir='${prefix}/include' 7379968Sobrienoldincludedir='/usr/include' 7479968Sobrieninfodir='${prefix}/info' 7579968Sobrienmandir='${prefix}/man' 7679968Sobrien 7779968Sobrien# Initialize some other variables. 7879968Sobriensubdirs= 7979968SobrienMFLAGS= MAKEFLAGS= 8079968SobrienSHELL=${CONFIG_SHELL-/bin/sh} 8179968Sobrien# Maximum number of lines to put in a shell here document. 8279968Sobrienac_max_here_lines=12 8379968Sobrien 8479968Sobrienac_prev= 8579968Sobrienfor ac_option 8679968Sobriendo 8779968Sobrien 8879968Sobrien # If the previous option needs an argument, assign it. 8979968Sobrien if test -n "$ac_prev"; then 9079968Sobrien eval "$ac_prev=\$ac_option" 9179968Sobrien ac_prev= 9279968Sobrien continue 9379968Sobrien fi 9479968Sobrien 9579968Sobrien case "$ac_option" in 9679968Sobrien -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 9779968Sobrien *) ac_optarg= ;; 9879968Sobrien esac 9979968Sobrien 10079968Sobrien # Accept the important Cygnus configure options, so we can diagnose typos. 10179968Sobrien 10279968Sobrien case "$ac_option" in 10379968Sobrien 10479968Sobrien -bindir | --bindir | --bindi | --bind | --bin | --bi) 10579968Sobrien ac_prev=bindir ;; 10679968Sobrien -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 10779968Sobrien bindir="$ac_optarg" ;; 10879968Sobrien 10979968Sobrien -build | --build | --buil | --bui | --bu) 11079968Sobrien ac_prev=build ;; 11179968Sobrien -build=* | --build=* | --buil=* | --bui=* | --bu=*) 11279968Sobrien build="$ac_optarg" ;; 11379968Sobrien 11479968Sobrien -cache-file | --cache-file | --cache-fil | --cache-fi \ 11579968Sobrien | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 11679968Sobrien ac_prev=cache_file ;; 11779968Sobrien -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 11879968Sobrien | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 11979968Sobrien cache_file="$ac_optarg" ;; 12079968Sobrien 12179968Sobrien -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 12279968Sobrien ac_prev=datadir ;; 12379968Sobrien -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 12479968Sobrien | --da=*) 12579968Sobrien datadir="$ac_optarg" ;; 12679968Sobrien 12779968Sobrien -disable-* | --disable-*) 12879968Sobrien ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 12979968Sobrien # Reject names that are not valid shell variable names. 13079968Sobrien if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 13179968Sobrien { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 13279968Sobrien fi 13379968Sobrien ac_feature=`echo $ac_feature| sed 's/-/_/g'` 13479968Sobrien eval "enable_${ac_feature}=no" ;; 13579968Sobrien 13679968Sobrien -enable-* | --enable-*) 13779968Sobrien ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 13879968Sobrien # Reject names that are not valid shell variable names. 13979968Sobrien if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 14079968Sobrien { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 14179968Sobrien fi 14279968Sobrien ac_feature=`echo $ac_feature| sed 's/-/_/g'` 14379968Sobrien case "$ac_option" in 14479968Sobrien *=*) ;; 14579968Sobrien *) ac_optarg=yes ;; 14679968Sobrien esac 14779968Sobrien eval "enable_${ac_feature}='$ac_optarg'" ;; 14879968Sobrien 14979968Sobrien -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 15079968Sobrien | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 15179968Sobrien | --exec | --exe | --ex) 15279968Sobrien ac_prev=exec_prefix ;; 15379968Sobrien -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 15479968Sobrien | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 15579968Sobrien | --exec=* | --exe=* | --ex=*) 15679968Sobrien exec_prefix="$ac_optarg" ;; 15779968Sobrien 15879968Sobrien -gas | --gas | --ga | --g) 15979968Sobrien # Obsolete; use --with-gas. 16079968Sobrien with_gas=yes ;; 16179968Sobrien 16279968Sobrien -help | --help | --hel | --he) 16379968Sobrien # Omit some internal or obsolete options to make the list less imposing. 16479968Sobrien # This message is too long to be a string in the A/UX 3.1 sh. 16579968Sobrien cat << EOF 16679968SobrienUsage: configure [options] [host] 16779968SobrienOptions: [defaults in brackets after descriptions] 16879968SobrienConfiguration: 16979968Sobrien --cache-file=FILE cache test results in FILE 17079968Sobrien --help print this message 17179968Sobrien --no-create do not create output files 17279968Sobrien --quiet, --silent do not print \`checking...' messages 17379968Sobrien --version print the version of autoconf that created configure 17479968SobrienDirectory and file names: 17579968Sobrien --prefix=PREFIX install architecture-independent files in PREFIX 17679968Sobrien [$ac_default_prefix] 17779968Sobrien --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 17879968Sobrien [same as prefix] 17979968Sobrien --bindir=DIR user executables in DIR [EPREFIX/bin] 18079968Sobrien --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 18179968Sobrien --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 18279968Sobrien --datadir=DIR read-only architecture-independent data in DIR 18379968Sobrien [PREFIX/share] 18479968Sobrien --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 18579968Sobrien --sharedstatedir=DIR modifiable architecture-independent data in DIR 18679968Sobrien [PREFIX/com] 18779968Sobrien --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 18879968Sobrien --libdir=DIR object code libraries in DIR [EPREFIX/lib] 18979968Sobrien --includedir=DIR C header files in DIR [PREFIX/include] 19079968Sobrien --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 19179968Sobrien --infodir=DIR info documentation in DIR [PREFIX/info] 19279968Sobrien --mandir=DIR man documentation in DIR [PREFIX/man] 19379968Sobrien --srcdir=DIR find the sources in DIR [configure dir or ..] 19479968Sobrien --program-prefix=PREFIX prepend PREFIX to installed program names 19579968Sobrien --program-suffix=SUFFIX append SUFFIX to installed program names 19679968Sobrien --program-transform-name=PROGRAM 19779968Sobrien run sed PROGRAM on installed program names 19879968SobrienEOF 19979968Sobrien cat << EOF 20079968SobrienHost type: 20179968Sobrien --build=BUILD configure for building on BUILD [BUILD=HOST] 20279968Sobrien --host=HOST configure for HOST [guessed] 20379968Sobrien --target=TARGET configure for TARGET [TARGET=HOST] 20479968SobrienFeatures and packages: 20579968Sobrien --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 20679968Sobrien --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 20779968Sobrien --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 20879968Sobrien --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 20979968Sobrien --x-includes=DIR X include files are in DIR 21079968Sobrien --x-libraries=DIR X library files are in DIR 21179968SobrienEOF 21279968Sobrien if test -n "$ac_help"; then 21379968Sobrien echo "--enable and --with options recognized:$ac_help" 21479968Sobrien fi 21579968Sobrien exit 0 ;; 21679968Sobrien 21779968Sobrien -host | --host | --hos | --ho) 21879968Sobrien ac_prev=host ;; 21979968Sobrien -host=* | --host=* | --hos=* | --ho=*) 22079968Sobrien host="$ac_optarg" ;; 22179968Sobrien 22279968Sobrien -includedir | --includedir | --includedi | --included | --include \ 22379968Sobrien | --includ | --inclu | --incl | --inc) 22479968Sobrien ac_prev=includedir ;; 22579968Sobrien -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 22679968Sobrien | --includ=* | --inclu=* | --incl=* | --inc=*) 22779968Sobrien includedir="$ac_optarg" ;; 22879968Sobrien 22979968Sobrien -infodir | --infodir | --infodi | --infod | --info | --inf) 23079968Sobrien ac_prev=infodir ;; 23179968Sobrien -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 23279968Sobrien infodir="$ac_optarg" ;; 23379968Sobrien 23479968Sobrien -libdir | --libdir | --libdi | --libd) 23579968Sobrien ac_prev=libdir ;; 23679968Sobrien -libdir=* | --libdir=* | --libdi=* | --libd=*) 23779968Sobrien libdir="$ac_optarg" ;; 23879968Sobrien 23979968Sobrien -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 24079968Sobrien | --libexe | --libex | --libe) 24179968Sobrien ac_prev=libexecdir ;; 24279968Sobrien -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 24379968Sobrien | --libexe=* | --libex=* | --libe=*) 24479968Sobrien libexecdir="$ac_optarg" ;; 24579968Sobrien 24679968Sobrien -localstatedir | --localstatedir | --localstatedi | --localstated \ 24779968Sobrien | --localstate | --localstat | --localsta | --localst \ 24879968Sobrien | --locals | --local | --loca | --loc | --lo) 24979968Sobrien ac_prev=localstatedir ;; 25079968Sobrien -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 25179968Sobrien | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 25279968Sobrien | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 25379968Sobrien localstatedir="$ac_optarg" ;; 25479968Sobrien 25579968Sobrien -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 25679968Sobrien ac_prev=mandir ;; 25779968Sobrien -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 25879968Sobrien mandir="$ac_optarg" ;; 25979968Sobrien 26079968Sobrien -nfp | --nfp | --nf) 26179968Sobrien # Obsolete; use --without-fp. 26279968Sobrien with_fp=no ;; 26379968Sobrien 26479968Sobrien -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 26579968Sobrien | --no-cr | --no-c) 26679968Sobrien no_create=yes ;; 26779968Sobrien 26879968Sobrien -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 26979968Sobrien | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 27079968Sobrien no_recursion=yes ;; 27179968Sobrien 27279968Sobrien -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 27379968Sobrien | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 27479968Sobrien | --oldin | --oldi | --old | --ol | --o) 27579968Sobrien ac_prev=oldincludedir ;; 27679968Sobrien -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 27779968Sobrien | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 27879968Sobrien | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 27979968Sobrien oldincludedir="$ac_optarg" ;; 28079968Sobrien 28179968Sobrien -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 28279968Sobrien ac_prev=prefix ;; 28379968Sobrien -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 28479968Sobrien prefix="$ac_optarg" ;; 28579968Sobrien 28679968Sobrien -program-prefix | --program-prefix | --program-prefi | --program-pref \ 28779968Sobrien | --program-pre | --program-pr | --program-p) 28879968Sobrien ac_prev=program_prefix ;; 28979968Sobrien -program-prefix=* | --program-prefix=* | --program-prefi=* \ 29079968Sobrien | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 29179968Sobrien program_prefix="$ac_optarg" ;; 29279968Sobrien 29379968Sobrien -program-suffix | --program-suffix | --program-suffi | --program-suff \ 29479968Sobrien | --program-suf | --program-su | --program-s) 29579968Sobrien ac_prev=program_suffix ;; 29679968Sobrien -program-suffix=* | --program-suffix=* | --program-suffi=* \ 29779968Sobrien | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 29879968Sobrien program_suffix="$ac_optarg" ;; 29979968Sobrien 30079968Sobrien -program-transform-name | --program-transform-name \ 30179968Sobrien | --program-transform-nam | --program-transform-na \ 30279968Sobrien | --program-transform-n | --program-transform- \ 30379968Sobrien | --program-transform | --program-transfor \ 30479968Sobrien | --program-transfo | --program-transf \ 30579968Sobrien | --program-trans | --program-tran \ 30679968Sobrien | --progr-tra | --program-tr | --program-t) 30779968Sobrien ac_prev=program_transform_name ;; 30879968Sobrien -program-transform-name=* | --program-transform-name=* \ 30979968Sobrien | --program-transform-nam=* | --program-transform-na=* \ 31079968Sobrien | --program-transform-n=* | --program-transform-=* \ 31179968Sobrien | --program-transform=* | --program-transfor=* \ 31279968Sobrien | --program-transfo=* | --program-transf=* \ 31379968Sobrien | --program-trans=* | --program-tran=* \ 31479968Sobrien | --progr-tra=* | --program-tr=* | --program-t=*) 31579968Sobrien program_transform_name="$ac_optarg" ;; 31679968Sobrien 31779968Sobrien -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 31879968Sobrien | -silent | --silent | --silen | --sile | --sil) 31979968Sobrien silent=yes ;; 32079968Sobrien 32179968Sobrien -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 32279968Sobrien ac_prev=sbindir ;; 32379968Sobrien -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 32479968Sobrien | --sbi=* | --sb=*) 32579968Sobrien sbindir="$ac_optarg" ;; 32679968Sobrien 32779968Sobrien -sharedstatedir | --sharedstatedir | --sharedstatedi \ 32879968Sobrien | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 32979968Sobrien | --sharedst | --shareds | --shared | --share | --shar \ 33079968Sobrien | --sha | --sh) 33179968Sobrien ac_prev=sharedstatedir ;; 33279968Sobrien -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 33379968Sobrien | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 33479968Sobrien | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 33579968Sobrien | --sha=* | --sh=*) 33679968Sobrien sharedstatedir="$ac_optarg" ;; 33779968Sobrien 33879968Sobrien -site | --site | --sit) 33979968Sobrien ac_prev=site ;; 34079968Sobrien -site=* | --site=* | --sit=*) 34179968Sobrien site="$ac_optarg" ;; 34279968Sobrien 34379968Sobrien -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 34479968Sobrien ac_prev=srcdir ;; 34579968Sobrien -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 34679968Sobrien srcdir="$ac_optarg" ;; 34779968Sobrien 34879968Sobrien -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 34979968Sobrien | --syscon | --sysco | --sysc | --sys | --sy) 35079968Sobrien ac_prev=sysconfdir ;; 35179968Sobrien -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 35279968Sobrien | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 35379968Sobrien sysconfdir="$ac_optarg" ;; 35479968Sobrien 35579968Sobrien -target | --target | --targe | --targ | --tar | --ta | --t) 35679968Sobrien ac_prev=target ;; 35779968Sobrien -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 35879968Sobrien target="$ac_optarg" ;; 35979968Sobrien 36079968Sobrien -v | -verbose | --verbose | --verbos | --verbo | --verb) 36179968Sobrien verbose=yes ;; 36279968Sobrien 36379968Sobrien -version | --version | --versio | --versi | --vers) 36479968Sobrien echo "configure generated by autoconf version 2.13" 36579968Sobrien exit 0 ;; 36679968Sobrien 36779968Sobrien -with-* | --with-*) 36879968Sobrien ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 36979968Sobrien # Reject names that are not valid shell variable names. 37079968Sobrien if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 37179968Sobrien { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 37279968Sobrien fi 37379968Sobrien ac_package=`echo $ac_package| sed 's/-/_/g'` 37479968Sobrien case "$ac_option" in 37579968Sobrien *=*) ;; 37679968Sobrien *) ac_optarg=yes ;; 37779968Sobrien esac 37879968Sobrien eval "with_${ac_package}='$ac_optarg'" ;; 37979968Sobrien 38079968Sobrien -without-* | --without-*) 38179968Sobrien ac_package=`echo $ac_option|sed -e 's/-*without-//'` 38279968Sobrien # Reject names that are not valid shell variable names. 38379968Sobrien if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 38479968Sobrien { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 38579968Sobrien fi 38679968Sobrien ac_package=`echo $ac_package| sed 's/-/_/g'` 38779968Sobrien eval "with_${ac_package}=no" ;; 38879968Sobrien 38979968Sobrien --x) 39079968Sobrien # Obsolete; use --with-x. 39179968Sobrien with_x=yes ;; 39279968Sobrien 39379968Sobrien -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 39479968Sobrien | --x-incl | --x-inc | --x-in | --x-i) 39579968Sobrien ac_prev=x_includes ;; 39679968Sobrien -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 39779968Sobrien | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 39879968Sobrien x_includes="$ac_optarg" ;; 39979968Sobrien 40079968Sobrien -x-libraries | --x-libraries | --x-librarie | --x-librari \ 40179968Sobrien | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 40279968Sobrien ac_prev=x_libraries ;; 40379968Sobrien -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 40479968Sobrien | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 40579968Sobrien x_libraries="$ac_optarg" ;; 40679968Sobrien 40779968Sobrien -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 40879968Sobrien ;; 40979968Sobrien 41079968Sobrien *) 41179968Sobrien if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 41279968Sobrien echo "configure: warning: $ac_option: invalid host type" 1>&2 41379968Sobrien fi 41479968Sobrien if test "x$nonopt" != xNONE; then 41579968Sobrien { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 41679968Sobrien fi 41779968Sobrien nonopt="$ac_option" 41879968Sobrien ;; 41979968Sobrien 42079968Sobrien esac 42179968Sobriendone 42279968Sobrien 42379968Sobrienif test -n "$ac_prev"; then 42479968Sobrien { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 42579968Sobrienfi 42679968Sobrien 42779968Sobrientrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 42879968Sobrien 42979968Sobrien# File descriptor usage: 43079968Sobrien# 0 standard input 43179968Sobrien# 1 file creation 43279968Sobrien# 2 errors and warnings 43379968Sobrien# 3 some systems may open it to /dev/tty 43479968Sobrien# 4 used on the Kubota Titan 43579968Sobrien# 6 checking for... messages and results 43679968Sobrien# 5 compiler messages saved in config.log 43779968Sobrienif test "$silent" = yes; then 43879968Sobrien exec 6>/dev/null 43979968Sobrienelse 44079968Sobrien exec 6>&1 44179968Sobrienfi 44279968Sobrienexec 5>./config.log 44379968Sobrien 44479968Sobrienecho "\ 44579968SobrienThis file contains any messages produced by compilers while 44679968Sobrienrunning configure, to aid debugging if configure makes a mistake. 44779968Sobrien" 1>&5 44879968Sobrien 44979968Sobrien# Strip out --no-create and --no-recursion so they do not pile up. 45079968Sobrien# Also quote any args containing shell metacharacters. 45179968Sobrienac_configure_args= 45279968Sobrienfor ac_arg 45379968Sobriendo 45479968Sobrien case "$ac_arg" in 45579968Sobrien -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 45679968Sobrien | --no-cr | --no-c) ;; 45779968Sobrien -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 45879968Sobrien | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 45979968Sobrien *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 46079968Sobrien ac_configure_args="$ac_configure_args '$ac_arg'" ;; 46179968Sobrien *) ac_configure_args="$ac_configure_args $ac_arg" ;; 46279968Sobrien esac 46379968Sobriendone 46479968Sobrien 46579968Sobrien# NLS nuisances. 46679968Sobrien# Only set these to C if already set. These must not be set unconditionally 46779968Sobrien# because not all systems understand e.g. LANG=C (notably SCO). 46879968Sobrien# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 46979968Sobrien# Non-C LC_CTYPE values break the ctype check. 47079968Sobrienif test "${LANG+set}" = set; then LANG=C; export LANG; fi 47179968Sobrienif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 47279968Sobrienif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 47379968Sobrienif test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 47479968Sobrien 47579968Sobrien# confdefs.h avoids OS command line length limits that DEFS can exceed. 47679968Sobrienrm -rf conftest* confdefs.h 47779968Sobrien# AIX cpp loses on an empty file, so make sure it contains at least a newline. 47879968Sobrienecho > confdefs.h 47979968Sobrien 48079968Sobrien# A filename unique to this package, relative to the directory that 48179968Sobrien# configure is in, which we can look for to find out if srcdir is correct. 48279968Sobrienac_unique_file=lukemftpd.h 48379968Sobrien 48479968Sobrien# Find the source files, if location was not specified. 48579968Sobrienif test -z "$srcdir"; then 48679968Sobrien ac_srcdir_defaulted=yes 48779968Sobrien # Try the directory containing this script, then its parent. 48879968Sobrien ac_prog=$0 48979968Sobrien ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 49079968Sobrien test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 49179968Sobrien srcdir=$ac_confdir 49279968Sobrien if test ! -r $srcdir/$ac_unique_file; then 49379968Sobrien srcdir=.. 49479968Sobrien fi 49579968Sobrienelse 49679968Sobrien ac_srcdir_defaulted=no 49779968Sobrienfi 49879968Sobrienif test ! -r $srcdir/$ac_unique_file; then 49979968Sobrien if test "$ac_srcdir_defaulted" = yes; then 50079968Sobrien { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 50179968Sobrien else 50279968Sobrien { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 50379968Sobrien fi 50479968Sobrienfi 50579968Sobriensrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 50679968Sobrien 50779968Sobrien# Prefer explicitly selected file to automatically selected ones. 50879968Sobrienif test -z "$CONFIG_SITE"; then 50979968Sobrien if test "x$prefix" != xNONE; then 51079968Sobrien CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 51179968Sobrien else 51279968Sobrien CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 51379968Sobrien fi 51479968Sobrienfi 51579968Sobrienfor ac_site_file in $CONFIG_SITE; do 51679968Sobrien if test -r "$ac_site_file"; then 51779968Sobrien echo "loading site script $ac_site_file" 51879968Sobrien . "$ac_site_file" 51979968Sobrien fi 52079968Sobriendone 52179968Sobrien 52279968Sobrienif test -r "$cache_file"; then 52379968Sobrien echo "loading cache $cache_file" 52479968Sobrien . $cache_file 52579968Sobrienelse 52679968Sobrien echo "creating cache $cache_file" 52779968Sobrien > $cache_file 52879968Sobrienfi 52979968Sobrien 53079968Sobrienac_ext=c 53179968Sobrien# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 53279968Sobrienac_cpp='$CPP $CPPFLAGS' 53379968Sobrienac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 53479968Sobrienac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 53579968Sobriencross_compiling=$ac_cv_prog_cc_cross 53679968Sobrien 53779968Sobrienac_exeext= 53879968Sobrienac_objext=o 53979968Sobrienif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 54079968Sobrien # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 54179968Sobrien if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 54279968Sobrien ac_n= ac_c=' 54379968Sobrien' ac_t=' ' 54479968Sobrien else 54579968Sobrien ac_n=-n ac_c= ac_t= 54679968Sobrien fi 54779968Sobrienelse 54879968Sobrien ac_n= ac_c='\c' ac_t= 54979968Sobrienfi 55079968Sobrien 55179968Sobrien 55279968Sobrien 55379968Sobrien 55479968Sobrien# Check whether --enable-ipv6 or --disable-ipv6 was given. 55579968Sobrienif test "${enable_ipv6+set}" = set; then 55679968Sobrien enableval="$enable_ipv6" 55779968Sobrien opt_ipv6=$enableval 55879968Sobrienelse 55979968Sobrien opt_ipv6=yes 56079968Sobrienfi 56179968Sobrien 56279968Sobrien# Check whether --enable-builtinls or --disable-builtinls was given. 56379968Sobrienif test "${enable_builtinls+set}" = set; then 56479968Sobrien enableval="$enable_builtinls" 56579968Sobrien opt_builtinls=$enableval 56679968Sobrienelse 56779968Sobrien opt_builtinls=yes 56879968Sobrienfi 56979968Sobrien 57079968Sobrien 57179968Sobrien 57279968Sobrienecho $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 57379968Sobrienecho "configure:574: checking whether ${MAKE-make} sets \${MAKE}" >&5 57479968Sobrienset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 57579968Sobrienif eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 57679968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 57779968Sobrienelse 57879968Sobrien cat > conftestmake <<\EOF 57979968Sobrienall: 58079968Sobrien @echo 'ac_maketemp="${MAKE}"' 58179968SobrienEOF 58279968Sobrien# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 58379968Sobrieneval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 58479968Sobrienif test -n "$ac_maketemp"; then 58579968Sobrien eval ac_cv_prog_make_${ac_make}_set=yes 58679968Sobrienelse 58779968Sobrien eval ac_cv_prog_make_${ac_make}_set=no 58879968Sobrienfi 58979968Sobrienrm -f conftestmake 59079968Sobrienfi 59179968Sobrienif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 59279968Sobrien echo "$ac_t""yes" 1>&6 59379968Sobrien SET_MAKE= 59479968Sobrienelse 59579968Sobrien echo "$ac_t""no" 1>&6 59679968Sobrien SET_MAKE="MAKE=${MAKE-make}" 59779968Sobrienfi 59879968Sobrien 59979968Sobrien# Extract the first word of "gcc", so it can be a program name with args. 60079968Sobrienset dummy gcc; ac_word=$2 60179968Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 60279968Sobrienecho "configure:603: checking for $ac_word" >&5 60379968Sobrienif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 60479968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 60579968Sobrienelse 60679968Sobrien if test -n "$CC"; then 60779968Sobrien ac_cv_prog_CC="$CC" # Let the user override the test. 60879968Sobrienelse 60979968Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 61079968Sobrien ac_dummy="$PATH" 61179968Sobrien for ac_dir in $ac_dummy; do 61279968Sobrien test -z "$ac_dir" && ac_dir=. 61379968Sobrien if test -f $ac_dir/$ac_word; then 61479968Sobrien ac_cv_prog_CC="gcc" 61579968Sobrien break 61679968Sobrien fi 61779968Sobrien done 61879968Sobrien IFS="$ac_save_ifs" 61979968Sobrienfi 62079968Sobrienfi 62179968SobrienCC="$ac_cv_prog_CC" 62279968Sobrienif test -n "$CC"; then 62379968Sobrien echo "$ac_t""$CC" 1>&6 62479968Sobrienelse 62579968Sobrien echo "$ac_t""no" 1>&6 62679968Sobrienfi 62779968Sobrien 62879968Sobrienif test -z "$CC"; then 62979968Sobrien # Extract the first word of "cc", so it can be a program name with args. 63079968Sobrienset dummy cc; ac_word=$2 63179968Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 63279968Sobrienecho "configure:633: checking for $ac_word" >&5 63379968Sobrienif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 63479968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 63579968Sobrienelse 63679968Sobrien if test -n "$CC"; then 63779968Sobrien ac_cv_prog_CC="$CC" # Let the user override the test. 63879968Sobrienelse 63979968Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 64079968Sobrien ac_prog_rejected=no 64179968Sobrien ac_dummy="$PATH" 64279968Sobrien for ac_dir in $ac_dummy; do 64379968Sobrien test -z "$ac_dir" && ac_dir=. 64479968Sobrien if test -f $ac_dir/$ac_word; then 64579968Sobrien if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 64679968Sobrien ac_prog_rejected=yes 64779968Sobrien continue 64879968Sobrien fi 64979968Sobrien ac_cv_prog_CC="cc" 65079968Sobrien break 65179968Sobrien fi 65279968Sobrien done 65379968Sobrien IFS="$ac_save_ifs" 65479968Sobrienif test $ac_prog_rejected = yes; then 65579968Sobrien # We found a bogon in the path, so make sure we never use it. 65679968Sobrien set dummy $ac_cv_prog_CC 65779968Sobrien shift 65879968Sobrien if test $# -gt 0; then 65979968Sobrien # We chose a different compiler from the bogus one. 66079968Sobrien # However, it has the same basename, so the bogon will be chosen 66179968Sobrien # first if we set CC to just the basename; use the full file name. 66279968Sobrien shift 66379968Sobrien set dummy "$ac_dir/$ac_word" "$@" 66479968Sobrien shift 66579968Sobrien ac_cv_prog_CC="$@" 66679968Sobrien fi 66779968Sobrienfi 66879968Sobrienfi 66979968Sobrienfi 67079968SobrienCC="$ac_cv_prog_CC" 67179968Sobrienif test -n "$CC"; then 67279968Sobrien echo "$ac_t""$CC" 1>&6 67379968Sobrienelse 67479968Sobrien echo "$ac_t""no" 1>&6 67579968Sobrienfi 67679968Sobrien 67779968Sobrien if test -z "$CC"; then 67879968Sobrien case "`uname -s`" in 67979968Sobrien *win32* | *WIN32*) 68079968Sobrien # Extract the first word of "cl", so it can be a program name with args. 68179968Sobrienset dummy cl; ac_word=$2 68279968Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 68379968Sobrienecho "configure:684: checking for $ac_word" >&5 68479968Sobrienif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 68579968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 68679968Sobrienelse 68779968Sobrien if test -n "$CC"; then 68879968Sobrien ac_cv_prog_CC="$CC" # Let the user override the test. 68979968Sobrienelse 69079968Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 69179968Sobrien ac_dummy="$PATH" 69279968Sobrien for ac_dir in $ac_dummy; do 69379968Sobrien test -z "$ac_dir" && ac_dir=. 69479968Sobrien if test -f $ac_dir/$ac_word; then 69579968Sobrien ac_cv_prog_CC="cl" 69679968Sobrien break 69779968Sobrien fi 69879968Sobrien done 69979968Sobrien IFS="$ac_save_ifs" 70079968Sobrienfi 70179968Sobrienfi 70279968SobrienCC="$ac_cv_prog_CC" 70379968Sobrienif test -n "$CC"; then 70479968Sobrien echo "$ac_t""$CC" 1>&6 70579968Sobrienelse 70679968Sobrien echo "$ac_t""no" 1>&6 70779968Sobrienfi 70879968Sobrien ;; 70979968Sobrien esac 71079968Sobrien fi 71179968Sobrien test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 71279968Sobrienfi 71379968Sobrien 71479968Sobrienecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 71579968Sobrienecho "configure:716: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 71679968Sobrien 71779968Sobrienac_ext=c 71879968Sobrien# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 71979968Sobrienac_cpp='$CPP $CPPFLAGS' 72079968Sobrienac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 72179968Sobrienac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 72279968Sobriencross_compiling=$ac_cv_prog_cc_cross 72379968Sobrien 72479968Sobriencat > conftest.$ac_ext << EOF 72579968Sobrien 72679968Sobrien#line 727 "configure" 72779968Sobrien#include "confdefs.h" 72879968Sobrien 72979968Sobrienmain(){return(0);} 73079968SobrienEOF 73179968Sobrienif { (eval echo configure:732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 73279968Sobrien ac_cv_prog_cc_works=yes 73379968Sobrien # If we can't run a trivial program, we are probably using a cross compiler. 73479968Sobrien if (./conftest; exit) 2>/dev/null; then 73579968Sobrien ac_cv_prog_cc_cross=no 73679968Sobrien else 73779968Sobrien ac_cv_prog_cc_cross=yes 73879968Sobrien fi 73979968Sobrienelse 74079968Sobrien echo "configure: failed program was:" >&5 74179968Sobrien cat conftest.$ac_ext >&5 74279968Sobrien ac_cv_prog_cc_works=no 74379968Sobrienfi 74479968Sobrienrm -fr conftest* 74579968Sobrienac_ext=c 74679968Sobrien# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 74779968Sobrienac_cpp='$CPP $CPPFLAGS' 74879968Sobrienac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 74979968Sobrienac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 75079968Sobriencross_compiling=$ac_cv_prog_cc_cross 75179968Sobrien 75279968Sobrienecho "$ac_t""$ac_cv_prog_cc_works" 1>&6 75379968Sobrienif test $ac_cv_prog_cc_works = no; then 75479968Sobrien { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 75579968Sobrienfi 75679968Sobrienecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 75779968Sobrienecho "configure:758: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 75879968Sobrienecho "$ac_t""$ac_cv_prog_cc_cross" 1>&6 75979968Sobriencross_compiling=$ac_cv_prog_cc_cross 76079968Sobrien 76179968Sobrienecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 76279968Sobrienecho "configure:763: checking whether we are using GNU C" >&5 76379968Sobrienif eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 76479968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 76579968Sobrienelse 76679968Sobrien cat > conftest.c <<EOF 76779968Sobrien#ifdef __GNUC__ 76879968Sobrien yes; 76979968Sobrien#endif 77079968SobrienEOF 77179968Sobrienif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 77279968Sobrien ac_cv_prog_gcc=yes 77379968Sobrienelse 77479968Sobrien ac_cv_prog_gcc=no 77579968Sobrienfi 77679968Sobrienfi 77779968Sobrien 77879968Sobrienecho "$ac_t""$ac_cv_prog_gcc" 1>&6 77979968Sobrien 78079968Sobrienif test $ac_cv_prog_gcc = yes; then 78179968Sobrien GCC=yes 78279968Sobrienelse 78379968Sobrien GCC= 78479968Sobrienfi 78579968Sobrien 78679968Sobrienac_test_CFLAGS="${CFLAGS+set}" 78779968Sobrienac_save_CFLAGS="$CFLAGS" 78879968SobrienCFLAGS= 78979968Sobrienecho $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 79079968Sobrienecho "configure:791: checking whether ${CC-cc} accepts -g" >&5 79179968Sobrienif eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 79279968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 79379968Sobrienelse 79479968Sobrien echo 'void f(){}' > conftest.c 79579968Sobrienif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 79679968Sobrien ac_cv_prog_cc_g=yes 79779968Sobrienelse 79879968Sobrien ac_cv_prog_cc_g=no 79979968Sobrienfi 80079968Sobrienrm -f conftest* 80179968Sobrien 80279968Sobrienfi 80379968Sobrien 80479968Sobrienecho "$ac_t""$ac_cv_prog_cc_g" 1>&6 80579968Sobrienif test "$ac_test_CFLAGS" = set; then 80679968Sobrien CFLAGS="$ac_save_CFLAGS" 80779968Sobrienelif test $ac_cv_prog_cc_g = yes; then 80879968Sobrien if test "$GCC" = yes; then 80979968Sobrien CFLAGS="-g -O2" 81079968Sobrien else 81179968Sobrien CFLAGS="-g" 81279968Sobrien fi 81379968Sobrienelse 81479968Sobrien if test "$GCC" = yes; then 81579968Sobrien CFLAGS="-O2" 81679968Sobrien else 81779968Sobrien CFLAGS= 81879968Sobrien fi 81979968Sobrienfi 82079968Sobrien 82179968Sobrienfor ac_prog in mawk gawk nawk awk 82279968Sobriendo 82379968Sobrien# Extract the first word of "$ac_prog", so it can be a program name with args. 82479968Sobrienset dummy $ac_prog; ac_word=$2 82579968Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 82679968Sobrienecho "configure:827: checking for $ac_word" >&5 82779968Sobrienif eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then 82879968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 82979968Sobrienelse 83079968Sobrien if test -n "$AWK"; then 83179968Sobrien ac_cv_prog_AWK="$AWK" # Let the user override the test. 83279968Sobrienelse 83379968Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 83479968Sobrien ac_dummy="$PATH" 83579968Sobrien for ac_dir in $ac_dummy; do 83679968Sobrien test -z "$ac_dir" && ac_dir=. 83779968Sobrien if test -f $ac_dir/$ac_word; then 83879968Sobrien ac_cv_prog_AWK="$ac_prog" 83979968Sobrien break 84079968Sobrien fi 84179968Sobrien done 84279968Sobrien IFS="$ac_save_ifs" 84379968Sobrienfi 84479968Sobrienfi 84579968SobrienAWK="$ac_cv_prog_AWK" 84679968Sobrienif test -n "$AWK"; then 84779968Sobrien echo "$ac_t""$AWK" 1>&6 84879968Sobrienelse 84979968Sobrien echo "$ac_t""no" 1>&6 85079968Sobrienfi 85179968Sobrien 85279968Sobrientest -n "$AWK" && break 85379968Sobriendone 85479968Sobrien 85579968Sobrienac_aux_dir= 85679968Sobrienfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 85779968Sobrien if test -f $ac_dir/install-sh; then 85879968Sobrien ac_aux_dir=$ac_dir 85979968Sobrien ac_install_sh="$ac_aux_dir/install-sh -c" 86079968Sobrien break 86179968Sobrien elif test -f $ac_dir/install.sh; then 86279968Sobrien ac_aux_dir=$ac_dir 86379968Sobrien ac_install_sh="$ac_aux_dir/install.sh -c" 86479968Sobrien break 86579968Sobrien fi 86679968Sobriendone 86779968Sobrienif test -z "$ac_aux_dir"; then 86879968Sobrien { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 86979968Sobrienfi 87079968Sobrienac_config_guess=$ac_aux_dir/config.guess 87179968Sobrienac_config_sub=$ac_aux_dir/config.sub 87279968Sobrienac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 87379968Sobrien 87479968Sobrien# Find a good install program. We prefer a C program (faster), 87579968Sobrien# so one script is as good as another. But avoid the broken or 87679968Sobrien# incompatible versions: 87779968Sobrien# SysV /etc/install, /usr/sbin/install 87879968Sobrien# SunOS /usr/etc/install 87979968Sobrien# IRIX /sbin/install 88079968Sobrien# AIX /bin/install 88179968Sobrien# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 88279968Sobrien# AFS /usr/afsws/bin/install, which mishandles nonexistent args 88379968Sobrien# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 88479968Sobrien# ./install, which can be erroneously created by make from ./install.sh. 88579968Sobrienecho $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 88679968Sobrienecho "configure:887: checking for a BSD compatible install" >&5 88779968Sobrienif test -z "$INSTALL"; then 88879968Sobrienif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 88979968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 89079968Sobrienelse 89179968Sobrien IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 89279968Sobrien for ac_dir in $PATH; do 89379968Sobrien # Account for people who put trailing slashes in PATH elements. 89479968Sobrien case "$ac_dir/" in 89579968Sobrien /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 89679968Sobrien *) 89779968Sobrien # OSF1 and SCO ODT 3.0 have their own names for install. 89879968Sobrien # Don't use installbsd from OSF since it installs stuff as root 89979968Sobrien # by default. 90079968Sobrien for ac_prog in ginstall scoinst install; do 90179968Sobrien if test -f $ac_dir/$ac_prog; then 90279968Sobrien if test $ac_prog = install && 90379968Sobrien grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 90479968Sobrien # AIX install. It has an incompatible calling convention. 90579968Sobrien : 90679968Sobrien else 90779968Sobrien ac_cv_path_install="$ac_dir/$ac_prog -c" 90879968Sobrien break 2 90979968Sobrien fi 91079968Sobrien fi 91179968Sobrien done 91279968Sobrien ;; 91379968Sobrien esac 91479968Sobrien done 91579968Sobrien IFS="$ac_save_IFS" 91679968Sobrien 91779968Sobrienfi 91879968Sobrien if test "${ac_cv_path_install+set}" = set; then 91979968Sobrien INSTALL="$ac_cv_path_install" 92079968Sobrien else 92179968Sobrien # As a last resort, use the slow shell script. We don't cache a 92279968Sobrien # path for INSTALL within a source directory, because that will 92379968Sobrien # break other packages using the cache if that directory is 92479968Sobrien # removed, or if the path is relative. 92579968Sobrien INSTALL="$ac_install_sh" 92679968Sobrien fi 92779968Sobrienfi 92879968Sobrienecho "$ac_t""$INSTALL" 1>&6 92979968Sobrien 93079968Sobrien# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 93179968Sobrien# It thinks the first close brace ends the variable substitution. 93279968Sobrientest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 93379968Sobrien 93479968Sobrientest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 93579968Sobrien 93679968Sobrientest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 93779968Sobrien 93879968Sobrien# Extract the first word of "ranlib", so it can be a program name with args. 93979968Sobrienset dummy ranlib; ac_word=$2 94079968Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 94179968Sobrienecho "configure:942: checking for $ac_word" >&5 94279968Sobrienif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 94379968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 94479968Sobrienelse 94579968Sobrien if test -n "$RANLIB"; then 94679968Sobrien ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 94779968Sobrienelse 94879968Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 94979968Sobrien ac_dummy="$PATH" 95079968Sobrien for ac_dir in $ac_dummy; do 95179968Sobrien test -z "$ac_dir" && ac_dir=. 95279968Sobrien if test -f $ac_dir/$ac_word; then 95379968Sobrien ac_cv_prog_RANLIB="ranlib" 95479968Sobrien break 95579968Sobrien fi 95679968Sobrien done 95779968Sobrien IFS="$ac_save_ifs" 95879968Sobrien test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 95979968Sobrienfi 96079968Sobrienfi 96179968SobrienRANLIB="$ac_cv_prog_RANLIB" 96279968Sobrienif test -n "$RANLIB"; then 96379968Sobrien echo "$ac_t""$RANLIB" 1>&6 96479968Sobrienelse 96579968Sobrien echo "$ac_t""no" 1>&6 96679968Sobrienfi 96779968Sobrien 96879968Sobrienfor ac_prog in 'bison -y' byacc 96979968Sobriendo 97079968Sobrien# Extract the first word of "$ac_prog", so it can be a program name with args. 97179968Sobrienset dummy $ac_prog; ac_word=$2 97279968Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 97379968Sobrienecho "configure:974: checking for $ac_word" >&5 97479968Sobrienif eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then 97579968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 97679968Sobrienelse 97779968Sobrien if test -n "$YACC"; then 97879968Sobrien ac_cv_prog_YACC="$YACC" # Let the user override the test. 97979968Sobrienelse 98079968Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 98179968Sobrien ac_dummy="$PATH" 98279968Sobrien for ac_dir in $ac_dummy; do 98379968Sobrien test -z "$ac_dir" && ac_dir=. 98479968Sobrien if test -f $ac_dir/$ac_word; then 98579968Sobrien ac_cv_prog_YACC="$ac_prog" 98679968Sobrien break 98779968Sobrien fi 98879968Sobrien done 98979968Sobrien IFS="$ac_save_ifs" 99079968Sobrienfi 99179968Sobrienfi 99279968SobrienYACC="$ac_cv_prog_YACC" 99379968Sobrienif test -n "$YACC"; then 99479968Sobrien echo "$ac_t""$YACC" 1>&6 99579968Sobrienelse 99679968Sobrien echo "$ac_t""no" 1>&6 99779968Sobrienfi 99879968Sobrien 99979968Sobrientest -n "$YACC" && break 100079968Sobriendone 100179968Sobrientest -n "$YACC" || YACC="yacc" 100279968Sobrien 100379968Sobrienfor ac_prog in ar 100479968Sobriendo 100579968Sobrien# Extract the first word of "$ac_prog", so it can be a program name with args. 100679968Sobrienset dummy $ac_prog; ac_word=$2 100779968Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 100879968Sobrienecho "configure:1009: checking for $ac_word" >&5 100979968Sobrienif eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then 101079968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 101179968Sobrienelse 101279968Sobrien if test -n "$AR"; then 101379968Sobrien ac_cv_prog_AR="$AR" # Let the user override the test. 101479968Sobrienelse 101579968Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 101679968Sobrien ac_dummy="$PATH" 101779968Sobrien for ac_dir in $ac_dummy; do 101879968Sobrien test -z "$ac_dir" && ac_dir=. 101979968Sobrien if test -f $ac_dir/$ac_word; then 102079968Sobrien ac_cv_prog_AR="$ac_prog" 102179968Sobrien break 102279968Sobrien fi 102379968Sobrien done 102479968Sobrien IFS="$ac_save_ifs" 102579968Sobrienfi 102679968Sobrienfi 102779968SobrienAR="$ac_cv_prog_AR" 102879968Sobrienif test -n "$AR"; then 102979968Sobrien echo "$ac_t""$AR" 1>&6 103079968Sobrienelse 103179968Sobrien echo "$ac_t""no" 1>&6 103279968Sobrienfi 103379968Sobrien 103479968Sobrientest -n "$AR" && break 103579968Sobriendone 103679968Sobrien 103779968Sobrien 103879968Sobrien 103979968Sobrienecho $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 104079968Sobrienecho "configure:1041: checking for crypt in -lcrypt" >&5 104179968Sobrienac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 104279968Sobrienif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 104379968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 104479968Sobrienelse 104579968Sobrien ac_save_LIBS="$LIBS" 104679968SobrienLIBS="-lcrypt $LIBS" 104779968Sobriencat > conftest.$ac_ext <<EOF 104879968Sobrien#line 1049 "configure" 104979968Sobrien#include "confdefs.h" 105079968Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 105179968Sobrien/* We use char because int might match the return type of a gcc2 105279968Sobrien builtin and then its argument prototype would still apply. */ 105379968Sobrienchar crypt(); 105479968Sobrien 105579968Sobrienint main() { 105679968Sobriencrypt() 105779968Sobrien; return 0; } 105879968SobrienEOF 105979968Sobrienif { (eval echo configure:1060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 106079968Sobrien rm -rf conftest* 106179968Sobrien eval "ac_cv_lib_$ac_lib_var=yes" 106279968Sobrienelse 106379968Sobrien echo "configure: failed program was:" >&5 106479968Sobrien cat conftest.$ac_ext >&5 106579968Sobrien rm -rf conftest* 106679968Sobrien eval "ac_cv_lib_$ac_lib_var=no" 106779968Sobrienfi 106879968Sobrienrm -f conftest* 106979968SobrienLIBS="$ac_save_LIBS" 107079968Sobrien 107179968Sobrienfi 107279968Sobrienif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 107379968Sobrien echo "$ac_t""yes" 1>&6 107479968Sobrien ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 107579968Sobrien -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 107679968Sobrien cat >> confdefs.h <<EOF 107779968Sobrien#define $ac_tr_lib 1 107879968SobrienEOF 107979968Sobrien 108079968Sobrien LIBS="-lcrypt $LIBS" 108179968Sobrien 108279968Sobrienelse 108379968Sobrien echo "$ac_t""no" 1>&6 108479968Sobrienfi 108579968Sobrien 108679968Sobrienecho $ac_n "checking for fparseln in -lutil""... $ac_c" 1>&6 108779968Sobrienecho "configure:1088: checking for fparseln in -lutil" >&5 108879968Sobrienac_lib_var=`echo util'_'fparseln | sed 'y%./+-%__p_%'` 108979968Sobrienif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 109079968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 109179968Sobrienelse 109279968Sobrien ac_save_LIBS="$LIBS" 109379968SobrienLIBS="-lutil $LIBS" 109479968Sobriencat > conftest.$ac_ext <<EOF 109579968Sobrien#line 1096 "configure" 109679968Sobrien#include "confdefs.h" 109779968Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 109879968Sobrien/* We use char because int might match the return type of a gcc2 109979968Sobrien builtin and then its argument prototype would still apply. */ 110079968Sobrienchar fparseln(); 110179968Sobrien 110279968Sobrienint main() { 110379968Sobrienfparseln() 110479968Sobrien; return 0; } 110579968SobrienEOF 110679968Sobrienif { (eval echo configure:1107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 110779968Sobrien rm -rf conftest* 110879968Sobrien eval "ac_cv_lib_$ac_lib_var=yes" 110979968Sobrienelse 111079968Sobrien echo "configure: failed program was:" >&5 111179968Sobrien cat conftest.$ac_ext >&5 111279968Sobrien rm -rf conftest* 111379968Sobrien eval "ac_cv_lib_$ac_lib_var=no" 111479968Sobrienfi 111579968Sobrienrm -f conftest* 111679968SobrienLIBS="$ac_save_LIBS" 111779968Sobrien 111879968Sobrienfi 111979968Sobrienif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 112079968Sobrien echo "$ac_t""yes" 1>&6 112179968Sobrien ac_tr_lib=HAVE_LIB`echo util | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 112279968Sobrien -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 112379968Sobrien cat >> confdefs.h <<EOF 112479968Sobrien#define $ac_tr_lib 1 112579968SobrienEOF 112679968Sobrien 112779968Sobrien LIBS="-lutil $LIBS" 112879968Sobrien 112979968Sobrienelse 113079968Sobrien echo "$ac_t""no" 1>&6 113179968Sobrienfi 113279968Sobrien 113379968Sobrienif test $ac_cv_lib_util_fparseln != yes; then 113479968Sobrien echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6 113579968Sobrienecho "configure:1136: checking for setproctitle in -lutil" >&5 113679968Sobrienac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'` 113779968Sobrienif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 113879968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 113979968Sobrienelse 114079968Sobrien ac_save_LIBS="$LIBS" 114179968SobrienLIBS="-lutil $LIBS" 114279968Sobriencat > conftest.$ac_ext <<EOF 114379968Sobrien#line 1144 "configure" 114479968Sobrien#include "confdefs.h" 114579968Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 114679968Sobrien/* We use char because int might match the return type of a gcc2 114779968Sobrien builtin and then its argument prototype would still apply. */ 114879968Sobrienchar setproctitle(); 114979968Sobrien 115079968Sobrienint main() { 115179968Sobriensetproctitle() 115279968Sobrien; return 0; } 115379968SobrienEOF 115479968Sobrienif { (eval echo configure:1155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 115579968Sobrien rm -rf conftest* 115679968Sobrien eval "ac_cv_lib_$ac_lib_var=yes" 115779968Sobrienelse 115879968Sobrien echo "configure: failed program was:" >&5 115979968Sobrien cat conftest.$ac_ext >&5 116079968Sobrien rm -rf conftest* 116179968Sobrien eval "ac_cv_lib_$ac_lib_var=no" 116279968Sobrienfi 116379968Sobrienrm -f conftest* 116479968SobrienLIBS="$ac_save_LIBS" 116579968Sobrien 116679968Sobrienfi 116779968Sobrienif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 116879968Sobrien echo "$ac_t""yes" 1>&6 116979968Sobrien ac_tr_lib=HAVE_LIB`echo util | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 117079968Sobrien -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 117179968Sobrien cat >> confdefs.h <<EOF 117279968Sobrien#define $ac_tr_lib 1 117379968SobrienEOF 117479968Sobrien 117579968Sobrien LIBS="-lutil $LIBS" 117679968Sobrien 117779968Sobrienelse 117879968Sobrien echo "$ac_t""no" 1>&6 117979968Sobrienfi 118079968Sobrien 118179968Sobrienfi 118279968Sobrien 118379968Sobrien # Most operating systems have gethostbyname() in the default searched 118479968Sobrien # libraries (i.e. libc): 118579968Sobrien echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 118679968Sobrienecho "configure:1187: checking for gethostbyname" >&5 118779968Sobrienif eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then 118879968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 118979968Sobrienelse 119079968Sobrien cat > conftest.$ac_ext <<EOF 119179968Sobrien#line 1192 "configure" 119279968Sobrien#include "confdefs.h" 119379968Sobrien/* System header to define __stub macros and hopefully few prototypes, 119479968Sobrien which can conflict with char gethostbyname(); below. */ 119579968Sobrien#include <assert.h> 119679968Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 119779968Sobrien/* We use char because int might match the return type of a gcc2 119879968Sobrien builtin and then its argument prototype would still apply. */ 119979968Sobrienchar gethostbyname(); 120079968Sobrien 120179968Sobrienint main() { 120279968Sobrien 120379968Sobrien/* The GNU C library defines this for functions which it implements 120479968Sobrien to always fail with ENOSYS. Some functions are actually named 120579968Sobrien something starting with __ and the normal name is an alias. */ 120679968Sobrien#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 120779968Sobrienchoke me 120879968Sobrien#else 120979968Sobriengethostbyname(); 121079968Sobrien#endif 121179968Sobrien 121279968Sobrien; return 0; } 121379968SobrienEOF 121479968Sobrienif { (eval echo configure:1215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 121579968Sobrien rm -rf conftest* 121679968Sobrien eval "ac_cv_func_gethostbyname=yes" 121779968Sobrienelse 121879968Sobrien echo "configure: failed program was:" >&5 121979968Sobrien cat conftest.$ac_ext >&5 122079968Sobrien rm -rf conftest* 122179968Sobrien eval "ac_cv_func_gethostbyname=no" 122279968Sobrienfi 122379968Sobrienrm -f conftest* 122479968Sobrienfi 122579968Sobrien 122679968Sobrienif eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then 122779968Sobrien echo "$ac_t""yes" 1>&6 122879968Sobrien : 122979968Sobrienelse 123079968Sobrien echo "$ac_t""no" 1>&6 123179968Sobrien# Some OSes (eg. Solaris) place it in libnsl: 123279968Sobrien echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 123379968Sobrienecho "configure:1234: checking for gethostbyname in -lnsl" >&5 123479968Sobrienac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 123579968Sobrienif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 123679968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 123779968Sobrienelse 123879968Sobrien ac_save_LIBS="$LIBS" 123979968SobrienLIBS="-lnsl $LIBS" 124079968Sobriencat > conftest.$ac_ext <<EOF 124179968Sobrien#line 1242 "configure" 124279968Sobrien#include "confdefs.h" 124379968Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 124479968Sobrien/* We use char because int might match the return type of a gcc2 124579968Sobrien builtin and then its argument prototype would still apply. */ 124679968Sobrienchar gethostbyname(); 124779968Sobrien 124879968Sobrienint main() { 124979968Sobriengethostbyname() 125079968Sobrien; return 0; } 125179968SobrienEOF 125279968Sobrienif { (eval echo configure:1253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 125379968Sobrien rm -rf conftest* 125479968Sobrien eval "ac_cv_lib_$ac_lib_var=yes" 125579968Sobrienelse 125679968Sobrien echo "configure: failed program was:" >&5 125779968Sobrien cat conftest.$ac_ext >&5 125879968Sobrien rm -rf conftest* 125979968Sobrien eval "ac_cv_lib_$ac_lib_var=no" 126079968Sobrienfi 126179968Sobrienrm -f conftest* 126279968SobrienLIBS="$ac_save_LIBS" 126379968Sobrien 126479968Sobrienfi 126579968Sobrienif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 126679968Sobrien echo "$ac_t""yes" 1>&6 126779968Sobrien ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \ 126879968Sobrien -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 126979968Sobrien cat >> confdefs.h <<EOF 127079968Sobrien#define $ac_tr_lib 1 127179968SobrienEOF 127279968Sobrien 127379968Sobrien LIBS="-lnsl $LIBS" 127479968Sobrien 127579968Sobrienelse 127679968Sobrien echo "$ac_t""no" 1>&6 127779968Sobrien# Some strange OSes (SINIX) have it in libsocket: 127879968Sobrien echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6 127979968Sobrienecho "configure:1280: checking for gethostbyname in -lsocket" >&5 128079968Sobrienac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'` 128179968Sobrienif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 128279968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 128379968Sobrienelse 128479968Sobrien ac_save_LIBS="$LIBS" 128579968SobrienLIBS="-lsocket $LIBS" 128679968Sobriencat > conftest.$ac_ext <<EOF 128779968Sobrien#line 1288 "configure" 128879968Sobrien#include "confdefs.h" 128979968Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 129079968Sobrien/* We use char because int might match the return type of a gcc2 129179968Sobrien builtin and then its argument prototype would still apply. */ 129279968Sobrienchar gethostbyname(); 129379968Sobrien 129479968Sobrienint main() { 129579968Sobriengethostbyname() 129679968Sobrien; return 0; } 129779968SobrienEOF 129879968Sobrienif { (eval echo configure:1299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 129979968Sobrien rm -rf conftest* 130079968Sobrien eval "ac_cv_lib_$ac_lib_var=yes" 130179968Sobrienelse 130279968Sobrien echo "configure: failed program was:" >&5 130379968Sobrien cat conftest.$ac_ext >&5 130479968Sobrien rm -rf conftest* 130579968Sobrien eval "ac_cv_lib_$ac_lib_var=no" 130679968Sobrienfi 130779968Sobrienrm -f conftest* 130879968SobrienLIBS="$ac_save_LIBS" 130979968Sobrien 131079968Sobrienfi 131179968Sobrienif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 131279968Sobrien echo "$ac_t""yes" 1>&6 131379968Sobrien ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \ 131479968Sobrien -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 131579968Sobrien cat >> confdefs.h <<EOF 131679968Sobrien#define $ac_tr_lib 1 131779968SobrienEOF 131879968Sobrien 131979968Sobrien LIBS="-lsocket $LIBS" 132079968Sobrien 132179968Sobrienelse 132279968Sobrien echo "$ac_t""no" 1>&6 132379968Sobrien# Unfortunately libsocket sometimes depends on libnsl. 132479968Sobrien # AC_CHECK_LIB's API is essentially broken so the following 132579968Sobrien # ugliness is necessary: 132679968Sobrien echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6 132779968Sobrienecho "configure:1328: checking for gethostbyname in -lsocket" >&5 132879968Sobrienac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'` 132979968Sobrienif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 133079968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 133179968Sobrienelse 133279968Sobrien ac_save_LIBS="$LIBS" 133379968SobrienLIBS="-lsocket -lnsl $LIBS" 133479968Sobriencat > conftest.$ac_ext <<EOF 133579968Sobrien#line 1336 "configure" 133679968Sobrien#include "confdefs.h" 133779968Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 133879968Sobrien/* We use char because int might match the return type of a gcc2 133979968Sobrien builtin and then its argument prototype would still apply. */ 134079968Sobrienchar gethostbyname(); 134179968Sobrien 134279968Sobrienint main() { 134379968Sobriengethostbyname() 134479968Sobrien; return 0; } 134579968SobrienEOF 134679968Sobrienif { (eval echo configure:1347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 134779968Sobrien rm -rf conftest* 134879968Sobrien eval "ac_cv_lib_$ac_lib_var=yes" 134979968Sobrienelse 135079968Sobrien echo "configure: failed program was:" >&5 135179968Sobrien cat conftest.$ac_ext >&5 135279968Sobrien rm -rf conftest* 135379968Sobrien eval "ac_cv_lib_$ac_lib_var=no" 135479968Sobrienfi 135579968Sobrienrm -f conftest* 135679968SobrienLIBS="$ac_save_LIBS" 135779968Sobrien 135879968Sobrienfi 135979968Sobrienif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 136079968Sobrien echo "$ac_t""yes" 1>&6 136179968Sobrien LIBS="-lsocket -lnsl $LIBS" 136279968Sobrienelse 136379968Sobrien echo "$ac_t""no" 1>&6 136479968Sobrienecho $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6 136579968Sobrienecho "configure:1366: checking for gethostbyname in -lresolv" >&5 136679968Sobrienac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'` 136779968Sobrienif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 136879968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 136979968Sobrienelse 137079968Sobrien ac_save_LIBS="$LIBS" 137179968SobrienLIBS="-lresolv $LIBS" 137279968Sobriencat > conftest.$ac_ext <<EOF 137379968Sobrien#line 1374 "configure" 137479968Sobrien#include "confdefs.h" 137579968Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 137679968Sobrien/* We use char because int might match the return type of a gcc2 137779968Sobrien builtin and then its argument prototype would still apply. */ 137879968Sobrienchar gethostbyname(); 137979968Sobrien 138079968Sobrienint main() { 138179968Sobriengethostbyname() 138279968Sobrien; return 0; } 138379968SobrienEOF 138479968Sobrienif { (eval echo configure:1385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 138579968Sobrien rm -rf conftest* 138679968Sobrien eval "ac_cv_lib_$ac_lib_var=yes" 138779968Sobrienelse 138879968Sobrien echo "configure: failed program was:" >&5 138979968Sobrien cat conftest.$ac_ext >&5 139079968Sobrien rm -rf conftest* 139179968Sobrien eval "ac_cv_lib_$ac_lib_var=no" 139279968Sobrienfi 139379968Sobrienrm -f conftest* 139479968SobrienLIBS="$ac_save_LIBS" 139579968Sobrien 139679968Sobrienfi 139779968Sobrienif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 139879968Sobrien echo "$ac_t""yes" 1>&6 139979968Sobrien ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \ 140079968Sobrien -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 140179968Sobrien cat >> confdefs.h <<EOF 140279968Sobrien#define $ac_tr_lib 1 140379968SobrienEOF 140479968Sobrien 140579968Sobrien LIBS="-lresolv $LIBS" 140679968Sobrien 140779968Sobrienelse 140879968Sobrien echo "$ac_t""no" 1>&6 140979968Sobrienfi 141079968Sobrien 141179968Sobrienfi 141279968Sobrien 141379968Sobrien 141479968Sobrienfi 141579968Sobrien 141679968Sobrien 141779968Sobrienfi 141879968Sobrien 141979968Sobrien 142079968Sobrienfi 142179968Sobrien 142279968Sobrien echo $ac_n "checking for socket""... $ac_c" 1>&6 142379968Sobrienecho "configure:1424: checking for socket" >&5 142479968Sobrienif eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then 142579968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 142679968Sobrienelse 142779968Sobrien cat > conftest.$ac_ext <<EOF 142879968Sobrien#line 1429 "configure" 142979968Sobrien#include "confdefs.h" 143079968Sobrien/* System header to define __stub macros and hopefully few prototypes, 143179968Sobrien which can conflict with char socket(); below. */ 143279968Sobrien#include <assert.h> 143379968Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 143479968Sobrien/* We use char because int might match the return type of a gcc2 143579968Sobrien builtin and then its argument prototype would still apply. */ 143679968Sobrienchar socket(); 143779968Sobrien 143879968Sobrienint main() { 143979968Sobrien 144079968Sobrien/* The GNU C library defines this for functions which it implements 144179968Sobrien to always fail with ENOSYS. Some functions are actually named 144279968Sobrien something starting with __ and the normal name is an alias. */ 144379968Sobrien#if defined (__stub_socket) || defined (__stub___socket) 144479968Sobrienchoke me 144579968Sobrien#else 144679968Sobriensocket(); 144779968Sobrien#endif 144879968Sobrien 144979968Sobrien; return 0; } 145079968SobrienEOF 145179968Sobrienif { (eval echo configure:1452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 145279968Sobrien rm -rf conftest* 145379968Sobrien eval "ac_cv_func_socket=yes" 145479968Sobrienelse 145579968Sobrien echo "configure: failed program was:" >&5 145679968Sobrien cat conftest.$ac_ext >&5 145779968Sobrien rm -rf conftest* 145879968Sobrien eval "ac_cv_func_socket=no" 145979968Sobrienfi 146079968Sobrienrm -f conftest* 146179968Sobrienfi 146279968Sobrien 146379968Sobrienif eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 146479968Sobrien echo "$ac_t""yes" 1>&6 146579968Sobrien : 146679968Sobrienelse 146779968Sobrien echo "$ac_t""no" 1>&6 146879968Sobrienecho $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 146979968Sobrienecho "configure:1470: checking for socket in -lsocket" >&5 147079968Sobrienac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` 147179968Sobrienif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 147279968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 147379968Sobrienelse 147479968Sobrien ac_save_LIBS="$LIBS" 147579968SobrienLIBS="-lsocket $LIBS" 147679968Sobriencat > conftest.$ac_ext <<EOF 147779968Sobrien#line 1478 "configure" 147879968Sobrien#include "confdefs.h" 147979968Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 148079968Sobrien/* We use char because int might match the return type of a gcc2 148179968Sobrien builtin and then its argument prototype would still apply. */ 148279968Sobrienchar socket(); 148379968Sobrien 148479968Sobrienint main() { 148579968Sobriensocket() 148679968Sobrien; return 0; } 148779968SobrienEOF 148879968Sobrienif { (eval echo configure:1489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 148979968Sobrien rm -rf conftest* 149079968Sobrien eval "ac_cv_lib_$ac_lib_var=yes" 149179968Sobrienelse 149279968Sobrien echo "configure: failed program was:" >&5 149379968Sobrien cat conftest.$ac_ext >&5 149479968Sobrien rm -rf conftest* 149579968Sobrien eval "ac_cv_lib_$ac_lib_var=no" 149679968Sobrienfi 149779968Sobrienrm -f conftest* 149879968SobrienLIBS="$ac_save_LIBS" 149979968Sobrien 150079968Sobrienfi 150179968Sobrienif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 150279968Sobrien echo "$ac_t""yes" 1>&6 150379968Sobrien ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \ 150479968Sobrien -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 150579968Sobrien cat >> confdefs.h <<EOF 150679968Sobrien#define $ac_tr_lib 1 150779968SobrienEOF 150879968Sobrien 150979968Sobrien LIBS="-lsocket $LIBS" 151079968Sobrien 151179968Sobrienelse 151279968Sobrien echo "$ac_t""no" 1>&6 151379968Sobrienecho $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 151479968Sobrienecho "configure:1515: checking for socket in -lsocket" >&5 151579968Sobrienac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` 151679968Sobrienif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 151779968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 151879968Sobrienelse 151979968Sobrien ac_save_LIBS="$LIBS" 152079968SobrienLIBS="-lsocket -lnsl $LIBS" 152179968Sobriencat > conftest.$ac_ext <<EOF 152279968Sobrien#line 1523 "configure" 152379968Sobrien#include "confdefs.h" 152479968Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 152579968Sobrien/* We use char because int might match the return type of a gcc2 152679968Sobrien builtin and then its argument prototype would still apply. */ 152779968Sobrienchar socket(); 152879968Sobrien 152979968Sobrienint main() { 153079968Sobriensocket() 153179968Sobrien; return 0; } 153279968SobrienEOF 153379968Sobrienif { (eval echo configure:1534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 153479968Sobrien rm -rf conftest* 153579968Sobrien eval "ac_cv_lib_$ac_lib_var=yes" 153679968Sobrienelse 153779968Sobrien echo "configure: failed program was:" >&5 153879968Sobrien cat conftest.$ac_ext >&5 153979968Sobrien rm -rf conftest* 154079968Sobrien eval "ac_cv_lib_$ac_lib_var=no" 154179968Sobrienfi 154279968Sobrienrm -f conftest* 154379968SobrienLIBS="$ac_save_LIBS" 154479968Sobrien 154579968Sobrienfi 154679968Sobrienif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 154779968Sobrien echo "$ac_t""yes" 1>&6 154879968Sobrien LIBS="-lsocket -lnsl $LIBS" 154979968Sobrienelse 155079968Sobrien echo "$ac_t""no" 1>&6 155179968Sobrienfi 155279968Sobrien 155379968Sobrienfi 155479968Sobrien 155579968Sobrienfi 155679968Sobrien 155779968Sobrien 155879968Sobrien 155979968Sobrien echo $ac_n "checking whether to support SOCKS""... $ac_c" 1>&6 156079968Sobrienecho "configure:1561: checking whether to support SOCKS" >&5 156179968Sobrien # Check whether --with-socks or --without-socks was given. 156279968Sobrienif test "${with_socks+set}" = set; then 156379968Sobrien withval="$with_socks" 156479968Sobrien 156579968Sobrien case "$withval" in 156679968Sobrien no) 156779968Sobrien echo "$ac_t""no" 1>&6 156879968Sobrien ;; 156979968Sobrien yes) 157079968Sobrien echo "$ac_t""yes" 1>&6 157179968Sobrien echo $ac_n "checking for SOCKSconnect in -lsocks5""... $ac_c" 1>&6 157279968Sobrienecho "configure:1573: checking for SOCKSconnect in -lsocks5" >&5 157379968Sobrienac_lib_var=`echo socks5'_'SOCKSconnect | sed 'y%./+-%__p_%'` 157479968Sobrienif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 157579968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 157679968Sobrienelse 157779968Sobrien ac_save_LIBS="$LIBS" 157879968SobrienLIBS="-lsocks5 $LIBS" 157979968Sobriencat > conftest.$ac_ext <<EOF 158079968Sobrien#line 1581 "configure" 158179968Sobrien#include "confdefs.h" 158279968Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 158379968Sobrien/* We use char because int might match the return type of a gcc2 158479968Sobrien builtin and then its argument prototype would still apply. */ 158579968Sobrienchar SOCKSconnect(); 158679968Sobrien 158779968Sobrienint main() { 158879968SobrienSOCKSconnect() 158979968Sobrien; return 0; } 159079968SobrienEOF 159179968Sobrienif { (eval echo configure:1592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 159279968Sobrien rm -rf conftest* 159379968Sobrien eval "ac_cv_lib_$ac_lib_var=yes" 159479968Sobrienelse 159579968Sobrien echo "configure: failed program was:" >&5 159679968Sobrien cat conftest.$ac_ext >&5 159779968Sobrien rm -rf conftest* 159879968Sobrien eval "ac_cv_lib_$ac_lib_var=no" 159979968Sobrienfi 160079968Sobrienrm -f conftest* 160179968SobrienLIBS="$ac_save_LIBS" 160279968Sobrien 160379968Sobrienfi 160479968Sobrienif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 160579968Sobrien echo "$ac_t""yes" 1>&6 160679968Sobrien 160779968Sobrien socks=5 160879968Sobrien LIBS="-lsocks5 $LIBS" 160979968Sobrienelse 161079968Sobrien echo "$ac_t""no" 1>&6 161179968Sobrien 161279968Sobrien echo $ac_n "checking for Rconnect in -lsocks""... $ac_c" 1>&6 161379968Sobrienecho "configure:1614: checking for Rconnect in -lsocks" >&5 161479968Sobrienac_lib_var=`echo socks'_'Rconnect | sed 'y%./+-%__p_%'` 161579968Sobrienif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 161679968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 161779968Sobrienelse 161879968Sobrien ac_save_LIBS="$LIBS" 161979968SobrienLIBS="-lsocks $LIBS" 162079968Sobriencat > conftest.$ac_ext <<EOF 162179968Sobrien#line 1622 "configure" 162279968Sobrien#include "confdefs.h" 162379968Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 162479968Sobrien/* We use char because int might match the return type of a gcc2 162579968Sobrien builtin and then its argument prototype would still apply. */ 162679968Sobrienchar Rconnect(); 162779968Sobrien 162879968Sobrienint main() { 162979968SobrienRconnect() 163079968Sobrien; return 0; } 163179968SobrienEOF 163279968Sobrienif { (eval echo configure:1633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 163379968Sobrien rm -rf conftest* 163479968Sobrien eval "ac_cv_lib_$ac_lib_var=yes" 163579968Sobrienelse 163679968Sobrien echo "configure: failed program was:" >&5 163779968Sobrien cat conftest.$ac_ext >&5 163879968Sobrien rm -rf conftest* 163979968Sobrien eval "ac_cv_lib_$ac_lib_var=no" 164079968Sobrienfi 164179968Sobrienrm -f conftest* 164279968SobrienLIBS="$ac_save_LIBS" 164379968Sobrien 164479968Sobrienfi 164579968Sobrienif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 164679968Sobrien echo "$ac_t""yes" 1>&6 164779968Sobrien 164879968Sobrien socks=4 164979968Sobrien LIBS="-lsocks $LIBS" 165079968Sobrienelse 165179968Sobrien echo "$ac_t""no" 1>&6 165279968Sobrien 165379968Sobrien { echo "configure: error: Could not find socks library. You must first install socks." 1>&2; exit 1; } 165479968Sobrienfi 165579968Sobrien 165679968Sobrienfi 165779968Sobrien 165879968Sobrien ;; 165979968Sobrien esac 166079968Sobrien 166179968Sobrienelse 166279968Sobrien echo "$ac_t""no" 1>&6 166379968Sobrien 166479968Sobrienfi 166579968Sobrien 166679968Sobrien 166779968Sobrien if test "x$socks" = "x"; then 166879968Sobrien echo $ac_n "checking whether to support SOCKS5""... $ac_c" 1>&6 166979968Sobrienecho "configure:1670: checking whether to support SOCKS5" >&5 167079968Sobrien # Check whether --with-socks5 or --without-socks5 was given. 167179968Sobrienif test "${with_socks5+set}" = set; then 167279968Sobrien withval="$with_socks5" 167379968Sobrien 167479968Sobrien case "$withval" in 167579968Sobrien no) 167679968Sobrien echo "$ac_t""no" 1>&6 167779968Sobrien ;; 167879968Sobrien *) 167979968Sobrien echo "$ac_t""yes" 1>&6 168079968Sobrien socks=5 168179968Sobrien if test "x$withval" = "xyes"; then 168279968Sobrien withval="-lsocks5" 168379968Sobrien else 168479968Sobrien if test -d "$withval"; then 168579968Sobrien if test -d "$withval/include"; then 168679968Sobrien CFLAGS="$CFLAGS -I$withval/include" 168779968Sobrien else 168879968Sobrien CFLAGS="$CFLAGS -I$withval" 168979968Sobrien fi 169079968Sobrien if test -d "$withval/lib"; then 169179968Sobrien withval="-L$withval/lib -lsocks5" 169279968Sobrien else 169379968Sobrien withval="-L$withval -lsocks5" 169479968Sobrien fi 169579968Sobrien fi 169679968Sobrien fi 169779968Sobrien LIBS="$withval $LIBS" 169879968Sobrien # If Socks was compiled with Kerberos support, we will need 169979968Sobrien # to link against kerberos libraries. Temporarily append 170079968Sobrien # to LIBS. This is harmless if there is no kerberos support. 170179968Sobrien TMPLIBS="$LIBS" 170279968Sobrien LIBS="$LIBS $KERBEROS_LIBS" 170379968Sobrien cat > conftest.$ac_ext <<EOF 170479968Sobrien#line 1705 "configure" 170579968Sobrien#include "confdefs.h" 170679968Sobrien 170779968Sobrienint main() { 170879968Sobrien SOCKSconnect(); 170979968Sobrien; return 0; } 171079968SobrienEOF 171179968Sobrienif { (eval echo configure:1712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 171279968Sobrien : 171379968Sobrienelse 171479968Sobrien echo "configure: failed program was:" >&5 171579968Sobrien cat conftest.$ac_ext >&5 171679968Sobrien rm -rf conftest* 171779968Sobrien { echo "configure: error: Could not find the $withval library. You must first install socks5." 1>&2; exit 1; } 171879968Sobrienfi 171979968Sobrienrm -f conftest* 172079968Sobrien LIBS="$TMPLIBS" 172179968Sobrien ;; 172279968Sobrien esac 172379968Sobrien 172479968Sobrienelse 172579968Sobrien echo "$ac_t""no" 1>&6 172679968Sobrien 172779968Sobrienfi 172879968Sobrien 172979968Sobrien fi 173079968Sobrien 173179968Sobrien if test "x$socks" = "x"; then 173279968Sobrien echo $ac_n "checking whether to support SOCKS4""... $ac_c" 1>&6 173379968Sobrienecho "configure:1734: checking whether to support SOCKS4" >&5 173479968Sobrien # Check whether --with-socks4 or --without-socks4 was given. 173579968Sobrienif test "${with_socks4+set}" = set; then 173679968Sobrien withval="$with_socks4" 173779968Sobrien 173879968Sobrien case "$withval" in 173979968Sobrien no) 174079968Sobrien echo "$ac_t""no" 1>&6 174179968Sobrien ;; 174279968Sobrien *) 174379968Sobrien echo "$ac_t""yes" 1>&6 174479968Sobrien socks=4 174579968Sobrien if test "x$withval" = "xyes"; then 174679968Sobrien withval="-lsocks" 174779968Sobrien else 174879968Sobrien if test -d "$withval"; then 174979968Sobrien withval="-L$withval -lsocks" 175079968Sobrien fi 175179968Sobrien fi 175279968Sobrien LIBS="$withval $LIBS" 175379968Sobrien cat > conftest.$ac_ext <<EOF 175479968Sobrien#line 1755 "configure" 175579968Sobrien#include "confdefs.h" 175679968Sobrien 175779968Sobrienint main() { 175879968Sobrien Rconnect(); 175979968Sobrien; return 0; } 176079968SobrienEOF 176179968Sobrienif { (eval echo configure:1762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 176279968Sobrien : 176379968Sobrienelse 176479968Sobrien echo "configure: failed program was:" >&5 176579968Sobrien cat conftest.$ac_ext >&5 176679968Sobrien rm -rf conftest* 176779968Sobrien { echo "configure: error: Could not find the $withval library. You must first install socks." 1>&2; exit 1; } 176879968Sobrienfi 176979968Sobrienrm -f conftest* 177079968Sobrien ;; 177179968Sobrien esac 177279968Sobrien 177379968Sobrienelse 177479968Sobrien echo "$ac_t""no" 1>&6 177579968Sobrien 177679968Sobrienfi 177779968Sobrien 177879968Sobrien fi 177979968Sobrien 178079968Sobrien if test "x$socks" = "x4"; then 178179968Sobrien cat >> confdefs.h <<\EOF 178279968Sobrien#define SOCKS 1 178379968SobrienEOF 178479968Sobrien 178579968Sobrien cat >> confdefs.h <<\EOF 178679968Sobrien#define SOCKS4 1 178779968SobrienEOF 178879968Sobrien 178979968Sobrien cat >> confdefs.h <<\EOF 179079968Sobrien#define connect Rconnect 179179968SobrienEOF 179279968Sobrien 179379968Sobrien cat >> confdefs.h <<\EOF 179479968Sobrien#define getsockname Rgetsockname 179579968SobrienEOF 179679968Sobrien 179779968Sobrien cat >> confdefs.h <<\EOF 179879968Sobrien#define bind Rbind 179979968SobrienEOF 180079968Sobrien 180179968Sobrien cat >> confdefs.h <<\EOF 180279968Sobrien#define accept Raccept 180379968SobrienEOF 180479968Sobrien 180579968Sobrien cat >> confdefs.h <<\EOF 180679968Sobrien#define listen Rlisten 180779968SobrienEOF 180879968Sobrien 180979968Sobrien cat >> confdefs.h <<\EOF 181079968Sobrien#define select Rselect 181179968SobrienEOF 181279968Sobrien 181379968Sobrien fi 181479968Sobrien 181579968Sobrien if test "x$socks" = "x5"; then 181679968Sobrien cat >> confdefs.h <<\EOF 181779968Sobrien#define SOCKS 1 181879968SobrienEOF 181979968Sobrien 182079968Sobrien cat >> confdefs.h <<\EOF 182179968Sobrien#define SOCKS5 1 182279968SobrienEOF 182379968Sobrien 182479968Sobrien cat >> confdefs.h <<\EOF 182579968Sobrien#define connect SOCKSconnect 182679968SobrienEOF 182779968Sobrien 182879968Sobrien cat >> confdefs.h <<\EOF 182979968Sobrien#define getsockname SOCKSgetsockname 183079968SobrienEOF 183179968Sobrien 183279968Sobrien cat >> confdefs.h <<\EOF 183379968Sobrien#define getpeername SOCKSgetpeername 183479968SobrienEOF 183579968Sobrien 183679968Sobrien cat >> confdefs.h <<\EOF 183779968Sobrien#define bind SOCKSbind 183879968SobrienEOF 183979968Sobrien 184079968Sobrien cat >> confdefs.h <<\EOF 184179968Sobrien#define accept SOCKSaccept 184279968SobrienEOF 184379968Sobrien 184479968Sobrien cat >> confdefs.h <<\EOF 184579968Sobrien#define listen SOCKSlisten 184679968SobrienEOF 184779968Sobrien 184879968Sobrien cat >> confdefs.h <<\EOF 184979968Sobrien#define select SOCKSselect 185079968SobrienEOF 185179968Sobrien 185279968Sobrien cat >> confdefs.h <<\EOF 185379968Sobrien#define recvfrom SOCKSrecvfrom 185479968SobrienEOF 185579968Sobrien 185679968Sobrien cat >> confdefs.h <<\EOF 185779968Sobrien#define sendto SOCKSsendto 185879968SobrienEOF 185979968Sobrien 186079968Sobrien cat >> confdefs.h <<\EOF 186179968Sobrien#define recv SOCKSrecv 186279968SobrienEOF 186379968Sobrien 186479968Sobrien cat >> confdefs.h <<\EOF 186579968Sobrien#define send SOCKSsend 186679968SobrienEOF 186779968Sobrien 186879968Sobrien cat >> confdefs.h <<\EOF 186979968Sobrien#define read SOCKSread 187079968SobrienEOF 187179968Sobrien 187279968Sobrien cat >> confdefs.h <<\EOF 187379968Sobrien#define write SOCKSwrite 187479968SobrienEOF 187579968Sobrien 187679968Sobrien cat >> confdefs.h <<\EOF 187779968Sobrien#define rresvport SOCKSrresvport 187879968SobrienEOF 187979968Sobrien 188079968Sobrien cat >> confdefs.h <<\EOF 188179968Sobrien#define shutdown SOCKSshutdown 188279968SobrienEOF 188379968Sobrien 188479968Sobrien cat >> confdefs.h <<\EOF 188579968Sobrien#define listen SOCKSlisten 188679968SobrienEOF 188779968Sobrien 188879968Sobrien cat >> confdefs.h <<\EOF 188979968Sobrien#define close SOCKSclose 189079968SobrienEOF 189179968Sobrien 189279968Sobrien cat >> confdefs.h <<\EOF 189379968Sobrien#define dup SOCKSdup 189479968SobrienEOF 189579968Sobrien 189679968Sobrien cat >> confdefs.h <<\EOF 189779968Sobrien#define dup2 SOCKSdup2 189879968SobrienEOF 189979968Sobrien 190079968Sobrien cat >> confdefs.h <<\EOF 190179968Sobrien#define fclose SOCKSfclose 190279968SobrienEOF 190379968Sobrien 190479968Sobrien cat >> confdefs.h <<\EOF 190579968Sobrien#define gethostbyname SOCKSgethostbyname 190679968SobrienEOF 190779968Sobrien 190879968Sobrien fi 190979968Sobrien 191079968Sobrienif test -n "$socks"; then 191179968Sobrien if test $opt_ipv6 = yes; then 191279968Sobrien echo "IPv6 is incompatible with socks, disabling IPv6 support" 191379968Sobrien opt_ipv6=no 191479968Sobrien fi 191579968Sobrienfi 191679968Sobrien# Check whether --with-skey or --without-skey was given. 191779968Sobrienif test "${with_skey+set}" = set; then 191879968Sobrien withval="$with_skey" 191979968Sobrien if test $withval = yes; then 192079968Sobrien echo $ac_n "checking for skey_haskey in -lskey""... $ac_c" 1>&6 192179968Sobrienecho "configure:1922: checking for skey_haskey in -lskey" >&5 192279968Sobrienac_lib_var=`echo skey'_'skey_haskey | sed 'y%./+-%__p_%'` 192379968Sobrienif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 192479968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 192579968Sobrienelse 192679968Sobrien ac_save_LIBS="$LIBS" 192779968SobrienLIBS="-lskey $LIBS" 192879968Sobriencat > conftest.$ac_ext <<EOF 192979968Sobrien#line 1930 "configure" 193079968Sobrien#include "confdefs.h" 193179968Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 193279968Sobrien/* We use char because int might match the return type of a gcc2 193379968Sobrien builtin and then its argument prototype would still apply. */ 193479968Sobrienchar skey_haskey(); 193579968Sobrien 193679968Sobrienint main() { 193779968Sobrienskey_haskey() 193879968Sobrien; return 0; } 193979968SobrienEOF 194079968Sobrienif { (eval echo configure:1941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 194179968Sobrien rm -rf conftest* 194279968Sobrien eval "ac_cv_lib_$ac_lib_var=yes" 194379968Sobrienelse 194479968Sobrien echo "configure: failed program was:" >&5 194579968Sobrien cat conftest.$ac_ext >&5 194679968Sobrien rm -rf conftest* 194779968Sobrien eval "ac_cv_lib_$ac_lib_var=no" 194879968Sobrienfi 194979968Sobrienrm -f conftest* 195079968SobrienLIBS="$ac_save_LIBS" 195179968Sobrien 195279968Sobrienfi 195379968Sobrienif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 195479968Sobrien echo "$ac_t""yes" 1>&6 195579968Sobrien ac_tr_lib=HAVE_LIB`echo skey | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 195679968Sobrien -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 195779968Sobrien cat >> confdefs.h <<EOF 195879968Sobrien#define $ac_tr_lib 1 195979968SobrienEOF 196079968Sobrien 196179968Sobrien LIBS="-lskey $LIBS" 196279968Sobrien 196379968Sobrienelse 196479968Sobrien echo "$ac_t""no" 1>&6 196579968Sobrienfi 196679968Sobrien 196779968Sobrien fi 196879968Sobrienfi 196979968Sobrien 197079968Sobrienecho $ac_n "checking whether to support S/Key""... $ac_c" 1>&6 197179968Sobrienecho "configure:1972: checking whether to support S/Key" >&5 197279968Sobrienif test x"$ac_cv_lib_skey_skey_haskey" = "xyes"; then 197379968Sobrien echo "$ac_t""yes" 1>&6 197479968Sobrien cat >> confdefs.h <<\EOF 197579968Sobrien#define SKEY 1 197679968SobrienEOF 197779968Sobrien 197879968Sobrienelse 197979968Sobrien echo "$ac_t""no" 1>&6 198079968Sobrienfi 198179968Sobrien 198279968Sobrien 198379968Sobrien 198479968Sobrienac_header_dirent=no 198579968Sobrienfor ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h 198679968Sobriendo 198779968Sobrienac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 198879968Sobrienecho $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 198979968Sobrienecho "configure:1990: checking for $ac_hdr that defines DIR" >&5 199079968Sobrienif eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then 199179968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 199279968Sobrienelse 199379968Sobrien cat > conftest.$ac_ext <<EOF 199479968Sobrien#line 1995 "configure" 199579968Sobrien#include "confdefs.h" 199679968Sobrien#include <sys/types.h> 199779968Sobrien#include <$ac_hdr> 199879968Sobrienint main() { 199979968SobrienDIR *dirp = 0; 200079968Sobrien; return 0; } 200179968SobrienEOF 200279968Sobrienif { (eval echo configure:2003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 200379968Sobrien rm -rf conftest* 200479968Sobrien eval "ac_cv_header_dirent_$ac_safe=yes" 200579968Sobrienelse 200679968Sobrien echo "configure: failed program was:" >&5 200779968Sobrien cat conftest.$ac_ext >&5 200879968Sobrien rm -rf conftest* 200979968Sobrien eval "ac_cv_header_dirent_$ac_safe=no" 201079968Sobrienfi 201179968Sobrienrm -f conftest* 201279968Sobrienfi 201379968Sobrienif eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then 201479968Sobrien echo "$ac_t""yes" 1>&6 201579968Sobrien ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 201679968Sobrien cat >> confdefs.h <<EOF 201779968Sobrien#define $ac_tr_hdr 1 201879968SobrienEOF 201979968Sobrien ac_header_dirent=$ac_hdr; break 202079968Sobrienelse 202179968Sobrien echo "$ac_t""no" 1>&6 202279968Sobrienfi 202379968Sobriendone 202479968Sobrien# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 202579968Sobrienif test $ac_header_dirent = dirent.h; then 202679968Sobrienecho $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 202779968Sobrienecho "configure:2028: checking for opendir in -ldir" >&5 202879968Sobrienac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` 202979968Sobrienif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 203079968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 203179968Sobrienelse 203279968Sobrien ac_save_LIBS="$LIBS" 203379968SobrienLIBS="-ldir $LIBS" 203479968Sobriencat > conftest.$ac_ext <<EOF 203579968Sobrien#line 2036 "configure" 203679968Sobrien#include "confdefs.h" 203779968Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 203879968Sobrien/* We use char because int might match the return type of a gcc2 203979968Sobrien builtin and then its argument prototype would still apply. */ 204079968Sobrienchar opendir(); 204179968Sobrien 204279968Sobrienint main() { 204379968Sobrienopendir() 204479968Sobrien; return 0; } 204579968SobrienEOF 204679968Sobrienif { (eval echo configure:2047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 204779968Sobrien rm -rf conftest* 204879968Sobrien eval "ac_cv_lib_$ac_lib_var=yes" 204979968Sobrienelse 205079968Sobrien echo "configure: failed program was:" >&5 205179968Sobrien cat conftest.$ac_ext >&5 205279968Sobrien rm -rf conftest* 205379968Sobrien eval "ac_cv_lib_$ac_lib_var=no" 205479968Sobrienfi 205579968Sobrienrm -f conftest* 205679968SobrienLIBS="$ac_save_LIBS" 205779968Sobrien 205879968Sobrienfi 205979968Sobrienif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 206079968Sobrien echo "$ac_t""yes" 1>&6 206179968Sobrien LIBS="$LIBS -ldir" 206279968Sobrienelse 206379968Sobrien echo "$ac_t""no" 1>&6 206479968Sobrienfi 206579968Sobrien 206679968Sobrienelse 206779968Sobrienecho $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 206879968Sobrienecho "configure:2069: checking for opendir in -lx" >&5 206979968Sobrienac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` 207079968Sobrienif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 207179968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 207279968Sobrienelse 207379968Sobrien ac_save_LIBS="$LIBS" 207479968SobrienLIBS="-lx $LIBS" 207579968Sobriencat > conftest.$ac_ext <<EOF 207679968Sobrien#line 2077 "configure" 207779968Sobrien#include "confdefs.h" 207879968Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 207979968Sobrien/* We use char because int might match the return type of a gcc2 208079968Sobrien builtin and then its argument prototype would still apply. */ 208179968Sobrienchar opendir(); 208279968Sobrien 208379968Sobrienint main() { 208479968Sobrienopendir() 208579968Sobrien; return 0; } 208679968SobrienEOF 208779968Sobrienif { (eval echo configure:2088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 208879968Sobrien rm -rf conftest* 208979968Sobrien eval "ac_cv_lib_$ac_lib_var=yes" 209079968Sobrienelse 209179968Sobrien echo "configure: failed program was:" >&5 209279968Sobrien cat conftest.$ac_ext >&5 209379968Sobrien rm -rf conftest* 209479968Sobrien eval "ac_cv_lib_$ac_lib_var=no" 209579968Sobrienfi 209679968Sobrienrm -f conftest* 209779968SobrienLIBS="$ac_save_LIBS" 209879968Sobrien 209979968Sobrienfi 210079968Sobrienif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 210179968Sobrien echo "$ac_t""yes" 1>&6 210279968Sobrien LIBS="$LIBS -lx" 210379968Sobrienelse 210479968Sobrien echo "$ac_t""no" 1>&6 210579968Sobrienfi 210679968Sobrien 210779968Sobrienfi 210879968Sobrien 210979968Sobrienecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 211079968Sobrienecho "configure:2111: checking how to run the C preprocessor" >&5 211179968Sobrien# On Suns, sometimes $CPP names a directory. 211279968Sobrienif test -n "$CPP" && test -d "$CPP"; then 211379968Sobrien CPP= 211479968Sobrienfi 211579968Sobrienif test -z "$CPP"; then 211679968Sobrienif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 211779968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 211879968Sobrienelse 211979968Sobrien # This must be in double quotes, not single quotes, because CPP may get 212079968Sobrien # substituted into the Makefile and "${CC-cc}" will confuse make. 212179968Sobrien CPP="${CC-cc} -E" 212279968Sobrien # On the NeXT, cc -E runs the code through the compiler's parser, 212379968Sobrien # not just through cpp. 212479968Sobrien cat > conftest.$ac_ext <<EOF 212579968Sobrien#line 2126 "configure" 212679968Sobrien#include "confdefs.h" 212779968Sobrien#include <assert.h> 212879968SobrienSyntax Error 212979968SobrienEOF 213079968Sobrienac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 213179968Sobrien{ (eval echo configure:2132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 213279968Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 213379968Sobrienif test -z "$ac_err"; then 213479968Sobrien : 213579968Sobrienelse 213679968Sobrien echo "$ac_err" >&5 213779968Sobrien echo "configure: failed program was:" >&5 213879968Sobrien cat conftest.$ac_ext >&5 213979968Sobrien rm -rf conftest* 214079968Sobrien CPP="${CC-cc} -E -traditional-cpp" 214179968Sobrien cat > conftest.$ac_ext <<EOF 214279968Sobrien#line 2143 "configure" 214379968Sobrien#include "confdefs.h" 214479968Sobrien#include <assert.h> 214579968SobrienSyntax Error 214679968SobrienEOF 214779968Sobrienac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 214879968Sobrien{ (eval echo configure:2149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 214979968Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 215079968Sobrienif test -z "$ac_err"; then 215179968Sobrien : 215279968Sobrienelse 215379968Sobrien echo "$ac_err" >&5 215479968Sobrien echo "configure: failed program was:" >&5 215579968Sobrien cat conftest.$ac_ext >&5 215679968Sobrien rm -rf conftest* 215779968Sobrien CPP="${CC-cc} -nologo -E" 215879968Sobrien cat > conftest.$ac_ext <<EOF 215979968Sobrien#line 2160 "configure" 216079968Sobrien#include "confdefs.h" 216179968Sobrien#include <assert.h> 216279968SobrienSyntax Error 216379968SobrienEOF 216479968Sobrienac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 216579968Sobrien{ (eval echo configure:2166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 216679968Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 216779968Sobrienif test -z "$ac_err"; then 216879968Sobrien : 216979968Sobrienelse 217079968Sobrien echo "$ac_err" >&5 217179968Sobrien echo "configure: failed program was:" >&5 217279968Sobrien cat conftest.$ac_ext >&5 217379968Sobrien rm -rf conftest* 217479968Sobrien CPP=/lib/cpp 217579968Sobrienfi 217679968Sobrienrm -f conftest* 217779968Sobrienfi 217879968Sobrienrm -f conftest* 217979968Sobrienfi 218079968Sobrienrm -f conftest* 218179968Sobrien ac_cv_prog_CPP="$CPP" 218279968Sobrienfi 218379968Sobrien CPP="$ac_cv_prog_CPP" 218479968Sobrienelse 218579968Sobrien ac_cv_prog_CPP="$CPP" 218679968Sobrienfi 218779968Sobrienecho "$ac_t""$CPP" 1>&6 218879968Sobrien 218979968Sobrienecho $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 219079968Sobrienecho "configure:2191: checking for ANSI C header files" >&5 219179968Sobrienif eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 219279968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 219379968Sobrienelse 219479968Sobrien cat > conftest.$ac_ext <<EOF 219579968Sobrien#line 2196 "configure" 219679968Sobrien#include "confdefs.h" 219779968Sobrien#include <stdlib.h> 219879968Sobrien#include <stdarg.h> 219979968Sobrien#include <string.h> 220079968Sobrien#include <float.h> 220179968SobrienEOF 220279968Sobrienac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 220379968Sobrien{ (eval echo configure:2204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 220479968Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 220579968Sobrienif test -z "$ac_err"; then 220679968Sobrien rm -rf conftest* 220779968Sobrien ac_cv_header_stdc=yes 220879968Sobrienelse 220979968Sobrien echo "$ac_err" >&5 221079968Sobrien echo "configure: failed program was:" >&5 221179968Sobrien cat conftest.$ac_ext >&5 221279968Sobrien rm -rf conftest* 221379968Sobrien ac_cv_header_stdc=no 221479968Sobrienfi 221579968Sobrienrm -f conftest* 221679968Sobrien 221779968Sobrienif test $ac_cv_header_stdc = yes; then 221879968Sobrien # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 221979968Sobriencat > conftest.$ac_ext <<EOF 222079968Sobrien#line 2221 "configure" 222179968Sobrien#include "confdefs.h" 222279968Sobrien#include <string.h> 222379968SobrienEOF 222479968Sobrienif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 222579968Sobrien egrep "memchr" >/dev/null 2>&1; then 222679968Sobrien : 222779968Sobrienelse 222879968Sobrien rm -rf conftest* 222979968Sobrien ac_cv_header_stdc=no 223079968Sobrienfi 223179968Sobrienrm -f conftest* 223279968Sobrien 223379968Sobrienfi 223479968Sobrien 223579968Sobrienif test $ac_cv_header_stdc = yes; then 223679968Sobrien # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 223779968Sobriencat > conftest.$ac_ext <<EOF 223879968Sobrien#line 2239 "configure" 223979968Sobrien#include "confdefs.h" 224079968Sobrien#include <stdlib.h> 224179968SobrienEOF 224279968Sobrienif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 224379968Sobrien egrep "free" >/dev/null 2>&1; then 224479968Sobrien : 224579968Sobrienelse 224679968Sobrien rm -rf conftest* 224779968Sobrien ac_cv_header_stdc=no 224879968Sobrienfi 224979968Sobrienrm -f conftest* 225079968Sobrien 225179968Sobrienfi 225279968Sobrien 225379968Sobrienif test $ac_cv_header_stdc = yes; then 225479968Sobrien # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 225579968Sobrienif test "$cross_compiling" = yes; then 225679968Sobrien : 225779968Sobrienelse 225879968Sobrien cat > conftest.$ac_ext <<EOF 225979968Sobrien#line 2260 "configure" 226079968Sobrien#include "confdefs.h" 226179968Sobrien#include <ctype.h> 226279968Sobrien#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 226379968Sobrien#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 226479968Sobrien#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 226579968Sobrienint main () { int i; for (i = 0; i < 256; i++) 226679968Sobrienif (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 226779968Sobrienexit (0); } 226879968Sobrien 226979968SobrienEOF 227079968Sobrienif { (eval echo configure:2271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 227179968Sobrienthen 227279968Sobrien : 227379968Sobrienelse 227479968Sobrien echo "configure: failed program was:" >&5 227579968Sobrien cat conftest.$ac_ext >&5 227679968Sobrien rm -fr conftest* 227779968Sobrien ac_cv_header_stdc=no 227879968Sobrienfi 227979968Sobrienrm -fr conftest* 228079968Sobrienfi 228179968Sobrien 228279968Sobrienfi 228379968Sobrienfi 228479968Sobrien 228579968Sobrienecho "$ac_t""$ac_cv_header_stdc" 1>&6 228679968Sobrienif test $ac_cv_header_stdc = yes; then 228779968Sobrien cat >> confdefs.h <<\EOF 228879968Sobrien#define STDC_HEADERS 1 228979968SobrienEOF 229079968Sobrien 229179968Sobrienfi 229279968Sobrien 229379968Sobrienfor ac_hdr in arpa/nameser.h err.h fts.h libutil.h paths.h \ 229479968Sobrien sys/sysmacros.h util.h 229579968Sobriendo 229679968Sobrienac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 229779968Sobrienecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 229879968Sobrienecho "configure:2299: checking for $ac_hdr" >&5 229979968Sobrienif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 230079968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 230179968Sobrienelse 230279968Sobrien cat > conftest.$ac_ext <<EOF 230379968Sobrien#line 2304 "configure" 230479968Sobrien#include "confdefs.h" 230579968Sobrien#include <$ac_hdr> 230679968SobrienEOF 230779968Sobrienac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 230879968Sobrien{ (eval echo configure:2309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 230979968Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 231079968Sobrienif test -z "$ac_err"; then 231179968Sobrien rm -rf conftest* 231279968Sobrien eval "ac_cv_header_$ac_safe=yes" 231379968Sobrienelse 231479968Sobrien echo "$ac_err" >&5 231579968Sobrien echo "configure: failed program was:" >&5 231679968Sobrien cat conftest.$ac_ext >&5 231779968Sobrien rm -rf conftest* 231879968Sobrien eval "ac_cv_header_$ac_safe=no" 231979968Sobrienfi 232079968Sobrienrm -f conftest* 232179968Sobrienfi 232279968Sobrienif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 232379968Sobrien echo "$ac_t""yes" 1>&6 232479968Sobrien ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 232579968Sobrien cat >> confdefs.h <<EOF 232679968Sobrien#define $ac_tr_hdr 1 232779968SobrienEOF 232879968Sobrien 232979968Sobrienelse 233079968Sobrien echo "$ac_t""no" 1>&6 233179968Sobrienfi 233279968Sobriendone 233379968Sobrien 233479968Sobrien 233579968Sobrien 233679968Sobrienecho $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 233779968Sobrienecho "configure:2338: checking whether time.h and sys/time.h may both be included" >&5 233879968Sobrienif eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 233979968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 234079968Sobrienelse 234179968Sobrien cat > conftest.$ac_ext <<EOF 234279968Sobrien#line 2343 "configure" 234379968Sobrien#include "confdefs.h" 234479968Sobrien#include <sys/types.h> 234579968Sobrien#include <sys/time.h> 234679968Sobrien#include <time.h> 234779968Sobrienint main() { 234879968Sobrienstruct tm *tp; 234979968Sobrien; return 0; } 235079968SobrienEOF 235179968Sobrienif { (eval echo configure:2352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 235279968Sobrien rm -rf conftest* 235379968Sobrien ac_cv_header_time=yes 235479968Sobrienelse 235579968Sobrien echo "configure: failed program was:" >&5 235679968Sobrien cat conftest.$ac_ext >&5 235779968Sobrien rm -rf conftest* 235879968Sobrien ac_cv_header_time=no 235979968Sobrienfi 236079968Sobrienrm -f conftest* 236179968Sobrienfi 236279968Sobrien 236379968Sobrienecho "$ac_t""$ac_cv_header_time" 1>&6 236479968Sobrienif test $ac_cv_header_time = yes; then 236579968Sobrien cat >> confdefs.h <<\EOF 236679968Sobrien#define TIME_WITH_SYS_TIME 1 236779968SobrienEOF 236879968Sobrien 236979968Sobrienfi 237079968Sobrien 237179968Sobrienecho $ac_n "checking for off_t""... $ac_c" 1>&6 237279968Sobrienecho "configure:2373: checking for off_t" >&5 237379968Sobrienif eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then 237479968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 237579968Sobrienelse 237679968Sobrien cat > conftest.$ac_ext <<EOF 237779968Sobrien#line 2378 "configure" 237879968Sobrien#include "confdefs.h" 237979968Sobrien#include <sys/types.h> 238079968Sobrien#if STDC_HEADERS 238179968Sobrien#include <stdlib.h> 238279968Sobrien#include <stddef.h> 238379968Sobrien#endif 238479968SobrienEOF 238579968Sobrienif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 238679968Sobrien egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 238779968Sobrien rm -rf conftest* 238879968Sobrien ac_cv_type_off_t=yes 238979968Sobrienelse 239079968Sobrien rm -rf conftest* 239179968Sobrien ac_cv_type_off_t=no 239279968Sobrienfi 239379968Sobrienrm -f conftest* 239479968Sobrien 239579968Sobrienfi 239679968Sobrienecho "$ac_t""$ac_cv_type_off_t" 1>&6 239779968Sobrienif test $ac_cv_type_off_t = no; then 239879968Sobrien cat >> confdefs.h <<\EOF 239979968Sobrien#define off_t long 240079968SobrienEOF 240179968Sobrien 240279968Sobrienfi 240379968Sobrien 240479968Sobrienecho $ac_n "checking size of off_t""... $ac_c" 1>&6 240579968Sobrienecho "configure:2406: checking size of off_t" >&5 240679968Sobrienif eval "test \"`echo '$''{'ac_cv_sizeof_off_t'+set}'`\" = set"; then 240779968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 240879968Sobrienelse 240979968Sobrien if test "$cross_compiling" = yes; then 241079968Sobrien ac_cv_sizeof_off_t=0 241179968Sobrienelse 241279968Sobrien cat > conftest.$ac_ext <<EOF 241379968Sobrien#line 2414 "configure" 241479968Sobrien#include "confdefs.h" 241579968Sobrien#include <stdio.h> 241679968Sobrienmain() 241779968Sobrien{ 241879968Sobrien FILE *f=fopen("conftestval", "w"); 241979968Sobrien if (!f) exit(1); 242079968Sobrien fprintf(f, "%d\n", sizeof(off_t)); 242179968Sobrien exit(0); 242279968Sobrien} 242379968SobrienEOF 242479968Sobrienif { (eval echo configure:2425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 242579968Sobrienthen 242679968Sobrien ac_cv_sizeof_off_t=`cat conftestval` 242779968Sobrienelse 242879968Sobrien echo "configure: failed program was:" >&5 242979968Sobrien cat conftest.$ac_ext >&5 243079968Sobrien rm -fr conftest* 243179968Sobrien ac_cv_sizeof_off_t=0 243279968Sobrienfi 243379968Sobrienrm -fr conftest* 243479968Sobrienfi 243579968Sobrien 243679968Sobrienfi 243779968Sobrienecho "$ac_t""$ac_cv_sizeof_off_t" 1>&6 243879968Sobriencat >> confdefs.h <<EOF 243979968Sobrien#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 244079968SobrienEOF 244179968Sobrien 244279968Sobrien 244379968Sobrien 244479968Sobrien echo $ac_n "checking for long long""... $ac_c" 1>&6 244579968Sobrienecho "configure:2446: checking for long long" >&5 244679968Sobrienif eval "test \"`echo '$''{'ftp_cv_HAVE_LONG_LONG'+set}'`\" = set"; then 244779968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 244879968Sobrienelse 244979968Sobrien 245079968Sobrien cat > conftest.$ac_ext <<EOF 245179968Sobrien#line 2452 "configure" 245279968Sobrien#include "confdefs.h" 245379968Sobrien 245479968Sobrien#include <sys/types.h> 245579968Sobrienint main() { 245679968Sobrien 245779968Sobrienlong long X = 2, Y = 1, Z; 245879968SobrienZ = X / Y; ; 245979968Sobrien; return 0; } 246079968SobrienEOF 246179968Sobrienif { (eval echo configure:2462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 246279968Sobrien rm -rf conftest* 246379968Sobrien ftp_cv_HAVE_LONG_LONG=yes 246479968Sobrienelse 246579968Sobrien echo "configure: failed program was:" >&5 246679968Sobrien cat conftest.$ac_ext >&5 246779968Sobrien rm -rf conftest* 246879968Sobrien ftp_cv_HAVE_LONG_LONG=no 246979968Sobrienfi 247079968Sobrienrm -f conftest* 247179968Sobrien 247279968Sobrienfi 247379968Sobrien 247479968Sobrienecho "$ac_t""$ftp_cv_HAVE_LONG_LONG" 1>&6 247579968Sobrien if test "x$ftp_cv_HAVE_LONG_LONG" = "xyes"; then 247679968Sobrien 247779968Sobriencat >> confdefs.h <<\EOF 247879968Sobrien#define HAVE_LONG_LONG 1 247979968SobrienEOF 248079968Sobrien 248179968Sobrienhave_long_long=yes 248279968Sobrien else 248379968Sobrien have_long_long=no 248479968Sobrien : 248579968Sobrien fi 248679968Sobrien 248779968Sobrien 248879968Sobrien 248979968Sobrien echo $ac_n "checking for in_port_t""... $ac_c" 1>&6 249079968Sobrienecho "configure:2491: checking for in_port_t" >&5 249179968Sobrienif eval "test \"`echo '$''{'ftp_cv_HAVE_IN_PORT_T'+set}'`\" = set"; then 249279968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 249379968Sobrienelse 249479968Sobrien 249579968Sobrien cat > conftest.$ac_ext <<EOF 249679968Sobrien#line 2497 "configure" 249779968Sobrien#include "confdefs.h" 249879968Sobrien 249979968Sobrien#include <sys/types.h> 250079968Sobrien#include <netinet/in.h> 250179968Sobrienint main() { 250279968Sobrien in_port_t X ; 250379968Sobrien; return 0; } 250479968SobrienEOF 250579968Sobrienif { (eval echo configure:2506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 250679968Sobrien rm -rf conftest* 250779968Sobrien ftp_cv_HAVE_IN_PORT_T=yes 250879968Sobrienelse 250979968Sobrien echo "configure: failed program was:" >&5 251079968Sobrien cat conftest.$ac_ext >&5 251179968Sobrien rm -rf conftest* 251279968Sobrien ftp_cv_HAVE_IN_PORT_T=no 251379968Sobrienfi 251479968Sobrienrm -f conftest* 251579968Sobrien 251679968Sobrienfi 251779968Sobrien 251879968Sobrienecho "$ac_t""$ftp_cv_HAVE_IN_PORT_T" 1>&6 251979968Sobrien if test "x$ftp_cv_HAVE_IN_PORT_T" = "xyes"; then 252079968Sobrien cat >> confdefs.h <<\EOF 252179968Sobrien#define HAVE_IN_PORT_T 1 252279968SobrienEOF 252379968Sobrien 252479968Sobrien else 252579968Sobrien 252679968Sobrien : 252779968Sobrien fi 252879968Sobrien 252979968Sobrien 253079968Sobrien 253179968Sobrien echo $ac_n "checking for sockaddr_in.sin_len""... $ac_c" 1>&6 253279968Sobrienecho "configure:2533: checking for sockaddr_in.sin_len" >&5 253379968Sobrienif eval "test \"`echo '$''{'ftp_cv_HAVE_SOCKADDR_SA_LEN'+set}'`\" = set"; then 253479968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 253579968Sobrienelse 253679968Sobrien 253779968Sobrien cat > conftest.$ac_ext <<EOF 253879968Sobrien#line 2539 "configure" 253979968Sobrien#include "confdefs.h" 254079968Sobrien 254179968Sobrien#include <sys/types.h> 254279968Sobrien#include <sys/socket.h> 254379968Sobrien#include <netinet/in.h> 254479968Sobrienint main() { 254579968Sobrien 254679968Sobrien struct sockaddr_in sin; 254779968Sobrien int X = sin.sin_len ; 254879968Sobrien; return 0; } 254979968SobrienEOF 255079968Sobrienif { (eval echo configure:2551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 255179968Sobrien rm -rf conftest* 255279968Sobrien ftp_cv_HAVE_SOCKADDR_SA_LEN=yes 255379968Sobrienelse 255479968Sobrien echo "configure: failed program was:" >&5 255579968Sobrien cat conftest.$ac_ext >&5 255679968Sobrien rm -rf conftest* 255779968Sobrien ftp_cv_HAVE_SOCKADDR_SA_LEN=no 255879968Sobrienfi 255979968Sobrienrm -f conftest* 256079968Sobrien 256179968Sobrienfi 256279968Sobrien 256379968Sobrienecho "$ac_t""$ftp_cv_HAVE_SOCKADDR_SA_LEN" 1>&6 256479968Sobrien if test "x$ftp_cv_HAVE_SOCKADDR_SA_LEN" = "xyes"; then 256579968Sobrien cat >> confdefs.h <<\EOF 256679968Sobrien#define HAVE_SOCKADDR_SA_LEN 1 256779968SobrienEOF 256879968Sobrien 256979968Sobrien else 257079968Sobrien 257179968Sobrien : 257279968Sobrien fi 257379968Sobrien 257479968Sobrien 257579968Sobrien 257679968Sobrien echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 257779968Sobrienecho "configure:2578: checking for socklen_t" >&5 257879968Sobrienif eval "test \"`echo '$''{'ftp_cv_HAVE_SOCKLEN_T'+set}'`\" = set"; then 257979968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 258079968Sobrienelse 258179968Sobrien 258279968Sobrien cat > conftest.$ac_ext <<EOF 258379968Sobrien#line 2584 "configure" 258479968Sobrien#include "confdefs.h" 258579968Sobrien 258679968Sobrien#include <sys/types.h> 258779968Sobrien#include <sys/socket.h> 258879968Sobrienint main() { 258979968Sobrien socklen_t X ; 259079968Sobrien; return 0; } 259179968SobrienEOF 259279968Sobrienif { (eval echo configure:2593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 259379968Sobrien rm -rf conftest* 259479968Sobrien ftp_cv_HAVE_SOCKLEN_T=yes 259579968Sobrienelse 259679968Sobrien echo "configure: failed program was:" >&5 259779968Sobrien cat conftest.$ac_ext >&5 259879968Sobrien rm -rf conftest* 259979968Sobrien ftp_cv_HAVE_SOCKLEN_T=no 260079968Sobrienfi 260179968Sobrienrm -f conftest* 260279968Sobrien 260379968Sobrienfi 260479968Sobrien 260579968Sobrienecho "$ac_t""$ftp_cv_HAVE_SOCKLEN_T" 1>&6 260679968Sobrien if test "x$ftp_cv_HAVE_SOCKLEN_T" = "xyes"; then 260779968Sobrien cat >> confdefs.h <<\EOF 260879968Sobrien#define HAVE_SOCKLEN_T 1 260979968SobrienEOF 261079968Sobrien 261179968Sobrien else 261279968Sobrien 261379968Sobrien : 261479968Sobrien fi 261579968Sobrien 261679968Sobrien 261779968Sobrienif test $opt_ipv6 = yes; then 261879968Sobrien 261979968Sobrien 262079968Sobrien echo $ac_n "checking for AF_INET6""... $ac_c" 1>&6 262179968Sobrienecho "configure:2622: checking for AF_INET6" >&5 262279968Sobrienif eval "test \"`echo '$''{'ftp_cv_HAVE_AF_INET6'+set}'`\" = set"; then 262379968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 262479968Sobrienelse 262579968Sobrien 262679968Sobrien cat > conftest.$ac_ext <<EOF 262779968Sobrien#line 2628 "configure" 262879968Sobrien#include "confdefs.h" 262979968Sobrien 263079968Sobrien#include <sys/types.h> 263179968Sobrien#include <sys/socket.h> 263279968Sobrienint main() { 263379968Sobrien int X = AF_INET6 ; 263479968Sobrien; return 0; } 263579968SobrienEOF 263679968Sobrienif { (eval echo configure:2637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 263779968Sobrien rm -rf conftest* 263879968Sobrien ftp_cv_HAVE_AF_INET6=yes 263979968Sobrienelse 264079968Sobrien echo "configure: failed program was:" >&5 264179968Sobrien cat conftest.$ac_ext >&5 264279968Sobrien rm -rf conftest* 264379968Sobrien ftp_cv_HAVE_AF_INET6=no 264479968Sobrienfi 264579968Sobrienrm -f conftest* 264679968Sobrien 264779968Sobrienfi 264879968Sobrien 264979968Sobrienecho "$ac_t""$ftp_cv_HAVE_AF_INET6" 1>&6 265079968Sobrien if test "x$ftp_cv_HAVE_AF_INET6" = "xyes"; then 265179968Sobrien cat >> confdefs.h <<\EOF 265279968Sobrien#define HAVE_AF_INET6 1 265379968SobrienEOF 265479968Sobrien 265579968Sobrien else 265679968Sobrien 265779968Sobrien : 265879968Sobrien fi 265979968Sobrien 266079968Sobrien 266179968Sobrien 266279968Sobrien echo $ac_n "checking for struct sockaddr_in6""... $ac_c" 1>&6 266379968Sobrienecho "configure:2664: checking for struct sockaddr_in6" >&5 266479968Sobrienif eval "test \"`echo '$''{'ftp_cv_HAVE_SOCKADDR_IN6'+set}'`\" = set"; then 266579968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 266679968Sobrienelse 266779968Sobrien 266879968Sobrien cat > conftest.$ac_ext <<EOF 266979968Sobrien#line 2670 "configure" 267079968Sobrien#include "confdefs.h" 267179968Sobrien 267279968Sobrien#include <sys/types.h> 267379968Sobrien#include <netinet/in.h> 267479968Sobrienint main() { 267579968Sobrien struct sockaddr_in6 X ; 267679968Sobrien; return 0; } 267779968SobrienEOF 267879968Sobrienif { (eval echo configure:2679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 267979968Sobrien rm -rf conftest* 268079968Sobrien ftp_cv_HAVE_SOCKADDR_IN6=yes 268179968Sobrienelse 268279968Sobrien echo "configure: failed program was:" >&5 268379968Sobrien cat conftest.$ac_ext >&5 268479968Sobrien rm -rf conftest* 268579968Sobrien ftp_cv_HAVE_SOCKADDR_IN6=no 268679968Sobrienfi 268779968Sobrienrm -f conftest* 268879968Sobrien 268979968Sobrienfi 269079968Sobrien 269179968Sobrienecho "$ac_t""$ftp_cv_HAVE_SOCKADDR_IN6" 1>&6 269279968Sobrien if test "x$ftp_cv_HAVE_SOCKADDR_IN6" = "xyes"; then 269379968Sobrien cat >> confdefs.h <<\EOF 269479968Sobrien#define HAVE_SOCKADDR_IN6 1 269579968SobrienEOF 269679968Sobrien 269779968Sobrien else 269879968Sobrien 269979968Sobrien : 270079968Sobrien fi 270179968Sobrien 270279968Sobrien 270379968Sobrienfi 270479968Sobrien 270579968Sobrien 270679968Sobrien echo $ac_n "checking for struct addrinfo""... $ac_c" 1>&6 270779968Sobrienecho "configure:2708: checking for struct addrinfo" >&5 270879968Sobrienif eval "test \"`echo '$''{'ftp_cv_HAVE_ADDRINFO'+set}'`\" = set"; then 270979968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 271079968Sobrienelse 271179968Sobrien 271279968Sobrien cat > conftest.$ac_ext <<EOF 271379968Sobrien#line 2714 "configure" 271479968Sobrien#include "confdefs.h" 271579968Sobrien 271679968Sobrien#include <sys/types.h> 271779968Sobrien#include <sys/socket.h> 271879968Sobrien#include <netdb.h> 271979968Sobrienint main() { 272079968Sobrien struct addrinfo X ; 272179968Sobrien; return 0; } 272279968SobrienEOF 272379968Sobrienif { (eval echo configure:2724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 272479968Sobrien rm -rf conftest* 272579968Sobrien ftp_cv_HAVE_ADDRINFO=yes 272679968Sobrienelse 272779968Sobrien echo "configure: failed program was:" >&5 272879968Sobrien cat conftest.$ac_ext >&5 272979968Sobrien rm -rf conftest* 273079968Sobrien ftp_cv_HAVE_ADDRINFO=no 273179968Sobrienfi 273279968Sobrienrm -f conftest* 273379968Sobrien 273479968Sobrienfi 273579968Sobrien 273679968Sobrienecho "$ac_t""$ftp_cv_HAVE_ADDRINFO" 1>&6 273779968Sobrien if test "x$ftp_cv_HAVE_ADDRINFO" = "xyes"; then 273879968Sobrien cat >> confdefs.h <<\EOF 273979968Sobrien#define HAVE_ADDRINFO 1 274079968SobrienEOF 274179968Sobrien 274279968Sobrien else 274379968Sobrien 274479968Sobrien : 274579968Sobrien fi 274679968Sobrien 274779968Sobrien 274879968Sobrien 274979968Sobrien echo $ac_n "checking for d_namlen in struct dirent""... $ac_c" 1>&6 275079968Sobrienecho "configure:2751: checking for d_namlen in struct dirent" >&5 275179968Sobrienif eval "test \"`echo '$''{'ftp_cv_HAVE_D_NAMLEN'+set}'`\" = set"; then 275279968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 275379968Sobrienelse 275479968Sobrien 275579968Sobrien cat > conftest.$ac_ext <<EOF 275679968Sobrien#line 2757 "configure" 275779968Sobrien#include "confdefs.h" 275879968Sobrien 275979968Sobrien#if HAVE_DIRENT_H 276079968Sobrien# include <dirent.h> 276179968Sobrien#else 276279968Sobrien# define dirent direct 276379968Sobrien# if HAVE_SYS_NDIR_H 276479968Sobrien# include <sys/ndir.h> 276579968Sobrien# endif 276679968Sobrien# if HAVE_SYS_DIR_H 276779968Sobrien# include <sys/dir.h> 276879968Sobrien# endif 276979968Sobrien# if HAVE_NDIR_H 277079968Sobrien# include <ndir.h> 277179968Sobrien# endif 277279968Sobrien#endif 277379968Sobrienint main() { 277479968Sobrien 277579968Sobrien struct dirent dp; 277679968Sobrien int X = dp.d_namlen; ; 277779968Sobrien; return 0; } 277879968SobrienEOF 277979968Sobrienif { (eval echo configure:2780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 278079968Sobrien rm -rf conftest* 278179968Sobrien ftp_cv_HAVE_D_NAMLEN=yes 278279968Sobrienelse 278379968Sobrien echo "configure: failed program was:" >&5 278479968Sobrien cat conftest.$ac_ext >&5 278579968Sobrien rm -rf conftest* 278679968Sobrien ftp_cv_HAVE_D_NAMLEN=no 278779968Sobrienfi 278879968Sobrienrm -f conftest* 278979968Sobrien 279079968Sobrienfi 279179968Sobrien 279279968Sobrienecho "$ac_t""$ftp_cv_HAVE_D_NAMLEN" 1>&6 279379968Sobrien if test "x$ftp_cv_HAVE_D_NAMLEN" = "xyes"; then 279479968Sobrien cat >> confdefs.h <<\EOF 279579968Sobrien#define HAVE_D_NAMLEN 1 279679968SobrienEOF 279779968Sobrien 279879968Sobrien else 279979968Sobrien 280079968Sobrien : 280179968Sobrien fi 280279968Sobrien 280379968Sobrien 280479968Sobrien 280579968Sobrien echo $ac_n "checking for struct passwd.pw_expire""... $ac_c" 1>&6 280679968Sobrienecho "configure:2807: checking for struct passwd.pw_expire" >&5 280779968Sobrienif eval "test \"`echo '$''{'ftp_cv_HAVE_PW_EXPIRE'+set}'`\" = set"; then 280879968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 280979968Sobrienelse 281079968Sobrien 281179968Sobrien cat > conftest.$ac_ext <<EOF 281279968Sobrien#line 2813 "configure" 281379968Sobrien#include "confdefs.h" 281479968Sobrien 281579968Sobrien#include <sys/types.h> 281679968Sobrien#include <pwd.h> 281779968Sobrienint main() { 281879968Sobrien struct passwd pw; 281979968Sobrien time_t X = pw.pw_expire ; 282079968Sobrien; return 0; } 282179968SobrienEOF 282279968Sobrienif { (eval echo configure:2823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 282379968Sobrien rm -rf conftest* 282479968Sobrien ftp_cv_HAVE_PW_EXPIRE=yes 282579968Sobrienelse 282679968Sobrien echo "configure: failed program was:" >&5 282779968Sobrien cat conftest.$ac_ext >&5 282879968Sobrien rm -rf conftest* 282979968Sobrien ftp_cv_HAVE_PW_EXPIRE=no 283079968Sobrienfi 283179968Sobrienrm -f conftest* 283279968Sobrien 283379968Sobrienfi 283479968Sobrien 283579968Sobrienecho "$ac_t""$ftp_cv_HAVE_PW_EXPIRE" 1>&6 283679968Sobrien if test "x$ftp_cv_HAVE_PW_EXPIRE" = "xyes"; then 283779968Sobrien cat >> confdefs.h <<\EOF 283879968Sobrien#define HAVE_PW_EXPIRE 1 283979968SobrienEOF 284079968Sobrien 284179968Sobrien else 284279968Sobrien 284379968Sobrien : 284479968Sobrien fi 284579968Sobrien 284679968Sobrien 284779968Sobrienecho $ac_n "checking for working const""... $ac_c" 1>&6 284879968Sobrienecho "configure:2849: checking for working const" >&5 284979968Sobrienif eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 285079968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 285179968Sobrienelse 285279968Sobrien cat > conftest.$ac_ext <<EOF 285379968Sobrien#line 2854 "configure" 285479968Sobrien#include "confdefs.h" 285579968Sobrien 285679968Sobrienint main() { 285779968Sobrien 285879968Sobrien/* Ultrix mips cc rejects this. */ 285979968Sobrientypedef int charset[2]; const charset x; 286079968Sobrien/* SunOS 4.1.1 cc rejects this. */ 286179968Sobrienchar const *const *ccp; 286279968Sobrienchar **p; 286379968Sobrien/* NEC SVR4.0.2 mips cc rejects this. */ 286479968Sobrienstruct point {int x, y;}; 286579968Sobrienstatic struct point const zero = {0,0}; 286679968Sobrien/* AIX XL C 1.02.0.0 rejects this. 286779968Sobrien It does not let you subtract one const X* pointer from another in an arm 286879968Sobrien of an if-expression whose if-part is not a constant expression */ 286979968Sobrienconst char *g = "string"; 287079968Sobrienccp = &g + (g ? g-g : 0); 287179968Sobrien/* HPUX 7.0 cc rejects these. */ 287279968Sobrien++ccp; 287379968Sobrienp = (char**) ccp; 287479968Sobrienccp = (char const *const *) p; 287579968Sobrien{ /* SCO 3.2v4 cc rejects this. */ 287679968Sobrien char *t; 287779968Sobrien char const *s = 0 ? (char *) 0 : (char const *) 0; 287879968Sobrien 287979968Sobrien *t++ = 0; 288079968Sobrien} 288179968Sobrien{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 288279968Sobrien int x[] = {25, 17}; 288379968Sobrien const int *foo = &x[0]; 288479968Sobrien ++foo; 288579968Sobrien} 288679968Sobrien{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 288779968Sobrien typedef const int *iptr; 288879968Sobrien iptr p = 0; 288979968Sobrien ++p; 289079968Sobrien} 289179968Sobrien{ /* AIX XL C 1.02.0.0 rejects this saying 289279968Sobrien "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 289379968Sobrien struct s { int j; const int *ap[3]; }; 289479968Sobrien struct s *b; b->j = 5; 289579968Sobrien} 289679968Sobrien{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 289779968Sobrien const int foo = 10; 289879968Sobrien} 289979968Sobrien 290079968Sobrien; return 0; } 290179968SobrienEOF 290279968Sobrienif { (eval echo configure:2903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 290379968Sobrien rm -rf conftest* 290479968Sobrien ac_cv_c_const=yes 290579968Sobrienelse 290679968Sobrien echo "configure: failed program was:" >&5 290779968Sobrien cat conftest.$ac_ext >&5 290879968Sobrien rm -rf conftest* 290979968Sobrien ac_cv_c_const=no 291079968Sobrienfi 291179968Sobrienrm -f conftest* 291279968Sobrienfi 291379968Sobrien 291479968Sobrienecho "$ac_t""$ac_cv_c_const" 1>&6 291579968Sobrienif test $ac_cv_c_const = no; then 291679968Sobrien cat >> confdefs.h <<\EOF 291779968Sobrien#define const 291879968SobrienEOF 291979968Sobrien 292079968Sobrienfi 292179968Sobrien 292279968Sobrien 292379968Sobrien 292479968Sobrienfor ac_func in err fgetln getaddrinfo getgrouplist getnameinfo \ 292579968Sobrien getusershell inet_net_pton inet_ntop inet_pton mkstemp \ 292679968Sobrien sl_init snprintf strdup strerror strlcat strlcpy strsep \ 292779968Sobrien usleep vsyslog 292879968Sobriendo 292979968Sobrienecho $ac_n "checking for $ac_func""... $ac_c" 1>&6 293079968Sobrienecho "configure:2931: checking for $ac_func" >&5 293179968Sobrienif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 293279968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 293379968Sobrienelse 293479968Sobrien cat > conftest.$ac_ext <<EOF 293579968Sobrien#line 2936 "configure" 293679968Sobrien#include "confdefs.h" 293779968Sobrien/* System header to define __stub macros and hopefully few prototypes, 293879968Sobrien which can conflict with char $ac_func(); below. */ 293979968Sobrien#include <assert.h> 294079968Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 294179968Sobrien/* We use char because int might match the return type of a gcc2 294279968Sobrien builtin and then its argument prototype would still apply. */ 294379968Sobrienchar $ac_func(); 294479968Sobrien 294579968Sobrienint main() { 294679968Sobrien 294779968Sobrien/* The GNU C library defines this for functions which it implements 294879968Sobrien to always fail with ENOSYS. Some functions are actually named 294979968Sobrien something starting with __ and the normal name is an alias. */ 295079968Sobrien#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 295179968Sobrienchoke me 295279968Sobrien#else 295379968Sobrien$ac_func(); 295479968Sobrien#endif 295579968Sobrien 295679968Sobrien; return 0; } 295779968SobrienEOF 295879968Sobrienif { (eval echo configure:2959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 295979968Sobrien rm -rf conftest* 296079968Sobrien eval "ac_cv_func_$ac_func=yes" 296179968Sobrienelse 296279968Sobrien echo "configure: failed program was:" >&5 296379968Sobrien cat conftest.$ac_ext >&5 296479968Sobrien rm -rf conftest* 296579968Sobrien eval "ac_cv_func_$ac_func=no" 296679968Sobrienfi 296779968Sobrienrm -f conftest* 296879968Sobrienfi 296979968Sobrien 297079968Sobrienif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 297179968Sobrien echo "$ac_t""yes" 1>&6 297279968Sobrien ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 297379968Sobrien cat >> confdefs.h <<EOF 297479968Sobrien#define $ac_tr_func 1 297579968SobrienEOF 297679968Sobrien 297779968Sobrienelse 297879968Sobrien echo "$ac_t""no" 1>&6 297979968SobrienLIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" 298079968Sobrienfi 298179968Sobriendone 298279968Sobrien 298379968Sobrien 298479968Sobrienfor ac_func in flock lockf getspnam setlogin setproctitle vfork 298579968Sobriendo 298679968Sobrienecho $ac_n "checking for $ac_func""... $ac_c" 1>&6 298779968Sobrienecho "configure:2988: checking for $ac_func" >&5 298879968Sobrienif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 298979968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 299079968Sobrienelse 299179968Sobrien cat > conftest.$ac_ext <<EOF 299279968Sobrien#line 2993 "configure" 299379968Sobrien#include "confdefs.h" 299479968Sobrien/* System header to define __stub macros and hopefully few prototypes, 299579968Sobrien which can conflict with char $ac_func(); below. */ 299679968Sobrien#include <assert.h> 299779968Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 299879968Sobrien/* We use char because int might match the return type of a gcc2 299979968Sobrien builtin and then its argument prototype would still apply. */ 300079968Sobrienchar $ac_func(); 300179968Sobrien 300279968Sobrienint main() { 300379968Sobrien 300479968Sobrien/* The GNU C library defines this for functions which it implements 300579968Sobrien to always fail with ENOSYS. Some functions are actually named 300679968Sobrien something starting with __ and the normal name is an alias. */ 300779968Sobrien#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 300879968Sobrienchoke me 300979968Sobrien#else 301079968Sobrien$ac_func(); 301179968Sobrien#endif 301279968Sobrien 301379968Sobrien; return 0; } 301479968SobrienEOF 301579968Sobrienif { (eval echo configure:3016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 301679968Sobrien rm -rf conftest* 301779968Sobrien eval "ac_cv_func_$ac_func=yes" 301879968Sobrienelse 301979968Sobrien echo "configure: failed program was:" >&5 302079968Sobrien cat conftest.$ac_ext >&5 302179968Sobrien rm -rf conftest* 302279968Sobrien eval "ac_cv_func_$ac_func=no" 302379968Sobrienfi 302479968Sobrienrm -f conftest* 302579968Sobrienfi 302679968Sobrien 302779968Sobrienif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 302879968Sobrien echo "$ac_t""yes" 1>&6 302979968Sobrien ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 303079968Sobrien cat >> confdefs.h <<EOF 303179968Sobrien#define $ac_tr_func 1 303279968SobrienEOF 303379968Sobrien 303479968Sobrienelse 303579968Sobrien echo "$ac_t""no" 1>&6 303679968Sobrienfi 303779968Sobriendone 303879968Sobrien 303979968Sobrienif test $ac_cv_lib_util_fparseln != yes; then 304079968Sobrien for ac_func in fparseln 304179968Sobriendo 304279968Sobrienecho $ac_n "checking for $ac_func""... $ac_c" 1>&6 304379968Sobrienecho "configure:3044: checking for $ac_func" >&5 304479968Sobrienif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 304579968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 304679968Sobrienelse 304779968Sobrien cat > conftest.$ac_ext <<EOF 304879968Sobrien#line 3049 "configure" 304979968Sobrien#include "confdefs.h" 305079968Sobrien/* System header to define __stub macros and hopefully few prototypes, 305179968Sobrien which can conflict with char $ac_func(); below. */ 305279968Sobrien#include <assert.h> 305379968Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 305479968Sobrien/* We use char because int might match the return type of a gcc2 305579968Sobrien builtin and then its argument prototype would still apply. */ 305679968Sobrienchar $ac_func(); 305779968Sobrien 305879968Sobrienint main() { 305979968Sobrien 306079968Sobrien/* The GNU C library defines this for functions which it implements 306179968Sobrien to always fail with ENOSYS. Some functions are actually named 306279968Sobrien something starting with __ and the normal name is an alias. */ 306379968Sobrien#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 306479968Sobrienchoke me 306579968Sobrien#else 306679968Sobrien$ac_func(); 306779968Sobrien#endif 306879968Sobrien 306979968Sobrien; return 0; } 307079968SobrienEOF 307179968Sobrienif { (eval echo configure:3072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 307279968Sobrien rm -rf conftest* 307379968Sobrien eval "ac_cv_func_$ac_func=yes" 307479968Sobrienelse 307579968Sobrien echo "configure: failed program was:" >&5 307679968Sobrien cat conftest.$ac_ext >&5 307779968Sobrien rm -rf conftest* 307879968Sobrien eval "ac_cv_func_$ac_func=no" 307979968Sobrienfi 308079968Sobrienrm -f conftest* 308179968Sobrienfi 308279968Sobrien 308379968Sobrienif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 308479968Sobrien echo "$ac_t""yes" 1>&6 308579968Sobrien ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 308679968Sobrien cat >> confdefs.h <<EOF 308779968Sobrien#define $ac_tr_func 1 308879968SobrienEOF 308979968Sobrien 309079968Sobrienelse 309179968Sobrien echo "$ac_t""no" 1>&6 309279968SobrienLIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" 309379968Sobrienfi 309479968Sobriendone 309579968Sobrien 309679968Sobrien 309779968Sobrienfi 309879968Sobrien 309979968SobrienLIBOBJS="$LIBOBJS glob.o" 310079968Sobrien 310179968Sobrien 310279968Sobrien echo $ac_n "checking for crypt() declaration""... $ac_c" 1>&6 310379968Sobrienecho "configure:3104: checking for crypt() declaration" >&5 310479968Sobrienif eval "test \"`echo '$''{'ftp_cv_HAVE_CRYPT_D'+set}'`\" = set"; then 310579968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 310679968Sobrienelse 310779968Sobrien 310879968Sobrien cat > conftest.$ac_ext <<EOF 310979968Sobrien#line 3110 "configure" 311079968Sobrien#include "confdefs.h" 311179968Sobrien 311279968Sobrien#include <unistd.h> 311379968Sobrienint main() { 311479968Sobrien char *(*X)() = crypt ; 311579968Sobrien; return 0; } 311679968SobrienEOF 311779968Sobrienif { (eval echo configure:3118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 311879968Sobrien rm -rf conftest* 311979968Sobrien ftp_cv_HAVE_CRYPT_D=yes 312079968Sobrienelse 312179968Sobrien echo "configure: failed program was:" >&5 312279968Sobrien cat conftest.$ac_ext >&5 312379968Sobrien rm -rf conftest* 312479968Sobrien ftp_cv_HAVE_CRYPT_D=no 312579968Sobrienfi 312679968Sobrienrm -f conftest* 312779968Sobrien 312879968Sobrienfi 312979968Sobrien 313079968Sobrienecho "$ac_t""$ftp_cv_HAVE_CRYPT_D" 1>&6 313179968Sobrien if test "x$ftp_cv_HAVE_CRYPT_D" = "xyes"; then 313279968Sobrien cat >> confdefs.h <<\EOF 313379968Sobrien#define HAVE_CRYPT_D 1 313479968SobrienEOF 313579968Sobrien 313679968Sobrien else 313779968Sobrien 313879968Sobrien : 313979968Sobrien fi 314079968Sobrien 314179968Sobrien 314279968Sobrien 314379968Sobrien echo $ac_n "checking for fclose() declaration""... $ac_c" 1>&6 314479968Sobrienecho "configure:3145: checking for fclose() declaration" >&5 314579968Sobrienif eval "test \"`echo '$''{'ftp_cv_HAVE_FCLOSE_D'+set}'`\" = set"; then 314679968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 314779968Sobrienelse 314879968Sobrien 314979968Sobrien cat > conftest.$ac_ext <<EOF 315079968Sobrien#line 3151 "configure" 315179968Sobrien#include "confdefs.h" 315279968Sobrien 315379968Sobrien#include <stdio.h> 315479968Sobrienint main() { 315579968Sobrien int (*X)() = fclose ; 315679968Sobrien; return 0; } 315779968SobrienEOF 315879968Sobrienif { (eval echo configure:3159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 315979968Sobrien rm -rf conftest* 316079968Sobrien ftp_cv_HAVE_FCLOSE_D=yes 316179968Sobrienelse 316279968Sobrien echo "configure: failed program was:" >&5 316379968Sobrien cat conftest.$ac_ext >&5 316479968Sobrien rm -rf conftest* 316579968Sobrien ftp_cv_HAVE_FCLOSE_D=no 316679968Sobrienfi 316779968Sobrienrm -f conftest* 316879968Sobrien 316979968Sobrienfi 317079968Sobrien 317179968Sobrienecho "$ac_t""$ftp_cv_HAVE_FCLOSE_D" 1>&6 317279968Sobrien if test "x$ftp_cv_HAVE_FCLOSE_D" = "xyes"; then 317379968Sobrien cat >> confdefs.h <<\EOF 317479968Sobrien#define HAVE_FCLOSE_D 1 317579968SobrienEOF 317679968Sobrien 317779968Sobrien else 317879968Sobrien 317979968Sobrien : 318079968Sobrien fi 318179968Sobrien 318279968Sobrien 318379968Sobrien 3184106792Sobrien echo $ac_n "checking for FNM_CASEFOLD""... $ac_c" 1>&6 3185106792Sobrienecho "configure:3186: checking for FNM_CASEFOLD" >&5 3186106792Sobrienif eval "test \"`echo '$''{'ftp_cv_HAVE_FNM_CASEFOLD'+set}'`\" = set"; then 3187106792Sobrien echo $ac_n "(cached) $ac_c" 1>&6 3188106792Sobrienelse 3189106792Sobrien 3190106792Sobrien cat > conftest.$ac_ext <<EOF 3191106792Sobrien#line 3192 "configure" 3192106792Sobrien#include "confdefs.h" 3193106792Sobrien 3194106792Sobrien#include <fnmatch.h> 3195106792Sobrienint main() { 3196106792Sobrien int X = FNM_CASEFOLD ; 3197106792Sobrien; return 0; } 3198106792SobrienEOF 3199106792Sobrienif { (eval echo configure:3200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3200106792Sobrien rm -rf conftest* 3201106792Sobrien ftp_cv_HAVE_FNM_CASEFOLD=yes 3202106792Sobrienelse 3203106792Sobrien echo "configure: failed program was:" >&5 3204106792Sobrien cat conftest.$ac_ext >&5 3205106792Sobrien rm -rf conftest* 3206106792Sobrien ftp_cv_HAVE_FNM_CASEFOLD=no 3207106792Sobrienfi 3208106792Sobrienrm -f conftest* 3209106792Sobrien 3210106792Sobrienfi 3211106792Sobrien 3212106792Sobrienecho "$ac_t""$ftp_cv_HAVE_FNM_CASEFOLD" 1>&6 3213106792Sobrien if test "x$ftp_cv_HAVE_FNM_CASEFOLD" = "xyes"; then 3214106792Sobrien cat >> confdefs.h <<\EOF 3215106792Sobrien#define HAVE_FNM_CASEFOLD 1 3216106792SobrienEOF 3217106792Sobrien 3218106792Sobrien else 3219106792Sobrien LIBOBJS="$LIBOBJS fnmatch.o" 3220106792Sobrien : 3221106792Sobrien fi 3222106792Sobrien 3223106792Sobrien 3224106792Sobrien 322579968Sobrien echo $ac_n "checking for optarg declaration""... $ac_c" 1>&6 3226106792Sobrienecho "configure:3227: checking for optarg declaration" >&5 322779968Sobrienif eval "test \"`echo '$''{'ftp_cv_HAVE_OPTARG_D'+set}'`\" = set"; then 322879968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 322979968Sobrienelse 323079968Sobrien 323179968Sobrien cat > conftest.$ac_ext <<EOF 3232106792Sobrien#line 3233 "configure" 323379968Sobrien#include "confdefs.h" 323479968Sobrien 323579968Sobrien#include <stdlib.h> 323679968Sobrien#include <unistd.h> 323779968Sobrienint main() { 323879968Sobrien char *X = optarg ; 323979968Sobrien; return 0; } 324079968SobrienEOF 3241106792Sobrienif { (eval echo configure:3242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 324279968Sobrien rm -rf conftest* 324379968Sobrien ftp_cv_HAVE_OPTARG_D=yes 324479968Sobrienelse 324579968Sobrien echo "configure: failed program was:" >&5 324679968Sobrien cat conftest.$ac_ext >&5 324779968Sobrien rm -rf conftest* 324879968Sobrien ftp_cv_HAVE_OPTARG_D=no 324979968Sobrienfi 325079968Sobrienrm -f conftest* 325179968Sobrien 325279968Sobrienfi 325379968Sobrien 325479968Sobrienecho "$ac_t""$ftp_cv_HAVE_OPTARG_D" 1>&6 325579968Sobrien if test "x$ftp_cv_HAVE_OPTARG_D" = "xyes"; then 325679968Sobrien cat >> confdefs.h <<\EOF 325779968Sobrien#define HAVE_OPTARG_D 1 325879968SobrienEOF 325979968Sobrien 326079968Sobrien else 326179968Sobrien 326279968Sobrien : 326379968Sobrien fi 326479968Sobrien 326579968Sobrien 326679968Sobrien 326779968Sobrien echo $ac_n "checking for optind declaration""... $ac_c" 1>&6 3268106792Sobrienecho "configure:3269: checking for optind declaration" >&5 326979968Sobrienif eval "test \"`echo '$''{'ftp_cv_HAVE_OPTIND_D'+set}'`\" = set"; then 327079968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 327179968Sobrienelse 327279968Sobrien 327379968Sobrien cat > conftest.$ac_ext <<EOF 3274106792Sobrien#line 3275 "configure" 327579968Sobrien#include "confdefs.h" 327679968Sobrien 327779968Sobrien#include <stdlib.h> 327879968Sobrien#include <unistd.h> 327979968Sobrienint main() { 328079968Sobrien int X = optind ; 328179968Sobrien; return 0; } 328279968SobrienEOF 3283106792Sobrienif { (eval echo configure:3284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 328479968Sobrien rm -rf conftest* 328579968Sobrien ftp_cv_HAVE_OPTIND_D=yes 328679968Sobrienelse 328779968Sobrien echo "configure: failed program was:" >&5 328879968Sobrien cat conftest.$ac_ext >&5 328979968Sobrien rm -rf conftest* 329079968Sobrien ftp_cv_HAVE_OPTIND_D=no 329179968Sobrienfi 329279968Sobrienrm -f conftest* 329379968Sobrien 329479968Sobrienfi 329579968Sobrien 329679968Sobrienecho "$ac_t""$ftp_cv_HAVE_OPTIND_D" 1>&6 329779968Sobrien if test "x$ftp_cv_HAVE_OPTIND_D" = "xyes"; then 329879968Sobrien cat >> confdefs.h <<\EOF 329979968Sobrien#define HAVE_OPTIND_D 1 330079968SobrienEOF 330179968Sobrien 330279968Sobrien else 330379968Sobrien 330479968Sobrien : 330579968Sobrien fi 330679968Sobrien 330779968Sobrien 330879968Sobrien 330979968Sobrien echo $ac_n "checking for optreset""... $ac_c" 1>&6 3310106792Sobrienecho "configure:3311: checking for optreset" >&5 331179968Sobrienif eval "test \"`echo '$''{'ftp_cv_HAVE_OPTRESET'+set}'`\" = set"; then 331279968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 331379968Sobrienelse 331479968Sobrien 331579968Sobrien cat > conftest.$ac_ext <<EOF 3316106792Sobrien#line 3317 "configure" 331779968Sobrien#include "confdefs.h" 331879968Sobrien 331979968Sobrien#include <stdlib.h> 332079968Sobrien#include <unistd.h> 332179968Sobrienint main() { 332279968Sobrien int X = optreset ; 332379968Sobrien; return 0; } 332479968SobrienEOF 3325106792Sobrienif { (eval echo configure:3326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 332679968Sobrien rm -rf conftest* 332779968Sobrien ftp_cv_HAVE_OPTRESET=yes 332879968Sobrienelse 332979968Sobrien echo "configure: failed program was:" >&5 333079968Sobrien cat conftest.$ac_ext >&5 333179968Sobrien rm -rf conftest* 333279968Sobrien ftp_cv_HAVE_OPTRESET=no 333379968Sobrienfi 333479968Sobrienrm -f conftest* 333579968Sobrien 333679968Sobrienfi 333779968Sobrien 333879968Sobrienecho "$ac_t""$ftp_cv_HAVE_OPTRESET" 1>&6 333979968Sobrien if test "x$ftp_cv_HAVE_OPTRESET" = "xyes"; then 334079968Sobrien cat >> confdefs.h <<\EOF 334179968Sobrien#define HAVE_OPTRESET 1 334279968SobrienEOF 334379968Sobrien 334479968Sobrien else 334579968Sobrien 334679968Sobrien : 334779968Sobrien fi 334879968Sobrien 334979968Sobrien 335079968Sobrien 335179968Sobrien echo $ac_n "checking for pclose() declaration""... $ac_c" 1>&6 3352106792Sobrienecho "configure:3353: checking for pclose() declaration" >&5 335379968Sobrienif eval "test \"`echo '$''{'ftp_cv_HAVE_PCLOSE_D'+set}'`\" = set"; then 335479968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 335579968Sobrienelse 335679968Sobrien 335779968Sobrien cat > conftest.$ac_ext <<EOF 3358106792Sobrien#line 3359 "configure" 335979968Sobrien#include "confdefs.h" 336079968Sobrien 336179968Sobrien#include <stdio.h> 336279968Sobrienint main() { 336379968Sobrien int (*X)() = pclose ; 336479968Sobrien; return 0; } 336579968SobrienEOF 3366106792Sobrienif { (eval echo configure:3367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 336779968Sobrien rm -rf conftest* 336879968Sobrien ftp_cv_HAVE_PCLOSE_D=yes 336979968Sobrienelse 337079968Sobrien echo "configure: failed program was:" >&5 337179968Sobrien cat conftest.$ac_ext >&5 337279968Sobrien rm -rf conftest* 337379968Sobrien ftp_cv_HAVE_PCLOSE_D=no 337479968Sobrienfi 337579968Sobrienrm -f conftest* 337679968Sobrien 337779968Sobrienfi 337879968Sobrien 337979968Sobrienecho "$ac_t""$ftp_cv_HAVE_PCLOSE_D" 1>&6 338079968Sobrien if test "x$ftp_cv_HAVE_PCLOSE_D" = "xyes"; then 338179968Sobrien cat >> confdefs.h <<\EOF 338279968Sobrien#define HAVE_PCLOSE_D 1 338379968SobrienEOF 338479968Sobrien 338579968Sobrien else 338679968Sobrien 338779968Sobrien : 338879968Sobrien fi 338979968Sobrien 339079968Sobrien 339179968Sobrienif test $ac_cv_func_getusershell = yes; then 339279968Sobrien 339379968Sobrien echo $ac_n "checking for getusershell() declaration""... $ac_c" 1>&6 3394106792Sobrienecho "configure:3395: checking for getusershell() declaration" >&5 339579968Sobrienif eval "test \"`echo '$''{'ftp_cv_HAVE_GETUSERSHELL_D'+set}'`\" = set"; then 339679968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 339779968Sobrienelse 339879968Sobrien 339979968Sobrien cat > conftest.$ac_ext <<EOF 3400106792Sobrien#line 3401 "configure" 340179968Sobrien#include "confdefs.h" 340279968Sobrien 340379968Sobrien #include <unistd.h> 340479968Sobrienint main() { 340579968Sobrien char *(*X)() = getusershell ; 340679968Sobrien; return 0; } 340779968SobrienEOF 3408106792Sobrienif { (eval echo configure:3409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 340979968Sobrien rm -rf conftest* 341079968Sobrien ftp_cv_HAVE_GETUSERSHELL_D=yes 341179968Sobrienelse 341279968Sobrien echo "configure: failed program was:" >&5 341379968Sobrien cat conftest.$ac_ext >&5 341479968Sobrien rm -rf conftest* 341579968Sobrien ftp_cv_HAVE_GETUSERSHELL_D=no 341679968Sobrienfi 341779968Sobrienrm -f conftest* 341879968Sobrien 341979968Sobrienfi 342079968Sobrien 342179968Sobrienecho "$ac_t""$ftp_cv_HAVE_GETUSERSHELL_D" 1>&6 342279968Sobrien if test "x$ftp_cv_HAVE_GETUSERSHELL_D" = "xyes"; then 342379968Sobrien cat >> confdefs.h <<\EOF 342479968Sobrien#define HAVE_GETUSERSHELL_D 1 342579968SobrienEOF 342679968Sobrien 342779968Sobrien else 342879968Sobrien 342979968Sobrien : 343079968Sobrien fi 343179968Sobrien 343279968Sobrienfi 343379968Sobrien 343479968Sobrien 343579968Sobrienif test $have_long_long = yes -a $ac_cv_sizeof_off_t -ge 8; then 343679968Sobrien 343779968Sobrien 343879968Sobrien echo $ac_n "checking *printf() support for %lld""... $ac_c" 1>&6 3439106792Sobrienecho "configure:3440: checking *printf() support for %lld" >&5 344079968Sobrien can_printf_longlong=no 344179968Sobrien if test "$cross_compiling" = yes; then 344279968Sobrien : 344379968Sobrienelse 344479968Sobrien cat > conftest.$ac_ext <<EOF 3445106792Sobrien#line 3446 "configure" 344679968Sobrien#include "confdefs.h" 344779968Sobrien 344879968Sobrien #include <stdio.h> 344979968Sobrien int main() { 345079968Sobrien char buf[100]; 345179968Sobrien sprintf(buf, "%lld", 4294967300LL); 345279968Sobrien return (strcmp(buf, "4294967300")); 345379968Sobrien } 345479968Sobrien 345579968SobrienEOF 3456106792Sobrienif { (eval echo configure:3457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 345779968Sobrienthen 345879968Sobrien 345979968Sobrien echo "$ac_t""yes" 1>&6 346079968Sobrien can_printf_longlong=yes 346179968Sobrien 346279968Sobrienelse 346379968Sobrien echo "configure: failed program was:" >&5 346479968Sobrien cat conftest.$ac_ext >&5 346579968Sobrien rm -fr conftest* 346679968Sobrien 346779968Sobrien echo "$ac_t""no" 1>&6 346879968Sobrien 346979968Sobrienfi 347079968Sobrienrm -fr conftest* 347179968Sobrienfi 347279968Sobrien 347379968Sobrien 347479968Sobrien if test $can_printf_longlong != yes; then 347579968Sobrien echo $ac_n "checking *printf() support for %qd""... $ac_c" 1>&6 3476106792Sobrienecho "configure:3477: checking *printf() support for %qd" >&5 347779968Sobrien if test "$cross_compiling" = yes; then 347879968Sobrien : 347979968Sobrienelse 348079968Sobrien cat > conftest.$ac_ext <<EOF 3481106792Sobrien#line 3482 "configure" 348279968Sobrien#include "confdefs.h" 348379968Sobrien 348479968Sobrien #include <stdio.h> 348579968Sobrien int main() { 348679968Sobrien char buf[100]; 348779968Sobrien sprintf(buf, "%qd", 4294967300LL); 348879968Sobrien return (strcmp(buf, "4294967300")); 348979968Sobrien } 349079968Sobrien 349179968SobrienEOF 3492106792Sobrienif { (eval echo configure:3493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 349379968Sobrienthen 349479968Sobrien 349579968Sobrien echo "$ac_t""yes" 1>&6 349679968Sobrien can_printf_longlong=yes 349779968Sobrien cat >> confdefs.h <<\EOF 349879968Sobrien#define HAVE_PRINTF_QD 1 349979968SobrienEOF 350079968Sobrien 350179968Sobrien 350279968Sobrienelse 350379968Sobrien echo "configure: failed program was:" >&5 350479968Sobrien cat conftest.$ac_ext >&5 350579968Sobrien rm -fr conftest* 350679968Sobrien 350779968Sobrien echo "$ac_t""no" 1>&6 350879968Sobrien 350979968Sobrienfi 351079968Sobrienrm -fr conftest* 351179968Sobrienfi 351279968Sobrien 351379968Sobrien fi 351479968Sobrien 351579968Sobrien if test $can_printf_longlong = yes; then 351679968Sobrien cat >> confdefs.h <<\EOF 351779968Sobrien#define HAVE_QUAD_SUPPORT 1 351879968SobrienEOF 351979968Sobrien 352079968Sobrien for ac_func in strtoll 352179968Sobriendo 352279968Sobrienecho $ac_n "checking for $ac_func""... $ac_c" 1>&6 3523106792Sobrienecho "configure:3524: checking for $ac_func" >&5 352479968Sobrienif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 352579968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 352679968Sobrienelse 352779968Sobrien cat > conftest.$ac_ext <<EOF 3528106792Sobrien#line 3529 "configure" 352979968Sobrien#include "confdefs.h" 353079968Sobrien/* System header to define __stub macros and hopefully few prototypes, 353179968Sobrien which can conflict with char $ac_func(); below. */ 353279968Sobrien#include <assert.h> 353379968Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 353479968Sobrien/* We use char because int might match the return type of a gcc2 353579968Sobrien builtin and then its argument prototype would still apply. */ 353679968Sobrienchar $ac_func(); 353779968Sobrien 353879968Sobrienint main() { 353979968Sobrien 354079968Sobrien/* The GNU C library defines this for functions which it implements 354179968Sobrien to always fail with ENOSYS. Some functions are actually named 354279968Sobrien something starting with __ and the normal name is an alias. */ 354379968Sobrien#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 354479968Sobrienchoke me 354579968Sobrien#else 354679968Sobrien$ac_func(); 354779968Sobrien#endif 354879968Sobrien 354979968Sobrien; return 0; } 355079968SobrienEOF 3551106792Sobrienif { (eval echo configure:3552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 355279968Sobrien rm -rf conftest* 355379968Sobrien eval "ac_cv_func_$ac_func=yes" 355479968Sobrienelse 355579968Sobrien echo "configure: failed program was:" >&5 355679968Sobrien cat conftest.$ac_ext >&5 355779968Sobrien rm -rf conftest* 355879968Sobrien eval "ac_cv_func_$ac_func=no" 355979968Sobrienfi 356079968Sobrienrm -f conftest* 356179968Sobrienfi 356279968Sobrien 356379968Sobrienif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 356479968Sobrien echo "$ac_t""yes" 1>&6 356579968Sobrien ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 356679968Sobrien cat >> confdefs.h <<EOF 356779968Sobrien#define $ac_tr_func 1 356879968SobrienEOF 356979968Sobrien 357079968Sobrienelse 357179968Sobrien echo "$ac_t""no" 1>&6 357279968SobrienLIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" 357379968Sobrienfi 357479968Sobriendone 357579968Sobrien 357679968Sobrien 357779968Sobrien fi 357879968Sobrien 357979968Sobrienfi 358079968Sobrien 358179968Sobrien 358279968Sobrienhave_rfc2553_netdb=no 358379968Sobrienif test $ac_cv_func_getaddrinfo = yes -a ! -n "$socks"; then 358479968Sobrien 358579968Sobrien echo $ac_n "checking for AI_NUMERICHOST""... $ac_c" 1>&6 3586106792Sobrienecho "configure:3587: checking for AI_NUMERICHOST" >&5 358779968Sobrienif eval "test \"`echo '$''{'ftp_cv_have_ai_numerichost'+set}'`\" = set"; then 358879968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 358979968Sobrienelse 359079968Sobrien 359179968Sobrien cat > conftest.$ac_ext <<EOF 3592106792Sobrien#line 3593 "configure" 359379968Sobrien#include "confdefs.h" 359479968Sobrien 359579968Sobrien #include <sys/types.h> 359679968Sobrien #include <sys/socket.h> 359779968Sobrien #include <netdb.h> 359879968Sobrienint main() { 359979968Sobrien int X = AI_NUMERICHOST ; 360079968Sobrien; return 0; } 360179968SobrienEOF 3602106792Sobrienif { (eval echo configure:3603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 360379968Sobrien rm -rf conftest* 360479968Sobrien ftp_cv_have_ai_numerichost=yes 360579968Sobrienelse 360679968Sobrien echo "configure: failed program was:" >&5 360779968Sobrien cat conftest.$ac_ext >&5 360879968Sobrien rm -rf conftest* 360979968Sobrien ftp_cv_have_ai_numerichost=no 361079968Sobrienfi 361179968Sobrienrm -f conftest* 361279968Sobrien 361379968Sobrienfi 361479968Sobrien 361579968Sobrienecho "$ac_t""$ftp_cv_have_ai_numerichost" 1>&6 361679968Sobrien if test "x$ftp_cv_have_ai_numerichost" = "xyes"; then 361779968Sobrien have_rfc2553_netdb=yes 361879968Sobrien else 361979968Sobrien 362079968Sobrien : 362179968Sobrien fi 362279968Sobrien 362379968Sobrienfi 362479968Sobrienecho $ac_n "checking for working getaddrinfo()""... $ac_c" 1>&6 3625106792Sobrienecho "configure:3626: checking for working getaddrinfo()" >&5 362679968Sobrienif test $have_rfc2553_netdb = yes; then 362779968Sobrien cat >> confdefs.h <<\EOF 362879968Sobrien#define HAVE_RFC2553_NETDB 1 362979968SobrienEOF 363079968Sobrien 363179968Sobrien echo "$ac_t""yes" 1>&6 363279968Sobrienelse 363379968Sobrien if test $ac_cv_func_getaddrinfo = yes; then 363479968Sobrien LIBOBJS="$LIBOBJS getaddrinfo.o" 363579968Sobrien echo "$ac_t""no - using local version" 1>&6 363679968Sobrien else 363779968Sobrien echo "$ac_t""using local version" 1>&6 363879968Sobrien fi 363979968Sobrienfi 364079968Sobrien 364179968Sobrienif test $ac_cv_func_sl_init = yes; then 364279968Sobrien 364379968Sobrien echo $ac_n "checking if sl_add() returns int""... $ac_c" 1>&6 3644106792Sobrienecho "configure:3645: checking if sl_add() returns int" >&5 364579968Sobrienif eval "test \"`echo '$''{'ftp_cv_INT_SL_ADD'+set}'`\" = set"; then 364679968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 364779968Sobrienelse 364879968Sobrien 364979968Sobrien cat > conftest.$ac_ext <<EOF 3650106792Sobrien#line 3651 "configure" 365179968Sobrien#include "confdefs.h" 365279968Sobrien 365379968Sobrien #include <stringlist.h> 365479968Sobrienint main() { 365579968Sobrien int f = sl_add((StringList *)0, "foo") ; 365679968Sobrien; return 0; } 365779968SobrienEOF 3658106792Sobrienif { (eval echo configure:3659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 365979968Sobrien rm -rf conftest* 366079968Sobrien ftp_cv_INT_SL_ADD=yes 366179968Sobrienelse 366279968Sobrien echo "configure: failed program was:" >&5 366379968Sobrien cat conftest.$ac_ext >&5 366479968Sobrien rm -rf conftest* 366579968Sobrien ftp_cv_INT_SL_ADD=no 366679968Sobrienfi 366779968Sobrienrm -f conftest* 366879968Sobrien 366979968Sobrienfi 367079968Sobrien 367179968Sobrienecho "$ac_t""$ftp_cv_INT_SL_ADD" 1>&6 367279968Sobrien if test "x$ftp_cv_INT_SL_ADD" = "xyes"; then 367379968Sobrien : 367479968Sobrien else 367579968Sobrien LIBOBJS="$LIBOBJS sl_init.o" 367679968Sobrien : 367779968Sobrien fi 367879968Sobrien 367979968Sobrienfi 368079968Sobrien 368179968Sobrien 368279968Sobrien 368379968Sobrienif test $opt_builtinls = yes; then 368479968Sobrien for ac_func in fts_open strmode user_from_uid 368579968Sobriendo 368679968Sobrienecho $ac_n "checking for $ac_func""... $ac_c" 1>&6 3687106792Sobrienecho "configure:3688: checking for $ac_func" >&5 368879968Sobrienif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 368979968Sobrien echo $ac_n "(cached) $ac_c" 1>&6 369079968Sobrienelse 369179968Sobrien cat > conftest.$ac_ext <<EOF 3692106792Sobrien#line 3693 "configure" 369379968Sobrien#include "confdefs.h" 369479968Sobrien/* System header to define __stub macros and hopefully few prototypes, 369579968Sobrien which can conflict with char $ac_func(); below. */ 369679968Sobrien#include <assert.h> 369779968Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 369879968Sobrien/* We use char because int might match the return type of a gcc2 369979968Sobrien builtin and then its argument prototype would still apply. */ 370079968Sobrienchar $ac_func(); 370179968Sobrien 370279968Sobrienint main() { 370379968Sobrien 370479968Sobrien/* The GNU C library defines this for functions which it implements 370579968Sobrien to always fail with ENOSYS. Some functions are actually named 370679968Sobrien something starting with __ and the normal name is an alias. */ 370779968Sobrien#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 370879968Sobrienchoke me 370979968Sobrien#else 371079968Sobrien$ac_func(); 371179968Sobrien#endif 371279968Sobrien 371379968Sobrien; return 0; } 371479968SobrienEOF 3715106792Sobrienif { (eval echo configure:3716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 371679968Sobrien rm -rf conftest* 371779968Sobrien eval "ac_cv_func_$ac_func=yes" 371879968Sobrienelse 371979968Sobrien echo "configure: failed program was:" >&5 372079968Sobrien cat conftest.$ac_ext >&5 372179968Sobrien rm -rf conftest* 372279968Sobrien eval "ac_cv_func_$ac_func=no" 372379968Sobrienfi 372479968Sobrienrm -f conftest* 372579968Sobrienfi 372679968Sobrien 372779968Sobrienif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 372879968Sobrien echo "$ac_t""yes" 1>&6 372979968Sobrien ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 373079968Sobrien cat >> confdefs.h <<EOF 373179968Sobrien#define $ac_tr_func 1 373279968SobrienEOF 373379968Sobrien 373479968Sobrienelse 373579968Sobrien echo "$ac_t""no" 1>&6 373679968SobrienLIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" 373779968Sobrienfi 373879968Sobriendone 373979968Sobrien 374079968Sobrien 374179968Sobrien LSOBJS="cmp.o ls.o print.o util.o" 374279968Sobrienelse 374379968Sobrien cat >> confdefs.h <<\EOF 374479968Sobrien#define NO_INTERNAL_LS 1 374579968SobrienEOF 374679968Sobrien 374779968Sobrienfi 374879968Sobrien 374979968Sobrien 375079968Sobrien 375179968Sobrienif test -n "$LIBOBJS"; then 375279968Sobrien INCLUDES="$INCLUDES -I\${srcdir}/../libukem" 375379968Sobrien LDFLAGS="$LDFLAGS -L../libukem" 375479968Sobrien LIBS="$LIBS -lukem" 375579968Sobrien LIBUKEM=libukem.a 375679968Sobrien LIBDEPENDS="$LIBDEPENDS ../libukem/libukem.a" 375779968Sobrienfi 375879968Sobrien 375979968Sobrien 376079968Sobrien 376179968Sobrien 376279968Sobrien 376379968Sobrien 376479968Sobrien 376579968Sobrien 376679968Sobrientrap '' 1 2 15 376779968Sobriencat > confcache <<\EOF 376879968Sobrien# This file is a shell script that caches the results of configure 376979968Sobrien# tests run on this system so they can be shared between configure 377079968Sobrien# scripts and configure runs. It is not useful on other systems. 377179968Sobrien# If it contains results you don't want to keep, you may remove or edit it. 377279968Sobrien# 377379968Sobrien# By default, configure uses ./config.cache as the cache file, 377479968Sobrien# creating it if it does not exist already. You can give configure 377579968Sobrien# the --cache-file=FILE option to use a different cache file; that is 377679968Sobrien# what configure does when it calls configure scripts in 377779968Sobrien# subdirectories, so they share the cache. 377879968Sobrien# Giving --cache-file=/dev/null disables caching, for debugging configure. 377979968Sobrien# config.status only pays attention to the cache file if you give it the 378079968Sobrien# --recheck option to rerun configure. 378179968Sobrien# 378279968SobrienEOF 378379968Sobrien# The following way of writing the cache mishandles newlines in values, 378479968Sobrien# but we know of no workaround that is simple, portable, and efficient. 378579968Sobrien# So, don't put newlines in cache variables' values. 378679968Sobrien# Ultrix sh set writes to stderr and can't be redirected directly, 378779968Sobrien# and sets the high bit in the cache file unless we assign to the vars. 378879968Sobrien(set) 2>&1 | 378979968Sobrien case `(ac_space=' '; set | grep ac_space) 2>&1` in 379079968Sobrien *ac_space=\ *) 379179968Sobrien # `set' does not quote correctly, so add quotes (double-quote substitution 379279968Sobrien # turns \\\\ into \\, and sed turns \\ into \). 379379968Sobrien sed -n \ 379479968Sobrien -e "s/'/'\\\\''/g" \ 379579968Sobrien -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 379679968Sobrien ;; 379779968Sobrien *) 379879968Sobrien # `set' quotes correctly as required by POSIX, so do not add quotes. 379979968Sobrien sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 380079968Sobrien ;; 380179968Sobrien esac >> confcache 380279968Sobrienif cmp -s $cache_file confcache; then 380379968Sobrien : 380479968Sobrienelse 380579968Sobrien if test -w $cache_file; then 380679968Sobrien echo "updating cache $cache_file" 380779968Sobrien cat confcache > $cache_file 380879968Sobrien else 380979968Sobrien echo "not updating unwritable cache $cache_file" 381079968Sobrien fi 381179968Sobrienfi 381279968Sobrienrm -f confcache 381379968Sobrien 381479968Sobrientrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 381579968Sobrien 381679968Sobrientest "x$prefix" = xNONE && prefix=$ac_default_prefix 381779968Sobrien# Let make expand exec_prefix. 381879968Sobrientest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 381979968Sobrien 382079968Sobrien# Any assignment to VPATH causes Sun make to only execute 382179968Sobrien# the first set of double-colon rules, so remove it if not needed. 382279968Sobrien# If there is a colon in the path, we need to keep it. 382379968Sobrienif test "x$srcdir" = x.; then 382479968Sobrien ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 382579968Sobrienfi 382679968Sobrien 382779968Sobrientrap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 382879968Sobrien 382979968SobrienDEFS=-DHAVE_CONFIG_H 383079968Sobrien 383179968Sobrien# Without the "./", some shells look in PATH for config.status. 383279968Sobrien: ${CONFIG_STATUS=./config.status} 383379968Sobrien 383479968Sobrienecho creating $CONFIG_STATUS 383579968Sobrienrm -f $CONFIG_STATUS 383679968Sobriencat > $CONFIG_STATUS <<EOF 383779968Sobrien#! /bin/sh 383879968Sobrien# Generated automatically by configure. 383979968Sobrien# Run this file to recreate the current configuration. 384079968Sobrien# This directory was configured as follows, 384179968Sobrien# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 384279968Sobrien# 384379968Sobrien# $0 $ac_configure_args 384479968Sobrien# 384579968Sobrien# Compiler output produced by configure, useful for debugging 384679968Sobrien# configure, is in ./config.log if it exists. 384779968Sobrien 384879968Sobrienac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 384979968Sobrienfor ac_option 385079968Sobriendo 385179968Sobrien case "\$ac_option" in 385279968Sobrien -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 385379968Sobrien echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 385479968Sobrien exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 385579968Sobrien -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 385679968Sobrien echo "$CONFIG_STATUS generated by autoconf version 2.13" 385779968Sobrien exit 0 ;; 385879968Sobrien -help | --help | --hel | --he | --h) 385979968Sobrien echo "\$ac_cs_usage"; exit 0 ;; 386079968Sobrien *) echo "\$ac_cs_usage"; exit 1 ;; 386179968Sobrien esac 386279968Sobriendone 386379968Sobrien 386479968Sobrienac_given_srcdir=$srcdir 386579968Sobrienac_given_INSTALL="$INSTALL" 386679968Sobrien 386779968Sobrientrap 'rm -fr `echo "Makefile libukem/Makefile src/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 386879968SobrienEOF 386979968Sobriencat >> $CONFIG_STATUS <<EOF 387079968Sobrien 387179968Sobrien# Protect against being on the right side of a sed subst in config.status. 387279968Sobriensed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 387379968Sobrien s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 387479968Sobrien$ac_vpsub 387579968Sobrien$extrasub 387679968Sobriens%@SHELL@%$SHELL%g 387779968Sobriens%@CFLAGS@%$CFLAGS%g 387879968Sobriens%@CPPFLAGS@%$CPPFLAGS%g 387979968Sobriens%@CXXFLAGS@%$CXXFLAGS%g 388079968Sobriens%@FFLAGS@%$FFLAGS%g 388179968Sobriens%@DEFS@%$DEFS%g 388279968Sobriens%@LDFLAGS@%$LDFLAGS%g 388379968Sobriens%@LIBS@%$LIBS%g 388479968Sobriens%@exec_prefix@%$exec_prefix%g 388579968Sobriens%@prefix@%$prefix%g 388679968Sobriens%@program_transform_name@%$program_transform_name%g 388779968Sobriens%@bindir@%$bindir%g 388879968Sobriens%@sbindir@%$sbindir%g 388979968Sobriens%@libexecdir@%$libexecdir%g 389079968Sobriens%@datadir@%$datadir%g 389179968Sobriens%@sysconfdir@%$sysconfdir%g 389279968Sobriens%@sharedstatedir@%$sharedstatedir%g 389379968Sobriens%@localstatedir@%$localstatedir%g 389479968Sobriens%@libdir@%$libdir%g 389579968Sobriens%@includedir@%$includedir%g 389679968Sobriens%@oldincludedir@%$oldincludedir%g 389779968Sobriens%@infodir@%$infodir%g 389879968Sobriens%@mandir@%$mandir%g 389979968Sobriens%@SET_MAKE@%$SET_MAKE%g 390079968Sobriens%@CC@%$CC%g 390179968Sobriens%@AWK@%$AWK%g 390279968Sobriens%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 390379968Sobriens%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 390479968Sobriens%@INSTALL_DATA@%$INSTALL_DATA%g 390579968Sobriens%@RANLIB@%$RANLIB%g 390679968Sobriens%@YACC@%$YACC%g 390779968Sobriens%@AR@%$AR%g 390879968Sobriens%@CPP@%$CPP%g 390979968Sobriens%@LIBOBJS@%$LIBOBJS%g 391079968Sobriens%@INCLUDES@%$INCLUDES%g 391179968Sobriens%@LIBUKEM@%$LIBUKEM%g 391279968Sobriens%@LIBDEPENDS@%$LIBDEPENDS%g 391379968Sobriens%@LSOBJS@%$LSOBJS%g 391479968Sobrien 391579968SobrienCEOF 391679968SobrienEOF 391779968Sobrien 391879968Sobriencat >> $CONFIG_STATUS <<\EOF 391979968Sobrien 392079968Sobrien# Split the substitutions into bite-sized pieces for seds with 392179968Sobrien# small command number limits, like on Digital OSF/1 and HP-UX. 392279968Sobrienac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 392379968Sobrienac_file=1 # Number of current file. 392479968Sobrienac_beg=1 # First line for current file. 392579968Sobrienac_end=$ac_max_sed_cmds # Line after last line for current file. 392679968Sobrienac_more_lines=: 392779968Sobrienac_sed_cmds="" 392879968Sobrienwhile $ac_more_lines; do 392979968Sobrien if test $ac_beg -gt 1; then 393079968Sobrien sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 393179968Sobrien else 393279968Sobrien sed "${ac_end}q" conftest.subs > conftest.s$ac_file 393379968Sobrien fi 393479968Sobrien if test ! -s conftest.s$ac_file; then 393579968Sobrien ac_more_lines=false 393679968Sobrien rm -f conftest.s$ac_file 393779968Sobrien else 393879968Sobrien if test -z "$ac_sed_cmds"; then 393979968Sobrien ac_sed_cmds="sed -f conftest.s$ac_file" 394079968Sobrien else 394179968Sobrien ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 394279968Sobrien fi 394379968Sobrien ac_file=`expr $ac_file + 1` 394479968Sobrien ac_beg=$ac_end 394579968Sobrien ac_end=`expr $ac_end + $ac_max_sed_cmds` 394679968Sobrien fi 394779968Sobriendone 394879968Sobrienif test -z "$ac_sed_cmds"; then 394979968Sobrien ac_sed_cmds=cat 395079968Sobrienfi 395179968SobrienEOF 395279968Sobrien 395379968Sobriencat >> $CONFIG_STATUS <<EOF 395479968Sobrien 395579968SobrienCONFIG_FILES=\${CONFIG_FILES-"Makefile libukem/Makefile src/Makefile"} 395679968SobrienEOF 395779968Sobriencat >> $CONFIG_STATUS <<\EOF 395879968Sobrienfor ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 395979968Sobrien # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 396079968Sobrien case "$ac_file" in 396179968Sobrien *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 396279968Sobrien ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 396379968Sobrien *) ac_file_in="${ac_file}.in" ;; 396479968Sobrien esac 396579968Sobrien 396679968Sobrien # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 396779968Sobrien 396879968Sobrien # Remove last slash and all that follows it. Not all systems have dirname. 396979968Sobrien ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 397079968Sobrien if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 397179968Sobrien # The file is in a subdirectory. 397279968Sobrien test ! -d "$ac_dir" && mkdir "$ac_dir" 397379968Sobrien ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 397479968Sobrien # A "../" for each directory in $ac_dir_suffix. 397579968Sobrien ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 397679968Sobrien else 397779968Sobrien ac_dir_suffix= ac_dots= 397879968Sobrien fi 397979968Sobrien 398079968Sobrien case "$ac_given_srcdir" in 398179968Sobrien .) srcdir=. 398279968Sobrien if test -z "$ac_dots"; then top_srcdir=. 398379968Sobrien else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 398479968Sobrien /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 398579968Sobrien *) # Relative path. 398679968Sobrien srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 398779968Sobrien top_srcdir="$ac_dots$ac_given_srcdir" ;; 398879968Sobrien esac 398979968Sobrien 399079968Sobrien case "$ac_given_INSTALL" in 399179968Sobrien [/$]*) INSTALL="$ac_given_INSTALL" ;; 399279968Sobrien *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 399379968Sobrien esac 399479968Sobrien 399579968Sobrien echo creating "$ac_file" 399679968Sobrien rm -f "$ac_file" 399779968Sobrien configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 399879968Sobrien case "$ac_file" in 399979968Sobrien *Makefile*) ac_comsub="1i\\ 400079968Sobrien# $configure_input" ;; 400179968Sobrien *) ac_comsub= ;; 400279968Sobrien esac 400379968Sobrien 400479968Sobrien ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 400579968Sobrien sed -e "$ac_comsub 400679968Sobriens%@configure_input@%$configure_input%g 400779968Sobriens%@srcdir@%$srcdir%g 400879968Sobriens%@top_srcdir@%$top_srcdir%g 400979968Sobriens%@INSTALL@%$INSTALL%g 401079968Sobrien" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 401179968Sobrienfi; done 401279968Sobrienrm -f conftest.s* 401379968Sobrien 401479968Sobrien# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 401579968Sobrien# NAME is the cpp macro being defined and VALUE is the value it is being given. 401679968Sobrien# 401779968Sobrien# ac_d sets the value in "#define NAME VALUE" lines. 401879968Sobrienac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 401979968Sobrienac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 402079968Sobrienac_dC='\3' 402179968Sobrienac_dD='%g' 402279968Sobrien# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 402379968Sobrienac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 402479968Sobrienac_uB='\([ ]\)%\1#\2define\3' 402579968Sobrienac_uC=' ' 402679968Sobrienac_uD='\4%g' 402779968Sobrien# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 402879968Sobrienac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 402979968Sobrienac_eB='$%\1#\2define\3' 403079968Sobrienac_eC=' ' 403179968Sobrienac_eD='%g' 403279968Sobrien 403379968Sobrienif test "${CONFIG_HEADERS+set}" != set; then 403479968SobrienEOF 403579968Sobriencat >> $CONFIG_STATUS <<EOF 403679968Sobrien CONFIG_HEADERS="config.h" 403779968SobrienEOF 403879968Sobriencat >> $CONFIG_STATUS <<\EOF 403979968Sobrienfi 404079968Sobrienfor ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 404179968Sobrien # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 404279968Sobrien case "$ac_file" in 404379968Sobrien *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 404479968Sobrien ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 404579968Sobrien *) ac_file_in="${ac_file}.in" ;; 404679968Sobrien esac 404779968Sobrien 404879968Sobrien echo creating $ac_file 404979968Sobrien 405079968Sobrien rm -f conftest.frag conftest.in conftest.out 405179968Sobrien ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 405279968Sobrien cat $ac_file_inputs > conftest.in 405379968Sobrien 405479968SobrienEOF 405579968Sobrien 405679968Sobrien# Transform confdefs.h into a sed script conftest.vals that substitutes 405779968Sobrien# the proper values into config.h.in to produce config.h. And first: 405879968Sobrien# Protect against being on the right side of a sed subst in config.status. 405979968Sobrien# Protect against being in an unquoted here document in config.status. 406079968Sobrienrm -f conftest.vals 406179968Sobriencat > conftest.hdr <<\EOF 406279968Sobriens/[\\&%]/\\&/g 406379968Sobriens%[\\$`]%\\&%g 406479968Sobriens%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 406579968Sobriens%ac_d%ac_u%gp 406679968Sobriens%ac_u%ac_e%gp 406779968SobrienEOF 406879968Sobriensed -n -f conftest.hdr confdefs.h > conftest.vals 406979968Sobrienrm -f conftest.hdr 407079968Sobrien 407179968Sobrien# This sed command replaces #undef with comments. This is necessary, for 407279968Sobrien# example, in the case of _POSIX_SOURCE, which is predefined and required 407379968Sobrien# on some systems where configure will not decide to define it. 407479968Sobriencat >> conftest.vals <<\EOF 407579968Sobriens%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 407679968SobrienEOF 407779968Sobrien 407879968Sobrien# Break up conftest.vals because some shells have a limit on 407979968Sobrien# the size of here documents, and old seds have small limits too. 408079968Sobrien 408179968Sobrienrm -f conftest.tail 408279968Sobrienwhile : 408379968Sobriendo 408479968Sobrien ac_lines=`grep -c . conftest.vals` 408579968Sobrien # grep -c gives empty output for an empty file on some AIX systems. 408679968Sobrien if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 408779968Sobrien # Write a limited-size here document to conftest.frag. 408879968Sobrien echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 408979968Sobrien sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 409079968Sobrien echo 'CEOF 409179968Sobrien sed -f conftest.frag conftest.in > conftest.out 409279968Sobrien rm -f conftest.in 409379968Sobrien mv conftest.out conftest.in 409479968Sobrien' >> $CONFIG_STATUS 409579968Sobrien sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 409679968Sobrien rm -f conftest.vals 409779968Sobrien mv conftest.tail conftest.vals 409879968Sobriendone 409979968Sobrienrm -f conftest.vals 410079968Sobrien 410179968Sobriencat >> $CONFIG_STATUS <<\EOF 410279968Sobrien rm -f conftest.frag conftest.h 410379968Sobrien echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 410479968Sobrien cat conftest.in >> conftest.h 410579968Sobrien rm -f conftest.in 410679968Sobrien if cmp -s $ac_file conftest.h 2>/dev/null; then 410779968Sobrien echo "$ac_file is unchanged" 410879968Sobrien rm -f conftest.h 410979968Sobrien else 411079968Sobrien # Remove last slash and all that follows it. Not all systems have dirname. 411179968Sobrien ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 411279968Sobrien if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 411379968Sobrien # The file is in a subdirectory. 411479968Sobrien test ! -d "$ac_dir" && mkdir "$ac_dir" 411579968Sobrien fi 411679968Sobrien rm -f $ac_file 411779968Sobrien mv conftest.h $ac_file 411879968Sobrien fi 411979968Sobrienfi; done 412079968Sobrien 412179968SobrienEOF 412279968Sobriencat >> $CONFIG_STATUS <<EOF 412379968Sobrien 412479968SobrienEOF 412579968Sobriencat >> $CONFIG_STATUS <<\EOF 412679968Sobrien 412779968Sobrienexit 0 412879968SobrienEOF 412979968Sobrienchmod +x $CONFIG_STATUS 413079968Sobrienrm -fr confdefs* $ac_clean_files 413179968Sobrientest "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 413279968Sobrien 4133