#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated automatically using Autoconf version 2.14a. # Copyright (C) 1992, 93, 94, 95, 96, 98, 99, 2000 # Free Software Foundation, Inc. # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. # Defaults: ac_default_prefix=/usr/local # Any additions from configure.in: # Initialize some variables set by options. ac_init_help=false ac_init_version=false # The variables have the same names as the options, with # dashes changed to underlines. build=NONE cache_file=./config.cache exec_prefix=NONE host=NONE no_create= nonopt=NONE no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= target=NONE verbose= x_includes=NONE x_libraries=NONE bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datadir='${prefix}/share' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' libdir='${exec_prefix}/lib' includedir='${prefix}/include' oldincludedir='/usr/include' infodir='${prefix}/info' mandir='${prefix}/man' # Initialize some other variables. subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Maximum number of lines to put in a shell here document. : ${ac_max_here_lines=48} # Sed expression to map a string onto a valid sh and CPP variable names. ac_tr_sh='sed -e y%*+%pp%;s%[^a-zA-Z0-9_]%_%g' ac_tr_cpp='sed -e y%*abcdefghijklmnopqrstuvwxyz%PABCDEFGHIJKLMNOPQRSTUVWXYZ%;s%[^A-Z0-9_]%_%g' ac_prev= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval "$ac_prev=\$ac_option" ac_prev= continue fi ac_optarg=`echo "$ac_option" | sed -n 's/^[^=]*=//p'` # Accept the important Cygnus configure options, so we can diagnose typos. case "$ac_option" in -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir="$ac_optarg" ;; -build | --build | --buil | --bui | --bu) ac_prev=build ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build="$ac_optarg" ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file="$ac_optarg" ;; -datadir | --datadir | --datadi | --datad | --data | --dat | --da) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | --da=*) datadir="$ac_optarg" ;; -disable-* | --disable-*) ac_feature=`echo "$ac_option"|sed -e 's/-*disable-//'` # Reject names that are not valid shell variable names. if echo "$ac_feature" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then { echo "configure: error: invalid feature: $ac_feature" 1>&2; exit 1; } fi ac_feature=`echo $ac_feature| sed 's/-/_/g'` eval "enable_${ac_feature}=no" ;; -enable-* | --enable-*) ac_feature=`echo "$ac_option"|sed -e 's/-*enable-//' -e 's/=.*//'` # Reject names that are not valid shell variable names. if echo "$ac_feature" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then { echo "configure: error: invalid feature: $ac_feature" 1>&2; exit 1; } fi ac_feature=`echo $ac_feature| sed 's/-/_/g'` case "$ac_option" in *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; *) ac_optarg=yes ;; esac eval "enable_${ac_feature}='$ac_optarg'" ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix="$ac_optarg" ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=: ;; -host | --host | --hos | --ho) ac_prev=host ;; -host=* | --host=* | --hos=* | --ho=*) host="$ac_optarg" ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir="$ac_optarg" ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir="$ac_optarg" ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir="$ac_optarg" ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir="$ac_optarg" ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst \ | --locals | --local | --loca | --loc | --lo) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) localstatedir="$ac_optarg" ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir="$ac_optarg" ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir="$ac_optarg" ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix="$ac_optarg" ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix="$ac_optarg" ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix="$ac_optarg" ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name="$ac_optarg" ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir="$ac_optarg" ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir="$ac_optarg" ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site="$ac_optarg" ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir="$ac_optarg" ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir="$ac_optarg" ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target="$ac_optarg" ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_package=`echo "$ac_option"|sed -e 's/-*with-//' -e 's/=.*//'` # Reject names that are not valid shell variable names. if echo "$ac_package" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then { echo "configure: error: invalid package: $ac_package" 1>&2; exit 1; } fi ac_package=`echo $ac_package| sed 's/-/_/g'` case "$ac_option" in *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; *) ac_optarg=yes ;; esac eval "with_${ac_package}='$ac_optarg'" ;; -without-* | --without-*) ac_package=`echo "$ac_option"|sed -e 's/-*without-//'` # Reject names that are not valid shell variable names. if echo "$ac_package" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then { echo "configure: error: invalid package: $ac_package" 1>&2; exit 1; } fi ac_package=`echo $ac_package| sed 's/-/_/g'` eval "with_${ac_package}=no" ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes="$ac_optarg" ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries="$ac_optarg" ;; -*) { echo "configure: error: unrecognized option: $ac_option Try \`configure --help' for more information." 1>&2; exit 1; } ;; *=*) ac_envvar=`echo "$ac_option" | sed -e 's/=.*//'` # Reject names that are not valid shell variable names. if echo "$ac_envvar" | grep '[^a-zA-Z0-9_]' >/dev/null 2>&1; then { echo "configure: error: invalid variable name: $ac_envvar" 1>&2; exit 1; } fi ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` eval "$ac_envvar='$ac_optarg'" export $ac_envvar ;; *) if echo "$ac_option" | grep '[^-a-zA-Z0-9.]' >/dev/null 2>&1; then echo "configure: warning: invalid host type: $ac_option" 1>&2 fi if test "x$nonopt" != xNONE; then { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } fi nonopt="$ac_option" ;; esac done if test -n "$ac_prev"; then { echo "configure: error: missing argument to --\`echo $ac_prev | sed 's/_/-/g'\`" 1>&2; exit 1; } fi if $ac_init_help; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<\EOF `configure' configures software source code packages to adapt to many kinds of systems. Usage: configure [OPTION]... [VAR=VALUE]... [HOST] To safely assign special values to environment variables (e.g., CC, CFLAGS...), give to `configure' the definition as VAR=VALUE. Defaults for the options are specified in brackets. Configuration: -h, --help print this message -V, --version print the version of autoconf that created configure -q, --quiet, --silent do not print `checking...' messages --cache-file=FILE cache test results in FILE -n, --no-create do not create output files EOF cat </dev/null else exec 6>&1 fi exec 5>./config.log echo "\ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. " 1>&5 # Strip out --no-create and --no-recursion so they do not pile up. # Also quote any args containing shell meta-characters. ac_configure_args= for ac_arg do case "$ac_arg" in -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c) ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ac_configure_args="$ac_configure_args '$ac_arg'" ;; *) ac_configure_args="$ac_configure_args $ac_arg" ;; esac done # NLS nuisances. # Only set these to C if already set. These must not be set unconditionally # because not all systems understand e.g. LANG=C (notably SCO). # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! # Non-C LC_CTYPE values break the ctype check. if test "${LANG+set}" = set; then LANG=C; export LANG; fi if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -rf conftest* confdefs.h # AIX cpp loses on an empty file, so make sure it contains at least a newline. echo >confdefs.h # A filename unique to this package, relative to the directory that # configure is in, which we can look for to find out if srcdir is correct. ac_unique_file=src/main.c # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then its parent. ac_prog=$0 ac_confdir=`echo "$ac_prog" | sed 's%/[^/][^/]*$%%'` test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. srcdir=$ac_confdir if test ! -r $srcdir/$ac_unique_file; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r $srcdir/$ac_unique_file; then if test "$ac_srcdir_defaulted" = yes; then { echo "configure: error: cannot find sources in $ac_confdir or .." 1>&2; exit 1; } else { echo "configure: error: cannot find sources in $srcdir" 1>&2; exit 1; } fi fi srcdir=`echo "$srcdir" | sed 's%\([^/]\)/*$%\1%'` # Prefer explicitly selected file to automatically selected ones. if test -z "$CONFIG_SITE"; then if test "x$prefix" != xNONE; then CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" else CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi fi for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then echo "loading site script $ac_site_file" . "$ac_site_file" fi done if test -r "$cache_file"; then echo "loading cache $cache_file" test -f "$cache_file" && . $cache_file else echo "creating cache $cache_file" >$cache_file fi ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross ac_exeext= ac_objext=o # Factoring default headers for most tests. ac_includes_default="\ #include #include #if STDC_HEADERS # include # include #else # if HAVE_STDLIB_H # include # endif #endif #if HAVE_STRING_H # if !STDC_HEADERS && HAVE_MEMORY_H # include # endif # include #else # if HAVE_STRINGS_H # include # endif #endif #if HAVE_INTTYPES_H # include #endif #if HAVE_UNISTD_H # include #endif" if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then # Stardent Vistra SVR4 grep lacks -e, says Kaveh R. Ghazi. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then ECHO_N= ECHO_C=' ' ECHO_T=' ' else ECHO_N=-n ECHO_C= ECHO_T= fi else ECHO_N= ECHO_C='\c' ECHO_T= fi ac_aux_dir= for ac_dir in auxdir $srcdir/auxdir; do if test -f $ac_dir/install-sh; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f $ac_dir/install.sh; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f $ac_dir/shtool; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then { echo "configure: error: cannot find install-sh or install.sh in auxdir $srcdir/auxdir" 1>&2; exit 1; } fi ac_config_guess="$SHELL $ac_aux_dir/config.guess" ac_config_sub="$SHELL $ac_aux_dir/config.sub" ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. # Initialize automake # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" 1>&6 echo "configure:648: checking for a BSD compatible install" 1>&5 if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" for ac_dir in $PATH; do # Account for people who put trailing slashes in PATH elements. case "$ac_dir/" in /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do if test -f $ac_dir/$ac_prog; then if test $ac_prog = install && grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else ac_cv_path_install="$ac_dir/$ac_prog -c" break 2 fi fi done ;; esac done IFS="$ac_save_IFS" fi if test "${ac_cv_path_install+set}" = set; then INSTALL="$ac_cv_path_install" else # As a last resort, use the slow shell script. We don't cache a # path for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the path is relative. INSTALL="$ac_install_sh" fi fi echo "$ECHO_T""$INSTALL" 1>&6 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' echo $ECHO_N "checking whether build environment is sane... $ECHO_C" 1>&6 echo "configure:705: checking whether build environment is sane" 1>&5 # Just in case sleep 1 echo timestamp > conftestfile # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftestfile` fi if test "$*" != "X $srcdir/configure conftestfile" \ && test "$*" != "X conftestfile $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". { echo "configure: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" 1>&2; exit 1; } fi test "$2" = conftestfile ) then # Ok. : else { echo "configure: error: newly created file is older than distributed files! Check your system clock" 1>&2; exit 1; } fi rm -f conftest* echo "$ECHO_T""yes" 1>&6 if test "$program_transform_name" = s,x,x,; then program_transform_name= else # Double any \ or $. echo might interpret backslashes. cat <<\EOF_SED >conftestsed s,\\,\\\\,g; s,\$,$$,g EOF_SED program_transform_name=`echo $program_transform_name|sed -f conftestsed` rm -f conftestsed fi test "$program_prefix" != NONE && program_transform_name="s,^,${program_prefix},;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s,\$\$,${program_suffix},;$program_transform_name" # sed with no file args requires a program. test "$program_transform_name" = "" && program_transform_name="s,x,x," test x"${MISSING+set}" = xset || \ MISSING="\${SHELL} `CDPATH=: && cd $ac_aux_dir && pwd`/missing" if eval "$MISSING --run :"; then am_missing_run="$MISSING --run " else am_missing_run= echo "configure: warning: \`missing' script is too old or missing" 1>&2 fi for ac_prog in mawk gawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:775: checking for $ac_word" 1>&5 if test "${ac_cv_prog_AWK+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else for ac_path in `IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then echo "$ac_dir/$ac_word" fi done IFS="$ac_save_ifs" `; do ac_cv_prog_AWK="$ac_prog" break done fi fi AWK="$ac_cv_prog_AWK" if test -n "$AWK"; then echo "$ECHO_T""$AWK" 1>&6 else echo "$ECHO_T""no" 1>&6 fi test -n "$AWK" && break done echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" 1>&6 echo "configure:808: checking whether ${MAKE-make} sets \${MAKE}" 1>&5 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftestmake <<\EOF all: @echo 'ac_maketemp="${MAKE}"' EOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` if test -n "$ac_maketemp"; then eval ac_cv_prog_make_${ac_make}_set=yes else eval ac_cv_prog_make_${ac_make}_set=no fi rm -f conftestmake fi if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then echo "$ECHO_T""yes" 1>&6 SET_MAKE= else echo "$ECHO_T""no" 1>&6 SET_MAKE="MAKE=${MAKE-make}" fi # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then enableval="$enable_dependency_tracking" : fi if test "x$enable_dependency_tracking" = xno; then AMDEP="#" else am_depcomp="$ac_aux_dir/depcomp" if test ! -f "$am_depcomp"; then AMDEP="#" else AMDEP= fi fi if test -z "$AMDEP"; then AMDEPBACKSLASH='\' else AMDEPBACKSLASH= fi if test -d .deps || mkdir .deps 2> /dev/null || test -d .deps; then DEPDIR=.deps else DEPDIR=_deps fi PACKAGE=a2ps VERSION=4.13 if test "`CDPATH=: && cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } fi cat >>confdefs.h <>confdefs.h <>confdefs.h <&6 echo "configure:915: checking for $ac_word" 1>&5 if test "${ac_cv_prog_AWK+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else for ac_path in `IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then echo "$ac_dir/$ac_word" fi done IFS="$ac_save_ifs" `; do ac_cv_prog_AWK="$ac_prog" break done fi fi AWK="$ac_cv_prog_AWK" if test -n "$AWK"; then echo "$ECHO_T""$AWK" 1>&6 else echo "$ECHO_T""no" 1>&6 fi test -n "$AWK" && break done for ac_prog in gm4 gnum4 m4 do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:952: checking for $ac_word" 1>&5 if test "${ac_cv_path_M4+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else case "$M4" in [/\\]* | ?:[/\\]*) ac_cv_path_M4="$M4" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_word"; then ac_cv_path_M4="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi M4="$ac_cv_path_M4" if test -n "$M4"; then echo "$ECHO_T""$M4" 1>&6 else echo "$ECHO_T""no" 1>&6 fi test -n "$M4" && break done test -n "$M4" || M4="m4" echo $ECHO_N "checking whether m4 supports frozen files... $ECHO_C" 1>&6 echo "configure:986: checking whether m4 supports frozen files" 1>&5 if test "${ac_cv_prog_gnu_m4+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else ac_cv_prog_gnu_m4=no if test x"$M4" != x; then case `$M4 --help < /dev/null 2>&1` in *reload-state*) ac_cv_prog_gnu_m4=yes ;; esac fi fi echo "$ECHO_T""$ac_cv_prog_gnu_m4" 1>&6 # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" 1>&6 echo "configure:1010: checking for a BSD compatible install" 1>&5 if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" for ac_dir in $PATH; do # Account for people who put trailing slashes in PATH elements. case "$ac_dir/" in /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do if test -f $ac_dir/$ac_prog; then if test $ac_prog = install && grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else ac_cv_path_install="$ac_dir/$ac_prog -c" break 2 fi fi done ;; esac done IFS="$ac_save_IFS" fi if test "${ac_cv_path_install+set}" = set; then INSTALL="$ac_cv_path_install" else # As a last resort, use the slow shell script. We don't cache a # path for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the path is relative. INSTALL="$ac_install_sh" fi fi echo "$ECHO_T""$INSTALL" 1>&6 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' echo $ECHO_N "checking whether ln -s works... $ECHO_C" 1>&6 echo "configure:1067: checking whether ln -s works" 1>&5 if test "${ac_cv_prog_LN_S+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else rm -f conftestdata if ln -s X conftestdata 2>/dev/null then rm -f conftestdata ac_cv_prog_LN_S="ln -s" else ac_cv_prog_LN_S=ln fi fi LN_S="$ac_cv_prog_LN_S" if test "$ac_cv_prog_LN_S" = "ln -s"; then echo "$ECHO_T""yes" 1>&6 else echo "$ECHO_T""no" 1>&6 fi echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" 1>&6 echo "configure:1088: checking whether ${MAKE-make} sets \${MAKE}" 1>&5 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftestmake <<\EOF all: @echo 'ac_maketemp="${MAKE}"' EOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` if test -n "$ac_maketemp"; then eval ac_cv_prog_make_${ac_make}_set=yes else eval ac_cv_prog_make_${ac_make}_set=no fi rm -f conftestmake fi if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then echo "$ECHO_T""yes" 1>&6 SET_MAKE= else echo "$ECHO_T""no" 1>&6 SET_MAKE="MAKE=${MAKE-make}" fi if test "${PERL+set}" = set; then # `PERL' is set in the user's environment. candidate_perl_names="$PERL" perl_specified=yes else candidate_perl_names='perl perl5' perl_specified=no fi found=no for perl_name in $candidate_perl_names; do # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Extract the first word of "$perl_name", so it can be a program name with args. set dummy $perl_name; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:1130: checking for $ac_word" 1>&5 if test "${ac_cv_path_PERL+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else case "$PERL" in [/\\]* | ?:[/\\]*) ac_cv_path_PERL="$PERL" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_word"; then ac_cv_path_PERL="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no" ;; esac fi PERL="$ac_cv_path_PERL" if test -n "$PERL"; then echo "$ECHO_T""$PERL" 1>&6 else echo "$ECHO_T""no" 1>&6 fi if test "$PERL" != "no" \ && ( $PERL -e 'require 5.003' ) > /dev/null 2>&1; then found=yes break fi done if test $found = no; then PERL="$missing_dir/missing perl" echo "configure: warning: *** You don't seem to have perl5.003 or newer installed. *** Because of that, you may be unable to regenerate certain files *** if you modify the sources from which they are derived. " 1>&2 fi # Check for the C compiler and the various oddities that may exist case "${CFLAGS+set} $ac_configure_args" in *" CFLAGS="* );; "set "*) ac_configure_args="CFLAGS='$CFLAGS' $ac_configure_args";; esac # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:1185: checking for $ac_word" 1>&5 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else for ac_path in `IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then echo "$ac_dir/$ac_word" fi done IFS="$ac_save_ifs" `; do ac_cv_prog_CC="gcc" break done fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ECHO_T""$CC" 1>&6 else echo "$ECHO_T""no" 1>&6 fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:1218: checking for $ac_word" 1>&5 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no for ac_path in `IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then echo "$ac_dir/$ac_word" fi done IFS="$ac_save_ifs" `; do if test "$ac_path" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" break done if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# -gt 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift set dummy "$ac_path" "$@" shift ac_cv_prog_CC="$@" fi fi fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ECHO_T""$CC" 1>&6 else echo "$ECHO_T""no" 1>&6 fi if test -z "$CC"; then for ac_prog in cl do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:1272: checking for $ac_word" 1>&5 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else for ac_path in `IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then echo "$ac_dir/$ac_word" fi done IFS="$ac_save_ifs" `; do ac_cv_prog_CC="$ac_prog" break done fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ECHO_T""$CC" 1>&6 else echo "$ECHO_T""no" 1>&6 fi test -n "$CC" && break done fi fi test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } echo $ECHO_N "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works... $ECHO_C" 1>&6 echo "configure:1310: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" 1>&5 ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cc_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then ac_cv_prog_cc_cross=no else ac_cv_prog_cc_cross=yes fi else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 ac_cv_prog_cc_works=no fi rm -fr conftest* ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross echo "$ECHO_T""$ac_cv_prog_cc_works" 1>&6 if test $ac_cv_prog_cc_works = no; then { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 77; } fi echo $ECHO_N "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler... $ECHO_C" 1>&6 echo "configure:1352: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" 1>&5 echo "$ECHO_T""$ac_cv_prog_cc_cross" 1>&6 cross_compiling=$ac_cv_prog_cc_cross echo $ECHO_N "checking whether we are using GNU C... $ECHO_C" 1>&6 echo "configure:1357: checking whether we are using GNU C" 1>&5 if test "${ac_cv_prog_gcc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no fi fi echo "$ECHO_T""$ac_cv_prog_gcc" 1>&6 if test $ac_cv_prog_gcc = yes; then GCC=yes else GCC= fi ac_test_CFLAGS="${CFLAGS+set}" ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ECHO_N "checking whether ${CC-cc} accepts -g... $ECHO_C" 1>&6 echo "configure:1384: checking whether ${CC-cc} accepts -g" 1>&5 if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else echo 'void f(){}' >conftest.c if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then ac_cv_prog_cc_g=yes else ac_cv_prog_cc_g=no fi rm -f conftest* fi echo "$ECHO_T""$ac_cv_prog_cc_g" 1>&6 if test "$ac_test_CFLAGS" = set; then CFLAGS="$ac_save_CFLAGS" elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" 1>&6 echo "configure:1415: checking how to run the C preprocessor" 1>&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else # This must be in double quotes, not single quotes, because CPP may get # substituted into the Makefile and "${CC-cc}" will confuse make. CPP="${CC-cc} -E" # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat >conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat >conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP="${CC-cc} -nologo -E" cat >conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP=/lib/cpp fi rm -f conftest* fi rm -f conftest* fi rm -f conftest* ac_cv_prog_CPP="$CPP" fi CPP="$ac_cv_prog_CPP" else ac_cv_prog_CPP="$CPP" fi echo "$ECHO_T""$CPP" 1>&6 depcc="$CC" depcpp="$CPP" echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" 1>&6 echo "configure:1497: checking dependency style of $depcc" 1>&5 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test -z "$AMDEP"; then echo '#include "conftest.h"' > conftest.c echo 'int i;' > conftest.h am_cv_CC_dependencies_compiler_type=none for depmode in `sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < "$am_depcomp"`; do case "$depmode" in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac if depmode="$depmode" \ source=conftest.c object=conftest.o \ depfile=conftest.Po tmpdepfile=conftest.TPo \ $SHELL $am_depcomp $depcc -c conftest.c 2>/dev/null && grep conftest.h conftest.Po > /dev/null 2>&1; then am_cv_CC_dependencies_compiler_type="$depmode" break fi done rm -f conftest.* else am_cv_CC_dependencies_compiler_type=none fi fi echo "$ECHO_T""$am_cv_CC_dependencies_compiler_type" 1>&6 CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type" echo $ECHO_N "checking for AIX... $ECHO_C" 1>&6 echo "configure:1541: checking for AIX" 1>&5 cat >conftest.$ac_ext <&5 | egrep "yes" >/dev/null 2>&1; then rm -rf conftest* echo "$ECHO_T""yes" 1>&6 cat >>confdefs.h <<\EOF #define _ALL_SOURCE 1 EOF else rm -rf conftest* echo "$ECHO_T""no" 1>&6 fi rm -f conftest* echo $ECHO_N "checking for minix/config.h... $ECHO_C" 1>&6 echo "configure:1565: checking for minix/config.h" 1>&5 if test "${ac_cv_header_minix_config_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* ac_cv_header_minix_config_h=yes else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_header_minix_config_h=no fi rm -f conftest* fi echo "$ECHO_T""$ac_cv_header_minix_config_h" 1>&6 if test $ac_cv_header_minix_config_h = yes; then MINIX=yes else MINIX= fi if test "$MINIX" = yes; then cat >>confdefs.h <<\EOF #define _POSIX_SOURCE 1 EOF cat >>confdefs.h <<\EOF #define _POSIX_1_SOURCE 2 EOF cat >>confdefs.h <<\EOF #define _MINIX 1 EOF fi echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" 1>&6 echo "configure:1613: checking for POSIXized ISC" 1>&5 if test -d /etc/conf/kconfig.d && grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 then echo "$ECHO_T""yes" 1>&6 ISC=yes # If later tests want to check for ISC. cat >>confdefs.h <<\EOF #define _POSIX_SOURCE 1 EOF if test "$GCC" = yes; then CC="$CC -posix" else CC="$CC -Xp" fi else echo "$ECHO_T""no" 1>&6 ISC= fi echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" 1>&6 echo "configure:1634: checking how to run the C preprocessor" 1>&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else # This must be in double quotes, not single quotes, because CPP may get # substituted into the Makefile and "${CC-cc}" will confuse make. CPP="${CC-cc} -E" # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat >conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat >conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP="${CC-cc} -nologo -E" cat >conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP=/lib/cpp fi rm -f conftest* fi rm -f conftest* fi rm -f conftest* ac_cv_prog_CPP="$CPP" fi CPP="$ac_cv_prog_CPP" else ac_cv_prog_CPP="$CPP" fi echo "$ECHO_T""$CPP" 1>&6 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" 1>&6 echo "configure:1714: checking for ${CC-cc} option to accept ANSI C" 1>&5 if test "${am_cv_prog_cc_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else am_cv_prog_cc_stdc=no ac_save_CC="$CC" # Don't try gcc -ansi; that turns off useful extensions and # breaks some systems' header files. # AIX -qlanglvl=ansi # Ultrix and OSF/1 -std1 # HP-UX 10.20 and later -Ae # HP-UX older versions -Aa -D_HPUX_SOURCE # SVR4 -Xc -D__EXTENSIONS__ for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" cat >conftest.$ac_ext < #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } EOF if { (eval echo configure:1772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* am_cv_prog_cc_stdc="$ac_arg"; break else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* done CC="$ac_save_CC" fi if test -z "$am_cv_prog_cc_stdc"; then echo "$ECHO_T""none needed" 1>&6 else echo "$ECHO_T""$am_cv_prog_cc_stdc" 1>&6 fi case "x$am_cv_prog_cc_stdc" in x|xno) ;; *) CC="$CC $am_cv_prog_cc_stdc" ;; esac echo $ECHO_N "checking for function prototypes... $ECHO_C" 1>&6 echo "configure:1796: checking for function prototypes" 1>&5 if test "$am_cv_prog_cc_stdc" != no; then echo "$ECHO_T""yes" 1>&6 cat >>confdefs.h <<\EOF #define PROTOTYPES 1 EOF U= ANSI2KNR= else echo "$ECHO_T""no" 1>&6 U=_ ANSI2KNR=./ansi2knr # Ensure some checks needed by ansi2knr itself. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6 echo "configure:1809: checking for ANSI C header files" 1>&5 if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < #include #include #include EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* ac_cv_header_stdc=yes else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_header_stdc=no fi rm -f conftest* if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "memchr" >/dev/null 2>&1; then : else rm -rf conftest* ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "free" >/dev/null 2>&1; then : else rm -rf conftest* ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext < #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); exit (0); } EOF if { (eval echo configure:1906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_header_stdc=no fi rm -fr conftest* fi fi fi echo "$ECHO_T""$ac_cv_header_stdc" 1>&6 if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\EOF #define STDC_HEADERS 1 EOF fi for ac_header in string.h do ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6 echo "configure:1933: checking for $ac_header" 1>&5 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "$ac_ac_Header=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "$ac_ac_Header=no" fi rm -f conftest* fi echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6 if test `eval echo '${'$ac_ac_Header'}'` = yes; then cat >>confdefs.h <&6 echo "configure:1974: checking for $ac_word" 1>&5 if test "${ac_cv_prog_YACC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test -n "$YACC"; then ac_cv_prog_YACC="$YACC" # Let the user override the test. else for ac_path in `IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then echo "$ac_dir/$ac_word" fi done IFS="$ac_save_ifs" `; do ac_cv_prog_YACC="$ac_prog" break done fi fi YACC="$ac_cv_prog_YACC" if test -n "$YACC"; then echo "$ECHO_T""$YACC" 1>&6 else echo "$ECHO_T""no" 1>&6 fi test -n "$YACC" && break done test -n "$YACC" || YACC="yacc" echo $ECHO_N "checking how to suppress newlines using echo... $ECHO_C" 1>&6 echo "configure:2008: checking how to suppress newlines using echo" 1>&5 if test "${fp_cv_prog_echo_nonl+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then fp_cv_prog_echo_nonl=no else fp_cv_prog_echo_nonl=option fi else fp_cv_prog_echo_nonl=escape fi fi echo "$ECHO_T""$fp_cv_prog_echo_nonl" 1>&6 test $fp_cv_prog_echo_nonl = no \ && echo 2>&1 "WARNING: \`echo' not powerful enough for \`make check'" case $fp_cv_prog_echo_nonl in no) ECHO_N= ECHO_C= ;; option) ECHO_N=-n ECHO_C= ;; escape) ECHO_N= ECHO_C='\c' ;; esac missing_dir=`cd $ac_aux_dir && pwd` GPERF=${GPERF-"${am_missing_run}gperf"} # I want flex, and only flex for ac_prog in flex lex do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:2044: checking for $ac_word" 1>&5 if test "${ac_cv_prog_LEX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test -n "$LEX"; then ac_cv_prog_LEX="$LEX" # Let the user override the test. else for ac_path in `IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then echo "$ac_dir/$ac_word" fi done IFS="$ac_save_ifs" `; do ac_cv_prog_LEX="$ac_prog" break done fi fi LEX="$ac_cv_prog_LEX" if test -n "$LEX"; then echo "$ECHO_T""$LEX" 1>&6 else echo "$ECHO_T""no" 1>&6 fi test -n "$LEX" && break done test -n "$LEX" || LEX="${am_missing_run}flex" # Extract the first word of "flex", so it can be a program name with args. set dummy flex; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:2080: checking for $ac_word" 1>&5 if test "${ac_cv_prog_LEX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test -n "$LEX"; then ac_cv_prog_LEX="$LEX" # Let the user override the test. else for ac_path in `IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then echo "$ac_dir/$ac_word" fi done IFS="$ac_save_ifs" `; do ac_cv_prog_LEX="flex" break done test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" fi fi LEX="$ac_cv_prog_LEX" if test -n "$LEX"; then echo "$ECHO_T""$LEX" 1>&6 else echo "$ECHO_T""no" 1>&6 fi if test -z "$LEXLIB" then case "$LEX" in flex*) ac_lib=fl ;; *) ac_lib=l ;; esac ac_ac_Lib=`echo "ac_cv_lib_$ac_lib_yywrap" | $ac_tr_sh` echo $ECHO_N "checking for yywrap in -l$ac_lib... $ECHO_C" 1>&6 echo "configure:2118: checking for yywrap in -l$ac_lib" 1>&5 if eval "test \"\${$ac_ac_Lib+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-l$ac_lib $LIBS" cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_Lib=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "$ac_ac_Lib=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi echo "$ECHO_T""`eval echo '${'$ac_ac_Lib'}'`" 1>&6 if test `eval echo '${'$ac_ac_Lib'}'` = yes; then LEXLIB="-l$ac_lib" fi fi echo $ECHO_N "checking lex output file root... $ECHO_C" 1>&6 echo "configure:2161: checking lex output file root" 1>&5 if test "${ac_cv_prog_lex_root+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else # The minimal lex program is just a single line: %%. But some broken lexes # (Solaris, I think it was) want two %% lines, so accommodate them. echo '%% %%' | $LEX if test -f lex.yy.c; then ac_cv_prog_lex_root=lex.yy elif test -f lexyy.c; then ac_cv_prog_lex_root=lexyy else { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; } fi fi echo "$ECHO_T""$ac_cv_prog_lex_root" 1>&6 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" 1>&6 echo "configure:2181: checking whether yytext is a pointer" 1>&5 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else # POSIX says lex can declare yytext either as a pointer or an array; the # default is implementation-dependent. Figure out which it is, since # not all implementations provide the %pointer and %array declarations. ac_cv_prog_lex_yytext_pointer=no echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c ac_save_LIBS="$LIBS" LIBS="$LIBS $LEXLIB" cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_prog_lex_yytext_pointer=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* LIBS="$ac_save_LIBS" rm -f "${LEX_OUTPUT_ROOT}.c" fi echo "$ECHO_T""$ac_cv_prog_lex_yytext_pointer" 1>&6 if test $ac_cv_prog_lex_yytext_pointer = yes; then cat >>confdefs.h <<\EOF #define YYTEXT_POINTER 1 EOF fi if test "$LEX" = lex; then LEX="$missing_dir/missing flex" LEX_OUTPUT_ROOT=lex.yy fi # Libtool. By default, don't do shared libs, liba2ps is not widely used. # Check whether --enable-shared or --disable-shared was given. if test "${enable_shared+set}" = set; then enableval="$enable_shared" p=${PACKAGE-default} case "$enableval" in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," for pkg in $enableval; do if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$ac_save_ifs" ;; esac else enable_shared=no fi # Check whether --enable-static or --disable-static was given. if test "${enable_static+set}" = set; then enableval="$enable_static" p=${PACKAGE-default} case "$enableval" in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," for pkg in $enableval; do if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$ac_save_ifs" ;; esac else enable_static=yes fi # Check whether --enable-fast-install or --disable-fast-install was given. if test "${enable_fast_install+set}" = set; then enableval="$enable_fast_install" p=${PACKAGE-default} case "$enableval" in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," for pkg in $enableval; do if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$ac_save_ifs" ;; esac else enable_fast_install=yes fi echo $ECHO_N "checking host system type... $ECHO_C" 1>&6 echo "configure:2298: checking host system type" 1>&5 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then # Make sure we can run config.sub. if $ac_config_sub sun4 >/dev/null 2>&1; then :; else { echo "configure: error: cannot run $ac_config_sub" 1>&2; exit 1; } fi ac_cv_host_alias=$host case "$ac_cv_host_alias" in NONE) case $nonopt in NONE) if ac_cv_host_alias=`$ac_config_guess`; then : else { echo "configure: error: cannot guess host type; you must specify one" 1>&2; exit 1; } fi ;; *) ac_cv_host_alias=$nonopt ;; esac ;; esac ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || exit 1 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` else echo $ECHO_N "(cached) $ECHO_C" 1>&6 fi echo "$ECHO_T""$ac_cv_host" 1>&6 host=$ac_cv_host host_alias=$ac_cv_host_alias host_cpu=$ac_cv_host_cpu host_vendor=$ac_cv_host_vendor host_os=$ac_cv_host_os echo $ECHO_N "checking build system type... $ECHO_C" 1>&6 echo "configure:2334: checking build system type" 1>&5 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then # Make sure we can run config.sub. if $ac_config_sub sun4 >/dev/null 2>&1; then :; else { echo "configure: error: cannot run $ac_config_sub" 1>&2; exit 1; } fi ac_cv_build_alias=$build case "$ac_cv_build_alias" in NONE) case $nonopt in NONE) ac_cv_build_alias=$host_alias ;; *) ac_cv_build_alias=$nonopt ;; esac ;; esac ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || exit 1 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` else echo $ECHO_N "(cached) $ECHO_C" 1>&6 fi echo "$ECHO_T""$ac_cv_build" 1>&6 build=$ac_cv_build build_alias=$ac_cv_build_alias build_cpu=$ac_cv_build_cpu build_vendor=$ac_cv_build_vendor build_os=$ac_cv_build_os # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:2371: checking for $ac_word" 1>&5 if test "${ac_cv_prog_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else for ac_path in `IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then echo "$ac_dir/$ac_word" fi done IFS="$ac_save_ifs" `; do ac_cv_prog_RANLIB="ranlib" break done test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" fi fi RANLIB="$ac_cv_prog_RANLIB" if test -n "$RANLIB"; then echo "$ECHO_T""$RANLIB" 1>&6 else echo "$ECHO_T""no" 1>&6 fi # Check whether --with-gnu-ld or --without-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then withval="$with_gnu_ld" test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test "$ac_cv_prog_gcc" = yes; then # Check if gcc -print-prog-name=ld gives a path. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" 1>&6 echo "configure:2412: checking for ld used by GCC" 1>&5 ac_prog=`($CC -print-prog-name=ld) 2>&5` case "$ac_prog" in # Accept absolute paths. [\\/]* | [A-Za-z]:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the path of ld ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then echo $ECHO_N "checking for GNU ld... $ECHO_C" 1>&6 echo "configure:2436: checking for GNU ld" 1>&5 else echo $ECHO_N "checking for non-GNU ld... $ECHO_C" 1>&6 echo "configure:2439: checking for non-GNU ld" 1>&5 fi if test "${ac_cv_path_LD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test -z "$LD"; then IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then ac_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then test "$with_gnu_ld" != no && break else test "$with_gnu_ld" != yes && break fi fi done IFS="$ac_save_ifs" else ac_cv_path_LD="$LD" # Let the user override the test with a path. fi fi LD="$ac_cv_path_LD" if test -n "$LD"; then echo "$ECHO_T""$LD" 1>&6 else echo "$ECHO_T""no" 1>&6 fi test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" 1>&6 echo "configure:2474: checking if the linker ($LD) is GNU ld" 1>&5 if test "${ac_cv_prog_gnu_ld+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else # I'd rather use --version here, but apparently some GNU ld's only accept -v. if $LD -v 2>&1 &5; then ac_cv_prog_gnu_ld=yes else ac_cv_prog_gnu_ld=no fi fi echo "$ECHO_T""$ac_cv_prog_gnu_ld" 1>&6 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" 1>&6 echo "configure:2488: checking for BSD-compatible nm" 1>&5 if test "${ac_cv_path_NM+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test -n "$NM"; then # Let the user override the test. ac_cv_path_NM="$NM" else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then ac_cv_path_NM="$ac_dir/nm -B" break elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then ac_cv_path_NM="$ac_dir/nm -p" break else ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags fi fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm fi fi NM="$ac_cv_path_NM" echo "$ECHO_T""$NM" 1>&6 case "$target" in NONE) lt_target="$host" ;; *) lt_target="$target" ;; esac # Check for any special flags to pass to ltconfig. libtool_flags="--cache-file=$cache_file" test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" # Check whether --enable-libtool-lock or --disable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then enableval="$enable_libtool_lock" : fi test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" # Some flags need to be propagated to the compiler or linker for good # libtool support. case "$lt_target" in *-*-irix6*) # Find out which ABI we are using. echo '#line 2549 "configure"' > conftest.$ac_ext if { (eval echo configure:2550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then case "`/usr/bin/file conftest.o`" in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" 1>&6 echo "configure:2571: checking whether the C compiler needs -belf" 1>&5 if test "${lt_cv_cc_needs_belf+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* lt_cv_cc_needs_belf=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* lt_cv_cc_needs_belf=no fi rm -f conftest* fi echo "$ECHO_T""$lt_cv_cc_needs_belf" 1>&6 if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; esac # Save cache, so that ltconfig can load it cat >confcache <<\EOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs. It is not useful on other systems. # If it contains results you don't want to keep, you may remove or edit it. # # By default, configure uses ./config.cache as the cache file, # creating it if it does not exist already. You can give configure # the --cache-file=FILE option to use a different cache file; that is # what configure does when it calls configure scripts in # subdirectories, so they share the cache. # Giving --cache-file=/dev/null disables caching, for debugging configure. # config.status only pays attention to the cache file if you give it the # --recheck option to rerun configure. # EOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, don't put newlines in cache variables' values. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. (set) 2>&1 | case `(ac_space=' '; set | grep ac_space) 2>&1` in *ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote substitution # turns \\\\ into \\, and sed turns \\ into \). sed -n \ -e "s/'/'\\\\''/g" \ -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" ;; *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' ;; esac >>confcache if cmp -s $cache_file confcache; then :; else if test -w $cache_file; then echo "updating cache $cache_file" cat confcache >$cache_file else echo "not updating unwritable cache $cache_file" fi fi rm -f confcache # Actually configure libtool. ac_aux_dir is where install-sh is found. CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \ || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } # Reload cache, that may have been modified by ltconfig if test -r "$cache_file"; then echo "loading cache $cache_file" test -f "$cache_file" && . $cache_file else echo "creating cache $cache_file" >$cache_file fi # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' # Redirect the config.log output again, so that the ltconfig log is not # clobbered by the next message. exec 5>>./config.log ## ------------------------- ## ## Checks for header files. ## ## ------------------------- ## echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6 echo "configure:2687: checking for ANSI C header files" 1>&5 if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < #include #include #include EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:2701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* ac_cv_header_stdc=yes else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_header_stdc=no fi rm -f conftest* if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "memchr" >/dev/null 2>&1; then : else rm -rf conftest* ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "free" >/dev/null 2>&1; then : else rm -rf conftest* ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext < #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); exit (0); } EOF if { (eval echo configure:2784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_header_stdc=no fi rm -fr conftest* fi fi fi echo "$ECHO_T""$ac_cv_header_stdc" 1>&6 if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\EOF #define STDC_HEADERS 1 EOF fi echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" 1>&6 echo "configure:2808: checking whether stat file-mode macros are broken" 1>&5 if test "${ac_cv_header_stat_broken+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < #include #if defined(S_ISBLK) && defined(S_IFDIR) # if S_ISBLK (S_IFDIR) You lose. # endif #endif #if defined(S_ISBLK) && defined(S_IFCHR) # if S_ISBLK (S_IFCHR) You lose. # endif #endif #if defined(S_ISLNK) && defined(S_IFREG) # if S_ISLNK (S_IFREG) You lose. # endif #endif #if defined(S_ISSOCK) && defined(S_IFREG) # if S_ISSOCK (S_IFREG) You lose. # endif #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "You lose" >/dev/null 2>&1; then rm -rf conftest* ac_cv_header_stat_broken=yes else rm -rf conftest* ac_cv_header_stat_broken=no fi rm -f conftest* fi echo "$ECHO_T""$ac_cv_header_stat_broken" 1>&6 if test $ac_cv_header_stat_broken = yes; then cat >>confdefs.h <<\EOF #define STAT_MACROS_BROKEN 1 EOF fi echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" 1>&6 echo "configure:2863: checking whether time.h and sys/time.h may both be included" 1>&5 if test "${ac_cv_header_time+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < #include #include int main () { struct tm *tp; ; return 0; } EOF if { (eval echo configure:2882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_header_time=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_header_time=no fi rm -f conftest* fi echo "$ECHO_T""$ac_cv_header_time" 1>&6 if test $ac_cv_header_time = yes; then cat >>confdefs.h <<\EOF #define TIME_WITH_SYS_TIME 1 EOF fi echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" 1>&6 echo "configure:2902: checking for sys/wait.h that is POSIX.1 compatible" 1>&5 if test "${ac_cv_header_sys_wait_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < #include #ifndef WEXITSTATUS # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) #endif #ifndef WIFEXITED # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) #endif int main () { int s; wait (&s); s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; ; return 0; } EOF if { (eval echo configure:2927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_header_sys_wait_h=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_header_sys_wait_h=no fi rm -f conftest* fi echo "$ECHO_T""$ac_cv_header_sys_wait_h" 1>&6 if test $ac_cv_header_sys_wait_h = yes; then cat >>confdefs.h <<\EOF #define HAVE_SYS_WAIT_H 1 EOF fi ac_header_dirent=no for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" 1>&6 echo "configure:2951: checking for $ac_hdr that defines DIR" 1>&5 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < #include <$ac_hdr> int main () { DIR *dirp = 0; ; return 0; } EOF if { (eval echo configure:2969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_header_dirent_$ac_safe=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_dirent_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then echo "$ECHO_T""yes" 1>&6 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >>confdefs.h <&6 fi done # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. if test $ac_header_dirent = dirent.h; then echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" 1>&6 echo "configure:2994: checking for opendir in -ldir" 1>&5 if test "${ac_cv_lib_dir_opendir+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-ldir $LIBS" cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_lib_dir_opendir=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_lib_dir_opendir=no fi rm -f conftest* LIBS="$ac_save_LIBS" fi echo "$ECHO_T""$ac_cv_lib_dir_opendir" 1>&6 if test $ac_cv_lib_dir_opendir = yes; then LIBS="$LIBS -ldir" fi else echo $ECHO_N "checking for opendir in -lx... $ECHO_C" 1>&6 echo "configure:3036: checking for opendir in -lx" 1>&5 if test "${ac_cv_lib_x_opendir+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lx $LIBS" cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_lib_x_opendir=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_lib_x_opendir=no fi rm -f conftest* LIBS="$ac_save_LIBS" fi echo "$ECHO_T""$ac_cv_lib_x_opendir" 1>&6 if test $ac_cv_lib_x_opendir = yes; then LIBS="$LIBS -lx" fi fi for ac_header in sys/time.h sys/stat.h sys/types.h sys/ioctl.h \ math.h string.h strings.h stdlib.h unistd.h stdarg.h pwd.h malloc.h \ memory.h errno.h fcntl.h stdbool.h fnmatch.h do ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6 echo "configure:3084: checking for $ac_header" 1>&5 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:3095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "$ac_ac_Header=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "$ac_ac_Header=no" fi rm -f conftest* fi echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6 if test `eval echo '${'$ac_ac_Header'}'` = yes; then cat >>confdefs.h <&6 echo "configure:3126: checking for ${CC-cc} option to accept ANSI C" 1>&5 if test "${ac_cv_prog_cc_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else ac_cv_prog_cc_stdc=no ac_save_CC="$CC" # Don't try gcc -ansi; that turns off useful extensions and # breaks some systems' header files. # AIX -qlanglvl=ansi # Ultrix and OSF/1 -std1 # HP-UX 10.20 and later -Ae # HP-UX older versions -Aa -D_HPUX_SOURCE # SVR4 -Xc -D__EXTENSIONS__ for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" cat >conftest.$ac_ext < #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } EOF if { (eval echo configure:3181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_prog_cc_stdc="$ac_arg"; break else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* done CC="$ac_save_CC" fi case "x$ac_cv_prog_cc_stdc" in x|xno) echo "$ECHO_T""none needed" 1>&6 ;; *) echo "$ECHO_T""$ac_cv_prog_cc_stdc" 1>&6 CC="$CC $ac_cv_prog_cc_stdc" ;; esac echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" 1>&6 echo "configure:3203: checking for an ANSI C-conforming const" 1>&5 if test "${ac_cv_c_const+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext <j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; } #endif ; return 0; } EOF if { (eval echo configure:3265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_const=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_c_const=no fi rm -f conftest* fi echo "$ECHO_T""$ac_cv_c_const" 1>&6 if test $ac_cv_c_const = no; then cat >>confdefs.h <<\EOF #define const EOF fi echo $ECHO_N "checking for inline... $ECHO_C" 1>&6 echo "configure:3285: checking for inline" 1>&5 if test "${ac_cv_c_inline+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat >conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_inline=$ac_kw; break else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* done fi echo "$ECHO_T""$ac_cv_c_inline" 1>&6 case "$ac_cv_c_inline" in inline | yes) ;; no) cat >>confdefs.h <<\EOF #define inline EOF ;; *) cat >>confdefs.h <&6 echo "configure:3331: checking for uchar" 1>&5 if test "${ac_cv_type_uchar+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_type_uchar=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_type_uchar=no fi rm -f conftest* fi echo "$ECHO_T""$ac_cv_type_uchar" 1>&6 if test $ac_cv_type_uchar = yes; then : else cat >>confdefs.h <&6 echo "configure:3372: checking for size_t" 1>&5 if test "${ac_cv_type_size_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_type_size_t=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_type_size_t=no fi rm -f conftest* fi echo "$ECHO_T""$ac_cv_type_size_t" 1>&6 if test $ac_cv_type_size_t = yes; then : else cat >>confdefs.h <&6 echo "configure:3413: checking for pid_t" 1>&5 if test "${ac_cv_type_pid_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_type_pid_t=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_type_pid_t=no fi rm -f conftest* fi echo "$ECHO_T""$ac_cv_type_pid_t" 1>&6 if test $ac_cv_type_pid_t = yes; then : else cat >>confdefs.h <&6 echo "configure:3454: checking return type of signal handlers" 1>&5 if test "${ac_cv_type_signal+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < #include #ifdef signal # undef signal #endif #ifdef __cplusplus extern "C" void (*signal (int, void (*)(int)))(int); #else void (*signal ()) (); #endif int main () { int i; ; return 0; } EOF if { (eval echo configure:3480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_type_signal=void else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_type_signal=int fi rm -f conftest* fi echo "$ECHO_T""$ac_cv_type_signal" 1>&6 cat >>confdefs.h <&6 echo "configure:3497: checking whether struct tm is in sys/time.h or time.h" 1>&5 if test "${ac_cv_struct_tm+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < #include int main () { struct tm *tp; tp->tm_sec; ; return 0; } EOF if { (eval echo configure:3515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_struct_tm=time.h else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_struct_tm=sys/time.h fi rm -f conftest* fi echo "$ECHO_T""$ac_cv_struct_tm" 1>&6 if test $ac_cv_struct_tm = sys/time.h; then cat >>confdefs.h <<\EOF #define TM_IN_SYS_TIME 1 EOF fi echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" 1>&6 echo "configure:3535: checking for struct passwd.pw_gecos" 1>&5 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < #endif int main () { struct passwd foo; foo.pw_gecos; ; return 0; } EOF if { (eval echo configure:3555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_member_struct_passwd_pw_gecos=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_member_struct_passwd_pw_gecos=no fi rm -f conftest* fi echo "$ECHO_T""$ac_cv_member_struct_passwd_pw_gecos" 1>&6 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then cat >>confdefs.h <&6 echo "configure:3575: checking for inttypes.h" 1>&5 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < #include int main () { uintmax_t i = (uintmax_t) -1; ; return 0; } EOF if { (eval echo configure:3592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* jm_ac_cv_header_inttypes_h=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* jm_ac_cv_header_inttypes_h=no fi rm -f conftest* fi echo "$ECHO_T""$jm_ac_cv_header_inttypes_h" 1>&6 if test $jm_ac_cv_header_inttypes_h = yes; then cat >>confdefs.h <&6 echo "configure:3612: checking for unsigned long long" 1>&5 if test "${ac_cv_type_unsigned_long_long+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext <> i | ullmax / ull | ullmax % ull; ; return 0; } EOF if { (eval echo configure:3629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_type_unsigned_long_long=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_type_unsigned_long_long=no fi rm -f conftest* fi echo "$ECHO_T""$ac_cv_type_unsigned_long_long" 1>&6 if test $ac_cv_type_unsigned_long_long = yes; then cat >>confdefs.h <<\EOF #define HAVE_UNSIGNED_LONG_LONG 1 EOF fi for ac_header in stdlib.h do ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6 echo "configure:3653: checking for $ac_header" 1>&5 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:3664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "$ac_ac_Header=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "$ac_ac_Header=no" fi rm -f conftest* fi echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6 if test `eval echo '${'$ac_ac_Header'}'` = yes; then cat >>confdefs.h < defines strtoumax as a macro... $ECHO_C" 1>&6 echo "configure:3688: checking whether defines strtoumax as a macro" 1>&5 if test "${jm_cv_func_strtoumax_macro+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < #ifdef strtoumax inttypes_h_defines_strtoumax #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then rm -rf conftest* jm_cv_func_strtoumax_macro=yes else rm -rf conftest* jm_cv_func_strtoumax_macro=no fi rm -f conftest* fi echo "$ECHO_T""$jm_cv_func_strtoumax_macro" 1>&6 if test "$jm_cv_func_strtoumax_macro" != yes; then for ac_func in strtoumax do ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6 echo "configure:3718: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); char (*f)(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else f = $ac_func; #endif ; return 0; } EOF if { (eval echo configure:3751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "$ac_ac_var=no" fi rm -f conftest* fi echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6 if test `eval echo '${'$ac_ac_var'}'` = yes; then cat >>confdefs.h <&6 echo "configure:3782: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); char (*f)(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else f = $ac_func; #endif ; return 0; } EOF if { (eval echo configure:3815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "$ac_ac_var=no" fi rm -f conftest* fi echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6 if test `eval echo '${'$ac_ac_var'}'` = yes; then cat >>confdefs.h <>confdefs.h <&6 echo "configure:3856: checking for Cygwin environment" 1>&5 if test "${ac_cv_cygwin+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_cygwin=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_cygwin=no fi rm -f conftest* fi echo "$ECHO_T""$ac_cv_cygwin" 1>&6 CYGWIN= test "$ac_cv_cygwin" = yes && CYGWIN=yes echo $ECHO_N "checking for mingw32 environment... $ECHO_C" 1>&6 echo "configure:3890: checking for mingw32 environment" 1>&5 if test "${ac_cv_mingw32+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_mingw32=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_mingw32=no fi rm -f conftest* fi echo "$ECHO_T""$ac_cv_mingw32" 1>&6 MINGW32= test "$ac_cv_mingw32" = yes && MINGW32=yes echo $ECHO_N "checking for EMX OS/2 environment... $ECHO_C" 1>&6 echo "configure:3921: checking for EMX OS/2 environment" 1>&5 if test "${ac_cv_emxos2+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_emxos2=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_emxos2=no fi rm -f conftest* fi echo "$ECHO_T""$ac_cv_emxos2" 1>&6 EMXOS2= test "$ac_cv_emxos2" = yes && EMXOS2=yes echo $ECHO_N "checking for executable suffix... $ECHO_C" 1>&6 echo "configure:3952: checking for executable suffix" 1>&5 if test "${ac_cv_exeext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then ac_cv_exeext=.exe else rm -f conftest* echo 'int main () { return 0; }' >conftest.$ac_ext ac_cv_exeext= if { (eval echo configure:3962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then for ac_file in conftest.*; do case $ac_file in *.c | *.C | *.o | *.obj | *.xcoff) ;; *) ac_cv_exeext=`echo $ac_file | sed -e s/conftest//` ;; esac done else { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } fi rm -f conftest* test x"${ac_cv_exeext}" = x && ac_cv_exeext=no fi fi EXEEXT="" test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} echo "$ECHO_T""${ac_cv_exeext}" 1>&6 ac_exeext=$EXEEXT # Checking for sys_siglist. Stolen from gmake-3.77 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" 1>&6 echo "configure:3984: checking for sys_siglist declaration in signal.h or unistd.h" 1>&5 if test "${ac_cv_decl_sys_siglist+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < #include /* NetBSD declares sys_siglist in unistd.h. */ #if HAVE_UNISTD_H # include #endif int main () { char *msg = *(sys_siglist + 1); ; return 0; } EOF if { (eval echo configure:4006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_decl_sys_siglist=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_decl_sys_siglist=no fi rm -f conftest* fi echo "$ECHO_T""$ac_cv_decl_sys_siglist" 1>&6 if test $ac_cv_decl_sys_siglist = yes; then cat >>confdefs.h <<\EOF #define SYS_SIGLIST_DECLARED 1 EOF fi echo $ECHO_N "checking for sys_siglist... $ECHO_C" 1>&6 echo "configure:4026: checking for sys_siglist" 1>&5 if test "${ac_cv_check_symbol_sys_siglist+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_check_symbol_sys_siglist=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_check_symbol_sys_siglist=no fi rm -f conftest* fi if test "$ac_cv_check_symbol_sys_siglist" = yes; then cat >>confdefs.h <&6 ## ---------------------- ## ## Checks for Libraries. ## ## ---------------------- ## # -lsun is sometimes needed on IRIX to use passwd echo $ECHO_N "checking for library containing getpwuid... $ECHO_C" 1>&6 echo "configure:4069: checking for library containing getpwuid" 1>&5 if test "${ac_cv_search_getpwuid+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else ac_func_search_save_LIBS="$LIBS" ac_cv_search_getpwuid="no" cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_getpwuid="none required" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* test "$ac_cv_search_getpwuid" = "no" && for ac_lib in sun; do LIBS="-l$ac_lib $ac_func_search_save_LIBS" cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_getpwuid="-l$ac_lib" break else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* done LIBS="$ac_func_search_save_LIBS" fi echo "$ECHO_T""$ac_cv_search_getpwuid" 1>&6 if test "$ac_cv_search_getpwuid" != "no"; then test "$ac_cv_search_getpwuid" = "none required" || LIBS="$ac_cv_search_getpwuid $LIBS" cat >>confdefs.h <<\EOF #define HAVE_GETPWUID 1 EOF else : fi ## ------------------------------ ## ## checks for library functions. ## ## ------------------------------ ## for ac_func in stpcpy stpncpy strtoul memcpy memset gethostname getuid do ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6 echo "configure:4150: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); char (*f)(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else f = $ac_func; #endif ; return 0; } EOF if { (eval echo configure:4183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "$ac_ac_var=no" fi rm -f conftest* fi echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6 if test `eval echo '${'$ac_ac_var'}'` = yes; then cat >>confdefs.h <&6 echo "configure:4210: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); char (*f)(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else f = $ac_func; #endif ; return 0; } EOF if { (eval echo configure:4243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "$ac_ac_var=no" fi rm -f conftest* fi echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6 if test `eval echo '${'$ac_ac_var'}'` = yes; then cat >>confdefs.h <&6 echo "configure:4269: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); char (*f)(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else f = $ac_func; #endif ; return 0; } EOF if { (eval echo configure:4302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "$ac_ac_var=no" fi rm -f conftest* fi echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6 if test `eval echo '${'$ac_ac_var'}'` = yes; then cat >>confdefs.h <>confdefs.h <&6 echo "configure:4336: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); char (*f)(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else f = $ac_func; #endif ; return 0; } EOF if { (eval echo configure:4369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "$ac_ac_var=no" fi rm -f conftest* fi echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6 if test `eval echo '${'$ac_ac_var'}'` = yes; then cat >>confdefs.h <&6 echo "configure:4395: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); char (*f)(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else f = $ac_func; #endif ; return 0; } EOF if { (eval echo configure:4428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "$ac_ac_var=no" fi rm -f conftest* fi echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6 if test `eval echo '${'$ac_ac_var'}'` = yes; then cat >>confdefs.h <>confdefs.h <&6 echo "configure:4462: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); char (*f)(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else f = $ac_func; #endif ; return 0; } EOF if { (eval echo configure:4495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "$ac_ac_var=no" fi rm -f conftest* fi echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6 if test `eval echo '${'$ac_ac_var'}'` = yes; then cat >>confdefs.h <&6 echo "configure:4518: checking whether rename works" 1>&5 if test "${ac_cv_func_rename_works+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else ac_cv_func_rename_works=no : >conftest.1 : >conftest.2 if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext < int main () { exit (rename ("conftest.1", "conftest.2")); } EOF if { (eval echo configure:4534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then test -f conftest.1 || ac_cv_func_rename_works=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -fr conftest* fi fi echo "$ECHO_T""$ac_cv_func_rename_works" 1>&6 fi if test "$ac_cv_func_rename" = no || test "$ac_cv_func_rename_works" = no; then for ac_func in link do ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6 echo "configure:4554: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); char (*f)(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else f = $ac_func; #endif ; return 0; } EOF if { (eval echo configure:4587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "$ac_ac_var=no" fi rm -f conftest* fi echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6 if test `eval echo '${'$ac_ac_var'}'` = yes; then cat >>confdefs.h <>confdefs.h <&6 echo "configure:4618: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); char (*f)(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else f = $ac_func; #endif ; return 0; } EOF if { (eval echo configure:4651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "$ac_ac_var=no" fi rm -f conftest* fi echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6 if test `eval echo '${'$ac_ac_var'}'` = yes; then cat >>confdefs.h <&6 echo "configure:4673: checking for systempapername in -lpaper" 1>&5 if test "${ac_cv_lib_paper_systempapername+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lpaper $LIBS" cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_lib_paper_systempapername=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_lib_paper_systempapername=no fi rm -f conftest* LIBS="$ac_save_LIBS" fi echo "$ECHO_T""$ac_cv_lib_paper_systempapername" 1>&6 if test $ac_cv_lib_paper_systempapername = yes; then cat >>confdefs.h <<\EOF #define HAVE_SYSTEMPAPERNAME 1 EOF LIBS="$LIBS -lpaper" for ac_header in paper.h do ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6 echo "configure:4720: checking for $ac_header" 1>&5 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:4731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "$ac_ac_Header=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "$ac_ac_Header=no" fi rm -f conftest* fi echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6 if test `eval echo '${'$ac_ac_Header'}'` = yes; then cat >>confdefs.h <&6 echo "configure:4760: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); char (*f)(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else f = $ac_func; #endif ; return 0; } EOF if { (eval echo configure:4793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "$ac_ac_var=no" fi rm -f conftest* fi echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6 if test `eval echo '${'$ac_ac_var'}'` = yes; then cat >>confdefs.h <&6 echo "configure:4819: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); char (*f)(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else f = $ac_func; #endif ; return 0; } EOF if { (eval echo configure:4852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "$ac_ac_var=no" fi rm -f conftest* fi echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6 if test `eval echo '${'$ac_ac_var'}'` = yes; then cat >>confdefs.h <>confdefs.h <&6 echo "configure:4882: checking for strftime" 1>&5 if test "${ac_cv_func_strftime+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char strftime(); char (*f)(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_strftime) || defined (__stub___strftime) choke me #else f = strftime; #endif ; return 0; } EOF if { (eval echo configure:4915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_func_strftime=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_func_strftime=no fi rm -f conftest* fi echo "$ECHO_T""$ac_cv_func_strftime" 1>&6 if test $ac_cv_func_strftime = yes; then cat >>confdefs.h <<\EOF #define HAVE_STRFTIME 1 EOF else # strftime is in -lintl on SCO UNIX. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" 1>&6 echo "configure:4936: checking for strftime in -lintl" 1>&5 if test "${ac_cv_lib_intl_strftime+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lintl $LIBS" cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_lib_intl_strftime=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_lib_intl_strftime=no fi rm -f conftest* LIBS="$ac_save_LIBS" fi echo "$ECHO_T""$ac_cv_lib_intl_strftime" 1>&6 if test $ac_cv_lib_intl_strftime = yes; then cat >>confdefs.h <<\EOF #define HAVE_STRFTIME 1 EOF LIBS="-lintl $LIBS" fi fi echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" 1>&6 echo "configure:4983: checking for struct tm.tm_zone" 1>&5 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < #include <$ac_cv_struct_tm> int main () { struct tm foo; foo.tm_zone; ; return 0; } EOF if { (eval echo configure:5002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_member_struct_tm_tm_zone=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_member_struct_tm_tm_zone=no fi rm -f conftest* fi echo "$ECHO_T""$ac_cv_member_struct_tm_tm_zone" 1>&6 if test $ac_cv_member_struct_tm_tm_zone = yes; then cat >>confdefs.h <>confdefs.h <<\EOF #define HAVE_TM_ZONE 1 EOF else echo $ECHO_N "checking for tzname... $ECHO_C" 1>&6 echo "configure:5028: checking for tzname" 1>&5 if test "${ac_cv_var_tzname+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < #ifndef tzname /* For SGI. */ extern char *tzname[]; /* RS6000 and others reject char **tzname. */ #endif int main() { atoi(*tzname); ; return 0; } EOF if { (eval echo configure:5048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_var_tzname=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_var_tzname=no fi rm -f conftest* fi echo "$ECHO_T""$ac_cv_var_tzname" 1>&6 if test $ac_cv_var_tzname = yes; then cat >>confdefs.h <<\EOF #define HAVE_TZNAME 1 EOF fi fi for ac_func in tzset mblen mbrlen do ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6 echo "configure:5073: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); char (*f)(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else f = $ac_func; #endif ; return 0; } EOF if { (eval echo configure:5106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "$ac_ac_var=no" fi rm -f conftest* fi echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6 if test `eval echo '${'$ac_ac_var'}'` = yes; then cat >>confdefs.h <&6 echo "configure:5131: checking for $ac_header" 1>&5 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:5142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "$ac_ac_Header=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "$ac_ac_Header=no" fi rm -f conftest* fi echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6 if test `eval echo '${'$ac_ac_Header'}'` = yes; then cat >>confdefs.h <&6 echo "configure:5169: checking for $ac_header" 1>&5 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:5180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "$ac_ac_Header=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "$ac_ac_Header=no" fi rm -f conftest* fi echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6 if test `eval echo '${'$ac_ac_Header'}'` = yes; then cat >>confdefs.h <&6 echo "configure:5207: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); char (*f)(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else f = $ac_func; #endif ; return 0; } EOF if { (eval echo configure:5240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "$ac_ac_var=no" fi rm -f conftest* fi echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6 if test `eval echo '${'$ac_ac_var'}'` = yes; then cat >>confdefs.h <&6 echo "configure:5262: checking for working mktime" 1>&5 if test "${ac_cv_func_working_mktime+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test "$cross_compiling" = yes; then ac_cv_func_working_mktime=no else cat >conftest.$ac_ext < # include #else # if HAVE_SYS_TIME_H # include # else # include # endif #endif #if HAVE_UNISTD_H # include #endif #if !HAVE_ALARM # define alarm(X) /* empty */ #endif /* Work around redefinition to rpl_putenv by other config tests. */ #undef putenv static time_t time_t_max; /* Values we'll use to set the TZ environment variable. */ static const char *const tz_strings[] = { (const char *) 0, "TZ=GMT0", "TZ=JST-9", "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" }; #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) /* Fail if mktime fails to convert a date in the spring-forward gap. Based on a problem report from Andreas Jaeger. */ static void spring_forward_gap () { /* glibc (up to about 1998-10-07) failed this test) */ struct tm tm; /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" instead of "TZ=America/Vancouver" in order to detect the bug even on systems that don't support the Olson extension, or don't have the full zoneinfo tables installed. */ putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); tm.tm_year = 98; tm.tm_mon = 3; tm.tm_mday = 5; tm.tm_hour = 2; tm.tm_min = 0; tm.tm_sec = 0; tm.tm_isdst = -1; if (mktime (&tm) == (time_t)-1) exit (1); } static void mktime_test (now) time_t now; { struct tm *lt; if ((lt = localtime (&now)) && mktime (lt) != now) exit (1); now = time_t_max - now; if ((lt = localtime (&now)) && mktime (lt) != now) exit (1); } static void irix_6_4_bug () { /* Based on code from Ariel Faigon. */ struct tm tm; tm.tm_year = 96; tm.tm_mon = 3; tm.tm_mday = 0; tm.tm_hour = 0; tm.tm_min = 0; tm.tm_sec = 0; tm.tm_isdst = -1; mktime (&tm); if (tm.tm_mon != 2 || tm.tm_mday != 31) exit (1); } static void bigtime_test (j) int j; { struct tm tm; time_t now; tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; now = mktime (&tm); if (now != (time_t) -1) { struct tm *lt = localtime (&now); if (! (lt && lt->tm_year == tm.tm_year && lt->tm_mon == tm.tm_mon && lt->tm_mday == tm.tm_mday && lt->tm_hour == tm.tm_hour && lt->tm_min == tm.tm_min && lt->tm_sec == tm.tm_sec && lt->tm_yday == tm.tm_yday && lt->tm_wday == tm.tm_wday && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) exit (1); } } int main () { time_t t, delta; int i, j; /* This test makes some buggy mktime implementations loop. Give up after 60 seconds; a mktime slower than that isn't worth using anyway. */ alarm (60); for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) continue; time_t_max--; delta = time_t_max / 997; /* a suitable prime number */ for (i = 0; i < N_STRINGS; i++) { if (tz_strings[i]) putenv (tz_strings[i]); for (t = 0; t <= time_t_max - delta; t += delta) mktime_test (t); mktime_test ((time_t) 60 * 60); mktime_test ((time_t) 60 * 60 * 24); for (j = 1; 0 < j; j *= 2) bigtime_test (j); bigtime_test (j - 1); } irix_6_4_bug (); spring_forward_gap (); exit (0); } EOF if { (eval echo configure:5418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_func_working_mktime=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_func_working_mktime=no fi rm -fr conftest* fi fi echo "$ECHO_T""$ac_cv_func_working_mktime" 1>&6 if test $ac_cv_func_working_mktime = no; then LIBOBJS="$LIBOBJS mktime.${ac_objext}" fi if test $ac_cv_func_strftime = no; then LIBOBJS="$LIBOBJS strftime.o" if test $ac_cv_func_working_mktime = no; then cat >>confdefs.h <&6 echo "configure:5447: checking whether closedir returns void" 1>&5 if test "${ac_cv_func_closedir_void+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test "$cross_compiling" = yes; then ac_cv_func_closedir_void=yes else cat >conftest.$ac_ext < #include <$ac_header_dirent> int closedir (); int main () { exit (closedir (opendir (".")) != 0); } EOF if { (eval echo configure:5467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_func_closedir_void=no else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_func_closedir_void=yes fi rm -fr conftest* fi fi echo "$ECHO_T""$ac_cv_func_closedir_void" 1>&6 if test $ac_cv_func_closedir_void = yes; then cat >>confdefs.h <<\EOF #define CLOSEDIR_VOID 1 EOF fi echo $ECHO_N "checking for vprintf... $ECHO_C" 1>&6 echo "configure:5490: checking for vprintf" 1>&5 if test "${ac_cv_func_vprintf+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char vprintf(); char (*f)(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_vprintf) || defined (__stub___vprintf) choke me #else f = vprintf; #endif ; return 0; } EOF if { (eval echo configure:5523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_func_vprintf=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_func_vprintf=no fi rm -f conftest* fi echo "$ECHO_T""$ac_cv_func_vprintf" 1>&6 if test $ac_cv_func_vprintf = yes; then cat >>confdefs.h <<\EOF #define HAVE_VPRINTF 1 EOF fi if test "$ac_cv_func_vprintf" != yes; then echo $ECHO_N "checking for _doprnt... $ECHO_C" 1>&6 echo "configure:5545: checking for _doprnt" 1>&5 if test "${ac_cv_func__doprnt+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char _doprnt(); char (*f)(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub__doprnt) || defined (__stub____doprnt) choke me #else f = _doprnt; #endif ; return 0; } EOF if { (eval echo configure:5578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_func__doprnt=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_func__doprnt=no fi rm -f conftest* fi echo "$ECHO_T""$ac_cv_func__doprnt" 1>&6 if test $ac_cv_func__doprnt = yes; then cat >>confdefs.h <<\EOF #define HAVE_DOPRNT 1 EOF fi fi echo $ECHO_N "checking for obstacks... $ECHO_C" 1>&6 echo "configure:5601: checking for obstacks" 1>&5 if test "${am_cv_func_obstack+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* am_cv_func_obstack=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* am_cv_func_obstack=no fi rm -f conftest* fi echo "$ECHO_T""$am_cv_func_obstack" 1>&6 if test $am_cv_func_obstack = yes; then cat >>confdefs.h <<\EOF #define HAVE_OBSTACK 1 EOF else LIBOBJS="$LIBOBJS obstack.$ac_objext" fi # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! echo $ECHO_N "checking for working alloca.h... $ECHO_C" 1>&6 echo "configure:5642: checking for working alloca.h" 1>&5 if test "${ac_cv_working_alloca_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < int main() { char *p = (char *) alloca (2 * sizeof (int)); ; return 0; } EOF if { (eval echo configure:5658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_working_alloca_h=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_working_alloca_h=no fi rm -f conftest* fi echo "$ECHO_T""$ac_cv_working_alloca_h" 1>&6 if test $ac_cv_working_alloca_h = yes; then cat >>confdefs.h <<\EOF #define HAVE_ALLOCA_H 1 EOF fi echo $ECHO_N "checking for alloca... $ECHO_C" 1>&6 echo "configure:5679: checking for alloca" 1>&5 if test "${ac_cv_func_alloca_works+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < # define alloca _alloca # else # if HAVE_ALLOCA_H # include # else # ifdef _AIX #pragma alloca # else # ifndef alloca /* predefined by HP cc +Olibcalls */ char *alloca (); # endif # endif # endif # endif #endif int main() { char *p = (char *) alloca(1); ; return 0; } EOF if { (eval echo configure:5715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_func_alloca_works=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_func_alloca_works=no fi rm -f conftest* fi echo "$ECHO_T""$ac_cv_func_alloca_works" 1>&6 if test $ac_cv_func_alloca_works = yes; then cat >>confdefs.h <<\EOF #define HAVE_ALLOCA 1 EOF fi if test $ac_cv_func_alloca_works = no; then # The SVR3 libPW and SVR4 libucb both contain incompatible functions # that cause trouble. Some versions do not even contain alloca or # contain a buggy version. If you still want to use their alloca, # use ar to extract alloca.o from them instead of compiling alloca.c. ALLOCA=alloca.${ac_objext} cat >>confdefs.h <<\EOF #define C_ALLOCA 1 EOF echo $ECHO_N "checking whether alloca needs Cray hooks... $ECHO_C" 1>&6 echo "configure:5746: checking whether alloca needs Cray hooks" 1>&5 if test "${ac_cv_os_cray+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext <&5 | egrep "webecray" >/dev/null 2>&1; then rm -rf conftest* ac_cv_os_cray=yes else rm -rf conftest* ac_cv_os_cray=no fi rm -f conftest* fi echo "$ECHO_T""$ac_cv_os_cray" 1>&6 if test $ac_cv_os_cray = yes; then for ac_func in _getb67 GETB67 getb67; do ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6 echo "configure:5776: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); char (*f)(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else f = $ac_func; #endif ; return 0; } EOF if { (eval echo configure:5809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "$ac_ac_var=no" fi rm -f conftest* fi echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6 if test `eval echo '${'$ac_ac_var'}'` = yes; then cat >>confdefs.h <&6 echo "configure:5834: checking stack direction for C alloca" 1>&5 if test "${ac_cv_c_stack_direction+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test "$cross_compiling" = yes; then ac_cv_c_stack_direction=0 else cat >conftest.$ac_ext < addr) ? 1 : -1; } int main () { exit (find_stack_direction () < 0); } EOF if { (eval echo configure:5863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_c_stack_direction=1 else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_c_stack_direction=-1 fi rm -fr conftest* fi fi echo "$ECHO_T""$ac_cv_c_stack_direction" 1>&6 cat >>confdefs.h <&6 echo "configure:5885: checking for error_at_line" 1>&5 if test "${am_cv_lib_error_at_line+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* am_cv_lib_error_at_line=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* am_cv_lib_error_at_line=no fi rm -f conftest* fi echo "$ECHO_T""$am_cv_lib_error_at_line" 1>&6 if test $am_cv_lib_error_at_line = no; then LIBOBJS="$LIBOBJS error.$ac_objext" fi cat >>confdefs.h <&6 echo "configure:5923: checking for working malloc" 1>&5 if test "${jm_cv_func_working_malloc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test "$cross_compiling" = yes; then jm_cv_func_working_malloc=no else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then jm_cv_func_working_malloc=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* jm_cv_func_working_malloc=no fi rm -fr conftest* fi fi echo "$ECHO_T""$jm_cv_func_working_malloc" 1>&6 if test $jm_cv_func_working_malloc = no; then LIBOBJS="$LIBOBJS malloc.$ac_objext" cat >>confdefs.h <>confdefs.h <&6 echo "configure:5971: checking for working realloc" 1>&5 if test "${jm_cv_func_working_realloc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test "$cross_compiling" = yes; then jm_cv_func_working_realloc=no else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then jm_cv_func_working_realloc=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* jm_cv_func_working_realloc=no fi rm -fr conftest* fi fi echo "$ECHO_T""$jm_cv_func_working_realloc" 1>&6 if test $jm_cv_func_working_realloc = no; then LIBOBJS="$LIBOBJS realloc.$ac_objext" cat >>confdefs.h <&6 echo "configure:6018: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); char (*f)(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else f = $ac_func; #endif ; return 0; } EOF if { (eval echo configure:6051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "$ac_ac_var=no" fi rm -f conftest* fi echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6 if test `eval echo '${'$ac_ac_var'}'` = yes; then cat >>confdefs.h <&6 echo "configure:6076: checking for $ac_header" 1>&5 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:6087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "$ac_ac_Header=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "$ac_ac_Header=no" fi rm -f conftest* fi echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6 if test `eval echo '${'$ac_ac_Header'}'` = yes; then cat >>confdefs.h <&6 echo "configure:6111: checking for ANSI C header files" 1>&5 if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < #include #include #include EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:6125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* ac_cv_header_stdc=yes else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_header_stdc=no fi rm -f conftest* if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "memchr" >/dev/null 2>&1; then : else rm -rf conftest* ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "free" >/dev/null 2>&1; then : else rm -rf conftest* ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext < #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); exit (0); } EOF if { (eval echo configure:6208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_header_stdc=no fi rm -fr conftest* fi fi fi echo "$ECHO_T""$ac_cv_header_stdc" 1>&6 if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\EOF #define STDC_HEADERS 1 EOF fi echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" 1>&6 echo "configure:6232: checking whether backslash-a works in strings" 1>&5 if test "${ac_cv_c_backslash_a+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_backslash_a=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_c_backslash_a=no fi rm -f conftest* fi echo "$ECHO_T""$ac_cv_c_backslash_a" 1>&6 if test $ac_cv_c_backslash_a = yes; then cat >>confdefs.h <<\EOF #define HAVE_C_BACKSLASH_A 1 EOF fi echo $ECHO_N "checking for function prototypes... $ECHO_C" 1>&6 echo "configure:6275: checking for function prototypes" 1>&5 if test "$am_cv_prog_cc_stdc" != no; then echo "$ECHO_T""yes" 1>&6 cat >>confdefs.h <<\EOF #define PROTOTYPES 1 EOF U= ANSI2KNR= else echo "$ECHO_T""no" 1>&6 U=_ ANSI2KNR=./ansi2knr # Ensure some checks needed by ansi2knr itself. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6 echo "configure:6288: checking for ANSI C header files" 1>&5 if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < #include #include #include EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:6302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* ac_cv_header_stdc=yes else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_header_stdc=no fi rm -f conftest* if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "memchr" >/dev/null 2>&1; then : else rm -rf conftest* ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "free" >/dev/null 2>&1; then : else rm -rf conftest* ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext < #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); exit (0); } EOF if { (eval echo configure:6385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_header_stdc=no fi rm -fr conftest* fi fi fi echo "$ECHO_T""$ac_cv_header_stdc" 1>&6 if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\EOF #define STDC_HEADERS 1 EOF fi for ac_header in string.h do ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6 echo "configure:6412: checking for $ac_header" 1>&5 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:6423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "$ac_ac_Header=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "$ac_ac_Header=no" fi rm -f conftest* fi echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6 if test `eval echo '${'$ac_ac_Header'}'` = yes; then cat >>confdefs.h <&6 echo "configure:6453: checking for $ac_header" 1>&5 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:6464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "$ac_ac_Header=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "$ac_ac_Header=no" fi rm -f conftest* fi echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6 if test `eval echo '${'$ac_ac_Header'}'` = yes; then cat >>confdefs.h <&6 echo "configure:6488: checking for working fnmatch" 1>&5 if test "${ac_cv_func_fnmatch_works+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else # Some versions of Solaris or SCO have a broken fnmatch function. # So we run a test program. If we are cross-compiling, take no chance. # Thanks to John Oleynick and Franc,ois Pinard for this test. if test "$cross_compiling" = yes; then ac_cv_func_fnmatch_works=no else cat >conftest.$ac_ext < #endif int main () { exit (fnmatch ("a*", "abc", 0) != 0); } EOF if { (eval echo configure:6511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_func_fnmatch_works=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_func_fnmatch_works=no fi rm -fr conftest* fi fi echo "$ECHO_T""$ac_cv_func_fnmatch_works" 1>&6 if test $ac_cv_func_fnmatch_works = yes; then cat >>confdefs.h <<\EOF #define HAVE_FNMATCH 1 EOF fi if test $ac_cv_func_fnmatch_works = no; then LIBOBJS="$LIBOBJS fnmatch.o" cat >>confdefs.h <&6 echo "configure:6543: checking POSIX termios" 1>&5 if test "${am_cv_sys_posix_termios+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < #include #include int main() { /* SunOS 4.0.3 has termios.h but not the library calls. */ tcgetattr(0, 0); ; return 0; } EOF if { (eval echo configure:6562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* am_cv_sys_posix_termios=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* am_cv_sys_posix_termios=no fi rm -f conftest* fi echo "$ECHO_T""$am_cv_sys_posix_termios" 1>&6 echo $ECHO_N "checking whether use of TIOCGWINSZ requires sys/ioctl.h... $ECHO_C" 1>&6 echo "configure:6577: checking whether use of TIOCGWINSZ requires sys/ioctl.h" 1>&5 if test "${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no gwinsz_in_termios_h=no if test $am_cv_sys_posix_termios = yes; then cat >conftest.$ac_ext < # include # ifdef TIOCGWINSZ yes # endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "yes" >/dev/null 2>&1; then rm -rf conftest* gwinsz_in_termios_h=yes fi rm -f conftest* fi if test $gwinsz_in_termios_h = no; then cat >conftest.$ac_ext < # include # ifdef TIOCGWINSZ yes # endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "yes" >/dev/null 2>&1; then rm -rf conftest* am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes fi rm -f conftest* fi fi echo "$ECHO_T""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then cat >>confdefs.h <<\EOF #define GWINSZ_IN_SYS_IOCTL 1 EOF fi for ac_header in termios.h sys/types.h unistd.h limits.h do ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6 echo "configure:6637: checking for $ac_header" 1>&5 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:6648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "$ac_ac_Header=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "$ac_ac_Header=no" fi rm -f conftest* fi echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6 if test `eval echo '${'$ac_ac_Header'}'` = yes; then cat >>confdefs.h <&6 echo "configure:6672: checking whether fputs is declared" 1>&5 if test "${ac_cv_have_decl_fputs+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_have_decl_fputs=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_have_decl_fputs=no fi rm -f conftest* fi echo "$ECHO_T""$ac_cv_have_decl_fputs" 1>&6 if test $ac_cv_have_decl_fputs = yes; then cat >>confdefs.h <>confdefs.h <&6 echo "configure:6715: checking whether strlen is declared" 1>&5 if test "${ac_cv_have_decl_strlen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_have_decl_strlen=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_have_decl_strlen=no fi rm -f conftest* fi echo "$ECHO_T""$ac_cv_have_decl_strlen" 1>&6 if test $ac_cv_have_decl_strlen = yes; then cat >>confdefs.h <>confdefs.h <&6 echo "configure:6758: checking whether strtoul is declared" 1>&5 if test "${ac_cv_have_decl_strtoul+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_have_decl_strtoul=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_have_decl_strtoul=no fi rm -f conftest* fi echo "$ECHO_T""$ac_cv_have_decl_strtoul" 1>&6 if test $ac_cv_have_decl_strtoul = yes; then cat >>confdefs.h <>confdefs.h <&6 echo "configure:6801: checking whether strtoull is declared" 1>&5 if test "${ac_cv_have_decl_strtoull+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_have_decl_strtoull=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_have_decl_strtoull=no fi rm -f conftest* fi echo "$ECHO_T""$ac_cv_have_decl_strtoull" 1>&6 if test $ac_cv_have_decl_strtoull = yes; then cat >>confdefs.h <>confdefs.h <&6 echo "configure:6846: checking for off_t" 1>&5 if test "${ac_cv_type_off_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_type_off_t=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_type_off_t=no fi rm -f conftest* fi echo "$ECHO_T""$ac_cv_type_off_t" 1>&6 if test $ac_cv_type_off_t = yes; then : else cat >>confdefs.h <&6 echo "configure:6890: checking for $ac_header" 1>&5 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:6901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "$ac_ac_Header=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "$ac_ac_Header=no" fi rm -f conftest* fi echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6 if test `eval echo '${'$ac_ac_Header'}'` = yes; then cat >>confdefs.h <&6 echo "configure:6928: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); char (*f)(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else f = $ac_func; #endif ; return 0; } EOF if { (eval echo configure:6961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "$ac_ac_var=no" fi rm -f conftest* fi echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6 if test `eval echo '${'$ac_ac_var'}'` = yes; then cat >>confdefs.h <&6 echo "configure:6983: checking for working mmap" 1>&5 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test "$cross_compiling" = yes; then ac_cv_func_mmap_fixed_mapped=no else cat >conftest.$ac_ext < #include #include #if HAVE_STDLIB_H # include #else char *malloc (); #endif #if HAVE_UNISTD_H # include #endif #if HAVE_SYS_STAT_H # include #endif /* This mess was copied from the GNU getpagesize.h. */ #if !HAVE_GETPAGESIZE /* Assume that all systems that can run configure have sys/param.h. */ # if !HAVE_SYS_PARAM_H # define HAVE_SYS_PARAM_H 1 # endif # ifdef _SC_PAGESIZE # define getpagesize() sysconf(_SC_PAGESIZE) # else /* no _SC_PAGESIZE */ # if HAVE_SYS_PARAM_H # include # ifdef EXEC_PAGESIZE # define getpagesize() EXEC_PAGESIZE # else /* no EXEC_PAGESIZE */ # ifdef NBPG # define getpagesize() NBPG * CLSIZE # ifndef CLSIZE # define CLSIZE 1 # endif /* no CLSIZE */ # else /* no NBPG */ # ifdef NBPC # define getpagesize() NBPC # else /* no NBPC */ # ifdef PAGESIZE # define getpagesize() PAGESIZE # endif /* PAGESIZE */ # endif /* no NBPC */ # endif /* no NBPG */ # endif /* no EXEC_PAGESIZE */ # else /* no HAVE_SYS_PARAM_H */ # define getpagesize() 8192 /* punt totally */ # endif /* no HAVE_SYS_PARAM_H */ # endif /* no _SC_PAGESIZE */ #endif /* no HAVE_GETPAGESIZE */ int main () { char *data, *data2, *data3; int i, pagesize; int fd; pagesize = getpagesize (); /* First, make a file with some known garbage in it. */ data = (char *) malloc (pagesize); if (!data) exit (1); for (i = 0; i < pagesize; ++i) *(data + i) = rand (); umask (0); fd = creat ("conftestmmap", 0600); if (fd < 0) exit (1); if (write (fd, data, pagesize) != pagesize) exit (1); close (fd); /* Next, try to mmap the file at a fixed address which already has something else allocated at it. If we can, also make sure that we see the same garbage. */ fd = open ("conftestmmap", O_RDWR); if (fd < 0) exit (1); data2 = (char *) malloc (2 * pagesize); if (!data2) exit (1); data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_FIXED, fd, 0L)) exit (1); for (i = 0; i < pagesize; ++i) if (*(data + i) != *(data2 + i)) exit (1); /* Finally, make sure that changes to the mapped area do not percolate back to the file as seen by read(). (This is a bug on some variants of i386 svr4.0.) */ for (i = 0; i < pagesize; ++i) *(data2 + i) = *(data2 + i) + 1; data3 = (char *) malloc (pagesize); if (!data3) exit (1); if (read (fd, data3, pagesize) != pagesize) exit (1); for (i = 0; i < pagesize; ++i) if (*(data + i) != *(data3 + i)) exit (1); close (fd); unlink ("conftestmmap"); exit (0); } EOF if { (eval echo configure:7125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_func_mmap_fixed_mapped=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_func_mmap_fixed_mapped=no fi rm -fr conftest* fi fi echo "$ECHO_T""$ac_cv_func_mmap_fixed_mapped" 1>&6 if test $ac_cv_func_mmap_fixed_mapped = yes; then cat >>confdefs.h <<\EOF #define HAVE_MMAP 1 EOF fi for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \ unistd.h sys/param.h do ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6 echo "configure:7152: checking for $ac_header" 1>&5 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:7163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "$ac_ac_Header=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "$ac_ac_Header=no" fi rm -f conftest* fi echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6 if test `eval echo '${'$ac_ac_Header'}'` = yes; then cat >>confdefs.h <&6 echo "configure:7191: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); char (*f)(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else f = $ac_func; #endif ; return 0; } EOF if { (eval echo configure:7224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "$ac_ac_var=no" fi rm -f conftest* fi echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6 if test `eval echo '${'$ac_ac_var'}'` = yes; then cat >>confdefs.h <&6 echo "configure:7250: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); char (*f)(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else f = $ac_func; #endif ; return 0; } EOF if { (eval echo configure:7283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "$ac_ac_var=no" fi rm -f conftest* fi echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6 if test `eval echo '${'$ac_ac_var'}'` = yes; then cat >>confdefs.h <>confdefs.h <<\EOF #define HAVE_STPCPY 1 EOF fi if test $ac_cv_header_locale_h = yes; then echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" 1>&6 echo "configure:7314: checking for LC_MESSAGES" 1>&5 if test "${am_cv_val_LC_MESSAGES+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < int main() { return LC_MESSAGES ; return 0; } EOF if { (eval echo configure:7330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* am_cv_val_LC_MESSAGES=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* am_cv_val_LC_MESSAGES=no fi rm -f conftest* fi echo "$ECHO_T""$am_cv_val_LC_MESSAGES" 1>&6 if test $am_cv_val_LC_MESSAGES = yes; then cat >>confdefs.h <<\EOF #define HAVE_LC_MESSAGES 1 EOF fi fi echo $ECHO_N "checking whether NLS is requested... $ECHO_C" 1>&6 echo "configure:7351: checking whether NLS is requested" 1>&5 # Check whether --enable-nls or --disable-nls was given. if test "${enable_nls+set}" = set; then enableval="$enable_nls" USE_NLS=$enableval else USE_NLS=yes fi echo "$ECHO_T""$USE_NLS" 1>&6 USE_INCLUDED_LIBINTL=no if test "$USE_NLS" = "yes"; then cat >>confdefs.h <<\EOF #define ENABLE_NLS 1 EOF echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" 1>&6 echo "configure:7369: checking whether included gettext is requested" 1>&5 # Check whether --with-included-gettext or --without-included-gettext was given. if test "${with_included_gettext+set}" = set; then withval="$with_included_gettext" nls_cv_force_use_gnu_gettext=$withval else nls_cv_force_use_gnu_gettext=no fi echo "$ECHO_T""$nls_cv_force_use_gnu_gettext" 1>&6 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" if test "$nls_cv_force_use_gnu_gettext" != "yes"; then nls_cv_header_intl= nls_cv_header_libgt= CATOBJEXT=NONE echo $ECHO_N "checking for libintl.h... $ECHO_C" 1>&6 echo "configure:7386: checking for libintl.h" 1>&5 if test "${ac_cv_header_libintl_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:7397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* ac_cv_header_libintl_h=yes else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_header_libintl_h=no fi rm -f conftest* fi echo "$ECHO_T""$ac_cv_header_libintl_h" 1>&6 if test $ac_cv_header_libintl_h = yes; then echo $ECHO_N "checking for gettext in libc... $ECHO_C" 1>&6 echo "configure:7414: checking for gettext in libc" 1>&5 if test "${gt_cv_func_gettext_libc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < int main() { return (int) gettext ("") ; return 0; } EOF if { (eval echo configure:7430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* gt_cv_func_gettext_libc=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* gt_cv_func_gettext_libc=no fi rm -f conftest* fi echo "$ECHO_T""$gt_cv_func_gettext_libc" 1>&6 if test "$gt_cv_func_gettext_libc" != "yes"; then echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" 1>&6 echo "configure:7446: checking for bindtextdomain in -lintl" 1>&5 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lintl $LIBS" cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_lib_intl_bindtextdomain=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_lib_intl_bindtextdomain=no fi rm -f conftest* LIBS="$ac_save_LIBS" fi echo "$ECHO_T""$ac_cv_lib_intl_bindtextdomain" 1>&6 if test $ac_cv_lib_intl_bindtextdomain = yes; then echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" 1>&6 echo "configure:7484: checking for gettext in -lintl" 1>&5 if test "${ac_cv_lib_intl_gettext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lintl $LIBS" cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_lib_intl_gettext=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_lib_intl_gettext=no fi rm -f conftest* LIBS="$ac_save_LIBS" fi echo "$ECHO_T""$ac_cv_lib_intl_gettext" 1>&6 if test $ac_cv_lib_intl_gettext = yes; then cat >>confdefs.h <>confdefs.h <<\EOF #define HAVE_GETTEXT 1 EOF # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:7542: checking for $ac_word" 1>&5 if test "${ac_cv_path_MSGFMT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else case "$MSGFMT" in /*) ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then ac_cv_path_MSGFMT="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" ;; esac fi MSGFMT="$ac_cv_path_MSGFMT" if test -n "$MSGFMT"; then echo "$ECHO_T""$MSGFMT" 1>&6 else echo "$ECHO_T""no" 1>&6 fi if test "$MSGFMT" != "no"; then for ac_func in dcgettext do ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6 echo "configure:7577: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); char (*f)(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else f = $ac_func; #endif ; return 0; } EOF if { (eval echo configure:7610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "$ac_ac_var=no" fi rm -f conftest* fi echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6 if test `eval echo '${'$ac_ac_var'}'` = yes; then cat >>confdefs.h <&6 echo "configure:7634: checking for $ac_word" 1>&5 if test "${ac_cv_path_GMSGFMT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else case "$GMSGFMT" in [/\\]* | ?:[/\\]*) ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_word"; then ac_cv_path_GMSGFMT="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" ;; esac fi GMSGFMT="$ac_cv_path_GMSGFMT" if test -n "$GMSGFMT"; then echo "$ECHO_T""$GMSGFMT" 1>&6 else echo "$ECHO_T""no" 1>&6 fi # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:7667: checking for $ac_word" 1>&5 if test "${ac_cv_path_XGETTEXT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else case "$XGETTEXT" in /*) ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then ac_cv_path_XGETTEXT="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" ;; esac fi XGETTEXT="$ac_cv_path_XGETTEXT" if test -n "$XGETTEXT"; then echo "$ECHO_T""$XGETTEXT" 1>&6 else echo "$ECHO_T""no" 1>&6 fi cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* CATOBJEXT=.gmo DATADIRNAME=share else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CATOBJEXT=.mo DATADIRNAME=lib fi rm -f conftest* INSTOBJEXT=.mo fi fi fi if test "$CATOBJEXT" = "NONE"; then echo $ECHO_N "checking whether catgets can be used... $ECHO_C" 1>&6 echo "configure:7732: checking whether catgets can be used" 1>&5 # Check whether --with-catgets or --without-catgets was given. if test "${with_catgets+set}" = set; then withval="$with_catgets" nls_cv_use_catgets=$withval else nls_cv_use_catgets=no fi echo "$ECHO_T""$nls_cv_use_catgets" 1>&6 if test "$nls_cv_use_catgets" = "yes"; then echo $ECHO_N "checking for main in -li... $ECHO_C" 1>&6 echo "configure:7744: checking for main in -li" 1>&5 if test "${ac_cv_lib_i_main+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-li $LIBS" cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_lib_i_main=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_lib_i_main=no fi rm -f conftest* LIBS="$ac_save_LIBS" fi echo "$ECHO_T""$ac_cv_lib_i_main" 1>&6 if test $ac_cv_lib_i_main = yes; then cat >>confdefs.h <&6 echo "configure:7786: checking for catgets" 1>&5 if test "${ac_cv_func_catgets+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char catgets(); char (*f)(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_catgets) || defined (__stub___catgets) choke me #else f = catgets; #endif ; return 0; } EOF if { (eval echo configure:7819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_func_catgets=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_func_catgets=no fi rm -f conftest* fi echo "$ECHO_T""$ac_cv_func_catgets" 1>&6 if test $ac_cv_func_catgets = yes; then cat >>confdefs.h <<\EOF #define HAVE_CATGETS 1 EOF INTLOBJS="\$(CATOBJS)" # Extract the first word of "gencat", so it can be a program name with args. set dummy gencat; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:7841: checking for $ac_word" 1>&5 if test "${ac_cv_path_GENCAT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else case "$GENCAT" in [/\\]* | ?:[/\\]*) ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_word"; then ac_cv_path_GENCAT="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no" ;; esac fi GENCAT="$ac_cv_path_GENCAT" if test -n "$GENCAT"; then echo "$ECHO_T""$GENCAT" 1>&6 else echo "$ECHO_T""no" 1>&6 fi if test "$GENCAT" != "no"; then # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:7874: checking for $ac_word" 1>&5 if test "${ac_cv_path_GMSGFMT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else case "$GMSGFMT" in [/\\]* | ?:[/\\]*) ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_word"; then ac_cv_path_GMSGFMT="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" ;; esac fi GMSGFMT="$ac_cv_path_GMSGFMT" if test -n "$GMSGFMT"; then echo "$ECHO_T""$GMSGFMT" 1>&6 else echo "$ECHO_T""no" 1>&6 fi if test "$GMSGFMT" = "no"; then # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:7908: checking for $ac_word" 1>&5 if test "${ac_cv_path_GMSGFMT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else case "$GMSGFMT" in /*) ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then ac_cv_path_GMSGFMT="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" ;; esac fi GMSGFMT="$ac_cv_path_GMSGFMT" if test -n "$GMSGFMT"; then echo "$ECHO_T""$GMSGFMT" 1>&6 else echo "$ECHO_T""no" 1>&6 fi fi # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:7943: checking for $ac_word" 1>&5 if test "${ac_cv_path_XGETTEXT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else case "$XGETTEXT" in /*) ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then ac_cv_path_XGETTEXT="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" ;; esac fi XGETTEXT="$ac_cv_path_XGETTEXT" if test -n "$XGETTEXT"; then echo "$ECHO_T""$XGETTEXT" 1>&6 else echo "$ECHO_T""no" 1>&6 fi USE_INCLUDED_LIBINTL=yes CATOBJEXT=.cat INSTOBJEXT=.cat DATADIRNAME=lib INTLDEPS='$(top_builddir)/intl/libintl.a' INTLLIBS=$INTLDEPS LIBS=`echo $LIBS | sed -e 's/-lintl//'` nls_cv_header_intl=intl/libintl.h nls_cv_header_libgt=intl/libgettext.h fi fi fi fi if test "$CATOBJEXT" = "NONE"; then nls_cv_use_gnu_gettext=yes fi fi if test "$nls_cv_use_gnu_gettext" = "yes"; then INTLOBJS="\$(GETTOBJS)" # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:7999: checking for $ac_word" 1>&5 if test "${ac_cv_path_MSGFMT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else case "$MSGFMT" in /*) ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then ac_cv_path_MSGFMT="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" ;; esac fi MSGFMT="$ac_cv_path_MSGFMT" if test -n "$MSGFMT"; then echo "$ECHO_T""$MSGFMT" 1>&6 else echo "$ECHO_T""no" 1>&6 fi # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:8033: checking for $ac_word" 1>&5 if test "${ac_cv_path_GMSGFMT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else case "$GMSGFMT" in [/\\]* | ?:[/\\]*) ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_word"; then ac_cv_path_GMSGFMT="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" ;; esac fi GMSGFMT="$ac_cv_path_GMSGFMT" if test -n "$GMSGFMT"; then echo "$ECHO_T""$GMSGFMT" 1>&6 else echo "$ECHO_T""no" 1>&6 fi # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:8066: checking for $ac_word" 1>&5 if test "${ac_cv_path_XGETTEXT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else case "$XGETTEXT" in /*) ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then ac_cv_path_XGETTEXT="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" ;; esac fi XGETTEXT="$ac_cv_path_XGETTEXT" if test -n "$XGETTEXT"; then echo "$ECHO_T""$XGETTEXT" 1>&6 else echo "$ECHO_T""no" 1>&6 fi USE_INCLUDED_LIBINTL=yes CATOBJEXT=.gmo INSTOBJEXT=.mo DATADIRNAME=share INTLDEPS='$(top_builddir)/intl/libintl.a' INTLLIBS=$INTLDEPS LIBS=`echo $LIBS | sed -e 's/-lintl//'` nls_cv_header_intl=intl/libintl.h nls_cv_header_libgt=intl/libgettext.h fi if test "$XGETTEXT" != ":"; then if $XGETTEXT --omit-header /dev/null 2> /dev/null; then : ; else echo "$ECHO_T""found xgettext program is not GNU xgettext; ignore it" 1>&6 XGETTEXT=":" fi fi # We need to process the po/ directory. POSUB=po else DATADIRNAME=share nls_cv_header_intl=intl/libintl.h nls_cv_header_libgt=intl/libgettext.h fi if test -z "$nls_cv_header_intl"; then # Clean out junk possibly left behind by a previous configuration. rm -f intl/libintl.h fi # If this is used in GNU gettext we have to set USE_NLS to `yes' # because some of the sources are only built for this goal. if test "$PACKAGE" = gettext; then USE_NLS=yes USE_INCLUDED_LIBINTL=yes fi for lang in $ALL_LINGUAS; do GMOFILES="$GMOFILES $lang.gmo" POFILES="$POFILES $lang.po" done if test "x$CATOBJEXT" != "x"; then if test "x$ALL_LINGUAS" = "x"; then LINGUAS= else echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" 1>&6 echo "configure:8146: checking for catalogs to be installed" 1>&5 NEW_LINGUAS= for lang in ${LINGUAS=$ALL_LINGUAS}; do case "$ALL_LINGUAS" in *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; esac done LINGUAS=$NEW_LINGUAS echo "$ECHO_T""$LINGUAS" 1>&6 fi if test -n "$LINGUAS"; then for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done fi fi if test $ac_cv_header_locale_h = yes; then INCLUDE_LOCALE_H="#include " else INCLUDE_LOCALE_H="\ /* The system does not provide the header . Take care yourself. */" fi test -d intl || mkdir intl if test "$CATOBJEXT" = ".cat"; then echo $ECHO_N "checking for linux/version.h... $ECHO_C" 1>&6 echo "configure:8172: checking for linux/version.h" 1>&5 if test "${ac_cv_header_linux_version_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:8183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* ac_cv_header_linux_version_h=yes else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_header_linux_version_h=no fi rm -f conftest* fi echo "$ECHO_T""$ac_cv_header_linux_version_h" 1>&6 if test $ac_cv_header_linux_version_h = yes; then msgformat=linux else msgformat=xopen fi sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed fi sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed if test "$PACKAGE" = "gettext"; then GT_NO="#NO#" GT_YES= else GT_NO= GT_YES="#YES#" fi MKINSTALLDIRS= if test -n "$ac_aux_dir"; then MKINSTALLDIRS="\$(top_srcdir)/$ac_aux_dir/mkinstalldirs" fi if test -z "$MKINSTALLDIRS"; then MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" fi l= test -d po || mkdir po case "$srcdir" in .) posrcprefix="../" ;; /* | [A-Za-z]:*) posrcprefix="$srcdir/" ;; *) posrcprefix="../$srcdir/" ;; esac rm -f po/POTFILES sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ < $srcdir/po/POTFILES.in > po/POTFILES # Save the cache cat >confcache <<\EOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs. It is not useful on other systems. # If it contains results you don't want to keep, you may remove or edit it. # # By default, configure uses ./config.cache as the cache file, # creating it if it does not exist already. You can give configure # the --cache-file=FILE option to use a different cache file; that is # what configure does when it calls configure scripts in # subdirectories, so they share the cache. # Giving --cache-file=/dev/null disables caching, for debugging configure. # config.status only pays attention to the cache file if you give it the # --recheck option to rerun configure. # EOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, don't put newlines in cache variables' values. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. (set) 2>&1 | case `(ac_space=' '; set | grep ac_space) 2>&1` in *ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote substitution # turns \\\\ into \\, and sed turns \\ into \). sed -n \ -e "s/'/'\\\\''/g" \ -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" ;; *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' ;; esac >>confcache if cmp -s $cache_file confcache; then :; else if test -w $cache_file; then echo "updating cache $cache_file" cat confcache >$cache_file else echo "not updating unwritable cache $cache_file" fi fi rm -f confcache # In path separator character. cat >>confdefs.h <>confdefs.h <>confdefs.h <<\EOF #define SYNTAX_TABLE 1 EOF ## ---------------------------- ## ## Various extentions/options. ## ## ---------------------------- ## # Some extra warnings # Check whether --enable-warnings or --disable-warnings was given. if test "${enable_warnings+set}" = set; then enableval="$enable_warnings" : fi if test "$enable_warnings" = "yes"; then if test -n "$GCC"; then echo $ECHO_N "checking for gcc warning options... $ECHO_C" 1>&6 echo "configure:8314: checking for gcc warning options" 1>&5 if test "${ac_cv_prog_gcc_warn_flags+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then test -n "$verbose" && echo "$ECHO_T""... -$cf_opt" 1>&6 ac_cv_prog_gcc_warn_flags="$ac_cv_prog_gcc_warn_flags -$cf_opt" test "$cf_opt" = Wcast-qual && ac_cv_prog_gcc_warn_flags="$ac_cv_prog_gcc_warn_flags -DXTSTRINGDEFINES" fi done rm -f conftest* CFLAGS="$cf_save_CFLAGS" fi echo "$ECHO_T""$ac_cv_prog_gcc_warn_flags" 1>&6 fi EXTRA_CFLAGS="${ac_cv_prog_gcc_warn_flags}" fi CFLAGS="$CFLAGS $EXTRA_CFLAGS" # Where to put the emacs files # If set to t, that means we are running in a shell under Emacs. # If you have an Emacs named "t", then use the full path. test x"$EMACS" = xt && EMACS= for ac_prog in emacs xemacs do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:8361: checking for $ac_word" 1>&5 if test "${ac_cv_prog_EMACS+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test -n "$EMACS"; then ac_cv_prog_EMACS="$EMACS" # Let the user override the test. else for ac_path in `IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then echo "$ac_dir/$ac_word" fi done IFS="$ac_save_ifs" `; do ac_cv_prog_EMACS="$ac_prog" break done fi fi EMACS="$ac_cv_prog_EMACS" if test -n "$EMACS"; then echo "$ECHO_T""$EMACS" 1>&6 else echo "$ECHO_T""no" 1>&6 fi test -n "$EMACS" && break done test -n "$EMACS" || EMACS="no" if test $EMACS != "no"; then if test x${lispdir+set} != xset; then echo $ECHO_N "checking where .elc files should go... $ECHO_C" 1>&6 echo "configure:8397: checking where .elc files should go" 1>&5 if test "${am_cv_lispdir+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else am_cv_lispdir=`$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' | sed -n -e 's,/$,,' -e '/.*\/lib\/\(x\?emacs\/site-lisp\)$/{s,,${libdir}/\1,;p;q;}' -e '/.*\/share\/\(x\?emacs\/site-lisp\)$/{s,,${datadir}/\1,;p;q;}'` if test -z "$am_cv_lispdir"; then am_cv_lispdir='${datadir}/emacs/site-lisp' fi fi echo "$ECHO_T""$am_cv_lispdir" 1>&6 lispdir="$am_cv_lispdir" fi fi # Shall the path to the tools be hardcoded? echo $ECHO_N "checking whether paths should be hardcoded... $ECHO_C" 1>&6 echo "configure:8414: checking whether paths should be hardcoded" 1>&5 # Check whether --enable-paths or --disable-paths was given. if test "${enable_paths+set}" = set; then enableval="$enable_paths" : fi test "$enable_paths" = "yes" || enable_paths=no echo "$ECHO_T""$enable_paths" 1>&6 # What should get installed? # Check whether --enable-extensions or --disable-extensions was given. if test "${enable_extensions+set}" = set; then enableval="$enable_extensions" case "${enableval}" in yes|no) ;; *) { echo "configure: error: bad value ${enableval} for --disable-extensions" 1>&2; exit 1; } ;; esac else enable_extensions=yes fi if test x$enable_extensions = xyes; then EXTENSIONS_TRUE= EXTENSIONS_FALSE='#' else EXTENSIONS_TRUE='#' EXTENSIONS_FALSE= fi if test x$enable_extensions = xyes; then subdirs=" ogonkify" fi echo $ECHO_N "checking for PostScript fonts path... $ECHO_C" 1>&6 echo "configure:8448: checking for PostScript fonts path" 1>&5 # Try to find some PostScript fonts. # Find out if ghostscript is installed ac_psfont_path= for ac_dir in /usr/local/ghostscript/fonts \ /usr/local/share/ghostscript/fonts; do if test "cd $ac_dir 2>/dev/null && echo *.afm"; then ac_psfont_path="$ac_psfont_path:$ac_dir"; fi done if test -n "$ac_psfont_path"; then PSFONT_PATH=`echo "$ac_psfont_path" | sed -e 's/^://'` fi echo "$ECHO_T""$ac_psfont_path" 1>&6 ## ---------------------------------------------------------- ## ## Write a first sketch of a2ps.cfg. The user should check. ## ## ---------------------------------------------------------- ## # # Check for the file program with follows the links # # Extract the first word of "file", so it can be a program name with args. set dummy file; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:8475: checking for $ac_word" 1>&5 if test "${ac_cv_path_file_prog+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else case "$file_prog" in [/\\]* | ?:[/\\]*) ac_cv_path_file_prog="$file_prog" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_word"; then ac_cv_path_file_prog="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi file_prog="$ac_cv_path_file_prog" if test -n "$file_prog"; then echo "$ECHO_T""$file_prog" 1>&6 else echo "$ECHO_T""no" 1>&6 fi echo $ECHO_N "checking for the option for file to follow the links... $ECHO_C" 1>&6 echo "configure:8504: checking for the option for file to follow the links" 1>&5 if test "${ac_cv_prog_file_link_option+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else touch conftestfile ln -s conftestfile conftestfile1 for file_opt in '' ' -L' do res=`eval $file_prog $file_opt conftestfile1 2>&-` || res=symbolic case $res in *symbolic*) ;; *) ac_cv_prog_file_link_option=$file_opt ; break ;; esac done rm conftestfile conftestfile1 if test "X$ac_cv_prog_file_link_option" = X; then ac_cv_prog_file_link_option="no"; fi fi # If no flag were found, default to `file' with no options case "X$ac_cv_prog_file_link_option" in X) echo "$ECHO_T""none required" 1>&6 ; FILE_LINK=${file_prog} ;; Xno) echo "$ECHO_T""no way" 1>&6; FILE_LINK=${file_prog} ;; *) echo "$ECHO_T""$ac_cv_prog_file_link_option" 1>&6; FILE_LINK=${file_prog}${ac_cv_prog_file_link_option} ;; esac # How to send things in the printer queue for ac_prog in lp lpr do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:8540: checking for $ac_word" 1>&5 if test "${ac_cv_prog_LPR+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test -n "$LPR"; then ac_cv_prog_LPR="$LPR" # Let the user override the test. else for ac_path in `IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then echo "$ac_dir/$ac_word" fi done IFS="$ac_save_ifs" `; do ac_cv_prog_LPR="$ac_prog" break done fi fi LPR="$ac_cv_prog_LPR" if test -n "$LPR"; then echo "$ECHO_T""$LPR" 1>&6 else echo "$ECHO_T""no" 1>&6 fi test -n "$LPR" && break done test -n "$LPR" || LPR="no" echo $ECHO_N "checking for printer queue selection... $ECHO_C" 1>&6 echo "configure:8574: checking for printer queue selection" 1>&5 case "x$LPR" in xlp) LPR_QUEUE_OPTION=-d ;; xlpr) LPR_QUEUE_OPTION=-P ;; xno) LPR="cat" LPR_QUEUE_OPTION=">" ;; *) # This user has specified per $LPR and $LPR_QUEUE_OPTION ;; esac echo "$ECHO_T""$LPR $LPR_QUEUE_OPTION PRINTER" 1>&6 # # default medium to use (defaulted to A4) # # Check whether --with-medium or --without-medium was given. if test "${with_medium+set}" = set; then withval="$with_medium" MEDIUM=$with_medium else if test x"$ac_cv_lib_paper_systempapername" = xyes; then MEDIUM=libpaper else MEDIUM=A4 fi fi # # default encoding to use (defaulted to latin1) # # Check whether --with-encoding or --without-encoding was given. if test "${with_encoding+set}" = set; then withval="$with_encoding" ENCODING=$with_encoding else ENCODING=latin1 fi ######################## # Nice special printers ######################## # Look for GV or Ghostview if test "$enable_paths" = "no"; then # Extract the first word of "gv", so it can be a program name with args. set dummy gv; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:8620: checking for $ac_word" 1>&5 if test "${ac_cv_prog_COM_gv+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test -n "$COM_gv"; then ac_cv_prog_COM_gv="$COM_gv" # Let the user override the test. else for ac_path in `IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then echo "$ac_dir/$ac_word" fi done IFS="$ac_save_ifs" `; do ac_cv_prog_COM_gv="yes" break done test -z "$ac_cv_prog_COM_gv" && ac_cv_prog_COM_gv="no" fi fi COM_gv="$ac_cv_prog_COM_gv" if test -n "$COM_gv"; then echo "$ECHO_T""$COM_gv" 1>&6 else echo "$ECHO_T""no" 1>&6 fi gv="gv"; if test "$COM_gv" = "yes"; then COM_gv=""; else COM_gv="#"; fi else # Extract the first word of "gv", so it can be a program name with args. set dummy gv; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:8660: checking for $ac_word" 1>&5 if test "${ac_cv_path_gv+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else case "$gv" in [/\\]* | ?:[/\\]*) ac_cv_path_gv="$gv" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_word"; then ac_cv_path_gv="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_gv" && ac_cv_path_gv="#" ;; esac fi gv="$ac_cv_path_gv" if test -n "$gv"; then echo "$ECHO_T""$gv" 1>&6 else echo "$ECHO_T""no" 1>&6 fi if test "gv" = "#"; then # not found gv="gv" # let the name of the program as path COM_gv="#" else COM_gv="" fi fi if test "$enable_paths" = "no"; then # Extract the first word of "ghostview", so it can be a program name with args. set dummy ghostview; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:8702: checking for $ac_word" 1>&5 if test "${ac_cv_prog_COM_ghostview+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test -n "$COM_ghostview"; then ac_cv_prog_COM_ghostview="$COM_ghostview" # Let the user override the test. else for ac_path in `IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then echo "$ac_dir/$ac_word" fi done IFS="$ac_save_ifs" `; do ac_cv_prog_COM_ghostview="yes" break done test -z "$ac_cv_prog_COM_ghostview" && ac_cv_prog_COM_ghostview="no" fi fi COM_ghostview="$ac_cv_prog_COM_ghostview" if test -n "$COM_ghostview"; then echo "$ECHO_T""$COM_ghostview" 1>&6 else echo "$ECHO_T""no" 1>&6 fi ghostview="ghostview"; if test "$COM_ghostview" = "yes"; then COM_ghostview=""; else COM_ghostview="#"; fi else # Extract the first word of "ghostview", so it can be a program name with args. set dummy ghostview; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:8742: checking for $ac_word" 1>&5 if test "${ac_cv_path_ghostview+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else case "$ghostview" in [/\\]* | ?:[/\\]*) ac_cv_path_ghostview="$ghostview" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_word"; then ac_cv_path_ghostview="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_ghostview" && ac_cv_path_ghostview="#" ;; esac fi ghostview="$ac_cv_path_ghostview" if test -n "$ghostview"; then echo "$ECHO_T""$ghostview" 1>&6 else echo "$ECHO_T""no" 1>&6 fi if test "ghostview" = "#"; then # not found ghostview="ghostview" # let the name of the program as path COM_ghostview="#" else COM_ghostview="" fi fi if test "$COM_gv$COM_ghostview" = "##"; then COM_DISPLAY="#" fi ################################# # Helping people with delegations ################################# # "Compressed" delegation if test "$enable_paths" = "no"; then # Extract the first word of "gzip", so it can be a program name with args. set dummy gzip; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:8792: checking for $ac_word" 1>&5 if test "${ac_cv_prog_COM_gzip+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test -n "$COM_gzip"; then ac_cv_prog_COM_gzip="$COM_gzip" # Let the user override the test. else for ac_path in `IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then echo "$ac_dir/$ac_word" fi done IFS="$ac_save_ifs" `; do ac_cv_prog_COM_gzip="yes" break done test -z "$ac_cv_prog_COM_gzip" && ac_cv_prog_COM_gzip="no" fi fi COM_gzip="$ac_cv_prog_COM_gzip" if test -n "$COM_gzip"; then echo "$ECHO_T""$COM_gzip" 1>&6 else echo "$ECHO_T""no" 1>&6 fi gzip="gzip"; if test "$COM_gzip" = "yes"; then COM_gzip=""; else COM_gzip="#"; fi else # Extract the first word of "gzip", so it can be a program name with args. set dummy gzip; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:8832: checking for $ac_word" 1>&5 if test "${ac_cv_path_gzip+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else case "$gzip" in [/\\]* | ?:[/\\]*) ac_cv_path_gzip="$gzip" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_word"; then ac_cv_path_gzip="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_gzip" && ac_cv_path_gzip="#" ;; esac fi gzip="$ac_cv_path_gzip" if test -n "$gzip"; then echo "$ECHO_T""$gzip" 1>&6 else echo "$ECHO_T""no" 1>&6 fi if test "gzip" = "#"; then # not found gzip="gzip" # let the name of the program as path COM_gzip="#" else COM_gzip="" fi fi if test "$COM_gzip" = "#"; then echo "configure: warning: ============================================================ a2ps works better with gzip. Consider fetching gzip at any ftp site proposing GNU programs" 1>&2 echo "configure: warning: ============================================================" 1>&2 fi if test "$enable_paths" = "no"; then # Extract the first word of "bzip", so it can be a program name with args. set dummy bzip; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:8880: checking for $ac_word" 1>&5 if test "${ac_cv_prog_COM_bzip+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test -n "$COM_bzip"; then ac_cv_prog_COM_bzip="$COM_bzip" # Let the user override the test. else for ac_path in `IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then echo "$ac_dir/$ac_word" fi done IFS="$ac_save_ifs" `; do ac_cv_prog_COM_bzip="yes" break done test -z "$ac_cv_prog_COM_bzip" && ac_cv_prog_COM_bzip="no" fi fi COM_bzip="$ac_cv_prog_COM_bzip" if test -n "$COM_bzip"; then echo "$ECHO_T""$COM_bzip" 1>&6 else echo "$ECHO_T""no" 1>&6 fi bzip="bzip"; if test "$COM_bzip" = "yes"; then COM_bzip=""; else COM_bzip="#"; fi else # Extract the first word of "bzip", so it can be a program name with args. set dummy bzip; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:8920: checking for $ac_word" 1>&5 if test "${ac_cv_path_bzip+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else case "$bzip" in [/\\]* | ?:[/\\]*) ac_cv_path_bzip="$bzip" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_word"; then ac_cv_path_bzip="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_bzip" && ac_cv_path_bzip="#" ;; esac fi bzip="$ac_cv_path_bzip" if test -n "$bzip"; then echo "$ECHO_T""$bzip" 1>&6 else echo "$ECHO_T""no" 1>&6 fi if test "bzip" = "#"; then # not found bzip="bzip" # let the name of the program as path COM_bzip="#" else COM_bzip="" fi fi if test "$enable_paths" = "no"; then # Extract the first word of "bzip2", so it can be a program name with args. set dummy bzip2; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:8962: checking for $ac_word" 1>&5 if test "${ac_cv_prog_COM_bzip2+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test -n "$COM_bzip2"; then ac_cv_prog_COM_bzip2="$COM_bzip2" # Let the user override the test. else for ac_path in `IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then echo "$ac_dir/$ac_word" fi done IFS="$ac_save_ifs" `; do ac_cv_prog_COM_bzip2="yes" break done test -z "$ac_cv_prog_COM_bzip2" && ac_cv_prog_COM_bzip2="no" fi fi COM_bzip2="$ac_cv_prog_COM_bzip2" if test -n "$COM_bzip2"; then echo "$ECHO_T""$COM_bzip2" 1>&6 else echo "$ECHO_T""no" 1>&6 fi bzip2="bzip2"; if test "$COM_bzip2" = "yes"; then COM_bzip2=""; else COM_bzip2="#"; fi else # Extract the first word of "bzip2", so it can be a program name with args. set dummy bzip2; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:9002: checking for $ac_word" 1>&5 if test "${ac_cv_path_bzip2+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else case "$bzip2" in [/\\]* | ?:[/\\]*) ac_cv_path_bzip2="$bzip2" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_word"; then ac_cv_path_bzip2="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_bzip2" && ac_cv_path_bzip2="#" ;; esac fi bzip2="$ac_cv_path_bzip2" if test -n "$bzip2"; then echo "$ECHO_T""$bzip2" 1>&6 else echo "$ECHO_T""no" 1>&6 fi if test "bzip2" = "#"; then # not found bzip2="bzip2" # let the name of the program as path COM_bzip2="#" else COM_bzip2="" fi fi # DVI delegation if test "$enable_paths" = "no"; then # Extract the first word of "dvips", so it can be a program name with args. set dummy dvips; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:9045: checking for $ac_word" 1>&5 if test "${ac_cv_prog_COM_dvips+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test -n "$COM_dvips"; then ac_cv_prog_COM_dvips="$COM_dvips" # Let the user override the test. else for ac_path in `IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then echo "$ac_dir/$ac_word" fi done IFS="$ac_save_ifs" `; do ac_cv_prog_COM_dvips="yes" break done test -z "$ac_cv_prog_COM_dvips" && ac_cv_prog_COM_dvips="no" fi fi COM_dvips="$ac_cv_prog_COM_dvips" if test -n "$COM_dvips"; then echo "$ECHO_T""$COM_dvips" 1>&6 else echo "$ECHO_T""no" 1>&6 fi dvips="dvips"; if test "$COM_dvips" = "yes"; then COM_dvips=""; else COM_dvips="#"; fi else # Extract the first word of "dvips", so it can be a program name with args. set dummy dvips; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:9085: checking for $ac_word" 1>&5 if test "${ac_cv_path_dvips+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else case "$dvips" in [/\\]* | ?:[/\\]*) ac_cv_path_dvips="$dvips" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_word"; then ac_cv_path_dvips="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_dvips" && ac_cv_path_dvips="#" ;; esac fi dvips="$ac_cv_path_dvips" if test -n "$dvips"; then echo "$ECHO_T""$dvips" 1>&6 else echo "$ECHO_T""no" 1>&6 fi if test "dvips" = "#"; then # not found dvips="dvips" # let the name of the program as path COM_dvips="#" else COM_dvips="" fi fi # ImageMagick for most image formats if test "$enable_paths" = "no"; then # Extract the first word of "convert", so it can be a program name with args. set dummy convert; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:9128: checking for $ac_word" 1>&5 if test "${ac_cv_prog_COM_convert+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test -n "$COM_convert"; then ac_cv_prog_COM_convert="$COM_convert" # Let the user override the test. else for ac_path in `IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then echo "$ac_dir/$ac_word" fi done IFS="$ac_save_ifs" `; do ac_cv_prog_COM_convert="yes" break done test -z "$ac_cv_prog_COM_convert" && ac_cv_prog_COM_convert="no" fi fi COM_convert="$ac_cv_prog_COM_convert" if test -n "$COM_convert"; then echo "$ECHO_T""$COM_convert" 1>&6 else echo "$ECHO_T""no" 1>&6 fi convert="convert"; if test "$COM_convert" = "yes"; then COM_convert=""; else COM_convert="#"; fi else # Extract the first word of "convert", so it can be a program name with args. set dummy convert; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:9168: checking for $ac_word" 1>&5 if test "${ac_cv_path_convert+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else case "$convert" in [/\\]* | ?:[/\\]*) ac_cv_path_convert="$convert" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_word"; then ac_cv_path_convert="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_convert" && ac_cv_path_convert="#" ;; esac fi convert="$ac_cv_path_convert" if test -n "$convert"; then echo "$ECHO_T""$convert" 1>&6 else echo "$ECHO_T""no" 1>&6 fi if test "convert" = "#"; then # not found convert="convert" # let the name of the program as path COM_convert="#" else COM_convert="" fi fi # PDF delegation if test "$enable_paths" = "no"; then # Extract the first word of "acroread", so it can be a program name with args. set dummy acroread; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:9211: checking for $ac_word" 1>&5 if test "${ac_cv_prog_COM_acroread+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test -n "$COM_acroread"; then ac_cv_prog_COM_acroread="$COM_acroread" # Let the user override the test. else for ac_path in `IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then echo "$ac_dir/$ac_word" fi done IFS="$ac_save_ifs" `; do ac_cv_prog_COM_acroread="yes" break done test -z "$ac_cv_prog_COM_acroread" && ac_cv_prog_COM_acroread="no" fi fi COM_acroread="$ac_cv_prog_COM_acroread" if test -n "$COM_acroread"; then echo "$ECHO_T""$COM_acroread" 1>&6 else echo "$ECHO_T""no" 1>&6 fi acroread="acroread"; if test "$COM_acroread" = "yes"; then COM_acroread=""; else COM_acroread="#"; fi else # Extract the first word of "acroread", so it can be a program name with args. set dummy acroread; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:9251: checking for $ac_word" 1>&5 if test "${ac_cv_path_acroread+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else case "$acroread" in [/\\]* | ?:[/\\]*) ac_cv_path_acroread="$acroread" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_word"; then ac_cv_path_acroread="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_acroread" && ac_cv_path_acroread="#" ;; esac fi acroread="$ac_cv_path_acroread" if test -n "$acroread"; then echo "$ECHO_T""$acroread" 1>&6 else echo "$ECHO_T""no" 1>&6 fi if test "acroread" = "#"; then # not found acroread="acroread" # let the name of the program as path COM_acroread="#" else COM_acroread="" fi fi if test "$enable_paths" = "no"; then # Extract the first word of "pdf2ps", so it can be a program name with args. set dummy pdf2ps; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:9293: checking for $ac_word" 1>&5 if test "${ac_cv_prog_COM_pdf2ps+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test -n "$COM_pdf2ps"; then ac_cv_prog_COM_pdf2ps="$COM_pdf2ps" # Let the user override the test. else for ac_path in `IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then echo "$ac_dir/$ac_word" fi done IFS="$ac_save_ifs" `; do ac_cv_prog_COM_pdf2ps="yes" break done test -z "$ac_cv_prog_COM_pdf2ps" && ac_cv_prog_COM_pdf2ps="no" fi fi COM_pdf2ps="$ac_cv_prog_COM_pdf2ps" if test -n "$COM_pdf2ps"; then echo "$ECHO_T""$COM_pdf2ps" 1>&6 else echo "$ECHO_T""no" 1>&6 fi pdf2ps="pdf2ps"; if test "$COM_pdf2ps" = "yes"; then COM_pdf2ps=""; else COM_pdf2ps="#"; fi else # Extract the first word of "pdf2ps", so it can be a program name with args. set dummy pdf2ps; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:9333: checking for $ac_word" 1>&5 if test "${ac_cv_path_pdf2ps+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else case "$pdf2ps" in [/\\]* | ?:[/\\]*) ac_cv_path_pdf2ps="$pdf2ps" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_word"; then ac_cv_path_pdf2ps="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_pdf2ps" && ac_cv_path_pdf2ps="#" ;; esac fi pdf2ps="$ac_cv_path_pdf2ps" if test -n "$pdf2ps"; then echo "$ECHO_T""$pdf2ps" 1>&6 else echo "$ECHO_T""no" 1>&6 fi if test "pdf2ps" = "#"; then # not found pdf2ps="pdf2ps" # let the name of the program as path COM_pdf2ps="#" else COM_pdf2ps="" fi fi COM_acroread4='#' # If we have acroread, is it a version which supports -shrink etc.? if test "x$COM_acroread" = x; then echo $ECHO_N "checking whether acroread is acroread 4... $ECHO_C" 1>&6 echo "configure:9376: checking whether acroread is acroread 4" 1>&5 if test "${a2_cv_com_acroread4+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else $acroread -helpall >conftest.help if fgrep -e -size conftest.help >/dev/null && fgrep -e -shrink conftest.help >/dev/null; then a2_cv_com_acroread4=yes else a2_cv_com_acroread4=no fi rm -f conftest.help fi echo "$ECHO_T""$a2_cv_com_acroread4" 1>&6 test "$a2_cv_com_acroread4" = yes && COM_acroread4='' fi # Outputting PDF if test "$enable_paths" = "no"; then # Extract the first word of "distill", so it can be a program name with args. set dummy distill; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:9398: checking for $ac_word" 1>&5 if test "${ac_cv_prog_COM_distill+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test -n "$COM_distill"; then ac_cv_prog_COM_distill="$COM_distill" # Let the user override the test. else for ac_path in `IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then echo "$ac_dir/$ac_word" fi done IFS="$ac_save_ifs" `; do ac_cv_prog_COM_distill="yes" break done test -z "$ac_cv_prog_COM_distill" && ac_cv_prog_COM_distill="no" fi fi COM_distill="$ac_cv_prog_COM_distill" if test -n "$COM_distill"; then echo "$ECHO_T""$COM_distill" 1>&6 else echo "$ECHO_T""no" 1>&6 fi distill="distill"; if test "$COM_distill" = "yes"; then COM_distill=""; else COM_distill="#"; fi else # Extract the first word of "distill", so it can be a program name with args. set dummy distill; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:9438: checking for $ac_word" 1>&5 if test "${ac_cv_path_distill+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else case "$distill" in [/\\]* | ?:[/\\]*) ac_cv_path_distill="$distill" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_word"; then ac_cv_path_distill="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_distill" && ac_cv_path_distill="#" ;; esac fi distill="$ac_cv_path_distill" if test -n "$distill"; then echo "$ECHO_T""$distill" 1>&6 else echo "$ECHO_T""no" 1>&6 fi if test "distill" = "#"; then # not found distill="distill" # let the name of the program as path COM_distill="#" else COM_distill="" fi fi if test "$enable_paths" = "no"; then # Extract the first word of "ps2pdf", so it can be a program name with args. set dummy ps2pdf; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:9480: checking for $ac_word" 1>&5 if test "${ac_cv_prog_COM_ps2pdf+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test -n "$COM_ps2pdf"; then ac_cv_prog_COM_ps2pdf="$COM_ps2pdf" # Let the user override the test. else for ac_path in `IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then echo "$ac_dir/$ac_word" fi done IFS="$ac_save_ifs" `; do ac_cv_prog_COM_ps2pdf="yes" break done test -z "$ac_cv_prog_COM_ps2pdf" && ac_cv_prog_COM_ps2pdf="no" fi fi COM_ps2pdf="$ac_cv_prog_COM_ps2pdf" if test -n "$COM_ps2pdf"; then echo "$ECHO_T""$COM_ps2pdf" 1>&6 else echo "$ECHO_T""no" 1>&6 fi ps2pdf="ps2pdf"; if test "$COM_ps2pdf" = "yes"; then COM_ps2pdf=""; else COM_ps2pdf="#"; fi else # Extract the first word of "ps2pdf", so it can be a program name with args. set dummy ps2pdf; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:9520: checking for $ac_word" 1>&5 if test "${ac_cv_path_ps2pdf+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else case "$ps2pdf" in [/\\]* | ?:[/\\]*) ac_cv_path_ps2pdf="$ps2pdf" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_word"; then ac_cv_path_ps2pdf="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_ps2pdf" && ac_cv_path_ps2pdf="#" ;; esac fi ps2pdf="$ac_cv_path_ps2pdf" if test -n "$ps2pdf"; then echo "$ECHO_T""$ps2pdf" 1>&6 else echo "$ECHO_T""no" 1>&6 fi if test "ps2pdf" = "#"; then # not found ps2pdf="ps2pdf" # let the name of the program as path COM_ps2pdf="#" else COM_ps2pdf="" fi fi test "$COM_distill$COM_ps2pdf" = "##" && COM_PS2PDF="#" # PostScript delegation. Check for psutils 1.17 if test "$enable_paths" = "no"; then # Extract the first word of "psselect", so it can be a program name with args. set dummy psselect; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:9565: checking for $ac_word" 1>&5 if test "${ac_cv_prog_COM_psselect+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test -n "$COM_psselect"; then ac_cv_prog_COM_psselect="$COM_psselect" # Let the user override the test. else for ac_path in `IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then echo "$ac_dir/$ac_word" fi done IFS="$ac_save_ifs" `; do ac_cv_prog_COM_psselect="yes" break done test -z "$ac_cv_prog_COM_psselect" && ac_cv_prog_COM_psselect="no" fi fi COM_psselect="$ac_cv_prog_COM_psselect" if test -n "$COM_psselect"; then echo "$ECHO_T""$COM_psselect" 1>&6 else echo "$ECHO_T""no" 1>&6 fi psselect="psselect"; if test "$COM_psselect" = "yes"; then COM_psselect=""; else COM_psselect="#"; fi else # Extract the first word of "psselect", so it can be a program name with args. set dummy psselect; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:9605: checking for $ac_word" 1>&5 if test "${ac_cv_path_psselect+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else case "$psselect" in [/\\]* | ?:[/\\]*) ac_cv_path_psselect="$psselect" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_word"; then ac_cv_path_psselect="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_psselect" && ac_cv_path_psselect="#" ;; esac fi psselect="$ac_cv_path_psselect" if test -n "$psselect"; then echo "$ECHO_T""$psselect" 1>&6 else echo "$ECHO_T""no" 1>&6 fi if test "psselect" = "#"; then # not found psselect="psselect" # let the name of the program as path COM_psselect="#" else COM_psselect="" fi fi if test "$enable_paths" = "no"; then # Extract the first word of "psnup", so it can be a program name with args. set dummy psnup; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:9647: checking for $ac_word" 1>&5 if test "${ac_cv_prog_COM_psnup+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test -n "$COM_psnup"; then ac_cv_prog_COM_psnup="$COM_psnup" # Let the user override the test. else for ac_path in `IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then echo "$ac_dir/$ac_word" fi done IFS="$ac_save_ifs" `; do ac_cv_prog_COM_psnup="yes" break done test -z "$ac_cv_prog_COM_psnup" && ac_cv_prog_COM_psnup="no" fi fi COM_psnup="$ac_cv_prog_COM_psnup" if test -n "$COM_psnup"; then echo "$ECHO_T""$COM_psnup" 1>&6 else echo "$ECHO_T""no" 1>&6 fi psnup="psnup"; if test "$COM_psnup" = "yes"; then COM_psnup=""; else COM_psnup="#"; fi else # Extract the first word of "psnup", so it can be a program name with args. set dummy psnup; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:9687: checking for $ac_word" 1>&5 if test "${ac_cv_path_psnup+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else case "$psnup" in [/\\]* | ?:[/\\]*) ac_cv_path_psnup="$psnup" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_word"; then ac_cv_path_psnup="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_psnup" && ac_cv_path_psnup="#" ;; esac fi psnup="$ac_cv_path_psnup" if test -n "$psnup"; then echo "$ECHO_T""$psnup" 1>&6 else echo "$ECHO_T""no" 1>&6 fi if test "psnup" = "#"; then # not found psnup="psnup" # let the name of the program as path COM_psnup="#" else COM_psnup="" fi fi if test "$COM_psselect" = "#"; then COM_PSUTILS="#" else # There is one. Check version > MAJOR.MINOR ac_prog_psselect_banner=`psselect -v 2>&1 | sed 1q` ac_prog_psselect_release=`set -- $ac_prog_psselect_banner && echo $3` ac_prog_psselect_patch=`set -- $ac_prog_psselect_banner && echo $5` test ${ac_prog_psselect_release}0 -lt 10 && COM_PSUTILS="#" test ${ac_prog_psselect_patch}0 -lt 170 && COM_PSUTILS="#" fi if test "$COM_PSUTILS" = "#"; then echo "configure: warning: ===========================================================" 1>&2 echo "configure: warning: a2ps works much better with the psutils. Available at" 1>&2 echo "configure: warning: http://www.dcs.ed.ac.uk/home/ajcd/psutils/" 1>&2 echo "configure: warning: You *really* should install them *before* installing a2ps." 1>&2 echo "configure: warning: ===========================================================" 1>&2 fi # ROFF delegation if test "$enable_paths" = "no"; then # Extract the first word of "grog", so it can be a program name with args. set dummy grog; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:9748: checking for $ac_word" 1>&5 if test "${ac_cv_prog_COM_grog+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test -n "$COM_grog"; then ac_cv_prog_COM_grog="$COM_grog" # Let the user override the test. else for ac_path in `IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then echo "$ac_dir/$ac_word" fi done IFS="$ac_save_ifs" `; do ac_cv_prog_COM_grog="yes" break done test -z "$ac_cv_prog_COM_grog" && ac_cv_prog_COM_grog="no" fi fi COM_grog="$ac_cv_prog_COM_grog" if test -n "$COM_grog"; then echo "$ECHO_T""$COM_grog" 1>&6 else echo "$ECHO_T""no" 1>&6 fi grog="grog"; if test "$COM_grog" = "yes"; then COM_grog=""; else COM_grog="#"; fi else # Extract the first word of "grog", so it can be a program name with args. set dummy grog; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:9788: checking for $ac_word" 1>&5 if test "${ac_cv_path_grog+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else case "$grog" in [/\\]* | ?:[/\\]*) ac_cv_path_grog="$grog" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_word"; then ac_cv_path_grog="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_grog" && ac_cv_path_grog="#" ;; esac fi grog="$ac_cv_path_grog" if test -n "$grog"; then echo "$ECHO_T""$grog" 1>&6 else echo "$ECHO_T""no" 1>&6 fi if test "grog" = "#"; then # not found grog="grog" # let the name of the program as path COM_grog="#" else COM_grog="" fi fi if test "$COM_grog" = "#"; then echo "configure: warning: ============================================================ a2ps works better with groff. Consider fetching groff at any ftp site proposing GNU programs" 1>&2 echo "configure: warning: ============================================================" 1>&2 fi # Texinfo delegation if test "$enable_paths" = "no"; then # Extract the first word of "makeinfo", so it can be a program name with args. set dummy makeinfo; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:9837: checking for $ac_word" 1>&5 if test "${ac_cv_prog_COM_makeinfo+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test -n "$COM_makeinfo"; then ac_cv_prog_COM_makeinfo="$COM_makeinfo" # Let the user override the test. else for ac_path in `IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then echo "$ac_dir/$ac_word" fi done IFS="$ac_save_ifs" `; do ac_cv_prog_COM_makeinfo="yes" break done test -z "$ac_cv_prog_COM_makeinfo" && ac_cv_prog_COM_makeinfo="no" fi fi COM_makeinfo="$ac_cv_prog_COM_makeinfo" if test -n "$COM_makeinfo"; then echo "$ECHO_T""$COM_makeinfo" 1>&6 else echo "$ECHO_T""no" 1>&6 fi makeinfo="makeinfo"; if test "$COM_makeinfo" = "yes"; then COM_makeinfo=""; else COM_makeinfo="#"; fi else # Extract the first word of "makeinfo", so it can be a program name with args. set dummy makeinfo; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:9877: checking for $ac_word" 1>&5 if test "${ac_cv_path_makeinfo+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else case "$makeinfo" in [/\\]* | ?:[/\\]*) ac_cv_path_makeinfo="$makeinfo" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_word"; then ac_cv_path_makeinfo="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_makeinfo" && ac_cv_path_makeinfo="#" ;; esac fi makeinfo="$ac_cv_path_makeinfo" if test -n "$makeinfo"; then echo "$ECHO_T""$makeinfo" 1>&6 else echo "$ECHO_T""no" 1>&6 fi if test "makeinfo" = "#"; then # not found makeinfo="makeinfo" # let the name of the program as path COM_makeinfo="#" else COM_makeinfo="" fi fi if test "$enable_paths" = "no"; then # Extract the first word of "tex", so it can be a program name with args. set dummy tex; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:9919: checking for $ac_word" 1>&5 if test "${ac_cv_prog_COM_tex+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test -n "$COM_tex"; then ac_cv_prog_COM_tex="$COM_tex" # Let the user override the test. else for ac_path in `IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then echo "$ac_dir/$ac_word" fi done IFS="$ac_save_ifs" `; do ac_cv_prog_COM_tex="yes" break done test -z "$ac_cv_prog_COM_tex" && ac_cv_prog_COM_tex="no" fi fi COM_tex="$ac_cv_prog_COM_tex" if test -n "$COM_tex"; then echo "$ECHO_T""$COM_tex" 1>&6 else echo "$ECHO_T""no" 1>&6 fi tex="tex"; if test "$COM_tex" = "yes"; then COM_tex=""; else COM_tex="#"; fi else # Extract the first word of "tex", so it can be a program name with args. set dummy tex; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:9959: checking for $ac_word" 1>&5 if test "${ac_cv_path_tex+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else case "$tex" in [/\\]* | ?:[/\\]*) ac_cv_path_tex="$tex" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_word"; then ac_cv_path_tex="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_tex" && ac_cv_path_tex="#" ;; esac fi tex="$ac_cv_path_tex" if test -n "$tex"; then echo "$ECHO_T""$tex" 1>&6 else echo "$ECHO_T""no" 1>&6 fi if test "tex" = "#"; then # not found tex="tex" # let the name of the program as path COM_tex="#" else COM_tex="" fi fi if test "$enable_paths" = "no"; then # Extract the first word of "latex", so it can be a program name with args. set dummy latex; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:10001: checking for $ac_word" 1>&5 if test "${ac_cv_prog_COM_latex+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else if test -n "$COM_latex"; then ac_cv_prog_COM_latex="$COM_latex" # Let the user override the test. else for ac_path in `IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then echo "$ac_dir/$ac_word" fi done IFS="$ac_save_ifs" `; do ac_cv_prog_COM_latex="yes" break done test -z "$ac_cv_prog_COM_latex" && ac_cv_prog_COM_latex="no" fi fi COM_latex="$ac_cv_prog_COM_latex" if test -n "$COM_latex"; then echo "$ECHO_T""$COM_latex" 1>&6 else echo "$ECHO_T""no" 1>&6 fi latex="latex"; if test "$COM_latex" = "yes"; then COM_latex=""; else COM_latex="#"; fi else # Extract the first word of "latex", so it can be a program name with args. set dummy latex; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 echo "configure:10041: checking for $ac_word" 1>&5 if test "${ac_cv_path_latex+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else case "$latex" in [/\\]* | ?:[/\\]*) ac_cv_path_latex="$latex" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_word"; then ac_cv_path_latex="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_latex" && ac_cv_path_latex="#" ;; esac fi latex="$ac_cv_path_latex" if test -n "$latex"; then echo "$ECHO_T""$latex" 1>&6 else echo "$ECHO_T""no" 1>&6 fi if test "latex" = "#"; then # not found latex="latex" # let the name of the program as path COM_latex="#" else COM_latex="" fi fi COM_TEXI="$COM_tex$COM_makeinfo$COM_dvips" COM_LATEX="$COM_latex$COM_dvips" ## ---------- ## ## Epilogue. ## ## ---------- ## # This is necessary so that .o files in LIBOBJS are also built via # the ANSI2KNR-filtering rules. LIBOBJS=`echo "$LIBOBJS" | sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'` # Autoconf 2.14a is not ready for libtool LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.o/\.lo/g'` LTALLOCA=`echo "$ALLOCA" | sed 's/\.o/\.lo/g'` # Shell scripts trap '' 1 2 15 cat >confcache <<\EOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs. It is not useful on other systems. # If it contains results you don't want to keep, you may remove or edit it. # # By default, configure uses ./config.cache as the cache file, # creating it if it does not exist already. You can give configure # the --cache-file=FILE option to use a different cache file; that is # what configure does when it calls configure scripts in # subdirectories, so they share the cache. # Giving --cache-file=/dev/null disables caching, for debugging configure. # config.status only pays attention to the cache file if you give it the # --recheck option to rerun configure. # EOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, don't put newlines in cache variables' values. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. (set) 2>&1 | case `(ac_space=' '; set | grep ac_space) 2>&1` in *ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote substitution # turns \\\\ into \\, and sed turns \\ into \). sed -n \ -e "s/'/'\\\\''/g" \ -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" ;; *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' ;; esac >>confcache if cmp -s $cache_file confcache; then :; else if test -w $cache_file; then echo "updating cache $cache_file" cat confcache >$cache_file else echo "not updating unwritable cache $cache_file" fi fi rm -f confcache trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' # Any assignment to VPATH causes Sun make to only execute # the first set of double-colon rules, so remove it if not needed. # If there is a colon in the path, we need to keep it. if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' fi DEFS=-DHAVE_CONFIG_H : ${CONFIG_STATUS=./config.status} trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 echo creating $CONFIG_STATUS cat >$CONFIG_STATUS </dev/null | sed 1q`: # # $0 $ac_configure_args # # Compiler output produced by configure, useful for debugging # configure, is in ./config.log if it exists. # Files that config.status was made for. config_files="\\ contrib/card contrib/fixps contrib/pdiff contrib/psmandup contrib/psset Makefile src/Makefile doc/Makefile man/Makefile tests/Makefile tests/defs lib/Makefile auxdir/Makefile m4/Makefile etc/Makefile etc/a2ps_cfg etc/a2ps-site.cfg intl/Makefile po/Makefile.in sheets/Makefile encoding/Makefile ps/Makefile afm/Makefile contrib/Makefile contrib/sample/Makefile contrib/emacs/Makefile fonts/Makefile ppd/Makefile" config_headers="\\ config.h" config_links="\\ $nls_cv_header_intl:$nls_cv_header_libgt" config_commands="\\ default-1 default-2 default-3" ac_cs_usage="\\ \\\`$CONFIG_STATUS' instantiates files from templates according to the current configuration. Usage: $CONFIG_STATUS [OPTIONS] FILE... --recheck Update $CONFIG_STATUS by reconfiguring in the same conditions --version Print the version of Autoconf and exit --help Display this help and exit --file=FILE[:TEMPLATE] Instantiate the configuration file FILE --header=FILE[:TEMPLATE] Instantiate the configuration header FILE Configuration files: \$config_files Configuration headers: \$config_headers Configuration links: \$config_links Configuration commands: \$config_commands Report bugs to ." ac_cs_version="\\ $CONFIG_STATUS generated by autoconf version 2.14a. Configured on host `(hostname || uname -n) 2>/dev/null | sed 1q` by `echo "$0 $ac_configure_args" | sed 's/[\\"\`\$]/\\\\&/g'`" # Root of the tmp file names. Use pid to allow concurrent executions. ac_cs_root=cs\$\$ ac_given_srcdir=$srcdir ac_given_INSTALL="$INSTALL" # If no file are specified by the user, then we need to provide default # value. By we need to know if files were specified by the user. ac_need_defaults=: while test \$# != 0 do case "\$1" in --*=*) ac_option=\`echo "\$1" | sed -e 's/=.*//'\` ac_optarg=\`echo "\$1" | sed -e 's/[^=]*=//'\` shift set dummy "\$ac_option" "\$ac_optarg" \${1+"\$@"} shift ;; -*);; *) # This is not an option, so the user has probably given explicit # arguments. ac_need_defaults=false;; esac case "\$1" in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) echo "running \${CONFIG_SHELL-/bin/sh} $0 `echo "$ac_configure_args" | sed 's/[\\"\`\$]/\\\\&/g'` --no-create --no-recursion" exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; -version | --version | --versio | --versi | --vers | --ver | --ve | --v) echo "\$ac_cs_version"; exit 0 ;; --he | --h) # Conflict between --help and --header echo "$CONFIG_STATUS: ambiguous option: \$ac_option Try \\\`$CONFIG_STATUS --help' for more information."; exit 1 ;; -help | --help | --hel ) echo "\$ac_cs_usage"; exit 0 ;; --file | --fil | --fi | --f ) shift CONFIG_FILES="\$CONFIG_FILES \$1" ac_need_defaults=false;; --header | --heade | --head | --hea ) shift CONFIG_HEADERS="\$CONFIG_FILES \$1" ac_need_defaults=false;; # Handling of arguments. 'contrib/card' ) CONFIG_FILES="\$CONFIG_FILES contrib/card" ;; 'contrib/fixps' ) CONFIG_FILES="\$CONFIG_FILES contrib/fixps" ;; 'contrib/pdiff' ) CONFIG_FILES="\$CONFIG_FILES contrib/pdiff" ;; 'contrib/psmandup' ) CONFIG_FILES="\$CONFIG_FILES contrib/psmandup" ;; 'contrib/psset' ) CONFIG_FILES="\$CONFIG_FILES contrib/psset" ;; 'Makefile' ) CONFIG_FILES="\$CONFIG_FILES Makefile" ;; 'src/Makefile' ) CONFIG_FILES="\$CONFIG_FILES src/Makefile" ;; 'doc/Makefile' ) CONFIG_FILES="\$CONFIG_FILES doc/Makefile" ;; 'man/Makefile' ) CONFIG_FILES="\$CONFIG_FILES man/Makefile" ;; 'tests/Makefile' ) CONFIG_FILES="\$CONFIG_FILES tests/Makefile" ;; 'tests/defs' ) CONFIG_FILES="\$CONFIG_FILES tests/defs" ;; 'lib/Makefile' ) CONFIG_FILES="\$CONFIG_FILES lib/Makefile" ;; 'auxdir/Makefile' ) CONFIG_FILES="\$CONFIG_FILES auxdir/Makefile" ;; 'm4/Makefile' ) CONFIG_FILES="\$CONFIG_FILES m4/Makefile" ;; 'etc/Makefile' ) CONFIG_FILES="\$CONFIG_FILES etc/Makefile" ;; 'etc/a2ps_cfg' ) CONFIG_FILES="\$CONFIG_FILES etc/a2ps_cfg" ;; 'etc/a2ps-site.cfg' ) CONFIG_FILES="\$CONFIG_FILES etc/a2ps-site.cfg" ;; 'intl/Makefile' ) CONFIG_FILES="\$CONFIG_FILES intl/Makefile" ;; 'po/Makefile.in' ) CONFIG_FILES="\$CONFIG_FILES po/Makefile.in" ;; 'sheets/Makefile' ) CONFIG_FILES="\$CONFIG_FILES sheets/Makefile" ;; 'encoding/Makefile' ) CONFIG_FILES="\$CONFIG_FILES encoding/Makefile" ;; 'ps/Makefile' ) CONFIG_FILES="\$CONFIG_FILES ps/Makefile" ;; 'afm/Makefile' ) CONFIG_FILES="\$CONFIG_FILES afm/Makefile" ;; 'contrib/Makefile' ) CONFIG_FILES="\$CONFIG_FILES contrib/Makefile" ;; 'contrib/sample/Makefile' ) CONFIG_FILES="\$CONFIG_FILES contrib/sample/Makefile" ;; 'contrib/emacs/Makefile' ) CONFIG_FILES="\$CONFIG_FILES contrib/emacs/Makefile" ;; 'fonts/Makefile' ) CONFIG_FILES="\$CONFIG_FILES fonts/Makefile" ;; 'ppd/Makefile' ) CONFIG_FILES="\$CONFIG_FILES ppd/Makefile" ;; '$nls_cv_header_intl' ) CONFIG_LINKS="\$CONFIG_LINKS $nls_cv_header_intl:$nls_cv_header_libgt" ;; 'default-1' ) CONFIG_COMMANDS="\$CONFIG_COMMANDS default-1" ;; 'default-2' ) CONFIG_COMMANDS="\$CONFIG_COMMANDS default-2" ;; 'default-3' ) CONFIG_COMMANDS="\$CONFIG_COMMANDS default-3" ;; 'config.h' ) CONFIG_HEADERS="\$CONFIG_HEADERS config.h" ;; # This is an error. -*) echo "$CONFIG_STATUS: unrecognized option: \$1 Try \\\`$CONFIG_STATUS --help' for more information."; exit 1 ;; *) echo "$CONFIG_STATUS: invalid argument: \$1"; exit 1 ;; esac shift done EOF cat >>$CONFIG_STATUS <<\EOF # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. if $ac_need_defaults; then : ${CONFIG_FILES=$config_files} : ${CONFIG_HEADERS=$config_headers} : ${CONFIG_LINKS=$config_links} : ${CONFIG_COMMANDS=$config_commands} fi # Trap to remove the temp files. trap 'rm -fr $ac_cs_root*; exit 1' 1 2 15 EOF cat >>$CONFIG_STATUS <>$CONFIG_STATUS <\$ac_cs_root.subs <<\\CEOF s%@ECHO_C@%$ECHO_C%;t t s%@ECHO_N@%$ECHO_N%;t t s%@ECHO_T@%$ECHO_T%;t t s%@SHELL@%$SHELL%;t t s%@CFLAGS@%$CFLAGS%;t t s%@CPPFLAGS@%$CPPFLAGS%;t t s%@CXXFLAGS@%$CXXFLAGS%;t t s%@FFLAGS@%$FFLAGS%;t t s%@DEFS@%$DEFS%;t t s%@LDFLAGS@%$LDFLAGS%;t t s%@LIBS@%$LIBS%;t t s%@exec_prefix@%$exec_prefix%;t t s%@prefix@%$prefix%;t t s%@program_transform_name@%$program_transform_name%;t t s%@bindir@%$bindir%;t t s%@sbindir@%$sbindir%;t t s%@libexecdir@%$libexecdir%;t t s%@datadir@%$datadir%;t t s%@sysconfdir@%$sysconfdir%;t t s%@sharedstatedir@%$sharedstatedir%;t t s%@localstatedir@%$localstatedir%;t t s%@libdir@%$libdir%;t t s%@includedir@%$includedir%;t t s%@oldincludedir@%$oldincludedir%;t t s%@infodir@%$infodir%;t t s%@mandir@%$mandir%;t t s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%;t t s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%;t t s%@INSTALL_DATA@%$INSTALL_DATA%;t t s%@PACKAGE@%$PACKAGE%;t t s%@VERSION@%$VERSION%;t t s%@ACLOCAL@%$ACLOCAL%;t t s%@AUTOCONF@%$AUTOCONF%;t t s%@AUTOMAKE@%$AUTOMAKE%;t t s%@AUTOHEADER@%$AUTOHEADER%;t t s%@MAKEINFO@%$MAKEINFO%;t t s%@AMTAR@%$AMTAR%;t t s%@install_sh@%$install_sh%;t t s%@AWK@%$AWK%;t t s%@SET_MAKE@%$SET_MAKE%;t t s%@AMDEP@%$AMDEP%;t t s%@AMDEPBACKSLASH@%$AMDEPBACKSLASH%;t t s%@DEPDIR@%$DEPDIR%;t t s%@LIBVERSION@%$LIBVERSION%;t t s%@GNU_PACKAGE@%$GNU_PACKAGE%;t t s%@M4@%$M4%;t t s%@LN_S@%$LN_S%;t t s%@PERL@%$PERL%;t t s%@CC@%$CC%;t t s%@CPP@%$CPP%;t t s%@CCDEPMODE@%$CCDEPMODE%;t t s%@U@%$U%;t t s%@ANSI2KNR@%$ANSI2KNR%;t t s%@YACC@%$YACC%;t t s%@GPERF@%$GPERF%;t t s%@LEX@%$LEX%;t t s%@LEXLIB@%$LEXLIB%;t t s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%;t t s%@host@%$host%;t t s%@host_alias@%$host_alias%;t t s%@host_cpu@%$host_cpu%;t t s%@host_vendor@%$host_vendor%;t t s%@host_os@%$host_os%;t t s%@build@%$build%;t t s%@build_alias@%$build_alias%;t t s%@build_cpu@%$build_cpu%;t t s%@build_vendor@%$build_vendor%;t t s%@build_os@%$build_os%;t t s%@RANLIB@%$RANLIB%;t t s%@LIBTOOL@%$LIBTOOL%;t t s%@LIBOBJS@%$LIBOBJS%;t t s%@EXEEXT@%$EXEEXT%;t t s%@ALLOCA@%$ALLOCA%;t t s%@USE_NLS@%$USE_NLS%;t t s%@MSGFMT@%$MSGFMT%;t t s%@GMSGFMT@%$GMSGFMT%;t t s%@XGETTEXT@%$XGETTEXT%;t t s%@GENCAT@%$GENCAT%;t t s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%;t t s%@CATALOGS@%$CATALOGS%;t t s%@CATOBJEXT@%$CATOBJEXT%;t t s%@DATADIRNAME@%$DATADIRNAME%;t t s%@GMOFILES@%$GMOFILES%;t t s%@INSTOBJEXT@%$INSTOBJEXT%;t t s%@INTLDEPS@%$INTLDEPS%;t t s%@INTLLIBS@%$INTLLIBS%;t t s%@INTLOBJS@%$INTLOBJS%;t t s%@POFILES@%$POFILES%;t t s%@POSUB@%$POSUB%;t t s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%;t t s%@GT_NO@%$GT_NO%;t t s%@GT_YES@%$GT_YES%;t t s%@MKINSTALLDIRS@%$MKINSTALLDIRS%;t t s%@l@%$l%;t t s%@EXTRA_CFLAGS@%$EXTRA_CFLAGS%;t t s%@EMACS@%$EMACS%;t t s%@lispdir@%$lispdir%;t t s%@EXTENSIONS_TRUE@%$EXTENSIONS_TRUE%;t t s%@EXTENSIONS_FALSE@%$EXTENSIONS_FALSE%;t t s%@subdirs@%$subdirs%;t t s%@PSFONT_PATH@%$PSFONT_PATH%;t t s%@file_prog@%$file_prog%;t t s%@FILE_LINK@%$FILE_LINK%;t t s%@LPR@%$LPR%;t t s%@LPR_QUEUE_OPTION@%$LPR_QUEUE_OPTION%;t t s%@MEDIUM@%$MEDIUM%;t t s%@ENCODING@%$ENCODING%;t t s%@COM_gv@%$COM_gv%;t t s%@gv@%$gv%;t t s%@COM_ghostview@%$COM_ghostview%;t t s%@ghostview@%$ghostview%;t t s%@COM_DISPLAY@%$COM_DISPLAY%;t t s%@COM_gzip@%$COM_gzip%;t t s%@gzip@%$gzip%;t t s%@COM_bzip@%$COM_bzip%;t t s%@bzip@%$bzip%;t t s%@COM_bzip2@%$COM_bzip2%;t t s%@bzip2@%$bzip2%;t t s%@COM_dvips@%$COM_dvips%;t t s%@dvips@%$dvips%;t t s%@COM_convert@%$COM_convert%;t t s%@convert@%$convert%;t t s%@COM_acroread@%$COM_acroread%;t t s%@acroread@%$acroread%;t t s%@COM_pdf2ps@%$COM_pdf2ps%;t t s%@pdf2ps@%$pdf2ps%;t t s%@COM_acroread4@%$COM_acroread4%;t t s%@COM_distill@%$COM_distill%;t t s%@distill@%$distill%;t t s%@COM_ps2pdf@%$COM_ps2pdf%;t t s%@ps2pdf@%$ps2pdf%;t t s%@COM_PS2PDF@%$COM_PS2PDF%;t t s%@COM_psselect@%$COM_psselect%;t t s%@psselect@%$psselect%;t t s%@COM_psnup@%$COM_psnup%;t t s%@psnup@%$psnup%;t t s%@COM_PSUTILS@%$COM_PSUTILS%;t t s%@COM_grog@%$COM_grog%;t t s%@grog@%$grog%;t t s%@COM_makeinfo@%$COM_makeinfo%;t t s%@makeinfo@%$makeinfo%;t t s%@COM_tex@%$COM_tex%;t t s%@tex@%$tex%;t t s%@COM_latex@%$COM_latex%;t t s%@latex@%$latex%;t t s%@COM_TEXI@%$COM_TEXI%;t t s%@COM_LATEX@%$COM_LATEX%;t t s%@LTLIBOBJS@%$LTLIBOBJS%;t t s%@LTALLOCA@%$LTALLOCA%;t t CEOF EOF cat >>$CONFIG_STATUS <<\EOF # Split the substitutions into bite-sized pieces for seds with # small command number limits, like on Digital OSF/1 and HP-UX. ac_max_sed_lines=48 ac_sed_frag=1 # Number of current file. ac_beg=1 # First line for current file. ac_end=$ac_max_sed_lines # Line after last line for current file. ac_more_lines=: ac_sed_cmds="" while $ac_more_lines; do if test $ac_beg -gt 1; then sed "1,${ac_beg}d; ${ac_end}q" $ac_cs_root.subs >$ac_cs_root.sfrag else sed "${ac_end}q" $ac_cs_root.subs >$ac_cs_root.sfrag fi if test ! -s $ac_cs_root.sfrag; then ac_more_lines=false rm -f $ac_cs_root.sfrag else # The purpose of the label and of the branching condition is to # speed up the sed processing (if there are no `@' at all, there # is no need to browse any of the substitutions). # These are the two extra sed commands mentioned above. (echo ':t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $ac_cs_root.sfrag) >$ac_cs_root.s$ac_sed_frag if test -z "$ac_sed_cmds"; then ac_sed_cmds="sed -f $ac_cs_root.s$ac_sed_frag" else ac_sed_cmds="$ac_sed_cmds | sed -f $ac_cs_root.s$ac_sed_frag" fi ac_sed_frag=`expr $ac_sed_frag + 1` ac_beg=$ac_end ac_end=`expr $ac_end + $ac_max_sed_lines` fi done if test -z "$ac_sed_cmds"; then ac_sed_cmds=cat fi fi # test -n "$CONFIG_FILES" EOF cat >>$CONFIG_STATUS <<\EOF for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case "$ac_file" in *:*) ac_file_in=`echo "$ac_file" | sed 's%[^:]*:%%'` ac_file=`echo "$ac_file" | sed 's%:.*%%'` ;; *) ac_file_in="${ac_file}.in" ;; esac # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. # Remove last slash and all that follows it. Not all systems have dirname. ac_dir=`echo "$ac_file" | sed 's%/[^/][^/]*$%%'` if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then # The file is in a subdirectory. test ! -d "$ac_dir" && mkdir "$ac_dir" ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" # A "../" for each directory in $ac_dir_suffix. ac_dots=`echo "$ac_dir_suffix" | sed 's%/[^/]*%../%g'` else ac_dir_suffix= ac_dots= fi case "$ac_given_srcdir" in .) srcdir=. if test -z "$ac_dots"; then top_srcdir=. else top_srcdir=`echo $ac_dots | sed 's%/$%%'`; fi ;; [/\\]* | ?:[/\\]* ) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir=$ac_given_srcdir ;; *) # Relative path. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" top_srcdir="$ac_dots$ac_given_srcdir" ;; esac case "$ac_given_INSTALL" in [/\\$]* | ?:[/\\]* ) INSTALL="$ac_given_INSTALL" ;; *) INSTALL="$ac_dots$ac_given_INSTALL" ;; esac echo creating "$ac_file" rm -f "$ac_file" configure_input="Generated automatically from `echo $ac_file_in | sed 's%.*/%%'` by configure." case "$ac_file" in *[Mm]akefile*) ac_comsub="1i\\ # $configure_input" ;; *) ac_comsub= ;; esac # Don't redirect the output to AC_FILE directly: use `mv' so that updating # is atomic, and doesn't need trapping. ac_file_inputs=`echo "$ac_file_in" | sed -e "s%^%$ac_given_srcdir/%;s%:% $ac_given_srcdir/%g"` for ac_file_input in $ac_file_inputs; do test -f "$ac_file_input" || { echo "configure: error: cannot find input file \`$ac_file_input'" 1>&2; exit 1; } done EOF cat >>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s%@configure_input@%$configure_input%;t t s%@srcdir@%$srcdir%;t t s%@top_srcdir@%$top_srcdir%;t t s%@INSTALL@%$INSTALL%;t t " $ac_file_inputs | (eval "$ac_sed_cmds") >$ac_cs_root.out mv $ac_cs_root.out $ac_file # Run the commands associated with the file. case "$ac_file" in contrib/card ) chmod +x contrib/card ;; contrib/fixps ) chmod +x contrib/fixps ;; contrib/pdiff ) chmod +x contrib/pdiff ;; contrib/psmandup ) chmod +x contrib/psmandup ;; contrib/psset ) chmod +x contrib/psset ;; esac fi; done rm -f $ac_cs_root.s* EOF cat >>$CONFIG_STATUS <<\EOF # # CONFIG_HEADER section. # # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where # NAME is the cpp macro being defined and VALUE is the value it is being given. # # ac_d sets the value in "#define NAME VALUE" lines. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' ac_dB='[ ].*$%\1#\2' ac_dC=' ' ac_dD='%;t t' # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' ac_uB='$%\1#\2define\3' ac_uC=' ' ac_uD='%;t t' for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case "$ac_file" in *:*) ac_file_in=`echo "$ac_file" | sed 's%[^:]*:%%'` ac_file=`echo "$ac_file" | sed 's%:.*%%'` ;; *) ac_file_in="${ac_file}.in" ;; esac echo creating $ac_file rm -f $ac_cs_root.frag $ac_cs_root.in $ac_cs_root.out ac_file_inputs=`echo "$ac_file_in" | sed -e "s%^%$ac_given_srcdir/%;s%:% $ac_given_srcdir/%g"` for ac_file_input in $ac_file_inputs; do test -f "$ac_file_input" || { echo "configure: error: cannot find input file \`$ac_file_input'" 1>&2; exit 1; } done # Remove the trailing spaces. sed -e 's/[ ]*$//' $ac_file_inputs >$ac_cs_root.in EOF # Transform confdefs.h into two sed scripts, `conftest.defines' and # `conftest.undefs', that substitutes the proper values into # config.h.in to produce config.h. The first handles `#define' # templates, and the second `#undef' templates. # And first: Protect against being on the right side of a sed subst in # config.status. Protect against being in an unquoted here document # in config.status. rm -f conftest.defines conftest.undefs cat >$ac_cs_root.hdr <<\EOF s/[\\&%]/\\&/g s%[\\$`]%\\&%g t clear : clear s%^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$%${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD}%gp t cleanup s%^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp : cleanup EOF # If some macros were called several times there might be several times # the same #defines, which is useless. Nevertheless, we may not want to # sort them, since we want the *last* AC_DEFINE to be honored. uniq confdefs.h | sed -n -f $ac_cs_root.hdr >conftest.defines sed -e 's/ac_d/ac_u/g' conftest.defines >conftest.undefs rm -f $ac_cs_root.hdr # This sed command replaces #undef with comments. This is necessary, for # example, in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. cat >>conftest.undefs <<\EOF s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% EOF # Break up conftest.defines because some shells have a limit on the size # of here documents, and old seds have small limits too (100 cmds). echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS echo ' if egrep "^[ ]*#[ ]*define" $ac_cs_root.in >/dev/null; then' >>$CONFIG_STATUS echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS echo ' :' >>$CONFIG_STATUS rm -f conftest.tail while grep . conftest.defines >/dev/null do # Write a limited-size here document to $ac_cs_root.frag. echo ' cat >$ac_cs_root.frag <>$CONFIG_STATUS echo ': t' >>$CONFIG_STATUS echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS echo 'CEOF sed -f $ac_cs_root.frag $ac_cs_root.in >$ac_cs_root.out rm -f $ac_cs_root.in mv $ac_cs_root.out $ac_cs_root.in ' >>$CONFIG_STATUS sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail rm -f conftest.defines mv conftest.tail conftest.defines done rm -f conftest.defines echo ' fi # egrep' >>$CONFIG_STATUS echo >>$CONFIG_STATUS # Break up conftest.undefs because some shells have a limit on the size # of here documents, and old seds have small limits too (100 cmds). echo ' # Handle all the #undef templates' >>$CONFIG_STATUS rm -f conftest.tail while grep . conftest.undefs >/dev/null do # Write a limited-size here document to $ac_cs_root.frag. echo ' cat >$ac_cs_root.frag <>$CONFIG_STATUS echo ': t' >>$CONFIG_STATUS echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS echo 'CEOF sed -f $ac_cs_root.frag $ac_cs_root.in >$ac_cs_root.out rm -f $ac_cs_root.in mv $ac_cs_root.out $ac_cs_root.in ' >>$CONFIG_STATUS sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail rm -f conftest.undefs mv conftest.tail conftest.undefs done rm -f conftest.undefs cat >>$CONFIG_STATUS <<\EOF rm -f $ac_cs_root.frag $ac_cs_root.h echo "/* $ac_file. Generated automatically by configure. */" >$ac_cs_root.h cat $ac_cs_root.in >>$ac_cs_root.h rm -f $ac_cs_root.in if cmp -s $ac_file $ac_cs_root.h 2>/dev/null; then echo "$ac_file is unchanged" rm -f $ac_cs_root.h else # Remove last slash and all that follows it. Not all systems have dirname. ac_dir=`echo "$ac_file" | sed 's%/[^/][^/]*$%%'` if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then # The file is in a subdirectory. test ! -d "$ac_dir" && mkdir "$ac_dir" fi rm -f $ac_file mv $ac_cs_root.h $ac_file fi fi; done EOF cat >>$CONFIG_STATUS <<\EOF # # CONFIG_LINKS section. # srcdir=$ac_given_srcdir for ac_file in : $CONFIG_LINKS; do if test "x$ac_file" != x:; then ac_dest=`echo "$ac_file" | sed 's%:.*%%'` ac_source=`echo "$ac_file" | sed 's%[^:]*:%%'` echo "linking $srcdir/$ac_source to $ac_dest" if test ! -r $srcdir/$ac_source; then { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } fi rm -f $ac_dest # Make relative symlinks. # Remove last slash and all that follows it. Not all systems have dirname. ac_dest_dir=`echo $ac_dest | sed 's%/[^/][^/]*$%%'` if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then # The dest file is in a subdirectory. test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" # A "../" for each directory in $ac_dest_dir_suffix. ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` else ac_dest_dir_suffix= ac_dots= fi case "$srcdir" in [/\\$]* | ?:[/\\]* ) ac_rel_source="$srcdir/$ac_source" ;; *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; esac # Make a symlink if possible; otherwise try a hard link. if ln -s $ac_rel_source $ac_dest 2>/dev/null || ln $srcdir/$ac_source $ac_dest; then : else { echo "configure: error: cannot link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } fi fi; done EOF cat >>$CONFIG_STATUS <<\EOF # # CONFIG_COMMANDS section. # for ac_file in .. $CONFIG_COMMANDS; do if test "x$ac_file" != x..; then ac_dest=`echo "$ac_file" | sed 's%:.*%%'` ac_source=`echo "$ac_file" | sed 's%[^:]*:%%'` case "$ac_dest" in default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;; default-2 ) test x"$AMDEP" != x"" || for mf in $CONFIG_FILES; do case "$mf" in Makefile) dirpart=.;; */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;; *) continue;; esac grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue # Extract the definition of DEP_FILES from the Makefile without # running `make'. DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` test -z "$DEPDIR" && continue # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n -e '/^U = / s///p' < "$mf"` test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" # We invoke sed twice because it is the simplest approach to # changing $(DEPDIR) to its actual value in the expansion. for file in `sed -n -e ' /^DEP_FILES = .*\\\\$/ { s/^DEP_FILES = // :loop s/\\\\$// p n /\\\\$/ b loop p } /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do test -f "$dirpart/$file" && continue echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ;; default-3 ) case "$CONFIG_FILES" in *po/Makefile.in*) sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile esac ;; esac fi;done EOF cat >>$CONFIG_STATUS <<\EOF exit 0 EOF chmod +x $CONFIG_STATUS rm -fr confdefs* $ac_clean_files trap 'exit 1' 1 2 15 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1 # # CONFIG_SUBDIRS section. # if test "$no_recursion" != yes; then # Remove --cache-file and --srcdir arguments so they do not pile up. ac_sub_configure_args= ac_prev= for ac_arg in $ac_configure_args; do if test -n "$ac_prev"; then ac_prev= continue fi case "$ac_arg" in -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) ;; *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; esac done ac_given_INSTALL="$INSTALL" for ac_config_dir in ogonkify; do # Do not complain, so a configure script can configure whichever # parts of a large source tree are present. if test ! -d $srcdir/$ac_config_dir; then continue fi echo configuring in $ac_config_dir case "$srcdir" in .) ;; *) if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; else { echo "configure: error: cannot create \`pwd\`/$ac_config_dir" 1>&2; exit 1; } fi ;; esac ac_popdir=`pwd` cd $ac_config_dir # A "../" for each directory in /$ac_config_dir. ac_dots=`echo $ac_config_dir | sed -e 's%^\./%%;s%[^/]$%&/%;s%[^/]*/%../%g'` case "$srcdir" in .) # No --srcdir option. We are building in place. ac_sub_srcdir=$srcdir ;; [/\\]* | ?:[/\\] ) # Absolute path. ac_sub_srcdir=$srcdir/$ac_config_dir ;; *) # Relative path. ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; esac # Check for guested configure; otherwise get Cygnus style configure. if test -f $ac_sub_srcdir/configure; then ac_sub_configure="$SHELL $ac_sub_srcdir/configure" elif test -f $ac_sub_srcdir/configure.in; then ac_sub_configure=$ac_configure else echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 ac_sub_configure= fi # The recursion is here. if test -n "$ac_sub_configure"; then # Make the cache file name correct relative to the subdirectory. case "$cache_file" in [/\\]* | ?:[/\\]* ) ac_sub_cache_file=$cache_file ;; *) # Relative path. ac_sub_cache_file="$ac_dots$cache_file" ;; esac case "$ac_given_INSTALL" in [/\\$]* | ?:[/\\]*) INSTALL="$ac_given_INSTALL" ;; *) INSTALL="$ac_dots$ac_given_INSTALL" ;; esac echo "running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" # The eval makes quoting arguments work. if eval $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir then : else { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } fi fi cd $ac_popdir done fi if test $MEDIUM = libpaper; then libpaper_msg=" * (\`libpaper' means a2ps asks the medium to libpaper. See man paperconf.)" fi cat <